Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stop bugging me with java when I don't want it.
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.166 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 CPP
877 CXX
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
884 LIBTOOL
885 LIBOBJS
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
888 PTH_STACK_GROWTH
889 pth_skaddr_makecontext
890 pth_sksize_makecontext
891 GTNETS_CFLAGS
892 GTNETS_LDFLAGS
893 USE_GTNETS_TRUE
894 USE_GTNETS_FALSE
895 HAVE_SDP_TRUE
896 HAVE_SDP_FALSE
897 SIMGRID_DEP
898 AM_CFLAGS
899 GRAS_DEP
900 GRAMINE_MODE_TRUE
901 GRAMINE_MODE_FALSE
902 MAINTAINER_MODE_TRUE
903 MAINTAINER_MODE_FALSE
904 MAINT
905 LD_DYNAMIC_FLAGS
906 abs_builddir
907 abs_srcdir
908 abs_top_builddir
909 abs_top_srcdir
910 JAVAC
911 JAVA
912 JAR
913 HAVE_JAVA_TRUE
914 HAVE_JAVA_FALSE
915 BASH
916 WARNING
917 LEX
918 LEX_OUTPUT_ROOT
919 LEXLIB
920 FLEXML
921 HAVE_FLEXML_TRUE
922 HAVE_FLEXML_FALSE
923 DOXYGEN
924 ADDR2LINE
925 ac_configure_args
926 MD5SUM
927 build_id
928 LTLIBOBJS'
929 ac_subst_files=''
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CPP
939 CXX
940 CXXFLAGS
941 CCC
942 CXXCPP'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050    { (exit 1); exit 1; }; }
1051     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052     eval enable_$ac_feature=no ;;
1053
1054   -docdir | --docdir | --docdi | --doc | --do)
1055     ac_prev=docdir ;;
1056   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057     docdir=$ac_optarg ;;
1058
1059   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060     ac_prev=dvidir ;;
1061   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062     dvidir=$ac_optarg ;;
1063
1064   -enable-* | --enable-*)
1065     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071     eval enable_$ac_feature=\$ac_optarg ;;
1072
1073   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075   | --exec | --exe | --ex)
1076     ac_prev=exec_prefix ;;
1077   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079   | --exec=* | --exe=* | --ex=*)
1080     exec_prefix=$ac_optarg ;;
1081
1082   -gas | --gas | --ga | --g)
1083     # Obsolete; use --with-gas.
1084     with_gas=yes ;;
1085
1086   -help | --help | --hel | --he | -h)
1087     ac_init_help=long ;;
1088   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089     ac_init_help=recursive ;;
1090   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091     ac_init_help=short ;;
1092
1093   -host | --host | --hos | --ho)
1094     ac_prev=host_alias ;;
1095   -host=* | --host=* | --hos=* | --ho=*)
1096     host_alias=$ac_optarg ;;
1097
1098   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099     ac_prev=htmldir ;;
1100   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101   | --ht=*)
1102     htmldir=$ac_optarg ;;
1103
1104   -includedir | --includedir | --includedi | --included | --include \
1105   | --includ | --inclu | --incl | --inc)
1106     ac_prev=includedir ;;
1107   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108   | --includ=* | --inclu=* | --incl=* | --inc=*)
1109     includedir=$ac_optarg ;;
1110
1111   -infodir | --infodir | --infodi | --infod | --info | --inf)
1112     ac_prev=infodir ;;
1113   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114     infodir=$ac_optarg ;;
1115
1116   -libdir | --libdir | --libdi | --libd)
1117     ac_prev=libdir ;;
1118   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119     libdir=$ac_optarg ;;
1120
1121   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122   | --libexe | --libex | --libe)
1123     ac_prev=libexecdir ;;
1124   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125   | --libexe=* | --libex=* | --libe=*)
1126     libexecdir=$ac_optarg ;;
1127
1128   -localedir | --localedir | --localedi | --localed | --locale)
1129     ac_prev=localedir ;;
1130   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131     localedir=$ac_optarg ;;
1132
1133   -localstatedir | --localstatedir | --localstatedi | --localstated \
1134   | --localstate | --localstat | --localsta | --localst | --locals)
1135     ac_prev=localstatedir ;;
1136   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138     localstatedir=$ac_optarg ;;
1139
1140   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141     ac_prev=mandir ;;
1142   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143     mandir=$ac_optarg ;;
1144
1145   -nfp | --nfp | --nf)
1146     # Obsolete; use --without-fp.
1147     with_fp=no ;;
1148
1149   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150   | --no-cr | --no-c | -n)
1151     no_create=yes ;;
1152
1153   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155     no_recursion=yes ;;
1156
1157   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159   | --oldin | --oldi | --old | --ol | --o)
1160     ac_prev=oldincludedir ;;
1161   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164     oldincludedir=$ac_optarg ;;
1165
1166   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167     ac_prev=prefix ;;
1168   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169     prefix=$ac_optarg ;;
1170
1171   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172   | --program-pre | --program-pr | --program-p)
1173     ac_prev=program_prefix ;;
1174   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176     program_prefix=$ac_optarg ;;
1177
1178   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179   | --program-suf | --program-su | --program-s)
1180     ac_prev=program_suffix ;;
1181   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183     program_suffix=$ac_optarg ;;
1184
1185   -program-transform-name | --program-transform-name \
1186   | --program-transform-nam | --program-transform-na \
1187   | --program-transform-n | --program-transform- \
1188   | --program-transform | --program-transfor \
1189   | --program-transfo | --program-transf \
1190   | --program-trans | --program-tran \
1191   | --progr-tra | --program-tr | --program-t)
1192     ac_prev=program_transform_name ;;
1193   -program-transform-name=* | --program-transform-name=* \
1194   | --program-transform-nam=* | --program-transform-na=* \
1195   | --program-transform-n=* | --program-transform-=* \
1196   | --program-transform=* | --program-transfor=* \
1197   | --program-transfo=* | --program-transf=* \
1198   | --program-trans=* | --program-tran=* \
1199   | --progr-tra=* | --program-tr=* | --program-t=*)
1200     program_transform_name=$ac_optarg ;;
1201
1202   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203     ac_prev=pdfdir ;;
1204   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205     pdfdir=$ac_optarg ;;
1206
1207   -psdir | --psdir | --psdi | --psd | --ps)
1208     ac_prev=psdir ;;
1209   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210     psdir=$ac_optarg ;;
1211
1212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213   | -silent | --silent | --silen | --sile | --sil)
1214     silent=yes ;;
1215
1216   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217     ac_prev=sbindir ;;
1218   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219   | --sbi=* | --sb=*)
1220     sbindir=$ac_optarg ;;
1221
1222   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224   | --sharedst | --shareds | --shared | --share | --shar \
1225   | --sha | --sh)
1226     ac_prev=sharedstatedir ;;
1227   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230   | --sha=* | --sh=*)
1231     sharedstatedir=$ac_optarg ;;
1232
1233   -site | --site | --sit)
1234     ac_prev=site ;;
1235   -site=* | --site=* | --sit=*)
1236     site=$ac_optarg ;;
1237
1238   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239     ac_prev=srcdir ;;
1240   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241     srcdir=$ac_optarg ;;
1242
1243   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244   | --syscon | --sysco | --sysc | --sys | --sy)
1245     ac_prev=sysconfdir ;;
1246   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248     sysconfdir=$ac_optarg ;;
1249
1250   -target | --target | --targe | --targ | --tar | --ta | --t)
1251     ac_prev=target_alias ;;
1252   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253     target_alias=$ac_optarg ;;
1254
1255   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256     verbose=yes ;;
1257
1258   -version | --version | --versio | --versi | --vers | -V)
1259     ac_init_version=: ;;
1260
1261   -with-* | --with-*)
1262     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid package name: $ac_package" >&2
1266    { (exit 1); exit 1; }; }
1267     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268     eval with_$ac_package=\$ac_optarg ;;
1269
1270   -without-* | --without-*)
1271     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       { echo "$as_me: error: invalid package name: $ac_package" >&2
1275    { (exit 1); exit 1; }; }
1276     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277     eval with_$ac_package=no ;;
1278
1279   --x)
1280     # Obsolete; use --with-x.
1281     with_x=yes ;;
1282
1283   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284   | --x-incl | --x-inc | --x-in | --x-i)
1285     ac_prev=x_includes ;;
1286   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288     x_includes=$ac_optarg ;;
1289
1290   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292     ac_prev=x_libraries ;;
1293   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295     x_libraries=$ac_optarg ;;
1296
1297   -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299    { (exit 1); exit 1; }; }
1300     ;;
1301
1302   *=*)
1303     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307    { (exit 1); exit 1; }; }
1308     eval $ac_envvar=\$ac_optarg
1309     export $ac_envvar ;;
1310
1311   *)
1312     # FIXME: should be removed in autoconf 3.0.
1313     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317     ;;
1318
1319   esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324   { echo "$as_me: error: missing argument to $ac_option" >&2
1325    { (exit 1); exit 1; }; }
1326 fi
1327
1328 # Be sure to have absolute directory names.
1329 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330                 datadir sysconfdir sharedstatedir localstatedir includedir \
1331                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332                 libdir localedir mandir
1333 do
1334   eval ac_val=\$$ac_var
1335   case $ac_val in
1336     [\\/$]* | ?:[\\/]* )  continue;;
1337     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338   esac
1339   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340    { (exit 1); exit 1; }; }
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355     If a cross compiler is detected then cross compile mode will be used." >&2
1356   elif test "x$build_alias" != "x$host_alias"; then
1357     cross_compiling=yes
1358   fi
1359 fi
1360
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364 test "$silent" = yes && exec 6>/dev/null
1365
1366
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370   { echo "$as_me: error: Working directory cannot be determined" >&2
1371    { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373   { echo "$as_me: error: pwd does not report name of working directory" >&2
1374    { (exit 1); exit 1; }; }
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379   ac_srcdir_defaulted=yes
1380   # Try the directory containing this script, then the parent directory.
1381   ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383          X"$0" : 'X\(//\)[^/]' \| \
1384          X"$0" : 'X\(//\)$' \| \
1385          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386 echo X"$0" |
1387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)[^/].*/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\).*/{
1400             s//\1/
1401             q
1402           }
1403           s/.*/./; q'`
1404   srcdir=$ac_confdir
1405   if test ! -r "$srcdir/$ac_unique_file"; then
1406     srcdir=..
1407   fi
1408 else
1409   ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414    { (exit 1); exit 1; }; }
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419    { (exit 1); exit 1; }; }
1420         pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423   srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_env_${ac_var}_value=\$${ac_var}
1434   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1437
1438 #
1439 # Report the --help message.
1440 #
1441 if test "$ac_init_help" = "long"; then
1442   # Omit some internal or obsolete options to make the list less imposing.
1443   # This message is too long to be a string in the A/UX 3.1 sh.
1444   cat <<_ACEOF
1445 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1446
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE.  See below for descriptions of some of the useful variables.
1451
1452 Defaults for the options are specified in brackets.
1453
1454 Configuration:
1455   -h, --help              display this help and exit
1456       --help=short        display options specific to this package
1457       --help=recursive    display the short help of all the included packages
1458   -V, --version           display version information and exit
1459   -q, --quiet, --silent   do not print \`checking...' messages
1460       --cache-file=FILE   cache test results in FILE [disabled]
1461   -C, --config-cache      alias for \`--cache-file=config.cache'
1462   -n, --no-create         do not create output files
1463       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1464
1465 Installation directories:
1466   --prefix=PREFIX         install architecture-independent files in PREFIX
1467                           [$ac_default_prefix]
1468   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1469                           [PREFIX]
1470
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1475
1476 For better control, use the options below.
1477
1478 Fine tuning of the installation directories:
1479   --bindir=DIR           user executables [EPREFIX/bin]
1480   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1481   --libexecdir=DIR       program executables [EPREFIX/libexec]
1482   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1483   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1484   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1485   --libdir=DIR           object code libraries [EPREFIX/lib]
1486   --includedir=DIR       C header files [PREFIX/include]
1487   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1488   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1489   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1490   --infodir=DIR          info documentation [DATAROOTDIR/info]
1491   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1492   --mandir=DIR           man documentation [DATAROOTDIR/man]
1493   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1494   --htmldir=DIR          html documentation [DOCDIR]
1495   --dvidir=DIR           dvi documentation [DOCDIR]
1496   --pdfdir=DIR           pdf documentation [DOCDIR]
1497   --psdir=DIR            ps documentation [DOCDIR]
1498 _ACEOF
1499
1500   cat <<\_ACEOF
1501
1502 Program names:
1503   --program-prefix=PREFIX            prepend PREFIX to installed program names
1504   --program-suffix=SUFFIX            append SUFFIX to installed program names
1505   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507 System types:
1508   --build=BUILD     configure for building on BUILD [guessed]
1509   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510   --target=TARGET   configure for building compilers for TARGET [HOST]
1511 _ACEOF
1512 fi
1513
1514 if test -n "$ac_init_help"; then
1515   case $ac_init_help in
1516      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1517    esac
1518   cat <<\_ACEOF
1519
1520 Optional Features:
1521   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523   --disable-dependency-tracking  speeds up one-time build
1524   --enable-dependency-tracking   do not reject slow dependency extractors
1525   --enable-shared[=PKGS]  build shared libraries [default=yes]
1526   --enable-static[=PKGS]  build static libraries [default=yes]
1527   --enable-fast-install[=PKGS]
1528                           optimize for fast installation [default=yes]
1529   --disable-libtool-lock  avoid locking (might break parallel builds)
1530   --enable-maintainer-mode  enable make rules and dependencies not useful
1531                           (and sometimes confusing) to the casual installer
1532   --enable-compile-warnings
1533                           use compiler warnings (default=no, unless in
1534                           maintainer mode)
1535   --disable-compile-optimizations
1536                           use compiler optimizations (default=yes, unless if
1537                           CFLAGS is explicitly set)
1538
1539 Optional Packages:
1540   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1541   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1542   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1543   --with-pic              try to use only PIC/non-PIC objects [default=use
1544                           both]
1545   --with-tags[=TAGS]      include additional configurations [automatic]
1546   --with-pthread   Use pthread instead of ucontext.
1547   --with-pthreads   Use pthread instead of ucontext.
1548   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1549   --with-gtnets           Path to GTNetS installation (default to empty, ie
1550                           not using GTNetS)
1551
1552 Some influential environment variables:
1553   CC          C compiler command
1554   CFLAGS      C compiler flags
1555   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556               nonstandard directory <lib dir>
1557   LIBS        libraries to pass to the linker, e.g. -l<library>
1558   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CPP         C preprocessor
1561   CXX         C++ compiler command
1562   CXXFLAGS    C++ compiler flags
1563   CXXCPP      C++ preprocessor
1564
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1567
1568 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1569 _ACEOF
1570 ac_status=$?
1571 fi
1572
1573 if test "$ac_init_help" = "recursive"; then
1574   # If there are subdirs, report their specific --help.
1575   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576     test -d "$ac_dir" || continue
1577     ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1583   # A ".." for each directory in $ac_dir_suffix.
1584   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1585   case $ac_top_builddir_sub in
1586   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588   esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596   .)  # We are building in place.
1597     ac_srcdir=.
1598     ac_top_srcdir=$ac_top_builddir_sub
1599     ac_abs_top_srcdir=$ac_pwd ;;
1600   [\\/]* | ?:[\\/]* )  # Absolute name.
1601     ac_srcdir=$srcdir$ac_dir_suffix;
1602     ac_top_srcdir=$srcdir
1603     ac_abs_top_srcdir=$srcdir ;;
1604   *) # Relative name.
1605     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606     ac_top_srcdir=$ac_top_build_prefix$srcdir
1607     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611     cd "$ac_dir" || { ac_status=$?; continue; }
1612     # Check for guested configure.
1613     if test -f "$ac_srcdir/configure.gnu"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616     elif test -f "$ac_srcdir/configure"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure" --help=recursive
1619     else
1620       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621     fi || ac_status=$?
1622     cd "$ac_pwd" || { ac_status=$?; break; }
1623   done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628   cat <<\_ACEOF
1629 simgrid configure 3.3-cvs
1630 generated by GNU Autoconf 2.61
1631
1632 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1633 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1636 _ACEOF
1637   exit
1638 fi
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1642
1643 It was created by simgrid $as_me 3.3-cvs, which was
1644 generated by GNU Autoconf 2.61.  Invocation command line was
1645
1646   $ $0 $@
1647
1648 _ACEOF
1649 exec 5>>config.log
1650 {
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1655
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1664
1665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1672
1673 _ASUNAME
1674
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707   for ac_arg
1708   do
1709     case $ac_arg in
1710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712     | -silent | --silent | --silen | --sile | --sil)
1713       continue ;;
1714     *\'*)
1715       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716     esac
1717     case $ac_pass in
1718     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719     2)
1720       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721       if test $ac_must_keep_next = true; then
1722         ac_must_keep_next=false # Got value, back to normal.
1723       else
1724         case $ac_arg in
1725           *=* | --config-cache | -C | -disable-* | --disable-* \
1726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728           | -with-* | --with-* | -without-* | --without-* | --x)
1729             case "$ac_configure_args0 " in
1730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731             esac
1732             ;;
1733           -* ) ac_must_keep_next=true ;;
1734         esac
1735       fi
1736       ac_configure_args="$ac_configure_args '$ac_arg'"
1737       ;;
1738     esac
1739   done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log.  We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750   # Save into config.log some information that might help in debugging.
1751   {
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759     echo
1760     # The following way of writing the cache mishandles newlines in values,
1761 (
1762   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763     eval ac_val=\$$ac_var
1764     case $ac_val in #(
1765     *${as_nl}*)
1766       case $ac_var in #(
1767       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1768 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1769       esac
1770       case $ac_var in #(
1771       _ | IFS | as_nl) ;; #(
1772       *) $as_unset $ac_var ;;
1773       esac ;;
1774     esac
1775   done
1776   (set) 2>&1 |
1777     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778     *${as_nl}ac_space=\ *)
1779       sed -n \
1780         "s/'\''/'\''\\\\'\'''\''/g;
1781           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1782       ;; #(
1783     *)
1784       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785       ;;
1786     esac |
1787     sort
1788 )
1789     echo
1790
1791     cat <<\_ASBOX
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1795 _ASBOX
1796     echo
1797     for ac_var in $ac_subst_vars
1798     do
1799       eval ac_val=\$$ac_var
1800       case $ac_val in
1801       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802       esac
1803       echo "$ac_var='\''$ac_val'\''"
1804     done | sort
1805     echo
1806
1807     if test -n "$ac_subst_files"; then
1808       cat <<\_ASBOX
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1812 _ASBOX
1813       echo
1814       for ac_var in $ac_subst_files
1815       do
1816         eval ac_val=\$$ac_var
1817         case $ac_val in
1818         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819         esac
1820         echo "$ac_var='\''$ac_val'\''"
1821       done | sort
1822       echo
1823     fi
1824
1825     if test -s confdefs.h; then
1826       cat <<\_ASBOX
1827 ## ----------- ##
1828 ## confdefs.h. ##
1829 ## ----------- ##
1830 _ASBOX
1831       echo
1832       cat confdefs.h
1833       echo
1834     fi
1835     test "$ac_signal" != 0 &&
1836       echo "$as_me: caught signal $ac_signal"
1837     echo "$as_me: exit $exit_status"
1838   } >&5
1839   rm -f core *.core core.conftest.* &&
1840     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841     exit $exit_status
1842 ' 0
1843 for ac_signal in 1 2 13 15; do
1844   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1845 done
1846 ac_signal=0
1847
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1850
1851 # Predefined preprocessor variables.
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1875 _ACEOF
1876
1877
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer explicitly selected file to automatically selected ones.
1880 if test -n "$CONFIG_SITE"; then
1881   set x "$CONFIG_SITE"
1882 elif test "x$prefix" != xNONE; then
1883   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1884 else
1885   set x "$ac_default_prefix/share/config.site" \
1886         "$ac_default_prefix/etc/config.site"
1887 fi
1888 shift
1889 for ac_site_file
1890 do
1891   if test -r "$ac_site_file"; then
1892     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1893 echo "$as_me: loading site script $ac_site_file" >&6;}
1894     sed 's/^/| /' "$ac_site_file" >&5
1895     . "$ac_site_file"
1896   fi
1897 done
1898
1899 if test -r "$cache_file"; then
1900   # Some versions of bash will fail to source /dev/null (special
1901   # files actually), so we avoid doing that.
1902   if test -f "$cache_file"; then
1903     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1904 echo "$as_me: loading cache $cache_file" >&6;}
1905     case $cache_file in
1906       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1907       *)                      . "./$cache_file";;
1908     esac
1909   fi
1910 else
1911   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1912 echo "$as_me: creating cache $cache_file" >&6;}
1913   >$cache_file
1914 fi
1915
1916 # Check that the precious variables saved in the cache have kept the same
1917 # value.
1918 ac_cache_corrupted=false
1919 for ac_var in $ac_precious_vars; do
1920   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1921   eval ac_new_set=\$ac_env_${ac_var}_set
1922   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1923   eval ac_new_val=\$ac_env_${ac_var}_value
1924   case $ac_old_set,$ac_new_set in
1925     set,)
1926       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1927 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1928       ac_cache_corrupted=: ;;
1929     ,set)
1930       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1931 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,);;
1934     *)
1935       if test "x$ac_old_val" != "x$ac_new_val"; then
1936         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1937 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1938         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1939 echo "$as_me:   former value:  $ac_old_val" >&2;}
1940         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1941 echo "$as_me:   current value: $ac_new_val" >&2;}
1942         ac_cache_corrupted=:
1943       fi;;
1944   esac
1945   # Pass precious variables to config.status.
1946   if test "$ac_new_set" = set; then
1947     case $ac_new_val in
1948     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1949     *) ac_arg=$ac_var=$ac_new_val ;;
1950     esac
1951     case " $ac_configure_args " in
1952       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1953       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1954     esac
1955   fi
1956 done
1957 if $ac_cache_corrupted; then
1958   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1959 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1960   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1961 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989 ac_ext=c
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994
1995
1996
1997 ac_config_headers="$ac_config_headers src/gras_config.h"
1998
1999 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2000
2001
2002 ac_aux_dir=
2003 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2004   if test -f "$ac_dir/install-sh"; then
2005     ac_aux_dir=$ac_dir
2006     ac_install_sh="$ac_aux_dir/install-sh -c"
2007     break
2008   elif test -f "$ac_dir/install.sh"; then
2009     ac_aux_dir=$ac_dir
2010     ac_install_sh="$ac_aux_dir/install.sh -c"
2011     break
2012   elif test -f "$ac_dir/shtool"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/shtool install -c"
2015     break
2016   fi
2017 done
2018 if test -z "$ac_aux_dir"; then
2019   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2020 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2021    { (exit 1); exit 1; }; }
2022 fi
2023
2024 # These three variables are undocumented and unsupported,
2025 # and are intended to be withdrawn in a future Autoconf release.
2026 # They can cause serious problems if a builder's source tree is in a directory
2027 # whose full name contains unusual characters.
2028 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2029 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2030 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2031
2032
2033 # Make sure we can run config.sub.
2034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2035   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2037    { (exit 1); exit 1; }; }
2038
2039 { echo "$as_me:$LINENO: checking build system type" >&5
2040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2041 if test "${ac_cv_build+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   ac_build_alias=$build_alias
2045 test "x$ac_build_alias" = x &&
2046   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2047 test "x$ac_build_alias" = x &&
2048   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2050    { (exit 1); exit 1; }; }
2051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2052   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2054    { (exit 1); exit 1; }; }
2055
2056 fi
2057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2058 echo "${ECHO_T}$ac_cv_build" >&6; }
2059 case $ac_cv_build in
2060 *-*-*) ;;
2061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2062 echo "$as_me: error: invalid value of canonical build" >&2;}
2063    { (exit 1); exit 1; }; };;
2064 esac
2065 build=$ac_cv_build
2066 ac_save_IFS=$IFS; IFS='-'
2067 set x $ac_cv_build
2068 shift
2069 build_cpu=$1
2070 build_vendor=$2
2071 shift; shift
2072 # Remember, the first character of IFS is used to create $*,
2073 # except with old shells:
2074 build_os=$*
2075 IFS=$ac_save_IFS
2076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2077
2078
2079 { echo "$as_me:$LINENO: checking host system type" >&5
2080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2081 if test "${ac_cv_host+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   if test "x$host_alias" = x; then
2085   ac_cv_host=$ac_cv_build
2086 else
2087   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2088     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2090    { (exit 1); exit 1; }; }
2091 fi
2092
2093 fi
2094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2095 echo "${ECHO_T}$ac_cv_host" >&6; }
2096 case $ac_cv_host in
2097 *-*-*) ;;
2098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2099 echo "$as_me: error: invalid value of canonical host" >&2;}
2100    { (exit 1); exit 1; }; };;
2101 esac
2102 host=$ac_cv_host
2103 ac_save_IFS=$IFS; IFS='-'
2104 set x $ac_cv_host
2105 shift
2106 host_cpu=$1
2107 host_vendor=$2
2108 shift; shift
2109 # Remember, the first character of IFS is used to create $*,
2110 # except with old shells:
2111 host_os=$*
2112 IFS=$ac_save_IFS
2113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2114
2115
2116 { echo "$as_me:$LINENO: checking target system type" >&5
2117 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2118 if test "${ac_cv_target+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test "x$target_alias" = x; then
2122   ac_cv_target=$ac_cv_host
2123 else
2124   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2125     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2127    { (exit 1); exit 1; }; }
2128 fi
2129
2130 fi
2131 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2132 echo "${ECHO_T}$ac_cv_target" >&6; }
2133 case $ac_cv_target in
2134 *-*-*) ;;
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2136 echo "$as_me: error: invalid value of canonical target" >&2;}
2137    { (exit 1); exit 1; }; };;
2138 esac
2139 target=$ac_cv_target
2140 ac_save_IFS=$IFS; IFS='-'
2141 set x $ac_cv_target
2142 shift
2143 target_cpu=$1
2144 target_vendor=$2
2145 shift; shift
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2148 target_os=$*
2149 IFS=$ac_save_IFS
2150 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2151
2152
2153 # The aliases save the names the user supplied, while $host etc.
2154 # will get canonicalized.
2155 test -n "$target_alias" &&
2156   test "$program_prefix$program_suffix$program_transform_name" = \
2157     NONENONEs,x,x, &&
2158   program_prefix=${target_alias}-
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165 rm -rf .tst 2>/dev/null
2166 mkdir .tst 2>/dev/null
2167 if test -d .tst; then
2168   am__leading_dot=.
2169 else
2170   am__leading_dot=_
2171 fi
2172 rmdir .tst 2>/dev/null
2173
2174 DEPDIR="${am__leading_dot}deps"
2175
2176 ac_config_commands="$ac_config_commands depfiles"
2177
2178
2179 am_make=${MAKE-make}
2180 cat > confinc << 'END'
2181 am__doit:
2182         @echo done
2183 .PHONY: am__doit
2184 END
2185 # If we don't find an include directive, just comment out the code.
2186 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2187 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2188 am__include="#"
2189 am__quote=
2190 _am_result=none
2191 # First try GNU make style include.
2192 echo "include confinc" > confmf
2193 # We grep out `Entering directory' and `Leaving directory'
2194 # messages which can occur if `w' ends up in MAKEFLAGS.
2195 # In particular we don't look at `^make:' because GNU make might
2196 # be invoked under some other name (usually "gmake"), in which
2197 # case it prints its new name instead of `make'.
2198 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2199    am__include=include
2200    am__quote=
2201    _am_result=GNU
2202 fi
2203 # Now try BSD make style include.
2204 if test "$am__include" = "#"; then
2205    echo '.include "confinc"' > confmf
2206    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2207       am__include=.include
2208       am__quote="\""
2209       _am_result=BSD
2210    fi
2211 fi
2212
2213
2214 { echo "$as_me:$LINENO: result: $_am_result" >&5
2215 echo "${ECHO_T}$_am_result" >&6; }
2216 rm -f confinc confmf
2217
2218 # Check whether --enable-dependency-tracking was given.
2219 if test "${enable_dependency_tracking+set}" = set; then
2220   enableval=$enable_dependency_tracking;
2221 fi
2222
2223 if test "x$enable_dependency_tracking" != xno; then
2224   am_depcomp="$ac_aux_dir/depcomp"
2225   AMDEPBACKSLASH='\'
2226 fi
2227  if test "x$enable_dependency_tracking" != xno; then
2228   AMDEP_TRUE=
2229   AMDEP_FALSE='#'
2230 else
2231   AMDEP_TRUE='#'
2232   AMDEP_FALSE=
2233 fi
2234
2235
2236
2237 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2238 do
2239   # Extract the first word of "$ac_prog", so it can be a program name with args.
2240 set dummy $ac_prog; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_GCJ+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   if test -n "$GCJ"; then
2247   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254   for ac_exec_ext in '' $ac_executable_extensions; do
2255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256     ac_cv_prog_GCJ="$ac_prog"
2257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258     break 2
2259   fi
2260 done
2261 done
2262 IFS=$as_save_IFS
2263
2264 fi
2265 fi
2266 GCJ=$ac_cv_prog_GCJ
2267 if test -n "$GCJ"; then
2268   { echo "$as_me:$LINENO: result: $GCJ" >&5
2269 echo "${ECHO_T}$GCJ" >&6; }
2270 else
2271   { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2273 fi
2274
2275
2276   test -n "$GCJ" && break
2277 done
2278 test -n "$GCJ" || GCJ="gcj"
2279
2280 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2281 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2282    { (exit 1); exit 1; }; }
2283 if test "x${GCJFLAGS-unset}" = xunset; then
2284    GCJFLAGS="-g -O2"
2285 fi
2286
2287
2288 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2289
2290 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2291 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2292 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2296   # We make a subdir and do the tests there.  Otherwise we can end up
2297   # making bogus files that we don't know about and never remove.  For
2298   # instance it was reported that on HP-UX the gcc test will end up
2299   # making a dummy file named `D' -- because `-MD' means `put the output
2300   # in D'.
2301   mkdir conftest.dir
2302   # Copy depcomp to subdir because otherwise we won't find it if we're
2303   # using a relative directory.
2304   cp "$am_depcomp" conftest.dir
2305   cd conftest.dir
2306   # We will build objects and dependencies in a subdirectory because
2307   # it helps to detect inapplicable dependency modes.  For instance
2308   # both Tru64's cc and ICC support -MD to output dependencies as a
2309   # side effect of compilation, but ICC will put the dependencies in
2310   # the current directory while Tru64 will put them in the object
2311   # directory.
2312   mkdir sub
2313
2314   am_cv_GCJ_dependencies_compiler_type=none
2315   if test "$am_compiler_list" = ""; then
2316      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2317   fi
2318   for depmode in $am_compiler_list; do
2319     # Setup a source with many dependencies, because some compilers
2320     # like to wrap large dependency lists on column 80 (with \), and
2321     # we should not choose a depcomp mode which is confused by this.
2322     #
2323     # We need to recreate these files for each test, as the compiler may
2324     # overwrite some of them when testing with obscure command lines.
2325     # This happens at least with the AIX C compiler.
2326     : > sub/conftest.c
2327     for i in 1 2 3 4 5 6; do
2328       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2329       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2330       # Solaris 8's {/usr,}/bin/sh.
2331       touch sub/conftst$i.h
2332     done
2333     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2334
2335     case $depmode in
2336     nosideeffect)
2337       # after this tag, mechanisms are not by side-effect, so they'll
2338       # only be used when explicitly requested
2339       if test "x$enable_dependency_tracking" = xyes; then
2340         continue
2341       else
2342         break
2343       fi
2344       ;;
2345     none) break ;;
2346     esac
2347     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2348     # mode.  It turns out that the SunPro C++ compiler does not properly
2349     # handle `-M -o', and we need to detect this.
2350     if depmode=$depmode \
2351        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2352        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2353        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2354          >/dev/null 2>conftest.err &&
2355        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2356        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2357        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2358        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2359       # icc doesn't choke on unknown options, it will just issue warnings
2360       # or remarks (even with -Werror).  So we grep stderr for any message
2361       # that says an option was ignored or not supported.
2362       # When given -MP, icc 7.0 and 7.1 complain thusly:
2363       #   icc: Command line warning: ignoring option '-M'; no argument required
2364       # The diagnosis changed in icc 8.0:
2365       #   icc: Command line remark: option '-MP' not supported
2366       if (grep 'ignoring option' conftest.err ||
2367           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2368         am_cv_GCJ_dependencies_compiler_type=$depmode
2369         break
2370       fi
2371     fi
2372   done
2373
2374   cd ..
2375   rm -rf conftest.dir
2376 else
2377   am_cv_GCJ_dependencies_compiler_type=none
2378 fi
2379
2380 fi
2381 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2382 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2383 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2384
2385  if
2386   test "x$enable_dependency_tracking" != xno \
2387   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2388   am__fastdepGCJ_TRUE=
2389   am__fastdepGCJ_FALSE='#'
2390 else
2391   am__fastdepGCJ_TRUE='#'
2392   am__fastdepGCJ_FALSE=
2393 fi
2394
2395
2396
2397
2398 am__api_version='1.10'
2399
2400 # Find a good install program.  We prefer a C program (faster),
2401 # so one script is as good as another.  But avoid the broken or
2402 # incompatible versions:
2403 # SysV /etc/install, /usr/sbin/install
2404 # SunOS /usr/etc/install
2405 # IRIX /sbin/install
2406 # AIX /bin/install
2407 # AmigaOS /C/install, which installs bootblocks on floppy discs
2408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2411 # OS/2's system install, which has a completely different semantic
2412 # ./install, which can be erroneously created by make from ./install.sh.
2413 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2414 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2415 if test -z "$INSTALL"; then
2416 if test "${ac_cv_path_install+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   # Account for people who put trailing slashes in PATH elements.
2425 case $as_dir/ in
2426   ./ | .// | /cC/* | \
2427   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2428   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2429   /usr/ucb/* ) ;;
2430   *)
2431     # OSF1 and SCO ODT 3.0 have their own names for install.
2432     # Don't use installbsd from OSF since it installs stuff as root
2433     # by default.
2434     for ac_prog in ginstall scoinst install; do
2435       for ac_exec_ext in '' $ac_executable_extensions; do
2436         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2437           if test $ac_prog = install &&
2438             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439             # AIX install.  It has an incompatible calling convention.
2440             :
2441           elif test $ac_prog = install &&
2442             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443             # program-specific install script used by HP pwplus--don't use.
2444             :
2445           else
2446             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2447             break 3
2448           fi
2449         fi
2450       done
2451     done
2452     ;;
2453 esac
2454 done
2455 IFS=$as_save_IFS
2456
2457
2458 fi
2459   if test "${ac_cv_path_install+set}" = set; then
2460     INSTALL=$ac_cv_path_install
2461   else
2462     # As a last resort, use the slow shell script.  Don't cache a
2463     # value for INSTALL within a source directory, because that will
2464     # break other packages using the cache if that directory is
2465     # removed, or if the value is a relative name.
2466     INSTALL=$ac_install_sh
2467   fi
2468 fi
2469 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2470 echo "${ECHO_T}$INSTALL" >&6; }
2471
2472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473 # It thinks the first close brace ends the variable substitution.
2474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475
2476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477
2478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479
2480 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2481 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2482 # Just in case
2483 sleep 1
2484 echo timestamp > conftest.file
2485 # Do `set' in a subshell so we don't clobber the current shell's
2486 # arguments.  Must try -L first in case configure is actually a
2487 # symlink; some systems play weird games with the mod time of symlinks
2488 # (eg FreeBSD returns the mod time of the symlink's containing
2489 # directory).
2490 if (
2491    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2492    if test "$*" = "X"; then
2493       # -L didn't work.
2494       set X `ls -t $srcdir/configure conftest.file`
2495    fi
2496    rm -f conftest.file
2497    if test "$*" != "X $srcdir/configure conftest.file" \
2498       && test "$*" != "X conftest.file $srcdir/configure"; then
2499
2500       # If neither matched, then we have a broken ls.  This can happen
2501       # if, for instance, CONFIG_SHELL is bash and it inherits a
2502       # broken ls alias from the environment.  This has actually
2503       # happened.  Such a system could not be considered "sane".
2504       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2505 alias in your environment" >&5
2506 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2507 alias in your environment" >&2;}
2508    { (exit 1); exit 1; }; }
2509    fi
2510
2511    test "$2" = conftest.file
2512    )
2513 then
2514    # Ok.
2515    :
2516 else
2517    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2518 Check your system clock" >&5
2519 echo "$as_me: error: newly created file is older than distributed files!
2520 Check your system clock" >&2;}
2521    { (exit 1); exit 1; }; }
2522 fi
2523 { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2525 test "$program_prefix" != NONE &&
2526   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2527 # Use a double $ so make ignores it.
2528 test "$program_suffix" != NONE &&
2529   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2530 # Double any \ or $.  echo might interpret backslashes.
2531 # By default was `s,x,x', remove it if useless.
2532 cat <<\_ACEOF >conftest.sed
2533 s/[\\$]/&&/g;s/;s,x,x,$//
2534 _ACEOF
2535 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2536 rm -f conftest.sed
2537
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2540
2541 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2542 # Use eval to expand $SHELL
2543 if eval "$MISSING --run true"; then
2544   am_missing_run="$MISSING --run "
2545 else
2546   am_missing_run=
2547   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2548 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2549 fi
2550
2551 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2552 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2553 if test -z "$MKDIR_P"; then
2554   if test "${ac_cv_path_mkdir+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562   for ac_prog in mkdir gmkdir; do
2563          for ac_exec_ext in '' $ac_executable_extensions; do
2564            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2565            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2566              'mkdir (GNU coreutils) '* | \
2567              'mkdir (coreutils) '* | \
2568              'mkdir (fileutils) '4.1*)
2569                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2570                break 3;;
2571            esac
2572          done
2573        done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578
2579   if test "${ac_cv_path_mkdir+set}" = set; then
2580     MKDIR_P="$ac_cv_path_mkdir -p"
2581   else
2582     # As a last resort, use the slow shell script.  Don't cache a
2583     # value for MKDIR_P within a source directory, because that will
2584     # break other packages using the cache if that directory is
2585     # removed, or if the value is a relative name.
2586     test -d ./--version && rmdir ./--version
2587     MKDIR_P="$ac_install_sh -d"
2588   fi
2589 fi
2590 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2591 echo "${ECHO_T}$MKDIR_P" >&6; }
2592
2593 mkdir_p="$MKDIR_P"
2594 case $mkdir_p in
2595   [\\/$]* | ?:[\\/]*) ;;
2596   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2597 esac
2598
2599 for ac_prog in gawk mawk nawk awk
2600 do
2601   # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_AWK+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$AWK"; then
2609   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_AWK="$ac_prog"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 AWK=$ac_cv_prog_AWK
2629 if test -n "$AWK"; then
2630   { echo "$as_me:$LINENO: result: $AWK" >&5
2631 echo "${ECHO_T}$AWK" >&6; }
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638   test -n "$AWK" && break
2639 done
2640
2641 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2642 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2643 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650         @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654   *@@@%%%=?*=@@@%%%*)
2655     eval ac_cv_prog_make_${ac_make}_set=yes;;
2656   *)
2657     eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662   { echo "$as_me:$LINENO: result: yes" >&5
2663 echo "${ECHO_T}yes" >&6; }
2664   SET_MAKE=
2665 else
2666   { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668   SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2672   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2673   # is not polluted with repeated "-I."
2674   am__isrc=' -I$(srcdir)'
2675   # test to see if srcdir already configured
2676   if test -f $srcdir/config.status; then
2677     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2678 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2679    { (exit 1); exit 1; }; }
2680   fi
2681 fi
2682
2683 # test whether we have cygpath
2684 if test -z "$CYGPATH_W"; then
2685   if (cygpath --version) >/dev/null 2>/dev/null; then
2686     CYGPATH_W='cygpath -w'
2687   else
2688     CYGPATH_W=echo
2689   fi
2690 fi
2691
2692
2693 # Define the identity of the package.
2694  PACKAGE='simgrid'
2695  VERSION='3.3-cvs'
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE "$PACKAGE"
2700 _ACEOF
2701
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define VERSION "$VERSION"
2705 _ACEOF
2706
2707 # Some tools Automake needs.
2708
2709 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2710
2711
2712 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2713
2714
2715 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2716
2717
2718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2719
2720
2721 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2722
2723 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2724
2725 # Installed binaries are usually stripped using `strip' when the user
2726 # run `make install-strip'.  However `strip' might not be the right
2727 # tool to use in cross-compilation environments, therefore Automake
2728 # will honor the `STRIP' environment variable to overrule this program.
2729 if test "$cross_compiling" != no; then
2730   if test -n "$ac_tool_prefix"; then
2731   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}strip; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_STRIP+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   if test -n "$STRIP"; then
2739   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746   for ac_exec_ext in '' $ac_executable_extensions; do
2747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 STRIP=$ac_cv_prog_STRIP
2759 if test -n "$STRIP"; then
2760   { echo "$as_me:$LINENO: result: $STRIP" >&5
2761 echo "${ECHO_T}$STRIP" >&6; }
2762 else
2763   { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2765 fi
2766
2767
2768 fi
2769 if test -z "$ac_cv_prog_STRIP"; then
2770   ac_ct_STRIP=$STRIP
2771   # Extract the first word of "strip", so it can be a program name with args.
2772 set dummy strip; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   if test -n "$ac_ct_STRIP"; then
2779   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_ac_ct_STRIP="strip"
2789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2799 if test -n "$ac_ct_STRIP"; then
2800   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2801 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2802 else
2803   { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2805 fi
2806
2807   if test "x$ac_ct_STRIP" = x; then
2808     STRIP=":"
2809   else
2810     case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet.  If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&5
2815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet.  If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2818 ac_tool_warned=yes ;;
2819 esac
2820     STRIP=$ac_ct_STRIP
2821   fi
2822 else
2823   STRIP="$ac_cv_prog_STRIP"
2824 fi
2825
2826 fi
2827 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2828
2829 # We need awk for the "check" target.  The system "awk" is bad on
2830 # some platforms.
2831 # Always define AMTAR for backward compatibility.
2832
2833 AMTAR=${AMTAR-"${am_missing_run}tar"}
2834
2835 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2836
2837
2838
2839
2840
2841
2842 ACLOCAL="$ACLOCAL -I acmacro"
2843
2844
2845
2846
2847
2848
2849 # Check whether --enable-shared was given.
2850 if test "${enable_shared+set}" = set; then
2851   enableval=$enable_shared; p=${PACKAGE-default}
2852     case $enableval in
2853     yes) enable_shared=yes ;;
2854     no) enable_shared=no ;;
2855     *)
2856       enable_shared=no
2857       # Look at the argument we got.  We use all the common list separators.
2858       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2859       for pkg in $enableval; do
2860         IFS="$lt_save_ifs"
2861         if test "X$pkg" = "X$p"; then
2862           enable_shared=yes
2863         fi
2864       done
2865       IFS="$lt_save_ifs"
2866       ;;
2867     esac
2868 else
2869   enable_shared=yes
2870 fi
2871
2872
2873 # Check whether --enable-static was given.
2874 if test "${enable_static+set}" = set; then
2875   enableval=$enable_static; p=${PACKAGE-default}
2876     case $enableval in
2877     yes) enable_static=yes ;;
2878     no) enable_static=no ;;
2879     *)
2880      enable_static=no
2881       # Look at the argument we got.  We use all the common list separators.
2882       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2883       for pkg in $enableval; do
2884         IFS="$lt_save_ifs"
2885         if test "X$pkg" = "X$p"; then
2886           enable_static=yes
2887         fi
2888       done
2889       IFS="$lt_save_ifs"
2890       ;;
2891     esac
2892 else
2893   enable_static=yes
2894 fi
2895
2896
2897 # Check whether --enable-fast-install was given.
2898 if test "${enable_fast_install+set}" = set; then
2899   enableval=$enable_fast_install; p=${PACKAGE-default}
2900     case $enableval in
2901     yes) enable_fast_install=yes ;;
2902     no) enable_fast_install=no ;;
2903     *)
2904       enable_fast_install=no
2905       # Look at the argument we got.  We use all the common list separators.
2906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2907       for pkg in $enableval; do
2908         IFS="$lt_save_ifs"
2909         if test "X$pkg" = "X$p"; then
2910           enable_fast_install=yes
2911         fi
2912       done
2913       IFS="$lt_save_ifs"
2914       ;;
2915     esac
2916 else
2917   enable_fast_install=yes
2918 fi
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   if test -n "$CC"; then
2935   ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942   for ac_exec_ext in '' $ac_executable_extensions; do
2943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956   { echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6; }
2958 else
2959   { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966   ac_ct_CC=$CC
2967   # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   if test -n "$ac_ct_CC"; then
2975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982   for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_prog_ac_ct_CC="gcc"
2985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2997 echo "${ECHO_T}$ac_ct_CC" >&6; }
2998 else
2999   { echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6; }
3001 fi
3002
3003   if test "x$ac_ct_CC" = x; then
3004     CC=""
3005   else
3006     case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet.  If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&5
3011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet.  If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016     CC=$ac_ct_CC
3017   fi
3018 else
3019   CC="$ac_cv_prog_CC"
3020 fi
3021
3022 if test -z "$CC"; then
3023           if test -n "$ac_tool_prefix"; then
3024     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3028 if test "${ac_cv_prog_CC+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   if test -n "$CC"; then
3032   ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039   for ac_exec_ext in '' $ac_executable_extensions; do
3040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041     ac_cv_prog_CC="${ac_tool_prefix}cc"
3042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053   { echo "$as_me:$LINENO: result: $CC" >&5
3054 echo "${ECHO_T}$CC" >&6; }
3055 else
3056   { echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6; }
3058 fi
3059
3060
3061   fi
3062 fi
3063 if test -z "$CC"; then
3064   # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   if test -n "$CC"; then
3072   ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074   ac_prog_rejected=no
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083        ac_prog_rejected=yes
3084        continue
3085      fi
3086     ac_cv_prog_CC="cc"
3087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 if test $ac_prog_rejected = yes; then
3095   # We found a bogon in the path, so make sure we never use it.
3096   set dummy $ac_cv_prog_CC
3097   shift
3098   if test $# != 0; then
3099     # We chose a different compiler from the bogus one.
3100     # However, it has the same basename, so the bogon will be chosen
3101     # first if we set CC to just the basename; use the full file name.
3102     shift
3103     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104   fi
3105 fi
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110   { echo "$as_me:$LINENO: result: $CC" >&5
3111 echo "${ECHO_T}$CC" >&6; }
3112 else
3113   { echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$CC"; then
3120   if test -n "$ac_tool_prefix"; then
3121   for ac_prog in cl.exe
3122   do
3123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_CC+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if test -n "$CC"; then
3131   ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138   for ac_exec_ext in '' $ac_executable_extensions; do
3139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152   { echo "$as_me:$LINENO: result: $CC" >&5
3153 echo "${ECHO_T}$CC" >&6; }
3154 else
3155   { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3157 fi
3158
3159
3160     test -n "$CC" && break
3161   done
3162 fi
3163 if test -z "$CC"; then
3164   ac_ct_CC=$CC
3165   for ac_prog in cl.exe
3166 do
3167   # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3172   echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174   if test -n "$ac_ct_CC"; then
3175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182   for ac_exec_ext in '' $ac_executable_extensions; do
3183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184     ac_cv_prog_ac_ct_CC="$ac_prog"
3185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3197 echo "${ECHO_T}$ac_ct_CC" >&6; }
3198 else
3199   { echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6; }
3201 fi
3202
3203
3204   test -n "$ac_ct_CC" && break
3205 done
3206
3207   if test "x$ac_ct_CC" = x; then
3208     CC=""
3209   else
3210     case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3213 whose name does not start with the host triplet.  If you think this
3214 configuration is useful to you, please write to autoconf@gnu.org." >&5
3215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3216 whose name does not start with the host triplet.  If you think this
3217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3218 ac_tool_warned=yes ;;
3219 esac
3220     CC=$ac_ct_CC
3221   fi
3222 fi
3223
3224 fi
3225
3226
3227 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details." >&2;}
3231    { (exit 1); exit 1; }; }
3232
3233 # Provide some information about the compiler.
3234 echo "$as_me:$LINENO: checking for C compiler version" >&5
3235 ac_compiler=`set X $ac_compile; echo $2`
3236 { (ac_try="$ac_compiler --version >&5"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_compiler --version >&5") 2>&5
3243   ac_status=$?
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); }
3246 { (ac_try="$ac_compiler -v >&5"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_compiler -v >&5") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }
3256 { (ac_try="$ac_compiler -V >&5"
3257 case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262   (eval "$ac_compiler -V >&5") 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }
3266
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273
3274 int
3275 main ()
3276 {
3277
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3286 # of exeext.
3287 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3288 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3289 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290 #
3291 # List of possible output files, starting from the most likely.
3292 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3293 # only as a last resort.  b.out is created by i960 compilers.
3294 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3295 #
3296 # The IRIX 6 linker writes into existing files which may not be
3297 # executable, retaining their permissions.  Remove them first so a
3298 # subsequent execution test works.
3299 ac_rmfiles=
3300 for ac_file in $ac_files
3301 do
3302   case $ac_file in
3303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3304     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3305   esac
3306 done
3307 rm -f $ac_rmfiles
3308
3309 if { (ac_try="$ac_link_default"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_link_default") 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; then
3319   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3322 # so that the user can short-circuit this test for compilers unknown to
3323 # Autoconf.
3324 for ac_file in $ac_files ''
3325 do
3326   test -f "$ac_file" || continue
3327   case $ac_file in
3328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3329         ;;
3330     [ab].out )
3331         # We found the default executable, but exeext='' is most
3332         # certainly right.
3333         break;;
3334     *.* )
3335         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336         then :; else
3337            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338         fi
3339         # We set ac_cv_exeext here because the later test for it is not
3340         # safe: cross compilers may not add the suffix if given an `-o'
3341         # argument, so we may need to know it at that point already.
3342         # Even if this section looks crufty: it has the advantage of
3343         # actually working.
3344         break;;
3345     * )
3346         break;;
3347   esac
3348 done
3349 test "$ac_cv_exeext" = no && ac_cv_exeext=
3350
3351 else
3352   ac_file=''
3353 fi
3354
3355 { echo "$as_me:$LINENO: result: $ac_file" >&5
3356 echo "${ECHO_T}$ac_file" >&6; }
3357 if test -z "$ac_file"; then
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3362 See \`config.log' for more details." >&5
3363 echo "$as_me: error: C compiler cannot create executables
3364 See \`config.log' for more details." >&2;}
3365    { (exit 77); exit 77; }; }
3366 fi
3367
3368 ac_exeext=$ac_cv_exeext
3369
3370 # Check that the compiler produces executables we can run.  If not, either
3371 # the compiler is broken, or we cross compile.
3372 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3375 # If not cross compiling, check that we can run a simple program.
3376 if test "$cross_compiling" != yes; then
3377   if { ac_try='./$ac_file'
3378   { (case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_try") 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; }; then
3387     cross_compiling=no
3388   else
3389     if test "$cross_compiling" = maybe; then
3390         cross_compiling=yes
3391     else
3392         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot run C compiled programs.
3396 If you meant to cross compile, use \`--host'.
3397 See \`config.log' for more details." >&2;}
3398    { (exit 1); exit 1; }; }
3399     fi
3400   fi
3401 fi
3402 { echo "$as_me:$LINENO: result: yes" >&5
3403 echo "${ECHO_T}yes" >&6; }
3404
3405 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3406 ac_clean_files=$ac_clean_files_save
3407 # Check that the compiler produces executables we can run.  If not, either
3408 # the compiler is broken, or we cross compile.
3409 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3410 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3411 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3412 echo "${ECHO_T}$cross_compiling" >&6; }
3413
3414 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3415 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3416 if { (ac_try="$ac_link"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_link") 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; then
3426   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3428 # work properly (i.e., refer to `conftest.exe'), while it won't with
3429 # `rm'.
3430 for ac_file in conftest.exe conftest conftest.*; do
3431   test -f "$ac_file" || continue
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3434     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435           break;;
3436     * ) break;;
3437   esac
3438 done
3439 else
3440   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details." >&2;}
3444    { (exit 1); exit 1; }; }
3445 fi
3446
3447 rm -f conftest$ac_cv_exeext
3448 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3449 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3450
3451 rm -f conftest.$ac_ext
3452 EXEEXT=$ac_cv_exeext
3453 ac_exeext=$EXEEXT
3454 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3455 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3456 if test "${ac_cv_objext+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481   (eval "$ac_compile") 2>&5
3482   ac_status=$?
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }; then
3485   for ac_file in conftest.o conftest.obj conftest.*; do
3486   test -f "$ac_file" || continue;
3487   case $ac_file in
3488     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3489     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490        break;;
3491   esac
3492 done
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3498 See \`config.log' for more details." >&5
3499 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." >&2;}
3501    { (exit 1); exit 1; }; }
3502 fi
3503
3504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 fi
3506 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3507 echo "${ECHO_T}$ac_cv_objext" >&6; }
3508 OBJEXT=$ac_cv_objext
3509 ac_objext=$OBJEXT
3510 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525 #ifndef __GNUC__
3526        choke me
3527 #endif
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_compile") 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } && {
3547          test -z "$ac_c_werror_flag" ||
3548          test ! -s conftest.err
3549        } && test -s conftest.$ac_objext; then
3550   ac_compiler_gnu=yes
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555         ac_compiler_gnu=no
3556 fi
3557
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3563 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3564 GCC=`test $ac_compiler_gnu = yes && echo yes`
3565 ac_test_CFLAGS=${CFLAGS+set}
3566 ac_save_CFLAGS=$CFLAGS
3567 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3568 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3569 if test "${ac_cv_prog_cc_g+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   ac_save_c_werror_flag=$ac_c_werror_flag
3573    ac_c_werror_flag=yes
3574    ac_cv_prog_cc_g=no
3575    CFLAGS="-g"
3576    cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598   (eval "$ac_compile") 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } && {
3605          test -z "$ac_c_werror_flag" ||
3606          test ! -s conftest.err
3607        } && test -s conftest.$ac_objext; then
3608   ac_cv_prog_cc_g=yes
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613         CFLAGS=""
3614       cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620
3621 int
3622 main ()
3623 {
3624
3625   ;
3626   return 0;
3627 }
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_compile") 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } && {
3643          test -z "$ac_c_werror_flag" ||
3644          test ! -s conftest.err
3645        } && test -s conftest.$ac_objext; then
3646   :
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651         ac_c_werror_flag=$ac_save_c_werror_flag
3652          CFLAGS="-g"
3653          cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h.  */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h.  */
3659
3660 int
3661 main ()
3662 {
3663
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_compile") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } && {
3682          test -z "$ac_c_werror_flag" ||
3683          test ! -s conftest.err
3684        } && test -s conftest.$ac_objext; then
3685   ac_cv_prog_cc_g=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690
3691 fi
3692
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 fi
3695
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700    ac_c_werror_flag=$ac_save_c_werror_flag
3701 fi
3702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3704 if test "$ac_test_CFLAGS" = set; then
3705   CFLAGS=$ac_save_CFLAGS
3706 elif test $ac_cv_prog_cc_g = yes; then
3707   if test "$GCC" = yes; then
3708     CFLAGS="-g -O2"
3709   else
3710     CFLAGS="-g"
3711   fi
3712 else
3713   if test "$GCC" = yes; then
3714     CFLAGS="-O2"
3715   else
3716     CFLAGS=
3717   fi
3718 fi
3719 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3720 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3721 if test "${ac_cv_prog_cc_c89+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   ac_cv_prog_cc_c89=no
3725 ac_save_CC=$CC
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732 #include <stdarg.h>
3733 #include <stdio.h>
3734 #include <sys/types.h>
3735 #include <sys/stat.h>
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3740      char **p;
3741      int i;
3742 {
3743   return p[i];
3744 }
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3746 {
3747   char *s;
3748   va_list v;
3749   va_start (v,p);
3750   s = g (p, va_arg (v,int));
3751   va_end (v);
3752   return s;
3753 }
3754
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3756    function prototypes and stuff, but not '\xHH' hex character constants.
3757    These don't provoke an error unfortunately, instead are silently treated
3758    as 'x'.  The following induces an error, until -std is added to get
3759    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3760    array size at least.  It's necessary to write '\x00'==0 to get something
3761    that's true only with -std.  */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765    inside strings and character constants.  */
3766 #define FOO(x) 'x'
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 int argc;
3774 char **argv;
3775 int
3776 main ()
3777 {
3778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 do
3786   CC="$ac_save_CC $ac_arg"
3787   rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_compile") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } && {
3801          test -z "$ac_c_werror_flag" ||
3802          test ! -s conftest.err
3803        } && test -s conftest.$ac_objext; then
3804   ac_cv_prog_cc_c89=$ac_arg
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809
3810 fi
3811
3812 rm -f core conftest.err conftest.$ac_objext
3813   test "x$ac_cv_prog_cc_c89" != "xno" && break
3814 done
3815 rm -f conftest.$ac_ext
3816 CC=$ac_save_CC
3817
3818 fi
3819 # AC_CACHE_VAL
3820 case "x$ac_cv_prog_cc_c89" in
3821   x)
3822     { echo "$as_me:$LINENO: result: none needed" >&5
3823 echo "${ECHO_T}none needed" >&6; } ;;
3824   xno)
3825     { echo "$as_me:$LINENO: result: unsupported" >&5
3826 echo "${ECHO_T}unsupported" >&6; } ;;
3827   *)
3828     CC="$CC $ac_cv_prog_cc_c89"
3829     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3831 esac
3832
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840 depcc="$CC"   am_compiler_list=
3841
3842 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848   # We make a subdir and do the tests there.  Otherwise we can end up
3849   # making bogus files that we don't know about and never remove.  For
3850   # instance it was reported that on HP-UX the gcc test will end up
3851   # making a dummy file named `D' -- because `-MD' means `put the output
3852   # in D'.
3853   mkdir conftest.dir
3854   # Copy depcomp to subdir because otherwise we won't find it if we're
3855   # using a relative directory.
3856   cp "$am_depcomp" conftest.dir
3857   cd conftest.dir
3858   # We will build objects and dependencies in a subdirectory because
3859   # it helps to detect inapplicable dependency modes.  For instance
3860   # both Tru64's cc and ICC support -MD to output dependencies as a
3861   # side effect of compilation, but ICC will put the dependencies in
3862   # the current directory while Tru64 will put them in the object
3863   # directory.
3864   mkdir sub
3865
3866   am_cv_CC_dependencies_compiler_type=none
3867   if test "$am_compiler_list" = ""; then
3868      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3869   fi
3870   for depmode in $am_compiler_list; do
3871     # Setup a source with many dependencies, because some compilers
3872     # like to wrap large dependency lists on column 80 (with \), and
3873     # we should not choose a depcomp mode which is confused by this.
3874     #
3875     # We need to recreate these files for each test, as the compiler may
3876     # overwrite some of them when testing with obscure command lines.
3877     # This happens at least with the AIX C compiler.
3878     : > sub/conftest.c
3879     for i in 1 2 3 4 5 6; do
3880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3882       # Solaris 8's {/usr,}/bin/sh.
3883       touch sub/conftst$i.h
3884     done
3885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3886
3887     case $depmode in
3888     nosideeffect)
3889       # after this tag, mechanisms are not by side-effect, so they'll
3890       # only be used when explicitly requested
3891       if test "x$enable_dependency_tracking" = xyes; then
3892         continue
3893       else
3894         break
3895       fi
3896       ;;
3897     none) break ;;
3898     esac
3899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3900     # mode.  It turns out that the SunPro C++ compiler does not properly
3901     # handle `-M -o', and we need to detect this.
3902     if depmode=$depmode \
3903        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3904        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3905        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3906          >/dev/null 2>conftest.err &&
3907        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3908        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3909        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3910        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3911       # icc doesn't choke on unknown options, it will just issue warnings
3912       # or remarks (even with -Werror).  So we grep stderr for any message
3913       # that says an option was ignored or not supported.
3914       # When given -MP, icc 7.0 and 7.1 complain thusly:
3915       #   icc: Command line warning: ignoring option '-M'; no argument required
3916       # The diagnosis changed in icc 8.0:
3917       #   icc: Command line remark: option '-MP' not supported
3918       if (grep 'ignoring option' conftest.err ||
3919           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3920         am_cv_CC_dependencies_compiler_type=$depmode
3921         break
3922       fi
3923     fi
3924   done
3925
3926   cd ..
3927   rm -rf conftest.dir
3928 else
3929   am_cv_CC_dependencies_compiler_type=none
3930 fi
3931
3932 fi
3933 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3934 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3935 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3936
3937  if
3938   test "x$enable_dependency_tracking" != xno \
3939   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3940   am__fastdepCC_TRUE=
3941   am__fastdepCC_FALSE='#'
3942 else
3943   am__fastdepCC_TRUE='#'
3944   am__fastdepCC_FALSE=
3945 fi
3946
3947
3948 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3949 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3950 if test "${lt_cv_path_SED+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   # Loop through the user's path and test for sed and gsed.
3954 # Then use that list of sed's as ones to test for truncation.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for lt_ac_prog in sed gsed; do
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3963         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3964       fi
3965     done
3966   done
3967 done
3968 lt_ac_max=0
3969 lt_ac_count=0
3970 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3971 # along with /bin/sed that truncates output.
3972 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3973   test ! -f $lt_ac_sed && continue
3974   cat /dev/null > conftest.in
3975   lt_ac_count=0
3976   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3977   # Check for GNU sed and select it if it is found.
3978   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3979     lt_cv_path_SED=$lt_ac_sed
3980     break
3981   fi
3982   while true; do
3983     cat conftest.in conftest.in >conftest.tmp
3984     mv conftest.tmp conftest.in
3985     cp conftest.in conftest.nl
3986     echo >>conftest.nl
3987     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3988     cmp -s conftest.out conftest.nl || break
3989     # 10000 chars as input seems more than enough
3990     test $lt_ac_count -gt 10 && break
3991     lt_ac_count=`expr $lt_ac_count + 1`
3992     if test $lt_ac_count -gt $lt_ac_max; then
3993       lt_ac_max=$lt_ac_count
3994       lt_cv_path_SED=$lt_ac_sed
3995     fi
3996   done
3997 done
3998
3999 fi
4000
4001 SED=$lt_cv_path_SED
4002 { echo "$as_me:$LINENO: result: $SED" >&5
4003 echo "${ECHO_T}$SED" >&6; }
4004
4005 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4006 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4007 if test "${ac_cv_path_GREP+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   # Extract the first word of "grep ggrep" to use in msg output
4011 if test -z "$GREP"; then
4012 set dummy grep ggrep; ac_prog_name=$2
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   ac_path_GREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_prog in grep ggrep; do
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027     # Check for GNU ac_path_GREP and select it if it is found.
4028   # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4030 *GNU*)
4031   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4032 *)
4033   ac_count=0
4034   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035   while :
4036   do
4037     cat "conftest.in" "conftest.in" >"conftest.tmp"
4038     mv "conftest.tmp" "conftest.in"
4039     cp "conftest.in" "conftest.nl"
4040     echo 'GREP' >> "conftest.nl"
4041     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043     ac_count=`expr $ac_count + 1`
4044     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045       # Best one so far, save it but keep looking for a better one
4046       ac_cv_path_GREP="$ac_path_GREP"
4047       ac_path_GREP_max=$ac_count
4048     fi
4049     # 10*(2^10) chars as input seems more than enough
4050     test $ac_count -gt 10 && break
4051   done
4052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055
4056     $ac_path_GREP_found && break 3
4057   done
4058 done
4059
4060 done
4061 IFS=$as_save_IFS
4062
4063
4064 fi
4065
4066 GREP="$ac_cv_path_GREP"
4067 if test -z "$GREP"; then
4068   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070    { (exit 1); exit 1; }; }
4071 fi
4072
4073 else
4074   ac_cv_path_GREP=$GREP
4075 fi
4076
4077
4078 fi
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4081  GREP="$ac_cv_path_GREP"
4082
4083
4084 { echo "$as_me:$LINENO: checking for egrep" >&5
4085 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090    then ac_cv_path_EGREP="$GREP -E"
4091    else
4092      # Extract the first word of "egrep" to use in msg output
4093 if test -z "$EGREP"; then
4094 set dummy egrep; ac_prog_name=$2
4095 if test "${ac_cv_path_EGREP+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_path_EGREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_prog in egrep; do
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4108     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4109     # Check for GNU ac_path_EGREP and select it if it is found.
4110   # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4112 *GNU*)
4113   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4114 *)
4115   ac_count=0
4116   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117   while :
4118   do
4119     cat "conftest.in" "conftest.in" >"conftest.tmp"
4120     mv "conftest.tmp" "conftest.in"
4121     cp "conftest.in" "conftest.nl"
4122     echo 'EGREP' >> "conftest.nl"
4123     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125     ac_count=`expr $ac_count + 1`
4126     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127       # Best one so far, save it but keep looking for a better one
4128       ac_cv_path_EGREP="$ac_path_EGREP"
4129       ac_path_EGREP_max=$ac_count
4130     fi
4131     # 10*(2^10) chars as input seems more than enough
4132     test $ac_count -gt 10 && break
4133   done
4134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137
4138     $ac_path_EGREP_found && break 3
4139   done
4140 done
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145
4146 fi
4147
4148 EGREP="$ac_cv_path_EGREP"
4149 if test -z "$EGREP"; then
4150   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152    { (exit 1); exit 1; }; }
4153 fi
4154
4155 else
4156   ac_cv_path_EGREP=$EGREP
4157 fi
4158
4159
4160    fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4163 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4164  EGREP="$ac_cv_path_EGREP"
4165
4166
4167
4168 # Check whether --with-gnu-ld was given.
4169 if test "${with_gnu_ld+set}" = set; then
4170   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4171 else
4172   with_gnu_ld=no
4173 fi
4174
4175 ac_prog=ld
4176 if test "$GCC" = yes; then
4177   # Check if gcc -print-prog-name=ld gives a path.
4178   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4179 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4180   case $host in
4181   *-*-mingw*)
4182     # gcc leaves a trailing carriage return which upsets mingw
4183     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4184   *)
4185     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4186   esac
4187   case $ac_prog in
4188     # Accept absolute paths.
4189     [\\/]* | ?:[\\/]*)
4190       re_direlt='/[^/][^/]*/\.\./'
4191       # Canonicalize the pathname of ld
4192       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4193       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4194         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4195       done
4196       test -z "$LD" && LD="$ac_prog"
4197       ;;
4198   "")
4199     # If it fails, then pretend we aren't using GCC.
4200     ac_prog=ld
4201     ;;
4202   *)
4203     # If it is relative, then search for the first ld in PATH.
4204     with_gnu_ld=unknown
4205     ;;
4206   esac
4207 elif test "$with_gnu_ld" = yes; then
4208   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4209 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4210 else
4211   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4212 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4213 fi
4214 if test "${lt_cv_path_LD+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test -z "$LD"; then
4218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219   for ac_dir in $PATH; do
4220     IFS="$lt_save_ifs"
4221     test -z "$ac_dir" && ac_dir=.
4222     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4223       lt_cv_path_LD="$ac_dir/$ac_prog"
4224       # Check to see if the program is GNU ld.  I'd rather use --version,
4225       # but apparently some variants of GNU ld only accept -v.
4226       # Break only if it was the GNU/non-GNU ld that we prefer.
4227       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4228       *GNU* | *'with BFD'*)
4229         test "$with_gnu_ld" != no && break
4230         ;;
4231       *)
4232         test "$with_gnu_ld" != yes && break
4233         ;;
4234       esac
4235     fi
4236   done
4237   IFS="$lt_save_ifs"
4238 else
4239   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4240 fi
4241 fi
4242
4243 LD="$lt_cv_path_LD"
4244 if test -n "$LD"; then
4245   { echo "$as_me:$LINENO: result: $LD" >&5
4246 echo "${ECHO_T}$LD" >&6; }
4247 else
4248   { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4250 fi
4251 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4252 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4253    { (exit 1); exit 1; }; }
4254 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4255 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4256 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4260 case `$LD -v 2>&1 </dev/null` in
4261 *GNU* | *'with BFD'*)
4262   lt_cv_prog_gnu_ld=yes
4263   ;;
4264 *)
4265   lt_cv_prog_gnu_ld=no
4266   ;;
4267 esac
4268 fi
4269 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4270 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4271 with_gnu_ld=$lt_cv_prog_gnu_ld
4272
4273
4274 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4275 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4276 if test "${lt_cv_ld_reload_flag+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   lt_cv_ld_reload_flag='-r'
4280 fi
4281 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4282 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4283 reload_flag=$lt_cv_ld_reload_flag
4284 case $reload_flag in
4285 "" | " "*) ;;
4286 *) reload_flag=" $reload_flag" ;;
4287 esac
4288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4289 case $host_os in
4290   darwin*)
4291     if test "$GCC" = yes; then
4292       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4293     else
4294       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4295     fi
4296     ;;
4297 esac
4298
4299 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4300 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4301 if test "${lt_cv_path_NM+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   if test -n "$NM"; then
4305   # Let the user override the test.
4306   lt_cv_path_NM="$NM"
4307 else
4308   lt_nm_to_check="${ac_tool_prefix}nm"
4309   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4310     lt_nm_to_check="$lt_nm_to_check nm"
4311   fi
4312   for lt_tmp_nm in $lt_nm_to_check; do
4313     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4314     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4315       IFS="$lt_save_ifs"
4316       test -z "$ac_dir" && ac_dir=.
4317       tmp_nm="$ac_dir/$lt_tmp_nm"
4318       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4319         # Check to see if the nm accepts a BSD-compat flag.
4320         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4321         #   nm: unknown option "B" ignored
4322         # Tru64's nm complains that /dev/null is an invalid object file
4323         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4324         */dev/null* | *'Invalid file or object type'*)
4325           lt_cv_path_NM="$tmp_nm -B"
4326           break
4327           ;;
4328         *)
4329           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4330           */dev/null*)
4331             lt_cv_path_NM="$tmp_nm -p"
4332             break
4333             ;;
4334           *)
4335             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4336             continue # so that we can try to find one that supports BSD flags
4337             ;;
4338           esac
4339           ;;
4340         esac
4341       fi
4342     done
4343     IFS="$lt_save_ifs"
4344   done
4345   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4346 fi
4347 fi
4348 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4349 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4350 NM="$lt_cv_path_NM"
4351
4352 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4354 LN_S=$as_ln_s
4355 if test "$LN_S" = "ln -s"; then
4356   { echo "$as_me:$LINENO: result: yes" >&5
4357 echo "${ECHO_T}yes" >&6; }
4358 else
4359   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4360 echo "${ECHO_T}no, using $LN_S" >&6; }
4361 fi
4362
4363 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4364 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4365 if test "${lt_cv_deplibs_check_method+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   lt_cv_file_magic_cmd='$MAGIC_CMD'
4369 lt_cv_file_magic_test_file=
4370 lt_cv_deplibs_check_method='unknown'
4371 # Need to set the preceding variable on all platforms that support
4372 # interlibrary dependencies.
4373 # 'none' -- dependencies not supported.
4374 # `unknown' -- same as none, but documents that we really don't know.
4375 # 'pass_all' -- all dependencies passed with no checks.
4376 # 'test_compile' -- check by making test program.
4377 # 'file_magic [[regex]]' -- check by looking for files in library path
4378 # which responds to the $file_magic_cmd with a given extended regex.
4379 # If you have `file' or equivalent on your system and you're not sure
4380 # whether `pass_all' will *always* work, you probably want this one.
4381
4382 case $host_os in
4383 aix4* | aix5*)
4384   lt_cv_deplibs_check_method=pass_all
4385   ;;
4386
4387 beos*)
4388   lt_cv_deplibs_check_method=pass_all
4389   ;;
4390
4391 bsdi[45]*)
4392   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4393   lt_cv_file_magic_cmd='/usr/bin/file -L'
4394   lt_cv_file_magic_test_file=/shlib/libc.so
4395   ;;
4396
4397 cygwin*)
4398   # func_win32_libid is a shell function defined in ltmain.sh
4399   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4400   lt_cv_file_magic_cmd='func_win32_libid'
4401   ;;
4402
4403 mingw* | pw32*)
4404   # Base MSYS/MinGW do not provide the 'file' command needed by
4405   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4406   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4407   lt_cv_file_magic_cmd='$OBJDUMP -f'
4408   ;;
4409
4410 darwin* | rhapsody*)
4411   lt_cv_deplibs_check_method=pass_all
4412   ;;
4413
4414 freebsd* | dragonfly*)
4415   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4416     case $host_cpu in
4417     i*86 )
4418       # Not sure whether the presence of OpenBSD here was a mistake.
4419       # Let's accept both of them until this is cleared up.
4420       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4421       lt_cv_file_magic_cmd=/usr/bin/file
4422       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4423       ;;
4424     esac
4425   else
4426     lt_cv_deplibs_check_method=pass_all
4427   fi
4428   ;;
4429
4430 gnu*)
4431   lt_cv_deplibs_check_method=pass_all
4432   ;;
4433
4434 hpux10.20* | hpux11*)
4435   lt_cv_file_magic_cmd=/usr/bin/file
4436   case $host_cpu in
4437   ia64*)
4438     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4439     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4440     ;;
4441   hppa*64*)
4442     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]'
4443     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4444     ;;
4445   *)
4446     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4447     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4448     ;;
4449   esac
4450   ;;
4451
4452 interix3*)
4453   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4454   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4455   ;;
4456
4457 irix5* | irix6* | nonstopux*)
4458   case $LD in
4459   *-32|*"-32 ") libmagic=32-bit;;
4460   *-n32|*"-n32 ") libmagic=N32;;
4461   *-64|*"-64 ") libmagic=64-bit;;
4462   *) libmagic=never-match;;
4463   esac
4464   lt_cv_deplibs_check_method=pass_all
4465   ;;
4466
4467 # This must be Linux ELF.
4468 linux* | k*bsd*-gnu)
4469   lt_cv_deplibs_check_method=pass_all
4470   ;;
4471
4472 netbsd* | netbsdelf*-gnu)
4473   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4474     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4475   else
4476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4477   fi
4478   ;;
4479
4480 newos6*)
4481   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4482   lt_cv_file_magic_cmd=/usr/bin/file
4483   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4484   ;;
4485
4486 nto-qnx*)
4487   lt_cv_deplibs_check_method=unknown
4488   ;;
4489
4490 openbsd*)
4491   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4493   else
4494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4495   fi
4496   ;;
4497
4498 osf3* | osf4* | osf5*)
4499   lt_cv_deplibs_check_method=pass_all
4500   ;;
4501
4502 solaris*)
4503   lt_cv_deplibs_check_method=pass_all
4504   ;;
4505
4506 sysv4 | sysv4.3*)
4507   case $host_vendor in
4508   motorola)
4509     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]'
4510     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4511     ;;
4512   ncr)
4513     lt_cv_deplibs_check_method=pass_all
4514     ;;
4515   sequent)
4516     lt_cv_file_magic_cmd='/bin/file'
4517     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4518     ;;
4519   sni)
4520     lt_cv_file_magic_cmd='/bin/file'
4521     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4522     lt_cv_file_magic_test_file=/lib/libc.so
4523     ;;
4524   siemens)
4525     lt_cv_deplibs_check_method=pass_all
4526     ;;
4527   pc)
4528     lt_cv_deplibs_check_method=pass_all
4529     ;;
4530   esac
4531   ;;
4532
4533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4534   lt_cv_deplibs_check_method=pass_all
4535   ;;
4536 esac
4537
4538 fi
4539 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4540 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4541 file_magic_cmd=$lt_cv_file_magic_cmd
4542 deplibs_check_method=$lt_cv_deplibs_check_method
4543 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4544
4545
4546
4547
4548 # If no C compiler was specified, use CC.
4549 LTCC=${LTCC-"$CC"}
4550
4551 # If no C compiler flags were specified, use CFLAGS.
4552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4553
4554 # Allow CC to be a program name with arguments.
4555 compiler=$CC
4556
4557
4558 # Check whether --enable-libtool-lock was given.
4559 if test "${enable_libtool_lock+set}" = set; then
4560   enableval=$enable_libtool_lock;
4561 fi
4562
4563 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4564
4565 # Some flags need to be propagated to the compiler or linker for good
4566 # libtool support.
4567 case $host in
4568 ia64-*-hpux*)
4569   # Find out which ABI we are using.
4570   echo 'int i;' > conftest.$ac_ext
4571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572   (eval $ac_compile) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; then
4576     case `/usr/bin/file conftest.$ac_objext` in
4577     *ELF-32*)
4578       HPUX_IA64_MODE="32"
4579       ;;
4580     *ELF-64*)
4581       HPUX_IA64_MODE="64"
4582       ;;
4583     esac
4584   fi
4585   rm -rf conftest*
4586   ;;
4587 *-*-irix6*)
4588   # Find out which ABI we are using.
4589   echo '#line 4589 "configure"' > conftest.$ac_ext
4590   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591   (eval $ac_compile) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; then
4595    if test "$lt_cv_prog_gnu_ld" = yes; then
4596     case `/usr/bin/file conftest.$ac_objext` in
4597     *32-bit*)
4598       LD="${LD-ld} -melf32bsmip"
4599       ;;
4600     *N32*)
4601       LD="${LD-ld} -melf32bmipn32"
4602       ;;
4603     *64-bit*)
4604       LD="${LD-ld} -melf64bmip"
4605       ;;
4606     esac
4607    else
4608     case `/usr/bin/file conftest.$ac_objext` in
4609     *32-bit*)
4610       LD="${LD-ld} -32"
4611       ;;
4612     *N32*)
4613       LD="${LD-ld} -n32"
4614       ;;
4615     *64-bit*)
4616       LD="${LD-ld} -64"
4617       ;;
4618     esac
4619    fi
4620   fi
4621   rm -rf conftest*
4622   ;;
4623
4624 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4625   # Find out which ABI we are using.
4626   echo 'int i;' > conftest.$ac_ext
4627   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628   (eval $ac_compile) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; then
4632     case `/usr/bin/file conftest.o` in
4633     *32-bit*)
4634       case $host in
4635         x86_64-*linux*)
4636           LD="${LD-ld} -m elf_i386"
4637           ;;
4638         ppc64-*linux*|powerpc64-*linux*)
4639           LD="${LD-ld} -m elf32ppclinux"
4640           ;;
4641         s390x-*linux*)
4642           LD="${LD-ld} -m elf_s390"
4643           ;;
4644         sparc64-*linux*)
4645           LD="${LD-ld} -m elf32_sparc"
4646           ;;
4647       esac
4648       ;;
4649     *64-bit*)
4650       case $host in
4651         x86_64-*linux*)
4652           LD="${LD-ld} -m elf_x86_64"
4653           ;;
4654         ppc*-*linux*|powerpc*-*linux*)
4655           LD="${LD-ld} -m elf64ppc"
4656           ;;
4657         s390*-*linux*)
4658           LD="${LD-ld} -m elf64_s390"
4659           ;;
4660         sparc*-*linux*)
4661           LD="${LD-ld} -m elf64_sparc"
4662           ;;
4663       esac
4664       ;;
4665     esac
4666   fi
4667   rm -rf conftest*
4668   ;;
4669
4670 *-*-sco3.2v5*)
4671   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4672   SAVE_CFLAGS="$CFLAGS"
4673   CFLAGS="$CFLAGS -belf"
4674   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4675 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4676 if test "${lt_cv_cc_needs_belf+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685      cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691
4692 int
4693 main ()
4694 {
4695
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (ac_try="$ac_link"
4702 case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_link") 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } && {
4714          test -z "$ac_c_werror_flag" ||
4715          test ! -s conftest.err
4716        } && test -s conftest$ac_exeext &&
4717        $as_test_x conftest$ac_exeext; then
4718   lt_cv_cc_needs_belf=yes
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723         lt_cv_cc_needs_belf=no
4724 fi
4725
4726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4727       conftest$ac_exeext conftest.$ac_ext
4728      ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733
4734 fi
4735 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4736 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4737   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4738     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4739     CFLAGS="$SAVE_CFLAGS"
4740   fi
4741   ;;
4742 sparc*-*solaris*)
4743   # Find out which ABI we are using.
4744   echo 'int i;' > conftest.$ac_ext
4745   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746   (eval $ac_compile) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; then
4750     case `/usr/bin/file conftest.o` in
4751     *64-bit*)
4752       case $lt_cv_prog_gnu_ld in
4753       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4754       *)    LD="${LD-ld} -64" ;;
4755       esac
4756       ;;
4757     esac
4758   fi
4759   rm -rf conftest*
4760   ;;
4761
4762 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4763   if test -n "$ac_tool_prefix"; then
4764   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4769   echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771   if test -n "$DLLTOOL"; then
4772   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779   for ac_exec_ext in '' $ac_executable_extensions; do
4780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783     break 2
4784   fi
4785 done
4786 done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 DLLTOOL=$ac_cv_prog_DLLTOOL
4792 if test -n "$DLLTOOL"; then
4793   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4794 echo "${ECHO_T}$DLLTOOL" >&6; }
4795 else
4796   { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4798 fi
4799
4800
4801 fi
4802 if test -z "$ac_cv_prog_DLLTOOL"; then
4803   ac_ct_DLLTOOL=$DLLTOOL
4804   # Extract the first word of "dlltool", so it can be a program name with args.
4805 set dummy dlltool; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   if test -n "$ac_ct_DLLTOOL"; then
4812   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4828
4829 fi
4830 fi
4831 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4832 if test -n "$ac_ct_DLLTOOL"; then
4833   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4834 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4835 else
4836   { echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6; }
4838 fi
4839
4840   if test "x$ac_ct_DLLTOOL" = x; then
4841     DLLTOOL="false"
4842   else
4843     case $cross_compiling:$ac_tool_warned in
4844 yes:)
4845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4846 whose name does not start with the host triplet.  If you think this
4847 configuration is useful to you, please write to autoconf@gnu.org." >&5
4848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4849 whose name does not start with the host triplet.  If you think this
4850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4851 ac_tool_warned=yes ;;
4852 esac
4853     DLLTOOL=$ac_ct_DLLTOOL
4854   fi
4855 else
4856   DLLTOOL="$ac_cv_prog_DLLTOOL"
4857 fi
4858
4859   if test -n "$ac_tool_prefix"; then
4860   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}as; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_AS+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$AS"; then
4868   ac_cv_prog_AS="$AS" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_prog_AS="${ac_tool_prefix}as"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 AS=$ac_cv_prog_AS
4888 if test -n "$AS"; then
4889   { echo "$as_me:$LINENO: result: $AS" >&5
4890 echo "${ECHO_T}$AS" >&6; }
4891 else
4892   { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4895
4896
4897 fi
4898 if test -z "$ac_cv_prog_AS"; then
4899   ac_ct_AS=$AS
4900   # Extract the first word of "as", so it can be a program name with args.
4901 set dummy as; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$ac_ct_AS"; then
4908   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_prog_ac_ct_AS="as"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4928 if test -n "$ac_ct_AS"; then
4929   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4930 echo "${ECHO_T}$ac_ct_AS" >&6; }
4931 else
4932   { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4934 fi
4935
4936   if test "x$ac_ct_AS" = x; then
4937     AS="false"
4938   else
4939     case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4942 whose name does not start with the host triplet.  If you think this
4943 configuration is useful to you, please write to autoconf@gnu.org." >&5
4944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet.  If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4947 ac_tool_warned=yes ;;
4948 esac
4949     AS=$ac_ct_AS
4950   fi
4951 else
4952   AS="$ac_cv_prog_AS"
4953 fi
4954
4955   if test -n "$ac_tool_prefix"; then
4956   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4960 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   if test -n "$OBJDUMP"; then
4964   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978 done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 OBJDUMP=$ac_cv_prog_OBJDUMP
4984 if test -n "$OBJDUMP"; then
4985   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4986 echo "${ECHO_T}$OBJDUMP" >&6; }
4987 else
4988   { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4990 fi
4991
4992
4993 fi
4994 if test -z "$ac_cv_prog_OBJDUMP"; then
4995   ac_ct_OBJDUMP=$OBJDUMP
4996   # Extract the first word of "objdump", so it can be a program name with args.
4997 set dummy objdump; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   if test -n "$ac_ct_OBJDUMP"; then
5004   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011   for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5024 if test -n "$ac_ct_OBJDUMP"; then
5025   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5026 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5027 else
5028   { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5030 fi
5031
5032   if test "x$ac_ct_OBJDUMP" = x; then
5033     OBJDUMP="false"
5034   else
5035     case $cross_compiling:$ac_tool_warned in
5036 yes:)
5037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5038 whose name does not start with the host triplet.  If you think this
5039 configuration is useful to you, please write to autoconf@gnu.org." >&5
5040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5041 whose name does not start with the host triplet.  If you think this
5042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5043 ac_tool_warned=yes ;;
5044 esac
5045     OBJDUMP=$ac_ct_OBJDUMP
5046   fi
5047 else
5048   OBJDUMP="$ac_cv_prog_OBJDUMP"
5049 fi
5050
5051   ;;
5052
5053 esac
5054
5055 need_locks="$enable_libtool_lock"
5056
5057
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5064 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5065 # On Suns, sometimes $CPP names a directory.
5066 if test -n "$CPP" && test -d "$CPP"; then
5067   CPP=
5068 fi
5069 if test -z "$CPP"; then
5070   if test "${ac_cv_prog_CPP+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073       # Double quotes because CPP needs to be expanded
5074     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5075     do
5076       ac_preproc_ok=false
5077 for ac_c_preproc_warn_flag in '' yes
5078 do
5079   # Use a header file that comes with gcc, so configuring glibc
5080   # with a fresh cross-compiler works.
5081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082   # <limits.h> exists even on freestanding compilers.
5083   # On the NeXT, cc -E runs the code through the compiler's parser,
5084   # not just through cpp. "Syntax error" is here to catch this case.
5085   cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 #ifdef __STDC__
5092 # include <limits.h>
5093 #else
5094 # include <assert.h>
5095 #endif
5096                      Syntax error
5097 _ACEOF
5098 if { (ac_try="$ac_cpp conftest.$ac_ext"
5099 case "(($ac_try" in
5100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101   *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } >/dev/null && {
5111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5112          test ! -s conftest.err
5113        }; then
5114   :
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Broken: fails on valid input.
5120 continue
5121 fi
5122
5123 rm -f conftest.err conftest.$ac_ext
5124
5125   # OK, works on sane cases.  Now check whether nonexistent headers
5126   # can be detected and how.
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 #include <ac_nonexistent.h>
5134 _ACEOF
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } >/dev/null && {
5148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5149          test ! -s conftest.err
5150        }; then
5151   # Broken: success on invalid input.
5152 continue
5153 else
5154   echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157   # Passes both tests.
5158 ac_preproc_ok=:
5159 break
5160 fi
5161
5162 rm -f conftest.err conftest.$ac_ext
5163
5164 done
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5168   break
5169 fi
5170
5171     done
5172     ac_cv_prog_CPP=$CPP
5173
5174 fi
5175   CPP=$ac_cv_prog_CPP
5176 else
5177   ac_cv_prog_CPP=$CPP
5178 fi
5179 { echo "$as_me:$LINENO: result: $CPP" >&5
5180 echo "${ECHO_T}$CPP" >&6; }
5181 ac_preproc_ok=false
5182 for ac_c_preproc_warn_flag in '' yes
5183 do
5184   # Use a header file that comes with gcc, so configuring glibc
5185   # with a fresh cross-compiler works.
5186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5187   # <limits.h> exists even on freestanding compilers.
5188   # On the NeXT, cc -E runs the code through the compiler's parser,
5189   # not just through cpp. "Syntax error" is here to catch this case.
5190   cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h.  */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h.  */
5196 #ifdef __STDC__
5197 # include <limits.h>
5198 #else
5199 # include <assert.h>
5200 #endif
5201                      Syntax error
5202 _ACEOF
5203 if { (ac_try="$ac_cpp conftest.$ac_ext"
5204 case "(($ac_try" in
5205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206   *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } >/dev/null && {
5216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5217          test ! -s conftest.err
5218        }; then
5219   :
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224   # Broken: fails on valid input.
5225 continue
5226 fi
5227
5228 rm -f conftest.err conftest.$ac_ext
5229
5230   # OK, works on sane cases.  Now check whether nonexistent headers
5231   # can be detected and how.
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 #include <ac_nonexistent.h>
5239 _ACEOF
5240 if { (ac_try="$ac_cpp conftest.$ac_ext"
5241 case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5247   ac_status=$?
5248   grep -v '^ *+' conftest.er1 >conftest.err
5249   rm -f conftest.er1
5250   cat conftest.err >&5
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } >/dev/null && {
5253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5254          test ! -s conftest.err
5255        }; then
5256   # Broken: success on invalid input.
5257 continue
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262   # Passes both tests.
5263 ac_preproc_ok=:
5264 break
5265 fi
5266
5267 rm -f conftest.err conftest.$ac_ext
5268
5269 done
5270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5271 rm -f conftest.err conftest.$ac_ext
5272 if $ac_preproc_ok; then
5273   :
5274 else
5275   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5276 See \`config.log' for more details." >&5
5277 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5278 See \`config.log' for more details." >&2;}
5279    { (exit 1); exit 1; }; }
5280 fi
5281
5282 ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288
5289 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5291 if test "${ac_cv_header_stdc+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h.  */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h.  */
5300 #include <stdlib.h>
5301 #include <stdarg.h>
5302 #include <string.h>
5303 #include <float.h>
5304
5305 int
5306 main ()
5307 {
5308
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5315 case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_compile") 2>conftest.er1
5321   ac_status=$?
5322   grep -v '^ *+' conftest.er1 >conftest.err
5323   rm -f conftest.er1
5324   cat conftest.err >&5
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } && {
5327          test -z "$ac_c_werror_flag" ||
5328          test ! -s conftest.err
5329        } && test -s conftest.$ac_objext; then
5330   ac_cv_header_stdc=yes
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335         ac_cv_header_stdc=no
5336 fi
5337
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339
5340 if test $ac_cv_header_stdc = yes; then
5341   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5342   cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h.  */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h.  */
5348 #include <string.h>
5349
5350 _ACEOF
5351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352   $EGREP "memchr" >/dev/null 2>&1; then
5353   :
5354 else
5355   ac_cv_header_stdc=no
5356 fi
5357 rm -f conftest*
5358
5359 fi
5360
5361 if test $ac_cv_header_stdc = yes; then
5362   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5363   cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 #include <stdlib.h>
5370
5371 _ACEOF
5372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373   $EGREP "free" >/dev/null 2>&1; then
5374   :
5375 else
5376   ac_cv_header_stdc=no
5377 fi
5378 rm -f conftest*
5379
5380 fi
5381
5382 if test $ac_cv_header_stdc = yes; then
5383   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5384   if test "$cross_compiling" = yes; then
5385   :
5386 else
5387   cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h.  */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h.  */
5393 #include <ctype.h>
5394 #include <stdlib.h>
5395 #if ((' ' & 0x0FF) == 0x020)
5396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398 #else
5399 # define ISLOWER(c) \
5400                    (('a' <= (c) && (c) <= 'i') \
5401                      || ('j' <= (c) && (c) <= 'r') \
5402                      || ('s' <= (c) && (c) <= 'z'))
5403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5404 #endif
5405
5406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407 int
5408 main ()
5409 {
5410   int i;
5411   for (i = 0; i < 256; i++)
5412     if (XOR (islower (i), ISLOWER (i))
5413         || toupper (i) != TOUPPER (i))
5414       return 2;
5415   return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest$ac_exeext
5419 if { (ac_try="$ac_link"
5420 case "(($ac_try" in
5421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422   *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425   (eval "$ac_link") 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429   { (case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_try") 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   :
5439 else
5440   echo "$as_me: program exited with status $ac_status" >&5
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ( exit $ac_status )
5445 ac_cv_header_stdc=no
5446 fi
5447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5448 fi
5449
5450
5451 fi
5452 fi
5453 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5454 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5455 if test $ac_cv_header_stdc = yes; then
5456
5457 cat >>confdefs.h <<\_ACEOF
5458 #define STDC_HEADERS 1
5459 _ACEOF
5460
5461 fi
5462
5463 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5474                   inttypes.h stdint.h unistd.h
5475 do
5476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 $ac_includes_default
5489
5490 #include <$ac_header>
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_compile") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } && {
5506          test -z "$ac_c_werror_flag" ||
5507          test ! -s conftest.err
5508        } && test -s conftest.$ac_objext; then
5509   eval "$as_ac_Header=yes"
5510 else
5511   echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514         eval "$as_ac_Header=no"
5515 fi
5516
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519 ac_res=`eval echo '${'$as_ac_Header'}'`
5520                { echo "$as_me:$LINENO: result: $ac_res" >&5
5521 echo "${ECHO_T}$ac_res" >&6; }
5522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5523   cat >>confdefs.h <<_ACEOF
5524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5525 _ACEOF
5526
5527 fi
5528
5529 done
5530
5531
5532
5533 for ac_header in dlfcn.h
5534 do
5535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 fi
5542 ac_res=`eval echo '${'$as_ac_Header'}'`
5543                { echo "$as_me:$LINENO: result: $ac_res" >&5
5544 echo "${ECHO_T}$ac_res" >&6; }
5545 else
5546   # Is the header compilable?
5547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5549 cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556 #include <$ac_header>
5557 _ACEOF
5558 rm -f conftest.$ac_objext
5559 if { (ac_try="$ac_compile"
5560 case "(($ac_try" in
5561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562   *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565   (eval "$ac_compile") 2>conftest.er1
5566   ac_status=$?
5567   grep -v '^ *+' conftest.er1 >conftest.err
5568   rm -f conftest.er1
5569   cat conftest.err >&5
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } && {
5572          test -z "$ac_c_werror_flag" ||
5573          test ! -s conftest.err
5574        } && test -s conftest.$ac_objext; then
5575   ac_header_compiler=yes
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580         ac_header_compiler=no
5581 fi
5582
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5585 echo "${ECHO_T}$ac_header_compiler" >&6; }
5586
5587 # Is the header present?
5588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596 #include <$ac_header>
5597 _ACEOF
5598 if { (ac_try="$ac_cpp conftest.$ac_ext"
5599 case "(($ac_try" in
5600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601   *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5605   ac_status=$?
5606   grep -v '^ *+' conftest.er1 >conftest.err
5607   rm -f conftest.er1
5608   cat conftest.err >&5
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } >/dev/null && {
5611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5612          test ! -s conftest.err
5613        }; then
5614   ac_header_preproc=yes
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619   ac_header_preproc=no
5620 fi
5621
5622 rm -f conftest.err conftest.$ac_ext
5623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5624 echo "${ECHO_T}$ac_header_preproc" >&6; }
5625
5626 # So?  What about this header?
5627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5628   yes:no: )
5629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5633     ac_header_preproc=yes
5634     ;;
5635   no:yes:* )
5636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5648     ( cat <<\_ASBOX
5649 ## -------------------------------------------------- ##
5650 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5651 ## -------------------------------------------------- ##
5652 _ASBOX
5653      ) | sed "s/^/$as_me: WARNING:     /" >&2
5654     ;;
5655 esac
5656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   eval "$as_ac_Header=\$ac_header_preproc"
5662 fi
5663 ac_res=`eval echo '${'$as_ac_Header'}'`
5664                { echo "$as_me:$LINENO: result: $ac_res" >&5
5665 echo "${ECHO_T}$ac_res" >&6; }
5666
5667 fi
5668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5669   cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5671 _ACEOF
5672
5673 fi
5674
5675 done
5676
5677 ac_ext=cpp
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 if test -z "$CXX"; then
5683   if test -n "$CCC"; then
5684     CXX=$CCC
5685   else
5686     if test -n "$ac_tool_prefix"; then
5687   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5688   do
5689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693 if test "${ac_cv_prog_CXX+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -n "$CXX"; then
5697   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704   for ac_exec_ext in '' $ac_executable_extensions; do
5705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 fi
5715 fi
5716 CXX=$ac_cv_prog_CXX
5717 if test -n "$CXX"; then
5718   { echo "$as_me:$LINENO: result: $CXX" >&5
5719 echo "${ECHO_T}$CXX" >&6; }
5720 else
5721   { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723 fi
5724
5725
5726     test -n "$CXX" && break
5727   done
5728 fi
5729 if test -z "$CXX"; then
5730   ac_ct_CXX=$CXX
5731   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5732 do
5733   # Extract the first word of "$ac_prog", so it can be a program name with args.
5734 set dummy $ac_prog; ac_word=$2
5735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -n "$ac_ct_CXX"; then
5741   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746   IFS=$as_save_IFS
5747   test -z "$as_dir" && as_dir=.
5748   for ac_exec_ext in '' $ac_executable_extensions; do
5749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750     ac_cv_prog_ac_ct_CXX="$ac_prog"
5751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752     break 2
5753   fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761 if test -n "$ac_ct_CXX"; then
5762   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5763 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5764 else
5765   { echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6; }
5767 fi
5768
5769
5770   test -n "$ac_ct_CXX" && break
5771 done
5772
5773   if test "x$ac_ct_CXX" = x; then
5774     CXX="g++"
5775   else
5776     case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779 whose name does not start with the host triplet.  If you think this
5780 configuration is useful to you, please write to autoconf@gnu.org." >&5
5781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782 whose name does not start with the host triplet.  If you think this
5783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786     CXX=$ac_ct_CXX
5787   fi
5788 fi
5789
5790   fi
5791 fi
5792 # Provide some information about the compiler.
5793 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5794 ac_compiler=`set X $ac_compile; echo $2`
5795 { (ac_try="$ac_compiler --version >&5"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801   (eval "$ac_compiler --version >&5") 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }
5805 { (ac_try="$ac_compiler -v >&5"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811   (eval "$ac_compiler -v >&5") 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }
5815 { (ac_try="$ac_compiler -V >&5"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compiler -V >&5") 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }
5825
5826 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5827 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5828 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841 #ifndef __GNUC__
5842        choke me
5843 #endif
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_compile") 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } && {
5863          test -z "$ac_cxx_werror_flag" ||
5864          test ! -s conftest.err
5865        } && test -s conftest.$ac_objext; then
5866   ac_compiler_gnu=yes
5867 else
5868   echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871         ac_compiler_gnu=no
5872 fi
5873
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5876
5877 fi
5878 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5879 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5880 GXX=`test $ac_compiler_gnu = yes && echo yes`
5881 ac_test_CXXFLAGS=${CXXFLAGS+set}
5882 ac_save_CXXFLAGS=$CXXFLAGS
5883 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5884 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_cxx_g+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5889    ac_cxx_werror_flag=yes
5890    ac_cv_prog_cxx_g=no
5891    CXXFLAGS="-g"
5892    cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898
5899 int
5900 main ()
5901 {
5902
5903   ;
5904   return 0;
5905 }
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (ac_try="$ac_compile"
5909 case "(($ac_try" in
5910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911   *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914   (eval "$ac_compile") 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } && {
5921          test -z "$ac_cxx_werror_flag" ||
5922          test ! -s conftest.err
5923        } && test -s conftest.$ac_objext; then
5924   ac_cv_prog_cxx_g=yes
5925 else
5926   echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929         CXXFLAGS=""
5930       cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936
5937 int
5938 main ()
5939 {
5940
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_compile") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } && {
5959          test -z "$ac_cxx_werror_flag" ||
5960          test ! -s conftest.err
5961        } && test -s conftest.$ac_objext; then
5962   :
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5968          CXXFLAGS="-g"
5969          cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975
5976 int
5977 main ()
5978 {
5979
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5986 case "(($ac_try" in
5987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988   *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991   (eval "$ac_compile") 2>conftest.er1
5992   ac_status=$?
5993   grep -v '^ *+' conftest.er1 >conftest.err
5994   rm -f conftest.er1
5995   cat conftest.err >&5
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } && {
5998          test -z "$ac_cxx_werror_flag" ||
5999          test ! -s conftest.err
6000        } && test -s conftest.$ac_objext; then
6001   ac_cv_prog_cxx_g=yes
6002 else
6003   echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006
6007 fi
6008
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6017 fi
6018 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6019 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6020 if test "$ac_test_CXXFLAGS" = set; then
6021   CXXFLAGS=$ac_save_CXXFLAGS
6022 elif test $ac_cv_prog_cxx_g = yes; then
6023   if test "$GXX" = yes; then
6024     CXXFLAGS="-g -O2"
6025   else
6026     CXXFLAGS="-g"
6027   fi
6028 else
6029   if test "$GXX" = yes; then
6030     CXXFLAGS="-O2"
6031   else
6032     CXXFLAGS=
6033   fi
6034 fi
6035 ac_ext=cpp
6036 ac_cpp='$CXXCPP $CPPFLAGS'
6037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6040
6041 depcc="$CXX"  am_compiler_list=
6042
6043 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6044 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6045 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6049   # We make a subdir and do the tests there.  Otherwise we can end up
6050   # making bogus files that we don't know about and never remove.  For
6051   # instance it was reported that on HP-UX the gcc test will end up
6052   # making a dummy file named `D' -- because `-MD' means `put the output
6053   # in D'.
6054   mkdir conftest.dir
6055   # Copy depcomp to subdir because otherwise we won't find it if we're
6056   # using a relative directory.
6057   cp "$am_depcomp" conftest.dir
6058   cd conftest.dir
6059   # We will build objects and dependencies in a subdirectory because
6060   # it helps to detect inapplicable dependency modes.  For instance
6061   # both Tru64's cc and ICC support -MD to output dependencies as a
6062   # side effect of compilation, but ICC will put the dependencies in
6063   # the current directory while Tru64 will put them in the object
6064   # directory.
6065   mkdir sub
6066
6067   am_cv_CXX_dependencies_compiler_type=none
6068   if test "$am_compiler_list" = ""; then
6069      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6070   fi
6071   for depmode in $am_compiler_list; do
6072     # Setup a source with many dependencies, because some compilers
6073     # like to wrap large dependency lists on column 80 (with \), and
6074     # we should not choose a depcomp mode which is confused by this.
6075     #
6076     # We need to recreate these files for each test, as the compiler may
6077     # overwrite some of them when testing with obscure command lines.
6078     # This happens at least with the AIX C compiler.
6079     : > sub/conftest.c
6080     for i in 1 2 3 4 5 6; do
6081       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6082       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6083       # Solaris 8's {/usr,}/bin/sh.
6084       touch sub/conftst$i.h
6085     done
6086     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6087
6088     case $depmode in
6089     nosideeffect)
6090       # after this tag, mechanisms are not by side-effect, so they'll
6091       # only be used when explicitly requested
6092       if test "x$enable_dependency_tracking" = xyes; then
6093         continue
6094       else
6095         break
6096       fi
6097       ;;
6098     none) break ;;
6099     esac
6100     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6101     # mode.  It turns out that the SunPro C++ compiler does not properly
6102     # handle `-M -o', and we need to detect this.
6103     if depmode=$depmode \
6104        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6105        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6106        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6107          >/dev/null 2>conftest.err &&
6108        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6109        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6110        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6111        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6112       # icc doesn't choke on unknown options, it will just issue warnings
6113       # or remarks (even with -Werror).  So we grep stderr for any message
6114       # that says an option was ignored or not supported.
6115       # When given -MP, icc 7.0 and 7.1 complain thusly:
6116       #   icc: Command line warning: ignoring option '-M'; no argument required
6117       # The diagnosis changed in icc 8.0:
6118       #   icc: Command line remark: option '-MP' not supported
6119       if (grep 'ignoring option' conftest.err ||
6120           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6121         am_cv_CXX_dependencies_compiler_type=$depmode
6122         break
6123       fi
6124     fi
6125   done
6126
6127   cd ..
6128   rm -rf conftest.dir
6129 else
6130   am_cv_CXX_dependencies_compiler_type=none
6131 fi
6132
6133 fi
6134 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6135 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6136 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6137
6138  if
6139   test "x$enable_dependency_tracking" != xno \
6140   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6141   am__fastdepCXX_TRUE=
6142   am__fastdepCXX_FALSE='#'
6143 else
6144   am__fastdepCXX_TRUE='#'
6145   am__fastdepCXX_FALSE=
6146 fi
6147
6148
6149
6150
6151 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6152     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6153     (test "X$CXX" != "Xg++"))) ; then
6154   ac_ext=cpp
6155 ac_cpp='$CXXCPP $CPPFLAGS'
6156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6159 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6160 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6161 if test -z "$CXXCPP"; then
6162   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165       # Double quotes because CXXCPP needs to be expanded
6166     for CXXCPP in "$CXX -E" "/lib/cpp"
6167     do
6168       ac_preproc_ok=false
6169 for ac_cxx_preproc_warn_flag in '' yes
6170 do
6171   # Use a header file that comes with gcc, so configuring glibc
6172   # with a fresh cross-compiler works.
6173   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174   # <limits.h> exists even on freestanding compilers.
6175   # On the NeXT, cc -E runs the code through the compiler's parser,
6176   # not just through cpp. "Syntax error" is here to catch this case.
6177   cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 #ifdef __STDC__
6184 # include <limits.h>
6185 #else
6186 # include <assert.h>
6187 #endif
6188                      Syntax error
6189 _ACEOF
6190 if { (ac_try="$ac_cpp conftest.$ac_ext"
6191 case "(($ac_try" in
6192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193   *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6197   ac_status=$?
6198   grep -v '^ *+' conftest.er1 >conftest.err
6199   rm -f conftest.er1
6200   cat conftest.err >&5
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } >/dev/null && {
6203          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6204          test ! -s conftest.err
6205        }; then
6206   :
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211   # Broken: fails on valid input.
6212 continue
6213 fi
6214
6215 rm -f conftest.err conftest.$ac_ext
6216
6217   # OK, works on sane cases.  Now check whether nonexistent headers
6218   # can be detected and how.
6219   cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225 #include <ac_nonexistent.h>
6226 _ACEOF
6227 if { (ac_try="$ac_cpp conftest.$ac_ext"
6228 case "(($ac_try" in
6229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230   *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6234   ac_status=$?
6235   grep -v '^ *+' conftest.er1 >conftest.err
6236   rm -f conftest.er1
6237   cat conftest.err >&5
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } >/dev/null && {
6240          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6241          test ! -s conftest.err
6242        }; then
6243   # Broken: success on invalid input.
6244 continue
6245 else
6246   echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249   # Passes both tests.
6250 ac_preproc_ok=:
6251 break
6252 fi
6253
6254 rm -f conftest.err conftest.$ac_ext
6255
6256 done
6257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258 rm -f conftest.err conftest.$ac_ext
6259 if $ac_preproc_ok; then
6260   break
6261 fi
6262
6263     done
6264     ac_cv_prog_CXXCPP=$CXXCPP
6265
6266 fi
6267   CXXCPP=$ac_cv_prog_CXXCPP
6268 else
6269   ac_cv_prog_CXXCPP=$CXXCPP
6270 fi
6271 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6272 echo "${ECHO_T}$CXXCPP" >&6; }
6273 ac_preproc_ok=false
6274 for ac_cxx_preproc_warn_flag in '' yes
6275 do
6276   # Use a header file that comes with gcc, so configuring glibc
6277   # with a fresh cross-compiler works.
6278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279   # <limits.h> exists even on freestanding compilers.
6280   # On the NeXT, cc -E runs the code through the compiler's parser,
6281   # not just through cpp. "Syntax error" is here to catch this case.
6282   cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #ifdef __STDC__
6289 # include <limits.h>
6290 #else
6291 # include <assert.h>
6292 #endif
6293                      Syntax error
6294 _ACEOF
6295 if { (ac_try="$ac_cpp conftest.$ac_ext"
6296 case "(($ac_try" in
6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298   *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6302   ac_status=$?
6303   grep -v '^ *+' conftest.er1 >conftest.err
6304   rm -f conftest.er1
6305   cat conftest.err >&5
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); } >/dev/null && {
6308          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6309          test ! -s conftest.err
6310        }; then
6311   :
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316   # Broken: fails on valid input.
6317 continue
6318 fi
6319
6320 rm -f conftest.err conftest.$ac_ext
6321
6322   # OK, works on sane cases.  Now check whether nonexistent headers
6323   # can be detected and how.
6324   cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 #include <ac_nonexistent.h>
6331 _ACEOF
6332 if { (ac_try="$ac_cpp conftest.$ac_ext"
6333 case "(($ac_try" in
6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335   *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6339   ac_status=$?
6340   grep -v '^ *+' conftest.er1 >conftest.err
6341   rm -f conftest.er1
6342   cat conftest.err >&5
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } >/dev/null && {
6345          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6346          test ! -s conftest.err
6347        }; then
6348   # Broken: success on invalid input.
6349 continue
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354   # Passes both tests.
6355 ac_preproc_ok=:
6356 break
6357 fi
6358
6359 rm -f conftest.err conftest.$ac_ext
6360
6361 done
6362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363 rm -f conftest.err conftest.$ac_ext
6364 if $ac_preproc_ok; then
6365   :
6366 else
6367   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6368 See \`config.log' for more details." >&5
6369 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370 See \`config.log' for more details." >&2;}
6371    { (exit 1); exit 1; }; }
6372 fi
6373
6374 ac_ext=cpp
6375 ac_cpp='$CXXCPP $CPPFLAGS'
6376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6379
6380 fi
6381
6382
6383
6384
6385
6386 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6387
6388 # find the maximum length of command line arguments
6389 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6390 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6391 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394     i=0
6395   teststring="ABCD"
6396
6397   case $build_os in
6398   msdosdjgpp*)
6399     # On DJGPP, this test can blow up pretty badly due to problems in libc
6400     # (any single argument exceeding 2000 bytes causes a buffer overrun
6401     # during glob expansion).  Even if it were fixed, the result of this
6402     # check would be larger than it should be.
6403     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6404     ;;
6405
6406   gnu*)
6407     # Under GNU Hurd, this test is not required because there is
6408     # no limit to the length of command line arguments.
6409     # Libtool will interpret -1 as no limit whatsoever
6410     lt_cv_sys_max_cmd_len=-1;
6411     ;;
6412
6413   cygwin* | mingw*)
6414     # On Win9x/ME, this test blows up -- it succeeds, but takes
6415     # about 5 minutes as the teststring grows exponentially.
6416     # Worse, since 9x/ME are not pre-emptively multitasking,
6417     # you end up with a "frozen" computer, even though with patience
6418     # the test eventually succeeds (with a max line length of 256k).
6419     # Instead, let's just punt: use the minimum linelength reported by
6420     # all of the supported platforms: 8192 (on NT/2K/XP).
6421     lt_cv_sys_max_cmd_len=8192;
6422     ;;
6423
6424   amigaos*)
6425     # On AmigaOS with pdksh, this test takes hours, literally.
6426     # So we just punt and use a minimum line length of 8192.
6427     lt_cv_sys_max_cmd_len=8192;
6428     ;;
6429
6430   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6431     # This has been around since 386BSD, at least.  Likely further.
6432     if test -x /sbin/sysctl; then
6433       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6434     elif test -x /usr/sbin/sysctl; then
6435       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6436     else
6437       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6438     fi
6439     # And add a safety zone
6440     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6441     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6442     ;;
6443
6444   interix*)
6445     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6446     lt_cv_sys_max_cmd_len=196608
6447     ;;
6448
6449   osf*)
6450     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6451     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6452     # nice to cause kernel panics so lets avoid the loop below.
6453     # First set a reasonable default.
6454     lt_cv_sys_max_cmd_len=16384
6455     #
6456     if test -x /sbin/sysconfig; then
6457       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6458         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6459       esac
6460     fi
6461     ;;
6462   sco3.2v5*)
6463     lt_cv_sys_max_cmd_len=102400
6464     ;;
6465   sysv5* | sco5v6* | sysv4.2uw2*)
6466     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6467     if test -n "$kargmax"; then
6468       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6469     else
6470       lt_cv_sys_max_cmd_len=32768
6471     fi
6472     ;;
6473   *)
6474     # If test is not a shell built-in, we'll probably end up computing a
6475     # maximum length that is only half of the actual maximum length, but
6476     # we can't tell.
6477     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6478     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6479                = "XX$teststring") >/dev/null 2>&1 &&
6480             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6481             lt_cv_sys_max_cmd_len=$new_result &&
6482             test $i != 17 # 1/2 MB should be enough
6483     do
6484       i=`expr $i + 1`
6485       teststring=$teststring$teststring
6486     done
6487     teststring=
6488     # Add a significant safety factor because C++ compilers can tack on massive
6489     # amounts of additional arguments before passing them to the linker.
6490     # It appears as though 1/2 is a usable value.
6491     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6492     ;;
6493   esac
6494
6495 fi
6496
6497 if test -n $lt_cv_sys_max_cmd_len ; then
6498   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6499 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6500 else
6501   { echo "$as_me:$LINENO: result: none" >&5
6502 echo "${ECHO_T}none" >&6; }
6503 fi
6504
6505
6506
6507
6508 # Check for command to grab the raw symbol name followed by C symbol from nm.
6509 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6510 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6511 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514
6515 # These are sane defaults that work on at least a few old systems.
6516 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6517
6518 # Character class describing NM global symbol codes.
6519 symcode='[BCDEGRST]'
6520
6521 # Regexp to match symbols that can be accessed directly from C.
6522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6523
6524 # Transform an extracted symbol line into a proper C declaration
6525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6526
6527 # Transform an extracted symbol line into symbol name and symbol address
6528 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'"
6529
6530 # Define system-specific variables.
6531 case $host_os in
6532 aix*)
6533   symcode='[BCDT]'
6534   ;;
6535 cygwin* | mingw* | pw32*)
6536   symcode='[ABCDGISTW]'
6537   ;;
6538 hpux*) # Its linker distinguishes data from code symbols
6539   if test "$host_cpu" = ia64; then
6540     symcode='[ABCDEGRST]'
6541   fi
6542   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543   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'"
6544   ;;
6545 linux* | k*bsd*-gnu)
6546   if test "$host_cpu" = ia64; then
6547     symcode='[ABCDGIRSTW]'
6548     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6549     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'"
6550   fi
6551   ;;
6552 irix* | nonstopux*)
6553   symcode='[BCDEGRST]'
6554   ;;
6555 osf*)
6556   symcode='[BCDEGQRST]'
6557   ;;
6558 solaris*)
6559   symcode='[BDRT]'
6560   ;;
6561 sco3.2v5*)
6562   symcode='[DT]'
6563   ;;
6564 sysv4.2uw2*)
6565   symcode='[DT]'
6566   ;;
6567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6568   symcode='[ABDT]'
6569   ;;
6570 sysv4)
6571   symcode='[DFNSTU]'
6572   ;;
6573 esac
6574
6575 # Handle CRLF in mingw tool chain
6576 opt_cr=
6577 case $build_os in
6578 mingw*)
6579   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6580   ;;
6581 esac
6582
6583 # If we're using GNU nm, then use its standard symbol codes.
6584 case `$NM -V 2>&1` in
6585 *GNU* | *'with BFD'*)
6586   symcode='[ABCDGIRSTW]' ;;
6587 esac
6588
6589 # Try without a prefix undercore, then with it.
6590 for ac_symprfx in "" "_"; do
6591
6592   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6593   symxfrm="\\1 $ac_symprfx\\2 \\2"
6594
6595   # Write the raw and C identifiers.
6596   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6597
6598   # Check to see that the pipe works correctly.
6599   pipe_works=no
6600
6601   rm -f conftest*
6602   cat > conftest.$ac_ext <<EOF
6603 #ifdef __cplusplus
6604 extern "C" {
6605 #endif
6606 char nm_test_var;
6607 void nm_test_func(){}
6608 #ifdef __cplusplus
6609 }
6610 #endif
6611 int main(){nm_test_var='a';nm_test_func();return(0);}
6612 EOF
6613
6614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615   (eval $ac_compile) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; then
6619     # Now try to grab the symbols.
6620     nlist=conftest.nm
6621     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6622   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } && test -s "$nlist"; then
6626       # Try sorting and uniquifying the output.
6627       if sort "$nlist" | uniq > "$nlist"T; then
6628         mv -f "$nlist"T "$nlist"
6629       else
6630         rm -f "$nlist"T
6631       fi
6632
6633       # Make sure that we snagged all the symbols we need.
6634       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6635         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6636           cat <<EOF > conftest.$ac_ext
6637 #ifdef __cplusplus
6638 extern "C" {
6639 #endif
6640
6641 EOF
6642           # Now generate the symbol file.
6643           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6644
6645           cat <<EOF >> conftest.$ac_ext
6646 #if defined (__STDC__) && __STDC__
6647 # define lt_ptr_t void *
6648 #else
6649 # define lt_ptr_t char *
6650 # define const
6651 #endif
6652
6653 /* The mapping between symbol names and symbols. */
6654 const struct {
6655   const char *name;
6656   lt_ptr_t address;
6657 }
6658 lt_preloaded_symbols[] =
6659 {
6660 EOF
6661           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6662           cat <<\EOF >> conftest.$ac_ext
6663   {0, (lt_ptr_t) 0}
6664 };
6665
6666 #ifdef __cplusplus
6667 }
6668 #endif
6669 EOF
6670           # Now try linking the two files.
6671           mv conftest.$ac_objext conftstm.$ac_objext
6672           lt_save_LIBS="$LIBS"
6673           lt_save_CFLAGS="$CFLAGS"
6674           LIBS="conftstm.$ac_objext"
6675           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6676           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677   (eval $ac_link) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6681             pipe_works=yes
6682           fi
6683           LIBS="$lt_save_LIBS"
6684           CFLAGS="$lt_save_CFLAGS"
6685         else
6686           echo "cannot find nm_test_func in $nlist" >&5
6687         fi
6688       else
6689         echo "cannot find nm_test_var in $nlist" >&5
6690       fi
6691     else
6692       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6693     fi
6694   else
6695     echo "$progname: failed program was:" >&5
6696     cat conftest.$ac_ext >&5
6697   fi
6698   rm -f conftest* conftst*
6699
6700   # Do not use the global_symbol_pipe unless it works.
6701   if test "$pipe_works" = yes; then
6702     break
6703   else
6704     lt_cv_sys_global_symbol_pipe=
6705   fi
6706 done
6707
6708 fi
6709
6710 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6711   lt_cv_sys_global_symbol_to_cdecl=
6712 fi
6713 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6714   { echo "$as_me:$LINENO: result: failed" >&5
6715 echo "${ECHO_T}failed" >&6; }
6716 else
6717   { echo "$as_me:$LINENO: result: ok" >&5
6718 echo "${ECHO_T}ok" >&6; }
6719 fi
6720
6721 { echo "$as_me:$LINENO: checking for objdir" >&5
6722 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6723 if test "${lt_cv_objdir+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   rm -f .libs 2>/dev/null
6727 mkdir .libs 2>/dev/null
6728 if test -d .libs; then
6729   lt_cv_objdir=.libs
6730 else
6731   # MS-DOS does not allow filenames that begin with a dot.
6732   lt_cv_objdir=_libs
6733 fi
6734 rmdir .libs 2>/dev/null
6735 fi
6736 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6737 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6738 objdir=$lt_cv_objdir
6739
6740
6741
6742
6743
6744 case $host_os in
6745 aix3*)
6746   # AIX sometimes has problems with the GCC collect2 program.  For some
6747   # reason, if we set the COLLECT_NAMES environment variable, the problems
6748   # vanish in a puff of smoke.
6749   if test "X${COLLECT_NAMES+set}" != Xset; then
6750     COLLECT_NAMES=
6751     export COLLECT_NAMES
6752   fi
6753   ;;
6754 esac
6755
6756 # Sed substitution that helps us do robust quoting.  It backslashifies
6757 # metacharacters that are still active within double-quoted strings.
6758 Xsed='sed -e 1s/^X//'
6759 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6760
6761 # Same as above, but do not quote variable references.
6762 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6763
6764 # Sed substitution to delay expansion of an escaped shell variable in a
6765 # double_quote_subst'ed string.
6766 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6767
6768 # Sed substitution to avoid accidental globbing in evaled expressions
6769 no_glob_subst='s/\*/\\\*/g'
6770
6771 # Constants:
6772 rm="rm -f"
6773
6774 # Global variables:
6775 default_ofile=libtool
6776 can_build_shared=yes
6777
6778 # All known linkers require a `.a' archive for static linking (except MSVC,
6779 # which needs '.lib').
6780 libext=a
6781 ltmain="$ac_aux_dir/ltmain.sh"
6782 ofile="$default_ofile"
6783 with_gnu_ld="$lt_cv_prog_gnu_ld"
6784
6785 if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ar; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_AR+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$AR"; then
6794   ac_cv_prog_AR="$AR" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_AR="${ac_tool_prefix}ar"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 AR=$ac_cv_prog_AR
6814 if test -n "$AR"; then
6815   { echo "$as_me:$LINENO: result: $AR" >&5
6816 echo "${ECHO_T}$AR" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_AR"; then
6825   ac_ct_AR=$AR
6826   # Extract the first word of "ar", so it can be a program name with args.
6827 set dummy ar; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test -n "$ac_ct_AR"; then
6834   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_AR="ar"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6854 if test -n "$ac_ct_AR"; then
6855   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6856 echo "${ECHO_T}$ac_ct_AR" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_AR" = x; then
6863     AR="false"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     AR=$ac_ct_AR
6876   fi
6877 else
6878   AR="$ac_cv_prog_AR"
6879 fi
6880
6881 if test -n "$ac_tool_prefix"; then
6882   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_prog_RANLIB+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   if test -n "$RANLIB"; then
6890   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 RANLIB=$ac_cv_prog_RANLIB
6910 if test -n "$RANLIB"; then
6911   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6912 echo "${ECHO_T}$RANLIB" >&6; }
6913 else
6914   { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6916 fi
6917
6918
6919 fi
6920 if test -z "$ac_cv_prog_RANLIB"; then
6921   ac_ct_RANLIB=$RANLIB
6922   # Extract the first word of "ranlib", so it can be a program name with args.
6923 set dummy ranlib; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   if test -n "$ac_ct_RANLIB"; then
6930   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937   for ac_exec_ext in '' $ac_executable_extensions; do
6938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939     ac_cv_prog_ac_ct_RANLIB="ranlib"
6940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6950 if test -n "$ac_ct_RANLIB"; then
6951   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6952 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6953 else
6954   { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6956 fi
6957
6958   if test "x$ac_ct_RANLIB" = x; then
6959     RANLIB=":"
6960   else
6961     case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6964 whose name does not start with the host triplet.  If you think this
6965 configuration is useful to you, please write to autoconf@gnu.org." >&5
6966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6967 whose name does not start with the host triplet.  If you think this
6968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6969 ac_tool_warned=yes ;;
6970 esac
6971     RANLIB=$ac_ct_RANLIB
6972   fi
6973 else
6974   RANLIB="$ac_cv_prog_RANLIB"
6975 fi
6976
6977 if test -n "$ac_tool_prefix"; then
6978   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}strip; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_prog_STRIP+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   if test -n "$STRIP"; then
6986   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993   for ac_exec_ext in '' $ac_executable_extensions; do
6994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 STRIP=$ac_cv_prog_STRIP
7006 if test -n "$STRIP"; then
7007   { echo "$as_me:$LINENO: result: $STRIP" >&5
7008 echo "${ECHO_T}$STRIP" >&6; }
7009 else
7010   { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7012 fi
7013
7014
7015 fi
7016 if test -z "$ac_cv_prog_STRIP"; then
7017   ac_ct_STRIP=$STRIP
7018   # Extract the first word of "strip", so it can be a program name with args.
7019 set dummy strip; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   if test -n "$ac_ct_STRIP"; then
7026   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035     ac_cv_prog_ac_ct_STRIP="strip"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7046 if test -n "$ac_ct_STRIP"; then
7047   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7048 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7049 else
7050   { echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6; }
7052 fi
7053
7054   if test "x$ac_ct_STRIP" = x; then
7055     STRIP=":"
7056   else
7057     case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet.  If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&5
7062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7063 whose name does not start with the host triplet.  If you think this
7064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067     STRIP=$ac_ct_STRIP
7068   fi
7069 else
7070   STRIP="$ac_cv_prog_STRIP"
7071 fi
7072
7073
7074 old_CC="$CC"
7075 old_CFLAGS="$CFLAGS"
7076
7077 # Set sane defaults for various variables
7078 test -z "$AR" && AR=ar
7079 test -z "$AR_FLAGS" && AR_FLAGS=cru
7080 test -z "$AS" && AS=as
7081 test -z "$CC" && CC=cc
7082 test -z "$LTCC" && LTCC=$CC
7083 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7084 test -z "$DLLTOOL" && DLLTOOL=dlltool
7085 test -z "$LD" && LD=ld
7086 test -z "$LN_S" && LN_S="ln -s"
7087 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7088 test -z "$NM" && NM=nm
7089 test -z "$SED" && SED=sed
7090 test -z "$OBJDUMP" && OBJDUMP=objdump
7091 test -z "$RANLIB" && RANLIB=:
7092 test -z "$STRIP" && STRIP=:
7093 test -z "$ac_objext" && ac_objext=o
7094
7095 # Determine commands to create old-style static archives.
7096 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7097 old_postinstall_cmds='chmod 644 $oldlib'
7098 old_postuninstall_cmds=
7099
7100 if test -n "$RANLIB"; then
7101   case $host_os in
7102   openbsd*)
7103     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7104     ;;
7105   *)
7106     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7107     ;;
7108   esac
7109   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7110 fi
7111
7112 for cc_temp in $compiler""; do
7113   case $cc_temp in
7114     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7115     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7116     \-*) ;;
7117     *) break;;
7118   esac
7119 done
7120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7121
7122
7123 # Only perform the check for file, if the check method requires it
7124 case $deplibs_check_method in
7125 file_magic*)
7126   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7127     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7128 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7129 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   case $MAGIC_CMD in
7133 [\\/*] |  ?:[\\/]*)
7134   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7135   ;;
7136 *)
7137   lt_save_MAGIC_CMD="$MAGIC_CMD"
7138   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7139   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7140   for ac_dir in $ac_dummy; do
7141     IFS="$lt_save_ifs"
7142     test -z "$ac_dir" && ac_dir=.
7143     if test -f $ac_dir/${ac_tool_prefix}file; then
7144       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7145       if test -n "$file_magic_test_file"; then
7146         case $deplibs_check_method in
7147         "file_magic "*)
7148           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7149           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7151             $EGREP "$file_magic_regex" > /dev/null; then
7152             :
7153           else
7154             cat <<EOF 1>&2
7155
7156 *** Warning: the command libtool uses to detect shared libraries,
7157 *** $file_magic_cmd, produces output that libtool cannot recognize.
7158 *** The result is that libtool may fail to recognize shared libraries
7159 *** as such.  This will affect the creation of libtool libraries that
7160 *** depend on shared libraries, but programs linked with such libtool
7161 *** libraries will work regardless of this problem.  Nevertheless, you
7162 *** may want to report the problem to your system manager and/or to
7163 *** bug-libtool@gnu.org
7164
7165 EOF
7166           fi ;;
7167         esac
7168       fi
7169       break
7170     fi
7171   done
7172   IFS="$lt_save_ifs"
7173   MAGIC_CMD="$lt_save_MAGIC_CMD"
7174   ;;
7175 esac
7176 fi
7177
7178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179 if test -n "$MAGIC_CMD"; then
7180   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7181 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7182 else
7183   { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7185 fi
7186
7187 if test -z "$lt_cv_path_MAGIC_CMD"; then
7188   if test -n "$ac_tool_prefix"; then
7189     { echo "$as_me:$LINENO: checking for file" >&5
7190 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   case $MAGIC_CMD in
7195 [\\/*] |  ?:[\\/]*)
7196   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7197   ;;
7198 *)
7199   lt_save_MAGIC_CMD="$MAGIC_CMD"
7200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7201   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7202   for ac_dir in $ac_dummy; do
7203     IFS="$lt_save_ifs"
7204     test -z "$ac_dir" && ac_dir=.
7205     if test -f $ac_dir/file; then
7206       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7207       if test -n "$file_magic_test_file"; then
7208         case $deplibs_check_method in
7209         "file_magic "*)
7210           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7211           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7213             $EGREP "$file_magic_regex" > /dev/null; then
7214             :
7215           else
7216             cat <<EOF 1>&2
7217
7218 *** Warning: the command libtool uses to detect shared libraries,
7219 *** $file_magic_cmd, produces output that libtool cannot recognize.
7220 *** The result is that libtool may fail to recognize shared libraries
7221 *** as such.  This will affect the creation of libtool libraries that
7222 *** depend on shared libraries, but programs linked with such libtool
7223 *** libraries will work regardless of this problem.  Nevertheless, you
7224 *** may want to report the problem to your system manager and/or to
7225 *** bug-libtool@gnu.org
7226
7227 EOF
7228           fi ;;
7229         esac
7230       fi
7231       break
7232     fi
7233   done
7234   IFS="$lt_save_ifs"
7235   MAGIC_CMD="$lt_save_MAGIC_CMD"
7236   ;;
7237 esac
7238 fi
7239
7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241 if test -n "$MAGIC_CMD"; then
7242   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7243 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249   else
7250     MAGIC_CMD=:
7251   fi
7252 fi
7253
7254   fi
7255   ;;
7256 esac
7257
7258 enable_dlopen=no
7259 enable_win32_dll=yes
7260
7261 # Check whether --enable-libtool-lock was given.
7262 if test "${enable_libtool_lock+set}" = set; then
7263   enableval=$enable_libtool_lock;
7264 fi
7265
7266 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7267
7268
7269 # Check whether --with-pic was given.
7270 if test "${with_pic+set}" = set; then
7271   withval=$with_pic; pic_mode="$withval"
7272 else
7273   pic_mode=default
7274 fi
7275
7276 test -z "$pic_mode" && pic_mode=default
7277
7278 # Use C for the default configuration in the libtool script
7279 tagname=
7280 lt_save_CC="$CC"
7281 ac_ext=c
7282 ac_cpp='$CPP $CPPFLAGS'
7283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286
7287
7288 # Source file extension for C test sources.
7289 ac_ext=c
7290
7291 # Object file extension for compiled C test sources.
7292 objext=o
7293 objext=$objext
7294
7295 # Code to be used in simple compile tests
7296 lt_simple_compile_test_code="int some_variable = 0;\n"
7297
7298 # Code to be used in simple link tests
7299 lt_simple_link_test_code='int main(){return(0);}\n'
7300
7301
7302 # If no C compiler was specified, use CC.
7303 LTCC=${LTCC-"$CC"}
7304
7305 # If no C compiler flags were specified, use CFLAGS.
7306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7307
7308 # Allow CC to be a program name with arguments.
7309 compiler=$CC
7310
7311
7312 # save warnings/boilerplate of simple test code
7313 ac_outfile=conftest.$ac_objext
7314 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7316 _lt_compiler_boilerplate=`cat conftest.err`
7317 $rm conftest*
7318
7319 ac_outfile=conftest.$ac_objext
7320 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7322 _lt_linker_boilerplate=`cat conftest.err`
7323 $rm conftest*
7324
7325
7326
7327 lt_prog_compiler_no_builtin_flag=
7328
7329 if test "$GCC" = yes; then
7330   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7331
7332
7333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   lt_cv_prog_compiler_rtti_exceptions=no
7339   ac_outfile=conftest.$ac_objext
7340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7341    lt_compiler_flag="-fno-rtti -fno-exceptions"
7342    # Insert the option either (1) after the last *FLAGS variable, or
7343    # (2) before a word containing "conftest.", or (3) at the end.
7344    # Note that $ac_compile itself does not contain backslashes and begins
7345    # with a dollar sign (not a hyphen), so the echo should work correctly.
7346    # The option is referenced via a variable to avoid confusing sed.
7347    lt_compile=`echo "$ac_compile" | $SED \
7348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7350    -e 's:$: $lt_compiler_flag:'`
7351    (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
7352    (eval "$lt_compile" 2>conftest.err)
7353    ac_status=$?
7354    cat conftest.err >&5
7355    echo "$as_me:7355: \$? = $ac_status" >&5
7356    if (exit $ac_status) && test -s "$ac_outfile"; then
7357      # The compiler can only warn and ignore the option if not recognized
7358      # So say no if there are warnings other than the usual output.
7359      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7360      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7361      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7362        lt_cv_prog_compiler_rtti_exceptions=yes
7363      fi
7364    fi
7365    $rm conftest*
7366
7367 fi
7368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7370
7371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7372     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7373 else
7374     :
7375 fi
7376
7377 fi
7378
7379 lt_prog_compiler_wl=
7380 lt_prog_compiler_pic=
7381 lt_prog_compiler_static=
7382
7383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7385
7386   if test "$GCC" = yes; then
7387     lt_prog_compiler_wl='-Wl,'
7388     lt_prog_compiler_static='-static'
7389
7390     case $host_os in
7391       aix*)
7392       # All AIX code is PIC.
7393       if test "$host_cpu" = ia64; then
7394         # AIX 5 now supports IA64 processor
7395         lt_prog_compiler_static='-Bstatic'
7396       fi
7397       ;;
7398
7399     amigaos*)
7400       # FIXME: we need at least 68020 code to build shared libraries, but
7401       # adding the `-m68020' flag to GCC prevents building anything better,
7402       # like `-m68040'.
7403       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7404       ;;
7405
7406     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7407       # PIC is the default for these OSes.
7408       ;;
7409
7410     mingw* | pw32* | os2*)
7411       # This hack is so that the source file can tell whether it is being
7412       # built for inclusion in a dll (and should export symbols for example).
7413       lt_prog_compiler_pic='-DDLL_EXPORT'
7414       ;;
7415
7416     darwin* | rhapsody*)
7417       # PIC is the default on this platform
7418       # Common symbols not allowed in MH_DYLIB files
7419       lt_prog_compiler_pic='-fno-common'
7420       ;;
7421
7422     interix3*)
7423       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424       # Instead, we relocate shared libraries at runtime.
7425       ;;
7426
7427     msdosdjgpp*)
7428       # Just because we use GCC doesn't mean we suddenly get shared libraries
7429       # on systems that don't support them.
7430       lt_prog_compiler_can_build_shared=no
7431       enable_shared=no
7432       ;;
7433
7434     sysv4*MP*)
7435       if test -d /usr/nec; then
7436         lt_prog_compiler_pic=-Kconform_pic
7437       fi
7438       ;;
7439
7440     hpux*)
7441       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7442       # not for PA HP-UX.
7443       case $host_cpu in
7444       hppa*64*|ia64*)
7445         # +Z the default
7446         ;;
7447       *)
7448         lt_prog_compiler_pic='-fPIC'
7449         ;;
7450       esac
7451       ;;
7452
7453     *)
7454       lt_prog_compiler_pic='-fPIC'
7455       ;;
7456     esac
7457   else
7458     # PORTME Check for flag to pass linker flags through the system compiler.
7459     case $host_os in
7460     aix*)
7461       lt_prog_compiler_wl='-Wl,'
7462       if test "$host_cpu" = ia64; then
7463         # AIX 5 now supports IA64 processor
7464         lt_prog_compiler_static='-Bstatic'
7465       else
7466         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7467       fi
7468       ;;
7469       darwin*)
7470         # PIC is the default on this platform
7471         # Common symbols not allowed in MH_DYLIB files
7472        case $cc_basename in
7473          xlc*)
7474          lt_prog_compiler_pic='-qnocommon'
7475          lt_prog_compiler_wl='-Wl,'
7476          ;;
7477        esac
7478        ;;
7479
7480     mingw* | pw32* | os2*)
7481       # This hack is so that the source file can tell whether it is being
7482       # built for inclusion in a dll (and should export symbols for example).
7483       lt_prog_compiler_pic='-DDLL_EXPORT'
7484       ;;
7485
7486     hpux9* | hpux10* | hpux11*)
7487       lt_prog_compiler_wl='-Wl,'
7488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7489       # not for PA HP-UX.
7490       case $host_cpu in
7491       hppa*64*|ia64*)
7492         # +Z the default
7493         ;;
7494       *)
7495         lt_prog_compiler_pic='+Z'
7496         ;;
7497       esac
7498       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7499       lt_prog_compiler_static='${wl}-a ${wl}archive'
7500       ;;
7501
7502     irix5* | irix6* | nonstopux*)
7503       lt_prog_compiler_wl='-Wl,'
7504       # PIC (with -KPIC) is the default.
7505       lt_prog_compiler_static='-non_shared'
7506       ;;
7507
7508     newsos6)
7509       lt_prog_compiler_pic='-KPIC'
7510       lt_prog_compiler_static='-Bstatic'
7511       ;;
7512
7513     linux* | k*bsd*-gnu)
7514       case $cc_basename in
7515       icc* | ecc*)
7516         lt_prog_compiler_wl='-Wl,'
7517         lt_prog_compiler_pic='-KPIC'
7518         lt_prog_compiler_static='-static'
7519         ;;
7520       pgcc* | pgf77* | pgf90* | pgf95*)
7521         # Portland Group compilers (*not* the Pentium gcc compiler,
7522         # which looks to be a dead project)
7523         lt_prog_compiler_wl='-Wl,'
7524         lt_prog_compiler_pic='-fpic'
7525         lt_prog_compiler_static='-Bstatic'
7526         ;;
7527       ccc*)
7528         lt_prog_compiler_wl='-Wl,'
7529         # All Alpha code is PIC.
7530         lt_prog_compiler_static='-non_shared'
7531         ;;
7532       esac
7533       ;;
7534
7535     osf3* | osf4* | osf5*)
7536       lt_prog_compiler_wl='-Wl,'
7537       # All OSF/1 code is PIC.
7538       lt_prog_compiler_static='-non_shared'
7539       ;;
7540
7541     solaris*)
7542       lt_prog_compiler_pic='-KPIC'
7543       lt_prog_compiler_static='-Bstatic'
7544       case $cc_basename in
7545       f77* | f90* | f95*)
7546         lt_prog_compiler_wl='-Qoption ld ';;
7547       *)
7548         lt_prog_compiler_wl='-Wl,';;
7549       esac
7550       ;;
7551
7552     sunos4*)
7553       lt_prog_compiler_wl='-Qoption ld '
7554       lt_prog_compiler_pic='-PIC'
7555       lt_prog_compiler_static='-Bstatic'
7556       ;;
7557
7558     sysv4 | sysv4.2uw2* | sysv4.3*)
7559       lt_prog_compiler_wl='-Wl,'
7560       lt_prog_compiler_pic='-KPIC'
7561       lt_prog_compiler_static='-Bstatic'
7562       ;;
7563
7564     sysv4*MP*)
7565       if test -d /usr/nec ;then
7566         lt_prog_compiler_pic='-Kconform_pic'
7567         lt_prog_compiler_static='-Bstatic'
7568       fi
7569       ;;
7570
7571     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7572       lt_prog_compiler_wl='-Wl,'
7573       lt_prog_compiler_pic='-KPIC'
7574       lt_prog_compiler_static='-Bstatic'
7575       ;;
7576
7577     unicos*)
7578       lt_prog_compiler_wl='-Wl,'
7579       lt_prog_compiler_can_build_shared=no
7580       ;;
7581
7582     uts4*)
7583       lt_prog_compiler_pic='-pic'
7584       lt_prog_compiler_static='-Bstatic'
7585       ;;
7586
7587     *)
7588       lt_prog_compiler_can_build_shared=no
7589       ;;
7590     esac
7591   fi
7592
7593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7594 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7595
7596 #
7597 # Check to make sure the PIC flag actually works.
7598 #
7599 if test -n "$lt_prog_compiler_pic"; then
7600
7601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7603 if test "${lt_prog_compiler_pic_works+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   lt_prog_compiler_pic_works=no
7607   ac_outfile=conftest.$ac_objext
7608    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7609    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7610    # Insert the option either (1) after the last *FLAGS variable, or
7611    # (2) before a word containing "conftest.", or (3) at the end.
7612    # Note that $ac_compile itself does not contain backslashes and begins
7613    # with a dollar sign (not a hyphen), so the echo should work correctly.
7614    # The option is referenced via a variable to avoid confusing sed.
7615    lt_compile=`echo "$ac_compile" | $SED \
7616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7618    -e 's:$: $lt_compiler_flag:'`
7619    (eval echo "\"\$as_me:7619: $lt_compile\"" >&5)
7620    (eval "$lt_compile" 2>conftest.err)
7621    ac_status=$?
7622    cat conftest.err >&5
7623    echo "$as_me:7623: \$? = $ac_status" >&5
7624    if (exit $ac_status) && test -s "$ac_outfile"; then
7625      # The compiler can only warn and ignore the option if not recognized
7626      # So say no if there are warnings other than the usual output.
7627      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7628      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7629      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7630        lt_prog_compiler_pic_works=yes
7631      fi
7632    fi
7633    $rm conftest*
7634
7635 fi
7636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7637 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7638
7639 if test x"$lt_prog_compiler_pic_works" = xyes; then
7640     case $lt_prog_compiler_pic in
7641      "" | " "*) ;;
7642      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7643      esac
7644 else
7645     lt_prog_compiler_pic=
7646      lt_prog_compiler_can_build_shared=no
7647 fi
7648
7649 fi
7650 case $host_os in
7651   # For platforms which do not support PIC, -DPIC is meaningless:
7652   *djgpp*)
7653     lt_prog_compiler_pic=
7654     ;;
7655   *)
7656     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7657     ;;
7658 esac
7659
7660 #
7661 # Check to make sure the static flag actually works.
7662 #
7663 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   lt_prog_compiler_static_works=no
7670    save_LDFLAGS="$LDFLAGS"
7671    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7672    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674      # The linker can only warn and ignore the option if not recognized
7675      # So say no if there are warnings
7676      if test -s conftest.err; then
7677        # Append any errors to the config.log.
7678        cat conftest.err 1>&5
7679        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7680        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7681        if diff conftest.exp conftest.er2 >/dev/null; then
7682          lt_prog_compiler_static_works=yes
7683        fi
7684      else
7685        lt_prog_compiler_static_works=yes
7686      fi
7687    fi
7688    $rm conftest*
7689    LDFLAGS="$save_LDFLAGS"
7690
7691 fi
7692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7694
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7696     :
7697 else
7698     lt_prog_compiler_static=
7699 fi
7700
7701
7702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7704 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   lt_cv_prog_compiler_c_o=no
7708    $rm -r conftest 2>/dev/null
7709    mkdir conftest
7710    cd conftest
7711    mkdir out
7712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7713
7714    lt_compiler_flag="-o out/conftest2.$ac_objext"
7715    # Insert the option either (1) after the last *FLAGS variable, or
7716    # (2) before a word containing "conftest.", or (3) at the end.
7717    # Note that $ac_compile itself does not contain backslashes and begins
7718    # with a dollar sign (not a hyphen), so the echo should work correctly.
7719    lt_compile=`echo "$ac_compile" | $SED \
7720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722    -e 's:$: $lt_compiler_flag:'`
7723    (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724    (eval "$lt_compile" 2>out/conftest.err)
7725    ac_status=$?
7726    cat out/conftest.err >&5
7727    echo "$as_me:7727: \$? = $ac_status" >&5
7728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7729    then
7730      # The compiler can only warn and ignore the option if not recognized
7731      # So say no if there are warnings
7732      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7733      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7734      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7735        lt_cv_prog_compiler_c_o=yes
7736      fi
7737    fi
7738    chmod u+w . 2>&5
7739    $rm conftest*
7740    # SGI C++ compiler will create directory out/ii_files/ for
7741    # template instantiation
7742    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7743    $rm out/* && rmdir out
7744    cd ..
7745    rmdir conftest
7746    $rm conftest*
7747
7748 fi
7749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7751
7752
7753 hard_links="nottested"
7754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7755   # do not overwrite the value of need_locks provided by the user
7756   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7758   hard_links=yes
7759   $rm conftest*
7760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7761   touch conftest.a
7762   ln conftest.a conftest.b 2>&5 || hard_links=no
7763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7764   { echo "$as_me:$LINENO: result: $hard_links" >&5
7765 echo "${ECHO_T}$hard_links" >&6; }
7766   if test "$hard_links" = no; then
7767     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7769     need_locks=warn
7770   fi
7771 else
7772   need_locks=no
7773 fi
7774
7775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7777
7778   runpath_var=
7779   allow_undefined_flag=
7780   enable_shared_with_static_runtimes=no
7781   archive_cmds=
7782   archive_expsym_cmds=
7783   old_archive_From_new_cmds=
7784   old_archive_from_expsyms_cmds=
7785   export_dynamic_flag_spec=
7786   whole_archive_flag_spec=
7787   thread_safe_flag_spec=
7788   hardcode_libdir_flag_spec=
7789   hardcode_libdir_flag_spec_ld=
7790   hardcode_libdir_separator=
7791   hardcode_direct=no
7792   hardcode_minus_L=no
7793   hardcode_shlibpath_var=unsupported
7794   link_all_deplibs=unknown
7795   hardcode_automatic=no
7796   module_cmds=
7797   module_expsym_cmds=
7798   always_export_symbols=no
7799   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7800   # include_expsyms should be a list of space-separated symbols to be *always*
7801   # included in the symbol list
7802   include_expsyms=
7803   # exclude_expsyms can be an extended regexp of symbols to exclude
7804   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7805   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7806   # as well as any symbol that contains `d'.
7807   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7808   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7809   # platforms (ab)use it in PIC code, but their linkers get confused if
7810   # the symbol is explicitly referenced.  Since portable code cannot
7811   # rely on this symbol name, it's probably fine to never include it in
7812   # preloaded symbol tables.
7813   extract_expsyms_cmds=
7814   # Just being paranoid about ensuring that cc_basename is set.
7815   for cc_temp in $compiler""; do
7816   case $cc_temp in
7817     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7818     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7819     \-*) ;;
7820     *) break;;
7821   esac
7822 done
7823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7824
7825   case $host_os in
7826   cygwin* | mingw* | pw32*)
7827     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7828     # When not using gcc, we currently assume that we are using
7829     # Microsoft Visual C++.
7830     if test "$GCC" != yes; then
7831       with_gnu_ld=no
7832     fi
7833     ;;
7834   interix*)
7835     # we just hope/assume this is gcc and not c89 (= MSVC++)
7836     with_gnu_ld=yes
7837     ;;
7838   openbsd*)
7839     with_gnu_ld=no
7840     ;;
7841   esac
7842
7843   ld_shlibs=yes
7844   if test "$with_gnu_ld" = yes; then
7845     # If archive_cmds runs LD, not CC, wlarc should be empty
7846     wlarc='${wl}'
7847
7848     # Set some defaults for GNU ld with shared library support. These
7849     # are reset later if shared libraries are not supported. Putting them
7850     # here allows them to be overridden if necessary.
7851     runpath_var=LD_RUN_PATH
7852     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7853     export_dynamic_flag_spec='${wl}--export-dynamic'
7854     # ancient GNU ld didn't support --whole-archive et. al.
7855     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7856         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7857       else
7858         whole_archive_flag_spec=
7859     fi
7860     supports_anon_versioning=no
7861     case `$LD -v 2>/dev/null` in
7862       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7863       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7864       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7865       *\ 2.11.*) ;; # other 2.11 versions
7866       *) supports_anon_versioning=yes ;;
7867     esac
7868
7869     # See if GNU ld supports shared libraries.
7870     case $host_os in
7871     aix3* | aix4* | aix5*)
7872       # On AIX/PPC, the GNU linker is very broken
7873       if test "$host_cpu" != ia64; then
7874         ld_shlibs=no
7875         cat <<EOF 1>&2
7876
7877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7878 *** to be unable to reliably create shared libraries on AIX.
7879 *** Therefore, libtool is disabling shared libraries support.  If you
7880 *** really care for shared libraries, you may want to modify your PATH
7881 *** so that a non-GNU linker is found, and then restart.
7882
7883 EOF
7884       fi
7885       ;;
7886
7887     amigaos*)
7888       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)'
7889       hardcode_libdir_flag_spec='-L$libdir'
7890       hardcode_minus_L=yes
7891
7892       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7893       # that the semantics of dynamic libraries on AmigaOS, at least up
7894       # to version 4, is to share data among multiple programs linked
7895       # with the same dynamic library.  Since this doesn't match the
7896       # behavior of shared libraries on other platforms, we can't use
7897       # them.
7898       ld_shlibs=no
7899       ;;
7900
7901     beos*)
7902       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7903         allow_undefined_flag=unsupported
7904         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7905         # support --undefined.  This deserves some investigation.  FIXME
7906         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907       else
7908         ld_shlibs=no
7909       fi
7910       ;;
7911
7912     cygwin* | mingw* | pw32*)
7913       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7914       # as there is no search path for DLLs.
7915       hardcode_libdir_flag_spec='-L$libdir'
7916       allow_undefined_flag=unsupported
7917       always_export_symbols=no
7918       enable_shared_with_static_runtimes=yes
7919       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7920
7921       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7922         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7923         # If the export-symbols file already is a .def file (1st line
7924         # is EXPORTS), use it as is; otherwise, prepend...
7925         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7926           cp $export_symbols $output_objdir/$soname.def;
7927         else
7928           echo EXPORTS > $output_objdir/$soname.def;
7929           cat $export_symbols >> $output_objdir/$soname.def;
7930         fi~
7931         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7932       else
7933         ld_shlibs=no
7934       fi
7935       ;;
7936
7937     interix3*)
7938       hardcode_direct=no
7939       hardcode_shlibpath_var=no
7940       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7941       export_dynamic_flag_spec='${wl}-E'
7942       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7943       # Instead, shared libraries are loaded at an image base (0x10000000 by
7944       # default) and relocated if they conflict, which is a slow very memory
7945       # consuming and fragmenting process.  To avoid this, we pick a random,
7946       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7947       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7948       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7949       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'
7950       ;;
7951
7952     linux* | k*bsd*-gnu)
7953       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7954         tmp_addflag=
7955         case $cc_basename,$host_cpu in
7956         pgcc*)                          # Portland Group C compiler
7957           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'
7958           tmp_addflag=' $pic_flag'
7959           ;;
7960         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7961           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'
7962           tmp_addflag=' $pic_flag -Mnomain' ;;
7963         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7964           tmp_addflag=' -i_dynamic' ;;
7965         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7966           tmp_addflag=' -i_dynamic -nofor_main' ;;
7967         ifc* | ifort*)                  # Intel Fortran compiler
7968           tmp_addflag=' -nofor_main' ;;
7969         esac
7970         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7971
7972         if test $supports_anon_versioning = yes; then
7973           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7974   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7975   $echo "local: *; };" >> $output_objdir/$libname.ver~
7976           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7977         fi
7978         link_all_deplibs=no
7979       else
7980         ld_shlibs=no
7981       fi
7982       ;;
7983
7984     netbsd* | netbsdelf*-gnu)
7985       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7986         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7987         wlarc=
7988       else
7989         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7991       fi
7992       ;;
7993
7994     solaris*)
7995       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7996         ld_shlibs=no
7997         cat <<EOF 1>&2
7998
7999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8000 *** create shared libraries on Solaris systems.  Therefore, libtool
8001 *** is disabling shared libraries support.  We urge you to upgrade GNU
8002 *** binutils to release 2.9.1 or newer.  Another option is to modify
8003 *** your PATH or compiler configuration so that the native linker is
8004 *** used, and then restart.
8005
8006 EOF
8007       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8010       else
8011         ld_shlibs=no
8012       fi
8013       ;;
8014
8015     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8016       case `$LD -v 2>&1` in
8017         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8018         ld_shlibs=no
8019         cat <<_LT_EOF 1>&2
8020
8021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8022 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8023 *** is disabling shared libraries support.  We urge you to upgrade GNU
8024 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8025 *** your PATH or compiler configuration so that the native linker is
8026 *** used, and then restart.
8027
8028 _LT_EOF
8029         ;;
8030         *)
8031           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8032             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8033             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8034             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8035           else
8036             ld_shlibs=no
8037           fi
8038         ;;
8039       esac
8040       ;;
8041
8042     sunos4*)
8043       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8044       wlarc=
8045       hardcode_direct=yes
8046       hardcode_shlibpath_var=no
8047       ;;
8048
8049     *)
8050       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053       else
8054         ld_shlibs=no
8055       fi
8056       ;;
8057     esac
8058
8059     if test "$ld_shlibs" = no; then
8060       runpath_var=
8061       hardcode_libdir_flag_spec=
8062       export_dynamic_flag_spec=
8063       whole_archive_flag_spec=
8064     fi
8065   else
8066     # PORTME fill in a description of your system's linker (not GNU ld)
8067     case $host_os in
8068     aix3*)
8069       allow_undefined_flag=unsupported
8070       always_export_symbols=yes
8071       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'
8072       # Note: this linker hardcodes the directories in LIBPATH if there
8073       # are no directories specified by -L.
8074       hardcode_minus_L=yes
8075       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8076         # Neither direct hardcoding nor static linking is supported with a
8077         # broken collect2.
8078         hardcode_direct=unsupported
8079       fi
8080       ;;
8081
8082     aix4* | aix5*)
8083       if test "$host_cpu" = ia64; then
8084         # On IA64, the linker does run time linking by default, so we don't
8085         # have to do anything special.
8086         aix_use_runtimelinking=no
8087         exp_sym_flag='-Bexport'
8088         no_entry_flag=""
8089       else
8090         # If we're using GNU nm, then we don't want the "-C" option.
8091         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8092         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8093           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'
8094         else
8095           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'
8096         fi
8097         aix_use_runtimelinking=no
8098
8099         # Test if we are trying to use run time linking or normal
8100         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8101         # need to do runtime linking.
8102         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8103           for ld_flag in $LDFLAGS; do
8104           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8105             aix_use_runtimelinking=yes
8106             break
8107           fi
8108           done
8109           ;;
8110         esac
8111
8112         exp_sym_flag='-bexport'
8113         no_entry_flag='-bnoentry'
8114       fi
8115
8116       # When large executables or shared objects are built, AIX ld can
8117       # have problems creating the table of contents.  If linking a library
8118       # or program results in "error TOC overflow" add -mminimal-toc to
8119       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8120       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8121
8122       archive_cmds=''
8123       hardcode_direct=yes
8124       hardcode_libdir_separator=':'
8125       link_all_deplibs=yes
8126
8127       if test "$GCC" = yes; then
8128         case $host_os in aix4.[012]|aix4.[012].*)
8129         # We only want to do this on AIX 4.2 and lower, the check
8130         # below for broken collect2 doesn't work under 4.3+
8131           collect2name=`${CC} -print-prog-name=collect2`
8132           if test -f "$collect2name" && \
8133            strings "$collect2name" | grep resolve_lib_name >/dev/null
8134           then
8135           # We have reworked collect2
8136           hardcode_direct=yes
8137           else
8138           # We have old collect2
8139           hardcode_direct=unsupported
8140           # It fails to find uninstalled libraries when the uninstalled
8141           # path is not listed in the libpath.  Setting hardcode_minus_L
8142           # to unsupported forces relinking
8143           hardcode_minus_L=yes
8144           hardcode_libdir_flag_spec='-L$libdir'
8145           hardcode_libdir_separator=
8146           fi
8147           ;;
8148         esac
8149         shared_flag='-shared'
8150         if test "$aix_use_runtimelinking" = yes; then
8151           shared_flag="$shared_flag "'${wl}-G'
8152         fi
8153       else
8154         # not using gcc
8155         if test "$host_cpu" = ia64; then
8156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8157         # chokes on -Wl,-G. The following line is correct:
8158           shared_flag='-G'
8159         else
8160           if test "$aix_use_runtimelinking" = yes; then
8161             shared_flag='${wl}-G'
8162           else
8163             shared_flag='${wl}-bM:SRE'
8164           fi
8165         fi
8166       fi
8167
8168       # It seems that -bexpall does not export symbols beginning with
8169       # underscore (_), so it is better to generate a list of symbols to export.
8170       always_export_symbols=yes
8171       if test "$aix_use_runtimelinking" = yes; then
8172         # Warning - without using the other runtime loading flags (-brtl),
8173         # -berok will link without error, but may produce a broken library.
8174         allow_undefined_flag='-berok'
8175        # Determine the default libpath from the value encoded in an empty executable.
8176        cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182
8183 int
8184 main ()
8185 {
8186
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8193 case "(($ac_try" in
8194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195   *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198   (eval "$ac_link") 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } && {
8205          test -z "$ac_c_werror_flag" ||
8206          test ! -s conftest.err
8207        } && test -s conftest$ac_exeext &&
8208        $as_test_x conftest$ac_exeext; then
8209
8210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8211 }'`
8212 # Check for a 64-bit object if we didn't find anything.
8213 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8214 }'`; fi
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8223       conftest$ac_exeext conftest.$ac_ext
8224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8225
8226        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8227         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"
8228        else
8229         if test "$host_cpu" = ia64; then
8230           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8231           allow_undefined_flag="-z nodefs"
8232           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"
8233         else
8234          # Determine the default libpath from the value encoded in an empty executable.
8235          cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241
8242 int
8243 main ()
8244 {
8245
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (ac_try="$ac_link"
8252 case "(($ac_try" in
8253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254   *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257   (eval "$ac_link") 2>conftest.er1
8258   ac_status=$?
8259   grep -v '^ *+' conftest.er1 >conftest.err
8260   rm -f conftest.er1
8261   cat conftest.err >&5
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); } && {
8264          test -z "$ac_c_werror_flag" ||
8265          test ! -s conftest.err
8266        } && test -s conftest$ac_exeext &&
8267        $as_test_x conftest$ac_exeext; then
8268
8269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8270 }'`
8271 # Check for a 64-bit object if we didn't find anything.
8272 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8273 }'`; fi
8274 else
8275   echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278
8279 fi
8280
8281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8282       conftest$ac_exeext conftest.$ac_ext
8283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8284
8285          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8286           # Warning - without using the other run time loading flags,
8287           # -berok will link without error, but may produce a broken library.
8288           no_undefined_flag=' ${wl}-bernotok'
8289           allow_undefined_flag=' ${wl}-berok'
8290           # Exported symbols can be pulled into shared objects from archives
8291           whole_archive_flag_spec='$convenience'
8292           archive_cmds_need_lc=yes
8293           # This is similar to how AIX traditionally builds its shared libraries.
8294           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'
8295         fi
8296       fi
8297       ;;
8298
8299     amigaos*)
8300       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)'
8301       hardcode_libdir_flag_spec='-L$libdir'
8302       hardcode_minus_L=yes
8303       # see comment about different semantics on the GNU ld section
8304       ld_shlibs=no
8305       ;;
8306
8307     bsdi[45]*)
8308       export_dynamic_flag_spec=-rdynamic
8309       ;;
8310
8311     cygwin* | mingw* | pw32*)
8312       # When not using gcc, we currently assume that we are using
8313       # Microsoft Visual C++.
8314       # hardcode_libdir_flag_spec is actually meaningless, as there is
8315       # no search path for DLLs.
8316       hardcode_libdir_flag_spec=' '
8317       allow_undefined_flag=unsupported
8318       # Tell ltmain to make .lib files, not .a files.
8319       libext=lib
8320       # Tell ltmain to make .dll files, not .so files.
8321       shrext_cmds=".dll"
8322       # FIXME: Setting linknames here is a bad hack.
8323       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8324       # The linker will automatically build a .lib file if we build a DLL.
8325       old_archive_From_new_cmds='true'
8326       # FIXME: Should let the user specify the lib program.
8327       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8328       fix_srcfile_path='`cygpath -w "$srcfile"`'
8329       enable_shared_with_static_runtimes=yes
8330       ;;
8331
8332     darwin* | rhapsody*)
8333       case $host_os in
8334         rhapsody* | darwin1.[012])
8335          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8336          ;;
8337        *) # Darwin 1.3 on
8338          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8339            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8340          else
8341            case ${MACOSX_DEPLOYMENT_TARGET} in
8342              10.[012])
8343                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8344                ;;
8345              10.*)
8346                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8347                ;;
8348            esac
8349          fi
8350          ;;
8351       esac
8352       archive_cmds_need_lc=no
8353       hardcode_direct=no
8354       hardcode_automatic=yes
8355       hardcode_shlibpath_var=unsupported
8356       whole_archive_flag_spec=''
8357       link_all_deplibs=yes
8358     if test "$GCC" = yes ; then
8359         output_verbose_link_cmd='echo'
8360         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8361       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8362       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8363       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}'
8364       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}'
8365     else
8366       case $cc_basename in
8367         xlc*)
8368          output_verbose_link_cmd='echo'
8369          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8370          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8371           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8372          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8373           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}'
8374           ;;
8375        *)
8376          ld_shlibs=no
8377           ;;
8378       esac
8379     fi
8380       ;;
8381
8382     dgux*)
8383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384       hardcode_libdir_flag_spec='-L$libdir'
8385       hardcode_shlibpath_var=no
8386       ;;
8387
8388     freebsd1*)
8389       ld_shlibs=no
8390       ;;
8391
8392     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8393     # support.  Future versions do this automatically, but an explicit c++rt0.o
8394     # does not break anything, and helps significantly (at the cost of a little
8395     # extra space).
8396     freebsd2.2*)
8397       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8398       hardcode_libdir_flag_spec='-R$libdir'
8399       hardcode_direct=yes
8400       hardcode_shlibpath_var=no
8401       ;;
8402
8403     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8404     freebsd2*)
8405       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406       hardcode_direct=yes
8407       hardcode_minus_L=yes
8408       hardcode_shlibpath_var=no
8409       ;;
8410
8411     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8412     freebsd* | dragonfly*)
8413       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8414       hardcode_libdir_flag_spec='-R$libdir'
8415       hardcode_direct=yes
8416       hardcode_shlibpath_var=no
8417       ;;
8418
8419     hpux9*)
8420       if test "$GCC" = yes; then
8421         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'
8422       else
8423         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'
8424       fi
8425       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8426       hardcode_libdir_separator=:
8427       hardcode_direct=yes
8428
8429       # hardcode_minus_L: Not really in the search PATH,
8430       # but as the default location of the library.
8431       hardcode_minus_L=yes
8432       export_dynamic_flag_spec='${wl}-E'
8433       ;;
8434
8435     hpux10*)
8436       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8437         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8438       else
8439         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8440       fi
8441       if test "$with_gnu_ld" = no; then
8442         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8443         hardcode_libdir_separator=:
8444
8445         hardcode_direct=yes
8446         export_dynamic_flag_spec='${wl}-E'
8447
8448         # hardcode_minus_L: Not really in the search PATH,
8449         # but as the default location of the library.
8450         hardcode_minus_L=yes
8451       fi
8452       ;;
8453
8454     hpux11*)
8455       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8456         case $host_cpu in
8457         hppa*64*)
8458           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459           ;;
8460         ia64*)
8461           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8462           ;;
8463         *)
8464           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8465           ;;
8466         esac
8467       else
8468         case $host_cpu in
8469         hppa*64*)
8470           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471           ;;
8472         ia64*)
8473           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8474           ;;
8475         *)
8476           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8477           ;;
8478         esac
8479       fi
8480       if test "$with_gnu_ld" = no; then
8481         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8482         hardcode_libdir_separator=:
8483
8484         case $host_cpu in
8485         hppa*64*|ia64*)
8486           hardcode_libdir_flag_spec_ld='+b $libdir'
8487           hardcode_direct=no
8488           hardcode_shlibpath_var=no
8489           ;;
8490         *)
8491           hardcode_direct=yes
8492           export_dynamic_flag_spec='${wl}-E'
8493
8494           # hardcode_minus_L: Not really in the search PATH,
8495           # but as the default location of the library.
8496           hardcode_minus_L=yes
8497           ;;
8498         esac
8499       fi
8500       ;;
8501
8502     irix5* | irix6* | nonstopux*)
8503       if test "$GCC" = yes; then
8504         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'
8505       else
8506         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'
8507         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8508       fi
8509       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510       hardcode_libdir_separator=:
8511       link_all_deplibs=yes
8512       ;;
8513
8514     netbsd* | netbsdelf*-gnu)
8515       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8516         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8517       else
8518         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8519       fi
8520       hardcode_libdir_flag_spec='-R$libdir'
8521       hardcode_direct=yes
8522       hardcode_shlibpath_var=no
8523       ;;
8524
8525     newsos6)
8526       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8527       hardcode_direct=yes
8528       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529       hardcode_libdir_separator=:
8530       hardcode_shlibpath_var=no
8531       ;;
8532
8533     openbsd*)
8534       hardcode_direct=yes
8535       hardcode_shlibpath_var=no
8536       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8537         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8538         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8539         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8540         export_dynamic_flag_spec='${wl}-E'
8541       else
8542        case $host_os in
8543          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8544            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8545            hardcode_libdir_flag_spec='-R$libdir'
8546            ;;
8547          *)
8548            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8549            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8550            ;;
8551        esac
8552       fi
8553       ;;
8554
8555     os2*)
8556       hardcode_libdir_flag_spec='-L$libdir'
8557       hardcode_minus_L=yes
8558       allow_undefined_flag=unsupported
8559       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'
8560       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8561       ;;
8562
8563     osf3*)
8564       if test "$GCC" = yes; then
8565         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8566         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'
8567       else
8568         allow_undefined_flag=' -expect_unresolved \*'
8569         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'
8570       fi
8571       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8572       hardcode_libdir_separator=:
8573       ;;
8574
8575     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8576       if test "$GCC" = yes; then
8577         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8578         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'
8579         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8580       else
8581         allow_undefined_flag=' -expect_unresolved \*'
8582         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'
8583         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8584         $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'
8585
8586         # Both c and cxx compiler support -rpath directly
8587         hardcode_libdir_flag_spec='-rpath $libdir'
8588       fi
8589       hardcode_libdir_separator=:
8590       ;;
8591
8592     solaris*)
8593       no_undefined_flag=' -z text'
8594       if test "$GCC" = yes; then
8595         wlarc='${wl}'
8596         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8599       else
8600         wlarc=''
8601         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8603         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8604       fi
8605       hardcode_libdir_flag_spec='-R$libdir'
8606       hardcode_shlibpath_var=no
8607       case $host_os in
8608       solaris2.[0-5] | solaris2.[0-5].*) ;;
8609       *)
8610         # The compiler driver will combine linker options so we
8611         # cannot just pass the convience library names through
8612         # without $wl, iff we do not link with $LD.
8613         # Luckily, gcc supports the same syntax we need for Sun Studio.
8614         # Supported since Solaris 2.6 (maybe 2.5.1?)
8615         case $wlarc in
8616         '')
8617           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8618         *)
8619           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8620         esac ;;
8621       esac
8622       link_all_deplibs=yes
8623       ;;
8624
8625     sunos4*)
8626       if test "x$host_vendor" = xsequent; then
8627         # Use $CC to link under sequent, because it throws in some extra .o
8628         # files that make .init and .fini sections work.
8629         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8630       else
8631         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8632       fi
8633       hardcode_libdir_flag_spec='-L$libdir'
8634       hardcode_direct=yes
8635       hardcode_minus_L=yes
8636       hardcode_shlibpath_var=no
8637       ;;
8638
8639     sysv4)
8640       case $host_vendor in
8641         sni)
8642           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643           hardcode_direct=yes # is this really true???
8644         ;;
8645         siemens)
8646           ## LD is ld it makes a PLAMLIB
8647           ## CC just makes a GrossModule.
8648           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8649           reload_cmds='$CC -r -o $output$reload_objs'
8650           hardcode_direct=no
8651         ;;
8652         motorola)
8653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8655         ;;
8656       esac
8657       runpath_var='LD_RUN_PATH'
8658       hardcode_shlibpath_var=no
8659       ;;
8660
8661     sysv4.3*)
8662       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663       hardcode_shlibpath_var=no
8664       export_dynamic_flag_spec='-Bexport'
8665       ;;
8666
8667     sysv4*MP*)
8668       if test -d /usr/nec; then
8669         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670         hardcode_shlibpath_var=no
8671         runpath_var=LD_RUN_PATH
8672         hardcode_runpath_var=yes
8673         ld_shlibs=yes
8674       fi
8675       ;;
8676
8677     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8678       no_undefined_flag='${wl}-z,text'
8679       archive_cmds_need_lc=no
8680       hardcode_shlibpath_var=no
8681       runpath_var='LD_RUN_PATH'
8682
8683       if test "$GCC" = yes; then
8684         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8685         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8686       else
8687         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689       fi
8690       ;;
8691
8692     sysv5* | sco3.2v5* | sco5v6*)
8693       # Note: We can NOT use -z defs as we might desire, because we do not
8694       # link with -lc, and that would cause any symbols used from libc to
8695       # always be unresolved, which means just about no library would
8696       # ever link correctly.  If we're not using GNU ld we use -z text
8697       # though, which does catch some bad symbols but isn't as heavy-handed
8698       # as -z defs.
8699       no_undefined_flag='${wl}-z,text'
8700       allow_undefined_flag='${wl}-z,nodefs'
8701       archive_cmds_need_lc=no
8702       hardcode_shlibpath_var=no
8703       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8704       hardcode_libdir_separator=':'
8705       link_all_deplibs=yes
8706       export_dynamic_flag_spec='${wl}-Bexport'
8707       runpath_var='LD_RUN_PATH'
8708
8709       if test "$GCC" = yes; then
8710         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8711         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712       else
8713         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715       fi
8716       ;;
8717
8718     uts4*)
8719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720       hardcode_libdir_flag_spec='-L$libdir'
8721       hardcode_shlibpath_var=no
8722       ;;
8723
8724     *)
8725       ld_shlibs=no
8726       ;;
8727     esac
8728   fi
8729
8730 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8731 echo "${ECHO_T}$ld_shlibs" >&6; }
8732 test "$ld_shlibs" = no && can_build_shared=no
8733
8734 #
8735 # Do we need to explicitly link libc?
8736 #
8737 case "x$archive_cmds_need_lc" in
8738 x|xyes)
8739   # Assume -lc should be added
8740   archive_cmds_need_lc=yes
8741
8742   if test "$enable_shared" = yes && test "$GCC" = yes; then
8743     case $archive_cmds in
8744     *'~'*)
8745       # FIXME: we may have to deal with multi-command sequences.
8746       ;;
8747     '$CC '*)
8748       # Test whether the compiler implicitly links with -lc since on some
8749       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8750       # to ld, don't add -lc before -lgcc.
8751       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8753       $rm conftest*
8754       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8755
8756       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757   (eval $ac_compile) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } 2>conftest.err; then
8761         soname=conftest
8762         lib=conftest
8763         libobjs=conftest.$ac_objext
8764         deplibs=
8765         wl=$lt_prog_compiler_wl
8766         pic_flag=$lt_prog_compiler_pic
8767         compiler_flags=-v
8768         linker_flags=-v
8769         verstring=
8770         output_objdir=.
8771         libname=conftest
8772         lt_save_allow_undefined_flag=$allow_undefined_flag
8773         allow_undefined_flag=
8774         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8775   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }
8779         then
8780           archive_cmds_need_lc=no
8781         else
8782           archive_cmds_need_lc=yes
8783         fi
8784         allow_undefined_flag=$lt_save_allow_undefined_flag
8785       else
8786         cat conftest.err 1>&5
8787       fi
8788       $rm conftest*
8789       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8790 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8791       ;;
8792     esac
8793   fi
8794   ;;
8795 esac
8796
8797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8799 library_names_spec=
8800 libname_spec='lib$name'
8801 soname_spec=
8802 shrext_cmds=".so"
8803 postinstall_cmds=
8804 postuninstall_cmds=
8805 finish_cmds=
8806 finish_eval=
8807 shlibpath_var=
8808 shlibpath_overrides_runpath=unknown
8809 version_type=none
8810 dynamic_linker="$host_os ld.so"
8811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8812 if test "$GCC" = yes; then
8813   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8814   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8815     # if the path contains ";" then we assume it to be the separator
8816     # otherwise default to the standard path separator (i.e. ":") - it is
8817     # assumed that no part of a normal pathname contains ";" but that should
8818     # okay in the real world where ";" in dirpaths is itself problematic.
8819     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8820   else
8821     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8822   fi
8823 else
8824   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8825 fi
8826 need_lib_prefix=unknown
8827 hardcode_into_libs=no
8828
8829 # when you set need_version to no, make sure it does not cause -set_version
8830 # flags to be left without arguments
8831 need_version=unknown
8832
8833 case $host_os in
8834 aix3*)
8835   version_type=linux
8836   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8837   shlibpath_var=LIBPATH
8838
8839   # AIX 3 has no versioning support, so we append a major version to the name.
8840   soname_spec='${libname}${release}${shared_ext}$major'
8841   ;;
8842
8843 aix4* | aix5*)
8844   version_type=linux
8845   need_lib_prefix=no
8846   need_version=no
8847   hardcode_into_libs=yes
8848   if test "$host_cpu" = ia64; then
8849     # AIX 5 supports IA64
8850     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8851     shlibpath_var=LD_LIBRARY_PATH
8852   else
8853     # With GCC up to 2.95.x, collect2 would create an import file
8854     # for dependence libraries.  The import file would start with
8855     # the line `#! .'.  This would cause the generated library to
8856     # depend on `.', always an invalid library.  This was fixed in
8857     # development snapshots of GCC prior to 3.0.
8858     case $host_os in
8859       aix4 | aix4.[01] | aix4.[01].*)
8860       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8861            echo ' yes '
8862            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8863         :
8864       else
8865         can_build_shared=no
8866       fi
8867       ;;
8868     esac
8869     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8870     # soname into executable. Probably we can add versioning support to
8871     # collect2, so additional links can be useful in future.
8872     if test "$aix_use_runtimelinking" = yes; then
8873       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8874       # instead of lib<name>.a to let people know that these are not
8875       # typical AIX shared libraries.
8876       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877     else
8878       # We preserve .a as extension for shared libraries through AIX4.2
8879       # and later when we are not doing run time linking.
8880       library_names_spec='${libname}${release}.a $libname.a'
8881       soname_spec='${libname}${release}${shared_ext}$major'
8882     fi
8883     shlibpath_var=LIBPATH
8884   fi
8885   ;;
8886
8887 amigaos*)
8888   library_names_spec='$libname.ixlibrary $libname.a'
8889   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8890   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'
8891   ;;
8892
8893 beos*)
8894   library_names_spec='${libname}${shared_ext}'
8895   dynamic_linker="$host_os ld.so"
8896   shlibpath_var=LIBRARY_PATH
8897   ;;
8898
8899 bsdi[45]*)
8900   version_type=linux
8901   need_version=no
8902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903   soname_spec='${libname}${release}${shared_ext}$major'
8904   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8905   shlibpath_var=LD_LIBRARY_PATH
8906   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8907   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8908   # the default ld.so.conf also contains /usr/contrib/lib and
8909   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8910   # libtool to hard-code these into programs
8911   ;;
8912
8913 cygwin* | mingw* | pw32*)
8914   version_type=windows
8915   shrext_cmds=".dll"
8916   need_version=no
8917   need_lib_prefix=no
8918
8919   case $GCC,$host_os in
8920   yes,cygwin* | yes,mingw* | yes,pw32*)
8921     library_names_spec='$libname.dll.a'
8922     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8923     postinstall_cmds='base_file=`basename \${file}`~
8924       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8925       dldir=$destdir/`dirname \$dlpath`~
8926       test -d \$dldir || mkdir -p \$dldir~
8927       $install_prog $dir/$dlname \$dldir/$dlname~
8928       chmod a+x \$dldir/$dlname'
8929     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8930       dlpath=$dir/\$dldll~
8931        $rm \$dlpath'
8932     shlibpath_overrides_runpath=yes
8933
8934     case $host_os in
8935     cygwin*)
8936       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8937       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8939       ;;
8940     mingw*)
8941       # MinGW DLLs use traditional 'lib' prefix
8942       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8944       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8945         # It is most probably a Windows format PATH printed by
8946         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8947         # path with ; separators, and with drive letters. We can handle the
8948         # drive letters (cygwin fileutils understands them), so leave them,
8949         # especially as we might pass files found there to a mingw objdump,
8950         # which wouldn't understand a cygwinified path. Ahh.
8951         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8952       else
8953         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8954       fi
8955       ;;
8956     pw32*)
8957       # pw32 DLLs use 'pw' prefix rather than 'lib'
8958       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8959       ;;
8960     esac
8961     ;;
8962
8963   *)
8964     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8965     ;;
8966   esac
8967   dynamic_linker='Win32 ld.exe'
8968   # FIXME: first we should search . and the directory the executable is in
8969   shlibpath_var=PATH
8970   ;;
8971
8972 darwin* | rhapsody*)
8973   dynamic_linker="$host_os dyld"
8974   version_type=darwin
8975   need_lib_prefix=no
8976   need_version=no
8977   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8978   soname_spec='${libname}${release}${major}$shared_ext'
8979   shlibpath_overrides_runpath=yes
8980   shlibpath_var=DYLD_LIBRARY_PATH
8981   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8982   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8983   if test "$GCC" = yes; then
8984     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8985   else
8986     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8987   fi
8988   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8989   ;;
8990
8991 dgux*)
8992   version_type=linux
8993   need_lib_prefix=no
8994   need_version=no
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8996   soname_spec='${libname}${release}${shared_ext}$major'
8997   shlibpath_var=LD_LIBRARY_PATH
8998   ;;
8999
9000 freebsd1*)
9001   dynamic_linker=no
9002   ;;
9003
9004 freebsd* | dragonfly*)
9005   # DragonFly does not have aout.  When/if they implement a new
9006   # versioning mechanism, adjust this.
9007   if test -x /usr/bin/objformat; then
9008     objformat=`/usr/bin/objformat`
9009   else
9010     case $host_os in
9011     freebsd[123]*) objformat=aout ;;
9012     *) objformat=elf ;;
9013     esac
9014   fi
9015   version_type=freebsd-$objformat
9016   case $version_type in
9017     freebsd-elf*)
9018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9019       need_version=no
9020       need_lib_prefix=no
9021       ;;
9022     freebsd-*)
9023       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9024       need_version=yes
9025       ;;
9026   esac
9027   shlibpath_var=LD_LIBRARY_PATH
9028   case $host_os in
9029   freebsd2*)
9030     shlibpath_overrides_runpath=yes
9031     ;;
9032   freebsd3.[01]* | freebsdelf3.[01]*)
9033     shlibpath_overrides_runpath=yes
9034     hardcode_into_libs=yes
9035     ;;
9036   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9037   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9038     shlibpath_overrides_runpath=no
9039     hardcode_into_libs=yes
9040     ;;
9041   freebsd*) # from 4.6 on
9042     shlibpath_overrides_runpath=yes
9043     hardcode_into_libs=yes
9044     ;;
9045   esac
9046   ;;
9047
9048 gnu*)
9049   version_type=linux
9050   need_lib_prefix=no
9051   need_version=no
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   hardcode_into_libs=yes
9056   ;;
9057
9058 hpux9* | hpux10* | hpux11*)
9059   # Give a soname corresponding to the major version so that dld.sl refuses to
9060   # link against other versions.
9061   version_type=sunos
9062   need_lib_prefix=no
9063   need_version=no
9064   case $host_cpu in
9065   ia64*)
9066     shrext_cmds='.so'
9067     hardcode_into_libs=yes
9068     dynamic_linker="$host_os dld.so"
9069     shlibpath_var=LD_LIBRARY_PATH
9070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072     soname_spec='${libname}${release}${shared_ext}$major'
9073     if test "X$HPUX_IA64_MODE" = X32; then
9074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9075     else
9076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9077     fi
9078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079     ;;
9080    hppa*64*)
9081      shrext_cmds='.sl'
9082      hardcode_into_libs=yes
9083      dynamic_linker="$host_os dld.sl"
9084      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9085      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087      soname_spec='${libname}${release}${shared_ext}$major'
9088      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9089      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9090      ;;
9091    *)
9092     shrext_cmds='.sl'
9093     dynamic_linker="$host_os dld.sl"
9094     shlibpath_var=SHLIB_PATH
9095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097     soname_spec='${libname}${release}${shared_ext}$major'
9098     ;;
9099   esac
9100   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9101   postinstall_cmds='chmod 555 $lib'
9102   ;;
9103
9104 interix3*)
9105   version_type=linux
9106   need_lib_prefix=no
9107   need_version=no
9108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9109   soname_spec='${libname}${release}${shared_ext}$major'
9110   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9111   shlibpath_var=LD_LIBRARY_PATH
9112   shlibpath_overrides_runpath=no
9113   hardcode_into_libs=yes
9114   ;;
9115
9116 irix5* | irix6* | nonstopux*)
9117   case $host_os in
9118     nonstopux*) version_type=nonstopux ;;
9119     *)
9120         if test "$lt_cv_prog_gnu_ld" = yes; then
9121                 version_type=linux
9122         else
9123                 version_type=irix
9124         fi ;;
9125   esac
9126   need_lib_prefix=no
9127   need_version=no
9128   soname_spec='${libname}${release}${shared_ext}$major'
9129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9130   case $host_os in
9131   irix5* | nonstopux*)
9132     libsuff= shlibsuff=
9133     ;;
9134   *)
9135     case $LD in # libtool.m4 will add one of these switches to LD
9136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9137       libsuff= shlibsuff= libmagic=32-bit;;
9138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9139       libsuff=32 shlibsuff=N32 libmagic=N32;;
9140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9142     *) libsuff= shlibsuff= libmagic=never-match;;
9143     esac
9144     ;;
9145   esac
9146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9147   shlibpath_overrides_runpath=no
9148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9150   hardcode_into_libs=yes
9151   ;;
9152
9153 # No shared lib support for Linux oldld, aout, or coff.
9154 linux*oldld* | linux*aout* | linux*coff*)
9155   dynamic_linker=no
9156   ;;
9157
9158 # This must be Linux ELF.
9159 linux* | k*bsd*-gnu)
9160   version_type=linux
9161   need_lib_prefix=no
9162   need_version=no
9163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164   soname_spec='${libname}${release}${shared_ext}$major'
9165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9166   shlibpath_var=LD_LIBRARY_PATH
9167   shlibpath_overrides_runpath=no
9168   # This implies no fast_install, which is unacceptable.
9169   # Some rework will be needed to allow for fast_install
9170   # before this can be enabled.
9171   hardcode_into_libs=yes
9172
9173   # Append ld.so.conf contents to the search path
9174   if test -f /etc/ld.so.conf; then
9175     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9176     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9177   fi
9178
9179   # We used to test for /lib/ld.so.1 and disable shared libraries on
9180   # powerpc, because MkLinux only supported shared libraries with the
9181   # GNU dynamic linker.  Since this was broken with cross compilers,
9182   # most powerpc-linux boxes support dynamic linking these days and
9183   # people can always --disable-shared, the test was removed, and we
9184   # assume the GNU/Linux dynamic linker is in use.
9185   dynamic_linker='GNU/Linux ld.so'
9186   ;;
9187
9188 netbsdelf*-gnu)
9189   version_type=linux
9190   need_lib_prefix=no
9191   need_version=no
9192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9193   soname_spec='${libname}${release}${shared_ext}$major'
9194   shlibpath_var=LD_LIBRARY_PATH
9195   shlibpath_overrides_runpath=no
9196   hardcode_into_libs=yes
9197   dynamic_linker='NetBSD ld.elf_so'
9198   ;;
9199
9200 netbsd*)
9201   version_type=sunos
9202   need_lib_prefix=no
9203   need_version=no
9204   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9206     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9207     dynamic_linker='NetBSD (a.out) ld.so'
9208   else
9209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210     soname_spec='${libname}${release}${shared_ext}$major'
9211     dynamic_linker='NetBSD ld.elf_so'
9212   fi
9213   shlibpath_var=LD_LIBRARY_PATH
9214   shlibpath_overrides_runpath=yes
9215   hardcode_into_libs=yes
9216   ;;
9217
9218 newsos6)
9219   version_type=linux
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   shlibpath_overrides_runpath=yes
9223   ;;
9224
9225 nto-qnx*)
9226   version_type=linux
9227   need_lib_prefix=no
9228   need_version=no
9229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230   soname_spec='${libname}${release}${shared_ext}$major'
9231   shlibpath_var=LD_LIBRARY_PATH
9232   shlibpath_overrides_runpath=yes
9233   ;;
9234
9235 openbsd*)
9236   version_type=sunos
9237   sys_lib_dlsearch_path_spec="/usr/lib"
9238   need_lib_prefix=no
9239   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9240   case $host_os in
9241     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9242     *)                         need_version=no  ;;
9243   esac
9244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246   shlibpath_var=LD_LIBRARY_PATH
9247   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9248     case $host_os in
9249       openbsd2.[89] | openbsd2.[89].*)
9250         shlibpath_overrides_runpath=no
9251         ;;
9252       *)
9253         shlibpath_overrides_runpath=yes
9254         ;;
9255       esac
9256   else
9257     shlibpath_overrides_runpath=yes
9258   fi
9259   ;;
9260
9261 os2*)
9262   libname_spec='$name'
9263   shrext_cmds=".dll"
9264   need_lib_prefix=no
9265   library_names_spec='$libname${shared_ext} $libname.a'
9266   dynamic_linker='OS/2 ld.exe'
9267   shlibpath_var=LIBPATH
9268   ;;
9269
9270 osf3* | osf4* | osf5*)
9271   version_type=osf
9272   need_lib_prefix=no
9273   need_version=no
9274   soname_spec='${libname}${release}${shared_ext}$major'
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9278   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9279   ;;
9280
9281 solaris*)
9282   version_type=linux
9283   need_lib_prefix=no
9284   need_version=no
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=yes
9289   hardcode_into_libs=yes
9290   # ldd complains unless libraries are executable
9291   postinstall_cmds='chmod +x $lib'
9292   ;;
9293
9294 sunos4*)
9295   version_type=sunos
9296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9298   shlibpath_var=LD_LIBRARY_PATH
9299   shlibpath_overrides_runpath=yes
9300   if test "$with_gnu_ld" = yes; then
9301     need_lib_prefix=no
9302   fi
9303   need_version=yes
9304   ;;
9305
9306 sysv4 | sysv4.3*)
9307   version_type=linux
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309   soname_spec='${libname}${release}${shared_ext}$major'
9310   shlibpath_var=LD_LIBRARY_PATH
9311   case $host_vendor in
9312     sni)
9313       shlibpath_overrides_runpath=no
9314       need_lib_prefix=no
9315       export_dynamic_flag_spec='${wl}-Blargedynsym'
9316       runpath_var=LD_RUN_PATH
9317       ;;
9318     siemens)
9319       need_lib_prefix=no
9320       ;;
9321     motorola)
9322       need_lib_prefix=no
9323       need_version=no
9324       shlibpath_overrides_runpath=no
9325       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9326       ;;
9327   esac
9328   ;;
9329
9330 sysv4*MP*)
9331   if test -d /usr/nec ;then
9332     version_type=linux
9333     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9334     soname_spec='$libname${shared_ext}.$major'
9335     shlibpath_var=LD_LIBRARY_PATH
9336   fi
9337   ;;
9338
9339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9340   version_type=freebsd-elf
9341   need_lib_prefix=no
9342   need_version=no
9343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9344   soname_spec='${libname}${release}${shared_ext}$major'
9345   shlibpath_var=LD_LIBRARY_PATH
9346   hardcode_into_libs=yes
9347   if test "$with_gnu_ld" = yes; then
9348     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9349     shlibpath_overrides_runpath=no
9350   else
9351     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9352     shlibpath_overrides_runpath=yes
9353     case $host_os in
9354       sco3.2v5*)
9355         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9356         ;;
9357     esac
9358   fi
9359   sys_lib_dlsearch_path_spec='/usr/lib'
9360   ;;
9361
9362 uts4*)
9363   version_type=linux
9364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   shlibpath_var=LD_LIBRARY_PATH
9367   ;;
9368
9369 *)
9370   dynamic_linker=no
9371   ;;
9372 esac
9373 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9374 echo "${ECHO_T}$dynamic_linker" >&6; }
9375 test "$dynamic_linker" = no && can_build_shared=no
9376
9377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9378 if test "$GCC" = yes; then
9379   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9380 fi
9381
9382 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9383 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9384 hardcode_action=
9385 if test -n "$hardcode_libdir_flag_spec" || \
9386    test -n "$runpath_var" || \
9387    test "X$hardcode_automatic" = "Xyes" ; then
9388
9389   # We can hardcode non-existant directories.
9390   if test "$hardcode_direct" != no &&
9391      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9392      # have to relink, otherwise we might link with an installed library
9393      # when we should be linking with a yet-to-be-installed one
9394      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9395      test "$hardcode_minus_L" != no; then
9396     # Linking always hardcodes the temporary library directory.
9397     hardcode_action=relink
9398   else
9399     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9400     hardcode_action=immediate
9401   fi
9402 else
9403   # We cannot hardcode anything, or else we can only hardcode existing
9404   # directories.
9405   hardcode_action=unsupported
9406 fi
9407 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9408 echo "${ECHO_T}$hardcode_action" >&6; }
9409
9410 if test "$hardcode_action" = relink; then
9411   # Fast installation is not supported
9412   enable_fast_install=no
9413 elif test "$shlibpath_overrides_runpath" = yes ||
9414      test "$enable_shared" = no; then
9415   # Fast installation is not necessary
9416   enable_fast_install=needless
9417 fi
9418
9419 striplib=
9420 old_striplib=
9421 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9422 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9423 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9424   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9425   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9426   { echo "$as_me:$LINENO: result: yes" >&5
9427 echo "${ECHO_T}yes" >&6; }
9428 else
9429 # FIXME - insert some real tests, host_os isn't really good enough
9430   case $host_os in
9431    darwin*)
9432        if test -n "$STRIP" ; then
9433          striplib="$STRIP -x"
9434          { echo "$as_me:$LINENO: result: yes" >&5
9435 echo "${ECHO_T}yes" >&6; }
9436        else
9437   { echo "$as_me:$LINENO: result: no" >&5
9438 echo "${ECHO_T}no" >&6; }
9439 fi
9440        ;;
9441    *)
9442   { echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6; }
9444     ;;
9445   esac
9446 fi
9447
9448 if test "x$enable_dlopen" != xyes; then
9449   enable_dlopen=unknown
9450   enable_dlopen_self=unknown
9451   enable_dlopen_self_static=unknown
9452 else
9453   lt_cv_dlopen=no
9454   lt_cv_dlopen_libs=
9455
9456   case $host_os in
9457   beos*)
9458     lt_cv_dlopen="load_add_on"
9459     lt_cv_dlopen_libs=
9460     lt_cv_dlopen_self=yes
9461     ;;
9462
9463   mingw* | pw32*)
9464     lt_cv_dlopen="LoadLibrary"
9465     lt_cv_dlopen_libs=
9466    ;;
9467
9468   cygwin*)
9469     lt_cv_dlopen="dlopen"
9470     lt_cv_dlopen_libs=
9471    ;;
9472
9473   darwin*)
9474   # if libdl is installed we need to link against it
9475     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9476 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-ldl  $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488
9489 /* Override any GCC internal prototype to avoid an error.
9490    Use char because int might match the return type of a GCC
9491    builtin and then its argument prototype would still apply.  */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char dlopen ();
9496 int
9497 main ()
9498 {
9499 return dlopen ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest$ac_exeext &&
9521        $as_test_x conftest$ac_exeext; then
9522   ac_cv_lib_dl_dlopen=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527         ac_cv_lib_dl_dlopen=no
9528 fi
9529
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531       conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9533 fi
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9536 if test $ac_cv_lib_dl_dlopen = yes; then
9537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9538 else
9539
9540     lt_cv_dlopen="dyld"
9541     lt_cv_dlopen_libs=
9542     lt_cv_dlopen_self=yes
9543
9544 fi
9545
9546    ;;
9547
9548   *)
9549     { echo "$as_me:$LINENO: checking for shl_load" >&5
9550 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9551 if test "${ac_cv_func_shl_load+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h.  */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h.  */
9560 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9562 #define shl_load innocuous_shl_load
9563
9564 /* System header to define __stub macros and hopefully few prototypes,
9565     which can conflict with char shl_load (); below.
9566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9567     <limits.h> exists even on freestanding compilers.  */
9568
9569 #ifdef __STDC__
9570 # include <limits.h>
9571 #else
9572 # include <assert.h>
9573 #endif
9574
9575 #undef shl_load
9576
9577 /* Override any GCC internal prototype to avoid an error.
9578    Use char because int might match the return type of a GCC
9579    builtin and then its argument prototype would still apply.  */
9580 #ifdef __cplusplus
9581 extern "C"
9582 #endif
9583 char shl_load ();
9584 /* The GNU C library defines this for functions which it implements
9585     to always fail with ENOSYS.  Some functions are actually named
9586     something starting with __ and the normal name is an alias.  */
9587 #if defined __stub_shl_load || defined __stub___shl_load
9588 choke me
9589 #endif
9590
9591 int
9592 main ()
9593 {
9594 return shl_load ();
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9601 case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_link") 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && {
9613          test -z "$ac_c_werror_flag" ||
9614          test ! -s conftest.err
9615        } && test -s conftest$ac_exeext &&
9616        $as_test_x conftest$ac_exeext; then
9617   ac_cv_func_shl_load=yes
9618 else
9619   echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9621
9622         ac_cv_func_shl_load=no
9623 fi
9624
9625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626       conftest$ac_exeext conftest.$ac_ext
9627 fi
9628 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9629 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9630 if test $ac_cv_func_shl_load = yes; then
9631   lt_cv_dlopen="shl_load"
9632 else
9633   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9634 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-ldld  $LIBS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646
9647 /* Override any GCC internal prototype to avoid an error.
9648    Use char because int might match the return type of a GCC
9649    builtin and then its argument prototype would still apply.  */
9650 #ifdef __cplusplus
9651 extern "C"
9652 #endif
9653 char shl_load ();
9654 int
9655 main ()
9656 {
9657 return shl_load ();
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669   (eval "$ac_link") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } && {
9676          test -z "$ac_c_werror_flag" ||
9677          test ! -s conftest.err
9678        } && test -s conftest$ac_exeext &&
9679        $as_test_x conftest$ac_exeext; then
9680   ac_cv_lib_dld_shl_load=yes
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685         ac_cv_lib_dld_shl_load=no
9686 fi
9687
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689       conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9691 fi
9692 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9694 if test $ac_cv_lib_dld_shl_load = yes; then
9695   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9696 else
9697   { echo "$as_me:$LINENO: checking for dlopen" >&5
9698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9699 if test "${ac_cv_func_dlopen+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9710 #define dlopen innocuous_dlopen
9711
9712 /* System header to define __stub macros and hopefully few prototypes,
9713     which can conflict with char dlopen (); below.
9714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9715     <limits.h> exists even on freestanding compilers.  */
9716
9717 #ifdef __STDC__
9718 # include <limits.h>
9719 #else
9720 # include <assert.h>
9721 #endif
9722
9723 #undef dlopen
9724
9725 /* Override any GCC internal prototype to avoid an error.
9726    Use char because int might match the return type of a GCC
9727    builtin and then its argument prototype would still apply.  */
9728 #ifdef __cplusplus
9729 extern "C"
9730 #endif
9731 char dlopen ();
9732 /* The GNU C library defines this for functions which it implements
9733     to always fail with ENOSYS.  Some functions are actually named
9734     something starting with __ and the normal name is an alias.  */
9735 #if defined __stub_dlopen || defined __stub___dlopen
9736 choke me
9737 #endif
9738
9739 int
9740 main ()
9741 {
9742 return dlopen ();
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_link") 2>conftest.er1
9755   ac_status=$?
9756   grep -v '^ *+' conftest.er1 >conftest.err
9757   rm -f conftest.er1
9758   cat conftest.err >&5
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } && {
9761          test -z "$ac_c_werror_flag" ||
9762          test ! -s conftest.err
9763        } && test -s conftest$ac_exeext &&
9764        $as_test_x conftest$ac_exeext; then
9765   ac_cv_func_dlopen=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770         ac_cv_func_dlopen=no
9771 fi
9772
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774       conftest$ac_exeext conftest.$ac_ext
9775 fi
9776 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9778 if test $ac_cv_func_dlopen = yes; then
9779   lt_cv_dlopen="dlopen"
9780 else
9781   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   ac_check_lib_save_LIBS=$LIBS
9787 LIBS="-ldl  $LIBS"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796    Use char because int might match the return type of a GCC
9797    builtin and then its argument prototype would still apply.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char dlopen ();
9802 int
9803 main ()
9804 {
9805 return dlopen ();
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_link") 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } && {
9824          test -z "$ac_c_werror_flag" ||
9825          test ! -s conftest.err
9826        } && test -s conftest$ac_exeext &&
9827        $as_test_x conftest$ac_exeext; then
9828   ac_cv_lib_dl_dlopen=yes
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         ac_cv_lib_dl_dlopen=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837       conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9839 fi
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9842 if test $ac_cv_lib_dl_dlopen = yes; then
9843   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9844 else
9845   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9846 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   ac_check_lib_save_LIBS=$LIBS
9851 LIBS="-lsvld  $LIBS"
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858
9859 /* Override any GCC internal prototype to avoid an error.
9860    Use char because int might match the return type of a GCC
9861    builtin and then its argument prototype would still apply.  */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 char dlopen ();
9866 int
9867 main ()
9868 {
9869 return dlopen ();
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_link") 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } && {
9888          test -z "$ac_c_werror_flag" ||
9889          test ! -s conftest.err
9890        } && test -s conftest$ac_exeext &&
9891        $as_test_x conftest$ac_exeext; then
9892   ac_cv_lib_svld_dlopen=yes
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897         ac_cv_lib_svld_dlopen=no
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901       conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9905 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9906 if test $ac_cv_lib_svld_dlopen = yes; then
9907   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9908 else
9909   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9910 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-ldld  $LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h.  */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h.  */
9922
9923 /* Override any GCC internal prototype to avoid an error.
9924    Use char because int might match the return type of a GCC
9925    builtin and then its argument prototype would still apply.  */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char dld_link ();
9930 int
9931 main ()
9932 {
9933 return dld_link ();
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_link") 2>conftest.er1
9946   ac_status=$?
9947   grep -v '^ *+' conftest.er1 >conftest.err
9948   rm -f conftest.er1
9949   cat conftest.err >&5
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } && {
9952          test -z "$ac_c_werror_flag" ||
9953          test ! -s conftest.err
9954        } && test -s conftest$ac_exeext &&
9955        $as_test_x conftest$ac_exeext; then
9956   ac_cv_lib_dld_dld_link=yes
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961         ac_cv_lib_dld_dld_link=no
9962 fi
9963
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965       conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9967 fi
9968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9969 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9970 if test $ac_cv_lib_dld_dld_link = yes; then
9971   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9972 fi
9973
9974
9975 fi
9976
9977
9978 fi
9979
9980
9981 fi
9982
9983
9984 fi
9985
9986
9987 fi
9988
9989     ;;
9990   esac
9991
9992   if test "x$lt_cv_dlopen" != xno; then
9993     enable_dlopen=yes
9994   else
9995     enable_dlopen=no
9996   fi
9997
9998   case $lt_cv_dlopen in
9999   dlopen)
10000     save_CPPFLAGS="$CPPFLAGS"
10001     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10002
10003     save_LDFLAGS="$LDFLAGS"
10004     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10005
10006     save_LIBS="$LIBS"
10007     LIBS="$lt_cv_dlopen_libs $LIBS"
10008
10009     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10010 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10011 if test "${lt_cv_dlopen_self+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014           if test "$cross_compiling" = yes; then :
10015   lt_cv_dlopen_self=cross
10016 else
10017   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10018   lt_status=$lt_dlunknown
10019   cat > conftest.$ac_ext <<EOF
10020 #line 10020 "configure"
10021 #include "confdefs.h"
10022
10023 #if HAVE_DLFCN_H
10024 #include <dlfcn.h>
10025 #endif
10026
10027 #include <stdio.h>
10028
10029 #ifdef RTLD_GLOBAL
10030 #  define LT_DLGLOBAL           RTLD_GLOBAL
10031 #else
10032 #  ifdef DL_GLOBAL
10033 #    define LT_DLGLOBAL         DL_GLOBAL
10034 #  else
10035 #    define LT_DLGLOBAL         0
10036 #  endif
10037 #endif
10038
10039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10040    find out it does not work in some platform. */
10041 #ifndef LT_DLLAZY_OR_NOW
10042 #  ifdef RTLD_LAZY
10043 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10044 #  else
10045 #    ifdef DL_LAZY
10046 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10047 #    else
10048 #      ifdef RTLD_NOW
10049 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10050 #      else
10051 #        ifdef DL_NOW
10052 #          define LT_DLLAZY_OR_NOW      DL_NOW
10053 #        else
10054 #          define LT_DLLAZY_OR_NOW      0
10055 #        endif
10056 #      endif
10057 #    endif
10058 #  endif
10059 #endif
10060
10061 #ifdef __cplusplus
10062 extern "C" void exit (int);
10063 #endif
10064
10065 void fnord() { int i=42;}
10066 int main ()
10067 {
10068   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10069   int status = $lt_dlunknown;
10070
10071   if (self)
10072     {
10073       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10074       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10075       /* dlclose (self); */
10076     }
10077   else
10078     puts (dlerror ());
10079
10080     exit (status);
10081 }
10082 EOF
10083   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10084   (eval $ac_link) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10088     (./conftest; exit; ) >&5 2>/dev/null
10089     lt_status=$?
10090     case x$lt_status in
10091       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10092       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10093       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10094     esac
10095   else :
10096     # compilation failed
10097     lt_cv_dlopen_self=no
10098   fi
10099 fi
10100 rm -fr conftest*
10101
10102
10103 fi
10104 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10105 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10106
10107     if test "x$lt_cv_dlopen_self" = xyes; then
10108       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10109       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10110 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10111 if test "${lt_cv_dlopen_self_static+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114           if test "$cross_compiling" = yes; then :
10115   lt_cv_dlopen_self_static=cross
10116 else
10117   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10118   lt_status=$lt_dlunknown
10119   cat > conftest.$ac_ext <<EOF
10120 #line 10120 "configure"
10121 #include "confdefs.h"
10122
10123 #if HAVE_DLFCN_H
10124 #include <dlfcn.h>
10125 #endif
10126
10127 #include <stdio.h>
10128
10129 #ifdef RTLD_GLOBAL
10130 #  define LT_DLGLOBAL           RTLD_GLOBAL
10131 #else
10132 #  ifdef DL_GLOBAL
10133 #    define LT_DLGLOBAL         DL_GLOBAL
10134 #  else
10135 #    define LT_DLGLOBAL         0
10136 #  endif
10137 #endif
10138
10139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10140    find out it does not work in some platform. */
10141 #ifndef LT_DLLAZY_OR_NOW
10142 #  ifdef RTLD_LAZY
10143 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10144 #  else
10145 #    ifdef DL_LAZY
10146 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10147 #    else
10148 #      ifdef RTLD_NOW
10149 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10150 #      else
10151 #        ifdef DL_NOW
10152 #          define LT_DLLAZY_OR_NOW      DL_NOW
10153 #        else
10154 #          define LT_DLLAZY_OR_NOW      0
10155 #        endif
10156 #      endif
10157 #    endif
10158 #  endif
10159 #endif
10160
10161 #ifdef __cplusplus
10162 extern "C" void exit (int);
10163 #endif
10164
10165 void fnord() { int i=42;}
10166 int main ()
10167 {
10168   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10169   int status = $lt_dlunknown;
10170
10171   if (self)
10172     {
10173       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10174       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10175       /* dlclose (self); */
10176     }
10177   else
10178     puts (dlerror ());
10179
10180     exit (status);
10181 }
10182 EOF
10183   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184   (eval $ac_link) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10188     (./conftest; exit; ) >&5 2>/dev/null
10189     lt_status=$?
10190     case x$lt_status in
10191       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10192       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10193       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10194     esac
10195   else :
10196     # compilation failed
10197     lt_cv_dlopen_self_static=no
10198   fi
10199 fi
10200 rm -fr conftest*
10201
10202
10203 fi
10204 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10205 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10206     fi
10207
10208     CPPFLAGS="$save_CPPFLAGS"
10209     LDFLAGS="$save_LDFLAGS"
10210     LIBS="$save_LIBS"
10211     ;;
10212   esac
10213
10214   case $lt_cv_dlopen_self in
10215   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10216   *) enable_dlopen_self=unknown ;;
10217   esac
10218
10219   case $lt_cv_dlopen_self_static in
10220   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10221   *) enable_dlopen_self_static=unknown ;;
10222   esac
10223 fi
10224
10225
10226 # Report which library types will actually be built
10227 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10228 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10229 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10230 echo "${ECHO_T}$can_build_shared" >&6; }
10231
10232 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10233 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10234 test "$can_build_shared" = "no" && enable_shared=no
10235
10236 # On AIX, shared libraries and static libraries use the same namespace, and
10237 # are all built from PIC.
10238 case $host_os in
10239 aix3*)
10240   test "$enable_shared" = yes && enable_static=no
10241   if test -n "$RANLIB"; then
10242     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10243     postinstall_cmds='$RANLIB $lib'
10244   fi
10245   ;;
10246
10247 aix4* | aix5*)
10248   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10249     test "$enable_shared" = yes && enable_static=no
10250   fi
10251     ;;
10252 esac
10253 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10254 echo "${ECHO_T}$enable_shared" >&6; }
10255
10256 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10257 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10258 # Make sure either enable_shared or enable_static is yes.
10259 test "$enable_shared" = yes || enable_static=yes
10260 { echo "$as_me:$LINENO: result: $enable_static" >&5
10261 echo "${ECHO_T}$enable_static" >&6; }
10262
10263 # The else clause should only fire when bootstrapping the
10264 # libtool distribution, otherwise you forgot to ship ltmain.sh
10265 # with your package, and you will get complaints that there are
10266 # no rules to generate ltmain.sh.
10267 if test -f "$ltmain"; then
10268   # See if we are running on zsh, and set the options which allow our commands through
10269   # without removal of \ escapes.
10270   if test -n "${ZSH_VERSION+set}" ; then
10271     setopt NO_GLOB_SUBST
10272   fi
10273   # Now quote all the things that may contain metacharacters while being
10274   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10275   # variables and quote the copies for generation of the libtool script.
10276   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10277     SED SHELL STRIP \
10278     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10279     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10280     deplibs_check_method reload_flag reload_cmds need_locks \
10281     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10282     lt_cv_sys_global_symbol_to_c_name_address \
10283     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10284     old_postinstall_cmds old_postuninstall_cmds \
10285     compiler \
10286     CC \
10287     LD \
10288     lt_prog_compiler_wl \
10289     lt_prog_compiler_pic \
10290     lt_prog_compiler_static \
10291     lt_prog_compiler_no_builtin_flag \
10292     export_dynamic_flag_spec \
10293     thread_safe_flag_spec \
10294     whole_archive_flag_spec \
10295     enable_shared_with_static_runtimes \
10296     old_archive_cmds \
10297     old_archive_from_new_cmds \
10298     predep_objects \
10299     postdep_objects \
10300     predeps \
10301     postdeps \
10302     compiler_lib_search_path \
10303     archive_cmds \
10304     archive_expsym_cmds \
10305     postinstall_cmds \
10306     postuninstall_cmds \
10307     old_archive_from_expsyms_cmds \
10308     allow_undefined_flag \
10309     no_undefined_flag \
10310     export_symbols_cmds \
10311     hardcode_libdir_flag_spec \
10312     hardcode_libdir_flag_spec_ld \
10313     hardcode_libdir_separator \
10314     hardcode_automatic \
10315     module_cmds \
10316     module_expsym_cmds \
10317     lt_cv_prog_compiler_c_o \
10318     exclude_expsyms \
10319     include_expsyms; do
10320
10321     case $var in
10322     old_archive_cmds | \
10323     old_archive_from_new_cmds | \
10324     archive_cmds | \
10325     archive_expsym_cmds | \
10326     module_cmds | \
10327     module_expsym_cmds | \
10328     old_archive_from_expsyms_cmds | \
10329     export_symbols_cmds | \
10330     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10331     postinstall_cmds | postuninstall_cmds | \
10332     old_postinstall_cmds | old_postuninstall_cmds | \
10333     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10334       # Double-quote double-evaled strings.
10335       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10336       ;;
10337     *)
10338       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10339       ;;
10340     esac
10341   done
10342
10343   case $lt_echo in
10344   *'\$0 --fallback-echo"')
10345     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10346     ;;
10347   esac
10348
10349 cfgfile="${ofile}T"
10350   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10351   $rm -f "$cfgfile"
10352   { echo "$as_me:$LINENO: creating $ofile" >&5
10353 echo "$as_me: creating $ofile" >&6;}
10354
10355   cat <<__EOF__ >> "$cfgfile"
10356 #! $SHELL
10357
10358 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10359 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10360 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10361 #
10362 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10363 # Free Software Foundation, Inc.
10364 #
10365 # This file is part of GNU Libtool:
10366 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10367 #
10368 # This program is free software; you can redistribute it and/or modify
10369 # it under the terms of the GNU General Public License as published by
10370 # the Free Software Foundation; either version 2 of the License, or
10371 # (at your option) any later version.
10372 #
10373 # This program is distributed in the hope that it will be useful, but
10374 # WITHOUT ANY WARRANTY; without even the implied warranty of
10375 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10376 # General Public License for more details.
10377 #
10378 # You should have received a copy of the GNU General Public License
10379 # along with this program; if not, write to the Free Software
10380 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10381 #
10382 # As a special exception to the GNU General Public License, if you
10383 # distribute this file as part of a program that contains a
10384 # configuration script generated by Autoconf, you may include it under
10385 # the same distribution terms that you use for the rest of that program.
10386
10387 # A sed program that does not truncate output.
10388 SED=$lt_SED
10389
10390 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10391 Xsed="$SED -e 1s/^X//"
10392
10393 # The HP-UX ksh and POSIX shell print the target directory to stdout
10394 # if CDPATH is set.
10395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10396
10397 # The names of the tagged configurations supported by this script.
10398 available_tags=
10399
10400 # ### BEGIN LIBTOOL CONFIG
10401
10402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10403
10404 # Shell to use when invoking shell scripts.
10405 SHELL=$lt_SHELL
10406
10407 # Whether or not to build shared libraries.
10408 build_libtool_libs=$enable_shared
10409
10410 # Whether or not to build static libraries.
10411 build_old_libs=$enable_static
10412
10413 # Whether or not to add -lc for building shared libraries.
10414 build_libtool_need_lc=$archive_cmds_need_lc
10415
10416 # Whether or not to disallow shared libs when runtime libs are static
10417 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10418
10419 # Whether or not to optimize for fast installation.
10420 fast_install=$enable_fast_install
10421
10422 # The host system.
10423 host_alias=$host_alias
10424 host=$host
10425 host_os=$host_os
10426
10427 # The build system.
10428 build_alias=$build_alias
10429 build=$build
10430 build_os=$build_os
10431
10432 # An echo program that does not interpret backslashes.
10433 echo=$lt_echo
10434
10435 # The archiver.
10436 AR=$lt_AR
10437 AR_FLAGS=$lt_AR_FLAGS
10438
10439 # A C compiler.
10440 LTCC=$lt_LTCC
10441
10442 # LTCC compiler flags.
10443 LTCFLAGS=$lt_LTCFLAGS
10444
10445 # A language-specific compiler.
10446 CC=$lt_compiler
10447
10448 # Is the compiler the GNU C compiler?
10449 with_gcc=$GCC
10450
10451 # An ERE matcher.
10452 EGREP=$lt_EGREP
10453
10454 # The linker used to build libraries.
10455 LD=$lt_LD
10456
10457 # Whether we need hard or soft links.
10458 LN_S=$lt_LN_S
10459
10460 # A BSD-compatible nm program.
10461 NM=$lt_NM
10462
10463 # A symbol stripping program
10464 STRIP=$lt_STRIP
10465
10466 # Used to examine libraries when file_magic_cmd begins "file"
10467 MAGIC_CMD=$MAGIC_CMD
10468
10469 # Used on cygwin: DLL creation program.
10470 DLLTOOL="$DLLTOOL"
10471
10472 # Used on cygwin: object dumper.
10473 OBJDUMP="$OBJDUMP"
10474
10475 # Used on cygwin: assembler.
10476 AS="$AS"
10477
10478 # The name of the directory that contains temporary libtool files.
10479 objdir=$objdir
10480
10481 # How to create reloadable object files.
10482 reload_flag=$lt_reload_flag
10483 reload_cmds=$lt_reload_cmds
10484
10485 # How to pass a linker flag through the compiler.
10486 wl=$lt_lt_prog_compiler_wl
10487
10488 # Object file suffix (normally "o").
10489 objext="$ac_objext"
10490
10491 # Old archive suffix (normally "a").
10492 libext="$libext"
10493
10494 # Shared library suffix (normally ".so").
10495 shrext_cmds='$shrext_cmds'
10496
10497 # Executable file suffix (normally "").
10498 exeext="$exeext"
10499
10500 # Additional compiler flags for building library objects.
10501 pic_flag=$lt_lt_prog_compiler_pic
10502 pic_mode=$pic_mode
10503
10504 # What is the maximum length of a command?
10505 max_cmd_len=$lt_cv_sys_max_cmd_len
10506
10507 # Does compiler simultaneously support -c and -o options?
10508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10509
10510 # Must we lock files when doing compilation?
10511 need_locks=$lt_need_locks
10512
10513 # Do we need the lib prefix for modules?
10514 need_lib_prefix=$need_lib_prefix
10515
10516 # Do we need a version for libraries?
10517 need_version=$need_version
10518
10519 # Whether dlopen is supported.
10520 dlopen_support=$enable_dlopen
10521
10522 # Whether dlopen of programs is supported.
10523 dlopen_self=$enable_dlopen_self
10524
10525 # Whether dlopen of statically linked programs is supported.
10526 dlopen_self_static=$enable_dlopen_self_static
10527
10528 # Compiler flag to prevent dynamic linking.
10529 link_static_flag=$lt_lt_prog_compiler_static
10530
10531 # Compiler flag to turn off builtin functions.
10532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10533
10534 # Compiler flag to allow reflexive dlopens.
10535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10536
10537 # Compiler flag to generate shared objects directly from archives.
10538 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10539
10540 # Compiler flag to generate thread-safe objects.
10541 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10542
10543 # Library versioning type.
10544 version_type=$version_type
10545
10546 # Format of library name prefix.
10547 libname_spec=$lt_libname_spec
10548
10549 # List of archive names.  First name is the real one, the rest are links.
10550 # The last name is the one that the linker finds with -lNAME.
10551 library_names_spec=$lt_library_names_spec
10552
10553 # The coded name of the library, if different from the real name.
10554 soname_spec=$lt_soname_spec
10555
10556 # Commands used to build and install an old-style archive.
10557 RANLIB=$lt_RANLIB
10558 old_archive_cmds=$lt_old_archive_cmds
10559 old_postinstall_cmds=$lt_old_postinstall_cmds
10560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10561
10562 # Create an old-style archive from a shared archive.
10563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10564
10565 # Create a temporary old-style archive to link instead of a shared archive.
10566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10567
10568 # Commands used to build and install a shared archive.
10569 archive_cmds=$lt_archive_cmds
10570 archive_expsym_cmds=$lt_archive_expsym_cmds
10571 postinstall_cmds=$lt_postinstall_cmds
10572 postuninstall_cmds=$lt_postuninstall_cmds
10573
10574 # Commands used to build a loadable module (assumed same as above if empty)
10575 module_cmds=$lt_module_cmds
10576 module_expsym_cmds=$lt_module_expsym_cmds
10577
10578 # Commands to strip libraries.
10579 old_striplib=$lt_old_striplib
10580 striplib=$lt_striplib
10581
10582 # Dependencies to place before the objects being linked to create a
10583 # shared library.
10584 predep_objects=$lt_predep_objects
10585
10586 # Dependencies to place after the objects being linked to create a
10587 # shared library.
10588 postdep_objects=$lt_postdep_objects
10589
10590 # Dependencies to place before the objects being linked to create a
10591 # shared library.
10592 predeps=$lt_predeps
10593
10594 # Dependencies to place after the objects being linked to create a
10595 # shared library.
10596 postdeps=$lt_postdeps
10597
10598 # The library search path used internally by the compiler when linking
10599 # a shared library.
10600 compiler_lib_search_path=$lt_compiler_lib_search_path
10601
10602 # Method to check whether dependent libraries are shared objects.
10603 deplibs_check_method=$lt_deplibs_check_method
10604
10605 # Command to use when deplibs_check_method == file_magic.
10606 file_magic_cmd=$lt_file_magic_cmd
10607
10608 # Flag that allows shared libraries with undefined symbols to be built.
10609 allow_undefined_flag=$lt_allow_undefined_flag
10610
10611 # Flag that forces no undefined symbols.
10612 no_undefined_flag=$lt_no_undefined_flag
10613
10614 # Commands used to finish a libtool library installation in a directory.
10615 finish_cmds=$lt_finish_cmds
10616
10617 # Same as above, but a single script fragment to be evaled but not shown.
10618 finish_eval=$lt_finish_eval
10619
10620 # Take the output of nm and produce a listing of raw symbols and C names.
10621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10622
10623 # Transform the output of nm in a proper C declaration
10624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10625
10626 # Transform the output of nm in a C name address pair
10627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10628
10629 # This is the shared library runtime path variable.
10630 runpath_var=$runpath_var
10631
10632 # This is the shared library path variable.
10633 shlibpath_var=$shlibpath_var
10634
10635 # Is shlibpath searched before the hard-coded library search path?
10636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10637
10638 # How to hardcode a shared library path into an executable.
10639 hardcode_action=$hardcode_action
10640
10641 # Whether we should hardcode library paths into libraries.
10642 hardcode_into_libs=$hardcode_into_libs
10643
10644 # Flag to hardcode \$libdir into a binary during linking.
10645 # This must work even if \$libdir does not exist.
10646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10647
10648 # If ld is used when linking, flag to hardcode \$libdir into
10649 # a binary during linking. This must work even if \$libdir does
10650 # not exist.
10651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10652
10653 # Whether we need a single -rpath flag with a separated argument.
10654 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10655
10656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10657 # resulting binary.
10658 hardcode_direct=$hardcode_direct
10659
10660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10661 # resulting binary.
10662 hardcode_minus_L=$hardcode_minus_L
10663
10664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10665 # the resulting binary.
10666 hardcode_shlibpath_var=$hardcode_shlibpath_var
10667
10668 # Set to yes if building a shared library automatically hardcodes DIR into the library
10669 # and all subsequent libraries and executables linked against it.
10670 hardcode_automatic=$hardcode_automatic
10671
10672 # Variables whose values should be saved in libtool wrapper scripts and
10673 # restored at relink time.
10674 variables_saved_for_relink="$variables_saved_for_relink"
10675
10676 # Whether libtool must link a program against all its dependency libraries.
10677 link_all_deplibs=$link_all_deplibs
10678
10679 # Compile-time system search path for libraries
10680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10681
10682 # Run-time system search path for libraries
10683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10684
10685 # Fix the shell variable \$srcfile for the compiler.
10686 fix_srcfile_path="$fix_srcfile_path"
10687
10688 # Set to yes if exported symbols are required.
10689 always_export_symbols=$always_export_symbols
10690
10691 # The commands to list exported symbols.
10692 export_symbols_cmds=$lt_export_symbols_cmds
10693
10694 # The commands to extract the exported symbol list from a shared archive.
10695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10696
10697 # Symbols that should not be listed in the preloaded symbols.
10698 exclude_expsyms=$lt_exclude_expsyms
10699
10700 # Symbols that must always be exported.
10701 include_expsyms=$lt_include_expsyms
10702
10703 # ### END LIBTOOL CONFIG
10704
10705 __EOF__
10706
10707
10708   case $host_os in
10709   aix3*)
10710     cat <<\EOF >> "$cfgfile"
10711
10712 # AIX sometimes has problems with the GCC collect2 program.  For some
10713 # reason, if we set the COLLECT_NAMES environment variable, the problems
10714 # vanish in a puff of smoke.
10715 if test "X${COLLECT_NAMES+set}" != Xset; then
10716   COLLECT_NAMES=
10717   export COLLECT_NAMES
10718 fi
10719 EOF
10720     ;;
10721   esac
10722
10723   # We use sed instead of cat because bash on DJGPP gets confused if
10724   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10725   # text mode, it properly converts lines to CR/LF.  This bash problem
10726   # is reportedly fixed, but why not run on old versions too?
10727   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10728
10729   mv -f "$cfgfile" "$ofile" || \
10730     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10731   chmod +x "$ofile"
10732
10733 else
10734   # If there is no Makefile yet, we rely on a make rule to execute
10735   # `config.status --recheck' to rerun these tests and create the
10736   # libtool script then.
10737   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10738   if test -f "$ltmain_in"; then
10739     test -f Makefile && make "$ltmain"
10740   fi
10741 fi
10742
10743
10744 ac_ext=c
10745 ac_cpp='$CPP $CPPFLAGS'
10746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10749
10750 CC="$lt_save_CC"
10751
10752
10753 # Check whether --with-tags was given.
10754 if test "${with_tags+set}" = set; then
10755   withval=$with_tags; tagnames="$withval"
10756 fi
10757
10758
10759 if test -f "$ltmain" && test -n "$tagnames"; then
10760   if test ! -f "${ofile}"; then
10761     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10762 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10763   fi
10764
10765   if test -z "$LTCC"; then
10766     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10767     if test -z "$LTCC"; then
10768       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10769 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10770     else
10771       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10772 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10773     fi
10774   fi
10775   if test -z "$LTCFLAGS"; then
10776     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10777   fi
10778
10779   # Extract list of available tagged configurations in $ofile.
10780   # Note that this assumes the entire list is on one line.
10781   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10782
10783   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10784   for tagname in $tagnames; do
10785     IFS="$lt_save_ifs"
10786     # Check whether tagname contains only valid characters
10787     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10788     "") ;;
10789     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10790 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10791    { (exit 1); exit 1; }; }
10792         ;;
10793     esac
10794
10795     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10796     then
10797       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10798 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10799    { (exit 1); exit 1; }; }
10800     fi
10801
10802     # Update the list of available tags.
10803     if test -n "$tagname"; then
10804       echo appending configuration tag \"$tagname\" to $ofile
10805
10806       case $tagname in
10807       CXX)
10808         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10809             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10810             (test "X$CXX" != "Xg++"))) ; then
10811           ac_ext=cpp
10812 ac_cpp='$CXXCPP $CPPFLAGS'
10813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10816
10817
10818
10819
10820 archive_cmds_need_lc_CXX=no
10821 allow_undefined_flag_CXX=
10822 always_export_symbols_CXX=no
10823 archive_expsym_cmds_CXX=
10824 export_dynamic_flag_spec_CXX=
10825 hardcode_direct_CXX=no
10826 hardcode_libdir_flag_spec_CXX=
10827 hardcode_libdir_flag_spec_ld_CXX=
10828 hardcode_libdir_separator_CXX=
10829 hardcode_minus_L_CXX=no
10830 hardcode_shlibpath_var_CXX=unsupported
10831 hardcode_automatic_CXX=no
10832 module_cmds_CXX=
10833 module_expsym_cmds_CXX=
10834 link_all_deplibs_CXX=unknown
10835 old_archive_cmds_CXX=$old_archive_cmds
10836 no_undefined_flag_CXX=
10837 whole_archive_flag_spec_CXX=
10838 enable_shared_with_static_runtimes_CXX=no
10839
10840 # Dependencies to place before and after the object being linked:
10841 predep_objects_CXX=
10842 postdep_objects_CXX=
10843 predeps_CXX=
10844 postdeps_CXX=
10845 compiler_lib_search_path_CXX=
10846
10847 # Source file extension for C++ test sources.
10848 ac_ext=cpp
10849
10850 # Object file extension for compiled C++ test sources.
10851 objext=o
10852 objext_CXX=$objext
10853
10854 # Code to be used in simple compile tests
10855 lt_simple_compile_test_code="int some_variable = 0;\n"
10856
10857 # Code to be used in simple link tests
10858 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10859
10860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10861
10862 # If no C compiler was specified, use CC.
10863 LTCC=${LTCC-"$CC"}
10864
10865 # If no C compiler flags were specified, use CFLAGS.
10866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10867
10868 # Allow CC to be a program name with arguments.
10869 compiler=$CC
10870
10871
10872 # save warnings/boilerplate of simple test code
10873 ac_outfile=conftest.$ac_objext
10874 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10875 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10876 _lt_compiler_boilerplate=`cat conftest.err`
10877 $rm conftest*
10878
10879 ac_outfile=conftest.$ac_objext
10880 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10881 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10882 _lt_linker_boilerplate=`cat conftest.err`
10883 $rm conftest*
10884
10885
10886 # Allow CC to be a program name with arguments.
10887 lt_save_CC=$CC
10888 lt_save_LD=$LD
10889 lt_save_GCC=$GCC
10890 GCC=$GXX
10891 lt_save_with_gnu_ld=$with_gnu_ld
10892 lt_save_path_LD=$lt_cv_path_LD
10893 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10894   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10895 else
10896   $as_unset lt_cv_prog_gnu_ld
10897 fi
10898 if test -n "${lt_cv_path_LDCXX+set}"; then
10899   lt_cv_path_LD=$lt_cv_path_LDCXX
10900 else
10901   $as_unset lt_cv_path_LD
10902 fi
10903 test -z "${LDCXX+set}" || LD=$LDCXX
10904 CC=${CXX-"c++"}
10905 compiler=$CC
10906 compiler_CXX=$CC
10907 for cc_temp in $compiler""; do
10908   case $cc_temp in
10909     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10910     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10911     \-*) ;;
10912     *) break;;
10913   esac
10914 done
10915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10916
10917
10918 # We don't want -fno-exception wen compiling C++ code, so set the
10919 # no_builtin_flag separately
10920 if test "$GXX" = yes; then
10921   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10922 else
10923   lt_prog_compiler_no_builtin_flag_CXX=
10924 fi
10925
10926 if test "$GXX" = yes; then
10927   # Set up default GNU C++ configuration
10928
10929
10930 # Check whether --with-gnu-ld was given.
10931 if test "${with_gnu_ld+set}" = set; then
10932   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10933 else
10934   with_gnu_ld=no
10935 fi
10936
10937 ac_prog=ld
10938 if test "$GCC" = yes; then
10939   # Check if gcc -print-prog-name=ld gives a path.
10940   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10941 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10942   case $host in
10943   *-*-mingw*)
10944     # gcc leaves a trailing carriage return which upsets mingw
10945     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10946   *)
10947     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10948   esac
10949   case $ac_prog in
10950     # Accept absolute paths.
10951     [\\/]* | ?:[\\/]*)
10952       re_direlt='/[^/][^/]*/\.\./'
10953       # Canonicalize the pathname of ld
10954       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10955       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10956         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10957       done
10958       test -z "$LD" && LD="$ac_prog"
10959       ;;
10960   "")
10961     # If it fails, then pretend we aren't using GCC.
10962     ac_prog=ld
10963     ;;
10964   *)
10965     # If it is relative, then search for the first ld in PATH.
10966     with_gnu_ld=unknown
10967     ;;
10968   esac
10969 elif test "$with_gnu_ld" = yes; then
10970   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10971 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10972 else
10973   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10974 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10975 fi
10976 if test "${lt_cv_path_LD+set}" = set; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   if test -z "$LD"; then
10980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10981   for ac_dir in $PATH; do
10982     IFS="$lt_save_ifs"
10983     test -z "$ac_dir" && ac_dir=.
10984     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10985       lt_cv_path_LD="$ac_dir/$ac_prog"
10986       # Check to see if the program is GNU ld.  I'd rather use --version,
10987       # but apparently some variants of GNU ld only accept -v.
10988       # Break only if it was the GNU/non-GNU ld that we prefer.
10989       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10990       *GNU* | *'with BFD'*)
10991         test "$with_gnu_ld" != no && break
10992         ;;
10993       *)
10994         test "$with_gnu_ld" != yes && break
10995         ;;
10996       esac
10997     fi
10998   done
10999   IFS="$lt_save_ifs"
11000 else
11001   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11002 fi
11003 fi
11004
11005 LD="$lt_cv_path_LD"
11006 if test -n "$LD"; then
11007   { echo "$as_me:$LINENO: result: $LD" >&5
11008 echo "${ECHO_T}$LD" >&6; }
11009 else
11010   { echo "$as_me:$LINENO: result: no" >&5
11011 echo "${ECHO_T}no" >&6; }
11012 fi
11013 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11014 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11015    { (exit 1); exit 1; }; }
11016 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11017 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11018 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11022 case `$LD -v 2>&1 </dev/null` in
11023 *GNU* | *'with BFD'*)
11024   lt_cv_prog_gnu_ld=yes
11025   ;;
11026 *)
11027   lt_cv_prog_gnu_ld=no
11028   ;;
11029 esac
11030 fi
11031 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11032 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11033 with_gnu_ld=$lt_cv_prog_gnu_ld
11034
11035
11036
11037   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11038   # archiving commands below assume that GNU ld is being used.
11039   if test "$with_gnu_ld" = yes; then
11040     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041     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'
11042
11043     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11044     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11045
11046     # If archive_cmds runs LD, not CC, wlarc should be empty
11047     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11048     #     investigate it a little bit more. (MM)
11049     wlarc='${wl}'
11050
11051     # ancient GNU ld didn't support --whole-archive et. al.
11052     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11053         grep 'no-whole-archive' > /dev/null; then
11054       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11055     else
11056       whole_archive_flag_spec_CXX=
11057     fi
11058   else
11059     with_gnu_ld=no
11060     wlarc=
11061
11062     # A generic and very simple default shared library creation
11063     # command for GNU C++ for the case where it uses the native
11064     # linker, instead of GNU ld.  If possible, this setting should
11065     # overridden to take advantage of the native linker features on
11066     # the platform it is being used on.
11067     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11068   fi
11069
11070   # Commands to make compiler produce verbose output that lists
11071   # what "hidden" libraries, object files and flags are used when
11072   # linking a shared library.
11073   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11074
11075 else
11076   GXX=no
11077   with_gnu_ld=no
11078   wlarc=
11079 fi
11080
11081 # PORTME: fill in a description of your system's C++ link characteristics
11082 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11084 ld_shlibs_CXX=yes
11085 case $host_os in
11086   aix3*)
11087     # FIXME: insert proper C++ library support
11088     ld_shlibs_CXX=no
11089     ;;
11090   aix4* | aix5*)
11091     if test "$host_cpu" = ia64; then
11092       # On IA64, the linker does run time linking by default, so we don't
11093       # have to do anything special.
11094       aix_use_runtimelinking=no
11095       exp_sym_flag='-Bexport'
11096       no_entry_flag=""
11097     else
11098       aix_use_runtimelinking=no
11099
11100       # Test if we are trying to use run time linking or normal
11101       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11102       # need to do runtime linking.
11103       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11104         for ld_flag in $LDFLAGS; do
11105           case $ld_flag in
11106           *-brtl*)
11107             aix_use_runtimelinking=yes
11108             break
11109             ;;
11110           esac
11111         done
11112         ;;
11113       esac
11114
11115       exp_sym_flag='-bexport'
11116       no_entry_flag='-bnoentry'
11117     fi
11118
11119     # When large executables or shared objects are built, AIX ld can
11120     # have problems creating the table of contents.  If linking a library
11121     # or program results in "error TOC overflow" add -mminimal-toc to
11122     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11123     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11124
11125     archive_cmds_CXX=''
11126     hardcode_direct_CXX=yes
11127     hardcode_libdir_separator_CXX=':'
11128     link_all_deplibs_CXX=yes
11129
11130     if test "$GXX" = yes; then
11131       case $host_os in aix4.[012]|aix4.[012].*)
11132       # We only want to do this on AIX 4.2 and lower, the check
11133       # below for broken collect2 doesn't work under 4.3+
11134         collect2name=`${CC} -print-prog-name=collect2`
11135         if test -f "$collect2name" && \
11136            strings "$collect2name" | grep resolve_lib_name >/dev/null
11137         then
11138           # We have reworked collect2
11139           hardcode_direct_CXX=yes
11140         else
11141           # We have old collect2
11142           hardcode_direct_CXX=unsupported
11143           # It fails to find uninstalled libraries when the uninstalled
11144           # path is not listed in the libpath.  Setting hardcode_minus_L
11145           # to unsupported forces relinking
11146           hardcode_minus_L_CXX=yes
11147           hardcode_libdir_flag_spec_CXX='-L$libdir'
11148           hardcode_libdir_separator_CXX=
11149         fi
11150         ;;
11151       esac
11152       shared_flag='-shared'
11153       if test "$aix_use_runtimelinking" = yes; then
11154         shared_flag="$shared_flag "'${wl}-G'
11155       fi
11156     else
11157       # not using gcc
11158       if test "$host_cpu" = ia64; then
11159         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11160         # chokes on -Wl,-G. The following line is correct:
11161         shared_flag='-G'
11162       else
11163         if test "$aix_use_runtimelinking" = yes; then
11164           shared_flag='${wl}-G'
11165         else
11166           shared_flag='${wl}-bM:SRE'
11167         fi
11168       fi
11169     fi
11170
11171     # It seems that -bexpall does not export symbols beginning with
11172     # underscore (_), so it is better to generate a list of symbols to export.
11173     always_export_symbols_CXX=yes
11174     if test "$aix_use_runtimelinking" = yes; then
11175       # Warning - without using the other runtime loading flags (-brtl),
11176       # -berok will link without error, but may produce a broken library.
11177       allow_undefined_flag_CXX='-berok'
11178       # Determine the default libpath from the value encoded in an empty executable.
11179       cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185
11186 int
11187 main ()
11188 {
11189
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (ac_try="$ac_link"
11196 case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_link") 2>conftest.er1
11202   ac_status=$?
11203   grep -v '^ *+' conftest.er1 >conftest.err
11204   rm -f conftest.er1
11205   cat conftest.err >&5
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } && {
11208          test -z "$ac_cxx_werror_flag" ||
11209          test ! -s conftest.err
11210        } && test -s conftest$ac_exeext &&
11211        $as_test_x conftest$ac_exeext; then
11212
11213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11214 }'`
11215 # Check for a 64-bit object if we didn't find anything.
11216 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11217 }'`; fi
11218 else
11219   echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222
11223 fi
11224
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226       conftest$ac_exeext conftest.$ac_ext
11227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11228
11229       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11230
11231       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"
11232      else
11233       if test "$host_cpu" = ia64; then
11234         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11235         allow_undefined_flag_CXX="-z nodefs"
11236         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"
11237       else
11238         # Determine the default libpath from the value encoded in an empty executable.
11239         cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h.  */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h.  */
11245
11246 int
11247 main ()
11248 {
11249
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_link") 2>conftest.er1
11262   ac_status=$?
11263   grep -v '^ *+' conftest.er1 >conftest.err
11264   rm -f conftest.er1
11265   cat conftest.err >&5
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } && {
11268          test -z "$ac_cxx_werror_flag" ||
11269          test ! -s conftest.err
11270        } && test -s conftest$ac_exeext &&
11271        $as_test_x conftest$ac_exeext; then
11272
11273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11274 }'`
11275 # Check for a 64-bit object if we didn't find anything.
11276 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11277 }'`; fi
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282
11283 fi
11284
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286       conftest$ac_exeext conftest.$ac_ext
11287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11288
11289         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11290         # Warning - without using the other run time loading flags,
11291         # -berok will link without error, but may produce a broken library.
11292         no_undefined_flag_CXX=' ${wl}-bernotok'
11293         allow_undefined_flag_CXX=' ${wl}-berok'
11294         # Exported symbols can be pulled into shared objects from archives
11295         whole_archive_flag_spec_CXX='$convenience'
11296         archive_cmds_need_lc_CXX=yes
11297         # This is similar to how AIX traditionally builds its shared libraries.
11298         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'
11299       fi
11300     fi
11301     ;;
11302
11303   beos*)
11304     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11305       allow_undefined_flag_CXX=unsupported
11306       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11307       # support --undefined.  This deserves some investigation.  FIXME
11308       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11309     else
11310       ld_shlibs_CXX=no
11311     fi
11312     ;;
11313
11314   chorus*)
11315     case $cc_basename in
11316       *)
11317         # FIXME: insert proper C++ library support
11318         ld_shlibs_CXX=no
11319         ;;
11320     esac
11321     ;;
11322
11323   cygwin* | mingw* | pw32*)
11324     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11325     # as there is no search path for DLLs.
11326     hardcode_libdir_flag_spec_CXX='-L$libdir'
11327     allow_undefined_flag_CXX=unsupported
11328     always_export_symbols_CXX=no
11329     enable_shared_with_static_runtimes_CXX=yes
11330
11331     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11332       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'
11333       # If the export-symbols file already is a .def file (1st line
11334       # is EXPORTS), use it as is; otherwise, prepend...
11335       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11336         cp $export_symbols $output_objdir/$soname.def;
11337       else
11338         echo EXPORTS > $output_objdir/$soname.def;
11339         cat $export_symbols >> $output_objdir/$soname.def;
11340       fi~
11341       $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'
11342     else
11343       ld_shlibs_CXX=no
11344     fi
11345   ;;
11346       darwin* | rhapsody*)
11347         case $host_os in
11348         rhapsody* | darwin1.[012])
11349          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11350          ;;
11351        *) # Darwin 1.3 on
11352          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11353            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11354          else
11355            case ${MACOSX_DEPLOYMENT_TARGET} in
11356              10.[012])
11357                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11358                ;;
11359              10.*)
11360                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11361                ;;
11362            esac
11363          fi
11364          ;;
11365         esac
11366       archive_cmds_need_lc_CXX=no
11367       hardcode_direct_CXX=no
11368       hardcode_automatic_CXX=yes
11369       hardcode_shlibpath_var_CXX=unsupported
11370       whole_archive_flag_spec_CXX=''
11371       link_all_deplibs_CXX=yes
11372
11373     if test "$GXX" = yes ; then
11374       lt_int_apple_cc_single_mod=no
11375       output_verbose_link_cmd='echo'
11376       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11377        lt_int_apple_cc_single_mod=yes
11378       fi
11379       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11380        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11381       else
11382           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'
11383         fi
11384         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11385         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11386           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11387             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}'
11388           else
11389             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}'
11390           fi
11391             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}'
11392       else
11393       case $cc_basename in
11394         xlc*)
11395          output_verbose_link_cmd='echo'
11396           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11397           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11398           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11399           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11400           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}'
11401           ;;
11402        *)
11403          ld_shlibs_CXX=no
11404           ;;
11405       esac
11406       fi
11407         ;;
11408
11409   dgux*)
11410     case $cc_basename in
11411       ec++*)
11412         # FIXME: insert proper C++ library support
11413         ld_shlibs_CXX=no
11414         ;;
11415       ghcx*)
11416         # Green Hills C++ Compiler
11417         # FIXME: insert proper C++ library support
11418         ld_shlibs_CXX=no
11419         ;;
11420       *)
11421         # FIXME: insert proper C++ library support
11422         ld_shlibs_CXX=no
11423         ;;
11424     esac
11425     ;;
11426   freebsd[12]*)
11427     # C++ shared libraries reported to be fairly broken before switch to ELF
11428     ld_shlibs_CXX=no
11429     ;;
11430   freebsd-elf*)
11431     archive_cmds_need_lc_CXX=no
11432     ;;
11433   freebsd* | dragonfly*)
11434     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11435     # conventions
11436     ld_shlibs_CXX=yes
11437     ;;
11438   gnu*)
11439     ;;
11440   hpux9*)
11441     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11442     hardcode_libdir_separator_CXX=:
11443     export_dynamic_flag_spec_CXX='${wl}-E'
11444     hardcode_direct_CXX=yes
11445     hardcode_minus_L_CXX=yes # Not in the search PATH,
11446                                 # but as the default
11447                                 # location of the library.
11448
11449     case $cc_basename in
11450     CC*)
11451       # FIXME: insert proper C++ library support
11452       ld_shlibs_CXX=no
11453       ;;
11454     aCC*)
11455       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'
11456       # Commands to make compiler produce verbose output that lists
11457       # what "hidden" libraries, object files and flags are used when
11458       # linking a shared library.
11459       #
11460       # There doesn't appear to be a way to prevent this compiler from
11461       # explicitly linking system object files so we need to strip them
11462       # from the output so that they don't get included in the library
11463       # dependencies.
11464       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'
11465       ;;
11466     *)
11467       if test "$GXX" = yes; then
11468         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'
11469       else
11470         # FIXME: insert proper C++ library support
11471         ld_shlibs_CXX=no
11472       fi
11473       ;;
11474     esac
11475     ;;
11476   hpux10*|hpux11*)
11477     if test $with_gnu_ld = no; then
11478       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11479       hardcode_libdir_separator_CXX=:
11480
11481       case $host_cpu in
11482       hppa*64*|ia64*)
11483         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11484         ;;
11485       *)
11486         export_dynamic_flag_spec_CXX='${wl}-E'
11487         ;;
11488       esac
11489     fi
11490     case $host_cpu in
11491     hppa*64*|ia64*)
11492       hardcode_direct_CXX=no
11493       hardcode_shlibpath_var_CXX=no
11494       ;;
11495     *)
11496       hardcode_direct_CXX=yes
11497       hardcode_minus_L_CXX=yes # Not in the search PATH,
11498                                               # but as the default
11499                                               # location of the library.
11500       ;;
11501     esac
11502
11503     case $cc_basename in
11504       CC*)
11505         # FIXME: insert proper C++ library support
11506         ld_shlibs_CXX=no
11507         ;;
11508       aCC*)
11509         case $host_cpu in
11510         hppa*64*)
11511           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11512           ;;
11513         ia64*)
11514           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11515           ;;
11516         *)
11517           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11518           ;;
11519         esac
11520         # Commands to make compiler produce verbose output that lists
11521         # what "hidden" libraries, object files and flags are used when
11522         # linking a shared library.
11523         #
11524         # There doesn't appear to be a way to prevent this compiler from
11525         # explicitly linking system object files so we need to strip them
11526         # from the output so that they don't get included in the library
11527         # dependencies.
11528         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'
11529         ;;
11530       *)
11531         if test "$GXX" = yes; then
11532           if test $with_gnu_ld = no; then
11533             case $host_cpu in
11534             hppa*64*)
11535               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11536               ;;
11537             ia64*)
11538               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11539               ;;
11540             *)
11541               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'
11542               ;;
11543             esac
11544           fi
11545         else
11546           # FIXME: insert proper C++ library support
11547           ld_shlibs_CXX=no
11548         fi
11549         ;;
11550     esac
11551     ;;
11552   interix3*)
11553     hardcode_direct_CXX=no
11554     hardcode_shlibpath_var_CXX=no
11555     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11556     export_dynamic_flag_spec_CXX='${wl}-E'
11557     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11558     # Instead, shared libraries are loaded at an image base (0x10000000 by
11559     # default) and relocated if they conflict, which is a slow very memory
11560     # consuming and fragmenting process.  To avoid this, we pick a random,
11561     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11562     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11563     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'
11564     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'
11565     ;;
11566   irix5* | irix6*)
11567     case $cc_basename in
11568       CC*)
11569         # SGI C++
11570         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'
11571
11572         # Archives containing C++ object files must be created using
11573         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11574         # necessary to make sure instantiated templates are included
11575         # in the archive.
11576         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11577         ;;
11578       *)
11579         if test "$GXX" = yes; then
11580           if test "$with_gnu_ld" = no; then
11581             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'
11582           else
11583             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'
11584           fi
11585         fi
11586         link_all_deplibs_CXX=yes
11587         ;;
11588     esac
11589     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11590     hardcode_libdir_separator_CXX=:
11591     ;;
11592   linux* | k*bsd*-gnu)
11593     case $cc_basename in
11594       KCC*)
11595         # Kuck and Associates, Inc. (KAI) C++ Compiler
11596
11597         # KCC will only create a shared library if the output file
11598         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11599         # to its proper name (with version) after linking.
11600         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'
11601         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'
11602         # Commands to make compiler produce verbose output that lists
11603         # what "hidden" libraries, object files and flags are used when
11604         # linking a shared library.
11605         #
11606         # There doesn't appear to be a way to prevent this compiler from
11607         # explicitly linking system object files so we need to strip them
11608         # from the output so that they don't get included in the library
11609         # dependencies.
11610         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'
11611
11612         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11613         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11614
11615         # Archives containing C++ object files must be created using
11616         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11617         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11618         ;;
11619       icpc*)
11620         # Intel C++
11621         with_gnu_ld=yes
11622         # version 8.0 and above of icpc choke on multiply defined symbols
11623         # if we add $predep_objects and $postdep_objects, however 7.1 and
11624         # earlier do not add the objects themselves.
11625         case `$CC -V 2>&1` in
11626         *"Version 7."*)
11627           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11628           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'
11629           ;;
11630         *)  # Version 8.0 or newer
11631           tmp_idyn=
11632           case $host_cpu in
11633             ia64*) tmp_idyn=' -i_dynamic';;
11634           esac
11635           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11636           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'
11637           ;;
11638         esac
11639         archive_cmds_need_lc_CXX=no
11640         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11641         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11642         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11643         ;;
11644       pgCC*)
11645         # Portland Group C++ compiler
11646         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11647         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'
11648
11649         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11650         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11651         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'
11652         ;;
11653       cxx*)
11654         # Compaq C++
11655         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11656         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'
11657
11658         runpath_var=LD_RUN_PATH
11659         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11660         hardcode_libdir_separator_CXX=:
11661
11662         # Commands to make compiler produce verbose output that lists
11663         # what "hidden" libraries, object files and flags are used when
11664         # linking a shared library.
11665         #
11666         # There doesn't appear to be a way to prevent this compiler from
11667         # explicitly linking system object files so we need to strip them
11668         # from the output so that they don't get included in the library
11669         # dependencies.
11670         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'
11671         ;;
11672     esac
11673     ;;
11674   lynxos*)
11675     # FIXME: insert proper C++ library support
11676     ld_shlibs_CXX=no
11677     ;;
11678   m88k*)
11679     # FIXME: insert proper C++ library support
11680     ld_shlibs_CXX=no
11681     ;;
11682   mvs*)
11683     case $cc_basename in
11684       cxx*)
11685         # FIXME: insert proper C++ library support
11686         ld_shlibs_CXX=no
11687         ;;
11688       *)
11689         # FIXME: insert proper C++ library support
11690         ld_shlibs_CXX=no
11691         ;;
11692     esac
11693     ;;
11694   netbsd* | netbsdelf*-gnu)
11695     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11696       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11697       wlarc=
11698       hardcode_libdir_flag_spec_CXX='-R$libdir'
11699       hardcode_direct_CXX=yes
11700       hardcode_shlibpath_var_CXX=no
11701     fi
11702     # Workaround some broken pre-1.5 toolchains
11703     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11704     ;;
11705   openbsd2*)
11706     # C++ shared libraries are fairly broken
11707     ld_shlibs_CXX=no
11708     ;;
11709   openbsd*)
11710     hardcode_direct_CXX=yes
11711     hardcode_shlibpath_var_CXX=no
11712     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11713     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11714     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11716       export_dynamic_flag_spec_CXX='${wl}-E'
11717       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11718     fi
11719     output_verbose_link_cmd='echo'
11720     ;;
11721   osf3*)
11722     case $cc_basename in
11723       KCC*)
11724         # Kuck and Associates, Inc. (KAI) C++ Compiler
11725
11726         # KCC will only create a shared library if the output file
11727         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11728         # to its proper name (with version) after linking.
11729         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'
11730
11731         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11732         hardcode_libdir_separator_CXX=:
11733
11734         # Archives containing C++ object files must be created using
11735         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11736         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11737
11738         ;;
11739       RCC*)
11740         # Rational C++ 2.4.1
11741         # FIXME: insert proper C++ library support
11742         ld_shlibs_CXX=no
11743         ;;
11744       cxx*)
11745         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11746         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'
11747
11748         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749         hardcode_libdir_separator_CXX=:
11750
11751         # Commands to make compiler produce verbose output that lists
11752         # what "hidden" libraries, object files and flags are used when
11753         # linking a shared library.
11754         #
11755         # There doesn't appear to be a way to prevent this compiler from
11756         # explicitly linking system object files so we need to strip them
11757         # from the output so that they don't get included in the library
11758         # dependencies.
11759         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'
11760         ;;
11761       *)
11762         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11763           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11764           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'
11765
11766           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11767           hardcode_libdir_separator_CXX=:
11768
11769           # Commands to make compiler produce verbose output that lists
11770           # what "hidden" libraries, object files and flags are used when
11771           # linking a shared library.
11772           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11773
11774         else
11775           # FIXME: insert proper C++ library support
11776           ld_shlibs_CXX=no
11777         fi
11778         ;;
11779     esac
11780     ;;
11781   osf4* | osf5*)
11782     case $cc_basename in
11783       KCC*)
11784         # Kuck and Associates, Inc. (KAI) C++ Compiler
11785
11786         # KCC will only create a shared library if the output file
11787         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11788         # to its proper name (with version) after linking.
11789         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'
11790
11791         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11792         hardcode_libdir_separator_CXX=:
11793
11794         # Archives containing C++ object files must be created using
11795         # the KAI C++ compiler.
11796         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11797         ;;
11798       RCC*)
11799         # Rational C++ 2.4.1
11800         # FIXME: insert proper C++ library support
11801         ld_shlibs_CXX=no
11802         ;;
11803       cxx*)
11804         allow_undefined_flag_CXX=' -expect_unresolved \*'
11805         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'
11806         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11807           echo "-hidden">> $lib.exp~
11808           $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~
11809           $rm $lib.exp'
11810
11811         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11812         hardcode_libdir_separator_CXX=:
11813
11814         # Commands to make compiler produce verbose output that lists
11815         # what "hidden" libraries, object files and flags are used when
11816         # linking a shared library.
11817         #
11818         # There doesn't appear to be a way to prevent this compiler from
11819         # explicitly linking system object files so we need to strip them
11820         # from the output so that they don't get included in the library
11821         # dependencies.
11822         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'
11823         ;;
11824       *)
11825         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11826           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11827          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'
11828
11829           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11830           hardcode_libdir_separator_CXX=:
11831
11832           # Commands to make compiler produce verbose output that lists
11833           # what "hidden" libraries, object files and flags are used when
11834           # linking a shared library.
11835           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11836
11837         else
11838           # FIXME: insert proper C++ library support
11839           ld_shlibs_CXX=no
11840         fi
11841         ;;
11842     esac
11843     ;;
11844   psos*)
11845     # FIXME: insert proper C++ library support
11846     ld_shlibs_CXX=no
11847     ;;
11848   sunos4*)
11849     case $cc_basename in
11850       CC*)
11851         # Sun C++ 4.x
11852         # FIXME: insert proper C++ library support
11853         ld_shlibs_CXX=no
11854         ;;
11855       lcc*)
11856         # Lucid
11857         # FIXME: insert proper C++ library support
11858         ld_shlibs_CXX=no
11859         ;;
11860       *)
11861         # FIXME: insert proper C++ library support
11862         ld_shlibs_CXX=no
11863         ;;
11864     esac
11865     ;;
11866   solaris*)
11867     case $cc_basename in
11868       CC*)
11869         # Sun C++ 4.2, 5.x and Centerline C++
11870         archive_cmds_need_lc_CXX=yes
11871         no_undefined_flag_CXX=' -zdefs'
11872         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11874         $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'
11875
11876         hardcode_libdir_flag_spec_CXX='-R$libdir'
11877         hardcode_shlibpath_var_CXX=no
11878         case $host_os in
11879           solaris2.[0-5] | solaris2.[0-5].*) ;;
11880           *)
11881             # The C++ compiler is used as linker so we must use $wl
11882             # flag to pass the commands to the underlying system
11883             # linker. We must also pass each convience library through
11884             # to the system linker between allextract/defaultextract.
11885             # The C++ compiler will combine linker options so we
11886             # cannot just pass the convience library names through
11887             # without $wl.
11888             # Supported since Solaris 2.6 (maybe 2.5.1?)
11889             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11890             ;;
11891         esac
11892         link_all_deplibs_CXX=yes
11893
11894         output_verbose_link_cmd='echo'
11895
11896         # Archives containing C++ object files must be created using
11897         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11898         # necessary to make sure instantiated templates are included
11899         # in the archive.
11900         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11901         ;;
11902       gcx*)
11903         # Green Hills C++ Compiler
11904         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11905
11906         # The C++ compiler must be used to create the archive.
11907         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11908         ;;
11909       *)
11910         # GNU C++ compiler with Solaris linker
11911         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11912           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11913           if $CC --version | grep -v '^2\.7' > /dev/null; then
11914             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11915             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11916                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11917
11918             # Commands to make compiler produce verbose output that lists
11919             # what "hidden" libraries, object files and flags are used when
11920             # linking a shared library.
11921             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11922           else
11923             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11924             # platform.
11925             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11926             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11927                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11928
11929             # Commands to make compiler produce verbose output that lists
11930             # what "hidden" libraries, object files and flags are used when
11931             # linking a shared library.
11932             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11933           fi
11934
11935           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11936         fi
11937         ;;
11938     esac
11939     ;;
11940   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11941     no_undefined_flag_CXX='${wl}-z,text'
11942     archive_cmds_need_lc_CXX=no
11943     hardcode_shlibpath_var_CXX=no
11944     runpath_var='LD_RUN_PATH'
11945
11946     case $cc_basename in
11947       CC*)
11948         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950         ;;
11951       *)
11952         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954         ;;
11955     esac
11956     ;;
11957   sysv5* | sco3.2v5* | sco5v6*)
11958     # Note: We can NOT use -z defs as we might desire, because we do not
11959     # link with -lc, and that would cause any symbols used from libc to
11960     # always be unresolved, which means just about no library would
11961     # ever link correctly.  If we're not using GNU ld we use -z text
11962     # though, which does catch some bad symbols but isn't as heavy-handed
11963     # as -z defs.
11964     # For security reasons, it is highly recommended that you always
11965     # use absolute paths for naming shared libraries, and exclude the
11966     # DT_RUNPATH tag from executables and libraries.  But doing so
11967     # requires that you compile everything twice, which is a pain.
11968     # So that behaviour is only enabled if SCOABSPATH is set to a
11969     # non-empty value in the environment.  Most likely only useful for
11970     # creating official distributions of packages.
11971     # This is a hack until libtool officially supports absolute path
11972     # names for shared libraries.
11973     no_undefined_flag_CXX='${wl}-z,text'
11974     allow_undefined_flag_CXX='${wl}-z,nodefs'
11975     archive_cmds_need_lc_CXX=no
11976     hardcode_shlibpath_var_CXX=no
11977     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11978     hardcode_libdir_separator_CXX=':'
11979     link_all_deplibs_CXX=yes
11980     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11981     runpath_var='LD_RUN_PATH'
11982
11983     case $cc_basename in
11984       CC*)
11985         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11987         ;;
11988       *)
11989         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11990         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991         ;;
11992     esac
11993     ;;
11994   tandem*)
11995     case $cc_basename in
11996       NCC*)
11997         # NonStop-UX NCC 3.20
11998         # FIXME: insert proper C++ library support
11999         ld_shlibs_CXX=no
12000         ;;
12001       *)
12002         # FIXME: insert proper C++ library support
12003         ld_shlibs_CXX=no
12004         ;;
12005     esac
12006     ;;
12007   vxworks*)
12008     # FIXME: insert proper C++ library support
12009     ld_shlibs_CXX=no
12010     ;;
12011   *)
12012     # FIXME: insert proper C++ library support
12013     ld_shlibs_CXX=no
12014     ;;
12015 esac
12016 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12017 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12018 test "$ld_shlibs_CXX" = no && can_build_shared=no
12019
12020 GCC_CXX="$GXX"
12021 LD_CXX="$LD"
12022
12023
12024 cat > conftest.$ac_ext <<EOF
12025 class Foo
12026 {
12027 public:
12028   Foo (void) { a = 0; }
12029 private:
12030   int a;
12031 };
12032 EOF
12033
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035   (eval $ac_compile) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; then
12039   # Parse the compiler output and extract the necessary
12040   # objects, libraries and library flags.
12041
12042   # Sentinel used to keep track of whether or not we are before
12043   # the conftest object file.
12044   pre_test_object_deps_done=no
12045
12046   # The `*' in the case matches for architectures that use `case' in
12047   # $output_verbose_cmd can trigger glob expansion during the loop
12048   # eval without this substitution.
12049   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12050
12051   for p in `eval $output_verbose_link_cmd`; do
12052     case $p in
12053
12054     -L* | -R* | -l*)
12055        # Some compilers place space between "-{L,R}" and the path.
12056        # Remove the space.
12057        if test $p = "-L" \
12058           || test $p = "-R"; then
12059          prev=$p
12060          continue
12061        else
12062          prev=
12063        fi
12064
12065        if test "$pre_test_object_deps_done" = no; then
12066          case $p in
12067          -L* | -R*)
12068            # Internal compiler library paths should come after those
12069            # provided the user.  The postdeps already come after the
12070            # user supplied libs so there is no need to process them.
12071            if test -z "$compiler_lib_search_path_CXX"; then
12072              compiler_lib_search_path_CXX="${prev}${p}"
12073            else
12074              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12075            fi
12076            ;;
12077          # The "-l" case would never come before the object being
12078          # linked, so don't bother handling this case.
12079          esac
12080        else
12081          if test -z "$postdeps_CXX"; then
12082            postdeps_CXX="${prev}${p}"
12083          else
12084            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12085          fi
12086        fi
12087        ;;
12088
12089     *.$objext)
12090        # This assumes that the test object file only shows up
12091        # once in the compiler output.
12092        if test "$p" = "conftest.$objext"; then
12093          pre_test_object_deps_done=yes
12094          continue
12095        fi
12096
12097        if test "$pre_test_object_deps_done" = no; then
12098          if test -z "$predep_objects_CXX"; then
12099            predep_objects_CXX="$p"
12100          else
12101            predep_objects_CXX="$predep_objects_CXX $p"
12102          fi
12103        else
12104          if test -z "$postdep_objects_CXX"; then
12105            postdep_objects_CXX="$p"
12106          else
12107            postdep_objects_CXX="$postdep_objects_CXX $p"
12108          fi
12109        fi
12110        ;;
12111
12112     *) ;; # Ignore the rest.
12113
12114     esac
12115   done
12116
12117   # Clean up.
12118   rm -f a.out a.exe
12119 else
12120   echo "libtool.m4: error: problem compiling CXX test program"
12121 fi
12122
12123 $rm -f confest.$objext
12124
12125 # PORTME: override above test on systems where it is broken
12126 case $host_os in
12127 interix3*)
12128   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12129   # hack all around it, let's just trust "g++" to DTRT.
12130   predep_objects_CXX=
12131   postdep_objects_CXX=
12132   postdeps_CXX=
12133   ;;
12134
12135 solaris*)
12136   case $cc_basename in
12137   CC*)
12138     # Adding this requires a known-good setup of shared libraries for
12139     # Sun compiler versions before 5.6, else PIC objects from an old
12140     # archive will be linked into the output, leading to subtle bugs.
12141     postdeps_CXX='-lCstd -lCrun'
12142     ;;
12143   esac
12144   ;;
12145 esac
12146
12147
12148 case " $postdeps_CXX " in
12149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12150 esac
12151
12152 lt_prog_compiler_wl_CXX=
12153 lt_prog_compiler_pic_CXX=
12154 lt_prog_compiler_static_CXX=
12155
12156 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12158
12159   # C++ specific cases for pic, static, wl, etc.
12160   if test "$GXX" = yes; then
12161     lt_prog_compiler_wl_CXX='-Wl,'
12162     lt_prog_compiler_static_CXX='-static'
12163
12164     case $host_os in
12165     aix*)
12166       # All AIX code is PIC.
12167       if test "$host_cpu" = ia64; then
12168         # AIX 5 now supports IA64 processor
12169         lt_prog_compiler_static_CXX='-Bstatic'
12170       fi
12171       ;;
12172     amigaos*)
12173       # FIXME: we need at least 68020 code to build shared libraries, but
12174       # adding the `-m68020' flag to GCC prevents building anything better,
12175       # like `-m68040'.
12176       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12177       ;;
12178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12179       # PIC is the default for these OSes.
12180       ;;
12181     mingw* | os2* | pw32*)
12182       # This hack is so that the source file can tell whether it is being
12183       # built for inclusion in a dll (and should export symbols for example).
12184       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12185       ;;
12186     darwin* | rhapsody*)
12187       # PIC is the default on this platform
12188       # Common symbols not allowed in MH_DYLIB files
12189       lt_prog_compiler_pic_CXX='-fno-common'
12190       ;;
12191     *djgpp*)
12192       # DJGPP does not support shared libraries at all
12193       lt_prog_compiler_pic_CXX=
12194       ;;
12195     interix3*)
12196       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12197       # Instead, we relocate shared libraries at runtime.
12198       ;;
12199     sysv4*MP*)
12200       if test -d /usr/nec; then
12201         lt_prog_compiler_pic_CXX=-Kconform_pic
12202       fi
12203       ;;
12204     hpux*)
12205       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12206       # not for PA HP-UX.
12207       case $host_cpu in
12208       hppa*64*|ia64*)
12209         ;;
12210       *)
12211         lt_prog_compiler_pic_CXX='-fPIC'
12212         ;;
12213       esac
12214       ;;
12215     *)
12216       lt_prog_compiler_pic_CXX='-fPIC'
12217       ;;
12218     esac
12219   else
12220     case $host_os in
12221       aix4* | aix5*)
12222         # All AIX code is PIC.
12223         if test "$host_cpu" = ia64; then
12224           # AIX 5 now supports IA64 processor
12225           lt_prog_compiler_static_CXX='-Bstatic'
12226         else
12227           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12228         fi
12229         ;;
12230       chorus*)
12231         case $cc_basename in
12232         cxch68*)
12233           # Green Hills C++ Compiler
12234           # _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"
12235           ;;
12236         esac
12237         ;;
12238        darwin*)
12239          # PIC is the default on this platform
12240          # Common symbols not allowed in MH_DYLIB files
12241          case $cc_basename in
12242            xlc*)
12243            lt_prog_compiler_pic_CXX='-qnocommon'
12244            lt_prog_compiler_wl_CXX='-Wl,'
12245            ;;
12246          esac
12247        ;;
12248       dgux*)
12249         case $cc_basename in
12250           ec++*)
12251             lt_prog_compiler_pic_CXX='-KPIC'
12252             ;;
12253           ghcx*)
12254             # Green Hills C++ Compiler
12255             lt_prog_compiler_pic_CXX='-pic'
12256             ;;
12257           *)
12258             ;;
12259         esac
12260         ;;
12261       freebsd* | dragonfly*)
12262         # FreeBSD uses GNU C++
12263         ;;
12264       hpux9* | hpux10* | hpux11*)
12265         case $cc_basename in
12266           CC*)
12267             lt_prog_compiler_wl_CXX='-Wl,'
12268             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12269             if test "$host_cpu" != ia64; then
12270               lt_prog_compiler_pic_CXX='+Z'
12271             fi
12272             ;;
12273           aCC*)
12274             lt_prog_compiler_wl_CXX='-Wl,'
12275             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12276             case $host_cpu in
12277             hppa*64*|ia64*)
12278               # +Z the default
12279               ;;
12280             *)
12281               lt_prog_compiler_pic_CXX='+Z'
12282               ;;
12283             esac
12284             ;;
12285           *)
12286             ;;
12287         esac
12288         ;;
12289       interix*)
12290         # This is c89, which is MS Visual C++ (no shared libs)
12291         # Anyone wants to do a port?
12292         ;;
12293       irix5* | irix6* | nonstopux*)
12294         case $cc_basename in
12295           CC*)
12296             lt_prog_compiler_wl_CXX='-Wl,'
12297             lt_prog_compiler_static_CXX='-non_shared'
12298             # CC pic flag -KPIC is the default.
12299             ;;
12300           *)
12301             ;;
12302         esac
12303         ;;
12304       linux* | k*bsd*-gnu)
12305         case $cc_basename in
12306           KCC*)
12307             # KAI C++ Compiler
12308             lt_prog_compiler_wl_CXX='--backend -Wl,'
12309             lt_prog_compiler_pic_CXX='-fPIC'
12310             ;;
12311           icpc* | ecpc*)
12312             # Intel C++
12313             lt_prog_compiler_wl_CXX='-Wl,'
12314             lt_prog_compiler_pic_CXX='-KPIC'
12315             lt_prog_compiler_static_CXX='-static'
12316             ;;
12317           pgCC*)
12318             # Portland Group C++ compiler.
12319             lt_prog_compiler_wl_CXX='-Wl,'
12320             lt_prog_compiler_pic_CXX='-fpic'
12321             lt_prog_compiler_static_CXX='-Bstatic'
12322             ;;
12323           cxx*)
12324             # Compaq C++
12325             # Make sure the PIC flag is empty.  It appears that all Alpha
12326             # Linux and Compaq Tru64 Unix objects are PIC.
12327             lt_prog_compiler_pic_CXX=
12328             lt_prog_compiler_static_CXX='-non_shared'
12329             ;;
12330           *)
12331             ;;
12332         esac
12333         ;;
12334       lynxos*)
12335         ;;
12336       m88k*)
12337         ;;
12338       mvs*)
12339         case $cc_basename in
12340           cxx*)
12341             lt_prog_compiler_pic_CXX='-W c,exportall'
12342             ;;
12343           *)
12344             ;;
12345         esac
12346         ;;
12347       netbsd* | netbsdelf*-gnu)
12348         ;;
12349       osf3* | osf4* | osf5*)
12350         case $cc_basename in
12351           KCC*)
12352             lt_prog_compiler_wl_CXX='--backend -Wl,'
12353             ;;
12354           RCC*)
12355             # Rational C++ 2.4.1
12356             lt_prog_compiler_pic_CXX='-pic'
12357             ;;
12358           cxx*)
12359             # Digital/Compaq C++
12360             lt_prog_compiler_wl_CXX='-Wl,'
12361             # Make sure the PIC flag is empty.  It appears that all Alpha
12362             # Linux and Compaq Tru64 Unix objects are PIC.
12363             lt_prog_compiler_pic_CXX=
12364             lt_prog_compiler_static_CXX='-non_shared'
12365             ;;
12366           *)
12367             ;;
12368         esac
12369         ;;
12370       psos*)
12371         ;;
12372       solaris*)
12373         case $cc_basename in
12374           CC*)
12375             # Sun C++ 4.2, 5.x and Centerline C++
12376             lt_prog_compiler_pic_CXX='-KPIC'
12377             lt_prog_compiler_static_CXX='-Bstatic'
12378             lt_prog_compiler_wl_CXX='-Qoption ld '
12379             ;;
12380           gcx*)
12381             # Green Hills C++ Compiler
12382             lt_prog_compiler_pic_CXX='-PIC'
12383             ;;
12384           *)
12385             ;;
12386         esac
12387         ;;
12388       sunos4*)
12389         case $cc_basename in
12390           CC*)
12391             # Sun C++ 4.x
12392             lt_prog_compiler_pic_CXX='-pic'
12393             lt_prog_compiler_static_CXX='-Bstatic'
12394             ;;
12395           lcc*)
12396             # Lucid
12397             lt_prog_compiler_pic_CXX='-pic'
12398             ;;
12399           *)
12400             ;;
12401         esac
12402         ;;
12403       tandem*)
12404         case $cc_basename in
12405           NCC*)
12406             # NonStop-UX NCC 3.20
12407             lt_prog_compiler_pic_CXX='-KPIC'
12408             ;;
12409           *)
12410             ;;
12411         esac
12412         ;;
12413       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12414         case $cc_basename in
12415           CC*)
12416             lt_prog_compiler_wl_CXX='-Wl,'
12417             lt_prog_compiler_pic_CXX='-KPIC'
12418             lt_prog_compiler_static_CXX='-Bstatic'
12419             ;;
12420         esac
12421         ;;
12422       vxworks*)
12423         ;;
12424       *)
12425         lt_prog_compiler_can_build_shared_CXX=no
12426         ;;
12427     esac
12428   fi
12429
12430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12432
12433 #
12434 # Check to make sure the PIC flag actually works.
12435 #
12436 if test -n "$lt_prog_compiler_pic_CXX"; then
12437
12438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   lt_prog_compiler_pic_works_CXX=no
12444   ac_outfile=conftest.$ac_objext
12445    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12446    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12447    # Insert the option either (1) after the last *FLAGS variable, or
12448    # (2) before a word containing "conftest.", or (3) at the end.
12449    # Note that $ac_compile itself does not contain backslashes and begins
12450    # with a dollar sign (not a hyphen), so the echo should work correctly.
12451    # The option is referenced via a variable to avoid confusing sed.
12452    lt_compile=`echo "$ac_compile" | $SED \
12453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455    -e 's:$: $lt_compiler_flag:'`
12456    (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
12457    (eval "$lt_compile" 2>conftest.err)
12458    ac_status=$?
12459    cat conftest.err >&5
12460    echo "$as_me:12460: \$? = $ac_status" >&5
12461    if (exit $ac_status) && test -s "$ac_outfile"; then
12462      # The compiler can only warn and ignore the option if not recognized
12463      # So say no if there are warnings other than the usual output.
12464      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12465      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467        lt_prog_compiler_pic_works_CXX=yes
12468      fi
12469    fi
12470    $rm conftest*
12471
12472 fi
12473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12475
12476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12477     case $lt_prog_compiler_pic_CXX in
12478      "" | " "*) ;;
12479      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12480      esac
12481 else
12482     lt_prog_compiler_pic_CXX=
12483      lt_prog_compiler_can_build_shared_CXX=no
12484 fi
12485
12486 fi
12487 case $host_os in
12488   # For platforms which do not support PIC, -DPIC is meaningless:
12489   *djgpp*)
12490     lt_prog_compiler_pic_CXX=
12491     ;;
12492   *)
12493     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12494     ;;
12495 esac
12496
12497 #
12498 # Check to make sure the static flag actually works.
12499 #
12500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   lt_prog_compiler_static_works_CXX=no
12507    save_LDFLAGS="$LDFLAGS"
12508    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12509    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12510    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12511      # The linker can only warn and ignore the option if not recognized
12512      # So say no if there are warnings
12513      if test -s conftest.err; then
12514        # Append any errors to the config.log.
12515        cat conftest.err 1>&5
12516        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12517        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12518        if diff conftest.exp conftest.er2 >/dev/null; then
12519          lt_prog_compiler_static_works_CXX=yes
12520        fi
12521      else
12522        lt_prog_compiler_static_works_CXX=yes
12523      fi
12524    fi
12525    $rm conftest*
12526    LDFLAGS="$save_LDFLAGS"
12527
12528 fi
12529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12531
12532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12533     :
12534 else
12535     lt_prog_compiler_static_CXX=
12536 fi
12537
12538
12539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12542   echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544   lt_cv_prog_compiler_c_o_CXX=no
12545    $rm -r conftest 2>/dev/null
12546    mkdir conftest
12547    cd conftest
12548    mkdir out
12549    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12550
12551    lt_compiler_flag="-o out/conftest2.$ac_objext"
12552    # Insert the option either (1) after the last *FLAGS variable, or
12553    # (2) before a word containing "conftest.", or (3) at the end.
12554    # Note that $ac_compile itself does not contain backslashes and begins
12555    # with a dollar sign (not a hyphen), so the echo should work correctly.
12556    lt_compile=`echo "$ac_compile" | $SED \
12557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559    -e 's:$: $lt_compiler_flag:'`
12560    (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
12561    (eval "$lt_compile" 2>out/conftest.err)
12562    ac_status=$?
12563    cat out/conftest.err >&5
12564    echo "$as_me:12564: \$? = $ac_status" >&5
12565    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566    then
12567      # The compiler can only warn and ignore the option if not recognized
12568      # So say no if there are warnings
12569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12570      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572        lt_cv_prog_compiler_c_o_CXX=yes
12573      fi
12574    fi
12575    chmod u+w . 2>&5
12576    $rm conftest*
12577    # SGI C++ compiler will create directory out/ii_files/ for
12578    # template instantiation
12579    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12580    $rm out/* && rmdir out
12581    cd ..
12582    rmdir conftest
12583    $rm conftest*
12584
12585 fi
12586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12588
12589
12590 hard_links="nottested"
12591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12592   # do not overwrite the value of need_locks provided by the user
12593   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12595   hard_links=yes
12596   $rm conftest*
12597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12598   touch conftest.a
12599   ln conftest.a conftest.b 2>&5 || hard_links=no
12600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12601   { echo "$as_me:$LINENO: result: $hard_links" >&5
12602 echo "${ECHO_T}$hard_links" >&6; }
12603   if test "$hard_links" = no; then
12604     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12606     need_locks=warn
12607   fi
12608 else
12609   need_locks=no
12610 fi
12611
12612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12614
12615   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12616   case $host_os in
12617   aix4* | aix5*)
12618     # If we're using GNU nm, then we don't want the "-C" option.
12619     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12620     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12621       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'
12622     else
12623       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'
12624     fi
12625     ;;
12626   pw32*)
12627     export_symbols_cmds_CXX="$ltdll_cmds"
12628   ;;
12629   cygwin* | mingw*)
12630     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'
12631   ;;
12632   linux* | k*bsd*-gnu)
12633     link_all_deplibs_CXX=no
12634   ;;
12635   *)
12636     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12637   ;;
12638   esac
12639
12640 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12641 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12642 test "$ld_shlibs_CXX" = no && can_build_shared=no
12643
12644 #
12645 # Do we need to explicitly link libc?
12646 #
12647 case "x$archive_cmds_need_lc_CXX" in
12648 x|xyes)
12649   # Assume -lc should be added
12650   archive_cmds_need_lc_CXX=yes
12651
12652   if test "$enable_shared" = yes && test "$GCC" = yes; then
12653     case $archive_cmds_CXX in
12654     *'~'*)
12655       # FIXME: we may have to deal with multi-command sequences.
12656       ;;
12657     '$CC '*)
12658       # Test whether the compiler implicitly links with -lc since on some
12659       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12660       # to ld, don't add -lc before -lgcc.
12661       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12663       $rm conftest*
12664       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12665
12666       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667   (eval $ac_compile) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } 2>conftest.err; then
12671         soname=conftest
12672         lib=conftest
12673         libobjs=conftest.$ac_objext
12674         deplibs=
12675         wl=$lt_prog_compiler_wl_CXX
12676         pic_flag=$lt_prog_compiler_pic_CXX
12677         compiler_flags=-v
12678         linker_flags=-v
12679         verstring=
12680         output_objdir=.
12681         libname=conftest
12682         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12683         allow_undefined_flag_CXX=
12684         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12685   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }
12689         then
12690           archive_cmds_need_lc_CXX=no
12691         else
12692           archive_cmds_need_lc_CXX=yes
12693         fi
12694         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12695       else
12696         cat conftest.err 1>&5
12697       fi
12698       $rm conftest*
12699       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12701       ;;
12702     esac
12703   fi
12704   ;;
12705 esac
12706
12707 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12709 library_names_spec=
12710 libname_spec='lib$name'
12711 soname_spec=
12712 shrext_cmds=".so"
12713 postinstall_cmds=
12714 postuninstall_cmds=
12715 finish_cmds=
12716 finish_eval=
12717 shlibpath_var=
12718 shlibpath_overrides_runpath=unknown
12719 version_type=none
12720 dynamic_linker="$host_os ld.so"
12721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12722 if test "$GCC" = yes; then
12723   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12724   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12725     # if the path contains ";" then we assume it to be the separator
12726     # otherwise default to the standard path separator (i.e. ":") - it is
12727     # assumed that no part of a normal pathname contains ";" but that should
12728     # okay in the real world where ";" in dirpaths is itself problematic.
12729     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12730   else
12731     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12732   fi
12733 else
12734   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12735 fi
12736 need_lib_prefix=unknown
12737 hardcode_into_libs=no
12738
12739 # when you set need_version to no, make sure it does not cause -set_version
12740 # flags to be left without arguments
12741 need_version=unknown
12742
12743 case $host_os in
12744 aix3*)
12745   version_type=linux
12746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12747   shlibpath_var=LIBPATH
12748
12749   # AIX 3 has no versioning support, so we append a major version to the name.
12750   soname_spec='${libname}${release}${shared_ext}$major'
12751   ;;
12752
12753 aix4* | aix5*)
12754   version_type=linux
12755   need_lib_prefix=no
12756   need_version=no
12757   hardcode_into_libs=yes
12758   if test "$host_cpu" = ia64; then
12759     # AIX 5 supports IA64
12760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12761     shlibpath_var=LD_LIBRARY_PATH
12762   else
12763     # With GCC up to 2.95.x, collect2 would create an import file
12764     # for dependence libraries.  The import file would start with
12765     # the line `#! .'.  This would cause the generated library to
12766     # depend on `.', always an invalid library.  This was fixed in
12767     # development snapshots of GCC prior to 3.0.
12768     case $host_os in
12769       aix4 | aix4.[01] | aix4.[01].*)
12770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12771            echo ' yes '
12772            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12773         :
12774       else
12775         can_build_shared=no
12776       fi
12777       ;;
12778     esac
12779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12780     # soname into executable. Probably we can add versioning support to
12781     # collect2, so additional links can be useful in future.
12782     if test "$aix_use_runtimelinking" = yes; then
12783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12784       # instead of lib<name>.a to let people know that these are not
12785       # typical AIX shared libraries.
12786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787     else
12788       # We preserve .a as extension for shared libraries through AIX4.2
12789       # and later when we are not doing run time linking.
12790       library_names_spec='${libname}${release}.a $libname.a'
12791       soname_spec='${libname}${release}${shared_ext}$major'
12792     fi
12793     shlibpath_var=LIBPATH
12794   fi
12795   ;;
12796
12797 amigaos*)
12798   library_names_spec='$libname.ixlibrary $libname.a'
12799   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12800   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'
12801   ;;
12802
12803 beos*)
12804   library_names_spec='${libname}${shared_ext}'
12805   dynamic_linker="$host_os ld.so"
12806   shlibpath_var=LIBRARY_PATH
12807   ;;
12808
12809 bsdi[45]*)
12810   version_type=linux
12811   need_version=no
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813   soname_spec='${libname}${release}${shared_ext}$major'
12814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12815   shlibpath_var=LD_LIBRARY_PATH
12816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12818   # the default ld.so.conf also contains /usr/contrib/lib and
12819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12820   # libtool to hard-code these into programs
12821   ;;
12822
12823 cygwin* | mingw* | pw32*)
12824   version_type=windows
12825   shrext_cmds=".dll"
12826   need_version=no
12827   need_lib_prefix=no
12828
12829   case $GCC,$host_os in
12830   yes,cygwin* | yes,mingw* | yes,pw32*)
12831     library_names_spec='$libname.dll.a'
12832     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12833     postinstall_cmds='base_file=`basename \${file}`~
12834       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12835       dldir=$destdir/`dirname \$dlpath`~
12836       test -d \$dldir || mkdir -p \$dldir~
12837       $install_prog $dir/$dlname \$dldir/$dlname~
12838       chmod a+x \$dldir/$dlname'
12839     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12840       dlpath=$dir/\$dldll~
12841        $rm \$dlpath'
12842     shlibpath_overrides_runpath=yes
12843
12844     case $host_os in
12845     cygwin*)
12846       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12847       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12848       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12849       ;;
12850     mingw*)
12851       # MinGW DLLs use traditional 'lib' prefix
12852       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12854       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12855         # It is most probably a Windows format PATH printed by
12856         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12857         # path with ; separators, and with drive letters. We can handle the
12858         # drive letters (cygwin fileutils understands them), so leave them,
12859         # especially as we might pass files found there to a mingw objdump,
12860         # which wouldn't understand a cygwinified path. Ahh.
12861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12862       else
12863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12864       fi
12865       ;;
12866     pw32*)
12867       # pw32 DLLs use 'pw' prefix rather than 'lib'
12868       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12869       ;;
12870     esac
12871     ;;
12872
12873   *)
12874     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12875     ;;
12876   esac
12877   dynamic_linker='Win32 ld.exe'
12878   # FIXME: first we should search . and the directory the executable is in
12879   shlibpath_var=PATH
12880   ;;
12881
12882 darwin* | rhapsody*)
12883   dynamic_linker="$host_os dyld"
12884   version_type=darwin
12885   need_lib_prefix=no
12886   need_version=no
12887   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12888   soname_spec='${libname}${release}${major}$shared_ext'
12889   shlibpath_overrides_runpath=yes
12890   shlibpath_var=DYLD_LIBRARY_PATH
12891   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12892   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12893   if test "$GCC" = yes; then
12894     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12895   else
12896     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12897   fi
12898   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12899   ;;
12900
12901 dgux*)
12902   version_type=linux
12903   need_lib_prefix=no
12904   need_version=no
12905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12906   soname_spec='${libname}${release}${shared_ext}$major'
12907   shlibpath_var=LD_LIBRARY_PATH
12908   ;;
12909
12910 freebsd1*)
12911   dynamic_linker=no
12912   ;;
12913
12914 freebsd* | dragonfly*)
12915   # DragonFly does not have aout.  When/if they implement a new
12916   # versioning mechanism, adjust this.
12917   if test -x /usr/bin/objformat; then
12918     objformat=`/usr/bin/objformat`
12919   else
12920     case $host_os in
12921     freebsd[123]*) objformat=aout ;;
12922     *) objformat=elf ;;
12923     esac
12924   fi
12925   version_type=freebsd-$objformat
12926   case $version_type in
12927     freebsd-elf*)
12928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12929       need_version=no
12930       need_lib_prefix=no
12931       ;;
12932     freebsd-*)
12933       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12934       need_version=yes
12935       ;;
12936   esac
12937   shlibpath_var=LD_LIBRARY_PATH
12938   case $host_os in
12939   freebsd2*)
12940     shlibpath_overrides_runpath=yes
12941     ;;
12942   freebsd3.[01]* | freebsdelf3.[01]*)
12943     shlibpath_overrides_runpath=yes
12944     hardcode_into_libs=yes
12945     ;;
12946   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948     shlibpath_overrides_runpath=no
12949     hardcode_into_libs=yes
12950     ;;
12951   freebsd*) # from 4.6 on
12952     shlibpath_overrides_runpath=yes
12953     hardcode_into_libs=yes
12954     ;;
12955   esac
12956   ;;
12957
12958 gnu*)
12959   version_type=linux
12960   need_lib_prefix=no
12961   need_version=no
12962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12963   soname_spec='${libname}${release}${shared_ext}$major'
12964   shlibpath_var=LD_LIBRARY_PATH
12965   hardcode_into_libs=yes
12966   ;;
12967
12968 hpux9* | hpux10* | hpux11*)
12969   # Give a soname corresponding to the major version so that dld.sl refuses to
12970   # link against other versions.
12971   version_type=sunos
12972   need_lib_prefix=no
12973   need_version=no
12974   case $host_cpu in
12975   ia64*)
12976     shrext_cmds='.so'
12977     hardcode_into_libs=yes
12978     dynamic_linker="$host_os dld.so"
12979     shlibpath_var=LD_LIBRARY_PATH
12980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982     soname_spec='${libname}${release}${shared_ext}$major'
12983     if test "X$HPUX_IA64_MODE" = X32; then
12984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12985     else
12986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12987     fi
12988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12989     ;;
12990    hppa*64*)
12991      shrext_cmds='.sl'
12992      hardcode_into_libs=yes
12993      dynamic_linker="$host_os dld.sl"
12994      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12995      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997      soname_spec='${libname}${release}${shared_ext}$major'
12998      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12999      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13000      ;;
13001    *)
13002     shrext_cmds='.sl'
13003     dynamic_linker="$host_os dld.sl"
13004     shlibpath_var=SHLIB_PATH
13005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007     soname_spec='${libname}${release}${shared_ext}$major'
13008     ;;
13009   esac
13010   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13011   postinstall_cmds='chmod 555 $lib'
13012   ;;
13013
13014 interix3*)
13015   version_type=linux
13016   need_lib_prefix=no
13017   need_version=no
13018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13019   soname_spec='${libname}${release}${shared_ext}$major'
13020   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13021   shlibpath_var=LD_LIBRARY_PATH
13022   shlibpath_overrides_runpath=no
13023   hardcode_into_libs=yes
13024   ;;
13025
13026 irix5* | irix6* | nonstopux*)
13027   case $host_os in
13028     nonstopux*) version_type=nonstopux ;;
13029     *)
13030         if test "$lt_cv_prog_gnu_ld" = yes; then
13031                 version_type=linux
13032         else
13033                 version_type=irix
13034         fi ;;
13035   esac
13036   need_lib_prefix=no
13037   need_version=no
13038   soname_spec='${libname}${release}${shared_ext}$major'
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13040   case $host_os in
13041   irix5* | nonstopux*)
13042     libsuff= shlibsuff=
13043     ;;
13044   *)
13045     case $LD in # libtool.m4 will add one of these switches to LD
13046     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13047       libsuff= shlibsuff= libmagic=32-bit;;
13048     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13049       libsuff=32 shlibsuff=N32 libmagic=N32;;
13050     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13051       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13052     *) libsuff= shlibsuff= libmagic=never-match;;
13053     esac
13054     ;;
13055   esac
13056   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13057   shlibpath_overrides_runpath=no
13058   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13059   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13060   hardcode_into_libs=yes
13061   ;;
13062
13063 # No shared lib support for Linux oldld, aout, or coff.
13064 linux*oldld* | linux*aout* | linux*coff*)
13065   dynamic_linker=no
13066   ;;
13067
13068 # This must be Linux ELF.
13069 linux* | k*bsd*-gnu)
13070   version_type=linux
13071   need_lib_prefix=no
13072   need_version=no
13073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074   soname_spec='${libname}${release}${shared_ext}$major'
13075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13076   shlibpath_var=LD_LIBRARY_PATH
13077   shlibpath_overrides_runpath=no
13078   # This implies no fast_install, which is unacceptable.
13079   # Some rework will be needed to allow for fast_install
13080   # before this can be enabled.
13081   hardcode_into_libs=yes
13082
13083   # Append ld.so.conf contents to the search path
13084   if test -f /etc/ld.so.conf; then
13085     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13086     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13087   fi
13088
13089   # We used to test for /lib/ld.so.1 and disable shared libraries on
13090   # powerpc, because MkLinux only supported shared libraries with the
13091   # GNU dynamic linker.  Since this was broken with cross compilers,
13092   # most powerpc-linux boxes support dynamic linking these days and
13093   # people can always --disable-shared, the test was removed, and we
13094   # assume the GNU/Linux dynamic linker is in use.
13095   dynamic_linker='GNU/Linux ld.so'
13096   ;;
13097
13098 netbsdelf*-gnu)
13099   version_type=linux
13100   need_lib_prefix=no
13101   need_version=no
13102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13103   soname_spec='${libname}${release}${shared_ext}$major'
13104   shlibpath_var=LD_LIBRARY_PATH
13105   shlibpath_overrides_runpath=no
13106   hardcode_into_libs=yes
13107   dynamic_linker='NetBSD ld.elf_so'
13108   ;;
13109
13110 netbsd*)
13111   version_type=sunos
13112   need_lib_prefix=no
13113   need_version=no
13114   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117     dynamic_linker='NetBSD (a.out) ld.so'
13118   else
13119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120     soname_spec='${libname}${release}${shared_ext}$major'
13121     dynamic_linker='NetBSD ld.elf_so'
13122   fi
13123   shlibpath_var=LD_LIBRARY_PATH
13124   shlibpath_overrides_runpath=yes
13125   hardcode_into_libs=yes
13126   ;;
13127
13128 newsos6)
13129   version_type=linux
13130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   shlibpath_overrides_runpath=yes
13133   ;;
13134
13135 nto-qnx*)
13136   version_type=linux
13137   need_lib_prefix=no
13138   need_version=no
13139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140   soname_spec='${libname}${release}${shared_ext}$major'
13141   shlibpath_var=LD_LIBRARY_PATH
13142   shlibpath_overrides_runpath=yes
13143   ;;
13144
13145 openbsd*)
13146   version_type=sunos
13147   sys_lib_dlsearch_path_spec="/usr/lib"
13148   need_lib_prefix=no
13149   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13150   case $host_os in
13151     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13152     *)                         need_version=no  ;;
13153   esac
13154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156   shlibpath_var=LD_LIBRARY_PATH
13157   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13158     case $host_os in
13159       openbsd2.[89] | openbsd2.[89].*)
13160         shlibpath_overrides_runpath=no
13161         ;;
13162       *)
13163         shlibpath_overrides_runpath=yes
13164         ;;
13165       esac
13166   else
13167     shlibpath_overrides_runpath=yes
13168   fi
13169   ;;
13170
13171 os2*)
13172   libname_spec='$name'
13173   shrext_cmds=".dll"
13174   need_lib_prefix=no
13175   library_names_spec='$libname${shared_ext} $libname.a'
13176   dynamic_linker='OS/2 ld.exe'
13177   shlibpath_var=LIBPATH
13178   ;;
13179
13180 osf3* | osf4* | osf5*)
13181   version_type=osf
13182   need_lib_prefix=no
13183   need_version=no
13184   soname_spec='${libname}${release}${shared_ext}$major'
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186   shlibpath_var=LD_LIBRARY_PATH
13187   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13188   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13189   ;;
13190
13191 solaris*)
13192   version_type=linux
13193   need_lib_prefix=no
13194   need_version=no
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196   soname_spec='${libname}${release}${shared_ext}$major'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   shlibpath_overrides_runpath=yes
13199   hardcode_into_libs=yes
13200   # ldd complains unless libraries are executable
13201   postinstall_cmds='chmod +x $lib'
13202   ;;
13203
13204 sunos4*)
13205   version_type=sunos
13206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13207   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13208   shlibpath_var=LD_LIBRARY_PATH
13209   shlibpath_overrides_runpath=yes
13210   if test "$with_gnu_ld" = yes; then
13211     need_lib_prefix=no
13212   fi
13213   need_version=yes
13214   ;;
13215
13216 sysv4 | sysv4.3*)
13217   version_type=linux
13218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219   soname_spec='${libname}${release}${shared_ext}$major'
13220   shlibpath_var=LD_LIBRARY_PATH
13221   case $host_vendor in
13222     sni)
13223       shlibpath_overrides_runpath=no
13224       need_lib_prefix=no
13225       export_dynamic_flag_spec='${wl}-Blargedynsym'
13226       runpath_var=LD_RUN_PATH
13227       ;;
13228     siemens)
13229       need_lib_prefix=no
13230       ;;
13231     motorola)
13232       need_lib_prefix=no
13233       need_version=no
13234       shlibpath_overrides_runpath=no
13235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13236       ;;
13237   esac
13238   ;;
13239
13240 sysv4*MP*)
13241   if test -d /usr/nec ;then
13242     version_type=linux
13243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13244     soname_spec='$libname${shared_ext}.$major'
13245     shlibpath_var=LD_LIBRARY_PATH
13246   fi
13247   ;;
13248
13249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13250   version_type=freebsd-elf
13251   need_lib_prefix=no
13252   need_version=no
13253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254   soname_spec='${libname}${release}${shared_ext}$major'
13255   shlibpath_var=LD_LIBRARY_PATH
13256   hardcode_into_libs=yes
13257   if test "$with_gnu_ld" = yes; then
13258     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13259     shlibpath_overrides_runpath=no
13260   else
13261     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13262     shlibpath_overrides_runpath=yes
13263     case $host_os in
13264       sco3.2v5*)
13265         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13266         ;;
13267     esac
13268   fi
13269   sys_lib_dlsearch_path_spec='/usr/lib'
13270   ;;
13271
13272 uts4*)
13273   version_type=linux
13274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275   soname_spec='${libname}${release}${shared_ext}$major'
13276   shlibpath_var=LD_LIBRARY_PATH
13277   ;;
13278
13279 *)
13280   dynamic_linker=no
13281   ;;
13282 esac
13283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13284 echo "${ECHO_T}$dynamic_linker" >&6; }
13285 test "$dynamic_linker" = no && can_build_shared=no
13286
13287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13288 if test "$GCC" = yes; then
13289   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13290 fi
13291
13292 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13294 hardcode_action_CXX=
13295 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13296    test -n "$runpath_var_CXX" || \
13297    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13298
13299   # We can hardcode non-existant directories.
13300   if test "$hardcode_direct_CXX" != no &&
13301      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13302      # have to relink, otherwise we might link with an installed library
13303      # when we should be linking with a yet-to-be-installed one
13304      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13305      test "$hardcode_minus_L_CXX" != no; then
13306     # Linking always hardcodes the temporary library directory.
13307     hardcode_action_CXX=relink
13308   else
13309     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13310     hardcode_action_CXX=immediate
13311   fi
13312 else
13313   # We cannot hardcode anything, or else we can only hardcode existing
13314   # directories.
13315   hardcode_action_CXX=unsupported
13316 fi
13317 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13318 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13319
13320 if test "$hardcode_action_CXX" = relink; then
13321   # Fast installation is not supported
13322   enable_fast_install=no
13323 elif test "$shlibpath_overrides_runpath" = yes ||
13324      test "$enable_shared" = no; then
13325   # Fast installation is not necessary
13326   enable_fast_install=needless
13327 fi
13328
13329
13330 # The else clause should only fire when bootstrapping the
13331 # libtool distribution, otherwise you forgot to ship ltmain.sh
13332 # with your package, and you will get complaints that there are
13333 # no rules to generate ltmain.sh.
13334 if test -f "$ltmain"; then
13335   # See if we are running on zsh, and set the options which allow our commands through
13336   # without removal of \ escapes.
13337   if test -n "${ZSH_VERSION+set}" ; then
13338     setopt NO_GLOB_SUBST
13339   fi
13340   # Now quote all the things that may contain metacharacters while being
13341   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13342   # variables and quote the copies for generation of the libtool script.
13343   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13344     SED SHELL STRIP \
13345     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13346     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13347     deplibs_check_method reload_flag reload_cmds need_locks \
13348     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13349     lt_cv_sys_global_symbol_to_c_name_address \
13350     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13351     old_postinstall_cmds old_postuninstall_cmds \
13352     compiler_CXX \
13353     CC_CXX \
13354     LD_CXX \
13355     lt_prog_compiler_wl_CXX \
13356     lt_prog_compiler_pic_CXX \
13357     lt_prog_compiler_static_CXX \
13358     lt_prog_compiler_no_builtin_flag_CXX \
13359     export_dynamic_flag_spec_CXX \
13360     thread_safe_flag_spec_CXX \
13361     whole_archive_flag_spec_CXX \
13362     enable_shared_with_static_runtimes_CXX \
13363     old_archive_cmds_CXX \
13364     old_archive_from_new_cmds_CXX \
13365     predep_objects_CXX \
13366     postdep_objects_CXX \
13367     predeps_CXX \
13368     postdeps_CXX \
13369     compiler_lib_search_path_CXX \
13370     archive_cmds_CXX \
13371     archive_expsym_cmds_CXX \
13372     postinstall_cmds_CXX \
13373     postuninstall_cmds_CXX \
13374     old_archive_from_expsyms_cmds_CXX \
13375     allow_undefined_flag_CXX \
13376     no_undefined_flag_CXX \
13377     export_symbols_cmds_CXX \
13378     hardcode_libdir_flag_spec_CXX \
13379     hardcode_libdir_flag_spec_ld_CXX \
13380     hardcode_libdir_separator_CXX \
13381     hardcode_automatic_CXX \
13382     module_cmds_CXX \
13383     module_expsym_cmds_CXX \
13384     lt_cv_prog_compiler_c_o_CXX \
13385     exclude_expsyms_CXX \
13386     include_expsyms_CXX; do
13387
13388     case $var in
13389     old_archive_cmds_CXX | \
13390     old_archive_from_new_cmds_CXX | \
13391     archive_cmds_CXX | \
13392     archive_expsym_cmds_CXX | \
13393     module_cmds_CXX | \
13394     module_expsym_cmds_CXX | \
13395     old_archive_from_expsyms_cmds_CXX | \
13396     export_symbols_cmds_CXX | \
13397     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13398     postinstall_cmds | postuninstall_cmds | \
13399     old_postinstall_cmds | old_postuninstall_cmds | \
13400     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13401       # Double-quote double-evaled strings.
13402       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13403       ;;
13404     *)
13405       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13406       ;;
13407     esac
13408   done
13409
13410   case $lt_echo in
13411   *'\$0 --fallback-echo"')
13412     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13413     ;;
13414   esac
13415
13416 cfgfile="$ofile"
13417
13418   cat <<__EOF__ >> "$cfgfile"
13419 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13420
13421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13422
13423 # Shell to use when invoking shell scripts.
13424 SHELL=$lt_SHELL
13425
13426 # Whether or not to build shared libraries.
13427 build_libtool_libs=$enable_shared
13428
13429 # Whether or not to build static libraries.
13430 build_old_libs=$enable_static
13431
13432 # Whether or not to add -lc for building shared libraries.
13433 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13434
13435 # Whether or not to disallow shared libs when runtime libs are static
13436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13437
13438 # Whether or not to optimize for fast installation.
13439 fast_install=$enable_fast_install
13440
13441 # The host system.
13442 host_alias=$host_alias
13443 host=$host
13444 host_os=$host_os
13445
13446 # The build system.
13447 build_alias=$build_alias
13448 build=$build
13449 build_os=$build_os
13450
13451 # An echo program that does not interpret backslashes.
13452 echo=$lt_echo
13453
13454 # The archiver.
13455 AR=$lt_AR
13456 AR_FLAGS=$lt_AR_FLAGS
13457
13458 # A C compiler.
13459 LTCC=$lt_LTCC
13460
13461 # LTCC compiler flags.
13462 LTCFLAGS=$lt_LTCFLAGS
13463
13464 # A language-specific compiler.
13465 CC=$lt_compiler_CXX
13466
13467 # Is the compiler the GNU C compiler?
13468 with_gcc=$GCC_CXX
13469
13470 # An ERE matcher.
13471 EGREP=$lt_EGREP
13472
13473 # The linker used to build libraries.
13474 LD=$lt_LD_CXX
13475
13476 # Whether we need hard or soft links.
13477 LN_S=$lt_LN_S
13478
13479 # A BSD-compatible nm program.
13480 NM=$lt_NM
13481
13482 # A symbol stripping program
13483 STRIP=$lt_STRIP
13484
13485 # Used to examine libraries when file_magic_cmd begins "file"
13486 MAGIC_CMD=$MAGIC_CMD
13487
13488 # Used on cygwin: DLL creation program.
13489 DLLTOOL="$DLLTOOL"
13490
13491 # Used on cygwin: object dumper.
13492 OBJDUMP="$OBJDUMP"
13493
13494 # Used on cygwin: assembler.
13495 AS="$AS"
13496
13497 # The name of the directory that contains temporary libtool files.
13498 objdir=$objdir
13499
13500 # How to create reloadable object files.
13501 reload_flag=$lt_reload_flag
13502 reload_cmds=$lt_reload_cmds
13503
13504 # How to pass a linker flag through the compiler.
13505 wl=$lt_lt_prog_compiler_wl_CXX
13506
13507 # Object file suffix (normally "o").
13508 objext="$ac_objext"
13509
13510 # Old archive suffix (normally "a").
13511 libext="$libext"
13512
13513 # Shared library suffix (normally ".so").
13514 shrext_cmds='$shrext_cmds'
13515
13516 # Executable file suffix (normally "").
13517 exeext="$exeext"
13518
13519 # Additional compiler flags for building library objects.
13520 pic_flag=$lt_lt_prog_compiler_pic_CXX
13521 pic_mode=$pic_mode
13522
13523 # What is the maximum length of a command?
13524 max_cmd_len=$lt_cv_sys_max_cmd_len
13525
13526 # Does compiler simultaneously support -c and -o options?
13527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13528
13529 # Must we lock files when doing compilation?
13530 need_locks=$lt_need_locks
13531
13532 # Do we need the lib prefix for modules?
13533 need_lib_prefix=$need_lib_prefix
13534
13535 # Do we need a version for libraries?
13536 need_version=$need_version
13537
13538 # Whether dlopen is supported.
13539 dlopen_support=$enable_dlopen
13540
13541 # Whether dlopen of programs is supported.
13542 dlopen_self=$enable_dlopen_self
13543
13544 # Whether dlopen of statically linked programs is supported.
13545 dlopen_self_static=$enable_dlopen_self_static
13546
13547 # Compiler flag to prevent dynamic linking.
13548 link_static_flag=$lt_lt_prog_compiler_static_CXX
13549
13550 # Compiler flag to turn off builtin functions.
13551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13552
13553 # Compiler flag to allow reflexive dlopens.
13554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13555
13556 # Compiler flag to generate shared objects directly from archives.
13557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13558
13559 # Compiler flag to generate thread-safe objects.
13560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13561
13562 # Library versioning type.
13563 version_type=$version_type
13564
13565 # Format of library name prefix.
13566 libname_spec=$lt_libname_spec
13567
13568 # List of archive names.  First name is the real one, the rest are links.
13569 # The last name is the one that the linker finds with -lNAME.
13570 library_names_spec=$lt_library_names_spec
13571
13572 # The coded name of the library, if different from the real name.
13573 soname_spec=$lt_soname_spec
13574
13575 # Commands used to build and install an old-style archive.
13576 RANLIB=$lt_RANLIB
13577 old_archive_cmds=$lt_old_archive_cmds_CXX
13578 old_postinstall_cmds=$lt_old_postinstall_cmds
13579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13580
13581 # Create an old-style archive from a shared archive.
13582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13583
13584 # Create a temporary old-style archive to link instead of a shared archive.
13585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13586
13587 # Commands used to build and install a shared archive.
13588 archive_cmds=$lt_archive_cmds_CXX
13589 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13590 postinstall_cmds=$lt_postinstall_cmds
13591 postuninstall_cmds=$lt_postuninstall_cmds
13592
13593 # Commands used to build a loadable module (assumed same as above if empty)
13594 module_cmds=$lt_module_cmds_CXX
13595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13596
13597 # Commands to strip libraries.
13598 old_striplib=$lt_old_striplib
13599 striplib=$lt_striplib
13600
13601 # Dependencies to place before the objects being linked to create a
13602 # shared library.
13603 predep_objects=$lt_predep_objects_CXX
13604
13605 # Dependencies to place after the objects being linked to create a
13606 # shared library.
13607 postdep_objects=$lt_postdep_objects_CXX
13608
13609 # Dependencies to place before the objects being linked to create a
13610 # shared library.
13611 predeps=$lt_predeps_CXX
13612
13613 # Dependencies to place after the objects being linked to create a
13614 # shared library.
13615 postdeps=$lt_postdeps_CXX
13616
13617 # The library search path used internally by the compiler when linking
13618 # a shared library.
13619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13620
13621 # Method to check whether dependent libraries are shared objects.
13622 deplibs_check_method=$lt_deplibs_check_method
13623
13624 # Command to use when deplibs_check_method == file_magic.
13625 file_magic_cmd=$lt_file_magic_cmd
13626
13627 # Flag that allows shared libraries with undefined symbols to be built.
13628 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13629
13630 # Flag that forces no undefined symbols.
13631 no_undefined_flag=$lt_no_undefined_flag_CXX
13632
13633 # Commands used to finish a libtool library installation in a directory.
13634 finish_cmds=$lt_finish_cmds
13635
13636 # Same as above, but a single script fragment to be evaled but not shown.
13637 finish_eval=$lt_finish_eval
13638
13639 # Take the output of nm and produce a listing of raw symbols and C names.
13640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13641
13642 # Transform the output of nm in a proper C declaration
13643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13644
13645 # Transform the output of nm in a C name address pair
13646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13647
13648 # This is the shared library runtime path variable.
13649 runpath_var=$runpath_var
13650
13651 # This is the shared library path variable.
13652 shlibpath_var=$shlibpath_var
13653
13654 # Is shlibpath searched before the hard-coded library search path?
13655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13656
13657 # How to hardcode a shared library path into an executable.
13658 hardcode_action=$hardcode_action_CXX
13659
13660 # Whether we should hardcode library paths into libraries.
13661 hardcode_into_libs=$hardcode_into_libs
13662
13663 # Flag to hardcode \$libdir into a binary during linking.
13664 # This must work even if \$libdir does not exist.
13665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13666
13667 # If ld is used when linking, flag to hardcode \$libdir into
13668 # a binary during linking. This must work even if \$libdir does
13669 # not exist.
13670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13671
13672 # Whether we need a single -rpath flag with a separated argument.
13673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13674
13675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13676 # resulting binary.
13677 hardcode_direct=$hardcode_direct_CXX
13678
13679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_minus_L=$hardcode_minus_L_CXX
13682
13683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13684 # the resulting binary.
13685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13686
13687 # Set to yes if building a shared library automatically hardcodes DIR into the library
13688 # and all subsequent libraries and executables linked against it.
13689 hardcode_automatic=$hardcode_automatic_CXX
13690
13691 # Variables whose values should be saved in libtool wrapper scripts and
13692 # restored at relink time.
13693 variables_saved_for_relink="$variables_saved_for_relink"
13694
13695 # Whether libtool must link a program against all its dependency libraries.
13696 link_all_deplibs=$link_all_deplibs_CXX
13697
13698 # Compile-time system search path for libraries
13699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13700
13701 # Run-time system search path for libraries
13702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13703
13704 # Fix the shell variable \$srcfile for the compiler.
13705 fix_srcfile_path="$fix_srcfile_path_CXX"
13706
13707 # Set to yes if exported symbols are required.
13708 always_export_symbols=$always_export_symbols_CXX
13709
13710 # The commands to list exported symbols.
13711 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13712
13713 # The commands to extract the exported symbol list from a shared archive.
13714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13715
13716 # Symbols that should not be listed in the preloaded symbols.
13717 exclude_expsyms=$lt_exclude_expsyms_CXX
13718
13719 # Symbols that must always be exported.
13720 include_expsyms=$lt_include_expsyms_CXX
13721
13722 # ### END LIBTOOL TAG CONFIG: $tagname
13723
13724 __EOF__
13725
13726
13727 else
13728   # If there is no Makefile yet, we rely on a make rule to execute
13729   # `config.status --recheck' to rerun these tests and create the
13730   # libtool script then.
13731   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13732   if test -f "$ltmain_in"; then
13733     test -f Makefile && make "$ltmain"
13734   fi
13735 fi
13736
13737
13738 ac_ext=c
13739 ac_cpp='$CPP $CPPFLAGS'
13740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13743
13744 CC=$lt_save_CC
13745 LDCXX=$LD
13746 LD=$lt_save_LD
13747 GCC=$lt_save_GCC
13748 with_gnu_ldcxx=$with_gnu_ld
13749 with_gnu_ld=$lt_save_with_gnu_ld
13750 lt_cv_path_LDCXX=$lt_cv_path_LD
13751 lt_cv_path_LD=$lt_save_path_LD
13752 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13753 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13754
13755         else
13756           tagname=""
13757         fi
13758         ;;
13759
13760       F77)
13761         if test -n "$F77" && test "X$F77" != "Xno"; then
13762
13763 ac_ext=f
13764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13767
13768
13769 archive_cmds_need_lc_F77=no
13770 allow_undefined_flag_F77=
13771 always_export_symbols_F77=no
13772 archive_expsym_cmds_F77=
13773 export_dynamic_flag_spec_F77=
13774 hardcode_direct_F77=no
13775 hardcode_libdir_flag_spec_F77=
13776 hardcode_libdir_flag_spec_ld_F77=
13777 hardcode_libdir_separator_F77=
13778 hardcode_minus_L_F77=no
13779 hardcode_automatic_F77=no
13780 module_cmds_F77=
13781 module_expsym_cmds_F77=
13782 link_all_deplibs_F77=unknown
13783 old_archive_cmds_F77=$old_archive_cmds
13784 no_undefined_flag_F77=
13785 whole_archive_flag_spec_F77=
13786 enable_shared_with_static_runtimes_F77=no
13787
13788 # Source file extension for f77 test sources.
13789 ac_ext=f
13790
13791 # Object file extension for compiled f77 test sources.
13792 objext=o
13793 objext_F77=$objext
13794
13795 # Code to be used in simple compile tests
13796 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13797
13798 # Code to be used in simple link tests
13799 lt_simple_link_test_code="      program t\n      end\n"
13800
13801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13802
13803 # If no C compiler was specified, use CC.
13804 LTCC=${LTCC-"$CC"}
13805
13806 # If no C compiler flags were specified, use CFLAGS.
13807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13808
13809 # Allow CC to be a program name with arguments.
13810 compiler=$CC
13811
13812
13813 # save warnings/boilerplate of simple test code
13814 ac_outfile=conftest.$ac_objext
13815 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13817 _lt_compiler_boilerplate=`cat conftest.err`
13818 $rm conftest*
13819
13820 ac_outfile=conftest.$ac_objext
13821 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13823 _lt_linker_boilerplate=`cat conftest.err`
13824 $rm conftest*
13825
13826
13827 # Allow CC to be a program name with arguments.
13828 lt_save_CC="$CC"
13829 CC=${F77-"f77"}
13830 compiler=$CC
13831 compiler_F77=$CC
13832 for cc_temp in $compiler""; do
13833   case $cc_temp in
13834     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13835     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13836     \-*) ;;
13837     *) break;;
13838   esac
13839 done
13840 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13841
13842
13843 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13844 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13845 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13846 echo "${ECHO_T}$can_build_shared" >&6; }
13847
13848 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13849 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13850 test "$can_build_shared" = "no" && enable_shared=no
13851
13852 # On AIX, shared libraries and static libraries use the same namespace, and
13853 # are all built from PIC.
13854 case $host_os in
13855 aix3*)
13856   test "$enable_shared" = yes && enable_static=no
13857   if test -n "$RANLIB"; then
13858     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13859     postinstall_cmds='$RANLIB $lib'
13860   fi
13861   ;;
13862 aix4* | aix5*)
13863   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13864     test "$enable_shared" = yes && enable_static=no
13865   fi
13866   ;;
13867 esac
13868 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13869 echo "${ECHO_T}$enable_shared" >&6; }
13870
13871 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13872 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13873 # Make sure either enable_shared or enable_static is yes.
13874 test "$enable_shared" = yes || enable_static=yes
13875 { echo "$as_me:$LINENO: result: $enable_static" >&5
13876 echo "${ECHO_T}$enable_static" >&6; }
13877
13878 GCC_F77="$G77"
13879 LD_F77="$LD"
13880
13881 lt_prog_compiler_wl_F77=
13882 lt_prog_compiler_pic_F77=
13883 lt_prog_compiler_static_F77=
13884
13885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13887
13888   if test "$GCC" = yes; then
13889     lt_prog_compiler_wl_F77='-Wl,'
13890     lt_prog_compiler_static_F77='-static'
13891
13892     case $host_os in
13893       aix*)
13894       # All AIX code is PIC.
13895       if test "$host_cpu" = ia64; then
13896         # AIX 5 now supports IA64 processor
13897         lt_prog_compiler_static_F77='-Bstatic'
13898       fi
13899       ;;
13900
13901     amigaos*)
13902       # FIXME: we need at least 68020 code to build shared libraries, but
13903       # adding the `-m68020' flag to GCC prevents building anything better,
13904       # like `-m68040'.
13905       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13906       ;;
13907
13908     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13909       # PIC is the default for these OSes.
13910       ;;
13911
13912     mingw* | pw32* | os2*)
13913       # This hack is so that the source file can tell whether it is being
13914       # built for inclusion in a dll (and should export symbols for example).
13915       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13916       ;;
13917
13918     darwin* | rhapsody*)
13919       # PIC is the default on this platform
13920       # Common symbols not allowed in MH_DYLIB files
13921       lt_prog_compiler_pic_F77='-fno-common'
13922       ;;
13923
13924     interix3*)
13925       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13926       # Instead, we relocate shared libraries at runtime.
13927       ;;
13928
13929     msdosdjgpp*)
13930       # Just because we use GCC doesn't mean we suddenly get shared libraries
13931       # on systems that don't support them.
13932       lt_prog_compiler_can_build_shared_F77=no
13933       enable_shared=no
13934       ;;
13935
13936     sysv4*MP*)
13937       if test -d /usr/nec; then
13938         lt_prog_compiler_pic_F77=-Kconform_pic
13939       fi
13940       ;;
13941
13942     hpux*)
13943       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944       # not for PA HP-UX.
13945       case $host_cpu in
13946       hppa*64*|ia64*)
13947         # +Z the default
13948         ;;
13949       *)
13950         lt_prog_compiler_pic_F77='-fPIC'
13951         ;;
13952       esac
13953       ;;
13954
13955     *)
13956       lt_prog_compiler_pic_F77='-fPIC'
13957       ;;
13958     esac
13959   else
13960     # PORTME Check for flag to pass linker flags through the system compiler.
13961     case $host_os in
13962     aix*)
13963       lt_prog_compiler_wl_F77='-Wl,'
13964       if test "$host_cpu" = ia64; then
13965         # AIX 5 now supports IA64 processor
13966         lt_prog_compiler_static_F77='-Bstatic'
13967       else
13968         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13969       fi
13970       ;;
13971       darwin*)
13972         # PIC is the default on this platform
13973         # Common symbols not allowed in MH_DYLIB files
13974        case $cc_basename in
13975          xlc*)
13976          lt_prog_compiler_pic_F77='-qnocommon'
13977          lt_prog_compiler_wl_F77='-Wl,'
13978          ;;
13979        esac
13980        ;;
13981
13982     mingw* | pw32* | os2*)
13983       # This hack is so that the source file can tell whether it is being
13984       # built for inclusion in a dll (and should export symbols for example).
13985       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13986       ;;
13987
13988     hpux9* | hpux10* | hpux11*)
13989       lt_prog_compiler_wl_F77='-Wl,'
13990       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13991       # not for PA HP-UX.
13992       case $host_cpu in
13993       hppa*64*|ia64*)
13994         # +Z the default
13995         ;;
13996       *)
13997         lt_prog_compiler_pic_F77='+Z'
13998         ;;
13999       esac
14000       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14001       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14002       ;;
14003
14004     irix5* | irix6* | nonstopux*)
14005       lt_prog_compiler_wl_F77='-Wl,'
14006       # PIC (with -KPIC) is the default.
14007       lt_prog_compiler_static_F77='-non_shared'
14008       ;;
14009
14010     newsos6)
14011       lt_prog_compiler_pic_F77='-KPIC'
14012       lt_prog_compiler_static_F77='-Bstatic'
14013       ;;
14014
14015     linux* | k*bsd*-gnu)
14016       case $cc_basename in
14017       icc* | ecc*)
14018         lt_prog_compiler_wl_F77='-Wl,'
14019         lt_prog_compiler_pic_F77='-KPIC'
14020         lt_prog_compiler_static_F77='-static'
14021         ;;
14022       pgcc* | pgf77* | pgf90* | pgf95*)
14023         # Portland Group compilers (*not* the Pentium gcc compiler,
14024         # which looks to be a dead project)
14025         lt_prog_compiler_wl_F77='-Wl,'
14026         lt_prog_compiler_pic_F77='-fpic'
14027         lt_prog_compiler_static_F77='-Bstatic'
14028         ;;
14029       ccc*)
14030         lt_prog_compiler_wl_F77='-Wl,'
14031         # All Alpha code is PIC.
14032         lt_prog_compiler_static_F77='-non_shared'
14033         ;;
14034       esac
14035       ;;
14036
14037     osf3* | osf4* | osf5*)
14038       lt_prog_compiler_wl_F77='-Wl,'
14039       # All OSF/1 code is PIC.
14040       lt_prog_compiler_static_F77='-non_shared'
14041       ;;
14042
14043     solaris*)
14044       lt_prog_compiler_pic_F77='-KPIC'
14045       lt_prog_compiler_static_F77='-Bstatic'
14046       case $cc_basename in
14047       f77* | f90* | f95*)
14048         lt_prog_compiler_wl_F77='-Qoption ld ';;
14049       *)
14050         lt_prog_compiler_wl_F77='-Wl,';;
14051       esac
14052       ;;
14053
14054     sunos4*)
14055       lt_prog_compiler_wl_F77='-Qoption ld '
14056       lt_prog_compiler_pic_F77='-PIC'
14057       lt_prog_compiler_static_F77='-Bstatic'
14058       ;;
14059
14060     sysv4 | sysv4.2uw2* | sysv4.3*)
14061       lt_prog_compiler_wl_F77='-Wl,'
14062       lt_prog_compiler_pic_F77='-KPIC'
14063       lt_prog_compiler_static_F77='-Bstatic'
14064       ;;
14065
14066     sysv4*MP*)
14067       if test -d /usr/nec ;then
14068         lt_prog_compiler_pic_F77='-Kconform_pic'
14069         lt_prog_compiler_static_F77='-Bstatic'
14070       fi
14071       ;;
14072
14073     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14074       lt_prog_compiler_wl_F77='-Wl,'
14075       lt_prog_compiler_pic_F77='-KPIC'
14076       lt_prog_compiler_static_F77='-Bstatic'
14077       ;;
14078
14079     unicos*)
14080       lt_prog_compiler_wl_F77='-Wl,'
14081       lt_prog_compiler_can_build_shared_F77=no
14082       ;;
14083
14084     uts4*)
14085       lt_prog_compiler_pic_F77='-pic'
14086       lt_prog_compiler_static_F77='-Bstatic'
14087       ;;
14088
14089     *)
14090       lt_prog_compiler_can_build_shared_F77=no
14091       ;;
14092     esac
14093   fi
14094
14095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14096 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14097
14098 #
14099 # Check to make sure the PIC flag actually works.
14100 #
14101 if test -n "$lt_prog_compiler_pic_F77"; then
14102
14103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14105 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   lt_prog_compiler_pic_works_F77=no
14109   ac_outfile=conftest.$ac_objext
14110    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14111    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14112    # Insert the option either (1) after the last *FLAGS variable, or
14113    # (2) before a word containing "conftest.", or (3) at the end.
14114    # Note that $ac_compile itself does not contain backslashes and begins
14115    # with a dollar sign (not a hyphen), so the echo should work correctly.
14116    # The option is referenced via a variable to avoid confusing sed.
14117    lt_compile=`echo "$ac_compile" | $SED \
14118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14120    -e 's:$: $lt_compiler_flag:'`
14121    (eval echo "\"\$as_me:14121: $lt_compile\"" >&5)
14122    (eval "$lt_compile" 2>conftest.err)
14123    ac_status=$?
14124    cat conftest.err >&5
14125    echo "$as_me:14125: \$? = $ac_status" >&5
14126    if (exit $ac_status) && test -s "$ac_outfile"; then
14127      # The compiler can only warn and ignore the option if not recognized
14128      # So say no if there are warnings other than the usual output.
14129      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14132        lt_prog_compiler_pic_works_F77=yes
14133      fi
14134    fi
14135    $rm conftest*
14136
14137 fi
14138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14139 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14140
14141 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14142     case $lt_prog_compiler_pic_F77 in
14143      "" | " "*) ;;
14144      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14145      esac
14146 else
14147     lt_prog_compiler_pic_F77=
14148      lt_prog_compiler_can_build_shared_F77=no
14149 fi
14150
14151 fi
14152 case $host_os in
14153   # For platforms which do not support PIC, -DPIC is meaningless:
14154   *djgpp*)
14155     lt_prog_compiler_pic_F77=
14156     ;;
14157   *)
14158     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14159     ;;
14160 esac
14161
14162 #
14163 # Check to make sure the static flag actually works.
14164 #
14165 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14168 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   lt_prog_compiler_static_works_F77=no
14172    save_LDFLAGS="$LDFLAGS"
14173    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14174    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14175    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176      # The linker can only warn and ignore the option if not recognized
14177      # So say no if there are warnings
14178      if test -s conftest.err; then
14179        # Append any errors to the config.log.
14180        cat conftest.err 1>&5
14181        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14182        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183        if diff conftest.exp conftest.er2 >/dev/null; then
14184          lt_prog_compiler_static_works_F77=yes
14185        fi
14186      else
14187        lt_prog_compiler_static_works_F77=yes
14188      fi
14189    fi
14190    $rm conftest*
14191    LDFLAGS="$save_LDFLAGS"
14192
14193 fi
14194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14195 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14196
14197 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14198     :
14199 else
14200     lt_prog_compiler_static_F77=
14201 fi
14202
14203
14204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14206 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14207   echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209   lt_cv_prog_compiler_c_o_F77=no
14210    $rm -r conftest 2>/dev/null
14211    mkdir conftest
14212    cd conftest
14213    mkdir out
14214    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14215
14216    lt_compiler_flag="-o out/conftest2.$ac_objext"
14217    # Insert the option either (1) after the last *FLAGS variable, or
14218    # (2) before a word containing "conftest.", or (3) at the end.
14219    # Note that $ac_compile itself does not contain backslashes and begins
14220    # with a dollar sign (not a hyphen), so the echo should work correctly.
14221    lt_compile=`echo "$ac_compile" | $SED \
14222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224    -e 's:$: $lt_compiler_flag:'`
14225    (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
14226    (eval "$lt_compile" 2>out/conftest.err)
14227    ac_status=$?
14228    cat out/conftest.err >&5
14229    echo "$as_me:14229: \$? = $ac_status" >&5
14230    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14231    then
14232      # The compiler can only warn and ignore the option if not recognized
14233      # So say no if there are warnings
14234      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14235      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14236      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14237        lt_cv_prog_compiler_c_o_F77=yes
14238      fi
14239    fi
14240    chmod u+w . 2>&5
14241    $rm conftest*
14242    # SGI C++ compiler will create directory out/ii_files/ for
14243    # template instantiation
14244    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14245    $rm out/* && rmdir out
14246    cd ..
14247    rmdir conftest
14248    $rm conftest*
14249
14250 fi
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14253
14254
14255 hard_links="nottested"
14256 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14257   # do not overwrite the value of need_locks provided by the user
14258   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14260   hard_links=yes
14261   $rm conftest*
14262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14263   touch conftest.a
14264   ln conftest.a conftest.b 2>&5 || hard_links=no
14265   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266   { echo "$as_me:$LINENO: result: $hard_links" >&5
14267 echo "${ECHO_T}$hard_links" >&6; }
14268   if test "$hard_links" = no; then
14269     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14271     need_locks=warn
14272   fi
14273 else
14274   need_locks=no
14275 fi
14276
14277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14279
14280   runpath_var=
14281   allow_undefined_flag_F77=
14282   enable_shared_with_static_runtimes_F77=no
14283   archive_cmds_F77=
14284   archive_expsym_cmds_F77=
14285   old_archive_From_new_cmds_F77=
14286   old_archive_from_expsyms_cmds_F77=
14287   export_dynamic_flag_spec_F77=
14288   whole_archive_flag_spec_F77=
14289   thread_safe_flag_spec_F77=
14290   hardcode_libdir_flag_spec_F77=
14291   hardcode_libdir_flag_spec_ld_F77=
14292   hardcode_libdir_separator_F77=
14293   hardcode_direct_F77=no
14294   hardcode_minus_L_F77=no
14295   hardcode_shlibpath_var_F77=unsupported
14296   link_all_deplibs_F77=unknown
14297   hardcode_automatic_F77=no
14298   module_cmds_F77=
14299   module_expsym_cmds_F77=
14300   always_export_symbols_F77=no
14301   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302   # include_expsyms should be a list of space-separated symbols to be *always*
14303   # included in the symbol list
14304   include_expsyms_F77=
14305   # exclude_expsyms can be an extended regexp of symbols to exclude
14306   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14307   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14308   # as well as any symbol that contains `d'.
14309   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14310   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14311   # platforms (ab)use it in PIC code, but their linkers get confused if
14312   # the symbol is explicitly referenced.  Since portable code cannot
14313   # rely on this symbol name, it's probably fine to never include it in
14314   # preloaded symbol tables.
14315   extract_expsyms_cmds=
14316   # Just being paranoid about ensuring that cc_basename is set.
14317   for cc_temp in $compiler""; do
14318   case $cc_temp in
14319     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14320     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14321     \-*) ;;
14322     *) break;;
14323   esac
14324 done
14325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14326
14327   case $host_os in
14328   cygwin* | mingw* | pw32*)
14329     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14330     # When not using gcc, we currently assume that we are using
14331     # Microsoft Visual C++.
14332     if test "$GCC" != yes; then
14333       with_gnu_ld=no
14334     fi
14335     ;;
14336   interix*)
14337     # we just hope/assume this is gcc and not c89 (= MSVC++)
14338     with_gnu_ld=yes
14339     ;;
14340   openbsd*)
14341     with_gnu_ld=no
14342     ;;
14343   esac
14344
14345   ld_shlibs_F77=yes
14346   if test "$with_gnu_ld" = yes; then
14347     # If archive_cmds runs LD, not CC, wlarc should be empty
14348     wlarc='${wl}'
14349
14350     # Set some defaults for GNU ld with shared library support. These
14351     # are reset later if shared libraries are not supported. Putting them
14352     # here allows them to be overridden if necessary.
14353     runpath_var=LD_RUN_PATH
14354     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14355     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14356     # ancient GNU ld didn't support --whole-archive et. al.
14357     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14358         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14359       else
14360         whole_archive_flag_spec_F77=
14361     fi
14362     supports_anon_versioning=no
14363     case `$LD -v 2>/dev/null` in
14364       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14365       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14366       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14367       *\ 2.11.*) ;; # other 2.11 versions
14368       *) supports_anon_versioning=yes ;;
14369     esac
14370
14371     # See if GNU ld supports shared libraries.
14372     case $host_os in
14373     aix3* | aix4* | aix5*)
14374       # On AIX/PPC, the GNU linker is very broken
14375       if test "$host_cpu" != ia64; then
14376         ld_shlibs_F77=no
14377         cat <<EOF 1>&2
14378
14379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14380 *** to be unable to reliably create shared libraries on AIX.
14381 *** Therefore, libtool is disabling shared libraries support.  If you
14382 *** really care for shared libraries, you may want to modify your PATH
14383 *** so that a non-GNU linker is found, and then restart.
14384
14385 EOF
14386       fi
14387       ;;
14388
14389     amigaos*)
14390       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)'
14391       hardcode_libdir_flag_spec_F77='-L$libdir'
14392       hardcode_minus_L_F77=yes
14393
14394       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14395       # that the semantics of dynamic libraries on AmigaOS, at least up
14396       # to version 4, is to share data among multiple programs linked
14397       # with the same dynamic library.  Since this doesn't match the
14398       # behavior of shared libraries on other platforms, we can't use
14399       # them.
14400       ld_shlibs_F77=no
14401       ;;
14402
14403     beos*)
14404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14405         allow_undefined_flag_F77=unsupported
14406         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14407         # support --undefined.  This deserves some investigation.  FIXME
14408         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409       else
14410         ld_shlibs_F77=no
14411       fi
14412       ;;
14413
14414     cygwin* | mingw* | pw32*)
14415       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14416       # as there is no search path for DLLs.
14417       hardcode_libdir_flag_spec_F77='-L$libdir'
14418       allow_undefined_flag_F77=unsupported
14419       always_export_symbols_F77=no
14420       enable_shared_with_static_runtimes_F77=yes
14421       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14422
14423       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14424         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14425         # If the export-symbols file already is a .def file (1st line
14426         # is EXPORTS), use it as is; otherwise, prepend...
14427         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14428           cp $export_symbols $output_objdir/$soname.def;
14429         else
14430           echo EXPORTS > $output_objdir/$soname.def;
14431           cat $export_symbols >> $output_objdir/$soname.def;
14432         fi~
14433         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14434       else
14435         ld_shlibs_F77=no
14436       fi
14437       ;;
14438
14439     interix3*)
14440       hardcode_direct_F77=no
14441       hardcode_shlibpath_var_F77=no
14442       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14443       export_dynamic_flag_spec_F77='${wl}-E'
14444       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14445       # Instead, shared libraries are loaded at an image base (0x10000000 by
14446       # default) and relocated if they conflict, which is a slow very memory
14447       # consuming and fragmenting process.  To avoid this, we pick a random,
14448       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14449       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14450       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'
14451       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'
14452       ;;
14453
14454     linux* | k*bsd*-gnu)
14455       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456         tmp_addflag=
14457         case $cc_basename,$host_cpu in
14458         pgcc*)                          # Portland Group C compiler
14459           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'
14460           tmp_addflag=' $pic_flag'
14461           ;;
14462         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14463           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'
14464           tmp_addflag=' $pic_flag -Mnomain' ;;
14465         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14466           tmp_addflag=' -i_dynamic' ;;
14467         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14468           tmp_addflag=' -i_dynamic -nofor_main' ;;
14469         ifc* | ifort*)                  # Intel Fortran compiler
14470           tmp_addflag=' -nofor_main' ;;
14471         esac
14472         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14473
14474         if test $supports_anon_versioning = yes; then
14475           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14476   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14477   $echo "local: *; };" >> $output_objdir/$libname.ver~
14478           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14479         fi
14480         link_all_deplibs_F77=no
14481       else
14482         ld_shlibs_F77=no
14483       fi
14484       ;;
14485
14486     netbsd* | netbsdelf*-gnu)
14487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489         wlarc=
14490       else
14491         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14493       fi
14494       ;;
14495
14496     solaris*)
14497       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14498         ld_shlibs_F77=no
14499         cat <<EOF 1>&2
14500
14501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502 *** create shared libraries on Solaris systems.  Therefore, libtool
14503 *** is disabling shared libraries support.  We urge you to upgrade GNU
14504 *** binutils to release 2.9.1 or newer.  Another option is to modify
14505 *** your PATH or compiler configuration so that the native linker is
14506 *** used, and then restart.
14507
14508 EOF
14509       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512       else
14513         ld_shlibs_F77=no
14514       fi
14515       ;;
14516
14517     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518       case `$LD -v 2>&1` in
14519         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14520         ld_shlibs_F77=no
14521         cat <<_LT_EOF 1>&2
14522
14523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14525 *** is disabling shared libraries support.  We urge you to upgrade GNU
14526 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14527 *** your PATH or compiler configuration so that the native linker is
14528 *** used, and then restart.
14529
14530 _LT_EOF
14531         ;;
14532         *)
14533           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14537           else
14538             ld_shlibs_F77=no
14539           fi
14540         ;;
14541       esac
14542       ;;
14543
14544     sunos4*)
14545       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546       wlarc=
14547       hardcode_direct_F77=yes
14548       hardcode_shlibpath_var_F77=no
14549       ;;
14550
14551     *)
14552       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555       else
14556         ld_shlibs_F77=no
14557       fi
14558       ;;
14559     esac
14560
14561     if test "$ld_shlibs_F77" = no; then
14562       runpath_var=
14563       hardcode_libdir_flag_spec_F77=
14564       export_dynamic_flag_spec_F77=
14565       whole_archive_flag_spec_F77=
14566     fi
14567   else
14568     # PORTME fill in a description of your system's linker (not GNU ld)
14569     case $host_os in
14570     aix3*)
14571       allow_undefined_flag_F77=unsupported
14572       always_export_symbols_F77=yes
14573       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'
14574       # Note: this linker hardcodes the directories in LIBPATH if there
14575       # are no directories specified by -L.
14576       hardcode_minus_L_F77=yes
14577       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578         # Neither direct hardcoding nor static linking is supported with a
14579         # broken collect2.
14580         hardcode_direct_F77=unsupported
14581       fi
14582       ;;
14583
14584     aix4* | aix5*)
14585       if test "$host_cpu" = ia64; then
14586         # On IA64, the linker does run time linking by default, so we don't
14587         # have to do anything special.
14588         aix_use_runtimelinking=no
14589         exp_sym_flag='-Bexport'
14590         no_entry_flag=""
14591       else
14592         # If we're using GNU nm, then we don't want the "-C" option.
14593         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595           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'
14596         else
14597           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'
14598         fi
14599         aix_use_runtimelinking=no
14600
14601         # Test if we are trying to use run time linking or normal
14602         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603         # need to do runtime linking.
14604         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605           for ld_flag in $LDFLAGS; do
14606           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607             aix_use_runtimelinking=yes
14608             break
14609           fi
14610           done
14611           ;;
14612         esac
14613
14614         exp_sym_flag='-bexport'
14615         no_entry_flag='-bnoentry'
14616       fi
14617
14618       # When large executables or shared objects are built, AIX ld can
14619       # have problems creating the table of contents.  If linking a library
14620       # or program results in "error TOC overflow" add -mminimal-toc to
14621       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14622       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14623
14624       archive_cmds_F77=''
14625       hardcode_direct_F77=yes
14626       hardcode_libdir_separator_F77=':'
14627       link_all_deplibs_F77=yes
14628
14629       if test "$GCC" = yes; then
14630         case $host_os in aix4.[012]|aix4.[012].*)
14631         # We only want to do this on AIX 4.2 and lower, the check
14632         # below for broken collect2 doesn't work under 4.3+
14633           collect2name=`${CC} -print-prog-name=collect2`
14634           if test -f "$collect2name" && \
14635            strings "$collect2name" | grep resolve_lib_name >/dev/null
14636           then
14637           # We have reworked collect2
14638           hardcode_direct_F77=yes
14639           else
14640           # We have old collect2
14641           hardcode_direct_F77=unsupported
14642           # It fails to find uninstalled libraries when the uninstalled
14643           # path is not listed in the libpath.  Setting hardcode_minus_L
14644           # to unsupported forces relinking
14645           hardcode_minus_L_F77=yes
14646           hardcode_libdir_flag_spec_F77='-L$libdir'
14647           hardcode_libdir_separator_F77=
14648           fi
14649           ;;
14650         esac
14651         shared_flag='-shared'
14652         if test "$aix_use_runtimelinking" = yes; then
14653           shared_flag="$shared_flag "'${wl}-G'
14654         fi
14655       else
14656         # not using gcc
14657         if test "$host_cpu" = ia64; then
14658         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659         # chokes on -Wl,-G. The following line is correct:
14660           shared_flag='-G'
14661         else
14662           if test "$aix_use_runtimelinking" = yes; then
14663             shared_flag='${wl}-G'
14664           else
14665             shared_flag='${wl}-bM:SRE'
14666           fi
14667         fi
14668       fi
14669
14670       # It seems that -bexpall does not export symbols beginning with
14671       # underscore (_), so it is better to generate a list of symbols to export.
14672       always_export_symbols_F77=yes
14673       if test "$aix_use_runtimelinking" = yes; then
14674         # Warning - without using the other runtime loading flags (-brtl),
14675         # -berok will link without error, but may produce a broken library.
14676         allow_undefined_flag_F77='-berok'
14677        # Determine the default libpath from the value encoded in an empty executable.
14678        cat >conftest.$ac_ext <<_ACEOF
14679       program main
14680
14681       end
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_link") 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } && {
14697          test -z "$ac_f77_werror_flag" ||
14698          test ! -s conftest.err
14699        } && test -s conftest$ac_exeext &&
14700        $as_test_x conftest$ac_exeext; then
14701
14702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14703 }'`
14704 # Check for a 64-bit object if we didn't find anything.
14705 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14706 }'`; fi
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711
14712 fi
14713
14714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14715       conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14717
14718        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719         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"
14720        else
14721         if test "$host_cpu" = ia64; then
14722           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14723           allow_undefined_flag_F77="-z nodefs"
14724           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"
14725         else
14726          # Determine the default libpath from the value encoded in an empty executable.
14727          cat >conftest.$ac_ext <<_ACEOF
14728       program main
14729
14730       end
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_link") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } && {
14746          test -z "$ac_f77_werror_flag" ||
14747          test ! -s conftest.err
14748        } && test -s conftest$ac_exeext &&
14749        $as_test_x conftest$ac_exeext; then
14750
14751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14752 }'`
14753 # Check for a 64-bit object if we didn't find anything.
14754 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14755 }'`; fi
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760
14761 fi
14762
14763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764       conftest$ac_exeext conftest.$ac_ext
14765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14766
14767          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14768           # Warning - without using the other run time loading flags,
14769           # -berok will link without error, but may produce a broken library.
14770           no_undefined_flag_F77=' ${wl}-bernotok'
14771           allow_undefined_flag_F77=' ${wl}-berok'
14772           # Exported symbols can be pulled into shared objects from archives
14773           whole_archive_flag_spec_F77='$convenience'
14774           archive_cmds_need_lc_F77=yes
14775           # This is similar to how AIX traditionally builds its shared libraries.
14776           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'
14777         fi
14778       fi
14779       ;;
14780
14781     amigaos*)
14782       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)'
14783       hardcode_libdir_flag_spec_F77='-L$libdir'
14784       hardcode_minus_L_F77=yes
14785       # see comment about different semantics on the GNU ld section
14786       ld_shlibs_F77=no
14787       ;;
14788
14789     bsdi[45]*)
14790       export_dynamic_flag_spec_F77=-rdynamic
14791       ;;
14792
14793     cygwin* | mingw* | pw32*)
14794       # When not using gcc, we currently assume that we are using
14795       # Microsoft Visual C++.
14796       # hardcode_libdir_flag_spec is actually meaningless, as there is
14797       # no search path for DLLs.
14798       hardcode_libdir_flag_spec_F77=' '
14799       allow_undefined_flag_F77=unsupported
14800       # Tell ltmain to make .lib files, not .a files.
14801       libext=lib
14802       # Tell ltmain to make .dll files, not .so files.
14803       shrext_cmds=".dll"
14804       # FIXME: Setting linknames here is a bad hack.
14805       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14806       # The linker will automatically build a .lib file if we build a DLL.
14807       old_archive_From_new_cmds_F77='true'
14808       # FIXME: Should let the user specify the lib program.
14809       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14810       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14811       enable_shared_with_static_runtimes_F77=yes
14812       ;;
14813
14814     darwin* | rhapsody*)
14815       case $host_os in
14816         rhapsody* | darwin1.[012])
14817          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14818          ;;
14819        *) # Darwin 1.3 on
14820          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14821            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14822          else
14823            case ${MACOSX_DEPLOYMENT_TARGET} in
14824              10.[012])
14825                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14826                ;;
14827              10.*)
14828                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14829                ;;
14830            esac
14831          fi
14832          ;;
14833       esac
14834       archive_cmds_need_lc_F77=no
14835       hardcode_direct_F77=no
14836       hardcode_automatic_F77=yes
14837       hardcode_shlibpath_var_F77=unsupported
14838       whole_archive_flag_spec_F77=''
14839       link_all_deplibs_F77=yes
14840     if test "$GCC" = yes ; then
14841         output_verbose_link_cmd='echo'
14842         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14843       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845       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}'
14846       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}'
14847     else
14848       case $cc_basename in
14849         xlc*)
14850          output_verbose_link_cmd='echo'
14851          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14852          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14853           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14854          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14855           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}'
14856           ;;
14857        *)
14858          ld_shlibs_F77=no
14859           ;;
14860       esac
14861     fi
14862       ;;
14863
14864     dgux*)
14865       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866       hardcode_libdir_flag_spec_F77='-L$libdir'
14867       hardcode_shlibpath_var_F77=no
14868       ;;
14869
14870     freebsd1*)
14871       ld_shlibs_F77=no
14872       ;;
14873
14874     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14875     # support.  Future versions do this automatically, but an explicit c++rt0.o
14876     # does not break anything, and helps significantly (at the cost of a little
14877     # extra space).
14878     freebsd2.2*)
14879       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14880       hardcode_libdir_flag_spec_F77='-R$libdir'
14881       hardcode_direct_F77=yes
14882       hardcode_shlibpath_var_F77=no
14883       ;;
14884
14885     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14886     freebsd2*)
14887       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14888       hardcode_direct_F77=yes
14889       hardcode_minus_L_F77=yes
14890       hardcode_shlibpath_var_F77=no
14891       ;;
14892
14893     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14894     freebsd* | dragonfly*)
14895       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14896       hardcode_libdir_flag_spec_F77='-R$libdir'
14897       hardcode_direct_F77=yes
14898       hardcode_shlibpath_var_F77=no
14899       ;;
14900
14901     hpux9*)
14902       if test "$GCC" = yes; then
14903         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'
14904       else
14905         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'
14906       fi
14907       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14908       hardcode_libdir_separator_F77=:
14909       hardcode_direct_F77=yes
14910
14911       # hardcode_minus_L: Not really in the search PATH,
14912       # but as the default location of the library.
14913       hardcode_minus_L_F77=yes
14914       export_dynamic_flag_spec_F77='${wl}-E'
14915       ;;
14916
14917     hpux10*)
14918       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14919         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14920       else
14921         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14922       fi
14923       if test "$with_gnu_ld" = no; then
14924         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14925         hardcode_libdir_separator_F77=:
14926
14927         hardcode_direct_F77=yes
14928         export_dynamic_flag_spec_F77='${wl}-E'
14929
14930         # hardcode_minus_L: Not really in the search PATH,
14931         # but as the default location of the library.
14932         hardcode_minus_L_F77=yes
14933       fi
14934       ;;
14935
14936     hpux11*)
14937       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14938         case $host_cpu in
14939         hppa*64*)
14940           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941           ;;
14942         ia64*)
14943           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945         *)
14946           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14947           ;;
14948         esac
14949       else
14950         case $host_cpu in
14951         hppa*64*)
14952           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14953           ;;
14954         ia64*)
14955           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14956           ;;
14957         *)
14958           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14959           ;;
14960         esac
14961       fi
14962       if test "$with_gnu_ld" = no; then
14963         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964         hardcode_libdir_separator_F77=:
14965
14966         case $host_cpu in
14967         hppa*64*|ia64*)
14968           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14969           hardcode_direct_F77=no
14970           hardcode_shlibpath_var_F77=no
14971           ;;
14972         *)
14973           hardcode_direct_F77=yes
14974           export_dynamic_flag_spec_F77='${wl}-E'
14975
14976           # hardcode_minus_L: Not really in the search PATH,
14977           # but as the default location of the library.
14978           hardcode_minus_L_F77=yes
14979           ;;
14980         esac
14981       fi
14982       ;;
14983
14984     irix5* | irix6* | nonstopux*)
14985       if test "$GCC" = yes; then
14986         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'
14987       else
14988         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'
14989         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14990       fi
14991       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992       hardcode_libdir_separator_F77=:
14993       link_all_deplibs_F77=yes
14994       ;;
14995
14996     netbsd* | netbsdelf*-gnu)
14997       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14999       else
15000         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15001       fi
15002       hardcode_libdir_flag_spec_F77='-R$libdir'
15003       hardcode_direct_F77=yes
15004       hardcode_shlibpath_var_F77=no
15005       ;;
15006
15007     newsos6)
15008       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009       hardcode_direct_F77=yes
15010       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011       hardcode_libdir_separator_F77=:
15012       hardcode_shlibpath_var_F77=no
15013       ;;
15014
15015     openbsd*)
15016       hardcode_direct_F77=yes
15017       hardcode_shlibpath_var_F77=no
15018       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15019         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15021         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15022         export_dynamic_flag_spec_F77='${wl}-E'
15023       else
15024        case $host_os in
15025          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15026            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15027            hardcode_libdir_flag_spec_F77='-R$libdir'
15028            ;;
15029          *)
15030            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15031            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15032            ;;
15033        esac
15034       fi
15035       ;;
15036
15037     os2*)
15038       hardcode_libdir_flag_spec_F77='-L$libdir'
15039       hardcode_minus_L_F77=yes
15040       allow_undefined_flag_F77=unsupported
15041       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'
15042       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15043       ;;
15044
15045     osf3*)
15046       if test "$GCC" = yes; then
15047         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048         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'
15049       else
15050         allow_undefined_flag_F77=' -expect_unresolved \*'
15051         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'
15052       fi
15053       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15054       hardcode_libdir_separator_F77=:
15055       ;;
15056
15057     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15058       if test "$GCC" = yes; then
15059         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15060         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'
15061         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15062       else
15063         allow_undefined_flag_F77=' -expect_unresolved \*'
15064         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'
15065         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~
15066         $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'
15067
15068         # Both c and cxx compiler support -rpath directly
15069         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15070       fi
15071       hardcode_libdir_separator_F77=:
15072       ;;
15073
15074     solaris*)
15075       no_undefined_flag_F77=' -z text'
15076       if test "$GCC" = yes; then
15077         wlarc='${wl}'
15078         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15080           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15081       else
15082         wlarc=''
15083         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15085         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15086       fi
15087       hardcode_libdir_flag_spec_F77='-R$libdir'
15088       hardcode_shlibpath_var_F77=no
15089       case $host_os in
15090       solaris2.[0-5] | solaris2.[0-5].*) ;;
15091       *)
15092         # The compiler driver will combine linker options so we
15093         # cannot just pass the convience library names through
15094         # without $wl, iff we do not link with $LD.
15095         # Luckily, gcc supports the same syntax we need for Sun Studio.
15096         # Supported since Solaris 2.6 (maybe 2.5.1?)
15097         case $wlarc in
15098         '')
15099           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15100         *)
15101           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15102         esac ;;
15103       esac
15104       link_all_deplibs_F77=yes
15105       ;;
15106
15107     sunos4*)
15108       if test "x$host_vendor" = xsequent; then
15109         # Use $CC to link under sequent, because it throws in some extra .o
15110         # files that make .init and .fini sections work.
15111         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15112       else
15113         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15114       fi
15115       hardcode_libdir_flag_spec_F77='-L$libdir'
15116       hardcode_direct_F77=yes
15117       hardcode_minus_L_F77=yes
15118       hardcode_shlibpath_var_F77=no
15119       ;;
15120
15121     sysv4)
15122       case $host_vendor in
15123         sni)
15124           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125           hardcode_direct_F77=yes # is this really true???
15126         ;;
15127         siemens)
15128           ## LD is ld it makes a PLAMLIB
15129           ## CC just makes a GrossModule.
15130           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15131           reload_cmds_F77='$CC -r -o $output$reload_objs'
15132           hardcode_direct_F77=no
15133         ;;
15134         motorola)
15135           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15137         ;;
15138       esac
15139       runpath_var='LD_RUN_PATH'
15140       hardcode_shlibpath_var_F77=no
15141       ;;
15142
15143     sysv4.3*)
15144       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145       hardcode_shlibpath_var_F77=no
15146       export_dynamic_flag_spec_F77='-Bexport'
15147       ;;
15148
15149     sysv4*MP*)
15150       if test -d /usr/nec; then
15151         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152         hardcode_shlibpath_var_F77=no
15153         runpath_var=LD_RUN_PATH
15154         hardcode_runpath_var=yes
15155         ld_shlibs_F77=yes
15156       fi
15157       ;;
15158
15159     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15160       no_undefined_flag_F77='${wl}-z,text'
15161       archive_cmds_need_lc_F77=no
15162       hardcode_shlibpath_var_F77=no
15163       runpath_var='LD_RUN_PATH'
15164
15165       if test "$GCC" = yes; then
15166         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168       else
15169         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171       fi
15172       ;;
15173
15174     sysv5* | sco3.2v5* | sco5v6*)
15175       # Note: We can NOT use -z defs as we might desire, because we do not
15176       # link with -lc, and that would cause any symbols used from libc to
15177       # always be unresolved, which means just about no library would
15178       # ever link correctly.  If we're not using GNU ld we use -z text
15179       # though, which does catch some bad symbols but isn't as heavy-handed
15180       # as -z defs.
15181       no_undefined_flag_F77='${wl}-z,text'
15182       allow_undefined_flag_F77='${wl}-z,nodefs'
15183       archive_cmds_need_lc_F77=no
15184       hardcode_shlibpath_var_F77=no
15185       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15186       hardcode_libdir_separator_F77=':'
15187       link_all_deplibs_F77=yes
15188       export_dynamic_flag_spec_F77='${wl}-Bexport'
15189       runpath_var='LD_RUN_PATH'
15190
15191       if test "$GCC" = yes; then
15192         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194       else
15195         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197       fi
15198       ;;
15199
15200     uts4*)
15201       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202       hardcode_libdir_flag_spec_F77='-L$libdir'
15203       hardcode_shlibpath_var_F77=no
15204       ;;
15205
15206     *)
15207       ld_shlibs_F77=no
15208       ;;
15209     esac
15210   fi
15211
15212 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15215
15216 #
15217 # Do we need to explicitly link libc?
15218 #
15219 case "x$archive_cmds_need_lc_F77" in
15220 x|xyes)
15221   # Assume -lc should be added
15222   archive_cmds_need_lc_F77=yes
15223
15224   if test "$enable_shared" = yes && test "$GCC" = yes; then
15225     case $archive_cmds_F77 in
15226     *'~'*)
15227       # FIXME: we may have to deal with multi-command sequences.
15228       ;;
15229     '$CC '*)
15230       # Test whether the compiler implicitly links with -lc since on some
15231       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15232       # to ld, don't add -lc before -lgcc.
15233       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15235       $rm conftest*
15236       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15237
15238       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239   (eval $ac_compile) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } 2>conftest.err; then
15243         soname=conftest
15244         lib=conftest
15245         libobjs=conftest.$ac_objext
15246         deplibs=
15247         wl=$lt_prog_compiler_wl_F77
15248         pic_flag=$lt_prog_compiler_pic_F77
15249         compiler_flags=-v
15250         linker_flags=-v
15251         verstring=
15252         output_objdir=.
15253         libname=conftest
15254         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15255         allow_undefined_flag_F77=
15256         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15257   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }
15261         then
15262           archive_cmds_need_lc_F77=no
15263         else
15264           archive_cmds_need_lc_F77=yes
15265         fi
15266         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15267       else
15268         cat conftest.err 1>&5
15269       fi
15270       $rm conftest*
15271       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15272 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15273       ;;
15274     esac
15275   fi
15276   ;;
15277 esac
15278
15279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15281 library_names_spec=
15282 libname_spec='lib$name'
15283 soname_spec=
15284 shrext_cmds=".so"
15285 postinstall_cmds=
15286 postuninstall_cmds=
15287 finish_cmds=
15288 finish_eval=
15289 shlibpath_var=
15290 shlibpath_overrides_runpath=unknown
15291 version_type=none
15292 dynamic_linker="$host_os ld.so"
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15294 if test "$GCC" = yes; then
15295   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15296   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15297     # if the path contains ";" then we assume it to be the separator
15298     # otherwise default to the standard path separator (i.e. ":") - it is
15299     # assumed that no part of a normal pathname contains ";" but that should
15300     # okay in the real world where ";" in dirpaths is itself problematic.
15301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302   else
15303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15304   fi
15305 else
15306   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15307 fi
15308 need_lib_prefix=unknown
15309 hardcode_into_libs=no
15310
15311 # when you set need_version to no, make sure it does not cause -set_version
15312 # flags to be left without arguments
15313 need_version=unknown
15314
15315 case $host_os in
15316 aix3*)
15317   version_type=linux
15318   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15319   shlibpath_var=LIBPATH
15320
15321   # AIX 3 has no versioning support, so we append a major version to the name.
15322   soname_spec='${libname}${release}${shared_ext}$major'
15323   ;;
15324
15325 aix4* | aix5*)
15326   version_type=linux
15327   need_lib_prefix=no
15328   need_version=no
15329   hardcode_into_libs=yes
15330   if test "$host_cpu" = ia64; then
15331     # AIX 5 supports IA64
15332     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15333     shlibpath_var=LD_LIBRARY_PATH
15334   else
15335     # With GCC up to 2.95.x, collect2 would create an import file
15336     # for dependence libraries.  The import file would start with
15337     # the line `#! .'.  This would cause the generated library to
15338     # depend on `.', always an invalid library.  This was fixed in
15339     # development snapshots of GCC prior to 3.0.
15340     case $host_os in
15341       aix4 | aix4.[01] | aix4.[01].*)
15342       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15343            echo ' yes '
15344            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15345         :
15346       else
15347         can_build_shared=no
15348       fi
15349       ;;
15350     esac
15351     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15352     # soname into executable. Probably we can add versioning support to
15353     # collect2, so additional links can be useful in future.
15354     if test "$aix_use_runtimelinking" = yes; then
15355       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15356       # instead of lib<name>.a to let people know that these are not
15357       # typical AIX shared libraries.
15358       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359     else
15360       # We preserve .a as extension for shared libraries through AIX4.2
15361       # and later when we are not doing run time linking.
15362       library_names_spec='${libname}${release}.a $libname.a'
15363       soname_spec='${libname}${release}${shared_ext}$major'
15364     fi
15365     shlibpath_var=LIBPATH
15366   fi
15367   ;;
15368
15369 amigaos*)
15370   library_names_spec='$libname.ixlibrary $libname.a'
15371   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15372   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'
15373   ;;
15374
15375 beos*)
15376   library_names_spec='${libname}${shared_ext}'
15377   dynamic_linker="$host_os ld.so"
15378   shlibpath_var=LIBRARY_PATH
15379   ;;
15380
15381 bsdi[45]*)
15382   version_type=linux
15383   need_version=no
15384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385   soname_spec='${libname}${release}${shared_ext}$major'
15386   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15387   shlibpath_var=LD_LIBRARY_PATH
15388   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15389   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15390   # the default ld.so.conf also contains /usr/contrib/lib and
15391   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15392   # libtool to hard-code these into programs
15393   ;;
15394
15395 cygwin* | mingw* | pw32*)
15396   version_type=windows
15397   shrext_cmds=".dll"
15398   need_version=no
15399   need_lib_prefix=no
15400
15401   case $GCC,$host_os in
15402   yes,cygwin* | yes,mingw* | yes,pw32*)
15403     library_names_spec='$libname.dll.a'
15404     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15405     postinstall_cmds='base_file=`basename \${file}`~
15406       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15407       dldir=$destdir/`dirname \$dlpath`~
15408       test -d \$dldir || mkdir -p \$dldir~
15409       $install_prog $dir/$dlname \$dldir/$dlname~
15410       chmod a+x \$dldir/$dlname'
15411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15412       dlpath=$dir/\$dldll~
15413        $rm \$dlpath'
15414     shlibpath_overrides_runpath=yes
15415
15416     case $host_os in
15417     cygwin*)
15418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15421       ;;
15422     mingw*)
15423       # MinGW DLLs use traditional 'lib' prefix
15424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15427         # It is most probably a Windows format PATH printed by
15428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15429         # path with ; separators, and with drive letters. We can handle the
15430         # drive letters (cygwin fileutils understands them), so leave them,
15431         # especially as we might pass files found there to a mingw objdump,
15432         # which wouldn't understand a cygwinified path. Ahh.
15433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15434       else
15435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15436       fi
15437       ;;
15438     pw32*)
15439       # pw32 DLLs use 'pw' prefix rather than 'lib'
15440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441       ;;
15442     esac
15443     ;;
15444
15445   *)
15446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15447     ;;
15448   esac
15449   dynamic_linker='Win32 ld.exe'
15450   # FIXME: first we should search . and the directory the executable is in
15451   shlibpath_var=PATH
15452   ;;
15453
15454 darwin* | rhapsody*)
15455   dynamic_linker="$host_os dyld"
15456   version_type=darwin
15457   need_lib_prefix=no
15458   need_version=no
15459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15460   soname_spec='${libname}${release}${major}$shared_ext'
15461   shlibpath_overrides_runpath=yes
15462   shlibpath_var=DYLD_LIBRARY_PATH
15463   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15465   if test "$GCC" = yes; then
15466     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15467   else
15468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15469   fi
15470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15471   ;;
15472
15473 dgux*)
15474   version_type=linux
15475   need_lib_prefix=no
15476   need_version=no
15477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15478   soname_spec='${libname}${release}${shared_ext}$major'
15479   shlibpath_var=LD_LIBRARY_PATH
15480   ;;
15481
15482 freebsd1*)
15483   dynamic_linker=no
15484   ;;
15485
15486 freebsd* | dragonfly*)
15487   # DragonFly does not have aout.  When/if they implement a new
15488   # versioning mechanism, adjust this.
15489   if test -x /usr/bin/objformat; then
15490     objformat=`/usr/bin/objformat`
15491   else
15492     case $host_os in
15493     freebsd[123]*) objformat=aout ;;
15494     *) objformat=elf ;;
15495     esac
15496   fi
15497   version_type=freebsd-$objformat
15498   case $version_type in
15499     freebsd-elf*)
15500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15501       need_version=no
15502       need_lib_prefix=no
15503       ;;
15504     freebsd-*)
15505       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15506       need_version=yes
15507       ;;
15508   esac
15509   shlibpath_var=LD_LIBRARY_PATH
15510   case $host_os in
15511   freebsd2*)
15512     shlibpath_overrides_runpath=yes
15513     ;;
15514   freebsd3.[01]* | freebsdelf3.[01]*)
15515     shlibpath_overrides_runpath=yes
15516     hardcode_into_libs=yes
15517     ;;
15518   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15519   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15520     shlibpath_overrides_runpath=no
15521     hardcode_into_libs=yes
15522     ;;
15523   freebsd*) # from 4.6 on
15524     shlibpath_overrides_runpath=yes
15525     hardcode_into_libs=yes
15526     ;;
15527   esac
15528   ;;
15529
15530 gnu*)
15531   version_type=linux
15532   need_lib_prefix=no
15533   need_version=no
15534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15535   soname_spec='${libname}${release}${shared_ext}$major'
15536   shlibpath_var=LD_LIBRARY_PATH
15537   hardcode_into_libs=yes
15538   ;;
15539
15540 hpux9* | hpux10* | hpux11*)
15541   # Give a soname corresponding to the major version so that dld.sl refuses to
15542   # link against other versions.
15543   version_type=sunos
15544   need_lib_prefix=no
15545   need_version=no
15546   case $host_cpu in
15547   ia64*)
15548     shrext_cmds='.so'
15549     hardcode_into_libs=yes
15550     dynamic_linker="$host_os dld.so"
15551     shlibpath_var=LD_LIBRARY_PATH
15552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554     soname_spec='${libname}${release}${shared_ext}$major'
15555     if test "X$HPUX_IA64_MODE" = X32; then
15556       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15557     else
15558       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15559     fi
15560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15561     ;;
15562    hppa*64*)
15563      shrext_cmds='.sl'
15564      hardcode_into_libs=yes
15565      dynamic_linker="$host_os dld.sl"
15566      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15567      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569      soname_spec='${libname}${release}${shared_ext}$major'
15570      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15571      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15572      ;;
15573    *)
15574     shrext_cmds='.sl'
15575     dynamic_linker="$host_os dld.sl"
15576     shlibpath_var=SHLIB_PATH
15577     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579     soname_spec='${libname}${release}${shared_ext}$major'
15580     ;;
15581   esac
15582   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15583   postinstall_cmds='chmod 555 $lib'
15584   ;;
15585
15586 interix3*)
15587   version_type=linux
15588   need_lib_prefix=no
15589   need_version=no
15590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15591   soname_spec='${libname}${release}${shared_ext}$major'
15592   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15593   shlibpath_var=LD_LIBRARY_PATH
15594   shlibpath_overrides_runpath=no
15595   hardcode_into_libs=yes
15596   ;;
15597
15598 irix5* | irix6* | nonstopux*)
15599   case $host_os in
15600     nonstopux*) version_type=nonstopux ;;
15601     *)
15602         if test "$lt_cv_prog_gnu_ld" = yes; then
15603                 version_type=linux
15604         else
15605                 version_type=irix
15606         fi ;;
15607   esac
15608   need_lib_prefix=no
15609   need_version=no
15610   soname_spec='${libname}${release}${shared_ext}$major'
15611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15612   case $host_os in
15613   irix5* | nonstopux*)
15614     libsuff= shlibsuff=
15615     ;;
15616   *)
15617     case $LD in # libtool.m4 will add one of these switches to LD
15618     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15619       libsuff= shlibsuff= libmagic=32-bit;;
15620     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15621       libsuff=32 shlibsuff=N32 libmagic=N32;;
15622     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15623       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15624     *) libsuff= shlibsuff= libmagic=never-match;;
15625     esac
15626     ;;
15627   esac
15628   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15629   shlibpath_overrides_runpath=no
15630   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15631   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15632   hardcode_into_libs=yes
15633   ;;
15634
15635 # No shared lib support for Linux oldld, aout, or coff.
15636 linux*oldld* | linux*aout* | linux*coff*)
15637   dynamic_linker=no
15638   ;;
15639
15640 # This must be Linux ELF.
15641 linux* | k*bsd*-gnu)
15642   version_type=linux
15643   need_lib_prefix=no
15644   need_version=no
15645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646   soname_spec='${libname}${release}${shared_ext}$major'
15647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   shlibpath_overrides_runpath=no
15650   # This implies no fast_install, which is unacceptable.
15651   # Some rework will be needed to allow for fast_install
15652   # before this can be enabled.
15653   hardcode_into_libs=yes
15654
15655   # Append ld.so.conf contents to the search path
15656   if test -f /etc/ld.so.conf; then
15657     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15658     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15659   fi
15660
15661   # We used to test for /lib/ld.so.1 and disable shared libraries on
15662   # powerpc, because MkLinux only supported shared libraries with the
15663   # GNU dynamic linker.  Since this was broken with cross compilers,
15664   # most powerpc-linux boxes support dynamic linking these days and
15665   # people can always --disable-shared, the test was removed, and we
15666   # assume the GNU/Linux dynamic linker is in use.
15667   dynamic_linker='GNU/Linux ld.so'
15668   ;;
15669
15670 netbsdelf*-gnu)
15671   version_type=linux
15672   need_lib_prefix=no
15673   need_version=no
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15675   soname_spec='${libname}${release}${shared_ext}$major'
15676   shlibpath_var=LD_LIBRARY_PATH
15677   shlibpath_overrides_runpath=no
15678   hardcode_into_libs=yes
15679   dynamic_linker='NetBSD ld.elf_so'
15680   ;;
15681
15682 netbsd*)
15683   version_type=sunos
15684   need_lib_prefix=no
15685   need_version=no
15686   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15688     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15689     dynamic_linker='NetBSD (a.out) ld.so'
15690   else
15691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15692     soname_spec='${libname}${release}${shared_ext}$major'
15693     dynamic_linker='NetBSD ld.elf_so'
15694   fi
15695   shlibpath_var=LD_LIBRARY_PATH
15696   shlibpath_overrides_runpath=yes
15697   hardcode_into_libs=yes
15698   ;;
15699
15700 newsos6)
15701   version_type=linux
15702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=yes
15705   ;;
15706
15707 nto-qnx*)
15708   version_type=linux
15709   need_lib_prefix=no
15710   need_version=no
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   ;;
15716
15717 openbsd*)
15718   version_type=sunos
15719   sys_lib_dlsearch_path_spec="/usr/lib"
15720   need_lib_prefix=no
15721   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15722   case $host_os in
15723     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15724     *)                         need_version=no  ;;
15725   esac
15726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728   shlibpath_var=LD_LIBRARY_PATH
15729   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15730     case $host_os in
15731       openbsd2.[89] | openbsd2.[89].*)
15732         shlibpath_overrides_runpath=no
15733         ;;
15734       *)
15735         shlibpath_overrides_runpath=yes
15736         ;;
15737       esac
15738   else
15739     shlibpath_overrides_runpath=yes
15740   fi
15741   ;;
15742
15743 os2*)
15744   libname_spec='$name'
15745   shrext_cmds=".dll"
15746   need_lib_prefix=no
15747   library_names_spec='$libname${shared_ext} $libname.a'
15748   dynamic_linker='OS/2 ld.exe'
15749   shlibpath_var=LIBPATH
15750   ;;
15751
15752 osf3* | osf4* | osf5*)
15753   version_type=osf
15754   need_lib_prefix=no
15755   need_version=no
15756   soname_spec='${libname}${release}${shared_ext}$major'
15757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758   shlibpath_var=LD_LIBRARY_PATH
15759   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15760   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15761   ;;
15762
15763 solaris*)
15764   version_type=linux
15765   need_lib_prefix=no
15766   need_version=no
15767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768   soname_spec='${libname}${release}${shared_ext}$major'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=yes
15771   hardcode_into_libs=yes
15772   # ldd complains unless libraries are executable
15773   postinstall_cmds='chmod +x $lib'
15774   ;;
15775
15776 sunos4*)
15777   version_type=sunos
15778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15780   shlibpath_var=LD_LIBRARY_PATH
15781   shlibpath_overrides_runpath=yes
15782   if test "$with_gnu_ld" = yes; then
15783     need_lib_prefix=no
15784   fi
15785   need_version=yes
15786   ;;
15787
15788 sysv4 | sysv4.3*)
15789   version_type=linux
15790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791   soname_spec='${libname}${release}${shared_ext}$major'
15792   shlibpath_var=LD_LIBRARY_PATH
15793   case $host_vendor in
15794     sni)
15795       shlibpath_overrides_runpath=no
15796       need_lib_prefix=no
15797       export_dynamic_flag_spec='${wl}-Blargedynsym'
15798       runpath_var=LD_RUN_PATH
15799       ;;
15800     siemens)
15801       need_lib_prefix=no
15802       ;;
15803     motorola)
15804       need_lib_prefix=no
15805       need_version=no
15806       shlibpath_overrides_runpath=no
15807       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15808       ;;
15809   esac
15810   ;;
15811
15812 sysv4*MP*)
15813   if test -d /usr/nec ;then
15814     version_type=linux
15815     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15816     soname_spec='$libname${shared_ext}.$major'
15817     shlibpath_var=LD_LIBRARY_PATH
15818   fi
15819   ;;
15820
15821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15822   version_type=freebsd-elf
15823   need_lib_prefix=no
15824   need_version=no
15825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15826   soname_spec='${libname}${release}${shared_ext}$major'
15827   shlibpath_var=LD_LIBRARY_PATH
15828   hardcode_into_libs=yes
15829   if test "$with_gnu_ld" = yes; then
15830     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15831     shlibpath_overrides_runpath=no
15832   else
15833     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15834     shlibpath_overrides_runpath=yes
15835     case $host_os in
15836       sco3.2v5*)
15837         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15838         ;;
15839     esac
15840   fi
15841   sys_lib_dlsearch_path_spec='/usr/lib'
15842   ;;
15843
15844 uts4*)
15845   version_type=linux
15846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847   soname_spec='${libname}${release}${shared_ext}$major'
15848   shlibpath_var=LD_LIBRARY_PATH
15849   ;;
15850
15851 *)
15852   dynamic_linker=no
15853   ;;
15854 esac
15855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15856 echo "${ECHO_T}$dynamic_linker" >&6; }
15857 test "$dynamic_linker" = no && can_build_shared=no
15858
15859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15860 if test "$GCC" = yes; then
15861   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15862 fi
15863
15864 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15865 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15866 hardcode_action_F77=
15867 if test -n "$hardcode_libdir_flag_spec_F77" || \
15868    test -n "$runpath_var_F77" || \
15869    test "X$hardcode_automatic_F77" = "Xyes" ; then
15870
15871   # We can hardcode non-existant directories.
15872   if test "$hardcode_direct_F77" != no &&
15873      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15874      # have to relink, otherwise we might link with an installed library
15875      # when we should be linking with a yet-to-be-installed one
15876      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15877      test "$hardcode_minus_L_F77" != no; then
15878     # Linking always hardcodes the temporary library directory.
15879     hardcode_action_F77=relink
15880   else
15881     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15882     hardcode_action_F77=immediate
15883   fi
15884 else
15885   # We cannot hardcode anything, or else we can only hardcode existing
15886   # directories.
15887   hardcode_action_F77=unsupported
15888 fi
15889 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15890 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15891
15892 if test "$hardcode_action_F77" = relink; then
15893   # Fast installation is not supported
15894   enable_fast_install=no
15895 elif test "$shlibpath_overrides_runpath" = yes ||
15896      test "$enable_shared" = no; then
15897   # Fast installation is not necessary
15898   enable_fast_install=needless
15899 fi
15900
15901
15902 # The else clause should only fire when bootstrapping the
15903 # libtool distribution, otherwise you forgot to ship ltmain.sh
15904 # with your package, and you will get complaints that there are
15905 # no rules to generate ltmain.sh.
15906 if test -f "$ltmain"; then
15907   # See if we are running on zsh, and set the options which allow our commands through
15908   # without removal of \ escapes.
15909   if test -n "${ZSH_VERSION+set}" ; then
15910     setopt NO_GLOB_SUBST
15911   fi
15912   # Now quote all the things that may contain metacharacters while being
15913   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15914   # variables and quote the copies for generation of the libtool script.
15915   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15916     SED SHELL STRIP \
15917     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15918     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15919     deplibs_check_method reload_flag reload_cmds need_locks \
15920     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15921     lt_cv_sys_global_symbol_to_c_name_address \
15922     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15923     old_postinstall_cmds old_postuninstall_cmds \
15924     compiler_F77 \
15925     CC_F77 \
15926     LD_F77 \
15927     lt_prog_compiler_wl_F77 \
15928     lt_prog_compiler_pic_F77 \
15929     lt_prog_compiler_static_F77 \
15930     lt_prog_compiler_no_builtin_flag_F77 \
15931     export_dynamic_flag_spec_F77 \
15932     thread_safe_flag_spec_F77 \
15933     whole_archive_flag_spec_F77 \
15934     enable_shared_with_static_runtimes_F77 \
15935     old_archive_cmds_F77 \
15936     old_archive_from_new_cmds_F77 \
15937     predep_objects_F77 \
15938     postdep_objects_F77 \
15939     predeps_F77 \
15940     postdeps_F77 \
15941     compiler_lib_search_path_F77 \
15942     archive_cmds_F77 \
15943     archive_expsym_cmds_F77 \
15944     postinstall_cmds_F77 \
15945     postuninstall_cmds_F77 \
15946     old_archive_from_expsyms_cmds_F77 \
15947     allow_undefined_flag_F77 \
15948     no_undefined_flag_F77 \
15949     export_symbols_cmds_F77 \
15950     hardcode_libdir_flag_spec_F77 \
15951     hardcode_libdir_flag_spec_ld_F77 \
15952     hardcode_libdir_separator_F77 \
15953     hardcode_automatic_F77 \
15954     module_cmds_F77 \
15955     module_expsym_cmds_F77 \
15956     lt_cv_prog_compiler_c_o_F77 \
15957     exclude_expsyms_F77 \
15958     include_expsyms_F77; do
15959
15960     case $var in
15961     old_archive_cmds_F77 | \
15962     old_archive_from_new_cmds_F77 | \
15963     archive_cmds_F77 | \
15964     archive_expsym_cmds_F77 | \
15965     module_cmds_F77 | \
15966     module_expsym_cmds_F77 | \
15967     old_archive_from_expsyms_cmds_F77 | \
15968     export_symbols_cmds_F77 | \
15969     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15970     postinstall_cmds | postuninstall_cmds | \
15971     old_postinstall_cmds | old_postuninstall_cmds | \
15972     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15973       # Double-quote double-evaled strings.
15974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15975       ;;
15976     *)
15977       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15978       ;;
15979     esac
15980   done
15981
15982   case $lt_echo in
15983   *'\$0 --fallback-echo"')
15984     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15985     ;;
15986   esac
15987
15988 cfgfile="$ofile"
15989
15990   cat <<__EOF__ >> "$cfgfile"
15991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15992
15993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15994
15995 # Shell to use when invoking shell scripts.
15996 SHELL=$lt_SHELL
15997
15998 # Whether or not to build shared libraries.
15999 build_libtool_libs=$enable_shared
16000
16001 # Whether or not to build static libraries.
16002 build_old_libs=$enable_static
16003
16004 # Whether or not to add -lc for building shared libraries.
16005 build_libtool_need_lc=$archive_cmds_need_lc_F77
16006
16007 # Whether or not to disallow shared libs when runtime libs are static
16008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16009
16010 # Whether or not to optimize for fast installation.
16011 fast_install=$enable_fast_install
16012
16013 # The host system.
16014 host_alias=$host_alias
16015 host=$host
16016 host_os=$host_os
16017
16018 # The build system.
16019 build_alias=$build_alias
16020 build=$build
16021 build_os=$build_os
16022
16023 # An echo program that does not interpret backslashes.
16024 echo=$lt_echo
16025
16026 # The archiver.
16027 AR=$lt_AR
16028 AR_FLAGS=$lt_AR_FLAGS
16029
16030 # A C compiler.
16031 LTCC=$lt_LTCC
16032
16033 # LTCC compiler flags.
16034 LTCFLAGS=$lt_LTCFLAGS
16035
16036 # A language-specific compiler.
16037 CC=$lt_compiler_F77
16038
16039 # Is the compiler the GNU C compiler?
16040 with_gcc=$GCC_F77
16041
16042 # An ERE matcher.
16043 EGREP=$lt_EGREP
16044
16045 # The linker used to build libraries.
16046 LD=$lt_LD_F77
16047
16048 # Whether we need hard or soft links.
16049 LN_S=$lt_LN_S
16050
16051 # A BSD-compatible nm program.
16052 NM=$lt_NM
16053
16054 # A symbol stripping program
16055 STRIP=$lt_STRIP
16056
16057 # Used to examine libraries when file_magic_cmd begins "file"
16058 MAGIC_CMD=$MAGIC_CMD
16059
16060 # Used on cygwin: DLL creation program.
16061 DLLTOOL="$DLLTOOL"
16062
16063 # Used on cygwin: object dumper.
16064 OBJDUMP="$OBJDUMP"
16065
16066 # Used on cygwin: assembler.
16067 AS="$AS"
16068
16069 # The name of the directory that contains temporary libtool files.
16070 objdir=$objdir
16071
16072 # How to create reloadable object files.
16073 reload_flag=$lt_reload_flag
16074 reload_cmds=$lt_reload_cmds
16075
16076 # How to pass a linker flag through the compiler.
16077 wl=$lt_lt_prog_compiler_wl_F77
16078
16079 # Object file suffix (normally "o").
16080 objext="$ac_objext"
16081
16082 # Old archive suffix (normally "a").
16083 libext="$libext"
16084
16085 # Shared library suffix (normally ".so").
16086 shrext_cmds='$shrext_cmds'
16087
16088 # Executable file suffix (normally "").
16089 exeext="$exeext"
16090
16091 # Additional compiler flags for building library objects.
16092 pic_flag=$lt_lt_prog_compiler_pic_F77
16093 pic_mode=$pic_mode
16094
16095 # What is the maximum length of a command?
16096 max_cmd_len=$lt_cv_sys_max_cmd_len
16097
16098 # Does compiler simultaneously support -c and -o options?
16099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16100
16101 # Must we lock files when doing compilation?
16102 need_locks=$lt_need_locks
16103
16104 # Do we need the lib prefix for modules?
16105 need_lib_prefix=$need_lib_prefix
16106
16107 # Do we need a version for libraries?
16108 need_version=$need_version
16109
16110 # Whether dlopen is supported.
16111 dlopen_support=$enable_dlopen
16112
16113 # Whether dlopen of programs is supported.
16114 dlopen_self=$enable_dlopen_self
16115
16116 # Whether dlopen of statically linked programs is supported.
16117 dlopen_self_static=$enable_dlopen_self_static
16118
16119 # Compiler flag to prevent dynamic linking.
16120 link_static_flag=$lt_lt_prog_compiler_static_F77
16121
16122 # Compiler flag to turn off builtin functions.
16123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16124
16125 # Compiler flag to allow reflexive dlopens.
16126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16127
16128 # Compiler flag to generate shared objects directly from archives.
16129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16130
16131 # Compiler flag to generate thread-safe objects.
16132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16133
16134 # Library versioning type.
16135 version_type=$version_type
16136
16137 # Format of library name prefix.
16138 libname_spec=$lt_libname_spec
16139
16140 # List of archive names.  First name is the real one, the rest are links.
16141 # The last name is the one that the linker finds with -lNAME.
16142 library_names_spec=$lt_library_names_spec
16143
16144 # The coded name of the library, if different from the real name.
16145 soname_spec=$lt_soname_spec
16146
16147 # Commands used to build and install an old-style archive.
16148 RANLIB=$lt_RANLIB
16149 old_archive_cmds=$lt_old_archive_cmds_F77
16150 old_postinstall_cmds=$lt_old_postinstall_cmds
16151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16152
16153 # Create an old-style archive from a shared archive.
16154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16155
16156 # Create a temporary old-style archive to link instead of a shared archive.
16157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16158
16159 # Commands used to build and install a shared archive.
16160 archive_cmds=$lt_archive_cmds_F77
16161 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16162 postinstall_cmds=$lt_postinstall_cmds
16163 postuninstall_cmds=$lt_postuninstall_cmds
16164
16165 # Commands used to build a loadable module (assumed same as above if empty)
16166 module_cmds=$lt_module_cmds_F77
16167 module_expsym_cmds=$lt_module_expsym_cmds_F77
16168
16169 # Commands to strip libraries.
16170 old_striplib=$lt_old_striplib
16171 striplib=$lt_striplib
16172
16173 # Dependencies to place before the objects being linked to create a
16174 # shared library.
16175 predep_objects=$lt_predep_objects_F77
16176
16177 # Dependencies to place after the objects being linked to create a
16178 # shared library.
16179 postdep_objects=$lt_postdep_objects_F77
16180
16181 # Dependencies to place before the objects being linked to create a
16182 # shared library.
16183 predeps=$lt_predeps_F77
16184
16185 # Dependencies to place after the objects being linked to create a
16186 # shared library.
16187 postdeps=$lt_postdeps_F77
16188
16189 # The library search path used internally by the compiler when linking
16190 # a shared library.
16191 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16192
16193 # Method to check whether dependent libraries are shared objects.
16194 deplibs_check_method=$lt_deplibs_check_method
16195
16196 # Command to use when deplibs_check_method == file_magic.
16197 file_magic_cmd=$lt_file_magic_cmd
16198
16199 # Flag that allows shared libraries with undefined symbols to be built.
16200 allow_undefined_flag=$lt_allow_undefined_flag_F77
16201
16202 # Flag that forces no undefined symbols.
16203 no_undefined_flag=$lt_no_undefined_flag_F77
16204
16205 # Commands used to finish a libtool library installation in a directory.
16206 finish_cmds=$lt_finish_cmds
16207
16208 # Same as above, but a single script fragment to be evaled but not shown.
16209 finish_eval=$lt_finish_eval
16210
16211 # Take the output of nm and produce a listing of raw symbols and C names.
16212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16213
16214 # Transform the output of nm in a proper C declaration
16215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16216
16217 # Transform the output of nm in a C name address pair
16218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16219
16220 # This is the shared library runtime path variable.
16221 runpath_var=$runpath_var
16222
16223 # This is the shared library path variable.
16224 shlibpath_var=$shlibpath_var
16225
16226 # Is shlibpath searched before the hard-coded library search path?
16227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16228
16229 # How to hardcode a shared library path into an executable.
16230 hardcode_action=$hardcode_action_F77
16231
16232 # Whether we should hardcode library paths into libraries.
16233 hardcode_into_libs=$hardcode_into_libs
16234
16235 # Flag to hardcode \$libdir into a binary during linking.
16236 # This must work even if \$libdir does not exist.
16237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16238
16239 # If ld is used when linking, flag to hardcode \$libdir into
16240 # a binary during linking. This must work even if \$libdir does
16241 # not exist.
16242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16243
16244 # Whether we need a single -rpath flag with a separated argument.
16245 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16246
16247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16248 # resulting binary.
16249 hardcode_direct=$hardcode_direct_F77
16250
16251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16252 # resulting binary.
16253 hardcode_minus_L=$hardcode_minus_L_F77
16254
16255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16256 # the resulting binary.
16257 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16258
16259 # Set to yes if building a shared library automatically hardcodes DIR into the library
16260 # and all subsequent libraries and executables linked against it.
16261 hardcode_automatic=$hardcode_automatic_F77
16262
16263 # Variables whose values should be saved in libtool wrapper scripts and
16264 # restored at relink time.
16265 variables_saved_for_relink="$variables_saved_for_relink"
16266
16267 # Whether libtool must link a program against all its dependency libraries.
16268 link_all_deplibs=$link_all_deplibs_F77
16269
16270 # Compile-time system search path for libraries
16271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16272
16273 # Run-time system search path for libraries
16274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16275
16276 # Fix the shell variable \$srcfile for the compiler.
16277 fix_srcfile_path="$fix_srcfile_path_F77"
16278
16279 # Set to yes if exported symbols are required.
16280 always_export_symbols=$always_export_symbols_F77
16281
16282 # The commands to list exported symbols.
16283 export_symbols_cmds=$lt_export_symbols_cmds_F77
16284
16285 # The commands to extract the exported symbol list from a shared archive.
16286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16287
16288 # Symbols that should not be listed in the preloaded symbols.
16289 exclude_expsyms=$lt_exclude_expsyms_F77
16290
16291 # Symbols that must always be exported.
16292 include_expsyms=$lt_include_expsyms_F77
16293
16294 # ### END LIBTOOL TAG CONFIG: $tagname
16295
16296 __EOF__
16297
16298
16299 else
16300   # If there is no Makefile yet, we rely on a make rule to execute
16301   # `config.status --recheck' to rerun these tests and create the
16302   # libtool script then.
16303   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16304   if test -f "$ltmain_in"; then
16305     test -f Makefile && make "$ltmain"
16306   fi
16307 fi
16308
16309
16310 ac_ext=c
16311 ac_cpp='$CPP $CPPFLAGS'
16312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16315
16316 CC="$lt_save_CC"
16317
16318         else
16319           tagname=""
16320         fi
16321         ;;
16322
16323       GCJ)
16324         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16325
16326
16327 # Source file extension for Java test sources.
16328 ac_ext=java
16329
16330 # Object file extension for compiled Java test sources.
16331 objext=o
16332 objext_GCJ=$objext
16333
16334 # Code to be used in simple compile tests
16335 lt_simple_compile_test_code="class foo {}\n"
16336
16337 # Code to be used in simple link tests
16338 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16339
16340 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16341
16342 # If no C compiler was specified, use CC.
16343 LTCC=${LTCC-"$CC"}
16344
16345 # If no C compiler flags were specified, use CFLAGS.
16346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16347
16348 # Allow CC to be a program name with arguments.
16349 compiler=$CC
16350
16351
16352 # save warnings/boilerplate of simple test code
16353 ac_outfile=conftest.$ac_objext
16354 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16356 _lt_compiler_boilerplate=`cat conftest.err`
16357 $rm conftest*
16358
16359 ac_outfile=conftest.$ac_objext
16360 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16362 _lt_linker_boilerplate=`cat conftest.err`
16363 $rm conftest*
16364
16365
16366 # Allow CC to be a program name with arguments.
16367 lt_save_CC="$CC"
16368 CC=${GCJ-"gcj"}
16369 compiler=$CC
16370 compiler_GCJ=$CC
16371 for cc_temp in $compiler""; do
16372   case $cc_temp in
16373     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16374     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16375     \-*) ;;
16376     *) break;;
16377   esac
16378 done
16379 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16380
16381
16382 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16383 archive_cmds_need_lc_GCJ=no
16384
16385 old_archive_cmds_GCJ=$old_archive_cmds
16386
16387
16388 lt_prog_compiler_no_builtin_flag_GCJ=
16389
16390 if test "$GCC" = yes; then
16391   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16392
16393
16394 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16395 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16396 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399   lt_cv_prog_compiler_rtti_exceptions=no
16400   ac_outfile=conftest.$ac_objext
16401    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16402    lt_compiler_flag="-fno-rtti -fno-exceptions"
16403    # Insert the option either (1) after the last *FLAGS variable, or
16404    # (2) before a word containing "conftest.", or (3) at the end.
16405    # Note that $ac_compile itself does not contain backslashes and begins
16406    # with a dollar sign (not a hyphen), so the echo should work correctly.
16407    # The option is referenced via a variable to avoid confusing sed.
16408    lt_compile=`echo "$ac_compile" | $SED \
16409    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16411    -e 's:$: $lt_compiler_flag:'`
16412    (eval echo "\"\$as_me:16412: $lt_compile\"" >&5)
16413    (eval "$lt_compile" 2>conftest.err)
16414    ac_status=$?
16415    cat conftest.err >&5
16416    echo "$as_me:16416: \$? = $ac_status" >&5
16417    if (exit $ac_status) && test -s "$ac_outfile"; then
16418      # The compiler can only warn and ignore the option if not recognized
16419      # So say no if there are warnings other than the usual output.
16420      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16421      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16422      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16423        lt_cv_prog_compiler_rtti_exceptions=yes
16424      fi
16425    fi
16426    $rm conftest*
16427
16428 fi
16429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16430 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16431
16432 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16433     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16434 else
16435     :
16436 fi
16437
16438 fi
16439
16440 lt_prog_compiler_wl_GCJ=
16441 lt_prog_compiler_pic_GCJ=
16442 lt_prog_compiler_static_GCJ=
16443
16444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16446
16447   if test "$GCC" = yes; then
16448     lt_prog_compiler_wl_GCJ='-Wl,'
16449     lt_prog_compiler_static_GCJ='-static'
16450
16451     case $host_os in
16452       aix*)
16453       # All AIX code is PIC.
16454       if test "$host_cpu" = ia64; then
16455         # AIX 5 now supports IA64 processor
16456         lt_prog_compiler_static_GCJ='-Bstatic'
16457       fi
16458       ;;
16459
16460     amigaos*)
16461       # FIXME: we need at least 68020 code to build shared libraries, but
16462       # adding the `-m68020' flag to GCC prevents building anything better,
16463       # like `-m68040'.
16464       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16465       ;;
16466
16467     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16468       # PIC is the default for these OSes.
16469       ;;
16470
16471     mingw* | pw32* | os2*)
16472       # This hack is so that the source file can tell whether it is being
16473       # built for inclusion in a dll (and should export symbols for example).
16474       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16475       ;;
16476
16477     darwin* | rhapsody*)
16478       # PIC is the default on this platform
16479       # Common symbols not allowed in MH_DYLIB files
16480       lt_prog_compiler_pic_GCJ='-fno-common'
16481       ;;
16482
16483     interix3*)
16484       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16485       # Instead, we relocate shared libraries at runtime.
16486       ;;
16487
16488     msdosdjgpp*)
16489       # Just because we use GCC doesn't mean we suddenly get shared libraries
16490       # on systems that don't support them.
16491       lt_prog_compiler_can_build_shared_GCJ=no
16492       enable_shared=no
16493       ;;
16494
16495     sysv4*MP*)
16496       if test -d /usr/nec; then
16497         lt_prog_compiler_pic_GCJ=-Kconform_pic
16498       fi
16499       ;;
16500
16501     hpux*)
16502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16503       # not for PA HP-UX.
16504       case $host_cpu in
16505       hppa*64*|ia64*)
16506         # +Z the default
16507         ;;
16508       *)
16509         lt_prog_compiler_pic_GCJ='-fPIC'
16510         ;;
16511       esac
16512       ;;
16513
16514     *)
16515       lt_prog_compiler_pic_GCJ='-fPIC'
16516       ;;
16517     esac
16518   else
16519     # PORTME Check for flag to pass linker flags through the system compiler.
16520     case $host_os in
16521     aix*)
16522       lt_prog_compiler_wl_GCJ='-Wl,'
16523       if test "$host_cpu" = ia64; then
16524         # AIX 5 now supports IA64 processor
16525         lt_prog_compiler_static_GCJ='-Bstatic'
16526       else
16527         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16528       fi
16529       ;;
16530       darwin*)
16531         # PIC is the default on this platform
16532         # Common symbols not allowed in MH_DYLIB files
16533        case $cc_basename in
16534          xlc*)
16535          lt_prog_compiler_pic_GCJ='-qnocommon'
16536          lt_prog_compiler_wl_GCJ='-Wl,'
16537          ;;
16538        esac
16539        ;;
16540
16541     mingw* | pw32* | os2*)
16542       # This hack is so that the source file can tell whether it is being
16543       # built for inclusion in a dll (and should export symbols for example).
16544       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16545       ;;
16546
16547     hpux9* | hpux10* | hpux11*)
16548       lt_prog_compiler_wl_GCJ='-Wl,'
16549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16550       # not for PA HP-UX.
16551       case $host_cpu in
16552       hppa*64*|ia64*)
16553         # +Z the default
16554         ;;
16555       *)
16556         lt_prog_compiler_pic_GCJ='+Z'
16557         ;;
16558       esac
16559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16560       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16561       ;;
16562
16563     irix5* | irix6* | nonstopux*)
16564       lt_prog_compiler_wl_GCJ='-Wl,'
16565       # PIC (with -KPIC) is the default.
16566       lt_prog_compiler_static_GCJ='-non_shared'
16567       ;;
16568
16569     newsos6)
16570       lt_prog_compiler_pic_GCJ='-KPIC'
16571       lt_prog_compiler_static_GCJ='-Bstatic'
16572       ;;
16573
16574     linux* | k*bsd*-gnu)
16575       case $cc_basename in
16576       icc* | ecc*)
16577         lt_prog_compiler_wl_GCJ='-Wl,'
16578         lt_prog_compiler_pic_GCJ='-KPIC'
16579         lt_prog_compiler_static_GCJ='-static'
16580         ;;
16581       pgcc* | pgf77* | pgf90* | pgf95*)
16582         # Portland Group compilers (*not* the Pentium gcc compiler,
16583         # which looks to be a dead project)
16584         lt_prog_compiler_wl_GCJ='-Wl,'
16585         lt_prog_compiler_pic_GCJ='-fpic'
16586         lt_prog_compiler_static_GCJ='-Bstatic'
16587         ;;
16588       ccc*)
16589         lt_prog_compiler_wl_GCJ='-Wl,'
16590         # All Alpha code is PIC.
16591         lt_prog_compiler_static_GCJ='-non_shared'
16592         ;;
16593       esac
16594       ;;
16595
16596     osf3* | osf4* | osf5*)
16597       lt_prog_compiler_wl_GCJ='-Wl,'
16598       # All OSF/1 code is PIC.
16599       lt_prog_compiler_static_GCJ='-non_shared'
16600       ;;
16601
16602     solaris*)
16603       lt_prog_compiler_pic_GCJ='-KPIC'
16604       lt_prog_compiler_static_GCJ='-Bstatic'
16605       case $cc_basename in
16606       f77* | f90* | f95*)
16607         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16608       *)
16609         lt_prog_compiler_wl_GCJ='-Wl,';;
16610       esac
16611       ;;
16612
16613     sunos4*)
16614       lt_prog_compiler_wl_GCJ='-Qoption ld '
16615       lt_prog_compiler_pic_GCJ='-PIC'
16616       lt_prog_compiler_static_GCJ='-Bstatic'
16617       ;;
16618
16619     sysv4 | sysv4.2uw2* | sysv4.3*)
16620       lt_prog_compiler_wl_GCJ='-Wl,'
16621       lt_prog_compiler_pic_GCJ='-KPIC'
16622       lt_prog_compiler_static_GCJ='-Bstatic'
16623       ;;
16624
16625     sysv4*MP*)
16626       if test -d /usr/nec ;then
16627         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16628         lt_prog_compiler_static_GCJ='-Bstatic'
16629       fi
16630       ;;
16631
16632     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16633       lt_prog_compiler_wl_GCJ='-Wl,'
16634       lt_prog_compiler_pic_GCJ='-KPIC'
16635       lt_prog_compiler_static_GCJ='-Bstatic'
16636       ;;
16637
16638     unicos*)
16639       lt_prog_compiler_wl_GCJ='-Wl,'
16640       lt_prog_compiler_can_build_shared_GCJ=no
16641       ;;
16642
16643     uts4*)
16644       lt_prog_compiler_pic_GCJ='-pic'
16645       lt_prog_compiler_static_GCJ='-Bstatic'
16646       ;;
16647
16648     *)
16649       lt_prog_compiler_can_build_shared_GCJ=no
16650       ;;
16651     esac
16652   fi
16653
16654 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16655 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16656
16657 #
16658 # Check to make sure the PIC flag actually works.
16659 #
16660 if test -n "$lt_prog_compiler_pic_GCJ"; then
16661
16662 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16663 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16664 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   lt_prog_compiler_pic_works_GCJ=no
16668   ac_outfile=conftest.$ac_objext
16669    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16671    # Insert the option either (1) after the last *FLAGS variable, or
16672    # (2) before a word containing "conftest.", or (3) at the end.
16673    # Note that $ac_compile itself does not contain backslashes and begins
16674    # with a dollar sign (not a hyphen), so the echo should work correctly.
16675    # The option is referenced via a variable to avoid confusing sed.
16676    lt_compile=`echo "$ac_compile" | $SED \
16677    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16678    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16679    -e 's:$: $lt_compiler_flag:'`
16680    (eval echo "\"\$as_me:16680: $lt_compile\"" >&5)
16681    (eval "$lt_compile" 2>conftest.err)
16682    ac_status=$?
16683    cat conftest.err >&5
16684    echo "$as_me:16684: \$? = $ac_status" >&5
16685    if (exit $ac_status) && test -s "$ac_outfile"; then
16686      # The compiler can only warn and ignore the option if not recognized
16687      # So say no if there are warnings other than the usual output.
16688      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16689      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16690      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16691        lt_prog_compiler_pic_works_GCJ=yes
16692      fi
16693    fi
16694    $rm conftest*
16695
16696 fi
16697 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16698 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16699
16700 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16701     case $lt_prog_compiler_pic_GCJ in
16702      "" | " "*) ;;
16703      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16704      esac
16705 else
16706     lt_prog_compiler_pic_GCJ=
16707      lt_prog_compiler_can_build_shared_GCJ=no
16708 fi
16709
16710 fi
16711 case $host_os in
16712   # For platforms which do not support PIC, -DPIC is meaningless:
16713   *djgpp*)
16714     lt_prog_compiler_pic_GCJ=
16715     ;;
16716   *)
16717     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16718     ;;
16719 esac
16720
16721 #
16722 # Check to make sure the static flag actually works.
16723 #
16724 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16725 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16726 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16727 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730   lt_prog_compiler_static_works_GCJ=no
16731    save_LDFLAGS="$LDFLAGS"
16732    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16733    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16734    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16735      # The linker can only warn and ignore the option if not recognized
16736      # So say no if there are warnings
16737      if test -s conftest.err; then
16738        # Append any errors to the config.log.
16739        cat conftest.err 1>&5
16740        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16741        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16742        if diff conftest.exp conftest.er2 >/dev/null; then
16743          lt_prog_compiler_static_works_GCJ=yes
16744        fi
16745      else
16746        lt_prog_compiler_static_works_GCJ=yes
16747      fi
16748    fi
16749    $rm conftest*
16750    LDFLAGS="$save_LDFLAGS"
16751
16752 fi
16753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16754 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16755
16756 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16757     :
16758 else
16759     lt_prog_compiler_static_GCJ=
16760 fi
16761
16762
16763 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16764 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16765 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   lt_cv_prog_compiler_c_o_GCJ=no
16769    $rm -r conftest 2>/dev/null
16770    mkdir conftest
16771    cd conftest
16772    mkdir out
16773    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16774
16775    lt_compiler_flag="-o out/conftest2.$ac_objext"
16776    # Insert the option either (1) after the last *FLAGS variable, or
16777    # (2) before a word containing "conftest.", or (3) at the end.
16778    # Note that $ac_compile itself does not contain backslashes and begins
16779    # with a dollar sign (not a hyphen), so the echo should work correctly.
16780    lt_compile=`echo "$ac_compile" | $SED \
16781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16783    -e 's:$: $lt_compiler_flag:'`
16784    (eval echo "\"\$as_me:16784: $lt_compile\"" >&5)
16785    (eval "$lt_compile" 2>out/conftest.err)
16786    ac_status=$?
16787    cat out/conftest.err >&5
16788    echo "$as_me:16788: \$? = $ac_status" >&5
16789    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16790    then
16791      # The compiler can only warn and ignore the option if not recognized
16792      # So say no if there are warnings
16793      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16794      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16795      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16796        lt_cv_prog_compiler_c_o_GCJ=yes
16797      fi
16798    fi
16799    chmod u+w . 2>&5
16800    $rm conftest*
16801    # SGI C++ compiler will create directory out/ii_files/ for
16802    # template instantiation
16803    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16804    $rm out/* && rmdir out
16805    cd ..
16806    rmdir conftest
16807    $rm conftest*
16808
16809 fi
16810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16811 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16812
16813
16814 hard_links="nottested"
16815 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16816   # do not overwrite the value of need_locks provided by the user
16817   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16818 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16819   hard_links=yes
16820   $rm conftest*
16821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16822   touch conftest.a
16823   ln conftest.a conftest.b 2>&5 || hard_links=no
16824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16825   { echo "$as_me:$LINENO: result: $hard_links" >&5
16826 echo "${ECHO_T}$hard_links" >&6; }
16827   if test "$hard_links" = no; then
16828     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16829 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16830     need_locks=warn
16831   fi
16832 else
16833   need_locks=no
16834 fi
16835
16836 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16838
16839   runpath_var=
16840   allow_undefined_flag_GCJ=
16841   enable_shared_with_static_runtimes_GCJ=no
16842   archive_cmds_GCJ=
16843   archive_expsym_cmds_GCJ=
16844   old_archive_From_new_cmds_GCJ=
16845   old_archive_from_expsyms_cmds_GCJ=
16846   export_dynamic_flag_spec_GCJ=
16847   whole_archive_flag_spec_GCJ=
16848   thread_safe_flag_spec_GCJ=
16849   hardcode_libdir_flag_spec_GCJ=
16850   hardcode_libdir_flag_spec_ld_GCJ=
16851   hardcode_libdir_separator_GCJ=
16852   hardcode_direct_GCJ=no
16853   hardcode_minus_L_GCJ=no
16854   hardcode_shlibpath_var_GCJ=unsupported
16855   link_all_deplibs_GCJ=unknown
16856   hardcode_automatic_GCJ=no
16857   module_cmds_GCJ=
16858   module_expsym_cmds_GCJ=
16859   always_export_symbols_GCJ=no
16860   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16861   # include_expsyms should be a list of space-separated symbols to be *always*
16862   # included in the symbol list
16863   include_expsyms_GCJ=
16864   # exclude_expsyms can be an extended regexp of symbols to exclude
16865   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16866   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16867   # as well as any symbol that contains `d'.
16868   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16869   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16870   # platforms (ab)use it in PIC code, but their linkers get confused if
16871   # the symbol is explicitly referenced.  Since portable code cannot
16872   # rely on this symbol name, it's probably fine to never include it in
16873   # preloaded symbol tables.
16874   extract_expsyms_cmds=
16875   # Just being paranoid about ensuring that cc_basename is set.
16876   for cc_temp in $compiler""; do
16877   case $cc_temp in
16878     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16879     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16880     \-*) ;;
16881     *) break;;
16882   esac
16883 done
16884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16885
16886   case $host_os in
16887   cygwin* | mingw* | pw32*)
16888     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16889     # When not using gcc, we currently assume that we are using
16890     # Microsoft Visual C++.
16891     if test "$GCC" != yes; then
16892       with_gnu_ld=no
16893     fi
16894     ;;
16895   interix*)
16896     # we just hope/assume this is gcc and not c89 (= MSVC++)
16897     with_gnu_ld=yes
16898     ;;
16899   openbsd*)
16900     with_gnu_ld=no
16901     ;;
16902   esac
16903
16904   ld_shlibs_GCJ=yes
16905   if test "$with_gnu_ld" = yes; then
16906     # If archive_cmds runs LD, not CC, wlarc should be empty
16907     wlarc='${wl}'
16908
16909     # Set some defaults for GNU ld with shared library support. These
16910     # are reset later if shared libraries are not supported. Putting them
16911     # here allows them to be overridden if necessary.
16912     runpath_var=LD_RUN_PATH
16913     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16914     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16915     # ancient GNU ld didn't support --whole-archive et. al.
16916     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16917         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16918       else
16919         whole_archive_flag_spec_GCJ=
16920     fi
16921     supports_anon_versioning=no
16922     case `$LD -v 2>/dev/null` in
16923       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16924       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16925       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16926       *\ 2.11.*) ;; # other 2.11 versions
16927       *) supports_anon_versioning=yes ;;
16928     esac
16929
16930     # See if GNU ld supports shared libraries.
16931     case $host_os in
16932     aix3* | aix4* | aix5*)
16933       # On AIX/PPC, the GNU linker is very broken
16934       if test "$host_cpu" != ia64; then
16935         ld_shlibs_GCJ=no
16936         cat <<EOF 1>&2
16937
16938 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16939 *** to be unable to reliably create shared libraries on AIX.
16940 *** Therefore, libtool is disabling shared libraries support.  If you
16941 *** really care for shared libraries, you may want to modify your PATH
16942 *** so that a non-GNU linker is found, and then restart.
16943
16944 EOF
16945       fi
16946       ;;
16947
16948     amigaos*)
16949       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)'
16950       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16951       hardcode_minus_L_GCJ=yes
16952
16953       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16954       # that the semantics of dynamic libraries on AmigaOS, at least up
16955       # to version 4, is to share data among multiple programs linked
16956       # with the same dynamic library.  Since this doesn't match the
16957       # behavior of shared libraries on other platforms, we can't use
16958       # them.
16959       ld_shlibs_GCJ=no
16960       ;;
16961
16962     beos*)
16963       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964         allow_undefined_flag_GCJ=unsupported
16965         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16966         # support --undefined.  This deserves some investigation.  FIXME
16967         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16968       else
16969         ld_shlibs_GCJ=no
16970       fi
16971       ;;
16972
16973     cygwin* | mingw* | pw32*)
16974       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16975       # as there is no search path for DLLs.
16976       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977       allow_undefined_flag_GCJ=unsupported
16978       always_export_symbols_GCJ=no
16979       enable_shared_with_static_runtimes_GCJ=yes
16980       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16981
16982       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16983         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16984         # If the export-symbols file already is a .def file (1st line
16985         # is EXPORTS), use it as is; otherwise, prepend...
16986         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16987           cp $export_symbols $output_objdir/$soname.def;
16988         else
16989           echo EXPORTS > $output_objdir/$soname.def;
16990           cat $export_symbols >> $output_objdir/$soname.def;
16991         fi~
16992         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16993       else
16994         ld_shlibs_GCJ=no
16995       fi
16996       ;;
16997
16998     interix3*)
16999       hardcode_direct_GCJ=no
17000       hardcode_shlibpath_var_GCJ=no
17001       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17002       export_dynamic_flag_spec_GCJ='${wl}-E'
17003       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17004       # Instead, shared libraries are loaded at an image base (0x10000000 by
17005       # default) and relocated if they conflict, which is a slow very memory
17006       # consuming and fragmenting process.  To avoid this, we pick a random,
17007       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17008       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17009       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'
17010       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'
17011       ;;
17012
17013     linux* | k*bsd*-gnu)
17014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17015         tmp_addflag=
17016         case $cc_basename,$host_cpu in
17017         pgcc*)                          # Portland Group C compiler
17018           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'
17019           tmp_addflag=' $pic_flag'
17020           ;;
17021         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17022           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'
17023           tmp_addflag=' $pic_flag -Mnomain' ;;
17024         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17025           tmp_addflag=' -i_dynamic' ;;
17026         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17027           tmp_addflag=' -i_dynamic -nofor_main' ;;
17028         ifc* | ifort*)                  # Intel Fortran compiler
17029           tmp_addflag=' -nofor_main' ;;
17030         esac
17031         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17032
17033         if test $supports_anon_versioning = yes; then
17034           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17035   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17036   $echo "local: *; };" >> $output_objdir/$libname.ver~
17037           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17038         fi
17039         link_all_deplibs_GCJ=no
17040       else
17041         ld_shlibs_GCJ=no
17042       fi
17043       ;;
17044
17045     netbsd* | netbsdelf*-gnu)
17046       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17047         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17048         wlarc=
17049       else
17050         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17051         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17052       fi
17053       ;;
17054
17055     solaris*)
17056       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17057         ld_shlibs_GCJ=no
17058         cat <<EOF 1>&2
17059
17060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17061 *** create shared libraries on Solaris systems.  Therefore, libtool
17062 *** is disabling shared libraries support.  We urge you to upgrade GNU
17063 *** binutils to release 2.9.1 or newer.  Another option is to modify
17064 *** your PATH or compiler configuration so that the native linker is
17065 *** used, and then restart.
17066
17067 EOF
17068       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17069         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17070         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17071       else
17072         ld_shlibs_GCJ=no
17073       fi
17074       ;;
17075
17076     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17077       case `$LD -v 2>&1` in
17078         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17079         ld_shlibs_GCJ=no
17080         cat <<_LT_EOF 1>&2
17081
17082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17083 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17084 *** is disabling shared libraries support.  We urge you to upgrade GNU
17085 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17086 *** your PATH or compiler configuration so that the native linker is
17087 *** used, and then restart.
17088
17089 _LT_EOF
17090         ;;
17091         *)
17092           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17093             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17094             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17095             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17096           else
17097             ld_shlibs_GCJ=no
17098           fi
17099         ;;
17100       esac
17101       ;;
17102
17103     sunos4*)
17104       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17105       wlarc=
17106       hardcode_direct_GCJ=yes
17107       hardcode_shlibpath_var_GCJ=no
17108       ;;
17109
17110     *)
17111       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17112         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17113         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17114       else
17115         ld_shlibs_GCJ=no
17116       fi
17117       ;;
17118     esac
17119
17120     if test "$ld_shlibs_GCJ" = no; then
17121       runpath_var=
17122       hardcode_libdir_flag_spec_GCJ=
17123       export_dynamic_flag_spec_GCJ=
17124       whole_archive_flag_spec_GCJ=
17125     fi
17126   else
17127     # PORTME fill in a description of your system's linker (not GNU ld)
17128     case $host_os in
17129     aix3*)
17130       allow_undefined_flag_GCJ=unsupported
17131       always_export_symbols_GCJ=yes
17132       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'
17133       # Note: this linker hardcodes the directories in LIBPATH if there
17134       # are no directories specified by -L.
17135       hardcode_minus_L_GCJ=yes
17136       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17137         # Neither direct hardcoding nor static linking is supported with a
17138         # broken collect2.
17139         hardcode_direct_GCJ=unsupported
17140       fi
17141       ;;
17142
17143     aix4* | aix5*)
17144       if test "$host_cpu" = ia64; then
17145         # On IA64, the linker does run time linking by default, so we don't
17146         # have to do anything special.
17147         aix_use_runtimelinking=no
17148         exp_sym_flag='-Bexport'
17149         no_entry_flag=""
17150       else
17151         # If we're using GNU nm, then we don't want the "-C" option.
17152         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17153         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17154           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'
17155         else
17156           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'
17157         fi
17158         aix_use_runtimelinking=no
17159
17160         # Test if we are trying to use run time linking or normal
17161         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17162         # need to do runtime linking.
17163         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17164           for ld_flag in $LDFLAGS; do
17165           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17166             aix_use_runtimelinking=yes
17167             break
17168           fi
17169           done
17170           ;;
17171         esac
17172
17173         exp_sym_flag='-bexport'
17174         no_entry_flag='-bnoentry'
17175       fi
17176
17177       # When large executables or shared objects are built, AIX ld can
17178       # have problems creating the table of contents.  If linking a library
17179       # or program results in "error TOC overflow" add -mminimal-toc to
17180       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17181       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17182
17183       archive_cmds_GCJ=''
17184       hardcode_direct_GCJ=yes
17185       hardcode_libdir_separator_GCJ=':'
17186       link_all_deplibs_GCJ=yes
17187
17188       if test "$GCC" = yes; then
17189         case $host_os in aix4.[012]|aix4.[012].*)
17190         # We only want to do this on AIX 4.2 and lower, the check
17191         # below for broken collect2 doesn't work under 4.3+
17192           collect2name=`${CC} -print-prog-name=collect2`
17193           if test -f "$collect2name" && \
17194            strings "$collect2name" | grep resolve_lib_name >/dev/null
17195           then
17196           # We have reworked collect2
17197           hardcode_direct_GCJ=yes
17198           else
17199           # We have old collect2
17200           hardcode_direct_GCJ=unsupported
17201           # It fails to find uninstalled libraries when the uninstalled
17202           # path is not listed in the libpath.  Setting hardcode_minus_L
17203           # to unsupported forces relinking
17204           hardcode_minus_L_GCJ=yes
17205           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17206           hardcode_libdir_separator_GCJ=
17207           fi
17208           ;;
17209         esac
17210         shared_flag='-shared'
17211         if test "$aix_use_runtimelinking" = yes; then
17212           shared_flag="$shared_flag "'${wl}-G'
17213         fi
17214       else
17215         # not using gcc
17216         if test "$host_cpu" = ia64; then
17217         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17218         # chokes on -Wl,-G. The following line is correct:
17219           shared_flag='-G'
17220         else
17221           if test "$aix_use_runtimelinking" = yes; then
17222             shared_flag='${wl}-G'
17223           else
17224             shared_flag='${wl}-bM:SRE'
17225           fi
17226         fi
17227       fi
17228
17229       # It seems that -bexpall does not export symbols beginning with
17230       # underscore (_), so it is better to generate a list of symbols to export.
17231       always_export_symbols_GCJ=yes
17232       if test "$aix_use_runtimelinking" = yes; then
17233         # Warning - without using the other runtime loading flags (-brtl),
17234         # -berok will link without error, but may produce a broken library.
17235         allow_undefined_flag_GCJ='-berok'
17236        # Determine the default libpath from the value encoded in an empty executable.
17237        cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243
17244 int
17245 main ()
17246 {
17247
17248   ;
17249   return 0;
17250 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_link") 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } && {
17266          test -z "$ac_c_werror_flag" ||
17267          test ! -s conftest.err
17268        } && test -s conftest$ac_exeext &&
17269        $as_test_x conftest$ac_exeext; then
17270
17271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17272 }'`
17273 # Check for a 64-bit object if we didn't find anything.
17274 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17275 }'`; fi
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280
17281 fi
17282
17283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17284       conftest$ac_exeext conftest.$ac_ext
17285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17286
17287        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17288         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"
17289        else
17290         if test "$host_cpu" = ia64; then
17291           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17292           allow_undefined_flag_GCJ="-z nodefs"
17293           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"
17294         else
17295          # Determine the default libpath from the value encoded in an empty executable.
17296          cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302
17303 int
17304 main ()
17305 {
17306
17307   ;
17308   return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (ac_try="$ac_link"
17313 case "(($ac_try" in
17314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315   *) ac_try_echo=$ac_try;;
17316 esac
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318   (eval "$ac_link") 2>conftest.er1
17319   ac_status=$?
17320   grep -v '^ *+' conftest.er1 >conftest.err
17321   rm -f conftest.er1
17322   cat conftest.err >&5
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } && {
17325          test -z "$ac_c_werror_flag" ||
17326          test ! -s conftest.err
17327        } && test -s conftest$ac_exeext &&
17328        $as_test_x conftest$ac_exeext; then
17329
17330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17331 }'`
17332 # Check for a 64-bit object if we didn't find anything.
17333 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17334 }'`; fi
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339
17340 fi
17341
17342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17343       conftest$ac_exeext conftest.$ac_ext
17344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17345
17346          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17347           # Warning - without using the other run time loading flags,
17348           # -berok will link without error, but may produce a broken library.
17349           no_undefined_flag_GCJ=' ${wl}-bernotok'
17350           allow_undefined_flag_GCJ=' ${wl}-berok'
17351           # Exported symbols can be pulled into shared objects from archives
17352           whole_archive_flag_spec_GCJ='$convenience'
17353           archive_cmds_need_lc_GCJ=yes
17354           # This is similar to how AIX traditionally builds its shared libraries.
17355           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'
17356         fi
17357       fi
17358       ;;
17359
17360     amigaos*)
17361       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)'
17362       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17363       hardcode_minus_L_GCJ=yes
17364       # see comment about different semantics on the GNU ld section
17365       ld_shlibs_GCJ=no
17366       ;;
17367
17368     bsdi[45]*)
17369       export_dynamic_flag_spec_GCJ=-rdynamic
17370       ;;
17371
17372     cygwin* | mingw* | pw32*)
17373       # When not using gcc, we currently assume that we are using
17374       # Microsoft Visual C++.
17375       # hardcode_libdir_flag_spec is actually meaningless, as there is
17376       # no search path for DLLs.
17377       hardcode_libdir_flag_spec_GCJ=' '
17378       allow_undefined_flag_GCJ=unsupported
17379       # Tell ltmain to make .lib files, not .a files.
17380       libext=lib
17381       # Tell ltmain to make .dll files, not .so files.
17382       shrext_cmds=".dll"
17383       # FIXME: Setting linknames here is a bad hack.
17384       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17385       # The linker will automatically build a .lib file if we build a DLL.
17386       old_archive_From_new_cmds_GCJ='true'
17387       # FIXME: Should let the user specify the lib program.
17388       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17389       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17390       enable_shared_with_static_runtimes_GCJ=yes
17391       ;;
17392
17393     darwin* | rhapsody*)
17394       case $host_os in
17395         rhapsody* | darwin1.[012])
17396          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17397          ;;
17398        *) # Darwin 1.3 on
17399          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17400            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17401          else
17402            case ${MACOSX_DEPLOYMENT_TARGET} in
17403              10.[012])
17404                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17405                ;;
17406              10.*)
17407                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17408                ;;
17409            esac
17410          fi
17411          ;;
17412       esac
17413       archive_cmds_need_lc_GCJ=no
17414       hardcode_direct_GCJ=no
17415       hardcode_automatic_GCJ=yes
17416       hardcode_shlibpath_var_GCJ=unsupported
17417       whole_archive_flag_spec_GCJ=''
17418       link_all_deplibs_GCJ=yes
17419     if test "$GCC" = yes ; then
17420         output_verbose_link_cmd='echo'
17421         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17422       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17423       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17424       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}'
17425       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}'
17426     else
17427       case $cc_basename in
17428         xlc*)
17429          output_verbose_link_cmd='echo'
17430          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17431          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17432           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17433          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17434           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}'
17435           ;;
17436        *)
17437          ld_shlibs_GCJ=no
17438           ;;
17439       esac
17440     fi
17441       ;;
17442
17443     dgux*)
17444       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17446       hardcode_shlibpath_var_GCJ=no
17447       ;;
17448
17449     freebsd1*)
17450       ld_shlibs_GCJ=no
17451       ;;
17452
17453     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17454     # support.  Future versions do this automatically, but an explicit c++rt0.o
17455     # does not break anything, and helps significantly (at the cost of a little
17456     # extra space).
17457     freebsd2.2*)
17458       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17459       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17460       hardcode_direct_GCJ=yes
17461       hardcode_shlibpath_var_GCJ=no
17462       ;;
17463
17464     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17465     freebsd2*)
17466       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17467       hardcode_direct_GCJ=yes
17468       hardcode_minus_L_GCJ=yes
17469       hardcode_shlibpath_var_GCJ=no
17470       ;;
17471
17472     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17473     freebsd* | dragonfly*)
17474       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17475       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17476       hardcode_direct_GCJ=yes
17477       hardcode_shlibpath_var_GCJ=no
17478       ;;
17479
17480     hpux9*)
17481       if test "$GCC" = yes; then
17482         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'
17483       else
17484         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'
17485       fi
17486       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17487       hardcode_libdir_separator_GCJ=:
17488       hardcode_direct_GCJ=yes
17489
17490       # hardcode_minus_L: Not really in the search PATH,
17491       # but as the default location of the library.
17492       hardcode_minus_L_GCJ=yes
17493       export_dynamic_flag_spec_GCJ='${wl}-E'
17494       ;;
17495
17496     hpux10*)
17497       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17498         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17499       else
17500         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17501       fi
17502       if test "$with_gnu_ld" = no; then
17503         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17504         hardcode_libdir_separator_GCJ=:
17505
17506         hardcode_direct_GCJ=yes
17507         export_dynamic_flag_spec_GCJ='${wl}-E'
17508
17509         # hardcode_minus_L: Not really in the search PATH,
17510         # but as the default location of the library.
17511         hardcode_minus_L_GCJ=yes
17512       fi
17513       ;;
17514
17515     hpux11*)
17516       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17517         case $host_cpu in
17518         hppa*64*)
17519           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17520           ;;
17521         ia64*)
17522           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17523           ;;
17524         *)
17525           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17526           ;;
17527         esac
17528       else
17529         case $host_cpu in
17530         hppa*64*)
17531           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17532           ;;
17533         ia64*)
17534           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17535           ;;
17536         *)
17537           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17538           ;;
17539         esac
17540       fi
17541       if test "$with_gnu_ld" = no; then
17542         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17543         hardcode_libdir_separator_GCJ=:
17544
17545         case $host_cpu in
17546         hppa*64*|ia64*)
17547           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17548           hardcode_direct_GCJ=no
17549           hardcode_shlibpath_var_GCJ=no
17550           ;;
17551         *)
17552           hardcode_direct_GCJ=yes
17553           export_dynamic_flag_spec_GCJ='${wl}-E'
17554
17555           # hardcode_minus_L: Not really in the search PATH,
17556           # but as the default location of the library.
17557           hardcode_minus_L_GCJ=yes
17558           ;;
17559         esac
17560       fi
17561       ;;
17562
17563     irix5* | irix6* | nonstopux*)
17564       if test "$GCC" = yes; then
17565         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'
17566       else
17567         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'
17568         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17569       fi
17570       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17571       hardcode_libdir_separator_GCJ=:
17572       link_all_deplibs_GCJ=yes
17573       ;;
17574
17575     netbsd* | netbsdelf*-gnu)
17576       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17577         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17578       else
17579         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17580       fi
17581       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17582       hardcode_direct_GCJ=yes
17583       hardcode_shlibpath_var_GCJ=no
17584       ;;
17585
17586     newsos6)
17587       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588       hardcode_direct_GCJ=yes
17589       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17590       hardcode_libdir_separator_GCJ=:
17591       hardcode_shlibpath_var_GCJ=no
17592       ;;
17593
17594     openbsd*)
17595       hardcode_direct_GCJ=yes
17596       hardcode_shlibpath_var_GCJ=no
17597       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17598         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17599         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17600         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17601         export_dynamic_flag_spec_GCJ='${wl}-E'
17602       else
17603        case $host_os in
17604          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17605            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17606            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17607            ;;
17608          *)
17609            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17611            ;;
17612        esac
17613       fi
17614       ;;
17615
17616     os2*)
17617       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17618       hardcode_minus_L_GCJ=yes
17619       allow_undefined_flag_GCJ=unsupported
17620       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'
17621       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17622       ;;
17623
17624     osf3*)
17625       if test "$GCC" = yes; then
17626         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17627         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'
17628       else
17629         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17630         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'
17631       fi
17632       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17633       hardcode_libdir_separator_GCJ=:
17634       ;;
17635
17636     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17637       if test "$GCC" = yes; then
17638         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17639         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'
17640         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17641       else
17642         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17643         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'
17644         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~
17645         $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'
17646
17647         # Both c and cxx compiler support -rpath directly
17648         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17649       fi
17650       hardcode_libdir_separator_GCJ=:
17651       ;;
17652
17653     solaris*)
17654       no_undefined_flag_GCJ=' -z text'
17655       if test "$GCC" = yes; then
17656         wlarc='${wl}'
17657         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17658         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17659           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17660       else
17661         wlarc=''
17662         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17664         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17665       fi
17666       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17667       hardcode_shlibpath_var_GCJ=no
17668       case $host_os in
17669       solaris2.[0-5] | solaris2.[0-5].*) ;;
17670       *)
17671         # The compiler driver will combine linker options so we
17672         # cannot just pass the convience library names through
17673         # without $wl, iff we do not link with $LD.
17674         # Luckily, gcc supports the same syntax we need for Sun Studio.
17675         # Supported since Solaris 2.6 (maybe 2.5.1?)
17676         case $wlarc in
17677         '')
17678           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17679         *)
17680           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17681         esac ;;
17682       esac
17683       link_all_deplibs_GCJ=yes
17684       ;;
17685
17686     sunos4*)
17687       if test "x$host_vendor" = xsequent; then
17688         # Use $CC to link under sequent, because it throws in some extra .o
17689         # files that make .init and .fini sections work.
17690         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17691       else
17692         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17693       fi
17694       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695       hardcode_direct_GCJ=yes
17696       hardcode_minus_L_GCJ=yes
17697       hardcode_shlibpath_var_GCJ=no
17698       ;;
17699
17700     sysv4)
17701       case $host_vendor in
17702         sni)
17703           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17704           hardcode_direct_GCJ=yes # is this really true???
17705         ;;
17706         siemens)
17707           ## LD is ld it makes a PLAMLIB
17708           ## CC just makes a GrossModule.
17709           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17710           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17711           hardcode_direct_GCJ=no
17712         ;;
17713         motorola)
17714           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17716         ;;
17717       esac
17718       runpath_var='LD_RUN_PATH'
17719       hardcode_shlibpath_var_GCJ=no
17720       ;;
17721
17722     sysv4.3*)
17723       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724       hardcode_shlibpath_var_GCJ=no
17725       export_dynamic_flag_spec_GCJ='-Bexport'
17726       ;;
17727
17728     sysv4*MP*)
17729       if test -d /usr/nec; then
17730         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731         hardcode_shlibpath_var_GCJ=no
17732         runpath_var=LD_RUN_PATH
17733         hardcode_runpath_var=yes
17734         ld_shlibs_GCJ=yes
17735       fi
17736       ;;
17737
17738     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17739       no_undefined_flag_GCJ='${wl}-z,text'
17740       archive_cmds_need_lc_GCJ=no
17741       hardcode_shlibpath_var_GCJ=no
17742       runpath_var='LD_RUN_PATH'
17743
17744       if test "$GCC" = yes; then
17745         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17746         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17747       else
17748         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17749         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750       fi
17751       ;;
17752
17753     sysv5* | sco3.2v5* | sco5v6*)
17754       # Note: We can NOT use -z defs as we might desire, because we do not
17755       # link with -lc, and that would cause any symbols used from libc to
17756       # always be unresolved, which means just about no library would
17757       # ever link correctly.  If we're not using GNU ld we use -z text
17758       # though, which does catch some bad symbols but isn't as heavy-handed
17759       # as -z defs.
17760       no_undefined_flag_GCJ='${wl}-z,text'
17761       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17762       archive_cmds_need_lc_GCJ=no
17763       hardcode_shlibpath_var_GCJ=no
17764       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17765       hardcode_libdir_separator_GCJ=':'
17766       link_all_deplibs_GCJ=yes
17767       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17768       runpath_var='LD_RUN_PATH'
17769
17770       if test "$GCC" = yes; then
17771         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17772         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773       else
17774         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17775         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776       fi
17777       ;;
17778
17779     uts4*)
17780       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17782       hardcode_shlibpath_var_GCJ=no
17783       ;;
17784
17785     *)
17786       ld_shlibs_GCJ=no
17787       ;;
17788     esac
17789   fi
17790
17791 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17792 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17793 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17794
17795 #
17796 # Do we need to explicitly link libc?
17797 #
17798 case "x$archive_cmds_need_lc_GCJ" in
17799 x|xyes)
17800   # Assume -lc should be added
17801   archive_cmds_need_lc_GCJ=yes
17802
17803   if test "$enable_shared" = yes && test "$GCC" = yes; then
17804     case $archive_cmds_GCJ in
17805     *'~'*)
17806       # FIXME: we may have to deal with multi-command sequences.
17807       ;;
17808     '$CC '*)
17809       # Test whether the compiler implicitly links with -lc since on some
17810       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17811       # to ld, don't add -lc before -lgcc.
17812       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17814       $rm conftest*
17815       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17816
17817       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818   (eval $ac_compile) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } 2>conftest.err; then
17822         soname=conftest
17823         lib=conftest
17824         libobjs=conftest.$ac_objext
17825         deplibs=
17826         wl=$lt_prog_compiler_wl_GCJ
17827         pic_flag=$lt_prog_compiler_pic_GCJ
17828         compiler_flags=-v
17829         linker_flags=-v
17830         verstring=
17831         output_objdir=.
17832         libname=conftest
17833         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17834         allow_undefined_flag_GCJ=
17835         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17836   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }
17840         then
17841           archive_cmds_need_lc_GCJ=no
17842         else
17843           archive_cmds_need_lc_GCJ=yes
17844         fi
17845         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17846       else
17847         cat conftest.err 1>&5
17848       fi
17849       $rm conftest*
17850       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17851 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17852       ;;
17853     esac
17854   fi
17855   ;;
17856 esac
17857
17858 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17859 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17860 library_names_spec=
17861 libname_spec='lib$name'
17862 soname_spec=
17863 shrext_cmds=".so"
17864 postinstall_cmds=
17865 postuninstall_cmds=
17866 finish_cmds=
17867 finish_eval=
17868 shlibpath_var=
17869 shlibpath_overrides_runpath=unknown
17870 version_type=none
17871 dynamic_linker="$host_os ld.so"
17872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17873 if test "$GCC" = yes; then
17874   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17875   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17876     # if the path contains ";" then we assume it to be the separator
17877     # otherwise default to the standard path separator (i.e. ":") - it is
17878     # assumed that no part of a normal pathname contains ";" but that should
17879     # okay in the real world where ";" in dirpaths is itself problematic.
17880     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17881   else
17882     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17883   fi
17884 else
17885   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17886 fi
17887 need_lib_prefix=unknown
17888 hardcode_into_libs=no
17889
17890 # when you set need_version to no, make sure it does not cause -set_version
17891 # flags to be left without arguments
17892 need_version=unknown
17893
17894 case $host_os in
17895 aix3*)
17896   version_type=linux
17897   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17898   shlibpath_var=LIBPATH
17899
17900   # AIX 3 has no versioning support, so we append a major version to the name.
17901   soname_spec='${libname}${release}${shared_ext}$major'
17902   ;;
17903
17904 aix4* | aix5*)
17905   version_type=linux
17906   need_lib_prefix=no
17907   need_version=no
17908   hardcode_into_libs=yes
17909   if test "$host_cpu" = ia64; then
17910     # AIX 5 supports IA64
17911     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17912     shlibpath_var=LD_LIBRARY_PATH
17913   else
17914     # With GCC up to 2.95.x, collect2 would create an import file
17915     # for dependence libraries.  The import file would start with
17916     # the line `#! .'.  This would cause the generated library to
17917     # depend on `.', always an invalid library.  This was fixed in
17918     # development snapshots of GCC prior to 3.0.
17919     case $host_os in
17920       aix4 | aix4.[01] | aix4.[01].*)
17921       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17922            echo ' yes '
17923            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17924         :
17925       else
17926         can_build_shared=no
17927       fi
17928       ;;
17929     esac
17930     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17931     # soname into executable. Probably we can add versioning support to
17932     # collect2, so additional links can be useful in future.
17933     if test "$aix_use_runtimelinking" = yes; then
17934       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17935       # instead of lib<name>.a to let people know that these are not
17936       # typical AIX shared libraries.
17937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938     else
17939       # We preserve .a as extension for shared libraries through AIX4.2
17940       # and later when we are not doing run time linking.
17941       library_names_spec='${libname}${release}.a $libname.a'
17942       soname_spec='${libname}${release}${shared_ext}$major'
17943     fi
17944     shlibpath_var=LIBPATH
17945   fi
17946   ;;
17947
17948 amigaos*)
17949   library_names_spec='$libname.ixlibrary $libname.a'
17950   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17951   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'
17952   ;;
17953
17954 beos*)
17955   library_names_spec='${libname}${shared_ext}'
17956   dynamic_linker="$host_os ld.so"
17957   shlibpath_var=LIBRARY_PATH
17958   ;;
17959
17960 bsdi[45]*)
17961   version_type=linux
17962   need_version=no
17963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964   soname_spec='${libname}${release}${shared_ext}$major'
17965   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17966   shlibpath_var=LD_LIBRARY_PATH
17967   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17968   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17969   # the default ld.so.conf also contains /usr/contrib/lib and
17970   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17971   # libtool to hard-code these into programs
17972   ;;
17973
17974 cygwin* | mingw* | pw32*)
17975   version_type=windows
17976   shrext_cmds=".dll"
17977   need_version=no
17978   need_lib_prefix=no
17979
17980   case $GCC,$host_os in
17981   yes,cygwin* | yes,mingw* | yes,pw32*)
17982     library_names_spec='$libname.dll.a'
17983     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17984     postinstall_cmds='base_file=`basename \${file}`~
17985       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17986       dldir=$destdir/`dirname \$dlpath`~
17987       test -d \$dldir || mkdir -p \$dldir~
17988       $install_prog $dir/$dlname \$dldir/$dlname~
17989       chmod a+x \$dldir/$dlname'
17990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17991       dlpath=$dir/\$dldll~
17992        $rm \$dlpath'
17993     shlibpath_overrides_runpath=yes
17994
17995     case $host_os in
17996     cygwin*)
17997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18000       ;;
18001     mingw*)
18002       # MinGW DLLs use traditional 'lib' prefix
18003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18004       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18005       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18006         # It is most probably a Windows format PATH printed by
18007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18008         # path with ; separators, and with drive letters. We can handle the
18009         # drive letters (cygwin fileutils understands them), so leave them,
18010         # especially as we might pass files found there to a mingw objdump,
18011         # which wouldn't understand a cygwinified path. Ahh.
18012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18013       else
18014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18015       fi
18016       ;;
18017     pw32*)
18018       # pw32 DLLs use 'pw' prefix rather than 'lib'
18019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18020       ;;
18021     esac
18022     ;;
18023
18024   *)
18025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18026     ;;
18027   esac
18028   dynamic_linker='Win32 ld.exe'
18029   # FIXME: first we should search . and the directory the executable is in
18030   shlibpath_var=PATH
18031   ;;
18032
18033 darwin* | rhapsody*)
18034   dynamic_linker="$host_os dyld"
18035   version_type=darwin
18036   need_lib_prefix=no
18037   need_version=no
18038   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18039   soname_spec='${libname}${release}${major}$shared_ext'
18040   shlibpath_overrides_runpath=yes
18041   shlibpath_var=DYLD_LIBRARY_PATH
18042   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18043   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18044   if test "$GCC" = yes; then
18045     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18046   else
18047     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18048   fi
18049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18050   ;;
18051
18052 dgux*)
18053   version_type=linux
18054   need_lib_prefix=no
18055   need_version=no
18056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18057   soname_spec='${libname}${release}${shared_ext}$major'
18058   shlibpath_var=LD_LIBRARY_PATH
18059   ;;
18060
18061 freebsd1*)
18062   dynamic_linker=no
18063   ;;
18064
18065 freebsd* | dragonfly*)
18066   # DragonFly does not have aout.  When/if they implement a new
18067   # versioning mechanism, adjust this.
18068   if test -x /usr/bin/objformat; then
18069     objformat=`/usr/bin/objformat`
18070   else
18071     case $host_os in
18072     freebsd[123]*) objformat=aout ;;
18073     *) objformat=elf ;;
18074     esac
18075   fi
18076   version_type=freebsd-$objformat
18077   case $version_type in
18078     freebsd-elf*)
18079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18080       need_version=no
18081       need_lib_prefix=no
18082       ;;
18083     freebsd-*)
18084       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18085       need_version=yes
18086       ;;
18087   esac
18088   shlibpath_var=LD_LIBRARY_PATH
18089   case $host_os in
18090   freebsd2*)
18091     shlibpath_overrides_runpath=yes
18092     ;;
18093   freebsd3.[01]* | freebsdelf3.[01]*)
18094     shlibpath_overrides_runpath=yes
18095     hardcode_into_libs=yes
18096     ;;
18097   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18098   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18099     shlibpath_overrides_runpath=no
18100     hardcode_into_libs=yes
18101     ;;
18102   freebsd*) # from 4.6 on
18103     shlibpath_overrides_runpath=yes
18104     hardcode_into_libs=yes
18105     ;;
18106   esac
18107   ;;
18108
18109 gnu*)
18110   version_type=linux
18111   need_lib_prefix=no
18112   need_version=no
18113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18114   soname_spec='${libname}${release}${shared_ext}$major'
18115   shlibpath_var=LD_LIBRARY_PATH
18116   hardcode_into_libs=yes
18117   ;;
18118
18119 hpux9* | hpux10* | hpux11*)
18120   # Give a soname corresponding to the major version so that dld.sl refuses to
18121   # link against other versions.
18122   version_type=sunos
18123   need_lib_prefix=no
18124   need_version=no
18125   case $host_cpu in
18126   ia64*)
18127     shrext_cmds='.so'
18128     hardcode_into_libs=yes
18129     dynamic_linker="$host_os dld.so"
18130     shlibpath_var=LD_LIBRARY_PATH
18131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133     soname_spec='${libname}${release}${shared_ext}$major'
18134     if test "X$HPUX_IA64_MODE" = X32; then
18135       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18136     else
18137       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18138     fi
18139     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18140     ;;
18141    hppa*64*)
18142      shrext_cmds='.sl'
18143      hardcode_into_libs=yes
18144      dynamic_linker="$host_os dld.sl"
18145      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18146      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148      soname_spec='${libname}${release}${shared_ext}$major'
18149      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18150      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18151      ;;
18152    *)
18153     shrext_cmds='.sl'
18154     dynamic_linker="$host_os dld.sl"
18155     shlibpath_var=SHLIB_PATH
18156     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158     soname_spec='${libname}${release}${shared_ext}$major'
18159     ;;
18160   esac
18161   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18162   postinstall_cmds='chmod 555 $lib'
18163   ;;
18164
18165 interix3*)
18166   version_type=linux
18167   need_lib_prefix=no
18168   need_version=no
18169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18170   soname_spec='${libname}${release}${shared_ext}$major'
18171   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18172   shlibpath_var=LD_LIBRARY_PATH
18173   shlibpath_overrides_runpath=no
18174   hardcode_into_libs=yes
18175   ;;
18176
18177 irix5* | irix6* | nonstopux*)
18178   case $host_os in
18179     nonstopux*) version_type=nonstopux ;;
18180     *)
18181         if test "$lt_cv_prog_gnu_ld" = yes; then
18182                 version_type=linux
18183         else
18184                 version_type=irix
18185         fi ;;
18186   esac
18187   need_lib_prefix=no
18188   need_version=no
18189   soname_spec='${libname}${release}${shared_ext}$major'
18190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18191   case $host_os in
18192   irix5* | nonstopux*)
18193     libsuff= shlibsuff=
18194     ;;
18195   *)
18196     case $LD in # libtool.m4 will add one of these switches to LD
18197     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18198       libsuff= shlibsuff= libmagic=32-bit;;
18199     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18200       libsuff=32 shlibsuff=N32 libmagic=N32;;
18201     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18202       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18203     *) libsuff= shlibsuff= libmagic=never-match;;
18204     esac
18205     ;;
18206   esac
18207   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18208   shlibpath_overrides_runpath=no
18209   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18210   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18211   hardcode_into_libs=yes
18212   ;;
18213
18214 # No shared lib support for Linux oldld, aout, or coff.
18215 linux*oldld* | linux*aout* | linux*coff*)
18216   dynamic_linker=no
18217   ;;
18218
18219 # This must be Linux ELF.
18220 linux* | k*bsd*-gnu)
18221   version_type=linux
18222   need_lib_prefix=no
18223   need_version=no
18224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225   soname_spec='${libname}${release}${shared_ext}$major'
18226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18227   shlibpath_var=LD_LIBRARY_PATH
18228   shlibpath_overrides_runpath=no
18229   # This implies no fast_install, which is unacceptable.
18230   # Some rework will be needed to allow for fast_install
18231   # before this can be enabled.
18232   hardcode_into_libs=yes
18233
18234   # Append ld.so.conf contents to the search path
18235   if test -f /etc/ld.so.conf; then
18236     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18237     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18238   fi
18239
18240   # We used to test for /lib/ld.so.1 and disable shared libraries on
18241   # powerpc, because MkLinux only supported shared libraries with the
18242   # GNU dynamic linker.  Since this was broken with cross compilers,
18243   # most powerpc-linux boxes support dynamic linking these days and
18244   # people can always --disable-shared, the test was removed, and we
18245   # assume the GNU/Linux dynamic linker is in use.
18246   dynamic_linker='GNU/Linux ld.so'
18247   ;;
18248
18249 netbsdelf*-gnu)
18250   version_type=linux
18251   need_lib_prefix=no
18252   need_version=no
18253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18254   soname_spec='${libname}${release}${shared_ext}$major'
18255   shlibpath_var=LD_LIBRARY_PATH
18256   shlibpath_overrides_runpath=no
18257   hardcode_into_libs=yes
18258   dynamic_linker='NetBSD ld.elf_so'
18259   ;;
18260
18261 netbsd*)
18262   version_type=sunos
18263   need_lib_prefix=no
18264   need_version=no
18265   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18267     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18268     dynamic_linker='NetBSD (a.out) ld.so'
18269   else
18270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18271     soname_spec='${libname}${release}${shared_ext}$major'
18272     dynamic_linker='NetBSD ld.elf_so'
18273   fi
18274   shlibpath_var=LD_LIBRARY_PATH
18275   shlibpath_overrides_runpath=yes
18276   hardcode_into_libs=yes
18277   ;;
18278
18279 newsos6)
18280   version_type=linux
18281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282   shlibpath_var=LD_LIBRARY_PATH
18283   shlibpath_overrides_runpath=yes
18284   ;;
18285
18286 nto-qnx*)
18287   version_type=linux
18288   need_lib_prefix=no
18289   need_version=no
18290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291   soname_spec='${libname}${release}${shared_ext}$major'
18292   shlibpath_var=LD_LIBRARY_PATH
18293   shlibpath_overrides_runpath=yes
18294   ;;
18295
18296 openbsd*)
18297   version_type=sunos
18298   sys_lib_dlsearch_path_spec="/usr/lib"
18299   need_lib_prefix=no
18300   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18301   case $host_os in
18302     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18303     *)                         need_version=no  ;;
18304   esac
18305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18307   shlibpath_var=LD_LIBRARY_PATH
18308   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18309     case $host_os in
18310       openbsd2.[89] | openbsd2.[89].*)
18311         shlibpath_overrides_runpath=no
18312         ;;
18313       *)
18314         shlibpath_overrides_runpath=yes
18315         ;;
18316       esac
18317   else
18318     shlibpath_overrides_runpath=yes
18319   fi
18320   ;;
18321
18322 os2*)
18323   libname_spec='$name'
18324   shrext_cmds=".dll"
18325   need_lib_prefix=no
18326   library_names_spec='$libname${shared_ext} $libname.a'
18327   dynamic_linker='OS/2 ld.exe'
18328   shlibpath_var=LIBPATH
18329   ;;
18330
18331 osf3* | osf4* | osf5*)
18332   version_type=osf
18333   need_lib_prefix=no
18334   need_version=no
18335   soname_spec='${libname}${release}${shared_ext}$major'
18336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337   shlibpath_var=LD_LIBRARY_PATH
18338   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18339   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18340   ;;
18341
18342 solaris*)
18343   version_type=linux
18344   need_lib_prefix=no
18345   need_version=no
18346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347   soname_spec='${libname}${release}${shared_ext}$major'
18348   shlibpath_var=LD_LIBRARY_PATH
18349   shlibpath_overrides_runpath=yes
18350   hardcode_into_libs=yes
18351   # ldd complains unless libraries are executable
18352   postinstall_cmds='chmod +x $lib'
18353   ;;
18354
18355 sunos4*)
18356   version_type=sunos
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18358   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   shlibpath_overrides_runpath=yes
18361   if test "$with_gnu_ld" = yes; then
18362     need_lib_prefix=no
18363   fi
18364   need_version=yes
18365   ;;
18366
18367 sysv4 | sysv4.3*)
18368   version_type=linux
18369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370   soname_spec='${libname}${release}${shared_ext}$major'
18371   shlibpath_var=LD_LIBRARY_PATH
18372   case $host_vendor in
18373     sni)
18374       shlibpath_overrides_runpath=no
18375       need_lib_prefix=no
18376       export_dynamic_flag_spec='${wl}-Blargedynsym'
18377       runpath_var=LD_RUN_PATH
18378       ;;
18379     siemens)
18380       need_lib_prefix=no
18381       ;;
18382     motorola)
18383       need_lib_prefix=no
18384       need_version=no
18385       shlibpath_overrides_runpath=no
18386       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18387       ;;
18388   esac
18389   ;;
18390
18391 sysv4*MP*)
18392   if test -d /usr/nec ;then
18393     version_type=linux
18394     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18395     soname_spec='$libname${shared_ext}.$major'
18396     shlibpath_var=LD_LIBRARY_PATH
18397   fi
18398   ;;
18399
18400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18401   version_type=freebsd-elf
18402   need_lib_prefix=no
18403   need_version=no
18404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18405   soname_spec='${libname}${release}${shared_ext}$major'
18406   shlibpath_var=LD_LIBRARY_PATH
18407   hardcode_into_libs=yes
18408   if test "$with_gnu_ld" = yes; then
18409     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18410     shlibpath_overrides_runpath=no
18411   else
18412     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18413     shlibpath_overrides_runpath=yes
18414     case $host_os in
18415       sco3.2v5*)
18416         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18417         ;;
18418     esac
18419   fi
18420   sys_lib_dlsearch_path_spec='/usr/lib'
18421   ;;
18422
18423 uts4*)
18424   version_type=linux
18425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18426   soname_spec='${libname}${release}${shared_ext}$major'
18427   shlibpath_var=LD_LIBRARY_PATH
18428   ;;
18429
18430 *)
18431   dynamic_linker=no
18432   ;;
18433 esac
18434 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18435 echo "${ECHO_T}$dynamic_linker" >&6; }
18436 test "$dynamic_linker" = no && can_build_shared=no
18437
18438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18439 if test "$GCC" = yes; then
18440   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18441 fi
18442
18443 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18444 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18445 hardcode_action_GCJ=
18446 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18447    test -n "$runpath_var_GCJ" || \
18448    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18449
18450   # We can hardcode non-existant directories.
18451   if test "$hardcode_direct_GCJ" != no &&
18452      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18453      # have to relink, otherwise we might link with an installed library
18454      # when we should be linking with a yet-to-be-installed one
18455      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18456      test "$hardcode_minus_L_GCJ" != no; then
18457     # Linking always hardcodes the temporary library directory.
18458     hardcode_action_GCJ=relink
18459   else
18460     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18461     hardcode_action_GCJ=immediate
18462   fi
18463 else
18464   # We cannot hardcode anything, or else we can only hardcode existing
18465   # directories.
18466   hardcode_action_GCJ=unsupported
18467 fi
18468 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18469 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18470
18471 if test "$hardcode_action_GCJ" = relink; then
18472   # Fast installation is not supported
18473   enable_fast_install=no
18474 elif test "$shlibpath_overrides_runpath" = yes ||
18475      test "$enable_shared" = no; then
18476   # Fast installation is not necessary
18477   enable_fast_install=needless
18478 fi
18479
18480
18481 # The else clause should only fire when bootstrapping the
18482 # libtool distribution, otherwise you forgot to ship ltmain.sh
18483 # with your package, and you will get complaints that there are
18484 # no rules to generate ltmain.sh.
18485 if test -f "$ltmain"; then
18486   # See if we are running on zsh, and set the options which allow our commands through
18487   # without removal of \ escapes.
18488   if test -n "${ZSH_VERSION+set}" ; then
18489     setopt NO_GLOB_SUBST
18490   fi
18491   # Now quote all the things that may contain metacharacters while being
18492   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18493   # variables and quote the copies for generation of the libtool script.
18494   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18495     SED SHELL STRIP \
18496     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18497     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18498     deplibs_check_method reload_flag reload_cmds need_locks \
18499     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18500     lt_cv_sys_global_symbol_to_c_name_address \
18501     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18502     old_postinstall_cmds old_postuninstall_cmds \
18503     compiler_GCJ \
18504     CC_GCJ \
18505     LD_GCJ \
18506     lt_prog_compiler_wl_GCJ \
18507     lt_prog_compiler_pic_GCJ \
18508     lt_prog_compiler_static_GCJ \
18509     lt_prog_compiler_no_builtin_flag_GCJ \
18510     export_dynamic_flag_spec_GCJ \
18511     thread_safe_flag_spec_GCJ \
18512     whole_archive_flag_spec_GCJ \
18513     enable_shared_with_static_runtimes_GCJ \
18514     old_archive_cmds_GCJ \
18515     old_archive_from_new_cmds_GCJ \
18516     predep_objects_GCJ \
18517     postdep_objects_GCJ \
18518     predeps_GCJ \
18519     postdeps_GCJ \
18520     compiler_lib_search_path_GCJ \
18521     archive_cmds_GCJ \
18522     archive_expsym_cmds_GCJ \
18523     postinstall_cmds_GCJ \
18524     postuninstall_cmds_GCJ \
18525     old_archive_from_expsyms_cmds_GCJ \
18526     allow_undefined_flag_GCJ \
18527     no_undefined_flag_GCJ \
18528     export_symbols_cmds_GCJ \
18529     hardcode_libdir_flag_spec_GCJ \
18530     hardcode_libdir_flag_spec_ld_GCJ \
18531     hardcode_libdir_separator_GCJ \
18532     hardcode_automatic_GCJ \
18533     module_cmds_GCJ \
18534     module_expsym_cmds_GCJ \
18535     lt_cv_prog_compiler_c_o_GCJ \
18536     exclude_expsyms_GCJ \
18537     include_expsyms_GCJ; do
18538
18539     case $var in
18540     old_archive_cmds_GCJ | \
18541     old_archive_from_new_cmds_GCJ | \
18542     archive_cmds_GCJ | \
18543     archive_expsym_cmds_GCJ | \
18544     module_cmds_GCJ | \
18545     module_expsym_cmds_GCJ | \
18546     old_archive_from_expsyms_cmds_GCJ | \
18547     export_symbols_cmds_GCJ | \
18548     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18549     postinstall_cmds | postuninstall_cmds | \
18550     old_postinstall_cmds | old_postuninstall_cmds | \
18551     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18552       # Double-quote double-evaled strings.
18553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18554       ;;
18555     *)
18556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18557       ;;
18558     esac
18559   done
18560
18561   case $lt_echo in
18562   *'\$0 --fallback-echo"')
18563     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18564     ;;
18565   esac
18566
18567 cfgfile="$ofile"
18568
18569   cat <<__EOF__ >> "$cfgfile"
18570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18571
18572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18573
18574 # Shell to use when invoking shell scripts.
18575 SHELL=$lt_SHELL
18576
18577 # Whether or not to build shared libraries.
18578 build_libtool_libs=$enable_shared
18579
18580 # Whether or not to build static libraries.
18581 build_old_libs=$enable_static
18582
18583 # Whether or not to add -lc for building shared libraries.
18584 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18585
18586 # Whether or not to disallow shared libs when runtime libs are static
18587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18588
18589 # Whether or not to optimize for fast installation.
18590 fast_install=$enable_fast_install
18591
18592 # The host system.
18593 host_alias=$host_alias
18594 host=$host
18595 host_os=$host_os
18596
18597 # The build system.
18598 build_alias=$build_alias
18599 build=$build
18600 build_os=$build_os
18601
18602 # An echo program that does not interpret backslashes.
18603 echo=$lt_echo
18604
18605 # The archiver.
18606 AR=$lt_AR
18607 AR_FLAGS=$lt_AR_FLAGS
18608
18609 # A C compiler.
18610 LTCC=$lt_LTCC
18611
18612 # LTCC compiler flags.
18613 LTCFLAGS=$lt_LTCFLAGS
18614
18615 # A language-specific compiler.
18616 CC=$lt_compiler_GCJ
18617
18618 # Is the compiler the GNU C compiler?
18619 with_gcc=$GCC_GCJ
18620
18621 # An ERE matcher.
18622 EGREP=$lt_EGREP
18623
18624 # The linker used to build libraries.
18625 LD=$lt_LD_GCJ
18626
18627 # Whether we need hard or soft links.
18628 LN_S=$lt_LN_S
18629
18630 # A BSD-compatible nm program.
18631 NM=$lt_NM
18632
18633 # A symbol stripping program
18634 STRIP=$lt_STRIP
18635
18636 # Used to examine libraries when file_magic_cmd begins "file"
18637 MAGIC_CMD=$MAGIC_CMD
18638
18639 # Used on cygwin: DLL creation program.
18640 DLLTOOL="$DLLTOOL"
18641
18642 # Used on cygwin: object dumper.
18643 OBJDUMP="$OBJDUMP"
18644
18645 # Used on cygwin: assembler.
18646 AS="$AS"
18647
18648 # The name of the directory that contains temporary libtool files.
18649 objdir=$objdir
18650
18651 # How to create reloadable object files.
18652 reload_flag=$lt_reload_flag
18653 reload_cmds=$lt_reload_cmds
18654
18655 # How to pass a linker flag through the compiler.
18656 wl=$lt_lt_prog_compiler_wl_GCJ
18657
18658 # Object file suffix (normally "o").
18659 objext="$ac_objext"
18660
18661 # Old archive suffix (normally "a").
18662 libext="$libext"
18663
18664 # Shared library suffix (normally ".so").
18665 shrext_cmds='$shrext_cmds'
18666
18667 # Executable file suffix (normally "").
18668 exeext="$exeext"
18669
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18672 pic_mode=$pic_mode
18673
18674 # What is the maximum length of a command?
18675 max_cmd_len=$lt_cv_sys_max_cmd_len
18676
18677 # Does compiler simultaneously support -c and -o options?
18678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18679
18680 # Must we lock files when doing compilation?
18681 need_locks=$lt_need_locks
18682
18683 # Do we need the lib prefix for modules?
18684 need_lib_prefix=$need_lib_prefix
18685
18686 # Do we need a version for libraries?
18687 need_version=$need_version
18688
18689 # Whether dlopen is supported.
18690 dlopen_support=$enable_dlopen
18691
18692 # Whether dlopen of programs is supported.
18693 dlopen_self=$enable_dlopen_self
18694
18695 # Whether dlopen of statically linked programs is supported.
18696 dlopen_self_static=$enable_dlopen_self_static
18697
18698 # Compiler flag to prevent dynamic linking.
18699 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18700
18701 # Compiler flag to turn off builtin functions.
18702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18703
18704 # Compiler flag to allow reflexive dlopens.
18705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18706
18707 # Compiler flag to generate shared objects directly from archives.
18708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18709
18710 # Compiler flag to generate thread-safe objects.
18711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18712
18713 # Library versioning type.
18714 version_type=$version_type
18715
18716 # Format of library name prefix.
18717 libname_spec=$lt_libname_spec
18718
18719 # List of archive names.  First name is the real one, the rest are links.
18720 # The last name is the one that the linker finds with -lNAME.
18721 library_names_spec=$lt_library_names_spec
18722
18723 # The coded name of the library, if different from the real name.
18724 soname_spec=$lt_soname_spec
18725
18726 # Commands used to build and install an old-style archive.
18727 RANLIB=$lt_RANLIB
18728 old_archive_cmds=$lt_old_archive_cmds_GCJ
18729 old_postinstall_cmds=$lt_old_postinstall_cmds
18730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18731
18732 # Create an old-style archive from a shared archive.
18733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18734
18735 # Create a temporary old-style archive to link instead of a shared archive.
18736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18737
18738 # Commands used to build and install a shared archive.
18739 archive_cmds=$lt_archive_cmds_GCJ
18740 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18741 postinstall_cmds=$lt_postinstall_cmds
18742 postuninstall_cmds=$lt_postuninstall_cmds
18743
18744 # Commands used to build a loadable module (assumed same as above if empty)
18745 module_cmds=$lt_module_cmds_GCJ
18746 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18747
18748 # Commands to strip libraries.
18749 old_striplib=$lt_old_striplib
18750 striplib=$lt_striplib
18751
18752 # Dependencies to place before the objects being linked to create a
18753 # shared library.
18754 predep_objects=$lt_predep_objects_GCJ
18755
18756 # Dependencies to place after the objects being linked to create a
18757 # shared library.
18758 postdep_objects=$lt_postdep_objects_GCJ
18759
18760 # Dependencies to place before the objects being linked to create a
18761 # shared library.
18762 predeps=$lt_predeps_GCJ
18763
18764 # Dependencies to place after the objects being linked to create a
18765 # shared library.
18766 postdeps=$lt_postdeps_GCJ
18767
18768 # The library search path used internally by the compiler when linking
18769 # a shared library.
18770 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18771
18772 # Method to check whether dependent libraries are shared objects.
18773 deplibs_check_method=$lt_deplibs_check_method
18774
18775 # Command to use when deplibs_check_method == file_magic.
18776 file_magic_cmd=$lt_file_magic_cmd
18777
18778 # Flag that allows shared libraries with undefined symbols to be built.
18779 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18780
18781 # Flag that forces no undefined symbols.
18782 no_undefined_flag=$lt_no_undefined_flag_GCJ
18783
18784 # Commands used to finish a libtool library installation in a directory.
18785 finish_cmds=$lt_finish_cmds
18786
18787 # Same as above, but a single script fragment to be evaled but not shown.
18788 finish_eval=$lt_finish_eval
18789
18790 # Take the output of nm and produce a listing of raw symbols and C names.
18791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18792
18793 # Transform the output of nm in a proper C declaration
18794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18795
18796 # Transform the output of nm in a C name address pair
18797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18798
18799 # This is the shared library runtime path variable.
18800 runpath_var=$runpath_var
18801
18802 # This is the shared library path variable.
18803 shlibpath_var=$shlibpath_var
18804
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807
18808 # How to hardcode a shared library path into an executable.
18809 hardcode_action=$hardcode_action_GCJ
18810
18811 # Whether we should hardcode library paths into libraries.
18812 hardcode_into_libs=$hardcode_into_libs
18813
18814 # Flag to hardcode \$libdir into a binary during linking.
18815 # This must work even if \$libdir does not exist.
18816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18817
18818 # If ld is used when linking, flag to hardcode \$libdir into
18819 # a binary during linking. This must work even if \$libdir does
18820 # not exist.
18821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18822
18823 # Whether we need a single -rpath flag with a separated argument.
18824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18825
18826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18827 # resulting binary.
18828 hardcode_direct=$hardcode_direct_GCJ
18829
18830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_minus_L=$hardcode_minus_L_GCJ
18833
18834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18835 # the resulting binary.
18836 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18837
18838 # Set to yes if building a shared library automatically hardcodes DIR into the library
18839 # and all subsequent libraries and executables linked against it.
18840 hardcode_automatic=$hardcode_automatic_GCJ
18841
18842 # Variables whose values should be saved in libtool wrapper scripts and
18843 # restored at relink time.
18844 variables_saved_for_relink="$variables_saved_for_relink"
18845
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs_GCJ
18848
18849 # Compile-time system search path for libraries
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18851
18852 # Run-time system search path for libraries
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854
18855 # Fix the shell variable \$srcfile for the compiler.
18856 fix_srcfile_path="$fix_srcfile_path_GCJ"
18857
18858 # Set to yes if exported symbols are required.
18859 always_export_symbols=$always_export_symbols_GCJ
18860
18861 # The commands to list exported symbols.
18862 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18863
18864 # The commands to extract the exported symbol list from a shared archive.
18865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18866
18867 # Symbols that should not be listed in the preloaded symbols.
18868 exclude_expsyms=$lt_exclude_expsyms_GCJ
18869
18870 # Symbols that must always be exported.
18871 include_expsyms=$lt_include_expsyms_GCJ
18872
18873 # ### END LIBTOOL TAG CONFIG: $tagname
18874
18875 __EOF__
18876
18877
18878 else
18879   # If there is no Makefile yet, we rely on a make rule to execute
18880   # `config.status --recheck' to rerun these tests and create the
18881   # libtool script then.
18882   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18883   if test -f "$ltmain_in"; then
18884     test -f Makefile && make "$ltmain"
18885   fi
18886 fi
18887
18888
18889 ac_ext=c
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895 CC="$lt_save_CC"
18896
18897         else
18898           tagname=""
18899         fi
18900         ;;
18901
18902       RC)
18903
18904
18905 # Source file extension for RC test sources.
18906 ac_ext=rc
18907
18908 # Object file extension for compiled RC test sources.
18909 objext=o
18910 objext_RC=$objext
18911
18912 # Code to be used in simple compile tests
18913 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18914
18915 # Code to be used in simple link tests
18916 lt_simple_link_test_code="$lt_simple_compile_test_code"
18917
18918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18919
18920 # If no C compiler was specified, use CC.
18921 LTCC=${LTCC-"$CC"}
18922
18923 # If no C compiler flags were specified, use CFLAGS.
18924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18925
18926 # Allow CC to be a program name with arguments.
18927 compiler=$CC
18928
18929
18930 # save warnings/boilerplate of simple test code
18931 ac_outfile=conftest.$ac_objext
18932 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18934 _lt_compiler_boilerplate=`cat conftest.err`
18935 $rm conftest*
18936
18937 ac_outfile=conftest.$ac_objext
18938 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18940 _lt_linker_boilerplate=`cat conftest.err`
18941 $rm conftest*
18942
18943
18944 # Allow CC to be a program name with arguments.
18945 lt_save_CC="$CC"
18946 CC=${RC-"windres"}
18947 compiler=$CC
18948 compiler_RC=$CC
18949 for cc_temp in $compiler""; do
18950   case $cc_temp in
18951     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18952     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18953     \-*) ;;
18954     *) break;;
18955   esac
18956 done
18957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18958
18959 lt_cv_prog_compiler_c_o_RC=yes
18960
18961 # The else clause should only fire when bootstrapping the
18962 # libtool distribution, otherwise you forgot to ship ltmain.sh
18963 # with your package, and you will get complaints that there are
18964 # no rules to generate ltmain.sh.
18965 if test -f "$ltmain"; then
18966   # See if we are running on zsh, and set the options which allow our commands through
18967   # without removal of \ escapes.
18968   if test -n "${ZSH_VERSION+set}" ; then
18969     setopt NO_GLOB_SUBST
18970   fi
18971   # Now quote all the things that may contain metacharacters while being
18972   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18973   # variables and quote the copies for generation of the libtool script.
18974   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18975     SED SHELL STRIP \
18976     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18977     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18978     deplibs_check_method reload_flag reload_cmds need_locks \
18979     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18980     lt_cv_sys_global_symbol_to_c_name_address \
18981     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18982     old_postinstall_cmds old_postuninstall_cmds \
18983     compiler_RC \
18984     CC_RC \
18985     LD_RC \
18986     lt_prog_compiler_wl_RC \
18987     lt_prog_compiler_pic_RC \
18988     lt_prog_compiler_static_RC \
18989     lt_prog_compiler_no_builtin_flag_RC \
18990     export_dynamic_flag_spec_RC \
18991     thread_safe_flag_spec_RC \
18992     whole_archive_flag_spec_RC \
18993     enable_shared_with_static_runtimes_RC \
18994     old_archive_cmds_RC \
18995     old_archive_from_new_cmds_RC \
18996     predep_objects_RC \
18997     postdep_objects_RC \
18998     predeps_RC \
18999     postdeps_RC \
19000     compiler_lib_search_path_RC \
19001     archive_cmds_RC \
19002     archive_expsym_cmds_RC \
19003     postinstall_cmds_RC \
19004     postuninstall_cmds_RC \
19005     old_archive_from_expsyms_cmds_RC \
19006     allow_undefined_flag_RC \
19007     no_undefined_flag_RC \
19008     export_symbols_cmds_RC \
19009     hardcode_libdir_flag_spec_RC \
19010     hardcode_libdir_flag_spec_ld_RC \
19011     hardcode_libdir_separator_RC \
19012     hardcode_automatic_RC \
19013     module_cmds_RC \
19014     module_expsym_cmds_RC \
19015     lt_cv_prog_compiler_c_o_RC \
19016     exclude_expsyms_RC \
19017     include_expsyms_RC; do
19018
19019     case $var in
19020     old_archive_cmds_RC | \
19021     old_archive_from_new_cmds_RC | \
19022     archive_cmds_RC | \
19023     archive_expsym_cmds_RC | \
19024     module_cmds_RC | \
19025     module_expsym_cmds_RC | \
19026     old_archive_from_expsyms_cmds_RC | \
19027     export_symbols_cmds_RC | \
19028     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19029     postinstall_cmds | postuninstall_cmds | \
19030     old_postinstall_cmds | old_postuninstall_cmds | \
19031     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19032       # Double-quote double-evaled strings.
19033       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19034       ;;
19035     *)
19036       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19037       ;;
19038     esac
19039   done
19040
19041   case $lt_echo in
19042   *'\$0 --fallback-echo"')
19043     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19044     ;;
19045   esac
19046
19047 cfgfile="$ofile"
19048
19049   cat <<__EOF__ >> "$cfgfile"
19050 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19051
19052 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19053
19054 # Shell to use when invoking shell scripts.
19055 SHELL=$lt_SHELL
19056
19057 # Whether or not to build shared libraries.
19058 build_libtool_libs=$enable_shared
19059
19060 # Whether or not to build static libraries.
19061 build_old_libs=$enable_static
19062
19063 # Whether or not to add -lc for building shared libraries.
19064 build_libtool_need_lc=$archive_cmds_need_lc_RC
19065
19066 # Whether or not to disallow shared libs when runtime libs are static
19067 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19068
19069 # Whether or not to optimize for fast installation.
19070 fast_install=$enable_fast_install
19071
19072 # The host system.
19073 host_alias=$host_alias
19074 host=$host
19075 host_os=$host_os
19076
19077 # The build system.
19078 build_alias=$build_alias
19079 build=$build
19080 build_os=$build_os
19081
19082 # An echo program that does not interpret backslashes.
19083 echo=$lt_echo
19084
19085 # The archiver.
19086 AR=$lt_AR
19087 AR_FLAGS=$lt_AR_FLAGS
19088
19089 # A C compiler.
19090 LTCC=$lt_LTCC
19091
19092 # LTCC compiler flags.
19093 LTCFLAGS=$lt_LTCFLAGS
19094
19095 # A language-specific compiler.
19096 CC=$lt_compiler_RC
19097
19098 # Is the compiler the GNU C compiler?
19099 with_gcc=$GCC_RC
19100
19101 # An ERE matcher.
19102 EGREP=$lt_EGREP
19103
19104 # The linker used to build libraries.
19105 LD=$lt_LD_RC
19106
19107 # Whether we need hard or soft links.
19108 LN_S=$lt_LN_S
19109
19110 # A BSD-compatible nm program.
19111 NM=$lt_NM
19112
19113 # A symbol stripping program
19114 STRIP=$lt_STRIP
19115
19116 # Used to examine libraries when file_magic_cmd begins "file"
19117 MAGIC_CMD=$MAGIC_CMD
19118
19119 # Used on cygwin: DLL creation program.
19120 DLLTOOL="$DLLTOOL"
19121
19122 # Used on cygwin: object dumper.
19123 OBJDUMP="$OBJDUMP"
19124
19125 # Used on cygwin: assembler.
19126 AS="$AS"
19127
19128 # The name of the directory that contains temporary libtool files.
19129 objdir=$objdir
19130
19131 # How to create reloadable object files.
19132 reload_flag=$lt_reload_flag
19133 reload_cmds=$lt_reload_cmds
19134
19135 # How to pass a linker flag through the compiler.
19136 wl=$lt_lt_prog_compiler_wl_RC
19137
19138 # Object file suffix (normally "o").
19139 objext="$ac_objext"
19140
19141 # Old archive suffix (normally "a").
19142 libext="$libext"
19143
19144 # Shared library suffix (normally ".so").
19145 shrext_cmds='$shrext_cmds'
19146
19147 # Executable file suffix (normally "").
19148 exeext="$exeext"
19149
19150 # Additional compiler flags for building library objects.
19151 pic_flag=$lt_lt_prog_compiler_pic_RC
19152 pic_mode=$pic_mode
19153
19154 # What is the maximum length of a command?
19155 max_cmd_len=$lt_cv_sys_max_cmd_len
19156
19157 # Does compiler simultaneously support -c and -o options?
19158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19159
19160 # Must we lock files when doing compilation?
19161 need_locks=$lt_need_locks
19162
19163 # Do we need the lib prefix for modules?
19164 need_lib_prefix=$need_lib_prefix
19165
19166 # Do we need a version for libraries?
19167 need_version=$need_version
19168
19169 # Whether dlopen is supported.
19170 dlopen_support=$enable_dlopen
19171
19172 # Whether dlopen of programs is supported.
19173 dlopen_self=$enable_dlopen_self
19174
19175 # Whether dlopen of statically linked programs is supported.
19176 dlopen_self_static=$enable_dlopen_self_static
19177
19178 # Compiler flag to prevent dynamic linking.
19179 link_static_flag=$lt_lt_prog_compiler_static_RC
19180
19181 # Compiler flag to turn off builtin functions.
19182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19183
19184 # Compiler flag to allow reflexive dlopens.
19185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19186
19187 # Compiler flag to generate shared objects directly from archives.
19188 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19189
19190 # Compiler flag to generate thread-safe objects.
19191 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19192
19193 # Library versioning type.
19194 version_type=$version_type
19195
19196 # Format of library name prefix.
19197 libname_spec=$lt_libname_spec
19198
19199 # List of archive names.  First name is the real one, the rest are links.
19200 # The last name is the one that the linker finds with -lNAME.
19201 library_names_spec=$lt_library_names_spec
19202
19203 # The coded name of the library, if different from the real name.
19204 soname_spec=$lt_soname_spec
19205
19206 # Commands used to build and install an old-style archive.
19207 RANLIB=$lt_RANLIB
19208 old_archive_cmds=$lt_old_archive_cmds_RC
19209 old_postinstall_cmds=$lt_old_postinstall_cmds
19210 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19211
19212 # Create an old-style archive from a shared archive.
19213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19214
19215 # Create a temporary old-style archive to link instead of a shared archive.
19216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19217
19218 # Commands used to build and install a shared archive.
19219 archive_cmds=$lt_archive_cmds_RC
19220 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19221 postinstall_cmds=$lt_postinstall_cmds
19222 postuninstall_cmds=$lt_postuninstall_cmds
19223
19224 # Commands used to build a loadable module (assumed same as above if empty)
19225 module_cmds=$lt_module_cmds_RC
19226 module_expsym_cmds=$lt_module_expsym_cmds_RC
19227
19228 # Commands to strip libraries.
19229 old_striplib=$lt_old_striplib
19230 striplib=$lt_striplib
19231
19232 # Dependencies to place before the objects being linked to create a
19233 # shared library.
19234 predep_objects=$lt_predep_objects_RC
19235
19236 # Dependencies to place after the objects being linked to create a
19237 # shared library.
19238 postdep_objects=$lt_postdep_objects_RC
19239
19240 # Dependencies to place before the objects being linked to create a
19241 # shared library.
19242 predeps=$lt_predeps_RC
19243
19244 # Dependencies to place after the objects being linked to create a
19245 # shared library.
19246 postdeps=$lt_postdeps_RC
19247
19248 # The library search path used internally by the compiler when linking
19249 # a shared library.
19250 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19251
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19254
19255 # Command to use when deplibs_check_method == file_magic.
19256 file_magic_cmd=$lt_file_magic_cmd
19257
19258 # Flag that allows shared libraries with undefined symbols to be built.
19259 allow_undefined_flag=$lt_allow_undefined_flag_RC
19260
19261 # Flag that forces no undefined symbols.
19262 no_undefined_flag=$lt_no_undefined_flag_RC
19263
19264 # Commands used to finish a libtool library installation in a directory.
19265 finish_cmds=$lt_finish_cmds
19266
19267 # Same as above, but a single script fragment to be evaled but not shown.
19268 finish_eval=$lt_finish_eval
19269
19270 # Take the output of nm and produce a listing of raw symbols and C names.
19271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19272
19273 # Transform the output of nm in a proper C declaration
19274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19275
19276 # Transform the output of nm in a C name address pair
19277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19278
19279 # This is the shared library runtime path variable.
19280 runpath_var=$runpath_var
19281
19282 # This is the shared library path variable.
19283 shlibpath_var=$shlibpath_var
19284
19285 # Is shlibpath searched before the hard-coded library search path?
19286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19287
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action_RC
19290
19291 # Whether we should hardcode library paths into libraries.
19292 hardcode_into_libs=$hardcode_into_libs
19293
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist.
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19297
19298 # If ld is used when linking, flag to hardcode \$libdir into
19299 # a binary during linking. This must work even if \$libdir does
19300 # not exist.
19301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19302
19303 # Whether we need a single -rpath flag with a separated argument.
19304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19305
19306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19307 # resulting binary.
19308 hardcode_direct=$hardcode_direct_RC
19309
19310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_RC
19313
19314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19315 # the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19317
19318 # Set to yes if building a shared library automatically hardcodes DIR into the library
19319 # and all subsequent libraries and executables linked against it.
19320 hardcode_automatic=$hardcode_automatic_RC
19321
19322 # Variables whose values should be saved in libtool wrapper scripts and
19323 # restored at relink time.
19324 variables_saved_for_relink="$variables_saved_for_relink"
19325
19326 # Whether libtool must link a program against all its dependency libraries.
19327 link_all_deplibs=$link_all_deplibs_RC
19328
19329 # Compile-time system search path for libraries
19330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19331
19332 # Run-time system search path for libraries
19333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19334
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path="$fix_srcfile_path_RC"
19337
19338 # Set to yes if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_RC
19340
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_RC
19343
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19346
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms_RC
19349
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms_RC
19352
19353 # ### END LIBTOOL TAG CONFIG: $tagname
19354
19355 __EOF__
19356
19357
19358 else
19359   # If there is no Makefile yet, we rely on a make rule to execute
19360   # `config.status --recheck' to rerun these tests and create the
19361   # libtool script then.
19362   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19363   if test -f "$ltmain_in"; then
19364     test -f Makefile && make "$ltmain"
19365   fi
19366 fi
19367
19368
19369 ac_ext=c
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374
19375 CC="$lt_save_CC"
19376
19377         ;;
19378
19379       *)
19380         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19381 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19382    { (exit 1); exit 1; }; }
19383         ;;
19384       esac
19385
19386       # Append the new tag name to the list of available tags.
19387       if test -n "$tagname" ; then
19388       available_tags="$available_tags $tagname"
19389     fi
19390     fi
19391   done
19392   IFS="$lt_save_ifs"
19393
19394   # Now substitute the updated list of available tags.
19395   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19396     mv "${ofile}T" "$ofile"
19397     chmod +x "$ofile"
19398   else
19399     rm -f "${ofile}T"
19400     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19401 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19402    { (exit 1); exit 1; }; }
19403   fi
19404 fi
19405
19406
19407
19408 # This can be used to rebuild libtool when needed
19409 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19410
19411 # Always use our own libtool.
19412 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19413
19414 # Prevent multiple expansion
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439 ###############
19440 ## System checks
19441 ##
19442
19443   { echo "$as_me:$LINENO: result: " >&5
19444 echo "${ECHO_T}" >&6; }
19445   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19446 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19447
19448 ac_ext=c
19449 ac_cpp='$CPP $CPPFLAGS'
19450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19453 if test -n "$ac_tool_prefix"; then
19454   for ac_prog in xlC gcc cc
19455   do
19456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_prog_CC+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   if test -n "$CC"; then
19464   ac_cv_prog_CC="$CC" # Let the user override the test.
19465 else
19466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467 for as_dir in $PATH
19468 do
19469   IFS=$as_save_IFS
19470   test -z "$as_dir" && as_dir=.
19471   for ac_exec_ext in '' $ac_executable_extensions; do
19472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19475     break 2
19476   fi
19477 done
19478 done
19479 IFS=$as_save_IFS
19480
19481 fi
19482 fi
19483 CC=$ac_cv_prog_CC
19484 if test -n "$CC"; then
19485   { echo "$as_me:$LINENO: result: $CC" >&5
19486 echo "${ECHO_T}$CC" >&6; }
19487 else
19488   { echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6; }
19490 fi
19491
19492
19493     test -n "$CC" && break
19494   done
19495 fi
19496 if test -z "$CC"; then
19497   ac_ct_CC=$CC
19498   for ac_prog in xlC gcc cc
19499 do
19500   # Extract the first word of "$ac_prog", so it can be a program name with args.
19501 set dummy $ac_prog; ac_word=$2
19502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   if test -n "$ac_ct_CC"; then
19508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19509 else
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19512 do
19513   IFS=$as_save_IFS
19514   test -z "$as_dir" && as_dir=.
19515   for ac_exec_ext in '' $ac_executable_extensions; do
19516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19517     ac_cv_prog_ac_ct_CC="$ac_prog"
19518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19519     break 2
19520   fi
19521 done
19522 done
19523 IFS=$as_save_IFS
19524
19525 fi
19526 fi
19527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19528 if test -n "$ac_ct_CC"; then
19529   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19530 echo "${ECHO_T}$ac_ct_CC" >&6; }
19531 else
19532   { echo "$as_me:$LINENO: result: no" >&5
19533 echo "${ECHO_T}no" >&6; }
19534 fi
19535
19536
19537   test -n "$ac_ct_CC" && break
19538 done
19539
19540   if test "x$ac_ct_CC" = x; then
19541     CC=""
19542   else
19543     case $cross_compiling:$ac_tool_warned in
19544 yes:)
19545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19546 whose name does not start with the host triplet.  If you think this
19547 configuration is useful to you, please write to autoconf@gnu.org." >&5
19548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19549 whose name does not start with the host triplet.  If you think this
19550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19551 ac_tool_warned=yes ;;
19552 esac
19553     CC=$ac_ct_CC
19554   fi
19555 fi
19556
19557
19558 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19559 See \`config.log' for more details." >&5
19560 echo "$as_me: error: no acceptable C compiler found in \$PATH
19561 See \`config.log' for more details." >&2;}
19562    { (exit 1); exit 1; }; }
19563
19564 # Provide some information about the compiler.
19565 echo "$as_me:$LINENO: checking for C compiler version" >&5
19566 ac_compiler=`set X $ac_compile; echo $2`
19567 { (ac_try="$ac_compiler --version >&5"
19568 case "(($ac_try" in
19569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570   *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573   (eval "$ac_compiler --version >&5") 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }
19577 { (ac_try="$ac_compiler -v >&5"
19578 case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583   (eval "$ac_compiler -v >&5") 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }
19587 { (ac_try="$ac_compiler -V >&5"
19588 case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_compiler -V >&5") 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }
19597
19598 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609
19610 int
19611 main ()
19612 {
19613 #ifndef __GNUC__
19614        choke me
19615 #endif
19616
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_compile") 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } && {
19635          test -z "$ac_c_werror_flag" ||
19636          test ! -s conftest.err
19637        } && test -s conftest.$ac_objext; then
19638   ac_compiler_gnu=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643         ac_compiler_gnu=no
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19648
19649 fi
19650 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19652 GCC=`test $ac_compiler_gnu = yes && echo yes`
19653 ac_test_CFLAGS=${CFLAGS+set}
19654 ac_save_CFLAGS=$CFLAGS
19655 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19656 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19657 if test "${ac_cv_prog_cc_g+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   ac_save_c_werror_flag=$ac_c_werror_flag
19661    ac_c_werror_flag=yes
19662    ac_cv_prog_cc_g=no
19663    CFLAGS="-g"
19664    cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670
19671 int
19672 main ()
19673 {
19674
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_compile") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } && {
19693          test -z "$ac_c_werror_flag" ||
19694          test ! -s conftest.err
19695        } && test -s conftest.$ac_objext; then
19696   ac_cv_prog_cc_g=yes
19697 else
19698   echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701         CFLAGS=""
19702       cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h.  */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h.  */
19708
19709 int
19710 main ()
19711 {
19712
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (ac_try="$ac_compile"
19719 case "(($ac_try" in
19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721   *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724   (eval "$ac_compile") 2>conftest.er1
19725   ac_status=$?
19726   grep -v '^ *+' conftest.er1 >conftest.err
19727   rm -f conftest.er1
19728   cat conftest.err >&5
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); } && {
19731          test -z "$ac_c_werror_flag" ||
19732          test ! -s conftest.err
19733        } && test -s conftest.$ac_objext; then
19734   :
19735 else
19736   echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739         ac_c_werror_flag=$ac_save_c_werror_flag
19740          CFLAGS="-g"
19741          cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747
19748 int
19749 main ()
19750 {
19751
19752   ;
19753   return 0;
19754 }
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_compile") 2>conftest.er1
19764   ac_status=$?
19765   grep -v '^ *+' conftest.er1 >conftest.err
19766   rm -f conftest.er1
19767   cat conftest.err >&5
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } && {
19770          test -z "$ac_c_werror_flag" ||
19771          test ! -s conftest.err
19772        } && test -s conftest.$ac_objext; then
19773   ac_cv_prog_cc_g=yes
19774 else
19775   echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778
19779 fi
19780
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 fi
19783
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788    ac_c_werror_flag=$ac_save_c_werror_flag
19789 fi
19790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19791 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19792 if test "$ac_test_CFLAGS" = set; then
19793   CFLAGS=$ac_save_CFLAGS
19794 elif test $ac_cv_prog_cc_g = yes; then
19795   if test "$GCC" = yes; then
19796     CFLAGS="-g -O2"
19797   else
19798     CFLAGS="-g"
19799   fi
19800 else
19801   if test "$GCC" = yes; then
19802     CFLAGS="-O2"
19803   else
19804     CFLAGS=
19805   fi
19806 fi
19807 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19808 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19809 if test "${ac_cv_prog_cc_c89+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   ac_cv_prog_cc_c89=no
19813 ac_save_CC=$CC
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 #include <stdarg.h>
19821 #include <stdio.h>
19822 #include <sys/types.h>
19823 #include <sys/stat.h>
19824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19825 struct buf { int x; };
19826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19827 static char *e (p, i)
19828      char **p;
19829      int i;
19830 {
19831   return p[i];
19832 }
19833 static char *f (char * (*g) (char **, int), char **p, ...)
19834 {
19835   char *s;
19836   va_list v;
19837   va_start (v,p);
19838   s = g (p, va_arg (v,int));
19839   va_end (v);
19840   return s;
19841 }
19842
19843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19844    function prototypes and stuff, but not '\xHH' hex character constants.
19845    These don't provoke an error unfortunately, instead are silently treated
19846    as 'x'.  The following induces an error, until -std is added to get
19847    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19848    array size at least.  It's necessary to write '\x00'==0 to get something
19849    that's true only with -std.  */
19850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19851
19852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19853    inside strings and character constants.  */
19854 #define FOO(x) 'x'
19855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19856
19857 int test (int i, double x);
19858 struct s1 {int (*f) (int a);};
19859 struct s2 {int (*f) (double a);};
19860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19861 int argc;
19862 char **argv;
19863 int
19864 main ()
19865 {
19866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19867   ;
19868   return 0;
19869 }
19870 _ACEOF
19871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19872         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19873 do
19874   CC="$ac_save_CC $ac_arg"
19875   rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_compile") 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } && {
19889          test -z "$ac_c_werror_flag" ||
19890          test ! -s conftest.err
19891        } && test -s conftest.$ac_objext; then
19892   ac_cv_prog_cc_c89=$ac_arg
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897
19898 fi
19899
19900 rm -f core conftest.err conftest.$ac_objext
19901   test "x$ac_cv_prog_cc_c89" != "xno" && break
19902 done
19903 rm -f conftest.$ac_ext
19904 CC=$ac_save_CC
19905
19906 fi
19907 # AC_CACHE_VAL
19908 case "x$ac_cv_prog_cc_c89" in
19909   x)
19910     { echo "$as_me:$LINENO: result: none needed" >&5
19911 echo "${ECHO_T}none needed" >&6; } ;;
19912   xno)
19913     { echo "$as_me:$LINENO: result: unsupported" >&5
19914 echo "${ECHO_T}unsupported" >&6; } ;;
19915   *)
19916     CC="$CC $ac_cv_prog_cc_c89"
19917     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19918 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19919 esac
19920
19921
19922 ac_ext=c
19923 ac_cpp='$CPP $CPPFLAGS'
19924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927
19928 depcc="$CC"   am_compiler_list=
19929
19930 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19931 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19932 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19936   # We make a subdir and do the tests there.  Otherwise we can end up
19937   # making bogus files that we don't know about and never remove.  For
19938   # instance it was reported that on HP-UX the gcc test will end up
19939   # making a dummy file named `D' -- because `-MD' means `put the output
19940   # in D'.
19941   mkdir conftest.dir
19942   # Copy depcomp to subdir because otherwise we won't find it if we're
19943   # using a relative directory.
19944   cp "$am_depcomp" conftest.dir
19945   cd conftest.dir
19946   # We will build objects and dependencies in a subdirectory because
19947   # it helps to detect inapplicable dependency modes.  For instance
19948   # both Tru64's cc and ICC support -MD to output dependencies as a
19949   # side effect of compilation, but ICC will put the dependencies in
19950   # the current directory while Tru64 will put them in the object
19951   # directory.
19952   mkdir sub
19953
19954   am_cv_CC_dependencies_compiler_type=none
19955   if test "$am_compiler_list" = ""; then
19956      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19957   fi
19958   for depmode in $am_compiler_list; do
19959     # Setup a source with many dependencies, because some compilers
19960     # like to wrap large dependency lists on column 80 (with \), and
19961     # we should not choose a depcomp mode which is confused by this.
19962     #
19963     # We need to recreate these files for each test, as the compiler may
19964     # overwrite some of them when testing with obscure command lines.
19965     # This happens at least with the AIX C compiler.
19966     : > sub/conftest.c
19967     for i in 1 2 3 4 5 6; do
19968       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19969       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19970       # Solaris 8's {/usr,}/bin/sh.
19971       touch sub/conftst$i.h
19972     done
19973     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19974
19975     case $depmode in
19976     nosideeffect)
19977       # after this tag, mechanisms are not by side-effect, so they'll
19978       # only be used when explicitly requested
19979       if test "x$enable_dependency_tracking" = xyes; then
19980         continue
19981       else
19982         break
19983       fi
19984       ;;
19985     none) break ;;
19986     esac
19987     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19988     # mode.  It turns out that the SunPro C++ compiler does not properly
19989     # handle `-M -o', and we need to detect this.
19990     if depmode=$depmode \
19991        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19992        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19993        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19994          >/dev/null 2>conftest.err &&
19995        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19996        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19997        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19998        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19999       # icc doesn't choke on unknown options, it will just issue warnings
20000       # or remarks (even with -Werror).  So we grep stderr for any message
20001       # that says an option was ignored or not supported.
20002       # When given -MP, icc 7.0 and 7.1 complain thusly:
20003       #   icc: Command line warning: ignoring option '-M'; no argument required
20004       # The diagnosis changed in icc 8.0:
20005       #   icc: Command line remark: option '-MP' not supported
20006       if (grep 'ignoring option' conftest.err ||
20007           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20008         am_cv_CC_dependencies_compiler_type=$depmode
20009         break
20010       fi
20011     fi
20012   done
20013
20014   cd ..
20015   rm -rf conftest.dir
20016 else
20017   am_cv_CC_dependencies_compiler_type=none
20018 fi
20019
20020 fi
20021 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20022 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20024
20025  if
20026   test "x$enable_dependency_tracking" != xno \
20027   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20028   am__fastdepCC_TRUE=
20029   am__fastdepCC_FALSE='#'
20030 else
20031   am__fastdepCC_TRUE='#'
20032   am__fastdepCC_FALSE=
20033 fi
20034
20035
20036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20038 # Just in case
20039 sleep 1
20040 echo timestamp > conftest.file
20041 # Do `set' in a subshell so we don't clobber the current shell's
20042 # arguments.  Must try -L first in case configure is actually a
20043 # symlink; some systems play weird games with the mod time of symlinks
20044 # (eg FreeBSD returns the mod time of the symlink's containing
20045 # directory).
20046 if (
20047    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20048    if test "$*" = "X"; then
20049       # -L didn't work.
20050       set X `ls -t $srcdir/configure conftest.file`
20051    fi
20052    rm -f conftest.file
20053    if test "$*" != "X $srcdir/configure conftest.file" \
20054       && test "$*" != "X conftest.file $srcdir/configure"; then
20055
20056       # If neither matched, then we have a broken ls.  This can happen
20057       # if, for instance, CONFIG_SHELL is bash and it inherits a
20058       # broken ls alias from the environment.  This has actually
20059       # happened.  Such a system could not be considered "sane".
20060       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20061 alias in your environment" >&5
20062 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20063 alias in your environment" >&2;}
20064    { (exit 1); exit 1; }; }
20065    fi
20066
20067    test "$2" = conftest.file
20068    )
20069 then
20070    # Ok.
20071    :
20072 else
20073    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20074 Check your system clock" >&5
20075 echo "$as_me: error: newly created file is older than distributed files!
20076 Check your system clock" >&2;}
20077    { (exit 1); exit 1; }; }
20078 fi
20079 { echo "$as_me:$LINENO: result: yes" >&5
20080 echo "${ECHO_T}yes" >&6; }
20081 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20083 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20084 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   cat >conftest.make <<\_ACEOF
20088 SHELL = /bin/sh
20089 all:
20090         @echo '@@@%%%=$(MAKE)=@@@%%%'
20091 _ACEOF
20092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20094   *@@@%%%=?*=@@@%%%*)
20095     eval ac_cv_prog_make_${ac_make}_set=yes;;
20096   *)
20097     eval ac_cv_prog_make_${ac_make}_set=no;;
20098 esac
20099 rm -f conftest.make
20100 fi
20101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20102   { echo "$as_me:$LINENO: result: yes" >&5
20103 echo "${ECHO_T}yes" >&6; }
20104   SET_MAKE=
20105 else
20106   { echo "$as_me:$LINENO: result: no" >&5
20107 echo "${ECHO_T}no" >&6; }
20108   SET_MAKE="MAKE=${MAKE-make}"
20109 fi
20110
20111
20112 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20113 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20114 if test "$cross_compiling" = yes; then
20115   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20116 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 #include <stdio.h>
20125 int
20126 main ()
20127 {
20128 printf("%s",NULL);
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137   *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140   (eval "$ac_link") 2>&5
20141   ac_status=$?
20142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20144   { (case "(($ac_try" in
20145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146   *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149   (eval "$ac_try") 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153
20154 cat >>confdefs.h <<\_ACEOF
20155 #define PRINTF_NULL_WORKING 1
20156 _ACEOF
20157
20158               { echo "$as_me:$LINENO: result: yes" >&5
20159 echo "${ECHO_T}yes" >&6; }
20160 else
20161   echo "$as_me: program exited with status $ac_status" >&5
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 ( exit $ac_status )
20166 { echo "$as_me:$LINENO: result: no" >&5
20167 echo "${ECHO_T}no" >&6; }
20168 fi
20169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20170 fi
20171
20172
20173
20174
20175     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20176 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20177     if test "${ac_cv_va_copy+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180
20181     ac_cv_va_copy=""
20182
20183
20184
20185     if test ".$ac_cv_va_copy" = .; then
20186         if test "$cross_compiling" = yes; then
20187   ac_cv_va_copy="C99"
20188 else
20189   cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195
20196 #include <stdlib.h>
20197 #include <stdarg.h>
20198 #include <string.h>
20199 #define DO_VA_COPY(d, s) va_copy((d), (s))
20200 void test(char *str, ...)
20201 {
20202     va_list ap, ap2;
20203     int i;
20204     va_start(ap, str);
20205     DO_VA_COPY(ap2, ap);
20206     for (i = 1; i <= 9; i++) {
20207         int k = (int)va_arg(ap, int);
20208         if (k != i)
20209             abort();
20210     }
20211     DO_VA_COPY(ap, ap2);
20212     for (i = 1; i <= 9; i++) {
20213         int k = (int)va_arg(ap, int);
20214         if (k != i)
20215             abort();
20216     }
20217     va_end(ap);
20218 }
20219 int main(int argc, char *argv[])
20220 {
20221     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20222     exit(0);
20223 }
20224
20225 _ACEOF
20226 rm -f conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_link") 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20237   { (case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_try") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_va_copy="C99"
20247 else
20248   echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 fi
20253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20254 fi
20255
20256
20257             fi
20258
20259
20260
20261
20262     if test ".$ac_cv_va_copy" = .; then
20263         if test "$cross_compiling" = yes; then
20264   ac_cv_va_copy="GCM"
20265 else
20266   cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h.  */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h.  */
20272
20273 #include <stdlib.h>
20274 #include <stdarg.h>
20275 #include <string.h>
20276 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20277 void test(char *str, ...)
20278 {
20279     va_list ap, ap2;
20280     int i;
20281     va_start(ap, str);
20282     DO_VA_COPY(ap2, ap);
20283     for (i = 1; i <= 9; i++) {
20284         int k = (int)va_arg(ap, int);
20285         if (k != i)
20286             abort();
20287     }
20288     DO_VA_COPY(ap, ap2);
20289     for (i = 1; i <= 9; i++) {
20290         int k = (int)va_arg(ap, int);
20291         if (k != i)
20292             abort();
20293     }
20294     va_end(ap);
20295 }
20296 int main(int argc, char *argv[])
20297 {
20298     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20299     exit(0);
20300 }
20301
20302 _ACEOF
20303 rm -f conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307   *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310   (eval "$ac_link") 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20314   { (case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_try") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; }; then
20323   ac_cv_va_copy="GCM"
20324 else
20325   echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 fi
20330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20331 fi
20332
20333
20334             fi
20335
20336
20337
20338
20339     if test ".$ac_cv_va_copy" = .; then
20340         if test "$cross_compiling" = yes; then
20341   ac_cv_va_copy="GCH"
20342 else
20343   cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349
20350 #include <stdlib.h>
20351 #include <stdarg.h>
20352 #include <string.h>
20353 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20354 void test(char *str, ...)
20355 {
20356     va_list ap, ap2;
20357     int i;
20358     va_start(ap, str);
20359     DO_VA_COPY(ap2, ap);
20360     for (i = 1; i <= 9; i++) {
20361         int k = (int)va_arg(ap, int);
20362         if (k != i)
20363             abort();
20364     }
20365     DO_VA_COPY(ap, ap2);
20366     for (i = 1; i <= 9; i++) {
20367         int k = (int)va_arg(ap, int);
20368         if (k != i)
20369             abort();
20370     }
20371     va_end(ap);
20372 }
20373 int main(int argc, char *argv[])
20374 {
20375     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20376     exit(0);
20377 }
20378
20379 _ACEOF
20380 rm -f conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>&5
20388   ac_status=$?
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20391   { (case "(($ac_try" in
20392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393   *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396   (eval "$ac_try") 2>&5
20397   ac_status=$?
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); }; }; then
20400   ac_cv_va_copy="GCH"
20401 else
20402   echo "$as_me: program exited with status $ac_status" >&5
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 fi
20407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20408 fi
20409
20410
20411             fi
20412
20413
20414
20415
20416     if test ".$ac_cv_va_copy" = .; then
20417         if test "$cross_compiling" = yes; then
20418   ac_cv_va_copy="GCB"
20419 else
20420   cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h.  */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h.  */
20426
20427 #include <stdlib.h>
20428 #include <stdarg.h>
20429 #include <string.h>
20430 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20431 void test(char *str, ...)
20432 {
20433     va_list ap, ap2;
20434     int i;
20435     va_start(ap, str);
20436     DO_VA_COPY(ap2, ap);
20437     for (i = 1; i <= 9; i++) {
20438         int k = (int)va_arg(ap, int);
20439         if (k != i)
20440             abort();
20441     }
20442     DO_VA_COPY(ap, ap2);
20443     for (i = 1; i <= 9; i++) {
20444         int k = (int)va_arg(ap, int);
20445         if (k != i)
20446             abort();
20447     }
20448     va_end(ap);
20449 }
20450 int main(int argc, char *argv[])
20451 {
20452     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20453     exit(0);
20454 }
20455
20456 _ACEOF
20457 rm -f conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_link") 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468   { (case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473   (eval "$ac_try") 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_va_copy="GCB"
20478 else
20479   echo "$as_me: program exited with status $ac_status" >&5
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 fi
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485 fi
20486
20487
20488             fi
20489
20490
20491
20492
20493     if test ".$ac_cv_va_copy" = .; then
20494         if test "$cross_compiling" = yes; then
20495   ac_cv_va_copy="ASS"
20496 else
20497   cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503
20504 #include <stdlib.h>
20505 #include <stdarg.h>
20506 #include <string.h>
20507 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20508 void test(char *str, ...)
20509 {
20510     va_list ap, ap2;
20511     int i;
20512     va_start(ap, str);
20513     DO_VA_COPY(ap2, ap);
20514     for (i = 1; i <= 9; i++) {
20515         int k = (int)va_arg(ap, int);
20516         if (k != i)
20517             abort();
20518     }
20519     DO_VA_COPY(ap, ap2);
20520     for (i = 1; i <= 9; i++) {
20521         int k = (int)va_arg(ap, int);
20522         if (k != i)
20523             abort();
20524     }
20525     va_end(ap);
20526 }
20527 int main(int argc, char *argv[])
20528 {
20529     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20530     exit(0);
20531 }
20532
20533 _ACEOF
20534 rm -f conftest$ac_exeext
20535 if { (ac_try="$ac_link"
20536 case "(($ac_try" in
20537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538   *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541   (eval "$ac_link") 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20545   { (case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_try") 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_cv_va_copy="ASS"
20555 else
20556   echo "$as_me: program exited with status $ac_status" >&5
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 fi
20561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20562 fi
20563
20564
20565             fi
20566
20567
20568
20569
20570     if test ".$ac_cv_va_copy" = .; then
20571         if test "$cross_compiling" = yes; then
20572   ac_cv_va_copy="ASP"
20573 else
20574   cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h.  */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h.  */
20580
20581 #include <stdlib.h>
20582 #include <stdarg.h>
20583 #include <string.h>
20584 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20585 void test(char *str, ...)
20586 {
20587     va_list ap, ap2;
20588     int i;
20589     va_start(ap, str);
20590     DO_VA_COPY(ap2, ap);
20591     for (i = 1; i <= 9; i++) {
20592         int k = (int)va_arg(ap, int);
20593         if (k != i)
20594             abort();
20595     }
20596     DO_VA_COPY(ap, ap2);
20597     for (i = 1; i <= 9; i++) {
20598         int k = (int)va_arg(ap, int);
20599         if (k != i)
20600             abort();
20601     }
20602     va_end(ap);
20603 }
20604 int main(int argc, char *argv[])
20605 {
20606     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20607     exit(0);
20608 }
20609
20610 _ACEOF
20611 rm -f conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615   *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618   (eval "$ac_link") 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20622   { (case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_try") 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_va_copy="ASP"
20632 else
20633   echo "$as_me: program exited with status $ac_status" >&5
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 fi
20638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20639 fi
20640
20641
20642             fi
20643
20644
20645
20646
20647     if test ".$ac_cv_va_copy" = .; then
20648         if test "$cross_compiling" = yes; then
20649   ac_cv_va_copy="CPS"
20650 else
20651   cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657
20658 #include <stdlib.h>
20659 #include <stdarg.h>
20660 #include <string.h>
20661 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20662 void test(char *str, ...)
20663 {
20664     va_list ap, ap2;
20665     int i;
20666     va_start(ap, str);
20667     DO_VA_COPY(ap2, ap);
20668     for (i = 1; i <= 9; i++) {
20669         int k = (int)va_arg(ap, int);
20670         if (k != i)
20671             abort();
20672     }
20673     DO_VA_COPY(ap, ap2);
20674     for (i = 1; i <= 9; i++) {
20675         int k = (int)va_arg(ap, int);
20676         if (k != i)
20677             abort();
20678     }
20679     va_end(ap);
20680 }
20681 int main(int argc, char *argv[])
20682 {
20683     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20684     exit(0);
20685 }
20686
20687 _ACEOF
20688 rm -f conftest$ac_exeext
20689 if { (ac_try="$ac_link"
20690 case "(($ac_try" in
20691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692   *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695   (eval "$ac_link") 2>&5
20696   ac_status=$?
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699   { (case "(($ac_try" in
20700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701   *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704   (eval "$ac_try") 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; }; then
20708   ac_cv_va_copy="CPS"
20709 else
20710   echo "$as_me: program exited with status $ac_status" >&5
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 fi
20715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20716 fi
20717
20718
20719             fi
20720
20721
20722
20723
20724     if test ".$ac_cv_va_copy" = .; then
20725         if test "$cross_compiling" = yes; then
20726   ac_cv_va_copy="CPP"
20727 else
20728   cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734
20735 #include <stdlib.h>
20736 #include <stdarg.h>
20737 #include <string.h>
20738 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20739 void test(char *str, ...)
20740 {
20741     va_list ap, ap2;
20742     int i;
20743     va_start(ap, str);
20744     DO_VA_COPY(ap2, ap);
20745     for (i = 1; i <= 9; i++) {
20746         int k = (int)va_arg(ap, int);
20747         if (k != i)
20748             abort();
20749     }
20750     DO_VA_COPY(ap, ap2);
20751     for (i = 1; i <= 9; i++) {
20752         int k = (int)va_arg(ap, int);
20753         if (k != i)
20754             abort();
20755     }
20756     va_end(ap);
20757 }
20758 int main(int argc, char *argv[])
20759 {
20760     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20761     exit(0);
20762 }
20763
20764 _ACEOF
20765 rm -f conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_link") 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20776   { (case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_try") 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; }; then
20785   ac_cv_va_copy="CPP"
20786 else
20787   echo "$as_me: program exited with status $ac_status" >&5
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 fi
20792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20793 fi
20794
20795
20796             fi
20797
20798     if test ".$ac_cv_va_copy" = .; then
20799         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20800 echo "$as_me: error: no working implementation found" >&2;}
20801    { (exit 1); exit 1; }; }
20802     fi
20803
20804 fi
20805
20806     if test ".$ac_cv_va_copy" = ".C99"; then
20807
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_VA_COPY 1
20810 _ACEOF
20811
20812   fi
20813
20814 cat >>confdefs.h <<_ACEOF
20815 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20816 _ACEOF
20817
20818
20819
20820     if test ".$ac_cv_va_copy" = ".C99"; then
20821       { echo "$as_me:$LINENO: result: yes" >&5
20822 echo "${ECHO_T}yes" >&6; }
20823   else
20824       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20825 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20826   fi
20827
20828
20829 # Checks for header files.
20830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20832 if test "${ac_cv_header_stdc+set}" = set; then
20833   echo $ECHO_N "(cached) $ECHO_C" >&6
20834 else
20835   cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h.  */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h.  */
20841 #include <stdlib.h>
20842 #include <stdarg.h>
20843 #include <string.h>
20844 #include <float.h>
20845
20846 int
20847 main ()
20848 {
20849
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (ac_try="$ac_compile"
20856 case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_compile") 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && {
20868          test -z "$ac_c_werror_flag" ||
20869          test ! -s conftest.err
20870        } && test -s conftest.$ac_objext; then
20871   ac_cv_header_stdc=yes
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876         ac_cv_header_stdc=no
20877 fi
20878
20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880
20881 if test $ac_cv_header_stdc = yes; then
20882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20883   cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #include <string.h>
20890
20891 _ACEOF
20892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20893   $EGREP "memchr" >/dev/null 2>&1; then
20894   :
20895 else
20896   ac_cv_header_stdc=no
20897 fi
20898 rm -f conftest*
20899
20900 fi
20901
20902 if test $ac_cv_header_stdc = yes; then
20903   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20904   cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910 #include <stdlib.h>
20911
20912 _ACEOF
20913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20914   $EGREP "free" >/dev/null 2>&1; then
20915   :
20916 else
20917   ac_cv_header_stdc=no
20918 fi
20919 rm -f conftest*
20920
20921 fi
20922
20923 if test $ac_cv_header_stdc = yes; then
20924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20925   if test "$cross_compiling" = yes; then
20926   :
20927 else
20928   cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 #include <ctype.h>
20935 #include <stdlib.h>
20936 #if ((' ' & 0x0FF) == 0x020)
20937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20939 #else
20940 # define ISLOWER(c) \
20941                    (('a' <= (c) && (c) <= 'i') \
20942                      || ('j' <= (c) && (c) <= 'r') \
20943                      || ('s' <= (c) && (c) <= 'z'))
20944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20945 #endif
20946
20947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20948 int
20949 main ()
20950 {
20951   int i;
20952   for (i = 0; i < 256; i++)
20953     if (XOR (islower (i), ISLOWER (i))
20954         || toupper (i) != TOUPPER (i))
20955       return 2;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest$ac_exeext
20960 if { (ac_try="$ac_link"
20961 case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966   (eval "$ac_link") 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20970   { (case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_try") 2>&5
20976   ac_status=$?
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); }; }; then
20979   :
20980 else
20981   echo "$as_me: program exited with status $ac_status" >&5
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ( exit $ac_status )
20986 ac_cv_header_stdc=no
20987 fi
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20989 fi
20990
20991
20992 fi
20993 fi
20994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20996 if test $ac_cv_header_stdc = yes; then
20997
20998 cat >>confdefs.h <<\_ACEOF
20999 #define STDC_HEADERS 1
21000 _ACEOF
21001
21002 fi
21003
21004 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21005 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21006 if test "${ac_cv_header_time+set}" = set; then
21007   echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009   cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h.  */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h.  */
21015 #include <sys/types.h>
21016 #include <sys/time.h>
21017 #include <time.h>
21018
21019 int
21020 main ()
21021 {
21022 if ((struct tm *) 0)
21023 return 0;
21024   ;
21025   return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && {
21042          test -z "$ac_c_werror_flag" ||
21043          test ! -s conftest.err
21044        } && test -s conftest.$ac_objext; then
21045   ac_cv_header_time=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         ac_cv_header_time=no
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 fi
21055 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21056 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21057 if test $ac_cv_header_time = yes; then
21058
21059 cat >>confdefs.h <<\_ACEOF
21060 #define TIME_WITH_SYS_TIME 1
21061 _ACEOF
21062
21063 fi
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075 for ac_header in sys/socket.h \
21076                   sys/stat.h \
21077                   windows.h winsock.h winsock2.h \
21078                   sys/time.h \
21079                   errno.h unistd.h \
21080                   execinfo.h\
21081                   signal.h
21082 do
21083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 fi
21090 ac_res=`eval echo '${'$as_ac_Header'}'`
21091                { echo "$as_me:$LINENO: result: $ac_res" >&5
21092 echo "${ECHO_T}$ac_res" >&6; }
21093 else
21094   # Is the header compilable?
21095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h.  */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h.  */
21103 $ac_includes_default
21104 #include <$ac_header>
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113   (eval "$ac_compile") 2>conftest.er1
21114   ac_status=$?
21115   grep -v '^ *+' conftest.er1 >conftest.err
21116   rm -f conftest.er1
21117   cat conftest.err >&5
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); } && {
21120          test -z "$ac_c_werror_flag" ||
21121          test ! -s conftest.err
21122        } && test -s conftest.$ac_objext; then
21123   ac_header_compiler=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128         ac_header_compiler=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21133 echo "${ECHO_T}$ac_header_compiler" >&6; }
21134
21135 # Is the header present?
21136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144 #include <$ac_header>
21145 _ACEOF
21146 if { (ac_try="$ac_cpp conftest.$ac_ext"
21147 case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } >/dev/null && {
21159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21160          test ! -s conftest.err
21161        }; then
21162   ac_header_preproc=yes
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167   ac_header_preproc=no
21168 fi
21169
21170 rm -f conftest.err conftest.$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6; }
21173
21174 # So?  What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21176   yes:no: )
21177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21181     ac_header_preproc=yes
21182     ;;
21183   no:yes:* )
21184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21196     ( cat <<\_ASBOX
21197 ## -------------------------------------------------- ##
21198 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21199 ## -------------------------------------------------- ##
21200 _ASBOX
21201      ) | sed "s/^/$as_me: WARNING:     /" >&2
21202     ;;
21203 esac
21204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209   eval "$as_ac_Header=\$ac_header_preproc"
21210 fi
21211 ac_res=`eval echo '${'$as_ac_Header'}'`
21212                { echo "$as_me:$LINENO: result: $ac_res" >&5
21213 echo "${ECHO_T}$ac_res" >&6; }
21214
21215 fi
21216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21217   cat >>confdefs.h <<_ACEOF
21218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21219 _ACEOF
21220
21221 fi
21222
21223 done
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233 for ac_func in gettimeofday usleep \
21234                 getdtablesize \
21235                 sysconf\
21236                 readv\
21237                 popen\
21238                 signal\
21239                 getline
21240 do
21241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21255 #define $ac_func innocuous_$ac_func
21256
21257 /* System header to define __stub macros and hopefully few prototypes,
21258     which can conflict with char $ac_func (); below.
21259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21260     <limits.h> exists even on freestanding compilers.  */
21261
21262 #ifdef __STDC__
21263 # include <limits.h>
21264 #else
21265 # include <assert.h>
21266 #endif
21267
21268 #undef $ac_func
21269
21270 /* Override any GCC internal prototype to avoid an error.
21271    Use char because int might match the return type of a GCC
21272    builtin and then its argument prototype would still apply.  */
21273 #ifdef __cplusplus
21274 extern "C"
21275 #endif
21276 char $ac_func ();
21277 /* The GNU C library defines this for functions which it implements
21278     to always fail with ENOSYS.  Some functions are actually named
21279     something starting with __ and the normal name is an alias.  */
21280 #if defined __stub_$ac_func || defined __stub___$ac_func
21281 choke me
21282 #endif
21283
21284 int
21285 main ()
21286 {
21287 return $ac_func ();
21288   ;
21289   return 0;
21290 }
21291 _ACEOF
21292 rm -f conftest.$ac_objext conftest$ac_exeext
21293 if { (ac_try="$ac_link"
21294 case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299   (eval "$ac_link") 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } && {
21306          test -z "$ac_c_werror_flag" ||
21307          test ! -s conftest.err
21308        } && test -s conftest$ac_exeext &&
21309        $as_test_x conftest$ac_exeext; then
21310   eval "$as_ac_var=yes"
21311 else
21312   echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21314
21315         eval "$as_ac_var=no"
21316 fi
21317
21318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21319       conftest$ac_exeext conftest.$ac_ext
21320 fi
21321 ac_res=`eval echo '${'$as_ac_var'}'`
21322                { echo "$as_me:$LINENO: result: $ac_res" >&5
21323 echo "${ECHO_T}$ac_res" >&6; }
21324 if test `eval echo '${'$as_ac_var'}'` = yes; then
21325   cat >>confdefs.h <<_ACEOF
21326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21327 _ACEOF
21328
21329 fi
21330 done
21331
21332
21333 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21334
21335
21336 for ac_func in snprintf vsnprintf
21337 do
21338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21342   echo $ECHO_N "(cached) $ECHO_C" >&6
21343 else
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21352 #define $ac_func innocuous_$ac_func
21353
21354 /* System header to define __stub macros and hopefully few prototypes,
21355     which can conflict with char $ac_func (); below.
21356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21357     <limits.h> exists even on freestanding compilers.  */
21358
21359 #ifdef __STDC__
21360 # include <limits.h>
21361 #else
21362 # include <assert.h>
21363 #endif
21364
21365 #undef $ac_func
21366
21367 /* Override any GCC internal prototype to avoid an error.
21368    Use char because int might match the return type of a GCC
21369    builtin and then its argument prototype would still apply.  */
21370 #ifdef __cplusplus
21371 extern "C"
21372 #endif
21373 char $ac_func ();
21374 /* The GNU C library defines this for functions which it implements
21375     to always fail with ENOSYS.  Some functions are actually named
21376     something starting with __ and the normal name is an alias.  */
21377 #if defined __stub_$ac_func || defined __stub___$ac_func
21378 choke me
21379 #endif
21380
21381 int
21382 main ()
21383 {
21384 return $ac_func ();
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (ac_try="$ac_link"
21391 case "(($ac_try" in
21392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393   *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396   (eval "$ac_link") 2>conftest.er1
21397   ac_status=$?
21398   grep -v '^ *+' conftest.er1 >conftest.err
21399   rm -f conftest.er1
21400   cat conftest.err >&5
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } && {
21403          test -z "$ac_c_werror_flag" ||
21404          test ! -s conftest.err
21405        } && test -s conftest$ac_exeext &&
21406        $as_test_x conftest$ac_exeext; then
21407   eval "$as_ac_var=yes"
21408 else
21409   echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21411
21412         eval "$as_ac_var=no"
21413 fi
21414
21415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21416       conftest$ac_exeext conftest.$ac_ext
21417 fi
21418 ac_res=`eval echo '${'$as_ac_var'}'`
21419                { echo "$as_me:$LINENO: result: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21421 if test `eval echo '${'$as_ac_var'}'` = yes; then
21422   cat >>confdefs.h <<_ACEOF
21423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21424 _ACEOF
21425
21426 fi
21427 done
21428
21429 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21430 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21431 if test "${ac_cv_have_working_snprintf+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   if test "$cross_compiling" = yes; then
21435   ac_cv_have_working_snprintf=cross
21436 else
21437   cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h.  */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h.  */
21443 #include <stdio.h>
21444
21445 int main(void)
21446 {
21447     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21448     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21449     int i;
21450     i = snprintf (bufs, 2, "%s", "111");
21451     if (strcmp (bufs, "1")) exit (1);
21452     if (i != 3) exit (1);
21453     i = snprintf (bufd, 2, "%d", 111);
21454     if (strcmp (bufd, "1")) exit (1);
21455     if (i != 3) exit (1);
21456     exit(0);
21457 }
21458 _ACEOF
21459 rm -f conftest$ac_exeext
21460 if { (ac_try="$ac_link"
21461 case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_link") 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21470   { (case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_try") 2>&5
21476   ac_status=$?
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); }; }; then
21479   ac_cv_have_working_snprintf=yes
21480 else
21481   echo "$as_me: program exited with status $ac_status" >&5
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ( exit $ac_status )
21486 ac_cv_have_working_snprintf=no
21487 fi
21488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21489 fi
21490
21491
21492 fi
21493
21494 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21495 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21496 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21497 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21498 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501   if test "$cross_compiling" = yes; then
21502   ac_cv_have_working_vsnprintf=cross
21503 else
21504   cat >conftest.$ac_ext <<_ACEOF
21505 /* confdefs.h.  */
21506 _ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h.  */
21510 #include <stdio.h>
21511 #include <stdarg.h>
21512
21513 int my_vsnprintf (char *buf, const char *tmpl, ...)
21514 {
21515     int i;
21516     va_list args;
21517     va_start (args, tmpl);
21518     i = vsnprintf (buf, 2, tmpl, args);
21519     va_end (args);
21520     return i;
21521 }
21522
21523 int main(void)
21524 {
21525     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21526     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21527     int i;
21528     i = my_vsnprintf (bufs, "%s", "111");
21529     if (strcmp (bufs, "1")) exit (1);
21530     if (i != 3) exit (1);
21531     i = my_vsnprintf (bufd, "%d", 111);
21532     if (strcmp (bufd, "1")) exit (1);
21533     if (i != 3) exit (1);
21534     exit(0);
21535 }
21536 _ACEOF
21537 rm -f conftest$ac_exeext
21538 if { (ac_try="$ac_link"
21539 case "(($ac_try" in
21540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541   *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544   (eval "$ac_link") 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21548   { (case "(($ac_try" in
21549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550   *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553   (eval "$ac_try") 2>&5
21554   ac_status=$?
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); }; }; then
21557   ac_cv_have_working_vsnprintf=yes
21558 else
21559   echo "$as_me: program exited with status $ac_status" >&5
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563 ( exit $ac_status )
21564 ac_cv_have_working_vsnprintf=no
21565 fi
21566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21567 fi
21568
21569
21570 fi
21571
21572 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21573 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21574 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21575   case " $LIBOBJS " in
21576   *" snprintf.$ac_objext "* ) ;;
21577   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21578  ;;
21579 esac
21580
21581   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21582 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21583
21584 cat >>confdefs.h <<\_ACEOF
21585 #define PREFER_PORTABLE_SNPRINTF 1
21586 _ACEOF
21587
21588 fi
21589 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21590 { echo "$as_me:$LINENO: checking for asprintf" >&5
21591 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21592 if test "${ac_cv_func_asprintf+set}" = set; then
21593   echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595   cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21603 #define asprintf innocuous_asprintf
21604
21605 /* System header to define __stub macros and hopefully few prototypes,
21606     which can conflict with char asprintf (); below.
21607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21608     <limits.h> exists even on freestanding compilers.  */
21609
21610 #ifdef __STDC__
21611 # include <limits.h>
21612 #else
21613 # include <assert.h>
21614 #endif
21615
21616 #undef asprintf
21617
21618 /* Override any GCC internal prototype to avoid an error.
21619    Use char because int might match the return type of a GCC
21620    builtin and then its argument prototype would still apply.  */
21621 #ifdef __cplusplus
21622 extern "C"
21623 #endif
21624 char asprintf ();
21625 /* The GNU C library defines this for functions which it implements
21626     to always fail with ENOSYS.  Some functions are actually named
21627     something starting with __ and the normal name is an alias.  */
21628 #if defined __stub_asprintf || defined __stub___asprintf
21629 choke me
21630 #endif
21631
21632 int
21633 main ()
21634 {
21635 return asprintf ();
21636   ;
21637   return 0;
21638 }
21639 _ACEOF
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (ac_try="$ac_link"
21642 case "(($ac_try" in
21643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644   *) ac_try_echo=$ac_try;;
21645 esac
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647   (eval "$ac_link") 2>conftest.er1
21648   ac_status=$?
21649   grep -v '^ *+' conftest.er1 >conftest.err
21650   rm -f conftest.er1
21651   cat conftest.err >&5
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } && {
21654          test -z "$ac_c_werror_flag" ||
21655          test ! -s conftest.err
21656        } && test -s conftest$ac_exeext &&
21657        $as_test_x conftest$ac_exeext; then
21658   ac_cv_func_asprintf=yes
21659 else
21660   echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663         ac_cv_func_asprintf=no
21664 fi
21665
21666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21667       conftest$ac_exeext conftest.$ac_ext
21668 fi
21669 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21670 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21671 if test $ac_cv_func_asprintf = yes; then
21672   :
21673 else
21674
21675 cat >>confdefs.h <<\_ACEOF
21676 #define NEED_ASPRINTF 1
21677 _ACEOF
21678
21679 fi
21680
21681 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21682 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21683 if test "${ac_cv_func_vasprintf+set}" = set; then
21684   echo $ECHO_N "(cached) $ECHO_C" >&6
21685 else
21686   cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h.  */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h.  */
21692 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21694 #define vasprintf innocuous_vasprintf
21695
21696 /* System header to define __stub macros and hopefully few prototypes,
21697     which can conflict with char vasprintf (); below.
21698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21699     <limits.h> exists even on freestanding compilers.  */
21700
21701 #ifdef __STDC__
21702 # include <limits.h>
21703 #else
21704 # include <assert.h>
21705 #endif
21706
21707 #undef vasprintf
21708
21709 /* Override any GCC internal prototype to avoid an error.
21710    Use char because int might match the return type of a GCC
21711    builtin and then its argument prototype would still apply.  */
21712 #ifdef __cplusplus
21713 extern "C"
21714 #endif
21715 char vasprintf ();
21716 /* The GNU C library defines this for functions which it implements
21717     to always fail with ENOSYS.  Some functions are actually named
21718     something starting with __ and the normal name is an alias.  */
21719 #if defined __stub_vasprintf || defined __stub___vasprintf
21720 choke me
21721 #endif
21722
21723 int
21724 main ()
21725 {
21726 return vasprintf ();
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735   *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738   (eval "$ac_link") 2>conftest.er1
21739   ac_status=$?
21740   grep -v '^ *+' conftest.er1 >conftest.err
21741   rm -f conftest.er1
21742   cat conftest.err >&5
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); } && {
21745          test -z "$ac_c_werror_flag" ||
21746          test ! -s conftest.err
21747        } && test -s conftest$ac_exeext &&
21748        $as_test_x conftest$ac_exeext; then
21749   ac_cv_func_vasprintf=yes
21750 else
21751   echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754         ac_cv_func_vasprintf=no
21755 fi
21756
21757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21758       conftest$ac_exeext conftest.$ac_ext
21759 fi
21760 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21761 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21762 if test $ac_cv_func_vasprintf = yes; then
21763   :
21764 else
21765
21766 cat >>confdefs.h <<\_ACEOF
21767 #define NEED_VASPRINTF 1
21768 _ACEOF
21769
21770 fi
21771
21772
21773 # Checks for typedefs, structures, and compiler characteristics.
21774 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21775 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21776 if test "${ac_cv_c_const+set}" = set; then
21777   echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779   cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785
21786 int
21787 main ()
21788 {
21789 /* FIXME: Include the comments suggested by Paul. */
21790 #ifndef __cplusplus
21791   /* Ultrix mips cc rejects this.  */
21792   typedef int charset[2];
21793   const charset cs;
21794   /* SunOS 4.1.1 cc rejects this.  */
21795   char const *const *pcpcc;
21796   char **ppc;
21797   /* NEC SVR4.0.2 mips cc rejects this.  */
21798   struct point {int x, y;};
21799   static struct point const zero = {0,0};
21800   /* AIX XL C 1.02.0.0 rejects this.
21801      It does not let you subtract one const X* pointer from another in
21802      an arm of an if-expression whose if-part is not a constant
21803      expression */
21804   const char *g = "string";
21805   pcpcc = &g + (g ? g-g : 0);
21806   /* HPUX 7.0 cc rejects these. */
21807   ++pcpcc;
21808   ppc = (char**) pcpcc;
21809   pcpcc = (char const *const *) ppc;
21810   { /* SCO 3.2v4 cc rejects this.  */
21811     char *t;
21812     char const *s = 0 ? (char *) 0 : (char const *) 0;
21813
21814     *t++ = 0;
21815     if (s) return 0;
21816   }
21817   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21818     int x[] = {25, 17};
21819     const int *foo = &x[0];
21820     ++foo;
21821   }
21822   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21823     typedef const int *iptr;
21824     iptr p = 0;
21825     ++p;
21826   }
21827   { /* AIX XL C 1.02.0.0 rejects this saying
21828        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21829     struct s { int j; const int *ap[3]; };
21830     struct s *b; b->j = 5;
21831   }
21832   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21833     const int foo = 10;
21834     if (!foo) return 0;
21835   }
21836   return !cs[0] && !zero.x;
21837 #endif
21838
21839   ;
21840   return 0;
21841 }
21842 _ACEOF
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_compile") 2>conftest.er1
21851   ac_status=$?
21852   grep -v '^ *+' conftest.er1 >conftest.err
21853   rm -f conftest.er1
21854   cat conftest.err >&5
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); } && {
21857          test -z "$ac_c_werror_flag" ||
21858          test ! -s conftest.err
21859        } && test -s conftest.$ac_objext; then
21860   ac_cv_c_const=yes
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865         ac_cv_c_const=no
21866 fi
21867
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 fi
21870 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21871 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21872 if test $ac_cv_c_const = no; then
21873
21874 cat >>confdefs.h <<\_ACEOF
21875 #define const
21876 _ACEOF
21877
21878 fi
21879
21880 { echo "$as_me:$LINENO: checking for inline" >&5
21881 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21882 if test "${ac_cv_c_inline+set}" = set; then
21883   echo $ECHO_N "(cached) $ECHO_C" >&6
21884 else
21885   ac_cv_c_inline=no
21886 for ac_kw in inline __inline__ __inline; do
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893 #ifndef __cplusplus
21894 typedef int foo_t;
21895 static $ac_kw foo_t static_foo () {return 0; }
21896 $ac_kw foo_t foo () {return 0; }
21897 #endif
21898
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904   *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907   (eval "$ac_compile") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest.$ac_objext; then
21917   ac_cv_c_inline=$ac_kw
21918 else
21919   echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922
21923 fi
21924
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926   test "$ac_cv_c_inline" != no && break
21927 done
21928
21929 fi
21930 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21931 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21932
21933
21934 case $ac_cv_c_inline in
21935   inline | yes) ;;
21936   *)
21937     case $ac_cv_c_inline in
21938       no) ac_val=;;
21939       *) ac_val=$ac_cv_c_inline;;
21940     esac
21941     cat >>confdefs.h <<_ACEOF
21942 #ifndef __cplusplus
21943 #define inline $ac_val
21944 #endif
21945 _ACEOF
21946     ;;
21947 esac
21948
21949 { echo "$as_me:$LINENO: checking for size_t" >&5
21950 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21951 if test "${ac_cv_type_size_t+set}" = set; then
21952   echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954   cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h.  */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h.  */
21960 $ac_includes_default
21961 typedef size_t ac__type_new_;
21962 int
21963 main ()
21964 {
21965 if ((ac__type_new_ *) 0)
21966   return 0;
21967 if (sizeof (ac__type_new_))
21968   return 0;
21969   ;
21970   return 0;
21971 }
21972 _ACEOF
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980   (eval "$ac_compile") 2>conftest.er1
21981   ac_status=$?
21982   grep -v '^ *+' conftest.er1 >conftest.err
21983   rm -f conftest.er1
21984   cat conftest.err >&5
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); } && {
21987          test -z "$ac_c_werror_flag" ||
21988          test ! -s conftest.err
21989        } && test -s conftest.$ac_objext; then
21990   ac_cv_type_size_t=yes
21991 else
21992   echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995         ac_cv_type_size_t=no
21996 fi
21997
21998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21999 fi
22000 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22001 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22002 if test $ac_cv_type_size_t = yes; then
22003   :
22004 else
22005
22006 cat >>confdefs.h <<_ACEOF
22007 #define size_t unsigned int
22008 _ACEOF
22009
22010 fi
22011
22012
22013 ###################################
22014 ## SimGrid and GRAS specific checks
22015 ##
22016
22017
22018   { echo "$as_me:$LINENO: result: " >&5
22019 echo "${ECHO_T}" >&6; }
22020   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22021 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22022
22023 # Check architecture signature begin
22024
22025 # Check for the architecture
22026 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22027 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22028 if test "${ac_cv_c_bigendian+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031   # See if sys/param.h defines the BYTE_ORDER macro.
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 #include <sys/types.h>
22039 #include <sys/param.h>
22040
22041 int
22042 main ()
22043 {
22044 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22045         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22046  bogus endian macros
22047 #endif
22048
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057   *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060   (eval "$ac_compile") 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } && {
22067          test -z "$ac_c_werror_flag" ||
22068          test ! -s conftest.err
22069        } && test -s conftest.$ac_objext; then
22070   # It does; now see whether it defined to BIG_ENDIAN or not.
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077 #include <sys/types.h>
22078 #include <sys/param.h>
22079
22080 int
22081 main ()
22082 {
22083 #if BYTE_ORDER != BIG_ENDIAN
22084  not big endian
22085 #endif
22086
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } && {
22105          test -z "$ac_c_werror_flag" ||
22106          test ! -s conftest.err
22107        } && test -s conftest.$ac_objext; then
22108   ac_cv_c_bigendian=yes
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113         ac_cv_c_bigendian=no
22114 fi
22115
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 else
22118   echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121         # It does not; compile a test program.
22122 if test "$cross_compiling" = yes; then
22123   # try to guess the endianness by grepping values into an object file
22124   ac_cv_c_bigendian=unknown
22125   cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22132 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22133 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22134 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22135 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22136 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22137 int
22138 main ()
22139 {
22140  _ascii (); _ebcdic ();
22141   ;
22142   return 0;
22143 }
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (ac_try="$ac_compile"
22147 case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_compile") 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } && {
22159          test -z "$ac_c_werror_flag" ||
22160          test ! -s conftest.err
22161        } && test -s conftest.$ac_objext; then
22162   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22163   ac_cv_c_bigendian=yes
22164 fi
22165 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22166   if test "$ac_cv_c_bigendian" = unknown; then
22167     ac_cv_c_bigendian=no
22168   else
22169     # finding both strings is unlikely to happen, but who knows?
22170     ac_cv_c_bigendian=unknown
22171   fi
22172 fi
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177
22178 fi
22179
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 else
22182   cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188 $ac_includes_default
22189 int
22190 main ()
22191 {
22192
22193   /* Are we little or big endian?  From Harbison&Steele.  */
22194   union
22195   {
22196     long int l;
22197     char c[sizeof (long int)];
22198   } u;
22199   u.l = 1;
22200   return u.c[sizeof (long int) - 1] == 1;
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest$ac_exeext
22207 if { (ac_try="$ac_link"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213   (eval "$ac_link") 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217   { (case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222   (eval "$ac_try") 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; }; then
22226   ac_cv_c_bigendian=no
22227 else
22228   echo "$as_me: program exited with status $ac_status" >&5
22229 echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22231
22232 ( exit $ac_status )
22233 ac_cv_c_bigendian=yes
22234 fi
22235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22236 fi
22237
22238
22239 fi
22240
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 fi
22243 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22244 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22245 case $ac_cv_c_bigendian in
22246   yes)
22247     endian=1 ;;
22248   no)
22249     endian=0 ;;
22250   *)
22251     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22252 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22253    { (exit 1); exit 1; }; } ;;
22254 esac
22255
22256
22257 cat >>confdefs.h <<_ACEOF
22258 #define GRAS_BIGENDIAN $endian
22259 _ACEOF
22260
22261
22262 { echo "$as_me:$LINENO: checking size of char" >&5
22263 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22264     if test "${ac_cv_sizeof_char+set}" = set; then
22265   echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22268    cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h.  */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h.  */
22274 #include "confdefs.h"
22275    #include <sys/types.h>
22276
22277
22278 int
22279 main ()
22280 {
22281 switch (0) case 0: case (sizeof (char) == $ac_size):;
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
22288 case "(($ac_try" in
22289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290   *) ac_try_echo=$ac_try;;
22291 esac
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293   (eval "$ac_compile") 2>conftest.er1
22294   ac_status=$?
22295   grep -v '^ *+' conftest.er1 >conftest.err
22296   rm -f conftest.er1
22297   cat conftest.err >&5
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && {
22300          test -z "$ac_c_werror_flag" ||
22301          test ! -s conftest.err
22302        } && test -s conftest.$ac_objext; then
22303   ac_cv_sizeof_char=$ac_size
22304 else
22305   echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22307
22308
22309 fi
22310
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312    if test x$ac_cv_sizeof_char != x ; then break; fi
22313   done
22314
22315 fi
22316
22317
22318 unspecif=$ac_cv_sizeof_char
22319 if test x$unspecif = x ; then
22320   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22321 echo "$as_me: error: cannot determine a size for char" >&2;}
22322    { (exit 1); exit 1; }; }
22323 fi
22324
22325     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22326   echo $ECHO_N "(cached) $ECHO_C" >&6
22327 else
22328   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22329    cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h.  */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h.  */
22335 #include "confdefs.h"
22336    #include <sys/types.h>
22337
22338
22339 int
22340 main ()
22341 {
22342 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22343   ;
22344   return 0;
22345 }
22346 _ACEOF
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351   *) ac_try_echo=$ac_try;;
22352 esac
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354   (eval "$ac_compile") 2>conftest.er1
22355   ac_status=$?
22356   grep -v '^ *+' conftest.er1 >conftest.err
22357   rm -f conftest.er1
22358   cat conftest.err >&5
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); } && {
22361          test -z "$ac_c_werror_flag" ||
22362          test ! -s conftest.err
22363        } && test -s conftest.$ac_objext; then
22364   ac_cv_sizeof_signed_char=$ac_size
22365 else
22366   echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369
22370 fi
22371
22372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22374   done
22375
22376 fi
22377
22378
22379 signed=$ac_cv_sizeof_signed_char
22380 if test x$signed = x ; then
22381   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22382 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22383    { (exit 1); exit 1; }; }
22384 fi
22385 if test x$unspecif != x$signed ; then
22386   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22387 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22388    { (exit 1); exit 1; }; }
22389 fi
22390
22391     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22395    cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include "confdefs.h"
22402    #include <sys/types.h>
22403
22404
22405 int
22406 main ()
22407 {
22408 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22409   ;
22410   return 0;
22411 }
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417   *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420   (eval "$ac_compile") 2>conftest.er1
22421   ac_status=$?
22422   grep -v '^ *+' conftest.er1 >conftest.err
22423   rm -f conftest.er1
22424   cat conftest.err >&5
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } && {
22427          test -z "$ac_c_werror_flag" ||
22428          test ! -s conftest.err
22429        } && test -s conftest.$ac_objext; then
22430   ac_cv_sizeof_unsigned_char=$ac_size
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435
22436 fi
22437
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22440   done
22441
22442 fi
22443
22444
22445 unsigned=$ac_cv_sizeof_unsigned_char
22446 if test x$unsigned = x ; then
22447   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22448 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22449    { (exit 1); exit 1; }; }
22450 fi
22451 if test x$unsigned != x$signed ; then
22452   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22453 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22454    { (exit 1); exit 1; }; }
22455 fi
22456
22457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22458 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22459                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22460 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22461
22462  if test "${ac_cv_struct_boundary_char+set}" = set; then
22463   echo $ECHO_N "(cached) $ECHO_C" >&6
22464 else
22465   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22466    cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h.  */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h.  */
22472 #include "confdefs.h"
22473      #include <sys/types.h>
22474      struct s { char c; char i; };
22475
22476 int
22477 main ()
22478 {
22479 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22480   ;
22481   return 0;
22482 }
22483 _ACEOF
22484 rm -f conftest.$ac_objext
22485 if { (ac_try="$ac_compile"
22486 case "(($ac_try" in
22487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488   *) ac_try_echo=$ac_try;;
22489 esac
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491   (eval "$ac_compile") 2>conftest.er1
22492   ac_status=$?
22493   grep -v '^ *+' conftest.er1 >conftest.err
22494   rm -f conftest.er1
22495   cat conftest.err >&5
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); } && {
22498          test -z "$ac_c_werror_flag" ||
22499          test ! -s conftest.err
22500        } && test -s conftest.$ac_objext; then
22501   ac_cv_struct_boundary_char=$ac_size
22502 else
22503   echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506
22507 fi
22508
22509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22511   done
22512
22513 fi
22514
22515  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22516 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22517  if test x$ac_cv_struct_boundary_char = x ; then
22518    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22519 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22520    { (exit 1); exit 1; }; }
22521  fi
22522
22523 { echo "$as_me:$LINENO: checking size of short int" >&5
22524 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22525     if test "${ac_cv_sizeof_short_int+set}" = set; then
22526   echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22529    cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 #include "confdefs.h"
22536    #include <sys/types.h>
22537
22538
22539 int
22540 main ()
22541 {
22542 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551   *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554   (eval "$ac_compile") 2>conftest.er1
22555   ac_status=$?
22556   grep -v '^ *+' conftest.er1 >conftest.err
22557   rm -f conftest.er1
22558   cat conftest.err >&5
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } && {
22561          test -z "$ac_c_werror_flag" ||
22562          test ! -s conftest.err
22563        } && test -s conftest.$ac_objext; then
22564   ac_cv_sizeof_short_int=$ac_size
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569
22570 fi
22571
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22574   done
22575
22576 fi
22577
22578
22579 unspecif=$ac_cv_sizeof_short_int
22580 if test x$unspecif = x ; then
22581   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22582 echo "$as_me: error: cannot determine a size for short int" >&2;}
22583    { (exit 1); exit 1; }; }
22584 fi
22585
22586     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22587   echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22590    cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 #include "confdefs.h"
22597    #include <sys/types.h>
22598
22599
22600 int
22601 main ()
22602 {
22603 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_compile") 2>conftest.er1
22616   ac_status=$?
22617   grep -v '^ *+' conftest.er1 >conftest.err
22618   rm -f conftest.er1
22619   cat conftest.err >&5
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } && {
22622          test -z "$ac_c_werror_flag" ||
22623          test ! -s conftest.err
22624        } && test -s conftest.$ac_objext; then
22625   ac_cv_sizeof_signed_short_int=$ac_size
22626 else
22627   echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630
22631 fi
22632
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22635   done
22636
22637 fi
22638
22639
22640 signed=$ac_cv_sizeof_signed_short_int
22641 if test x$signed = x ; then
22642   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22643 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22644    { (exit 1); exit 1; }; }
22645 fi
22646 if test x$unspecif != x$signed ; then
22647   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22648 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22649    { (exit 1); exit 1; }; }
22650 fi
22651
22652     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22656    cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 #include "confdefs.h"
22663    #include <sys/types.h>
22664
22665
22666 int
22667 main ()
22668 {
22669 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678   *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681   (eval "$ac_compile") 2>conftest.er1
22682   ac_status=$?
22683   grep -v '^ *+' conftest.er1 >conftest.err
22684   rm -f conftest.er1
22685   cat conftest.err >&5
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); } && {
22688          test -z "$ac_c_werror_flag" ||
22689          test ! -s conftest.err
22690        } && test -s conftest.$ac_objext; then
22691   ac_cv_sizeof_unsigned_short_int=$ac_size
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22701   done
22702
22703 fi
22704
22705
22706 unsigned=$ac_cv_sizeof_unsigned_short_int
22707 if test x$unsigned = x ; then
22708   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22709 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22710    { (exit 1); exit 1; }; }
22711 fi
22712 if test x$unsigned != x$signed ; then
22713   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22714 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22715    { (exit 1); exit 1; }; }
22716 fi
22717
22718 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22719 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22720              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22721 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22722
22723  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22727    cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h.  */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h.  */
22733 #include "confdefs.h"
22734      #include <sys/types.h>
22735      struct s { char c; short int i; };
22736
22737 int
22738 main ()
22739 {
22740 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22741   ;
22742   return 0;
22743 }
22744 _ACEOF
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749   *) ac_try_echo=$ac_try;;
22750 esac
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752   (eval "$ac_compile") 2>conftest.er1
22753   ac_status=$?
22754   grep -v '^ *+' conftest.er1 >conftest.err
22755   rm -f conftest.er1
22756   cat conftest.err >&5
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); } && {
22759          test -z "$ac_c_werror_flag" ||
22760          test ! -s conftest.err
22761        } && test -s conftest.$ac_objext; then
22762   ac_cv_struct_boundary_short_int=$ac_size
22763 else
22764   echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767
22768 fi
22769
22770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22772   done
22773
22774 fi
22775
22776  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22777 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22778  if test x$ac_cv_struct_boundary_short_int = x ; then
22779    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22780 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22781    { (exit 1); exit 1; }; }
22782  fi
22783
22784 { echo "$as_me:$LINENO: checking size of int" >&5
22785 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22786     if test "${ac_cv_sizeof_int+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22790    cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h.  */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h.  */
22796 #include "confdefs.h"
22797    #include <sys/types.h>
22798
22799
22800 int
22801 main ()
22802 {
22803 switch (0) case 0: case (sizeof (int) == $ac_size):;
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812   *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815   (eval "$ac_compile") 2>conftest.er1
22816   ac_status=$?
22817   grep -v '^ *+' conftest.er1 >conftest.err
22818   rm -f conftest.er1
22819   cat conftest.err >&5
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); } && {
22822          test -z "$ac_c_werror_flag" ||
22823          test ! -s conftest.err
22824        } && test -s conftest.$ac_objext; then
22825   ac_cv_sizeof_int=$ac_size
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830
22831 fi
22832
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834    if test x$ac_cv_sizeof_int != x ; then break; fi
22835   done
22836
22837 fi
22838
22839
22840 unspecif=$ac_cv_sizeof_int
22841 if test x$unspecif = x ; then
22842   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22843 echo "$as_me: error: cannot determine a size for int" >&2;}
22844    { (exit 1); exit 1; }; }
22845 fi
22846
22847     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22848   echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22851    cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857 #include "confdefs.h"
22858    #include <sys/types.h>
22859
22860
22861 int
22862 main ()
22863 {
22864 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_compile") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest.$ac_objext; then
22886   ac_cv_sizeof_signed_int=$ac_size
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22896   done
22897
22898 fi
22899
22900
22901 signed=$ac_cv_sizeof_signed_int
22902 if test x$signed = x ; then
22903   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22904 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22905    { (exit 1); exit 1; }; }
22906 fi
22907 if test x$unspecif != x$signed ; then
22908   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22909 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22910    { (exit 1); exit 1; }; }
22911 fi
22912
22913     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22917    cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923 #include "confdefs.h"
22924    #include <sys/types.h>
22925
22926
22927 int
22928 main ()
22929 {
22930 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22931   ;
22932   return 0;
22933 }
22934 _ACEOF
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939   *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942   (eval "$ac_compile") 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } && {
22949          test -z "$ac_c_werror_flag" ||
22950          test ! -s conftest.err
22951        } && test -s conftest.$ac_objext; then
22952   ac_cv_sizeof_unsigned_int=$ac_size
22953 else
22954   echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22956
22957
22958 fi
22959
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22962   done
22963
22964 fi
22965
22966
22967 unsigned=$ac_cv_sizeof_unsigned_int
22968 if test x$unsigned = x ; then
22969   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22970 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22971    { (exit 1); exit 1; }; }
22972 fi
22973 if test x$unsigned != x$signed ; then
22974   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22975 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22976    { (exit 1); exit 1; }; }
22977 fi
22978
22979 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22980 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22981                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22982 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22983
22984  if test "${ac_cv_struct_boundary_int+set}" = set; then
22985   echo $ECHO_N "(cached) $ECHO_C" >&6
22986 else
22987   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22988    cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 #include "confdefs.h"
22995      #include <sys/types.h>
22996      struct s { char c; int i; };
22997
22998 int
22999 main ()
23000 {
23001 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23002   ;
23003   return 0;
23004 }
23005 _ACEOF
23006 rm -f conftest.$ac_objext
23007 if { (ac_try="$ac_compile"
23008 case "(($ac_try" in
23009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010   *) ac_try_echo=$ac_try;;
23011 esac
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013   (eval "$ac_compile") 2>conftest.er1
23014   ac_status=$?
23015   grep -v '^ *+' conftest.er1 >conftest.err
23016   rm -f conftest.er1
23017   cat conftest.err >&5
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); } && {
23020          test -z "$ac_c_werror_flag" ||
23021          test ! -s conftest.err
23022        } && test -s conftest.$ac_objext; then
23023   ac_cv_struct_boundary_int=$ac_size
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028
23029 fi
23030
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23033   done
23034
23035 fi
23036
23037  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23038 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23039  if test x$ac_cv_struct_boundary_int = x ; then
23040    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23041 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23042    { (exit 1); exit 1; }; }
23043  fi
23044
23045 { echo "$as_me:$LINENO: checking size of long int" >&5
23046 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23047     if test "${ac_cv_sizeof_long_int+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23051    cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057 #include "confdefs.h"
23058    #include <sys/types.h>
23059
23060
23061 int
23062 main ()
23063 {
23064 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073   *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076   (eval "$ac_compile") 2>conftest.er1
23077   ac_status=$?
23078   grep -v '^ *+' conftest.er1 >conftest.err
23079   rm -f conftest.er1
23080   cat conftest.err >&5
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } && {
23083          test -z "$ac_c_werror_flag" ||
23084          test ! -s conftest.err
23085        } && test -s conftest.$ac_objext; then
23086   ac_cv_sizeof_long_int=$ac_size
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23096   done
23097
23098 fi
23099
23100
23101 unspecif=$ac_cv_sizeof_long_int
23102 if test x$unspecif = x ; then
23103   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23104 echo "$as_me: error: cannot determine a size for long int" >&2;}
23105    { (exit 1); exit 1; }; }
23106 fi
23107
23108     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23112    cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118 #include "confdefs.h"
23119    #include <sys/types.h>
23120
23121
23122 int
23123 main ()
23124 {
23125 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_compile") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest.$ac_objext; then
23147   ac_cv_sizeof_signed_long_int=$ac_size
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23157   done
23158
23159 fi
23160
23161
23162 signed=$ac_cv_sizeof_signed_long_int
23163 if test x$signed = x ; then
23164   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23165 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23166    { (exit 1); exit 1; }; }
23167 fi
23168 if test x$unspecif != x$signed ; then
23169   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23170 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23171    { (exit 1); exit 1; }; }
23172 fi
23173
23174     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23175   echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23178    cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h.  */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h.  */
23184 #include "confdefs.h"
23185    #include <sys/types.h>
23186
23187
23188 int
23189 main ()
23190 {
23191 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (ac_try="$ac_compile"
23198 case "(($ac_try" in
23199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200   *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203   (eval "$ac_compile") 2>conftest.er1
23204   ac_status=$?
23205   grep -v '^ *+' conftest.er1 >conftest.err
23206   rm -f conftest.er1
23207   cat conftest.err >&5
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); } && {
23210          test -z "$ac_c_werror_flag" ||
23211          test ! -s conftest.err
23212        } && test -s conftest.$ac_objext; then
23213   ac_cv_sizeof_unsigned_long_int=$ac_size
23214 else
23215   echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23217
23218
23219 fi
23220
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23223   done
23224
23225 fi
23226
23227
23228 unsigned=$ac_cv_sizeof_unsigned_long_int
23229 if test x$unsigned = x ; then
23230   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23231 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23232    { (exit 1); exit 1; }; }
23233 fi
23234 if test x$unsigned != x$signed ; then
23235   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23236 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23237    { (exit 1); exit 1; }; }
23238 fi
23239
23240 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23241 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23242               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23243 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23244
23245  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23249    cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255 #include "confdefs.h"
23256      #include <sys/types.h>
23257      struct s { char c; long int i; };
23258
23259 int
23260 main ()
23261 {
23262 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23263   ;
23264   return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271   *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274   (eval "$ac_compile") 2>conftest.er1
23275   ac_status=$?
23276   grep -v '^ *+' conftest.er1 >conftest.err
23277   rm -f conftest.er1
23278   cat conftest.err >&5
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); } && {
23281          test -z "$ac_c_werror_flag" ||
23282          test ! -s conftest.err
23283        } && test -s conftest.$ac_objext; then
23284   ac_cv_struct_boundary_long_int=$ac_size
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289
23290 fi
23291
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23294   done
23295
23296 fi
23297
23298  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23299 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23300  if test x$ac_cv_struct_boundary_long_int = x ; then
23301    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23302 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23303    { (exit 1); exit 1; }; }
23304  fi
23305
23306 { echo "$as_me:$LINENO: checking size of long long int" >&5
23307 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23308     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23312    cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 #include "confdefs.h"
23319    #include <sys/types.h>
23320
23321
23322 int
23323 main ()
23324 {
23325 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23326   ;
23327   return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334   *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337   (eval "$ac_compile") 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } && {
23344          test -z "$ac_c_werror_flag" ||
23345          test ! -s conftest.err
23346        } && test -s conftest.$ac_objext; then
23347   ac_cv_sizeof_long_long_int=$ac_size
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23357   done
23358
23359 fi
23360
23361
23362 unspecif=$ac_cv_sizeof_long_long_int
23363 if test x$unspecif = x ; then
23364   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23365 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23366    { (exit 1); exit 1; }; }
23367 fi
23368
23369     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23370   echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23373    cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h.  */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h.  */
23379 #include "confdefs.h"
23380    #include <sys/types.h>
23381
23382
23383 int
23384 main ()
23385 {
23386 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23387   ;
23388   return 0;
23389 }
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395   *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398   (eval "$ac_compile") 2>conftest.er1
23399   ac_status=$?
23400   grep -v '^ *+' conftest.er1 >conftest.err
23401   rm -f conftest.er1
23402   cat conftest.err >&5
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); } && {
23405          test -z "$ac_c_werror_flag" ||
23406          test ! -s conftest.err
23407        } && test -s conftest.$ac_objext; then
23408   ac_cv_sizeof_signed_long_long_int=$ac_size
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23418   done
23419
23420 fi
23421
23422
23423 signed=$ac_cv_sizeof_signed_long_long_int
23424 if test x$signed = x ; then
23425   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23426 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23427    { (exit 1); exit 1; }; }
23428 fi
23429 if test x$unspecif != x$signed ; then
23430   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23431 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23432    { (exit 1); exit 1; }; }
23433 fi
23434
23435     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23439    cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h.  */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h.  */
23445 #include "confdefs.h"
23446    #include <sys/types.h>
23447
23448
23449 int
23450 main ()
23451 {
23452 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23453   ;
23454   return 0;
23455 }
23456 _ACEOF
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461   *) ac_try_echo=$ac_try;;
23462 esac
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464   (eval "$ac_compile") 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } && {
23471          test -z "$ac_c_werror_flag" ||
23472          test ! -s conftest.err
23473        } && test -s conftest.$ac_objext; then
23474   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23475 else
23476   echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479
23480 fi
23481
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23484   done
23485
23486 fi
23487
23488
23489 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23490 if test x$unsigned = x ; then
23491   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23492 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23493    { (exit 1); exit 1; }; }
23494 fi
23495 if test x$unsigned != x$signed ; then
23496   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23497 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23498    { (exit 1); exit 1; }; }
23499 fi
23500
23501 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23502 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23503          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23504 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23505
23506  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23510    cat >conftest.$ac_ext <<_ACEOF
23511 /* confdefs.h.  */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h.  */
23516 #include "confdefs.h"
23517      #include <sys/types.h>
23518      struct s { char c; long long int i; };
23519
23520 int
23521 main ()
23522 {
23523 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23524   ;
23525   return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext
23529 if { (ac_try="$ac_compile"
23530 case "(($ac_try" in
23531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532   *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535   (eval "$ac_compile") 2>conftest.er1
23536   ac_status=$?
23537   grep -v '^ *+' conftest.er1 >conftest.err
23538   rm -f conftest.er1
23539   cat conftest.err >&5
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } && {
23542          test -z "$ac_c_werror_flag" ||
23543          test ! -s conftest.err
23544        } && test -s conftest.$ac_objext; then
23545   ac_cv_struct_boundary_long_long_int=$ac_size
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550
23551 fi
23552
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23555   done
23556
23557 fi
23558
23559  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23560 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23561  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23562    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23563 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23564    { (exit 1); exit 1; }; }
23565  fi
23566
23567
23568     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23569 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23570
23571  if test "${ac_cv_struct_boundary_float+set}" = set; then
23572   echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23575    cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581 #include "confdefs.h"
23582      #include <sys/types.h>
23583      struct s { char c; float i; };
23584
23585 int
23586 main ()
23587 {
23588 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23589   ;
23590   return 0;
23591 }
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597   *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600   (eval "$ac_compile") 2>conftest.er1
23601   ac_status=$?
23602   grep -v '^ *+' conftest.er1 >conftest.err
23603   rm -f conftest.er1
23604   cat conftest.err >&5
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); } && {
23607          test -z "$ac_c_werror_flag" ||
23608          test ! -s conftest.err
23609        } && test -s conftest.$ac_objext; then
23610   ac_cv_struct_boundary_float=$ac_size
23611 else
23612   echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615
23616 fi
23617
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23620   done
23621
23622 fi
23623
23624  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23625 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23626  if test x$ac_cv_struct_boundary_float = x ; then
23627    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23628 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23629    { (exit 1); exit 1; }; }
23630  fi
23631                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23632 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23633
23634  if test "${ac_cv_struct_boundary_double+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23638    cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 #include "confdefs.h"
23645      #include <sys/types.h>
23646      struct s { char c; double i; };
23647
23648 int
23649 main ()
23650 {
23651 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_compile") 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } && {
23670          test -z "$ac_c_werror_flag" ||
23671          test ! -s conftest.err
23672        } && test -s conftest.$ac_objext; then
23673   ac_cv_struct_boundary_double=$ac_size
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678
23679 fi
23680
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23683   done
23684
23685 fi
23686
23687  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23688 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23689  if test x$ac_cv_struct_boundary_double = x ; then
23690    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23691 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23692    { (exit 1); exit 1; }; }
23693  fi
23694
23695
23696 { echo "$as_me:$LINENO: checking size of void *" >&5
23697 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23698     if test "${ac_cv_sizeof_void_p+set}" = set; then
23699   echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23702    cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h.  */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h.  */
23708 #include "confdefs.h"
23709    #include <sys/types.h>
23710
23711
23712 int
23713 main ()
23714 {
23715 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23716   ;
23717   return 0;
23718 }
23719 _ACEOF
23720 rm -f conftest.$ac_objext
23721 if { (ac_try="$ac_compile"
23722 case "(($ac_try" in
23723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724   *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727   (eval "$ac_compile") 2>conftest.er1
23728   ac_status=$?
23729   grep -v '^ *+' conftest.er1 >conftest.err
23730   rm -f conftest.er1
23731   cat conftest.err >&5
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); } && {
23734          test -z "$ac_c_werror_flag" ||
23735          test ! -s conftest.err
23736        } && test -s conftest.$ac_objext; then
23737   ac_cv_sizeof_void_p=$ac_size
23738 else
23739   echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23741
23742
23743 fi
23744
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23747   done
23748
23749 fi
23750
23751
23752 if test x$ac_cv_sizeof_void_p = x ; then
23753   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23754 echo "$as_me: error: cannot determine a size for void *" >&2;}
23755    { (exit 1); exit 1; }; }
23756 fi
23757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23758 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23759                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23760 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23761
23762  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23763   echo $ECHO_N "(cached) $ECHO_C" >&6
23764 else
23765   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23766    cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772 #include "confdefs.h"
23773      #include <sys/types.h>
23774      struct s { char c; void * i; };
23775
23776 int
23777 main ()
23778 {
23779 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23780   ;
23781   return 0;
23782 }
23783 _ACEOF
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788   *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791   (eval "$ac_compile") 2>conftest.er1
23792   ac_status=$?
23793   grep -v '^ *+' conftest.er1 >conftest.err
23794   rm -f conftest.er1
23795   cat conftest.err >&5
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } && {
23798          test -z "$ac_c_werror_flag" ||
23799          test ! -s conftest.err
23800        } && test -s conftest.$ac_objext; then
23801   ac_cv_struct_boundary_void_p=$ac_size
23802 else
23803   echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806
23807 fi
23808
23809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23811   done
23812
23813 fi
23814
23815  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23816 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23817  if test x$ac_cv_struct_boundary_void_p = x ; then
23818    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23819 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23820    { (exit 1); exit 1; }; }
23821  fi
23822
23823 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23824 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23825     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23826   echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23829    cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835 #include "confdefs.h"
23836    #include <sys/types.h>
23837
23838
23839 int
23840 main ()
23841 {
23842 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851   *) ac_try_echo=$ac_try;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854   (eval "$ac_compile") 2>conftest.er1
23855   ac_status=$?
23856   grep -v '^ *+' conftest.er1 >conftest.err
23857   rm -f conftest.er1
23858   cat conftest.err >&5
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); } && {
23861          test -z "$ac_c_werror_flag" ||
23862          test ! -s conftest.err
23863        } && test -s conftest.$ac_objext; then
23864   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869
23870 fi
23871
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23874   done
23875
23876 fi
23877
23878
23879 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23880   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23881 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23882    { (exit 1); exit 1; }; }
23883 fi
23884 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23885 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23886
23887
23888
23889 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23890 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23891 if test x$endian = x1 ; then
23892   trace_endian=B
23893 else
23894   trace_endian=l
23895 fi
23896 gras_arch=unknown
23897 trace="$trace_endian"
23898
23899 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23900
23901 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23902 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23903 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23904 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23905
23906 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23907 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23908
23909 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23910
23911 # sizeof float/double are not tested since IEEE 754 is assumed.
23912 # Check README.IEEE for rational.
23913
23914 # The numbers after the _ in the arch name are the maximal packing boundary.
23915 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23916 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23917 case $trace in
23918   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
23919   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
23920   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
23921   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
23922
23923   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
23924
23925   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
23926   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
23927   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
23928   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
23929
23930   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
23931   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
23932 esac
23933 if test x$gras_arch = xunknown ; then
23934   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23935 echo "${ECHO_T}damnit ($trace)" >&6; }
23936   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23937 Please report this architecture trace ($trace) and what it corresponds to." >&5
23938 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23939 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23940    { (exit 1); exit 1; }; }
23941 fi
23942 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23943
23944 cat >>confdefs.h <<_ACEOF
23945 #define GRAS_THISARCH $gras_arch
23946 _ACEOF
23947
23948 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23949 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23950
23951  if test "$gras_size" = 32; then
23952   GRAS_ARCH_32_BITS_TRUE=
23953   GRAS_ARCH_32_BITS_FALSE='#'
23954 else
23955   GRAS_ARCH_32_BITS_TRUE='#'
23956   GRAS_ARCH_32_BITS_FALSE=
23957 fi
23958
23959
23960 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23961 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23962 ac_cv_sizeof_max=0
23963 for s in $ac_cv_sizeof_char \
23964          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23965          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23966          4 8; do
23967
23968   if test $ac_cv_sizeof_max -lt $s ; then
23969     ac_cv_sizeof_max=$s
23970   fi
23971 done
23972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23973 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23974
23975 cat >>confdefs.h <<_ACEOF
23976 #define SIZEOF_MAX $ac_cv_sizeof_max
23977 _ACEOF
23978
23979
23980
23981 # Check architecture signature end
23982   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23983 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23984    cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h.  */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h.  */
23990 #include "confdefs.h"
23991         #include <sys/types.h>
23992         #include <stddef.h> /* offsetof() */
23993         struct s {char c; double d;};
23994
23995 int
23996 main ()
23997 {
23998 switch (0)
23999         case 0:
24000         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24001
24002   ;
24003   return 0;
24004 }
24005 _ACEOF
24006 rm -f conftest.$ac_objext
24007 if { (ac_try="$ac_compile"
24008 case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_compile") 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } && {
24020          test -z "$ac_c_werror_flag" ||
24021          test ! -s conftest.err
24022        } && test -s conftest.$ac_objext; then
24023   gras_struct_packed=yes
24024 else
24025   echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24027
24028         gras_struct_packed=no
24029 fi
24030
24031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032
24033    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24034 echo "${ECHO_T}$gras_struct_packed" >&6; }
24035    if test x$gras_struct_packed = "xyes" ; then
24036      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24037 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24038    { (exit 1); exit 1; }; }
24039    fi
24040
24041    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24042 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24043    cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h.  */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h.  */
24049 #include "confdefs.h"
24050         #include <sys/types.h>
24051         #include <stddef.h> /* offsetof() */
24052         struct s {double d; int i; char c;};
24053
24054 int
24055 main ()
24056 {
24057 switch (0)
24058         case 0:
24059         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24060
24061   ;
24062   return 0;
24063 }
24064 _ACEOF
24065 rm -f conftest.$ac_objext
24066 if { (ac_try="$ac_compile"
24067 case "(($ac_try" in
24068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069   *) ac_try_echo=$ac_try;;
24070 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072   (eval "$ac_compile") 2>conftest.er1
24073   ac_status=$?
24074   grep -v '^ *+' conftest.er1 >conftest.err
24075   rm -f conftest.er1
24076   cat conftest.err >&5
24077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); } && {
24079          test -z "$ac_c_werror_flag" ||
24080          test ! -s conftest.err
24081        } && test -s conftest.$ac_objext; then
24082   gras_struct_compact=yes
24083 else
24084   echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24086
24087         gras_struct_compact=no
24088 fi
24089
24090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091
24092    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24093 echo "${ECHO_T}$gras_struct_compact" >&6; }
24094
24095    if test x$gras_struct_compact != xyes ; then
24096      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24097 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24098    { (exit 1); exit 1; }; }
24099    fi
24100
24101 cat >>confdefs.h <<_ACEOF
24102 #define GRAS_STRUCT_COMPACT 1
24103 _ACEOF
24104
24105    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24106 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24107
24108    cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h.  */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h.  */
24114 #include "confdefs.h"
24115       #include <sys/types.h>
24116         #include <stddef.h> /* offsetof() */
24117         struct s { double d; int i; char c[6]; };
24118
24119 int
24120 main ()
24121 {
24122 switch (0)
24123       case 0:
24124       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24125
24126   ;
24127   return 0;
24128 }
24129 _ACEOF
24130 rm -f conftest.$ac_objext
24131 if { (ac_try="$ac_compile"
24132 case "(($ac_try" in
24133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134   *) ac_try_echo=$ac_try;;
24135 esac
24136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137   (eval "$ac_compile") 2>conftest.er1
24138   ac_status=$?
24139   grep -v '^ *+' conftest.er1 >conftest.err
24140   rm -f conftest.er1
24141   cat conftest.err >&5
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); } && {
24144          test -z "$ac_c_werror_flag" ||
24145          test ! -s conftest.err
24146        } && test -s conftest.$ac_objext; then
24147   gras_array_straddle_struct=yes
24148 else
24149   echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24151
24152         gras_array_straddle_struct=no
24153 fi
24154
24155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24156
24157    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24158 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24159
24160    if test x$gras_array_straddle_struct = xyes ; then
24161
24162 cat >>confdefs.h <<_ACEOF
24163 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24164 _ACEOF
24165
24166    else
24167      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24168 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24169    { (exit 1); exit 1; }; }
24170    fi
24171
24172
24173
24174
24175
24176   { echo "$as_me:$LINENO: result: " >&5
24177 echo "${ECHO_T}" >&6; }
24178   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24179 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24180
24181
24182
24183
24184 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24185 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24186 if test "${ac_cv_check_mcsc+set}" = set; then
24187   echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189
24190 if test "$cross_compiling" = yes; then
24191   ac_cv_check_mcsc=no
24192
24193 else
24194   cat >conftest.$ac_ext <<_ACEOF
24195 /* confdefs.h.  */
24196 _ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h.  */
24200
24201
24202 #include <stdio.h>
24203 #include <stdlib.h>
24204 #include <ucontext.h>
24205
24206 ucontext_t uc_child;
24207 ucontext_t uc_main;
24208
24209 void child(void *arg)
24210 {
24211     if (arg != (void *)12345)
24212         exit(1);
24213     if (swapcontext(&uc_child, &uc_main) != 0)
24214         exit(2);
24215 }
24216
24217 int main(int argc, char *argv[])
24218 {
24219     FILE *fp;
24220     void *stack;
24221
24222     /* the default is that it fails */
24223     if ((fp = fopen("conftestval", "w")) == NULL)
24224         exit(3);
24225     fprintf(fp, "no\n");
24226     fclose(fp);
24227
24228     /* configure a child user-space context */
24229     if ((stack = malloc(64*1024)) == NULL)
24230         exit(4);
24231     if (getcontext(&uc_child) != 0)
24232         exit(5);
24233     uc_child.uc_link = NULL;
24234     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24235     uc_child.uc_stack.ss_size = 32*1024;
24236     uc_child.uc_stack.ss_flags = 0;
24237     makecontext(&uc_child, child, 2, (void *)12345);
24238
24239     /* switch into the user context */
24240     if (swapcontext(&uc_main, &uc_child) != 0)
24241         exit(6);
24242
24243     /* Fine, child came home */
24244     if ((fp = fopen("conftestval", "w")) == NULL)
24245         exit(7);
24246     fprintf(fp, "yes\n");
24247     fclose(fp);
24248
24249     /* die successfully */
24250     exit(0);
24251 }
24252
24253 _ACEOF
24254 rm -f conftest$ac_exeext
24255 if { (ac_try="$ac_link"
24256 case "(($ac_try" in
24257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258   *) ac_try_echo=$ac_try;;
24259 esac
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261   (eval "$ac_link") 2>&5
24262   ac_status=$?
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24265   { (case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270   (eval "$ac_try") 2>&5
24271   ac_status=$?
24272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273   (exit $ac_status); }; }; then
24274   ac_cv_check_mcsc=`cat conftestval`
24275 else
24276   echo "$as_me: program exited with status $ac_status" >&5
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24279
24280 ( exit $ac_status )
24281 ac_cv_check_mcsc=no
24282 fi
24283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24284 fi
24285
24286
24287 fi
24288 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24289 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24290 if test ".$ac_cv_check_mcsc" = .yes; then
24291     mcsc=yes
24292 else
24293     mcsc=no
24294 fi
24295
24296
24297
24298 for ac_header in pthread.h
24299 do
24300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24302   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24305   echo $ECHO_N "(cached) $ECHO_C" >&6
24306 fi
24307 ac_res=`eval echo '${'$as_ac_Header'}'`
24308                { echo "$as_me:$LINENO: result: $ac_res" >&5
24309 echo "${ECHO_T}$ac_res" >&6; }
24310 else
24311   # Is the header compilable?
24312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24314 cat >conftest.$ac_ext <<_ACEOF
24315 /* confdefs.h.  */
24316 _ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h.  */
24320 $ac_includes_default
24321 #include <$ac_header>
24322 _ACEOF
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327   *) ac_try_echo=$ac_try;;
24328 esac
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330   (eval "$ac_compile") 2>conftest.er1
24331   ac_status=$?
24332   grep -v '^ *+' conftest.er1 >conftest.err
24333   rm -f conftest.er1
24334   cat conftest.err >&5
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); } && {
24337          test -z "$ac_c_werror_flag" ||
24338          test ! -s conftest.err
24339        } && test -s conftest.$ac_objext; then
24340   ac_header_compiler=yes
24341 else
24342   echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24344
24345         ac_header_compiler=no
24346 fi
24347
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24350 echo "${ECHO_T}$ac_header_compiler" >&6; }
24351
24352 # Is the header present?
24353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24355 cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361 #include <$ac_header>
24362 _ACEOF
24363 if { (ac_try="$ac_cpp conftest.$ac_ext"
24364 case "(($ac_try" in
24365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366   *) ac_try_echo=$ac_try;;
24367 esac
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24370   ac_status=$?
24371   grep -v '^ *+' conftest.er1 >conftest.err
24372   rm -f conftest.er1
24373   cat conftest.err >&5
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); } >/dev/null && {
24376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24377          test ! -s conftest.err
24378        }; then
24379   ac_header_preproc=yes
24380 else
24381   echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24383
24384   ac_header_preproc=no
24385 fi
24386
24387 rm -f conftest.err conftest.$ac_ext
24388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24389 echo "${ECHO_T}$ac_header_preproc" >&6; }
24390
24391 # So?  What about this header?
24392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24393   yes:no: )
24394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24398     ac_header_preproc=yes
24399     ;;
24400   no:yes:* )
24401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24413     ( cat <<\_ASBOX
24414 ## -------------------------------------------------- ##
24415 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24416 ## -------------------------------------------------- ##
24417 _ASBOX
24418      ) | sed "s/^/$as_me: WARNING:     /" >&2
24419     ;;
24420 esac
24421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24424   echo $ECHO_N "(cached) $ECHO_C" >&6
24425 else
24426   eval "$as_ac_Header=\$ac_header_preproc"
24427 fi
24428 ac_res=`eval echo '${'$as_ac_Header'}'`
24429                { echo "$as_me:$LINENO: result: $ac_res" >&5
24430 echo "${ECHO_T}$ac_res" >&6; }
24431
24432 fi
24433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24434   cat >>confdefs.h <<_ACEOF
24435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24436 _ACEOF
24437
24438 fi
24439
24440 done
24441
24442 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24443 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24444 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24445   echo $ECHO_N "(cached) $ECHO_C" >&6
24446 else
24447   ac_check_lib_save_LIBS=$LIBS
24448 LIBS="-lpthread  $LIBS"
24449 cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455
24456 /* Override any GCC internal prototype to avoid an error.
24457    Use char because int might match the return type of a GCC
24458    builtin and then its argument prototype would still apply.  */
24459 #ifdef __cplusplus
24460 extern "C"
24461 #endif
24462 char pthread_create ();
24463 int
24464 main ()
24465 {
24466 return pthread_create ();
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext conftest$ac_exeext
24472 if { (ac_try="$ac_link"
24473 case "(($ac_try" in
24474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475   *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478   (eval "$ac_link") 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && {
24485          test -z "$ac_c_werror_flag" ||
24486          test ! -s conftest.err
24487        } && test -s conftest$ac_exeext &&
24488        $as_test_x conftest$ac_exeext; then
24489   ac_cv_lib_pthread_pthread_create=yes
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494         ac_cv_lib_pthread_pthread_create=no
24495 fi
24496
24497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24498       conftest$ac_exeext conftest.$ac_ext
24499 LIBS=$ac_check_lib_save_LIBS
24500 fi
24501 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24502 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24503 if test $ac_cv_lib_pthread_pthread_create = yes; then
24504   pthread=yes
24505 else
24506   pthread=no
24507 fi
24508
24509
24510
24511 if test ".$mcsc" = .yes; then
24512    mcsc=yes
24513 elif test ".$pthread" = .yes; then
24514    pthread=yes
24515 else
24516     ac_header=windows.h
24517     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24518     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24519       windows_context=yes
24520     else
24521       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24522 echo "$as_me: error: no appropriate backend found" >&2;}
24523    { (exit 1); exit 1; }; }
24524     fi
24525 fi
24526
24527
24528 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24529 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24530
24531
24532 # Check whether --with-pthread was given.
24533 if test "${with_pthread+set}" = set; then
24534   withval=$with_pthread; with_context=pthread
24535 fi
24536
24537
24538 # Check whether --with-pthread was given.
24539 if test "${with_pthread+set}" = set; then
24540   withval=$with_pthread; with_context=pthread
24541 fi
24542
24543
24544
24545 # Check whether --with-context was given.
24546 if test "${with_context+set}" = set; then
24547   withval=$with_context;
24548 else
24549   with_context=auto
24550 fi
24551
24552
24553 if test "x$with_context$mcsc" = "xucontextno" ; then
24554   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24555 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24556    { (exit 77); exit 77; }; }
24557 fi
24558
24559 case $with_context in
24560  ucontext) ;;
24561  pthread) ;;
24562  pthreads) ;;
24563  windows) ;;
24564  auto) with_context=ucontext;;
24565  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24566 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24567    { (exit 1); exit 1; }; } ;;
24568 esac
24569
24570 if test "x$with_context" = "xucontext" ; then
24571   if test ".$mcsc" = .yes; then
24572     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24573 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24574
24575 cat >>confdefs.h <<\_ACEOF
24576 #define CONTEXT_UCONTEXT 1
24577 _ACEOF
24578
24579   else
24580     if test ".$windows_context" = .yes ; then
24581       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24582 echo "${ECHO_T}use windows context portability layer." >&6; }
24583       with_context=windows
24584     else
24585       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24586 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24587       with_context=pthread
24588     fi
24589   fi
24590 fi
24591
24592 if test "x$with_context" = "xpthreads"; then
24593   with_context=pthread
24594 fi
24595 if test "x$with_context" = "xpthread"; then
24596
24597 for ac_header in pthread.h
24598 do
24599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24601   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24604   echo $ECHO_N "(cached) $ECHO_C" >&6
24605 fi
24606 ac_res=`eval echo '${'$as_ac_Header'}'`
24607                { echo "$as_me:$LINENO: result: $ac_res" >&5
24608 echo "${ECHO_T}$ac_res" >&6; }
24609 else
24610   # Is the header compilable?
24611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24613 cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619 $ac_includes_default
24620 #include <$ac_header>
24621 _ACEOF
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626   *) ac_try_echo=$ac_try;;
24627 esac
24628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24629   (eval "$ac_compile") 2>conftest.er1
24630   ac_status=$?
24631   grep -v '^ *+' conftest.er1 >conftest.err
24632   rm -f conftest.er1
24633   cat conftest.err >&5
24634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635   (exit $ac_status); } && {
24636          test -z "$ac_c_werror_flag" ||
24637          test ! -s conftest.err
24638        } && test -s conftest.$ac_objext; then
24639   ac_header_compiler=yes
24640 else
24641   echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24643
24644         ac_header_compiler=no
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24649 echo "${ECHO_T}$ac_header_compiler" >&6; }
24650
24651 # Is the header present?
24652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24654 cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 #include <$ac_header>
24661 _ACEOF
24662 if { (ac_try="$ac_cpp conftest.$ac_ext"
24663 case "(($ac_try" in
24664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665   *) ac_try_echo=$ac_try;;
24666 esac
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24669   ac_status=$?
24670   grep -v '^ *+' conftest.er1 >conftest.err
24671   rm -f conftest.er1
24672   cat conftest.err >&5
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); } >/dev/null && {
24675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24676          test ! -s conftest.err
24677        }; then
24678   ac_header_preproc=yes
24679 else
24680   echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24682
24683   ac_header_preproc=no
24684 fi
24685
24686 rm -f conftest.err conftest.$ac_ext
24687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24688 echo "${ECHO_T}$ac_header_preproc" >&6; }
24689
24690 # So?  What about this header?
24691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24692   yes:no: )
24693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24697     ac_header_preproc=yes
24698     ;;
24699   no:yes:* )
24700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24712     ( cat <<\_ASBOX
24713 ## -------------------------------------------------- ##
24714 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24715 ## -------------------------------------------------- ##
24716 _ASBOX
24717      ) | sed "s/^/$as_me: WARNING:     /" >&2
24718     ;;
24719 esac
24720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24723   echo $ECHO_N "(cached) $ECHO_C" >&6
24724 else
24725   eval "$as_ac_Header=\$ac_header_preproc"
24726 fi
24727 ac_res=`eval echo '${'$as_ac_Header'}'`
24728                { echo "$as_me:$LINENO: result: $ac_res" >&5
24729 echo "${ECHO_T}$ac_res" >&6; }
24730
24731 fi
24732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24733   cat >>confdefs.h <<_ACEOF
24734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24735 _ACEOF
24736
24737 fi
24738
24739 done
24740
24741
24742 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24743 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24744 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24745   echo $ECHO_N "(cached) $ECHO_C" >&6
24746 else
24747   ac_check_lib_save_LIBS=$LIBS
24748 LIBS="-lpthread  $LIBS"
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755
24756 /* Override any GCC internal prototype to avoid an error.
24757    Use char because int might match the return type of a GCC
24758    builtin and then its argument prototype would still apply.  */
24759 #ifdef __cplusplus
24760 extern "C"
24761 #endif
24762 char pthread_create ();
24763 int
24764 main ()
24765 {
24766 return pthread_create ();
24767   ;
24768   return 0;
24769 }
24770 _ACEOF
24771 rm -f conftest.$ac_objext conftest$ac_exeext
24772 if { (ac_try="$ac_link"
24773 case "(($ac_try" in
24774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775   *) ac_try_echo=$ac_try;;
24776 esac
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778   (eval "$ac_link") 2>conftest.er1
24779   ac_status=$?
24780   grep -v '^ *+' conftest.er1 >conftest.err
24781   rm -f conftest.er1
24782   cat conftest.err >&5
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); } && {
24785          test -z "$ac_c_werror_flag" ||
24786          test ! -s conftest.err
24787        } && test -s conftest$ac_exeext &&
24788        $as_test_x conftest$ac_exeext; then
24789   ac_cv_lib_pthread_pthread_create=yes
24790 else
24791   echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24793
24794         ac_cv_lib_pthread_pthread_create=no
24795 fi
24796
24797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24798       conftest$ac_exeext conftest.$ac_ext
24799 LIBS=$ac_check_lib_save_LIBS
24800 fi
24801 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24802 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24803 if test $ac_cv_lib_pthread_pthread_create = yes; then
24804   cat >>confdefs.h <<_ACEOF
24805 #define HAVE_LIBPTHREAD 1
24806 _ACEOF
24807
24808   LIBS="-lpthread $LIBS"
24809
24810 else
24811   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24812 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24813    { (exit 1); exit 1; }; }
24814 fi
24815
24816
24817 cat >>confdefs.h <<\_ACEOF
24818 #define CONTEXT_THREADS 1
24819 _ACEOF
24820
24821   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24822 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24823 fi
24824
24825
24826 if test "x$with_context" = "xucontext" ; then
24827   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24828 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24829 if test "${ac_cv_check_stackgrowth+set}" = set; then
24830   echo $ECHO_N "(cached) $ECHO_C" >&6
24831 else
24832
24833 cross_compiling=no
24834 if test "$cross_compiling" = yes; then
24835   ac_cv_check_stackgrowth=down
24836
24837 else
24838   cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844
24845 #include <stdio.h>
24846 #include <stdlib.h>
24847 static int iterate = 10;
24848 static int growsdown(int *x)
24849 {
24850     auto int y;
24851     y = (x > &y);
24852     if (--iterate > 0)
24853         y = growsdown(&y);
24854     if (y != (x > &y))
24855         exit(1);
24856     return y;
24857 }
24858 int main(int argc, char *argv[])
24859 {
24860     FILE *f;
24861     auto int x;
24862     if ((f = fopen("conftestval", "w")) == NULL)
24863         exit(1);
24864     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24865     fclose(f);
24866     exit(0);
24867 }
24868
24869
24870 _ACEOF
24871 rm -f conftest$ac_exeext
24872 if { (ac_try="$ac_link"
24873 case "(($ac_try" in
24874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875   *) ac_try_echo=$ac_try;;
24876 esac
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878   (eval "$ac_link") 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24882   { (case "(($ac_try" in
24883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884   *) ac_try_echo=$ac_try;;
24885 esac
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887   (eval "$ac_try") 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; }; then
24891   ac_cv_check_stackgrowth=`cat conftestval`
24892 else
24893   echo "$as_me: program exited with status $ac_status" >&5
24894 echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24896
24897 ( exit $ac_status )
24898 ac_cv_check_stackgrowth=down
24899 fi
24900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24901 fi
24902
24903
24904 fi
24905 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24906 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24907 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24908     val="-1"
24909 else
24910     val="+1"
24911 fi
24912
24913 cat >>confdefs.h <<_ACEOF
24914 #define PTH_STACKGROWTH $val
24915 _ACEOF
24916
24917
24918   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24919       PTH_STACK_GROWTH="down"
24920   else
24921       PTH_STACK_GROWTH="up"
24922   fi
24923
24924
24925
24926
24927
24928
24929 for ac_func in makecontext
24930 do
24931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24935   echo $ECHO_N "(cached) $ECHO_C" >&6
24936 else
24937   cat >conftest.$ac_ext <<_ACEOF
24938 /* confdefs.h.  */
24939 _ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h.  */
24943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24945 #define $ac_func innocuous_$ac_func
24946
24947 /* System header to define __stub macros and hopefully few prototypes,
24948     which can conflict with char $ac_func (); below.
24949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24950     <limits.h> exists even on freestanding compilers.  */
24951
24952 #ifdef __STDC__
24953 # include <limits.h>
24954 #else
24955 # include <assert.h>
24956 #endif
24957
24958 #undef $ac_func
24959
24960 /* Override any GCC internal prototype to avoid an error.
24961    Use char because int might match the return type of a GCC
24962    builtin and then its argument prototype would still apply.  */
24963 #ifdef __cplusplus
24964 extern "C"
24965 #endif
24966 char $ac_func ();
24967 /* The GNU C library defines this for functions which it implements
24968     to always fail with ENOSYS.  Some functions are actually named
24969     something starting with __ and the normal name is an alias.  */
24970 #if defined __stub_$ac_func || defined __stub___$ac_func
24971 choke me
24972 #endif
24973
24974 int
24975 main ()
24976 {
24977 return $ac_func ();
24978   ;
24979   return 0;
24980 }
24981 _ACEOF
24982 rm -f conftest.$ac_objext conftest$ac_exeext
24983 if { (ac_try="$ac_link"
24984 case "(($ac_try" in
24985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986   *) ac_try_echo=$ac_try;;
24987 esac
24988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989   (eval "$ac_link") 2>conftest.er1
24990   ac_status=$?
24991   grep -v '^ *+' conftest.er1 >conftest.err
24992   rm -f conftest.er1
24993   cat conftest.err >&5
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); } && {
24996          test -z "$ac_c_werror_flag" ||
24997          test ! -s conftest.err
24998        } && test -s conftest$ac_exeext &&
24999        $as_test_x conftest$ac_exeext; then
25000   eval "$as_ac_var=yes"
25001 else
25002   echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005         eval "$as_ac_var=no"
25006 fi
25007
25008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25009       conftest$ac_exeext conftest.$ac_ext
25010 fi
25011 ac_res=`eval echo '${'$as_ac_var'}'`
25012                { echo "$as_me:$LINENO: result: $ac_res" >&5
25013 echo "${ECHO_T}$ac_res" >&6; }
25014 if test `eval echo '${'$as_ac_var'}'` = yes; then
25015   cat >>confdefs.h <<_ACEOF
25016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25017 _ACEOF
25018
25019 fi
25020 done
25021
25022
25023 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25024 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25025 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028
25029 if test ".$ac_cv_func_makecontext" = .no; then
25030         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25031 else
25032         OCFLAGS="$CFLAGS"
25033     CFLAGS="$CFLAGS -DTEST_makecontext"
25034     cross_compiling=no
25035         if test "$cross_compiling" = yes; then
25036
25037 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25038
25039 else
25040   cat >conftest.$ac_ext <<_ACEOF
25041 /* confdefs.h.  */
25042 _ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h.  */
25046
25047 #include <stdio.h>
25048 #include <stdlib.h>
25049 #include <string.h>
25050 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25051 #include <sys/types.h>
25052 #include <signal.h>
25053 #include <unistd.h>
25054 #endif
25055 #if defined(TEST_makecontext)
25056 #include <ucontext.h>
25057 #endif
25058 union alltypes {
25059     long   l;
25060     double d;
25061     void  *vp;
25062     void (*fp)(void);
25063     char  *cp;
25064 };
25065 static volatile char *handler_addr = (char *)0xDEAD;
25066 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25067 static volatile int handler_done = 0;
25068 void handler(int sig)
25069 {
25070     char garbage[1024];
25071     int i;
25072     auto int dummy;
25073     for (i = 0; i < 1024; i++)
25074         garbage[i] = 'X';
25075     handler_addr = (char *)&dummy;
25076     handler_done = 1;
25077     return;
25078 }
25079 #endif
25080 #if defined(TEST_makecontext)
25081 static ucontext_t uc_handler;
25082 static ucontext_t uc_main;
25083 void handler(void)
25084 {
25085     char garbage[1024];
25086     int i;
25087     auto int dummy;
25088     for (i = 0; i < 1024; i++)
25089         garbage[i] = 'X';
25090     handler_addr = (char *)&dummy;
25091     swapcontext(&uc_handler, &uc_main);
25092     return;
25093 }
25094 #endif
25095 int main(int argc, char *argv[])
25096 {
25097     FILE *f;
25098     char *skaddr;
25099     char *skbuf;
25100     int sksize;
25101     char result[1024];
25102     int i;
25103     sksize = 32768;
25104     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25105     if (skbuf == NULL)
25106         exit(1);
25107     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25108         skbuf[i] = 'A';
25109     skaddr = skbuf+sizeof(union alltypes);
25110 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25111     {
25112         struct sigaction sa;
25113 #if defined(TEST_sigstack)
25114         struct sigstack ss;
25115 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25116         stack_t ss;
25117 #else
25118         struct sigaltstack ss;
25119 #endif
25120 #if defined(TEST_sigstack)
25121         ss.ss_sp      = (void *)(skaddr + sksize);
25122         ss.ss_onstack = 0;
25123         if (sigstack(&ss, NULL) < 0)
25124             exit(1);
25125 #elif defined(TEST_sigaltstack)
25126         ss.ss_sp    = (void *)(skaddr + sksize);
25127         ss.ss_size  = sksize;
25128         ss.ss_flags = 0;
25129         if (sigaltstack(&ss, NULL) < 0)
25130             exit(1);
25131 #endif
25132         memset((void *)&sa, 0, sizeof(struct sigaction));
25133         sa.sa_handler = handler;
25134         sa.sa_flags = SA_ONSTACK;
25135         sigemptyset(&sa.sa_mask);
25136         sigaction(SIGUSR1, &sa, NULL);
25137         kill(getpid(), SIGUSR1);
25138         while (!handler_done)
25139             /*nop*/;
25140     }
25141 #endif
25142 #if defined(TEST_makecontext)
25143     {
25144         if (getcontext(&uc_handler) != 0)
25145             exit(1);
25146         uc_handler.uc_link = NULL;
25147         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25148         uc_handler.uc_stack.ss_size  = sksize;
25149         uc_handler.uc_stack.ss_flags = 0;
25150         makecontext(&uc_handler, handler, 1);
25151         swapcontext(&uc_main, &uc_handler);
25152     }
25153 #endif
25154     if (handler_addr == (char *)0xDEAD)
25155         exit(1);
25156     if (handler_addr < skaddr+sksize) {
25157         /* stack was placed into lower area */
25158         if (*(skaddr+sksize) != 'A')
25159              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25160                      sizeof(union alltypes), sizeof(union alltypes));
25161         else
25162              strcpy(result, "(skaddr)+(sksize),(sksize)");
25163     }
25164     else {
25165         /* stack was placed into higher area */
25166         if (*(skaddr+sksize*2) != 'A')
25167             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25168         else
25169             strcpy(result, "(skaddr),(sksize)");
25170     }
25171     if ((f = fopen("conftestval", "w")) == NULL)
25172         exit(1);
25173     fprintf(f, "%s\n", result);
25174     fclose(f);
25175     exit(0);
25176 }
25177
25178 _ACEOF
25179 rm -f conftest$ac_exeext
25180 if { (ac_try="$ac_link"
25181 case "(($ac_try" in
25182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183   *) ac_try_echo=$ac_try;;
25184 esac
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186   (eval "$ac_link") 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25190   { (case "(($ac_try" in
25191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25192   *) ac_try_echo=$ac_try;;
25193 esac
25194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25195   (eval "$ac_try") 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }; }; then
25199
25200 ac_cv_stacksetup_makecontext=`cat conftestval`
25201 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25202
25203 else
25204   echo "$as_me: program exited with status $ac_status" >&5
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208 ( exit $ac_status )
25209
25210 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25211
25212 fi
25213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25214 fi
25215
25216
25217 CFLAGS="$OCFLAGS"
25218
25219 fi
25220 fi
25221 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25222 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25223 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25224 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25225 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25226 { echo "$as_me:$LINENO: result: $type" >&5
25227 echo "${ECHO_T}$type" >&6; }
25228 if test ".$verbose" = .yes; then
25229     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25230 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25231 fi
25232
25233 if test ".$verbose" = .yes; then
25234     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25235 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25236 fi
25237
25238
25239 fi
25240
25241 #########################################
25242 ## Check for libraries extra-dependencies
25243 ##
25244
25245
25246   { echo "$as_me:$LINENO: result: " >&5
25247 echo "${ECHO_T}" >&6; }
25248   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25249 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25250
25251
25252 SIMGRID_DEP=""
25253 GRAS_DEP=""
25254
25255 #########################################
25256 ## Build optional modules (gtnets)
25257 ##
25258
25259 # Check whether --with-gtnets was given.
25260 if test "${with_gtnets+set}" = set; then
25261   withval=$with_gtnets; gtnets_path="$withval"
25262 else
25263   gtnets_path="NO"
25264 fi
25265
25266 if test "x$gtnets_path" = "xNO" ; then
25267   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25268 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25269 else
25270   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25271 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25272
25273 cat >>confdefs.h <<\_ACEOF
25274 #define USE_GTNETS 1
25275 _ACEOF
25276
25277   if ! test -e $gtnets_path ; then
25278     { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25279 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25280    { (exit 1); exit 1; }; }
25281   fi
25282   GTNETS_CFLAGS=-I$gtnets_path/include
25283
25284   GTNETS_LDFLAGS=-L$gtnets_path/lib
25285
25286   SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25287 fi
25288  if test "x$gtnets_path" != xNO; then
25289   USE_GTNETS_TRUE=
25290   USE_GTNETS_FALSE='#'
25291 else
25292   USE_GTNETS_TRUE='#'
25293   USE_GTNETS_FALSE=
25294 fi
25295
25296
25297 if test xpthread=xyes ; then
25298   # if the pthreads are usable
25299   if test "x$with_context" = "xpthread" ; then
25300     # if we use them to implement the xbt_context
25301     SIMGRID_DEP="-lpthread"
25302   fi
25303   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25304   if test "x$with_context" != "xwindows" ; then
25305     GRAS_DEP="-lpthread"
25306   fi
25307 fi
25308
25309 { echo "$as_me:$LINENO: checking for csdp" >&5
25310 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25311 sdp=no
25312 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25313 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25314 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25315   echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317   ac_check_lib_save_LIBS=$LIBS
25318 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25319 cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325
25326 /* Override any GCC internal prototype to avoid an error.
25327    Use char because int might match the return type of a GCC
25328    builtin and then its argument prototype would still apply.  */
25329 #ifdef __cplusplus
25330 extern "C"
25331 #endif
25332 char sdp ();
25333 int
25334 main ()
25335 {
25336 return sdp ();
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (ac_try="$ac_link"
25343 case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_link") 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } && {
25355          test -z "$ac_c_werror_flag" ||
25356          test ! -s conftest.err
25357        } && test -s conftest$ac_exeext &&
25358        $as_test_x conftest$ac_exeext; then
25359   ac_cv_lib_sdp_sdp=yes
25360 else
25361   echo "$as_me: failed program was:" >&5
25362 sed 's/^/| /' conftest.$ac_ext >&5
25363
25364         ac_cv_lib_sdp_sdp=no
25365 fi
25366
25367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25368       conftest$ac_exeext conftest.$ac_ext
25369 LIBS=$ac_check_lib_save_LIBS
25370 fi
25371 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25372 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25373 if test $ac_cv_lib_sdp_sdp = yes; then
25374   csdp=yes
25375 else
25376   csdp=no
25377 fi
25378
25379 if test "x$csdp" = xyes; then
25380   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25381   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25382 echo "${ECHO_T}Found working sdp library." >&6; }
25383
25384 cat >>confdefs.h <<\_ACEOF
25385 #define HAVE_SDP 1
25386 _ACEOF
25387
25388 else
25389   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25390 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25391 fi;
25392  if test x$csdp != xno; then
25393   HAVE_SDP_TRUE=
25394   HAVE_SDP_FALSE='#'
25395 else
25396   HAVE_SDP_TRUE='#'
25397   HAVE_SDP_FALSE=
25398 fi
25399
25400
25401
25402
25403 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25404 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25405 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25406   echo $ECHO_N "(cached) $ECHO_C" >&6
25407 else
25408   ac_check_lib_save_LIBS=$LIBS
25409 LIBS="-lnsl  $LIBS"
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416
25417 /* Override any GCC internal prototype to avoid an error.
25418    Use char because int might match the return type of a GCC
25419    builtin and then its argument prototype would still apply.  */
25420 #ifdef __cplusplus
25421 extern "C"
25422 #endif
25423 char gethostbyname ();
25424 int
25425 main ()
25426 {
25427 return gethostbyname ();
25428   ;
25429   return 0;
25430 }
25431 _ACEOF
25432 rm -f conftest.$ac_objext conftest$ac_exeext
25433 if { (ac_try="$ac_link"
25434 case "(($ac_try" in
25435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436   *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439   (eval "$ac_link") 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } && {
25446          test -z "$ac_c_werror_flag" ||
25447          test ! -s conftest.err
25448        } && test -s conftest$ac_exeext &&
25449        $as_test_x conftest$ac_exeext; then
25450   ac_cv_lib_nsl_gethostbyname=yes
25451 else
25452   echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455         ac_cv_lib_nsl_gethostbyname=no
25456 fi
25457
25458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25459       conftest$ac_exeext conftest.$ac_ext
25460 LIBS=$ac_check_lib_save_LIBS
25461 fi
25462 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25463 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25464 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25465   GRAS_DEP="$GRAS_DEP -lnsl"
25466 fi
25467
25468 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25469 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25470 if test "${ac_cv_lib_socket_connect+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   ac_check_lib_save_LIBS=$LIBS
25474 LIBS="-lsocket  $LIBS"
25475 cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481
25482 /* Override any GCC internal prototype to avoid an error.
25483    Use char because int might match the return type of a GCC
25484    builtin and then its argument prototype would still apply.  */
25485 #ifdef __cplusplus
25486 extern "C"
25487 #endif
25488 char connect ();
25489 int
25490 main ()
25491 {
25492 return connect ();
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest.$ac_objext conftest$ac_exeext
25498 if { (ac_try="$ac_link"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_link") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && {
25511          test -z "$ac_c_werror_flag" ||
25512          test ! -s conftest.err
25513        } && test -s conftest$ac_exeext &&
25514        $as_test_x conftest$ac_exeext; then
25515   ac_cv_lib_socket_connect=yes
25516 else
25517   echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25519
25520         ac_cv_lib_socket_connect=no
25521 fi
25522
25523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25524       conftest$ac_exeext conftest.$ac_ext
25525 LIBS=$ac_check_lib_save_LIBS
25526 fi
25527 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25528 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25529 if test $ac_cv_lib_socket_connect = yes; then
25530   GRAS_DEP="$GRAS_DEP -lsocket"
25531 fi
25532
25533
25534 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25535 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25536 case $host_os in
25537   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25538             AM_CFLAGS=-DDLL_EXPORT
25539
25540             cat >>confdefs.h <<\_ACEOF
25541 #define CONTEXT_THREADS 1
25542 _ACEOF
25543 ;;
25544 esac
25545
25546 if test "x$GRAS_DEP" = x; then
25547    { echo "$as_me:$LINENO: result: none" >&5
25548 echo "${ECHO_T}none" >&6; }
25549 else
25550    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25551 echo "${ECHO_T}$GRAS_DEP" >&6; }
25552 fi
25553
25554
25555 ##############################################
25556 ## Enhance maintainer mode and SUBST variables
25557 ## (must be placed after any compilation tests since our overprotective flags
25558 ##  let some tests fail)
25559
25560 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25561 # Next line is modified by sed when building gramine source tree
25562 gramine_mode=no
25563 if test x$gramine_mode = xyes
25564 then
25565   USE_MAINTAINER_MODE=no
25566 fi
25567  if test x$gramine_mode != xno; then
25568   GRAMINE_MODE_TRUE=
25569   GRAMINE_MODE_FALSE='#'
25570 else
25571   GRAMINE_MODE_TRUE='#'
25572   GRAMINE_MODE_FALSE=
25573 fi
25574
25575
25576
25577 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25578 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25579     # Check whether --enable-maintainer-mode was given.
25580 if test "${enable_maintainer_mode+set}" = set; then
25581   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25582 else
25583   USE_MAINTAINER_MODE=no
25584 fi
25585
25586   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25587 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25588    if test $USE_MAINTAINER_MODE = yes; then
25589   MAINTAINER_MODE_TRUE=
25590   MAINTAINER_MODE_FALSE='#'
25591 else
25592   MAINTAINER_MODE_TRUE='#'
25593   MAINTAINER_MODE_FALSE=
25594 fi
25595
25596   MAINT=$MAINTAINER_MODE_TRUE
25597
25598
25599 if test x$USE_MAINTAINER_MODE = xyes
25600 then
25601    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25602    enable_compile_warnings=yes
25603 fi
25604
25605   # Check whether --enable-compile-warnings was given.
25606 if test "${enable_compile_warnings+set}" = set; then
25607   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25608 else
25609   enable_compile_warnings=no
25610 fi
25611
25612
25613   # Check whether --enable-compile-optimizations was given.
25614 if test "${enable_compile_optimizations+set}" = set; then
25615   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25616 else
25617   enable_compile_optimizations=auto
25618 fi
25619
25620
25621   if test "x$cflags_set" != "xyes" ; then
25622     # if user didn't specify CFLAGS explicitely
25623
25624     # AC PROG CC tests whether -g is accepted.
25625     # Cool, but it also tries to set -O2. I don't want it with gcc
25626     saveCFLAGS="$CFLAGS"
25627     CFLAGS=
25628     case " $saveCFLAGS " in
25629     *-g*) CFLAGS="-g" ;;
25630     esac
25631     case " $saveCFLAGS " in
25632     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25633     esac
25634
25635     # damn AC PROG CC, why did you set -O??
25636     CFLAGS="-g"
25637   fi
25638
25639   if test "x$enable_compile_warnings" = "xyes" ; then
25640     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25641 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25642     warnCFLAGS=
25643     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25644       case " $CFLAGS " in
25645       *-Wall*) ;;
25646       *) warnCFLAGS="-Wall -Wunused" ;;
25647       esac
25648
25649       ## -W is not all that useful.  And it cannot be controlled
25650       ## with individual -Wno-xxx flags, unlike -Wall
25651
25652       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25653       ## -Wshadow chokes on try{ try{} } constructs
25654       if test "x$enable_compile_warnings" = "xyes"; then
25655         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25656         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25657         -Wno-unused-function  \
25658         -Werror \
25659         | sed 's/ +/ /g'`
25660         # -Wno-unused-variable  -Wno-unused-label
25661       fi
25662     fi
25663     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25664 echo "${ECHO_T}$warnCFLAGS" >&6; }
25665     # placed before since gcc remembers the last one on conflict
25666     CFLAGS="$warnCFLAGS $CFLAGS"
25667   fi
25668
25669   if test "x$enable_compile_optimizations" = "xyes" ||
25670      test "x$enable_compile_optimizations" = "xauto" ; then
25671     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25672 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25673     optCFLAGS=
25674     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25675         case " $CFLAGS " in
25676         *-O*) ;;
25677         *) optCFLAGS="$optCFLAGS -O3" ;;
25678         esac
25679         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25680
25681         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25682         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25683         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25684           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25685           # isn't propagated enough to desserve an extra check
25686
25687           # Note that the flag didn't exist before gcc 3.0
25688           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25689         fi
25690             fi
25691     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25692 echo "${ECHO_T}$optCFLAGS" >&6; }
25693     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25694     if test "x$cflags_set" != "xyes" ; then
25695       CFLAGS="$optCFLAGS $CFLAGS"
25696     fi
25697   fi
25698
25699   if test x$lt_cv_prog_gnu_ld = xyes ; then
25700     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25701   else
25702     LD_DYNAMIC_FLAGS=
25703   fi
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719   { echo "$as_me:$LINENO: result: " >&5
25720 echo "${ECHO_T}" >&6; }
25721   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25722 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25723
25724 # Java cruft
25725 # Extract the first word of "javac", so it can be a program name with args.
25726 set dummy javac; ac_word=$2
25727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25729 if test "${ac_cv_path_JAVAC+set}" = set; then
25730   echo $ECHO_N "(cached) $ECHO_C" >&6
25731 else
25732   case $JAVAC in
25733   [\\/]* | ?:[\\/]*)
25734   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25735   ;;
25736   *)
25737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25738 for as_dir in $PATH
25739 do
25740   IFS=$as_save_IFS
25741   test -z "$as_dir" && as_dir=.
25742   for ac_exec_ext in '' $ac_executable_extensions; do
25743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25744     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25746     break 2
25747   fi
25748 done
25749 done
25750 IFS=$as_save_IFS
25751
25752   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
25753   ;;
25754 esac
25755 fi
25756 JAVAC=$ac_cv_path_JAVAC
25757 if test -n "$JAVAC"; then
25758   { echo "$as_me:$LINENO: result: $JAVAC" >&5
25759 echo "${ECHO_T}$JAVAC" >&6; }
25760 else
25761   { echo "$as_me:$LINENO: result: no" >&5
25762 echo "${ECHO_T}no" >&6; }
25763 fi
25764
25765
25766 # Extract the first word of "java ", so it can be a program name with args.
25767 set dummy java ; ac_word=$2
25768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25770 if test "${ac_cv_path_JAVA+set}" = set; then
25771   echo $ECHO_N "(cached) $ECHO_C" >&6
25772 else
25773   case $JAVA in
25774   [\\/]* | ?:[\\/]*)
25775   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
25776   ;;
25777   *)
25778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25779 for as_dir in $PATH
25780 do
25781   IFS=$as_save_IFS
25782   test -z "$as_dir" && as_dir=.
25783   for ac_exec_ext in '' $ac_executable_extensions; do
25784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25785     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
25786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25787     break 2
25788   fi
25789 done
25790 done
25791 IFS=$as_save_IFS
25792
25793   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
25794   ;;
25795 esac
25796 fi
25797 JAVA=$ac_cv_path_JAVA
25798 if test -n "$JAVA"; then
25799   { echo "$as_me:$LINENO: result: $JAVA" >&5
25800 echo "${ECHO_T}$JAVA" >&6; }
25801 else
25802   { echo "$as_me:$LINENO: result: no" >&5
25803 echo "${ECHO_T}no" >&6; }
25804 fi
25805
25806
25807 # Extract the first word of "jar  ", so it can be a program name with args.
25808 set dummy jar  ; ac_word=$2
25809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25811 if test "${ac_cv_path_JAR+set}" = set; then
25812   echo $ECHO_N "(cached) $ECHO_C" >&6
25813 else
25814   case $JAR in
25815   [\\/]* | ?:[\\/]*)
25816   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25817   ;;
25818   *)
25819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25820 for as_dir in $PATH
25821 do
25822   IFS=$as_save_IFS
25823   test -z "$as_dir" && as_dir=.
25824   for ac_exec_ext in '' $ac_executable_extensions; do
25825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25826     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25828     break 2
25829   fi
25830 done
25831 done
25832 IFS=$as_save_IFS
25833
25834   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
25835   ;;
25836 esac
25837 fi
25838 JAR=$ac_cv_path_JAR
25839 if test -n "$JAR"; then
25840   { echo "$as_me:$LINENO: result: $JAR" >&5
25841 echo "${ECHO_T}$JAR" >&6; }
25842 else
25843   { echo "$as_me:$LINENO: result: no" >&5
25844 echo "${ECHO_T}no" >&6; }
25845 fi
25846
25847
25848
25849 for ac_header in jni.h
25850 do
25851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25856   echo $ECHO_N "(cached) $ECHO_C" >&6
25857 fi
25858 ac_res=`eval echo '${'$as_ac_Header'}'`
25859                { echo "$as_me:$LINENO: result: $ac_res" >&5
25860 echo "${ECHO_T}$ac_res" >&6; }
25861 else
25862   # Is the header compilable?
25863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25865 cat >conftest.$ac_ext <<_ACEOF
25866 /* confdefs.h.  */
25867 _ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h.  */
25871 $ac_includes_default
25872 #include <$ac_header>
25873 _ACEOF
25874 rm -f conftest.$ac_objext
25875 if { (ac_try="$ac_compile"
25876 case "(($ac_try" in
25877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25878   *) ac_try_echo=$ac_try;;
25879 esac
25880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25881   (eval "$ac_compile") 2>conftest.er1
25882   ac_status=$?
25883   grep -v '^ *+' conftest.er1 >conftest.err
25884   rm -f conftest.er1
25885   cat conftest.err >&5
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); } && {
25888          test -z "$ac_c_werror_flag" ||
25889          test ! -s conftest.err
25890        } && test -s conftest.$ac_objext; then
25891   ac_header_compiler=yes
25892 else
25893   echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25895
25896         ac_header_compiler=no
25897 fi
25898
25899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25901 echo "${ECHO_T}$ac_header_compiler" >&6; }
25902
25903 # Is the header present?
25904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25906 cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 #include <$ac_header>
25913 _ACEOF
25914 if { (ac_try="$ac_cpp conftest.$ac_ext"
25915 case "(($ac_try" in
25916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25917   *) ac_try_echo=$ac_try;;
25918 esac
25919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25921   ac_status=$?
25922   grep -v '^ *+' conftest.er1 >conftest.err
25923   rm -f conftest.er1
25924   cat conftest.err >&5
25925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926   (exit $ac_status); } >/dev/null && {
25927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25928          test ! -s conftest.err
25929        }; then
25930   ac_header_preproc=yes
25931 else
25932   echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25934
25935   ac_header_preproc=no
25936 fi
25937
25938 rm -f conftest.err conftest.$ac_ext
25939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25940 echo "${ECHO_T}$ac_header_preproc" >&6; }
25941
25942 # So?  What about this header?
25943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25944   yes:no: )
25945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25949     ac_header_preproc=yes
25950     ;;
25951   no:yes:* )
25952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25964     ( cat <<\_ASBOX
25965 ## -------------------------------------------------- ##
25966 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25967 ## -------------------------------------------------- ##
25968 _ASBOX
25969      ) | sed "s/^/$as_me: WARNING:     /" >&2
25970     ;;
25971 esac
25972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25975   echo $ECHO_N "(cached) $ECHO_C" >&6
25976 else
25977   eval "$as_ac_Header=\$ac_header_preproc"
25978 fi
25979 ac_res=`eval echo '${'$as_ac_Header'}'`
25980                { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25982
25983 fi
25984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25985   cat >>confdefs.h <<_ACEOF
25986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25987 _ACEOF
25988
25989 fi
25990
25991 done
25992
25993 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25994 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
25995 if test -n "$JAVAC"   \
25996    && test -n "$JAVA" \
25997    && test -n "$JAR"  \
25998    && test "x$ac_cv_header_jni_h" = "xyes" ; then
25999
26000    use_java="yes"
26001 else
26002    use_java="no"
26003 fi
26004 { echo "$as_me:$LINENO: result: $use_java" >&5
26005 echo "${ECHO_T}$use_java" >&6; }
26006  if test "x$use_java" = "xyes"; then
26007   HAVE_JAVA_TRUE=
26008   HAVE_JAVA_FALSE='#'
26009 else
26010   HAVE_JAVA_TRUE='#'
26011   HAVE_JAVA_FALSE=
26012 fi
26013
26014
26015 #####################
26016 ## Check for programs
26017 ##
26018
26019
26020   { echo "$as_me:$LINENO: result: " >&5
26021 echo "${ECHO_T}" >&6; }
26022   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26023 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26024
26025 # Extract the first word of "bash", so it can be a program name with args.
26026 set dummy bash; ac_word=$2
26027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26029 if test "${ac_cv_prog_BASH+set}" = set; then
26030   echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032   if test -n "$BASH"; then
26033   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26034 else
26035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26036 for as_dir in $PATH
26037 do
26038   IFS=$as_save_IFS
26039   test -z "$as_dir" && as_dir=.
26040   for ac_exec_ext in '' $ac_executable_extensions; do
26041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26042     ac_cv_prog_BASH="`which bash`"
26043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26044     break 2
26045   fi
26046 done
26047 done
26048 IFS=$as_save_IFS
26049
26050   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26051 fi
26052 fi
26053 BASH=$ac_cv_prog_BASH
26054 if test -n "$BASH"; then
26055   { echo "$as_me:$LINENO: result: $BASH" >&5
26056 echo "${ECHO_T}$BASH" >&6; }
26057 else
26058   { echo "$as_me:$LINENO: result: no" >&5
26059 echo "${ECHO_T}no" >&6; }
26060 fi
26061
26062
26063 WARNING="This file is generated, do not edit"
26064
26065
26066
26067 # Can we rebuild the parsers?
26068 # We really want flex and refuse other lex. So, the parser is portable and
26069 # does not induce extra lib dependency
26070 for ac_prog in flex lex
26071 do
26072   # Extract the first word of "$ac_prog", so it can be a program name with args.
26073 set dummy $ac_prog; ac_word=$2
26074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26076 if test "${ac_cv_prog_LEX+set}" = set; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   if test -n "$LEX"; then
26080   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26081 else
26082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26083 for as_dir in $PATH
26084 do
26085   IFS=$as_save_IFS
26086   test -z "$as_dir" && as_dir=.
26087   for ac_exec_ext in '' $ac_executable_extensions; do
26088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26089     ac_cv_prog_LEX="$ac_prog"
26090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26091     break 2
26092   fi
26093 done
26094 done
26095 IFS=$as_save_IFS
26096
26097 fi
26098 fi
26099 LEX=$ac_cv_prog_LEX
26100 if test -n "$LEX"; then
26101   { echo "$as_me:$LINENO: result: $LEX" >&5
26102 echo "${ECHO_T}$LEX" >&6; }
26103 else
26104   { echo "$as_me:$LINENO: result: no" >&5
26105 echo "${ECHO_T}no" >&6; }
26106 fi
26107
26108
26109   test -n "$LEX" && break
26110 done
26111 test -n "$LEX" || LEX=":"
26112
26113 if test "x$LEX" != "x:"; then
26114   cat >conftest.l <<_ACEOF
26115 %%
26116 a { ECHO; }
26117 b { REJECT; }
26118 c { yymore (); }
26119 d { yyless (1); }
26120 e { yyless (input () != 0); }
26121 f { unput (yytext[0]); }
26122 . { BEGIN INITIAL; }
26123 %%
26124 #ifdef YYTEXT_POINTER
26125 extern char *yytext;
26126 #endif
26127 int
26128 main (void)
26129 {
26130   return ! yylex () + ! yywrap ();
26131 }
26132 _ACEOF
26133 { (ac_try="$LEX conftest.l"
26134 case "(($ac_try" in
26135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26136   *) ac_try_echo=$ac_try;;
26137 esac
26138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26139   (eval "$LEX conftest.l") 2>&5
26140   ac_status=$?
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); }
26143 { echo "$as_me:$LINENO: checking lex output file root" >&5
26144 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26145 if test "${ac_cv_prog_lex_root+set}" = set; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148
26149 if test -f lex.yy.c; then
26150   ac_cv_prog_lex_root=lex.yy
26151 elif test -f lexyy.c; then
26152   ac_cv_prog_lex_root=lexyy
26153 else
26154   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26155 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26156    { (exit 1); exit 1; }; }
26157 fi
26158 fi
26159 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26160 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26161 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26162
26163 if test -z "${LEXLIB+set}"; then
26164   { echo "$as_me:$LINENO: checking lex library" >&5
26165 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26166 if test "${ac_cv_lib_lex+set}" = set; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169
26170     ac_save_LIBS=$LIBS
26171     ac_cv_lib_lex='none needed'
26172     for ac_lib in '' -lfl -ll; do
26173       LIBS="$ac_lib $ac_save_LIBS"
26174       cat >conftest.$ac_ext <<_ACEOF
26175 `cat $LEX_OUTPUT_ROOT.c`
26176 _ACEOF
26177 rm -f conftest.$ac_objext conftest$ac_exeext
26178 if { (ac_try="$ac_link"
26179 case "(($ac_try" in
26180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181   *) ac_try_echo=$ac_try;;
26182 esac
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184   (eval "$ac_link") 2>conftest.er1
26185   ac_status=$?
26186   grep -v '^ *+' conftest.er1 >conftest.err
26187   rm -f conftest.er1
26188   cat conftest.err >&5
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } && {
26191          test -z "$ac_c_werror_flag" ||
26192          test ! -s conftest.err
26193        } && test -s conftest$ac_exeext &&
26194        $as_test_x conftest$ac_exeext; then
26195   ac_cv_lib_lex=$ac_lib
26196 else
26197   echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200
26201 fi
26202
26203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26204       conftest$ac_exeext conftest.$ac_ext
26205       test "$ac_cv_lib_lex" != 'none needed' && break
26206     done
26207     LIBS=$ac_save_LIBS
26208
26209 fi
26210 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26211 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26212   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26213 fi
26214
26215
26216 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26217 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26218 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26219   echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221   # POSIX says lex can declare yytext either as a pointer or an array; the
26222 # default is implementation-dependent.  Figure out which it is, since
26223 # not all implementations provide the %pointer and %array declarations.
26224 ac_cv_prog_lex_yytext_pointer=no
26225 ac_save_LIBS=$LIBS
26226 LIBS="$LEXLIB $ac_save_LIBS"
26227 cat >conftest.$ac_ext <<_ACEOF
26228 #define YYTEXT_POINTER 1
26229 `cat $LEX_OUTPUT_ROOT.c`
26230 _ACEOF
26231 rm -f conftest.$ac_objext conftest$ac_exeext
26232 if { (ac_try="$ac_link"
26233 case "(($ac_try" in
26234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235   *) ac_try_echo=$ac_try;;
26236 esac
26237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238   (eval "$ac_link") 2>conftest.er1
26239   ac_status=$?
26240   grep -v '^ *+' conftest.er1 >conftest.err
26241   rm -f conftest.er1
26242   cat conftest.err >&5
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); } && {
26245          test -z "$ac_c_werror_flag" ||
26246          test ! -s conftest.err
26247        } && test -s conftest$ac_exeext &&
26248        $as_test_x conftest$ac_exeext; then
26249   ac_cv_prog_lex_yytext_pointer=yes
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254
26255 fi
26256
26257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26258       conftest$ac_exeext conftest.$ac_ext
26259 LIBS=$ac_save_LIBS
26260
26261 fi
26262 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26263 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26264 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26265
26266 cat >>confdefs.h <<\_ACEOF
26267 #define YYTEXT_POINTER 1
26268 _ACEOF
26269
26270 fi
26271 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26272
26273 fi
26274
26275   if test "$LEX" != flex; then
26276     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26277 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26278     LEX=${am_missing_run}flex
26279     LEXLIB=''
26280
26281   else
26282     if test "x2.5.30" != "x" ; then
26283                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26284
26285       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26286       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26287       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26288
26289       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26290       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26291       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26292
26293       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26294          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26295          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26296       then
26297         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26298 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26299         LEX=${am_missing_run}flex
26300         LEXLIB=''
26301
26302       else
26303         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26304 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26305       fi
26306     fi
26307   fi
26308
26309
26310 # Can we rebuild the xml-lexers from the XML specification?
26311 # if not, simply touch the flex source files (which are distributed in
26312 #  tarballs even if generated by flexml) and hope for the best.
26313 # Extract the first word of "flexml", so it can be a program name with args.
26314 set dummy flexml; ac_word=$2
26315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26317 if test "${ac_cv_prog_FLEXML+set}" = set; then
26318   echo $ECHO_N "(cached) $ECHO_C" >&6
26319 else
26320   if test -n "$FLEXML"; then
26321   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26322 else
26323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26324 for as_dir in $PATH
26325 do
26326   IFS=$as_save_IFS
26327   test -z "$as_dir" && as_dir=.
26328   for ac_exec_ext in '' $ac_executable_extensions; do
26329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26330     ac_cv_prog_FLEXML="`which flexml`"
26331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26332     break 2
26333   fi
26334 done
26335 done
26336 IFS=$as_save_IFS
26337
26338   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26339 fi
26340 fi
26341 FLEXML=$ac_cv_prog_FLEXML
26342 if test -n "$FLEXML"; then
26343   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26344 echo "${ECHO_T}$FLEXML" >&6; }
26345 else
26346   { echo "$as_me:$LINENO: result: no" >&5
26347 echo "${ECHO_T}no" >&6; }
26348 fi
26349
26350
26351  if test x$FLEXML != xNOTFOUND; then
26352   HAVE_FLEXML_TRUE=
26353   HAVE_FLEXML_FALSE='#'
26354 else
26355   HAVE_FLEXML_TRUE='#'
26356   HAVE_FLEXML_FALSE=
26357 fi
26358
26359
26360 if test x$USE_MAINTAINER_MODE = xyes
26361 then
26362    # Check for doxygen when in maintainer mode since dist* targets fail
26363    # without it
26364    # Extract the first word of "doxygen", so it can be a program name with args.
26365 set dummy doxygen; ac_word=$2
26366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26368 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26369   echo $ECHO_N "(cached) $ECHO_C" >&6
26370 else
26371   case $DOXYGEN in
26372   [\\/]* | ?:[\\/]*)
26373   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26374   ;;
26375   *)
26376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26377 for as_dir in $PATH
26378 do
26379   IFS=$as_save_IFS
26380   test -z "$as_dir" && as_dir=.
26381   for ac_exec_ext in '' $ac_executable_extensions; do
26382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26383     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26385     break 2
26386   fi
26387 done
26388 done
26389 IFS=$as_save_IFS
26390
26391   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26392   ;;
26393 esac
26394 fi
26395 DOXYGEN=$ac_cv_path_DOXYGEN
26396 if test -n "$DOXYGEN"; then
26397   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26398 echo "${ECHO_T}$DOXYGEN" >&6; }
26399 else
26400   { echo "$as_me:$LINENO: result: no" >&5
26401 echo "${ECHO_T}no" >&6; }
26402 fi
26403
26404
26405    if test x$DOXYGEN = x ; then
26406      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26407 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26408    { (exit 1); exit 1; }; }
26409    fi
26410 fi
26411
26412 # Can we extract really usable backtraces? (also need the popen function)
26413 # Extract the first word of "addr2line", so it can be a program name with args.
26414 set dummy addr2line; ac_word=$2
26415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26417 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26418   echo $ECHO_N "(cached) $ECHO_C" >&6
26419 else
26420   case $ADDR2LINE in
26421   [\\/]* | ?:[\\/]*)
26422   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26423   ;;
26424   *)
26425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26426 for as_dir in $PATH
26427 do
26428   IFS=$as_save_IFS
26429   test -z "$as_dir" && as_dir=.
26430   for ac_exec_ext in '' $ac_executable_extensions; do
26431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26432     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26434     break 2
26435   fi
26436 done
26437 done
26438 IFS=$as_save_IFS
26439
26440   ;;
26441 esac
26442 fi
26443 ADDR2LINE=$ac_cv_path_ADDR2LINE
26444 if test -n "$ADDR2LINE"; then
26445   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26446 echo "${ECHO_T}$ADDR2LINE" >&6; }
26447 else
26448   { echo "$as_me:$LINENO: result: no" >&5
26449 echo "${ECHO_T}no" >&6; }
26450 fi
26451
26452
26453 if test x$ADDR2LINE != x ; then
26454
26455 cat >>confdefs.h <<_ACEOF
26456 #define ADDR2LINE "$ADDR2LINE"
26457 _ACEOF
26458
26459 fi
26460
26461
26462 # Can we make status line about the compilation result?
26463 # Extract the first word of "md5sum", so it can be a program name with args.
26464 set dummy md5sum; ac_word=$2
26465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26467 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26468   echo $ECHO_N "(cached) $ECHO_C" >&6
26469 else
26470   if test -n "$MD5SUM"; then
26471   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26472 else
26473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26474 for as_dir in $PATH
26475 do
26476   IFS=$as_save_IFS
26477   test -z "$as_dir" && as_dir=.
26478   for ac_exec_ext in '' $ac_executable_extensions; do
26479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26480     ac_cv_prog_MD5SUM="`which md5sum`"
26481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26482     break 2
26483   fi
26484 done
26485 done
26486 IFS=$as_save_IFS
26487
26488 fi
26489 fi
26490 MD5SUM=$ac_cv_prog_MD5SUM
26491 if test -n "$MD5SUM"; then
26492   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26493 echo "${ECHO_T}$MD5SUM" >&6; }
26494 else
26495   { echo "$as_me:$LINENO: result: no" >&5
26496 echo "${ECHO_T}no" >&6; }
26497 fi
26498
26499
26500 if test x$MD5SUM != xno ; then
26501   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26502                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26503 else
26504   build_version="no_md5sum_binary"
26505 fi
26506 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26507
26508
26509 ###################
26510 ## Makes the output
26511 ##
26512
26513
26514 #
26515 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26516 #  src/amok/Makefile
26517
26518
26519   { echo "$as_me:$LINENO: result: " >&5
26520 echo "${ECHO_T}" >&6; }
26521   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26522 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26523
26524
26525 # Core of the libraries
26526
26527 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26528
26529
26530 # Tools being embeeded in gramine (stub generator)
26531 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26532
26533
26534
26535 # GRAMINE_CUT_BEGIN
26536
26537 # Tools NOT being embeeded in gramine
26538 ac_config_files="$ac_config_files tools/graspe-slave"
26539
26540
26541 # Testsuite
26542
26543 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26544
26545
26546 # Documentation
26547 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26548
26549
26550 # Examples
26551
26552 #      examples/gras/p2p/Makefile
26553 #      examples/gras/p2p/chord/Makefile
26554 #      examples/gras/p2p/can/Makefile
26555
26556
26557 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26558
26559
26560
26561 # GRAMINE_CUT_END
26562
26563 cat >confcache <<\_ACEOF
26564 # This file is a shell script that caches the results of configure
26565 # tests run on this system so they can be shared between configure
26566 # scripts and configure runs, see configure's option --config-cache.
26567 # It is not useful on other systems.  If it contains results you don't
26568 # want to keep, you may remove or edit it.
26569 #
26570 # config.status only pays attention to the cache file if you give it
26571 # the --recheck option to rerun configure.
26572 #
26573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26575 # following values.
26576
26577 _ACEOF
26578
26579 # The following way of writing the cache mishandles newlines in values,
26580 # but we know of no workaround that is simple, portable, and efficient.
26581 # So, we kill variables containing newlines.
26582 # Ultrix sh set writes to stderr and can't be redirected directly,
26583 # and sets the high bit in the cache file unless we assign to the vars.
26584 (
26585   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26586     eval ac_val=\$$ac_var
26587     case $ac_val in #(
26588     *${as_nl}*)
26589       case $ac_var in #(
26590       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26592       esac
26593       case $ac_var in #(
26594       _ | IFS | as_nl) ;; #(
26595       *) $as_unset $ac_var ;;
26596       esac ;;
26597     esac
26598   done
26599
26600   (set) 2>&1 |
26601     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26602     *${as_nl}ac_space=\ *)
26603       # `set' does not quote correctly, so add quotes (double-quote
26604       # substitution turns \\\\ into \\, and sed turns \\ into \).
26605       sed -n \
26606         "s/'/'\\\\''/g;
26607           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26608       ;; #(
26609     *)
26610       # `set' quotes correctly as required by POSIX, so do not add quotes.
26611       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26612       ;;
26613     esac |
26614     sort
26615 ) |
26616   sed '
26617      /^ac_cv_env_/b end
26618      t clear
26619      :clear
26620      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26621      t end
26622      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26623      :end' >>confcache
26624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26625   if test -w "$cache_file"; then
26626     test "x$cache_file" != "x/dev/null" &&
26627       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26628 echo "$as_me: updating cache $cache_file" >&6;}
26629     cat confcache >$cache_file
26630   else
26631     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26632 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26633   fi
26634 fi
26635 rm -f confcache
26636
26637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26638 # Let make expand exec_prefix.
26639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26640
26641 DEFS=-DHAVE_CONFIG_H
26642
26643 ac_libobjs=
26644 ac_ltlibobjs=
26645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26646   # 1. Remove the extension, and $U if already installed.
26647   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26648   ac_i=`echo "$ac_i" | sed "$ac_script"`
26649   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26650   #    will be set to the directory where LIBOBJS objects are built.
26651   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26652   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26653 done
26654 LIBOBJS=$ac_libobjs
26655
26656 LTLIBOBJS=$ac_ltlibobjs
26657
26658
26659 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26660   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26661 Usually this means the macro was only invoked conditionally." >&5
26662 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26663 Usually this means the macro was only invoked conditionally." >&2;}
26664    { (exit 1); exit 1; }; }
26665 fi
26666 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26667   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26668 Usually this means the macro was only invoked conditionally." >&5
26669 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26670 Usually this means the macro was only invoked conditionally." >&2;}
26671    { (exit 1); exit 1; }; }
26672 fi
26673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26674   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26675 Usually this means the macro was only invoked conditionally." >&5
26676 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26677 Usually this means the macro was only invoked conditionally." >&2;}
26678    { (exit 1); exit 1; }; }
26679 fi
26680 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26681   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26682 Usually this means the macro was only invoked conditionally." >&5
26683 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26684 Usually this means the macro was only invoked conditionally." >&2;}
26685    { (exit 1); exit 1; }; }
26686 fi
26687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26688   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26689 Usually this means the macro was only invoked conditionally." >&5
26690 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26691 Usually this means the macro was only invoked conditionally." >&2;}
26692    { (exit 1); exit 1; }; }
26693 fi
26694 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26695   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26696 Usually this means the macro was only invoked conditionally." >&5
26697 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26698 Usually this means the macro was only invoked conditionally." >&2;}
26699    { (exit 1); exit 1; }; }
26700 fi
26701 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26702   { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26703 Usually this means the macro was only invoked conditionally." >&5
26704 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26705 Usually this means the macro was only invoked conditionally." >&2;}
26706    { (exit 1); exit 1; }; }
26707 fi
26708 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26709   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26710 Usually this means the macro was only invoked conditionally." >&5
26711 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26712 Usually this means the macro was only invoked conditionally." >&2;}
26713    { (exit 1); exit 1; }; }
26714 fi
26715 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26716   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26717 Usually this means the macro was only invoked conditionally." >&5
26718 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26719 Usually this means the macro was only invoked conditionally." >&2;}
26720    { (exit 1); exit 1; }; }
26721 fi
26722 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26723   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26724 Usually this means the macro was only invoked conditionally." >&5
26725 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26726 Usually this means the macro was only invoked conditionally." >&2;}
26727    { (exit 1); exit 1; }; }
26728 fi
26729 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
26730   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
26731 Usually this means the macro was only invoked conditionally." >&5
26732 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
26733 Usually this means the macro was only invoked conditionally." >&2;}
26734    { (exit 1); exit 1; }; }
26735 fi
26736 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26737   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26738 Usually this means the macro was only invoked conditionally." >&5
26739 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26740 Usually this means the macro was only invoked conditionally." >&2;}
26741    { (exit 1); exit 1; }; }
26742 fi
26743
26744 : ${CONFIG_STATUS=./config.status}
26745 ac_clean_files_save=$ac_clean_files
26746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26749 cat >$CONFIG_STATUS <<_ACEOF
26750 #! $SHELL
26751 # Generated by $as_me.
26752 # Run this file to recreate the current configuration.
26753 # Compiler output produced by configure, useful for debugging
26754 # configure, is in config.log if it exists.
26755
26756 debug=false
26757 ac_cs_recheck=false
26758 ac_cs_silent=false
26759 SHELL=\${CONFIG_SHELL-$SHELL}
26760 _ACEOF
26761
26762 cat >>$CONFIG_STATUS <<\_ACEOF
26763 ## --------------------- ##
26764 ## M4sh Initialization.  ##
26765 ## --------------------- ##
26766
26767 # Be more Bourne compatible
26768 DUALCASE=1; export DUALCASE # for MKS sh
26769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26770   emulate sh
26771   NULLCMD=:
26772   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26773   # is contrary to our usage.  Disable this feature.
26774   alias -g '${1+"$@"}'='"$@"'
26775   setopt NO_GLOB_SUBST
26776 else
26777   case `(set -o) 2>/dev/null` in
26778   *posix*) set -o posix ;;
26779 esac
26780
26781 fi
26782
26783
26784
26785
26786 # PATH needs CR
26787 # Avoid depending upon Character Ranges.
26788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26791 as_cr_digits='0123456789'
26792 as_cr_alnum=$as_cr_Letters$as_cr_digits
26793
26794 # The user is always right.
26795 if test "${PATH_SEPARATOR+set}" != set; then
26796   echo "#! /bin/sh" >conf$$.sh
26797   echo  "exit 0"   >>conf$$.sh
26798   chmod +x conf$$.sh
26799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26800     PATH_SEPARATOR=';'
26801   else
26802     PATH_SEPARATOR=:
26803   fi
26804   rm -f conf$$.sh
26805 fi
26806
26807 # Support unset when possible.
26808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26809   as_unset=unset
26810 else
26811   as_unset=false
26812 fi
26813
26814
26815 # IFS
26816 # We need space, tab and new line, in precisely that order.  Quoting is
26817 # there to prevent editors from complaining about space-tab.
26818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26819 # splitting by setting IFS to empty value.)
26820 as_nl='
26821 '
26822 IFS=" ""        $as_nl"
26823
26824 # Find who we are.  Look in the path if we contain no directory separator.
26825 case $0 in
26826   *[\\/]* ) as_myself=$0 ;;
26827   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26828 for as_dir in $PATH
26829 do
26830   IFS=$as_save_IFS
26831   test -z "$as_dir" && as_dir=.
26832   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26833 done
26834 IFS=$as_save_IFS
26835
26836      ;;
26837 esac
26838 # We did not find ourselves, most probably we were run as `sh COMMAND'
26839 # in which case we are not to be found in the path.
26840 if test "x$as_myself" = x; then
26841   as_myself=$0
26842 fi
26843 if test ! -f "$as_myself"; then
26844   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26845   { (exit 1); exit 1; }
26846 fi
26847
26848 # Work around bugs in pre-3.0 UWIN ksh.
26849 for as_var in ENV MAIL MAILPATH
26850 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26851 done
26852 PS1='$ '
26853 PS2='> '
26854 PS4='+ '
26855
26856 # NLS nuisances.
26857 for as_var in \
26858   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26859   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26860   LC_TELEPHONE LC_TIME
26861 do
26862   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26863     eval $as_var=C; export $as_var
26864   else
26865     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26866   fi
26867 done
26868
26869 # Required to use basename.
26870 if expr a : '\(a\)' >/dev/null 2>&1 &&
26871    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26872   as_expr=expr
26873 else
26874   as_expr=false
26875 fi
26876
26877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26878   as_basename=basename
26879 else
26880   as_basename=false
26881 fi
26882
26883
26884 # Name of the executable.
26885 as_me=`$as_basename -- "$0" ||
26886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26887          X"$0" : 'X\(//\)$' \| \
26888          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26889 echo X/"$0" |
26890     sed '/^.*\/\([^/][^/]*\)\/*$/{
26891             s//\1/
26892             q
26893           }
26894           /^X\/\(\/\/\)$/{
26895             s//\1/
26896             q
26897           }
26898           /^X\/\(\/\).*/{
26899             s//\1/
26900             q
26901           }
26902           s/.*/./; q'`
26903
26904 # CDPATH.
26905 $as_unset CDPATH
26906
26907
26908
26909   as_lineno_1=$LINENO
26910   as_lineno_2=$LINENO
26911   test "x$as_lineno_1" != "x$as_lineno_2" &&
26912   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26913
26914   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26915   # uniformly replaced by the line number.  The first 'sed' inserts a
26916   # line-number line after each line using $LINENO; the second 'sed'
26917   # does the real work.  The second script uses 'N' to pair each
26918   # line-number line with the line containing $LINENO, and appends
26919   # trailing '-' during substitution so that $LINENO is not a special
26920   # case at line end.
26921   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26922   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26923   # E. McMahon (1931-1989) for sed's syntax.  :-)
26924   sed -n '
26925     p
26926     /[$]LINENO/=
26927   ' <$as_myself |
26928     sed '
26929       s/[$]LINENO.*/&-/
26930       t lineno
26931       b
26932       :lineno
26933       N
26934       :loop
26935       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26936       t loop
26937       s/-\n.*//
26938     ' >$as_me.lineno &&
26939   chmod +x "$as_me.lineno" ||
26940     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26941    { (exit 1); exit 1; }; }
26942
26943   # Don't try to exec as it changes $[0], causing all sort of problems
26944   # (the dirname of $[0] is not the place where we might find the
26945   # original and so on.  Autoconf is especially sensitive to this).
26946   . "./$as_me.lineno"
26947   # Exit status is that of the last command.
26948   exit
26949 }
26950
26951
26952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26953   as_dirname=dirname
26954 else
26955   as_dirname=false
26956 fi
26957
26958 ECHO_C= ECHO_N= ECHO_T=
26959 case `echo -n x` in
26960 -n*)
26961   case `echo 'x\c'` in
26962   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26963   *)   ECHO_C='\c';;
26964   esac;;
26965 *)
26966   ECHO_N='-n';;
26967 esac
26968
26969 if expr a : '\(a\)' >/dev/null 2>&1 &&
26970    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26971   as_expr=expr
26972 else
26973   as_expr=false
26974 fi
26975
26976 rm -f conf$$ conf$$.exe conf$$.file
26977 if test -d conf$$.dir; then
26978   rm -f conf$$.dir/conf$$.file
26979 else
26980   rm -f conf$$.dir
26981   mkdir conf$$.dir
26982 fi
26983 echo >conf$$.file
26984 if ln -s conf$$.file conf$$ 2>/dev/null; then
26985   as_ln_s='ln -s'
26986   # ... but there are two gotchas:
26987   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26988   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26989   # In both cases, we have to default to `cp -p'.
26990   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26991     as_ln_s='cp -p'
26992 elif ln conf$$.file conf$$ 2>/dev/null; then
26993   as_ln_s=ln
26994 else
26995   as_ln_s='cp -p'
26996 fi
26997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26998 rmdir conf$$.dir 2>/dev/null
26999
27000 if mkdir -p . 2>/dev/null; then
27001   as_mkdir_p=:
27002 else
27003   test -d ./-p && rmdir ./-p
27004   as_mkdir_p=false
27005 fi
27006
27007 if test -x / >/dev/null 2>&1; then
27008   as_test_x='test -x'
27009 else
27010   if ls -dL / >/dev/null 2>&1; then
27011     as_ls_L_option=L
27012   else
27013     as_ls_L_option=
27014   fi
27015   as_test_x='
27016     eval sh -c '\''
27017       if test -d "$1"; then
27018         test -d "$1/.";
27019       else
27020         case $1 in
27021         -*)set "./$1";;
27022         esac;
27023         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27024         ???[sx]*):;;*)false;;esac;fi
27025     '\'' sh
27026   '
27027 fi
27028 as_executable_p=$as_test_x
27029
27030 # Sed expression to map a string onto a valid CPP name.
27031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27032
27033 # Sed expression to map a string onto a valid variable name.
27034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27035
27036
27037 exec 6>&1
27038
27039 # Save the log message, to keep $[0] and so on meaningful, and to
27040 # report actual input values of CONFIG_FILES etc. instead of their
27041 # values after options handling.
27042 ac_log="
27043 This file was extended by simgrid $as_me 3.3-cvs, which was
27044 generated by GNU Autoconf 2.61.  Invocation command line was
27045
27046   CONFIG_FILES    = $CONFIG_FILES
27047   CONFIG_HEADERS  = $CONFIG_HEADERS
27048   CONFIG_LINKS    = $CONFIG_LINKS
27049   CONFIG_COMMANDS = $CONFIG_COMMANDS
27050   $ $0 $@
27051
27052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27053 "
27054
27055 _ACEOF
27056
27057 cat >>$CONFIG_STATUS <<_ACEOF
27058 # Files that config.status was made for.
27059 config_files="$ac_config_files"
27060 config_headers="$ac_config_headers"
27061 config_commands="$ac_config_commands"
27062
27063 _ACEOF
27064
27065 cat >>$CONFIG_STATUS <<\_ACEOF
27066 ac_cs_usage="\
27067 \`$as_me' instantiates files from templates according to the
27068 current configuration.
27069
27070 Usage: $0 [OPTIONS] [FILE]...
27071
27072   -h, --help       print this help, then exit
27073   -V, --version    print version number and configuration settings, then exit
27074   -q, --quiet      do not print progress messages
27075   -d, --debug      don't remove temporary files
27076       --recheck    update $as_me by reconfiguring in the same conditions
27077   --file=FILE[:TEMPLATE]
27078                    instantiate the configuration file FILE
27079   --header=FILE[:TEMPLATE]
27080                    instantiate the configuration header FILE
27081
27082 Configuration files:
27083 $config_files
27084
27085 Configuration headers:
27086 $config_headers
27087
27088 Configuration commands:
27089 $config_commands
27090
27091 Report bugs to <bug-autoconf@gnu.org>."
27092
27093 _ACEOF
27094 cat >>$CONFIG_STATUS <<_ACEOF
27095 ac_cs_version="\\
27096 simgrid config.status 3.3-cvs
27097 configured by $0, generated by GNU Autoconf 2.61,
27098   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27099
27100 Copyright (C) 2006 Free Software Foundation, Inc.
27101 This config.status script is free software; the Free Software Foundation
27102 gives unlimited permission to copy, distribute and modify it."
27103
27104 ac_pwd='$ac_pwd'
27105 srcdir='$srcdir'
27106 INSTALL='$INSTALL'
27107 MKDIR_P='$MKDIR_P'
27108 _ACEOF
27109
27110 cat >>$CONFIG_STATUS <<\_ACEOF
27111 # If no file are specified by the user, then we need to provide default
27112 # value.  By we need to know if files were specified by the user.
27113 ac_need_defaults=:
27114 while test $# != 0
27115 do
27116   case $1 in
27117   --*=*)
27118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27119     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27120     ac_shift=:
27121     ;;
27122   *)
27123     ac_option=$1
27124     ac_optarg=$2
27125     ac_shift=shift
27126     ;;
27127   esac
27128
27129   case $ac_option in
27130   # Handling of the options.
27131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27132     ac_cs_recheck=: ;;
27133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27134     echo "$ac_cs_version"; exit ;;
27135   --debug | --debu | --deb | --de | --d | -d )
27136     debug=: ;;
27137   --file | --fil | --fi | --f )
27138     $ac_shift
27139     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27140     ac_need_defaults=false;;
27141   --header | --heade | --head | --hea )
27142     $ac_shift
27143     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27144     ac_need_defaults=false;;
27145   --he | --h)
27146     # Conflict between --help and --header
27147     { echo "$as_me: error: ambiguous option: $1
27148 Try \`$0 --help' for more information." >&2
27149    { (exit 1); exit 1; }; };;
27150   --help | --hel | -h )
27151     echo "$ac_cs_usage"; exit ;;
27152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27153   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27154     ac_cs_silent=: ;;
27155
27156   # This is an error.
27157   -*) { echo "$as_me: error: unrecognized option: $1
27158 Try \`$0 --help' for more information." >&2
27159    { (exit 1); exit 1; }; } ;;
27160
27161   *) ac_config_targets="$ac_config_targets $1"
27162      ac_need_defaults=false ;;
27163
27164   esac
27165   shift
27166 done
27167
27168 ac_configure_extra_args=
27169
27170 if $ac_cs_silent; then
27171   exec 6>/dev/null
27172   ac_configure_extra_args="$ac_configure_extra_args --silent"
27173 fi
27174
27175 _ACEOF
27176 cat >>$CONFIG_STATUS <<_ACEOF
27177 if \$ac_cs_recheck; then
27178   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27179   CONFIG_SHELL=$SHELL
27180   export CONFIG_SHELL
27181   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27182 fi
27183
27184 _ACEOF
27185 cat >>$CONFIG_STATUS <<\_ACEOF
27186 exec 5>>config.log
27187 {
27188   echo
27189   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27190 ## Running $as_me. ##
27191 _ASBOX
27192   echo "$ac_log"
27193 } >&5
27194
27195 _ACEOF
27196 cat >>$CONFIG_STATUS <<_ACEOF
27197 #
27198 # INIT-COMMANDS
27199 #
27200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27201
27202 _ACEOF
27203
27204 cat >>$CONFIG_STATUS <<\_ACEOF
27205
27206 # Handling of arguments.
27207 for ac_config_target in $ac_config_targets
27208 do
27209   case $ac_config_target in
27210     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27211     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27212     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27213     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27214     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27215     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27216     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27217     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27218     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27219     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27220     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27221     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27222     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27223     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27224     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27225     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27226     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27227     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27228     "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
27229     "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
27230     "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
27231     "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
27232     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27233     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27234     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27235     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27236     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27237     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27238     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27239     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27240     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27241     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27242     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27243     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27244     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27245     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27246     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27247     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27248     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27249     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27250     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27251     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27252     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27253     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27254     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27255     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27256     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27257
27258   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27259 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27260    { (exit 1); exit 1; }; };;
27261   esac
27262 done
27263
27264
27265 # If the user did not use the arguments to specify the items to instantiate,
27266 # then the envvar interface is used.  Set only those that are not.
27267 # We use the long form for the default assignment because of an extremely
27268 # bizarre bug on SunOS 4.1.3.
27269 if $ac_need_defaults; then
27270   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27271   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27272   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27273 fi
27274
27275 # Have a temporary directory for convenience.  Make it in the build tree
27276 # simply because there is no reason against having it here, and in addition,
27277 # creating and moving files from /tmp can sometimes cause problems.
27278 # Hook for its removal unless debugging.
27279 # Note that there is a small window in which the directory will not be cleaned:
27280 # after its creation but before its name has been assigned to `$tmp'.
27281 $debug ||
27282 {
27283   tmp=
27284   trap 'exit_status=$?
27285   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27286 ' 0
27287   trap '{ (exit 1); exit 1; }' 1 2 13 15
27288 }
27289 # Create a (secure) tmp directory for tmp files.
27290
27291 {
27292   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27293   test -n "$tmp" && test -d "$tmp"
27294 }  ||
27295 {
27296   tmp=./conf$$-$RANDOM
27297   (umask 077 && mkdir "$tmp")
27298 } ||
27299 {
27300    echo "$me: cannot create a temporary directory in ." >&2
27301    { (exit 1); exit 1; }
27302 }
27303
27304 #
27305 # Set up the sed scripts for CONFIG_FILES section.
27306 #
27307
27308 # No need to generate the scripts if there are no CONFIG_FILES.
27309 # This happens for instance when ./config.status config.h
27310 if test -n "$CONFIG_FILES"; then
27311
27312 _ACEOF
27313
27314
27315
27316 ac_delim='%!_!# '
27317 for ac_last_try in false false false false false :; do
27318   cat >conf$$subs.sed <<_ACEOF
27319 SHELL!$SHELL$ac_delim
27320 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27321 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27322 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27323 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27324 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27325 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27326 exec_prefix!$exec_prefix$ac_delim
27327 prefix!$prefix$ac_delim
27328 program_transform_name!$program_transform_name$ac_delim
27329 bindir!$bindir$ac_delim
27330 sbindir!$sbindir$ac_delim
27331 libexecdir!$libexecdir$ac_delim
27332 datarootdir!$datarootdir$ac_delim
27333 datadir!$datadir$ac_delim
27334 sysconfdir!$sysconfdir$ac_delim
27335 sharedstatedir!$sharedstatedir$ac_delim
27336 localstatedir!$localstatedir$ac_delim
27337 includedir!$includedir$ac_delim
27338 oldincludedir!$oldincludedir$ac_delim
27339 docdir!$docdir$ac_delim
27340 infodir!$infodir$ac_delim
27341 htmldir!$htmldir$ac_delim
27342 dvidir!$dvidir$ac_delim
27343 pdfdir!$pdfdir$ac_delim
27344 psdir!$psdir$ac_delim
27345 libdir!$libdir$ac_delim
27346 localedir!$localedir$ac_delim
27347 mandir!$mandir$ac_delim
27348 DEFS!$DEFS$ac_delim
27349 ECHO_C!$ECHO_C$ac_delim
27350 ECHO_N!$ECHO_N$ac_delim
27351 ECHO_T!$ECHO_T$ac_delim
27352 LIBS!$LIBS$ac_delim
27353 build_alias!$build_alias$ac_delim
27354 host_alias!$host_alias$ac_delim
27355 target_alias!$target_alias$ac_delim
27356 build!$build$ac_delim
27357 build_cpu!$build_cpu$ac_delim
27358 build_vendor!$build_vendor$ac_delim
27359 build_os!$build_os$ac_delim
27360 host!$host$ac_delim
27361 host_cpu!$host_cpu$ac_delim
27362 host_vendor!$host_vendor$ac_delim
27363 host_os!$host_os$ac_delim
27364 target!$target$ac_delim
27365 target_cpu!$target_cpu$ac_delim
27366 target_vendor!$target_vendor$ac_delim
27367 target_os!$target_os$ac_delim
27368 GCJ!$GCJ$ac_delim
27369 GCJFLAGS!$GCJFLAGS$ac_delim
27370 am__leading_dot!$am__leading_dot$ac_delim
27371 DEPDIR!$DEPDIR$ac_delim
27372 am__include!$am__include$ac_delim
27373 am__quote!$am__quote$ac_delim
27374 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27375 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27376 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27377 GCJDEPMODE!$GCJDEPMODE$ac_delim
27378 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27379 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27380 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27381 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27382 INSTALL_DATA!$INSTALL_DATA$ac_delim
27383 am__isrc!$am__isrc$ac_delim
27384 CYGPATH_W!$CYGPATH_W$ac_delim
27385 PACKAGE!$PACKAGE$ac_delim
27386 VERSION!$VERSION$ac_delim
27387 ACLOCAL!$ACLOCAL$ac_delim
27388 AUTOCONF!$AUTOCONF$ac_delim
27389 AUTOMAKE!$AUTOMAKE$ac_delim
27390 AUTOHEADER!$AUTOHEADER$ac_delim
27391 MAKEINFO!$MAKEINFO$ac_delim
27392 install_sh!$install_sh$ac_delim
27393 STRIP!$STRIP$ac_delim
27394 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27395 mkdir_p!$mkdir_p$ac_delim
27396 AWK!$AWK$ac_delim
27397 SET_MAKE!$SET_MAKE$ac_delim
27398 AMTAR!$AMTAR$ac_delim
27399 am__tar!$am__tar$ac_delim
27400 am__untar!$am__untar$ac_delim
27401 CC!$CC$ac_delim
27402 CFLAGS!$CFLAGS$ac_delim
27403 LDFLAGS!$LDFLAGS$ac_delim
27404 CPPFLAGS!$CPPFLAGS$ac_delim
27405 ac_ct_CC!$ac_ct_CC$ac_delim
27406 EXEEXT!$EXEEXT$ac_delim
27407 OBJEXT!$OBJEXT$ac_delim
27408 CCDEPMODE!$CCDEPMODE$ac_delim
27409 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27410 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27411 GREP!$GREP$ac_delim
27412 EGREP!$EGREP$ac_delim
27413 LN_S!$LN_S$ac_delim
27414 ECHO!$ECHO$ac_delim
27415 AR!$AR$ac_delim
27416 _ACEOF
27417
27418   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27419     break
27420   elif $ac_last_try; then
27421     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27422 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27423    { (exit 1); exit 1; }; }
27424   else
27425     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27426   fi
27427 done
27428
27429 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27430 if test -n "$ac_eof"; then
27431   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27432   ac_eof=`expr $ac_eof + 1`
27433 fi
27434
27435 cat >>$CONFIG_STATUS <<_ACEOF
27436 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27438 _ACEOF
27439 sed '
27440 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27441 s/^/s,@/; s/!/@,|#_!!_#|/
27442 :n
27443 t n
27444 s/'"$ac_delim"'$/,g/; t
27445 s/$/\\/; p
27446 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27447 ' >>$CONFIG_STATUS <conf$$subs.sed
27448 rm -f conf$$subs.sed
27449 cat >>$CONFIG_STATUS <<_ACEOF
27450 CEOF$ac_eof
27451 _ACEOF
27452
27453
27454 ac_delim='%!_!# '
27455 for ac_last_try in false false false false false :; do
27456   cat >conf$$subs.sed <<_ACEOF
27457 RANLIB!$RANLIB$ac_delim
27458 DLLTOOL!$DLLTOOL$ac_delim
27459 AS!$AS$ac_delim
27460 OBJDUMP!$OBJDUMP$ac_delim
27461 CPP!$CPP$ac_delim
27462 CXX!$CXX$ac_delim
27463 CXXFLAGS!$CXXFLAGS$ac_delim
27464 ac_ct_CXX!$ac_ct_CXX$ac_delim
27465 CXXDEPMODE!$CXXDEPMODE$ac_delim
27466 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27467 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27468 CXXCPP!$CXXCPP$ac_delim
27469 LIBTOOL!$LIBTOOL$ac_delim
27470 LIBOBJS!$LIBOBJS$ac_delim
27471 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27472 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27473 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27474 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27475 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27476 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27477 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27478 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27479 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27480 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27481 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27482 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27483 AM_CFLAGS!$AM_CFLAGS$ac_delim
27484 GRAS_DEP!$GRAS_DEP$ac_delim
27485 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27486 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27487 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27488 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27489 MAINT!$MAINT$ac_delim
27490 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27491 abs_builddir!$abs_builddir$ac_delim
27492 abs_srcdir!$abs_srcdir$ac_delim
27493 abs_top_builddir!$abs_top_builddir$ac_delim
27494 abs_top_srcdir!$abs_top_srcdir$ac_delim
27495 JAVAC!$JAVAC$ac_delim
27496 JAVA!$JAVA$ac_delim
27497 JAR!$JAR$ac_delim
27498 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27499 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27500 BASH!$BASH$ac_delim
27501 WARNING!$WARNING$ac_delim
27502 LEX!$LEX$ac_delim
27503 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27504 LEXLIB!$LEXLIB$ac_delim
27505 FLEXML!$FLEXML$ac_delim
27506 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27507 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27508 DOXYGEN!$DOXYGEN$ac_delim
27509 ADDR2LINE!$ADDR2LINE$ac_delim
27510 ac_configure_args!$ac_configure_args$ac_delim
27511 MD5SUM!$MD5SUM$ac_delim
27512 build_id!$build_id$ac_delim
27513 LTLIBOBJS!$LTLIBOBJS$ac_delim
27514 _ACEOF
27515
27516   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
27517     break
27518   elif $ac_last_try; then
27519     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27520 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27521    { (exit 1); exit 1; }; }
27522   else
27523     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27524   fi
27525 done
27526
27527 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27528 if test -n "$ac_eof"; then
27529   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27530   ac_eof=`expr $ac_eof + 1`
27531 fi
27532
27533 cat >>$CONFIG_STATUS <<_ACEOF
27534 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27536 _ACEOF
27537 sed '
27538 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27539 s/^/s,@/; s/!/@,|#_!!_#|/
27540 :n
27541 t n
27542 s/'"$ac_delim"'$/,g/; t
27543 s/$/\\/; p
27544 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27545 ' >>$CONFIG_STATUS <conf$$subs.sed
27546 rm -f conf$$subs.sed
27547 cat >>$CONFIG_STATUS <<_ACEOF
27548 :end
27549 s/|#_!!_#|//g
27550 CEOF$ac_eof
27551 _ACEOF
27552
27553
27554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27556 # trailing colons and then remove the whole line if VPATH becomes empty
27557 # (actually we leave an empty line to preserve line numbers).
27558 if test "x$srcdir" = x.; then
27559   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27560 s/:*\$(srcdir):*/:/
27561 s/:*\${srcdir}:*/:/
27562 s/:*@srcdir@:*/:/
27563 s/^\([^=]*=[     ]*\):*/\1/
27564 s/:*$//
27565 s/^[^=]*=[       ]*$//
27566 }'
27567 fi
27568
27569 cat >>$CONFIG_STATUS <<\_ACEOF
27570 fi # test -n "$CONFIG_FILES"
27571
27572
27573 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27574 do
27575   case $ac_tag in
27576   :[FHLC]) ac_mode=$ac_tag; continue;;
27577   esac
27578   case $ac_mode$ac_tag in
27579   :[FHL]*:*);;
27580   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27581 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27582    { (exit 1); exit 1; }; };;
27583   :[FH]-) ac_tag=-:-;;
27584   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27585   esac
27586   ac_save_IFS=$IFS
27587   IFS=:
27588   set x $ac_tag
27589   IFS=$ac_save_IFS
27590   shift
27591   ac_file=$1
27592   shift
27593
27594   case $ac_mode in
27595   :L) ac_source=$1;;
27596   :[FH])
27597     ac_file_inputs=
27598     for ac_f
27599     do
27600       case $ac_f in
27601       -) ac_f="$tmp/stdin";;
27602       *) # Look for the file first in the build tree, then in the source tree
27603          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27604          # because $ac_f cannot contain `:'.
27605          test -f "$ac_f" ||
27606            case $ac_f in
27607            [\\/$]*) false;;
27608            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27609            esac ||
27610            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27611 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27612    { (exit 1); exit 1; }; };;
27613       esac
27614       ac_file_inputs="$ac_file_inputs $ac_f"
27615     done
27616
27617     # Let's still pretend it is `configure' which instantiates (i.e., don't
27618     # use $as_me), people would be surprised to read:
27619     #    /* config.h.  Generated by config.status.  */
27620     configure_input="Generated from "`IFS=:
27621           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27622     if test x"$ac_file" != x-; then
27623       configure_input="$ac_file.  $configure_input"
27624       { echo "$as_me:$LINENO: creating $ac_file" >&5
27625 echo "$as_me: creating $ac_file" >&6;}
27626     fi
27627
27628     case $ac_tag in
27629     *:-:* | *:-) cat >"$tmp/stdin";;
27630     esac
27631     ;;
27632   esac
27633
27634   ac_dir=`$as_dirname -- "$ac_file" ||
27635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27636          X"$ac_file" : 'X\(//\)[^/]' \| \
27637          X"$ac_file" : 'X\(//\)$' \| \
27638          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27639 echo X"$ac_file" |
27640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27641             s//\1/
27642             q
27643           }
27644           /^X\(\/\/\)[^/].*/{
27645             s//\1/
27646             q
27647           }
27648           /^X\(\/\/\)$/{
27649             s//\1/
27650             q
27651           }
27652           /^X\(\/\).*/{
27653             s//\1/
27654             q
27655           }
27656           s/.*/./; q'`
27657   { as_dir="$ac_dir"
27658   case $as_dir in #(
27659   -*) as_dir=./$as_dir;;
27660   esac
27661   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27662     as_dirs=
27663     while :; do
27664       case $as_dir in #(
27665       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27666       *) as_qdir=$as_dir;;
27667       esac
27668       as_dirs="'$as_qdir' $as_dirs"
27669       as_dir=`$as_dirname -- "$as_dir" ||
27670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27671          X"$as_dir" : 'X\(//\)[^/]' \| \
27672          X"$as_dir" : 'X\(//\)$' \| \
27673          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27674 echo X"$as_dir" |
27675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27676             s//\1/
27677             q
27678           }
27679           /^X\(\/\/\)[^/].*/{
27680             s//\1/
27681             q
27682           }
27683           /^X\(\/\/\)$/{
27684             s//\1/
27685             q
27686           }
27687           /^X\(\/\).*/{
27688             s//\1/
27689             q
27690           }
27691           s/.*/./; q'`
27692       test -d "$as_dir" && break
27693     done
27694     test -z "$as_dirs" || eval "mkdir $as_dirs"
27695   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27697    { (exit 1); exit 1; }; }; }
27698   ac_builddir=.
27699
27700 case "$ac_dir" in
27701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27702 *)
27703   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27704   # A ".." for each directory in $ac_dir_suffix.
27705   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27706   case $ac_top_builddir_sub in
27707   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27708   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27709   esac ;;
27710 esac
27711 ac_abs_top_builddir=$ac_pwd
27712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27713 # for backward compatibility:
27714 ac_top_builddir=$ac_top_build_prefix
27715
27716 case $srcdir in
27717   .)  # We are building in place.
27718     ac_srcdir=.
27719     ac_top_srcdir=$ac_top_builddir_sub
27720     ac_abs_top_srcdir=$ac_pwd ;;
27721   [\\/]* | ?:[\\/]* )  # Absolute name.
27722     ac_srcdir=$srcdir$ac_dir_suffix;
27723     ac_top_srcdir=$srcdir
27724     ac_abs_top_srcdir=$srcdir ;;
27725   *) # Relative name.
27726     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27727     ac_top_srcdir=$ac_top_build_prefix$srcdir
27728     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27729 esac
27730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27731
27732
27733   case $ac_mode in
27734   :F)
27735   #
27736   # CONFIG_FILE
27737   #
27738
27739   case $INSTALL in
27740   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27741   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27742   esac
27743   ac_MKDIR_P=$MKDIR_P
27744   case $MKDIR_P in
27745   [\\/$]* | ?:[\\/]* ) ;;
27746   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27747   esac
27748 _ACEOF
27749
27750 cat >>$CONFIG_STATUS <<\_ACEOF
27751 # If the template does not know about datarootdir, expand it.
27752 # FIXME: This hack should be removed a few years after 2.60.
27753 ac_datarootdir_hack=; ac_datarootdir_seen=
27754
27755 case `sed -n '/datarootdir/ {
27756   p
27757   q
27758 }
27759 /@datadir@/p
27760 /@docdir@/p
27761 /@infodir@/p
27762 /@localedir@/p
27763 /@mandir@/p
27764 ' $ac_file_inputs` in
27765 *datarootdir*) ac_datarootdir_seen=yes;;
27766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27767   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27768 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27769 _ACEOF
27770 cat >>$CONFIG_STATUS <<_ACEOF
27771   ac_datarootdir_hack='
27772   s&@datadir@&$datadir&g
27773   s&@docdir@&$docdir&g
27774   s&@infodir@&$infodir&g
27775   s&@localedir@&$localedir&g
27776   s&@mandir@&$mandir&g
27777     s&\\\${datarootdir}&$datarootdir&g' ;;
27778 esac
27779 _ACEOF
27780
27781 # Neutralize VPATH when `$srcdir' = `.'.
27782 # Shell code in configure.ac might set extrasub.
27783 # FIXME: do we really want to maintain this feature?
27784 cat >>$CONFIG_STATUS <<_ACEOF
27785   sed "$ac_vpsub
27786 $extrasub
27787 _ACEOF
27788 cat >>$CONFIG_STATUS <<\_ACEOF
27789 :t
27790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27791 s&@configure_input@&$configure_input&;t t
27792 s&@top_builddir@&$ac_top_builddir_sub&;t t
27793 s&@srcdir@&$ac_srcdir&;t t
27794 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27795 s&@top_srcdir@&$ac_top_srcdir&;t t
27796 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27797 s&@builddir@&$ac_builddir&;t t
27798 s&@abs_builddir@&$ac_abs_builddir&;t t
27799 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27800 s&@INSTALL@&$ac_INSTALL&;t t
27801 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27802 $ac_datarootdir_hack
27803 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27804
27805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27806   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27807   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27808   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27809 which seems to be undefined.  Please make sure it is defined." >&5
27810 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27811 which seems to be undefined.  Please make sure it is defined." >&2;}
27812
27813   rm -f "$tmp/stdin"
27814   case $ac_file in
27815   -) cat "$tmp/out"; rm -f "$tmp/out";;
27816   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27817   esac
27818  ;;
27819   :H)
27820   #
27821   # CONFIG_HEADER
27822   #
27823 _ACEOF
27824
27825 # Transform confdefs.h into a sed script `conftest.defines', that
27826 # substitutes the proper values into config.h.in to produce config.h.
27827 rm -f conftest.defines conftest.tail
27828 # First, append a space to every undef/define line, to ease matching.
27829 echo 's/$/ /' >conftest.defines
27830 # Then, protect against being on the right side of a sed subst, or in
27831 # an unquoted here document, in config.status.  If some macros were
27832 # called several times there might be several #defines for the same
27833 # symbol, which is useless.  But do not sort them, since the last
27834 # AC_DEFINE must be honored.
27835 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27836 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27837 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27838 # PARAMS is the parameter list in the macro definition--in most cases, it's
27839 # just an empty string.
27840 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27841 ac_dB='\\)[      (].*,\\1define\\2'
27842 ac_dC=' '
27843 ac_dD=' ,'
27844
27845 uniq confdefs.h |
27846   sed -n '
27847         t rset
27848         :rset
27849         s/^[     ]*#[    ]*define[       ][      ]*//
27850         t ok
27851         d
27852         :ok
27853         s/[\\&,]/\\&/g
27854         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27855         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27856   ' >>conftest.defines
27857
27858 # Remove the space that was appended to ease matching.
27859 # Then replace #undef with comments.  This is necessary, for
27860 # example, in the case of _POSIX_SOURCE, which is predefined and required
27861 # on some systems where configure will not decide to define it.
27862 # (The regexp can be short, since the line contains either #define or #undef.)
27863 echo 's/ $//
27864 s,^[     #]*u.*,/* & */,' >>conftest.defines
27865
27866 # Break up conftest.defines:
27867 ac_max_sed_lines=50
27868
27869 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27870 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27871 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27872 # et cetera.
27873 ac_in='$ac_file_inputs'
27874 ac_out='"$tmp/out1"'
27875 ac_nxt='"$tmp/out2"'
27876
27877 while :
27878 do
27879   # Write a here document:
27880     cat >>$CONFIG_STATUS <<_ACEOF
27881     # First, check the format of the line:
27882     cat >"\$tmp/defines.sed" <<\\CEOF
27883 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27884 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27885 b
27886 :def
27887 _ACEOF
27888   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27889   echo 'CEOF
27890     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27891   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27892   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27893   grep . conftest.tail >/dev/null || break
27894   rm -f conftest.defines
27895   mv conftest.tail conftest.defines
27896 done
27897 rm -f conftest.defines conftest.tail
27898
27899 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27900 cat >>$CONFIG_STATUS <<\_ACEOF
27901   if test x"$ac_file" != x-; then
27902     echo "/* $configure_input  */" >"$tmp/config.h"
27903     cat "$ac_result" >>"$tmp/config.h"
27904     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27905       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27906 echo "$as_me: $ac_file is unchanged" >&6;}
27907     else
27908       rm -f $ac_file
27909       mv "$tmp/config.h" $ac_file
27910     fi
27911   else
27912     echo "/* $configure_input  */"
27913     cat "$ac_result"
27914   fi
27915   rm -f "$tmp/out12"
27916 # Compute $ac_file's index in $config_headers.
27917 _am_stamp_count=1
27918 for _am_header in $config_headers :; do
27919   case $_am_header in
27920     $ac_file | $ac_file:* )
27921       break ;;
27922     * )
27923       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27924   esac
27925 done
27926 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27927 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27928          X$ac_file : 'X\(//\)[^/]' \| \
27929          X$ac_file : 'X\(//\)$' \| \
27930          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27931 echo X$ac_file |
27932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27933             s//\1/
27934             q
27935           }
27936           /^X\(\/\/\)[^/].*/{
27937             s//\1/
27938             q
27939           }
27940           /^X\(\/\/\)$/{
27941             s//\1/
27942             q
27943           }
27944           /^X\(\/\).*/{
27945             s//\1/
27946             q
27947           }
27948           s/.*/./; q'`/stamp-h$_am_stamp_count
27949  ;;
27950
27951   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27952 echo "$as_me: executing $ac_file commands" >&6;}
27953  ;;
27954   esac
27955
27956
27957   case $ac_file$ac_mode in
27958     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27959   # Strip MF so we end up with the name of the file.
27960   mf=`echo "$mf" | sed -e 's/:.*$//'`
27961   # Check whether this is an Automake generated Makefile or not.
27962   # We used to match only the files named `Makefile.in', but
27963   # some people rename them; so instead we look at the file content.
27964   # Grep'ing the first line is not enough: some people post-process
27965   # each Makefile.in and add a new line on top of each file to say so.
27966   # Grep'ing the whole file is not good either: AIX grep has a line
27967   # limit of 2048, but all sed's we know have understand at least 4000.
27968   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27969     dirpart=`$as_dirname -- "$mf" ||
27970 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27971          X"$mf" : 'X\(//\)[^/]' \| \
27972          X"$mf" : 'X\(//\)$' \| \
27973          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27974 echo X"$mf" |
27975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27976             s//\1/
27977             q
27978           }
27979           /^X\(\/\/\)[^/].*/{
27980             s//\1/
27981             q
27982           }
27983           /^X\(\/\/\)$/{
27984             s//\1/
27985             q
27986           }
27987           /^X\(\/\).*/{
27988             s//\1/
27989             q
27990           }
27991           s/.*/./; q'`
27992   else
27993     continue
27994   fi
27995   # Extract the definition of DEPDIR, am__include, and am__quote
27996   # from the Makefile without running `make'.
27997   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27998   test -z "$DEPDIR" && continue
27999   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28000   test -z "am__include" && continue
28001   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28002   # When using ansi2knr, U may be empty or an underscore; expand it
28003   U=`sed -n 's/^U = //p' < "$mf"`
28004   # Find all dependency output files, they are included files with
28005   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28006   # simplest approach to changing $(DEPDIR) to its actual value in the
28007   # expansion.
28008   for file in `sed -n "
28009     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28010        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28011     # Make sure the directory exists.
28012     test -f "$dirpart/$file" && continue
28013     fdir=`$as_dirname -- "$file" ||
28014 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28015          X"$file" : 'X\(//\)[^/]' \| \
28016          X"$file" : 'X\(//\)$' \| \
28017          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28018 echo X"$file" |
28019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28020             s//\1/
28021             q
28022           }
28023           /^X\(\/\/\)[^/].*/{
28024             s//\1/
28025             q
28026           }
28027           /^X\(\/\/\)$/{
28028             s//\1/
28029             q
28030           }
28031           /^X\(\/\).*/{
28032             s//\1/
28033             q
28034           }
28035           s/.*/./; q'`
28036     { as_dir=$dirpart/$fdir
28037   case $as_dir in #(
28038   -*) as_dir=./$as_dir;;
28039   esac
28040   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28041     as_dirs=
28042     while :; do
28043       case $as_dir in #(
28044       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28045       *) as_qdir=$as_dir;;
28046       esac
28047       as_dirs="'$as_qdir' $as_dirs"
28048       as_dir=`$as_dirname -- "$as_dir" ||
28049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28050          X"$as_dir" : 'X\(//\)[^/]' \| \
28051          X"$as_dir" : 'X\(//\)$' \| \
28052          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28053 echo X"$as_dir" |
28054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28055             s//\1/
28056             q
28057           }
28058           /^X\(\/\/\)[^/].*/{
28059             s//\1/
28060             q
28061           }
28062           /^X\(\/\/\)$/{
28063             s//\1/
28064             q
28065           }
28066           /^X\(\/\).*/{
28067             s//\1/
28068             q
28069           }
28070           s/.*/./; q'`
28071       test -d "$as_dir" && break
28072     done
28073     test -z "$as_dirs" || eval "mkdir $as_dirs"
28074   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28076    { (exit 1); exit 1; }; }; }
28077     # echo "creating $dirpart/$file"
28078     echo '# dummy' > "$dirpart/$file"
28079   done
28080 done
28081  ;;
28082     "tools/graspe-slave":F)
28083     for file in                                                 \
28084      tools/graspe-slave           tools/graspe-master           \
28085     ; do                                                        \
28086       test -e $file && chmod +x $file;                          \
28087     done
28088  ;;
28089     "testsuite/Makefile":F)
28090     for file in                                                 \
28091      testsuite/run_tests                                        \
28092      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28093     ; do                                                        \
28094       test -e $file && chmod +x $file;                          \
28095     done
28096  ;;
28097     "testsuite/run_tests":F)
28098     for file in                                                 \
28099      testsuite/run_tests                                        \
28100      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28101     ; do                                                        \
28102       test -e $file && chmod +x $file;                          \
28103     done
28104  ;;
28105     "testsuite/gras/trp_tcp_usage":F)
28106     for file in                                                 \
28107      testsuite/run_tests                                        \
28108      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28109     ; do                                                        \
28110       test -e $file && chmod +x $file;                          \
28111     done
28112  ;;
28113     "testsuite/gras/trp_file_usage":F)
28114     for file in                                                 \
28115      testsuite/run_tests                                        \
28116      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28117     ; do                                                        \
28118       test -e $file && chmod +x $file;                          \
28119     done
28120  ;;
28121     "examples/Makefile":F)
28122     for file in                                                 \
28123      \
28124      examples/msg/run_msg_test                                  \
28125      examples/simdag/test_simdag                                \
28126      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28127      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28128     ; do                                                        \
28129       test -e $file && chmod +x $file;                          \
28130     done
28131  ;;
28132     "examples/msg/Makefile":F)
28133     for file in                                                 \
28134      \
28135      examples/msg/run_msg_test                                  \
28136      examples/simdag/test_simdag                                \
28137      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28138      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28139     ; do                                                        \
28140       test -e $file && chmod +x $file;                          \
28141     done
28142  ;;
28143     "examples/msg/basic.tesh":F)
28144     for file in                                                 \
28145      \
28146      examples/msg/run_msg_test                                  \
28147      examples/simdag/test_simdag                                \
28148      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28149      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28150     ; do                                                        \
28151       test -e $file && chmod +x $file;                          \
28152     done
28153  ;;
28154     "examples/msg/small_plat.tesh":F)
28155     for file in                                                 \
28156      \
28157      examples/msg/run_msg_test                                  \
28158      examples/simdag/test_simdag                                \
28159      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28160      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28161     ; do                                                        \
28162       test -e $file && chmod +x $file;                          \
28163     done
28164  ;;
28165     "examples/msg/suspend.tesh":F)
28166     for file in                                                 \
28167      \
28168      examples/msg/run_msg_test                                  \
28169      examples/simdag/test_simdag                                \
28170      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28171      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28172     ; do                                                        \
28173       test -e $file && chmod +x $file;                          \
28174     done
28175  ;;
28176     "examples/msg/flexml_bypass.tesh":F)
28177     for file in                                                 \
28178      \
28179      examples/msg/run_msg_test                                  \
28180      examples/simdag/test_simdag                                \
28181      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28182      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28183     ; do                                                        \
28184       test -e $file && chmod +x $file;                          \
28185     done
28186  ;;
28187     "examples/simdag/Makefile":F)
28188     for file in                                                 \
28189      \
28190      examples/msg/run_msg_test                                  \
28191      examples/simdag/test_simdag                                \
28192      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28193      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28194     ; do                                                        \
28195       test -e $file && chmod +x $file;                          \
28196     done
28197  ;;
28198     "examples/simdag/test_simdag":F)
28199     for file in                                                 \
28200      \
28201      examples/msg/run_msg_test                                  \
28202      examples/simdag/test_simdag                                \
28203      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28204      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28205     ; do                                                        \
28206       test -e $file && chmod +x $file;                          \
28207     done
28208  ;;
28209     "examples/gras/Makefile":F)
28210     for file in                                                 \
28211      \
28212      examples/msg/run_msg_test                                  \
28213      examples/simdag/test_simdag                                \
28214      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28215      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28216     ; do                                                        \
28217       test -e $file && chmod +x $file;                          \
28218     done
28219  ;;
28220     "examples/gras/ping/Makefile":F)
28221     for file in                                                 \
28222      \
28223      examples/msg/run_msg_test                                  \
28224      examples/simdag/test_simdag                                \
28225      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28226      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28227     ; do                                                        \
28228       test -e $file && chmod +x $file;                          \
28229     done
28230  ;;
28231     "examples/gras/rpc/Makefile":F)
28232     for file in                                                 \
28233      \
28234      examples/msg/run_msg_test                                  \
28235      examples/simdag/test_simdag                                \
28236      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28237      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28238     ; do                                                        \
28239       test -e $file && chmod +x $file;                          \
28240     done
28241  ;;
28242     "examples/gras/spawn/Makefile":F)
28243     for file in                                                 \
28244      \
28245      examples/msg/run_msg_test                                  \
28246      examples/simdag/test_simdag                                \
28247      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28248      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28249     ; do                                                        \
28250       test -e $file && chmod +x $file;                          \
28251     done
28252  ;;
28253     "examples/gras/synchro/Makefile":F)
28254     for file in                                                 \
28255      \
28256      examples/msg/run_msg_test                                  \
28257      examples/simdag/test_simdag                                \
28258      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28259      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28260     ; do                                                        \
28261       test -e $file && chmod +x $file;                          \
28262     done
28263  ;;
28264     "examples/gras/timer/Makefile":F)
28265     for file in                                                 \
28266      \
28267      examples/msg/run_msg_test                                  \
28268      examples/simdag/test_simdag                                \
28269      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28270      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28271     ; do                                                        \
28272       test -e $file && chmod +x $file;                          \
28273     done
28274  ;;
28275     "examples/gras/chrono/Makefile":F)
28276     for file in                                                 \
28277      \
28278      examples/msg/run_msg_test                                  \
28279      examples/simdag/test_simdag                                \
28280      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28281      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28282     ; do                                                        \
28283       test -e $file && chmod +x $file;                          \
28284     done
28285  ;;
28286     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28287     for file in                                                 \
28288      \
28289      examples/msg/run_msg_test                                  \
28290      examples/simdag/test_simdag                                \
28291      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28292      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28293     ; do                                                        \
28294       test -e $file && chmod +x $file;                          \
28295     done
28296  ;;
28297     "examples/gras/mmrpc/Makefile":F)
28298     for file in                                                 \
28299      \
28300      examples/msg/run_msg_test                                  \
28301      examples/simdag/test_simdag                                \
28302      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28303      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28304     ; do                                                        \
28305       test -e $file && chmod +x $file;                          \
28306     done
28307  ;;
28308     "examples/gras/pmm/Makefile":F)
28309     for file in                                                 \
28310      \
28311      examples/msg/run_msg_test                                  \
28312      examples/simdag/test_simdag                                \
28313      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28314      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28315     ; do                                                        \
28316       test -e $file && chmod +x $file;                          \
28317     done
28318  ;;
28319     "examples/gras/all2all/Makefile":F)
28320     for file in                                                 \
28321      \
28322      examples/msg/run_msg_test                                  \
28323      examples/simdag/test_simdag                                \
28324      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28325      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28326     ; do                                                        \
28327       test -e $file && chmod +x $file;                          \
28328     done
28329  ;;
28330     "examples/amok/Makefile":F)
28331     for file in                                                 \
28332      \
28333      examples/msg/run_msg_test                                  \
28334      examples/simdag/test_simdag                                \
28335      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28336      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28337     ; do                                                        \
28338       test -e $file && chmod +x $file;                          \
28339     done
28340  ;;
28341     "examples/amok/bandwidth/Makefile":F)
28342     for file in                                                 \
28343      \
28344      examples/msg/run_msg_test                                  \
28345      examples/simdag/test_simdag                                \
28346      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28347      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28348     ; do                                                        \
28349       test -e $file && chmod +x $file;                          \
28350     done
28351  ;;
28352     "examples/amok/bandwidth/test_sg":F)
28353     for file in                                                 \
28354      \
28355      examples/msg/run_msg_test                                  \
28356      examples/simdag/test_simdag                                \
28357      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28358      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28359     ; do                                                        \
28360       test -e $file && chmod +x $file;                          \
28361     done
28362  ;;
28363     "examples/amok/bandwidth/test_rl":F)
28364     for file in                                                 \
28365      \
28366      examples/msg/run_msg_test                                  \
28367      examples/simdag/test_simdag                                \
28368      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28369      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28370     ; do                                                        \
28371       test -e $file && chmod +x $file;                          \
28372     done
28373  ;;
28374     "examples/amok/saturate/Makefile":F)
28375     for file in                                                 \
28376      \
28377      examples/msg/run_msg_test                                  \
28378      examples/simdag/test_simdag                                \
28379      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28380      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28381     ; do                                                        \
28382       test -e $file && chmod +x $file;                          \
28383     done
28384  ;;
28385     "examples/amok/saturate/test_sg":F)
28386     for file in                                                 \
28387      \
28388      examples/msg/run_msg_test                                  \
28389      examples/simdag/test_simdag                                \
28390      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28391      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28392     ; do                                                        \
28393       test -e $file && chmod +x $file;                          \
28394     done
28395  ;;
28396     "examples/amok/saturate/test_rl":F)
28397     for file in                                                 \
28398      \
28399      examples/msg/run_msg_test                                  \
28400      examples/simdag/test_simdag                                \
28401      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28402      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28403     ; do                                                        \
28404       test -e $file && chmod +x $file;                          \
28405     done
28406  ;;
28407     "examples/java/Makefile":F)
28408     for file in                                                 \
28409      \
28410      examples/msg/run_msg_test                                  \
28411      examples/simdag/test_simdag                                \
28412      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28413      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28414     ; do                                                        \
28415       test -e $file && chmod +x $file;                          \
28416     done
28417  ;;
28418     "examples/java/basic/Makefile":F)
28419     for file in                                                 \
28420      \
28421      examples/msg/run_msg_test                                  \
28422      examples/simdag/test_simdag                                \
28423      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28424      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28425     ; do                                                        \
28426       test -e $file && chmod +x $file;                          \
28427     done
28428  ;;
28429     "examples/java/comm_time/Makefile":F)
28430     for file in                                                 \
28431      \
28432      examples/msg/run_msg_test                                  \
28433      examples/simdag/test_simdag                                \
28434      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28435      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28436     ; do                                                        \
28437       test -e $file && chmod +x $file;                          \
28438     done
28439  ;;
28440     "examples/java/suspend/Makefile":F)
28441     for file in                                                 \
28442      \
28443      examples/msg/run_msg_test                                  \
28444      examples/simdag/test_simdag                                \
28445      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28446      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28447     ; do                                                        \
28448       test -e $file && chmod +x $file;                          \
28449     done
28450  ;;
28451     "examples/java/ping_pong/Makefile":F)
28452     for file in                                                 \
28453      \
28454      examples/msg/run_msg_test                                  \
28455      examples/simdag/test_simdag                                \
28456      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28457      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28458     ; do                                                        \
28459       test -e $file && chmod +x $file;                          \
28460     done
28461  ;;
28462
28463   esac
28464 done # for ac_tag
28465
28466
28467 { (exit 0); exit 0; }
28468 _ACEOF
28469 chmod +x $CONFIG_STATUS
28470 ac_clean_files=$ac_clean_files_save
28471
28472
28473 # configure is writing to config.log, and then calls config.status.
28474 # config.status does its own redirection, appending to config.log.
28475 # Unfortunately, on DOS this fails, as config.log is still kept open
28476 # by configure, so config.status won't be able to write to it; its
28477 # output is simply discarded.  So we exec the FD to /dev/null,
28478 # effectively closing config.log, so it can be properly (re)opened and
28479 # appended to by config.status.  When coming back to configure, we
28480 # need to make the FD available again.
28481 if test "$no_create" != yes; then
28482   ac_cs_success=:
28483   ac_config_status_args=
28484   test "$silent" = yes &&
28485     ac_config_status_args="$ac_config_status_args --quiet"
28486   exec 5>/dev/null
28487   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28488   exec 5>>config.log
28489   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28490   # would make configure fail if this is the last instruction.
28491   $ac_cs_success || { (exit 1); exit 1; }
28492 fi
28493
28494
28495 echo "
28496
28497 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28498
28499         Compiler:        ${CC} (version: ${GCC_VERSION})
28500
28501         CFlags:          ${CFLAGS}
28502         CPPFlags:        ${CPPFLAGS}
28503         LDFlags:         ${LDFLAGS}
28504
28505         Context backend: ${with_context}
28506 "
28507
28508 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28509   echo "WARNING:"
28510   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28511   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28512   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28513   echo "WARNING:"
28514   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28515   echo "WARNING:"
28516 fi
28517 echo $build_id > stamp.configure
28518
28519 exit 0;