Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Damn autogenerated, get out of the way, I can't see the real changes I've made
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.180 .
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 CONTEXT_THREADS_TRUE
889 CONTEXT_THREADS_FALSE
890 PTH_STACK_GROWTH
891 pth_skaddr_makecontext
892 pth_sksize_makecontext
893 HAVE_GTNETS_TRUE
894 HAVE_GTNETS_FALSE
895 HAVE_SDP_TRUE
896 HAVE_SDP_FALSE
897 SIMGRID_DEP
898 GRAS_DEP
899 GRAMINE_MODE_TRUE
900 GRAMINE_MODE_FALSE
901 MAINTAINER_MODE_TRUE
902 MAINTAINER_MODE_FALSE
903 MAINT
904 LD_DYNAMIC_FLAGS
905 AM_CPPFLAGS
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   --disable-java          To not compile the Java bindings even if the tools
1539                           are found
1540
1541 Optional Packages:
1542   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1543   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1544   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1545   --with-pic              try to use only PIC/non-PIC objects [default=use
1546                           both]
1547   --with-tags[=TAGS]      include additional configurations [automatic]
1548   --with-pthread   Use pthread instead of ucontext.
1549   --with-pthreads   Use pthread instead of ucontext.
1550   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1551   --with-gtnets           Path to GTNetS installation (default to empty, ie
1552                           not using GTNetS)
1553   --with-csdp             Path to csdp installation (default to empty, i.e.
1554                           not using csdp)
1555
1556 Some influential environment variables:
1557   CC          C compiler command
1558   CFLAGS      C compiler flags
1559   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560               nonstandard directory <lib dir>
1561   LIBS        libraries to pass to the linker, e.g. -l<library>
1562   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563               you have headers in a nonstandard directory <include dir>
1564   CPP         C preprocessor
1565   CXX         C++ compiler command
1566   CXXFLAGS    C++ compiler flags
1567   CXXCPP      C++ preprocessor
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1573 _ACEOF
1574 ac_status=$?
1575 fi
1576
1577 if test "$ac_init_help" = "recursive"; then
1578   # If there are subdirs, report their specific --help.
1579   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580     test -d "$ac_dir" || continue
1581     ac_builddir=.
1582
1583 case "$ac_dir" in
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *)
1586   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1587   # A ".." for each directory in $ac_dir_suffix.
1588   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589   case $ac_top_builddir_sub in
1590   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592   esac ;;
1593 esac
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1598
1599 case $srcdir in
1600   .)  # We are building in place.
1601     ac_srcdir=.
1602     ac_top_srcdir=$ac_top_builddir_sub
1603     ac_abs_top_srcdir=$ac_pwd ;;
1604   [\\/]* | ?:[\\/]* )  # Absolute name.
1605     ac_srcdir=$srcdir$ac_dir_suffix;
1606     ac_top_srcdir=$srcdir
1607     ac_abs_top_srcdir=$srcdir ;;
1608   *) # Relative name.
1609     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610     ac_top_srcdir=$ac_top_build_prefix$srcdir
1611     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 esac
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615     cd "$ac_dir" || { ac_status=$?; continue; }
1616     # Check for guested configure.
1617     if test -f "$ac_srcdir/configure.gnu"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620     elif test -f "$ac_srcdir/configure"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure" --help=recursive
1623     else
1624       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625     fi || ac_status=$?
1626     cd "$ac_pwd" || { ac_status=$?; break; }
1627   done
1628 fi
1629
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1632   cat <<\_ACEOF
1633 simgrid configure 3.3-cvs
1634 generated by GNU Autoconf 2.61
1635
1636 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1637 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641   exit
1642 fi
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1646
1647 It was created by simgrid $as_me 3.3-cvs, which was
1648 generated by GNU Autoconf 2.61.  Invocation command line was
1649
1650   $ $0 $@
1651
1652 _ACEOF
1653 exec 5>>config.log
1654 {
1655 cat <<_ASUNAME
1656 ## --------- ##
1657 ## Platform. ##
1658 ## --------- ##
1659
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1668
1669 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1670 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1673 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1674 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1675 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1676
1677 _ASUNAME
1678
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682   IFS=$as_save_IFS
1683   test -z "$as_dir" && as_dir=.
1684   echo "PATH: $as_dir"
1685 done
1686 IFS=$as_save_IFS
1687
1688 } >&5
1689
1690 cat >&5 <<_ACEOF
1691
1692
1693 ## ----------- ##
1694 ## Core tests. ##
1695 ## ----------- ##
1696
1697 _ACEOF
1698
1699
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_configure_args=
1706 ac_configure_args0=
1707 ac_configure_args1=
1708 ac_must_keep_next=false
1709 for ac_pass in 1 2
1710 do
1711   for ac_arg
1712   do
1713     case $ac_arg in
1714     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716     | -silent | --silent | --silen | --sile | --sil)
1717       continue ;;
1718     *\'*)
1719       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720     esac
1721     case $ac_pass in
1722     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723     2)
1724       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725       if test $ac_must_keep_next = true; then
1726         ac_must_keep_next=false # Got value, back to normal.
1727       else
1728         case $ac_arg in
1729           *=* | --config-cache | -C | -disable-* | --disable-* \
1730           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732           | -with-* | --with-* | -without-* | --without-* | --x)
1733             case "$ac_configure_args0 " in
1734               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735             esac
1736             ;;
1737           -* ) ac_must_keep_next=true ;;
1738         esac
1739       fi
1740       ac_configure_args="$ac_configure_args '$ac_arg'"
1741       ;;
1742     esac
1743   done
1744 done
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log.  We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754   # Save into config.log some information that might help in debugging.
1755   {
1756     echo
1757
1758     cat <<\_ASBOX
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1762 _ASBOX
1763     echo
1764     # The following way of writing the cache mishandles newlines in values,
1765 (
1766   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1767     eval ac_val=\$$ac_var
1768     case $ac_val in #(
1769     *${as_nl}*)
1770       case $ac_var in #(
1771       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773       esac
1774       case $ac_var in #(
1775       _ | IFS | as_nl) ;; #(
1776       *) $as_unset $ac_var ;;
1777       esac ;;
1778     esac
1779   done
1780   (set) 2>&1 |
1781     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782     *${as_nl}ac_space=\ *)
1783       sed -n \
1784         "s/'\''/'\''\\\\'\'''\''/g;
1785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786       ;; #(
1787     *)
1788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789       ;;
1790     esac |
1791     sort
1792 )
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800     echo
1801     for ac_var in $ac_subst_vars
1802     do
1803       eval ac_val=\$$ac_var
1804       case $ac_val in
1805       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806       esac
1807       echo "$ac_var='\''$ac_val'\''"
1808     done | sort
1809     echo
1810
1811     if test -n "$ac_subst_files"; then
1812       cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817       echo
1818       for ac_var in $ac_subst_files
1819       do
1820         eval ac_val=\$$ac_var
1821         case $ac_val in
1822         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823         esac
1824         echo "$ac_var='\''$ac_val'\''"
1825       done | sort
1826       echo
1827     fi
1828
1829     if test -s confdefs.h; then
1830       cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835       echo
1836       cat confdefs.h
1837       echo
1838     fi
1839     test "$ac_signal" != 0 &&
1840       echo "$as_me: caught signal $ac_signal"
1841     echo "$as_me: exit $exit_status"
1842   } >&5
1843   rm -f core *.core core.conftest.* &&
1844     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845     exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 # Predefined preprocessor variables.
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1880
1881
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885   set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 else
1889   set x "$ac_default_prefix/share/config.site" \
1890         "$ac_default_prefix/etc/config.site"
1891 fi
1892 shift
1893 for ac_site_file
1894 do
1895   if test -r "$ac_site_file"; then
1896     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898     sed 's/^/| /' "$ac_site_file" >&5
1899     . "$ac_site_file"
1900   fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904   # Some versions of bash will fail to source /dev/null (special
1905   # files actually), so we avoid doing that.
1906   if test -f "$cache_file"; then
1907     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1909     case $cache_file in
1910       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911       *)                      . "./$cache_file";;
1912     esac
1913   fi
1914 else
1915   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1917   >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925   eval ac_new_set=\$ac_env_${ac_var}_set
1926   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927   eval ac_new_val=\$ac_env_${ac_var}_value
1928   case $ac_old_set,$ac_new_set in
1929     set,)
1930       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,set)
1934       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,);;
1938     *)
1939       if test "x$ac_old_val" != "x$ac_new_val"; then
1940         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1942         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1943 echo "$as_me:   former value:  $ac_old_val" >&2;}
1944         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1945 echo "$as_me:   current value: $ac_new_val" >&2;}
1946         ac_cache_corrupted=:
1947       fi;;
1948   esac
1949   # Pass precious variables to config.status.
1950   if test "$ac_new_set" = set; then
1951     case $ac_new_val in
1952     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953     *) ac_arg=$ac_var=$ac_new_val ;;
1954     esac
1955     case " $ac_configure_args " in
1956       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1957       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1958     esac
1959   fi
1960 done
1961 if $ac_cache_corrupted; then
1962   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1964   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999
2000
2001 ac_config_headers="$ac_config_headers src/gras_config.h"
2002
2003 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2004
2005
2006 ac_aux_dir=
2007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2008   if 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/install.sh"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/install.sh -c"
2015     break
2016   elif test -f "$ac_dir/shtool"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/shtool install -c"
2019     break
2020   fi
2021 done
2022 if test -z "$ac_aux_dir"; then
2023   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2024 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2035
2036
2037 # Make sure we can run config.sub.
2038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2039   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2040 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2041    { (exit 1); exit 1; }; }
2042
2043 { echo "$as_me:$LINENO: checking build system type" >&5
2044 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2045 if test "${ac_cv_build+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   ac_build_alias=$build_alias
2049 test "x$ac_build_alias" = x &&
2050   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2051 test "x$ac_build_alias" = x &&
2052   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2053 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2054    { (exit 1); exit 1; }; }
2055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2056   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2057 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2058    { (exit 1); exit 1; }; }
2059
2060 fi
2061 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2062 echo "${ECHO_T}$ac_cv_build" >&6; }
2063 case $ac_cv_build in
2064 *-*-*) ;;
2065 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2066 echo "$as_me: error: invalid value of canonical build" >&2;}
2067    { (exit 1); exit 1; }; };;
2068 esac
2069 build=$ac_cv_build
2070 ac_save_IFS=$IFS; IFS='-'
2071 set x $ac_cv_build
2072 shift
2073 build_cpu=$1
2074 build_vendor=$2
2075 shift; shift
2076 # Remember, the first character of IFS is used to create $*,
2077 # except with old shells:
2078 build_os=$*
2079 IFS=$ac_save_IFS
2080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2081
2082
2083 { echo "$as_me:$LINENO: checking host system type" >&5
2084 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2085 if test "${ac_cv_host+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test "x$host_alias" = x; then
2089   ac_cv_host=$ac_cv_build
2090 else
2091   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2092     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2093 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2094    { (exit 1); exit 1; }; }
2095 fi
2096
2097 fi
2098 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2099 echo "${ECHO_T}$ac_cv_host" >&6; }
2100 case $ac_cv_host in
2101 *-*-*) ;;
2102 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2103 echo "$as_me: error: invalid value of canonical host" >&2;}
2104    { (exit 1); exit 1; }; };;
2105 esac
2106 host=$ac_cv_host
2107 ac_save_IFS=$IFS; IFS='-'
2108 set x $ac_cv_host
2109 shift
2110 host_cpu=$1
2111 host_vendor=$2
2112 shift; shift
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2115 host_os=$*
2116 IFS=$ac_save_IFS
2117 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2118
2119
2120 { echo "$as_me:$LINENO: checking target system type" >&5
2121 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2122 if test "${ac_cv_target+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   if test "x$target_alias" = x; then
2126   ac_cv_target=$ac_cv_host
2127 else
2128   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2129     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2130 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2131    { (exit 1); exit 1; }; }
2132 fi
2133
2134 fi
2135 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2136 echo "${ECHO_T}$ac_cv_target" >&6; }
2137 case $ac_cv_target in
2138 *-*-*) ;;
2139 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2140 echo "$as_me: error: invalid value of canonical target" >&2;}
2141    { (exit 1); exit 1; }; };;
2142 esac
2143 target=$ac_cv_target
2144 ac_save_IFS=$IFS; IFS='-'
2145 set x $ac_cv_target
2146 shift
2147 target_cpu=$1
2148 target_vendor=$2
2149 shift; shift
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2152 target_os=$*
2153 IFS=$ac_save_IFS
2154 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2155
2156
2157 # The aliases save the names the user supplied, while $host etc.
2158 # will get canonicalized.
2159 test -n "$target_alias" &&
2160   test "$program_prefix$program_suffix$program_transform_name" = \
2161     NONENONEs,x,x, &&
2162   program_prefix=${target_alias}-
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169 rm -rf .tst 2>/dev/null
2170 mkdir .tst 2>/dev/null
2171 if test -d .tst; then
2172   am__leading_dot=.
2173 else
2174   am__leading_dot=_
2175 fi
2176 rmdir .tst 2>/dev/null
2177
2178 DEPDIR="${am__leading_dot}deps"
2179
2180 ac_config_commands="$ac_config_commands depfiles"
2181
2182
2183 am_make=${MAKE-make}
2184 cat > confinc << 'END'
2185 am__doit:
2186         @echo done
2187 .PHONY: am__doit
2188 END
2189 # If we don't find an include directive, just comment out the code.
2190 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2191 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2192 am__include="#"
2193 am__quote=
2194 _am_result=none
2195 # First try GNU make style include.
2196 echo "include confinc" > confmf
2197 # We grep out `Entering directory' and `Leaving directory'
2198 # messages which can occur if `w' ends up in MAKEFLAGS.
2199 # In particular we don't look at `^make:' because GNU make might
2200 # be invoked under some other name (usually "gmake"), in which
2201 # case it prints its new name instead of `make'.
2202 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2203    am__include=include
2204    am__quote=
2205    _am_result=GNU
2206 fi
2207 # Now try BSD make style include.
2208 if test "$am__include" = "#"; then
2209    echo '.include "confinc"' > confmf
2210    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2211       am__include=.include
2212       am__quote="\""
2213       _am_result=BSD
2214    fi
2215 fi
2216
2217
2218 { echo "$as_me:$LINENO: result: $_am_result" >&5
2219 echo "${ECHO_T}$_am_result" >&6; }
2220 rm -f confinc confmf
2221
2222 # Check whether --enable-dependency-tracking was given.
2223 if test "${enable_dependency_tracking+set}" = set; then
2224   enableval=$enable_dependency_tracking;
2225 fi
2226
2227 if test "x$enable_dependency_tracking" != xno; then
2228   am_depcomp="$ac_aux_dir/depcomp"
2229   AMDEPBACKSLASH='\'
2230 fi
2231  if test "x$enable_dependency_tracking" != xno; then
2232   AMDEP_TRUE=
2233   AMDEP_FALSE='#'
2234 else
2235   AMDEP_TRUE='#'
2236   AMDEP_FALSE=
2237 fi
2238
2239
2240
2241 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2242 do
2243   # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_GCJ+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   if test -n "$GCJ"; then
2251   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260     ac_cv_prog_GCJ="$ac_prog"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 GCJ=$ac_cv_prog_GCJ
2271 if test -n "$GCJ"; then
2272   { echo "$as_me:$LINENO: result: $GCJ" >&5
2273 echo "${ECHO_T}$GCJ" >&6; }
2274 else
2275   { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 fi
2278
2279
2280   test -n "$GCJ" && break
2281 done
2282 test -n "$GCJ" || GCJ="gcj"
2283
2284 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2285 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2286    { (exit 1); exit 1; }; }
2287 if test "x${GCJFLAGS-unset}" = xunset; then
2288    GCJFLAGS="-g -O2"
2289 fi
2290
2291
2292 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2293
2294 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2295 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2296 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2300   # We make a subdir and do the tests there.  Otherwise we can end up
2301   # making bogus files that we don't know about and never remove.  For
2302   # instance it was reported that on HP-UX the gcc test will end up
2303   # making a dummy file named `D' -- because `-MD' means `put the output
2304   # in D'.
2305   mkdir conftest.dir
2306   # Copy depcomp to subdir because otherwise we won't find it if we're
2307   # using a relative directory.
2308   cp "$am_depcomp" conftest.dir
2309   cd conftest.dir
2310   # We will build objects and dependencies in a subdirectory because
2311   # it helps to detect inapplicable dependency modes.  For instance
2312   # both Tru64's cc and ICC support -MD to output dependencies as a
2313   # side effect of compilation, but ICC will put the dependencies in
2314   # the current directory while Tru64 will put them in the object
2315   # directory.
2316   mkdir sub
2317
2318   am_cv_GCJ_dependencies_compiler_type=none
2319   if test "$am_compiler_list" = ""; then
2320      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2321   fi
2322   for depmode in $am_compiler_list; do
2323     # Setup a source with many dependencies, because some compilers
2324     # like to wrap large dependency lists on column 80 (with \), and
2325     # we should not choose a depcomp mode which is confused by this.
2326     #
2327     # We need to recreate these files for each test, as the compiler may
2328     # overwrite some of them when testing with obscure command lines.
2329     # This happens at least with the AIX C compiler.
2330     : > sub/conftest.c
2331     for i in 1 2 3 4 5 6; do
2332       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2333       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2334       # Solaris 8's {/usr,}/bin/sh.
2335       touch sub/conftst$i.h
2336     done
2337     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2338
2339     case $depmode in
2340     nosideeffect)
2341       # after this tag, mechanisms are not by side-effect, so they'll
2342       # only be used when explicitly requested
2343       if test "x$enable_dependency_tracking" = xyes; then
2344         continue
2345       else
2346         break
2347       fi
2348       ;;
2349     none) break ;;
2350     esac
2351     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2352     # mode.  It turns out that the SunPro C++ compiler does not properly
2353     # handle `-M -o', and we need to detect this.
2354     if depmode=$depmode \
2355        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2356        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2357        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2358          >/dev/null 2>conftest.err &&
2359        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2360        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2361        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2362        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2363       # icc doesn't choke on unknown options, it will just issue warnings
2364       # or remarks (even with -Werror).  So we grep stderr for any message
2365       # that says an option was ignored or not supported.
2366       # When given -MP, icc 7.0 and 7.1 complain thusly:
2367       #   icc: Command line warning: ignoring option '-M'; no argument required
2368       # The diagnosis changed in icc 8.0:
2369       #   icc: Command line remark: option '-MP' not supported
2370       if (grep 'ignoring option' conftest.err ||
2371           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2372         am_cv_GCJ_dependencies_compiler_type=$depmode
2373         break
2374       fi
2375     fi
2376   done
2377
2378   cd ..
2379   rm -rf conftest.dir
2380 else
2381   am_cv_GCJ_dependencies_compiler_type=none
2382 fi
2383
2384 fi
2385 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2386 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2387 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2388
2389  if
2390   test "x$enable_dependency_tracking" != xno \
2391   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2392   am__fastdepGCJ_TRUE=
2393   am__fastdepGCJ_FALSE='#'
2394 else
2395   am__fastdepGCJ_TRUE='#'
2396   am__fastdepGCJ_FALSE=
2397 fi
2398
2399
2400
2401
2402 am__api_version='1.10'
2403
2404 # Find a good install program.  We prefer a C program (faster),
2405 # so one script is as good as another.  But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2410 # AIX /bin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2418 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2419 if test -z "$INSTALL"; then
2420 if test "${ac_cv_path_install+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428   # Account for people who put trailing slashes in PATH elements.
2429 case $as_dir/ in
2430   ./ | .// | /cC/* | \
2431   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2432   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2433   /usr/ucb/* ) ;;
2434   *)
2435     # OSF1 and SCO ODT 3.0 have their own names for install.
2436     # Don't use installbsd from OSF since it installs stuff as root
2437     # by default.
2438     for ac_prog in ginstall scoinst install; do
2439       for ac_exec_ext in '' $ac_executable_extensions; do
2440         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2441           if test $ac_prog = install &&
2442             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443             # AIX install.  It has an incompatible calling convention.
2444             :
2445           elif test $ac_prog = install &&
2446             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447             # program-specific install script used by HP pwplus--don't use.
2448             :
2449           else
2450             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2451             break 3
2452           fi
2453         fi
2454       done
2455     done
2456     ;;
2457 esac
2458 done
2459 IFS=$as_save_IFS
2460
2461
2462 fi
2463   if test "${ac_cv_path_install+set}" = set; then
2464     INSTALL=$ac_cv_path_install
2465   else
2466     # As a last resort, use the slow shell script.  Don't cache a
2467     # value for INSTALL within a source directory, because that will
2468     # break other packages using the cache if that directory is
2469     # removed, or if the value is a relative name.
2470     INSTALL=$ac_install_sh
2471   fi
2472 fi
2473 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2474 echo "${ECHO_T}$INSTALL" >&6; }
2475
2476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477 # It thinks the first close brace ends the variable substitution.
2478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479
2480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481
2482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483
2484 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2485 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2486 # Just in case
2487 sleep 1
2488 echo timestamp > conftest.file
2489 # Do `set' in a subshell so we don't clobber the current shell's
2490 # arguments.  Must try -L first in case configure is actually a
2491 # symlink; some systems play weird games with the mod time of symlinks
2492 # (eg FreeBSD returns the mod time of the symlink's containing
2493 # directory).
2494 if (
2495    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2496    if test "$*" = "X"; then
2497       # -L didn't work.
2498       set X `ls -t $srcdir/configure conftest.file`
2499    fi
2500    rm -f conftest.file
2501    if test "$*" != "X $srcdir/configure conftest.file" \
2502       && test "$*" != "X conftest.file $srcdir/configure"; then
2503
2504       # If neither matched, then we have a broken ls.  This can happen
2505       # if, for instance, CONFIG_SHELL is bash and it inherits a
2506       # broken ls alias from the environment.  This has actually
2507       # happened.  Such a system could not be considered "sane".
2508       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2509 alias in your environment" >&5
2510 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2511 alias in your environment" >&2;}
2512    { (exit 1); exit 1; }; }
2513    fi
2514
2515    test "$2" = conftest.file
2516    )
2517 then
2518    # Ok.
2519    :
2520 else
2521    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2522 Check your system clock" >&5
2523 echo "$as_me: error: newly created file is older than distributed files!
2524 Check your system clock" >&2;}
2525    { (exit 1); exit 1; }; }
2526 fi
2527 { echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6; }
2529 test "$program_prefix" != NONE &&
2530   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2531 # Use a double $ so make ignores it.
2532 test "$program_suffix" != NONE &&
2533   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2534 # Double any \ or $.  echo might interpret backslashes.
2535 # By default was `s,x,x', remove it if useless.
2536 cat <<\_ACEOF >conftest.sed
2537 s/[\\$]/&&/g;s/;s,x,x,$//
2538 _ACEOF
2539 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2540 rm -f conftest.sed
2541
2542 # expand $ac_aux_dir to an absolute path
2543 am_aux_dir=`cd $ac_aux_dir && pwd`
2544
2545 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2546 # Use eval to expand $SHELL
2547 if eval "$MISSING --run true"; then
2548   am_missing_run="$MISSING --run "
2549 else
2550   am_missing_run=
2551   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2552 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2553 fi
2554
2555 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2556 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2557 if test -z "$MKDIR_P"; then
2558   if test "${ac_cv_path_mkdir+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2563 do
2564   IFS=$as_save_IFS
2565   test -z "$as_dir" && as_dir=.
2566   for ac_prog in mkdir gmkdir; do
2567          for ac_exec_ext in '' $ac_executable_extensions; do
2568            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2569            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2570              'mkdir (GNU coreutils) '* | \
2571              'mkdir (coreutils) '* | \
2572              'mkdir (fileutils) '4.1*)
2573                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2574                break 3;;
2575            esac
2576          done
2577        done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582
2583   if test "${ac_cv_path_mkdir+set}" = set; then
2584     MKDIR_P="$ac_cv_path_mkdir -p"
2585   else
2586     # As a last resort, use the slow shell script.  Don't cache a
2587     # value for MKDIR_P within a source directory, because that will
2588     # break other packages using the cache if that directory is
2589     # removed, or if the value is a relative name.
2590     test -d ./--version && rmdir ./--version
2591     MKDIR_P="$ac_install_sh -d"
2592   fi
2593 fi
2594 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2595 echo "${ECHO_T}$MKDIR_P" >&6; }
2596
2597 mkdir_p="$MKDIR_P"
2598 case $mkdir_p in
2599   [\\/$]* | ?:[\\/]*) ;;
2600   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2601 esac
2602
2603 for ac_prog in gawk mawk nawk awk
2604 do
2605   # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_AWK+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$AWK"; then
2613   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_AWK="$ac_prog"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 AWK=$ac_cv_prog_AWK
2633 if test -n "$AWK"; then
2634   { echo "$as_me:$LINENO: result: $AWK" >&5
2635 echo "${ECHO_T}$AWK" >&6; }
2636 else
2637   { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642   test -n "$AWK" && break
2643 done
2644
2645 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2646 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2647 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2648 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.make <<\_ACEOF
2652 SHELL = /bin/sh
2653 all:
2654         @echo '@@@%%%=$(MAKE)=@@@%%%'
2655 _ACEOF
2656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2658   *@@@%%%=?*=@@@%%%*)
2659     eval ac_cv_prog_make_${ac_make}_set=yes;;
2660   *)
2661     eval ac_cv_prog_make_${ac_make}_set=no;;
2662 esac
2663 rm -f conftest.make
2664 fi
2665 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2666   { echo "$as_me:$LINENO: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6; }
2668   SET_MAKE=
2669 else
2670   { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2672   SET_MAKE="MAKE=${MAKE-make}"
2673 fi
2674
2675 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2676   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2677   # is not polluted with repeated "-I."
2678   am__isrc=' -I$(srcdir)'
2679   # test to see if srcdir already configured
2680   if test -f $srcdir/config.status; then
2681     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2682 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2683    { (exit 1); exit 1; }; }
2684   fi
2685 fi
2686
2687 # test whether we have cygpath
2688 if test -z "$CYGPATH_W"; then
2689   if (cygpath --version) >/dev/null 2>/dev/null; then
2690     CYGPATH_W='cygpath -w'
2691   else
2692     CYGPATH_W=echo
2693   fi
2694 fi
2695
2696
2697 # Define the identity of the package.
2698  PACKAGE='simgrid'
2699  VERSION='3.3-cvs'
2700
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE "$PACKAGE"
2704 _ACEOF
2705
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define VERSION "$VERSION"
2709 _ACEOF
2710
2711 # Some tools Automake needs.
2712
2713 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2714
2715
2716 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2717
2718
2719 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2720
2721
2722 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2723
2724
2725 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2726
2727 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2728
2729 # Installed binaries are usually stripped using `strip' when the user
2730 # run `make install-strip'.  However `strip' might not be the right
2731 # tool to use in cross-compilation environments, therefore Automake
2732 # will honor the `STRIP' environment variable to overrule this program.
2733 if test "$cross_compiling" != no; then
2734   if test -n "$ac_tool_prefix"; then
2735   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}strip; ac_word=$2
2737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2739 if test "${ac_cv_prog_STRIP+set}" = set; then
2740   echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742   if test -n "$STRIP"; then
2743   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 STRIP=$ac_cv_prog_STRIP
2763 if test -n "$STRIP"; then
2764   { echo "$as_me:$LINENO: result: $STRIP" >&5
2765 echo "${ECHO_T}$STRIP" >&6; }
2766 else
2767   { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2769 fi
2770
2771
2772 fi
2773 if test -z "$ac_cv_prog_STRIP"; then
2774   ac_ct_STRIP=$STRIP
2775   # Extract the first word of "strip", so it can be a program name with args.
2776 set dummy strip; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   if test -n "$ac_ct_STRIP"; then
2783   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_ac_ct_STRIP="strip"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2803 if test -n "$ac_ct_STRIP"; then
2804   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2805 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2806 else
2807   { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2809 fi
2810
2811   if test "x$ac_ct_STRIP" = x; then
2812     STRIP=":"
2813   else
2814     case $cross_compiling:$ac_tool_warned in
2815 yes:)
2816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet.  If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&5
2819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2820 whose name does not start with the host triplet.  If you think this
2821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824     STRIP=$ac_ct_STRIP
2825   fi
2826 else
2827   STRIP="$ac_cv_prog_STRIP"
2828 fi
2829
2830 fi
2831 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2832
2833 # We need awk for the "check" target.  The system "awk" is bad on
2834 # some platforms.
2835 # Always define AMTAR for backward compatibility.
2836
2837 AMTAR=${AMTAR-"${am_missing_run}tar"}
2838
2839 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2840
2841
2842
2843
2844
2845
2846 ACLOCAL="$ACLOCAL -I acmacro"
2847
2848
2849
2850
2851
2852
2853 # Check whether --enable-shared was given.
2854 if test "${enable_shared+set}" = set; then
2855   enableval=$enable_shared; p=${PACKAGE-default}
2856     case $enableval in
2857     yes) enable_shared=yes ;;
2858     no) enable_shared=no ;;
2859     *)
2860       enable_shared=no
2861       # Look at the argument we got.  We use all the common list separators.
2862       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2863       for pkg in $enableval; do
2864         IFS="$lt_save_ifs"
2865         if test "X$pkg" = "X$p"; then
2866           enable_shared=yes
2867         fi
2868       done
2869       IFS="$lt_save_ifs"
2870       ;;
2871     esac
2872 else
2873   enable_shared=yes
2874 fi
2875
2876
2877 # Check whether --enable-static was given.
2878 if test "${enable_static+set}" = set; then
2879   enableval=$enable_static; p=${PACKAGE-default}
2880     case $enableval in
2881     yes) enable_static=yes ;;
2882     no) enable_static=no ;;
2883     *)
2884      enable_static=no
2885       # Look at the argument we got.  We use all the common list separators.
2886       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2887       for pkg in $enableval; do
2888         IFS="$lt_save_ifs"
2889         if test "X$pkg" = "X$p"; then
2890           enable_static=yes
2891         fi
2892       done
2893       IFS="$lt_save_ifs"
2894       ;;
2895     esac
2896 else
2897   enable_static=yes
2898 fi
2899
2900
2901 # Check whether --enable-fast-install was given.
2902 if test "${enable_fast_install+set}" = set; then
2903   enableval=$enable_fast_install; p=${PACKAGE-default}
2904     case $enableval in
2905     yes) enable_fast_install=yes ;;
2906     no) enable_fast_install=no ;;
2907     *)
2908       enable_fast_install=no
2909       # Look at the argument we got.  We use all the common list separators.
2910       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2911       for pkg in $enableval; do
2912         IFS="$lt_save_ifs"
2913         if test "X$pkg" = "X$p"; then
2914           enable_fast_install=yes
2915         fi
2916       done
2917       IFS="$lt_save_ifs"
2918       ;;
2919     esac
2920 else
2921   enable_fast_install=yes
2922 fi
2923
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   if test -n "$CC"; then
2939   ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946   for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960   { echo "$as_me:$LINENO: result: $CC" >&5
2961 echo "${ECHO_T}$CC" >&6; }
2962 else
2963   { echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$ac_cv_prog_CC"; then
2970   ac_ct_CC=$CC
2971   # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2976   echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978   if test -n "$ac_ct_CC"; then
2979   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986   for ac_exec_ext in '' $ac_executable_extensions; do
2987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988     ac_cv_prog_ac_ct_CC="gcc"
2989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990     break 2
2991   fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6; }
3002 else
3003   { echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6; }
3005 fi
3006
3007   if test "x$ac_ct_CC" = x; then
3008     CC=""
3009   else
3010     case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet.  If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&5
3015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3016 whose name does not start with the host triplet.  If you think this
3017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3018 ac_tool_warned=yes ;;
3019 esac
3020     CC=$ac_ct_CC
3021   fi
3022 else
3023   CC="$ac_cv_prog_CC"
3024 fi
3025
3026 if test -z "$CC"; then
3027           if test -n "$ac_tool_prefix"; then
3028     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}cc; ac_word=$2
3030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   if test -n "$CC"; then
3036   ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_CC="${ac_tool_prefix}cc"
3046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   { echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6; }
3059 else
3060   { echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6; }
3062 fi
3063
3064
3065   fi
3066 fi
3067 if test -z "$CC"; then
3068   # Extract the first word of "cc", so it can be a program name with args.
3069 set dummy cc; ac_word=$2
3070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_CC+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   if test -n "$CC"; then
3076   ac_cv_prog_CC="$CC" # Let the user override the test.
3077 else
3078   ac_prog_rejected=no
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   for ac_exec_ext in '' $ac_executable_extensions; do
3085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3087        ac_prog_rejected=yes
3088        continue
3089      fi
3090     ac_cv_prog_CC="cc"
3091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092     break 2
3093   fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 if test $ac_prog_rejected = yes; then
3099   # We found a bogon in the path, so make sure we never use it.
3100   set dummy $ac_cv_prog_CC
3101   shift
3102   if test $# != 0; then
3103     # We chose a different compiler from the bogus one.
3104     # However, it has the same basename, so the bogon will be chosen
3105     # first if we set CC to just the basename; use the full file name.
3106     shift
3107     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3108   fi
3109 fi
3110 fi
3111 fi
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114   { echo "$as_me:$LINENO: result: $CC" >&5
3115 echo "${ECHO_T}$CC" >&6; }
3116 else
3117   { echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6; }
3119 fi
3120
3121
3122 fi
3123 if test -z "$CC"; then
3124   if test -n "$ac_tool_prefix"; then
3125   for ac_prog in cl.exe
3126   do
3127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   if test -n "$CC"; then
3135   ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140   IFS=$as_save_IFS
3141   test -z "$as_dir" && as_dir=.
3142   for ac_exec_ext in '' $ac_executable_extensions; do
3143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146     break 2
3147   fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 CC=$ac_cv_prog_CC
3155 if test -n "$CC"; then
3156   { echo "$as_me:$LINENO: result: $CC" >&5
3157 echo "${ECHO_T}$CC" >&6; }
3158 else
3159   { echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6; }
3161 fi
3162
3163
3164     test -n "$CC" && break
3165   done
3166 fi
3167 if test -z "$CC"; then
3168   ac_ct_CC=$CC
3169   for ac_prog in cl.exe
3170 do
3171   # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178   if test -n "$ac_ct_CC"; then
3179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186   for ac_exec_ext in '' $ac_executable_extensions; do
3187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188     ac_cv_prog_ac_ct_CC="$ac_prog"
3189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3201 echo "${ECHO_T}$ac_ct_CC" >&6; }
3202 else
3203   { echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6; }
3205 fi
3206
3207
3208   test -n "$ac_ct_CC" && break
3209 done
3210
3211   if test "x$ac_ct_CC" = x; then
3212     CC=""
3213   else
3214     case $cross_compiling:$ac_tool_warned in
3215 yes:)
3216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3217 whose name does not start with the host triplet.  If you think this
3218 configuration is useful to you, please write to autoconf@gnu.org." >&5
3219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3220 whose name does not start with the host triplet.  If you think this
3221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224     CC=$ac_ct_CC
3225   fi
3226 fi
3227
3228 fi
3229
3230
3231 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&5
3233 echo "$as_me: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&2;}
3235    { (exit 1); exit 1; }; }
3236
3237 # Provide some information about the compiler.
3238 echo "$as_me:$LINENO: checking for C compiler version" >&5
3239 ac_compiler=`set X $ac_compile; echo $2`
3240 { (ac_try="$ac_compiler --version >&5"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_compiler --version >&5") 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }
3250 { (ac_try="$ac_compiler -v >&5"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_compiler -v >&5") 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }
3260 { (ac_try="$ac_compiler -V >&5"
3261 case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266   (eval "$ac_compiler -V >&5") 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }
3270
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 ac_clean_files_save=$ac_clean_files
3287 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3288 # Try to create an executable without -o first, disregard a.out.
3289 # It will help us diagnose broken compilers, and finding out an intuition
3290 # of exeext.
3291 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3292 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3293 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3294 #
3295 # List of possible output files, starting from the most likely.
3296 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3297 # only as a last resort.  b.out is created by i960 compilers.
3298 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3299 #
3300 # The IRIX 6 linker writes into existing files which may not be
3301 # executable, retaining their permissions.  Remove them first so a
3302 # subsequent execution test works.
3303 ac_rmfiles=
3304 for ac_file in $ac_files
3305 do
3306   case $ac_file in
3307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3308     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309   esac
3310 done
3311 rm -f $ac_rmfiles
3312
3313 if { (ac_try="$ac_link_default"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_link_default") 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }; then
3323   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3325 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3326 # so that the user can short-circuit this test for compilers unknown to
3327 # Autoconf.
3328 for ac_file in $ac_files ''
3329 do
3330   test -f "$ac_file" || continue
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3333         ;;
3334     [ab].out )
3335         # We found the default executable, but exeext='' is most
3336         # certainly right.
3337         break;;
3338     *.* )
3339         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340         then :; else
3341            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342         fi
3343         # We set ac_cv_exeext here because the later test for it is not
3344         # safe: cross compilers may not add the suffix if given an `-o'
3345         # argument, so we may need to know it at that point already.
3346         # Even if this section looks crufty: it has the advantage of
3347         # actually working.
3348         break;;
3349     * )
3350         break;;
3351   esac
3352 done
3353 test "$ac_cv_exeext" = no && ac_cv_exeext=
3354
3355 else
3356   ac_file=''
3357 fi
3358
3359 { echo "$as_me:$LINENO: result: $ac_file" >&5
3360 echo "${ECHO_T}$ac_file" >&6; }
3361 if test -z "$ac_file"; then
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&2;}
3369    { (exit 77); exit 77; }; }
3370 fi
3371
3372 ac_exeext=$ac_cv_exeext
3373
3374 # Check that the compiler produces executables we can run.  If not, either
3375 # the compiler is broken, or we cross compile.
3376 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3377 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3378 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3379 # If not cross compiling, check that we can run a simple program.
3380 if test "$cross_compiling" != yes; then
3381   if { ac_try='./$ac_file'
3382   { (case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_try") 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391     cross_compiling=no
3392   else
3393     if test "$cross_compiling" = maybe; then
3394         cross_compiling=yes
3395     else
3396         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3397 If you meant to cross compile, use \`--host'.
3398 See \`config.log' for more details." >&5
3399 echo "$as_me: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&2;}
3402    { (exit 1); exit 1; }; }
3403     fi
3404   fi
3405 fi
3406 { echo "$as_me:$LINENO: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6; }
3408
3409 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3410 ac_clean_files=$ac_clean_files_save
3411 # Check that the compiler produces executables we can run.  If not, either
3412 # the compiler is broken, or we cross compile.
3413 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3414 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3415 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3416 echo "${ECHO_T}$cross_compiling" >&6; }
3417
3418 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3419 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3420 if { (ac_try="$ac_link"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_link") 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }; then
3430   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3431 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3432 # work properly (i.e., refer to `conftest.exe'), while it won't with
3433 # `rm'.
3434 for ac_file in conftest.exe conftest conftest.*; do
3435   test -f "$ac_file" || continue
3436   case $ac_file in
3437     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3438     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439           break;;
3440     * ) break;;
3441   esac
3442 done
3443 else
3444   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }
3449 fi
3450
3451 rm -f conftest$ac_cv_exeext
3452 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3453 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3454
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3457 ac_exeext=$EXEEXT
3458 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3459 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3460 if test "${ac_cv_objext+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.o conftest.obj
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_compile") 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; then
3489   for ac_file in conftest.o conftest.obj conftest.*; do
3490   test -f "$ac_file" || continue;
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3493     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494        break;;
3495   esac
3496 done
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." >&2;}
3505    { (exit 1); exit 1; }; }
3506 fi
3507
3508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3509 fi
3510 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3511 echo "${ECHO_T}$ac_cv_objext" >&6; }
3512 OBJEXT=$ac_cv_objext
3513 ac_objext=$OBJEXT
3514 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3515 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3516 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529 #ifndef __GNUC__
3530        choke me
3531 #endif
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_c_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   ac_compiler_gnu=yes
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559         ac_compiler_gnu=no
3560 fi
3561
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3568 GCC=`test $ac_compiler_gnu = yes && echo yes`
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3572 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3573 if test "${ac_cv_prog_cc_g+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   ac_save_c_werror_flag=$ac_c_werror_flag
3577    ac_c_werror_flag=yes
3578    ac_cv_prog_cc_g=no
3579    CFLAGS="-g"
3580    cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_compile") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } && {
3609          test -z "$ac_c_werror_flag" ||
3610          test ! -s conftest.err
3611        } && test -s conftest.$ac_objext; then
3612   ac_cv_prog_cc_g=yes
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617         CFLAGS=""
3618       cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624
3625 int
3626 main ()
3627 {
3628
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_compile") 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } && {
3647          test -z "$ac_c_werror_flag" ||
3648          test ! -s conftest.err
3649        } && test -s conftest.$ac_objext; then
3650   :
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655         ac_c_werror_flag=$ac_save_c_werror_flag
3656          CFLAGS="-g"
3657          cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663
3664 int
3665 main ()
3666 {
3667
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_compile") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } && {
3686          test -z "$ac_c_werror_flag" ||
3687          test ! -s conftest.err
3688        } && test -s conftest.$ac_objext; then
3689   ac_cv_prog_cc_g=yes
3690 else
3691   echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694
3695 fi
3696
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 fi
3699
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704    ac_c_werror_flag=$ac_save_c_werror_flag
3705 fi
3706 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3707 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3708 if test "$ac_test_CFLAGS" = set; then
3709   CFLAGS=$ac_save_CFLAGS
3710 elif test $ac_cv_prog_cc_g = yes; then
3711   if test "$GCC" = yes; then
3712     CFLAGS="-g -O2"
3713   else
3714     CFLAGS="-g"
3715   fi
3716 else
3717   if test "$GCC" = yes; then
3718     CFLAGS="-O2"
3719   else
3720     CFLAGS=
3721   fi
3722 fi
3723 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3724 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3725 if test "${ac_cv_prog_cc_c89+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   ac_cv_prog_cc_c89=no
3729 ac_save_CC=$CC
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736 #include <stdarg.h>
3737 #include <stdio.h>
3738 #include <sys/types.h>
3739 #include <sys/stat.h>
3740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3741 struct buf { int x; };
3742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743 static char *e (p, i)
3744      char **p;
3745      int i;
3746 {
3747   return p[i];
3748 }
3749 static char *f (char * (*g) (char **, int), char **p, ...)
3750 {
3751   char *s;
3752   va_list v;
3753   va_start (v,p);
3754   s = g (p, va_arg (v,int));
3755   va_end (v);
3756   return s;
3757 }
3758
3759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3760    function prototypes and stuff, but not '\xHH' hex character constants.
3761    These don't provoke an error unfortunately, instead are silently treated
3762    as 'x'.  The following induces an error, until -std is added to get
3763    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3764    array size at least.  It's necessary to write '\x00'==0 to get something
3765    that's true only with -std.  */
3766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3767
3768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769    inside strings and character constants.  */
3770 #define FOO(x) 'x'
3771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3772
3773 int test (int i, double x);
3774 struct s1 {int (*f) (int a);};
3775 struct s2 {int (*f) (double a);};
3776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777 int argc;
3778 char **argv;
3779 int
3780 main ()
3781 {
3782 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3789 do
3790   CC="$ac_save_CC $ac_arg"
3791   rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798   (eval "$ac_compile") 2>conftest.er1
3799   ac_status=$?
3800   grep -v '^ *+' conftest.er1 >conftest.err
3801   rm -f conftest.er1
3802   cat conftest.err >&5
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } && {
3805          test -z "$ac_c_werror_flag" ||
3806          test ! -s conftest.err
3807        } && test -s conftest.$ac_objext; then
3808   ac_cv_prog_cc_c89=$ac_arg
3809 else
3810   echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813
3814 fi
3815
3816 rm -f core conftest.err conftest.$ac_objext
3817   test "x$ac_cv_prog_cc_c89" != "xno" && break
3818 done
3819 rm -f conftest.$ac_ext
3820 CC=$ac_save_CC
3821
3822 fi
3823 # AC_CACHE_VAL
3824 case "x$ac_cv_prog_cc_c89" in
3825   x)
3826     { echo "$as_me:$LINENO: result: none needed" >&5
3827 echo "${ECHO_T}none needed" >&6; } ;;
3828   xno)
3829     { echo "$as_me:$LINENO: result: unsupported" >&5
3830 echo "${ECHO_T}unsupported" >&6; } ;;
3831   *)
3832     CC="$CC $ac_cv_prog_cc_c89"
3833     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3835 esac
3836
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844 depcc="$CC"   am_compiler_list=
3845
3846 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3848 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3852   # We make a subdir and do the tests there.  Otherwise we can end up
3853   # making bogus files that we don't know about and never remove.  For
3854   # instance it was reported that on HP-UX the gcc test will end up
3855   # making a dummy file named `D' -- because `-MD' means `put the output
3856   # in D'.
3857   mkdir conftest.dir
3858   # Copy depcomp to subdir because otherwise we won't find it if we're
3859   # using a relative directory.
3860   cp "$am_depcomp" conftest.dir
3861   cd conftest.dir
3862   # We will build objects and dependencies in a subdirectory because
3863   # it helps to detect inapplicable dependency modes.  For instance
3864   # both Tru64's cc and ICC support -MD to output dependencies as a
3865   # side effect of compilation, but ICC will put the dependencies in
3866   # the current directory while Tru64 will put them in the object
3867   # directory.
3868   mkdir sub
3869
3870   am_cv_CC_dependencies_compiler_type=none
3871   if test "$am_compiler_list" = ""; then
3872      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3873   fi
3874   for depmode in $am_compiler_list; do
3875     # Setup a source with many dependencies, because some compilers
3876     # like to wrap large dependency lists on column 80 (with \), and
3877     # we should not choose a depcomp mode which is confused by this.
3878     #
3879     # We need to recreate these files for each test, as the compiler may
3880     # overwrite some of them when testing with obscure command lines.
3881     # This happens at least with the AIX C compiler.
3882     : > sub/conftest.c
3883     for i in 1 2 3 4 5 6; do
3884       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3885       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3886       # Solaris 8's {/usr,}/bin/sh.
3887       touch sub/conftst$i.h
3888     done
3889     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3890
3891     case $depmode in
3892     nosideeffect)
3893       # after this tag, mechanisms are not by side-effect, so they'll
3894       # only be used when explicitly requested
3895       if test "x$enable_dependency_tracking" = xyes; then
3896         continue
3897       else
3898         break
3899       fi
3900       ;;
3901     none) break ;;
3902     esac
3903     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3904     # mode.  It turns out that the SunPro C++ compiler does not properly
3905     # handle `-M -o', and we need to detect this.
3906     if depmode=$depmode \
3907        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3908        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3909        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3910          >/dev/null 2>conftest.err &&
3911        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3914        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915       # icc doesn't choke on unknown options, it will just issue warnings
3916       # or remarks (even with -Werror).  So we grep stderr for any message
3917       # that says an option was ignored or not supported.
3918       # When given -MP, icc 7.0 and 7.1 complain thusly:
3919       #   icc: Command line warning: ignoring option '-M'; no argument required
3920       # The diagnosis changed in icc 8.0:
3921       #   icc: Command line remark: option '-MP' not supported
3922       if (grep 'ignoring option' conftest.err ||
3923           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924         am_cv_CC_dependencies_compiler_type=$depmode
3925         break
3926       fi
3927     fi
3928   done
3929
3930   cd ..
3931   rm -rf conftest.dir
3932 else
3933   am_cv_CC_dependencies_compiler_type=none
3934 fi
3935
3936 fi
3937 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3938 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940
3941  if
3942   test "x$enable_dependency_tracking" != xno \
3943   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3944   am__fastdepCC_TRUE=
3945   am__fastdepCC_FALSE='#'
3946 else
3947   am__fastdepCC_TRUE='#'
3948   am__fastdepCC_FALSE=
3949 fi
3950
3951
3952 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3953 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3954 if test "${lt_cv_path_SED+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   # Loop through the user's path and test for sed and gsed.
3958 # Then use that list of sed's as ones to test for truncation.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for lt_ac_prog in sed gsed; do
3965     for ac_exec_ext in '' $ac_executable_extensions; do
3966       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3967         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3968       fi
3969     done
3970   done
3971 done
3972 lt_ac_max=0
3973 lt_ac_count=0
3974 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3975 # along with /bin/sed that truncates output.
3976 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3977   test ! -f $lt_ac_sed && continue
3978   cat /dev/null > conftest.in
3979   lt_ac_count=0
3980   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3981   # Check for GNU sed and select it if it is found.
3982   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3983     lt_cv_path_SED=$lt_ac_sed
3984     break
3985   fi
3986   while true; do
3987     cat conftest.in conftest.in >conftest.tmp
3988     mv conftest.tmp conftest.in
3989     cp conftest.in conftest.nl
3990     echo >>conftest.nl
3991     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3992     cmp -s conftest.out conftest.nl || break
3993     # 10000 chars as input seems more than enough
3994     test $lt_ac_count -gt 10 && break
3995     lt_ac_count=`expr $lt_ac_count + 1`
3996     if test $lt_ac_count -gt $lt_ac_max; then
3997       lt_ac_max=$lt_ac_count
3998       lt_cv_path_SED=$lt_ac_sed
3999     fi
4000   done
4001 done
4002
4003 fi
4004
4005 SED=$lt_cv_path_SED
4006 { echo "$as_me:$LINENO: result: $SED" >&5
4007 echo "${ECHO_T}$SED" >&6; }
4008
4009 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4010 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4011 if test "${ac_cv_path_GREP+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   # Extract the first word of "grep ggrep" to use in msg output
4015 if test -z "$GREP"; then
4016 set dummy grep ggrep; ac_prog_name=$2
4017 if test "${ac_cv_path_GREP+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 do
4025   IFS=$as_save_IFS
4026   test -z "$as_dir" && as_dir=.
4027   for ac_prog in grep ggrep; do
4028   for ac_exec_ext in '' $ac_executable_extensions; do
4029     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4031     # Check for GNU ac_path_GREP and select it if it is found.
4032   # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4034 *GNU*)
4035   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036 *)
4037   ac_count=0
4038   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039   while :
4040   do
4041     cat "conftest.in" "conftest.in" >"conftest.tmp"
4042     mv "conftest.tmp" "conftest.in"
4043     cp "conftest.in" "conftest.nl"
4044     echo 'GREP' >> "conftest.nl"
4045     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047     ac_count=`expr $ac_count + 1`
4048     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049       # Best one so far, save it but keep looking for a better one
4050       ac_cv_path_GREP="$ac_path_GREP"
4051       ac_path_GREP_max=$ac_count
4052     fi
4053     # 10*(2^10) chars as input seems more than enough
4054     test $ac_count -gt 10 && break
4055   done
4056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4058
4059
4060     $ac_path_GREP_found && break 3
4061   done
4062 done
4063
4064 done
4065 IFS=$as_save_IFS
4066
4067
4068 fi
4069
4070 GREP="$ac_cv_path_GREP"
4071 if test -z "$GREP"; then
4072   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074    { (exit 1); exit 1; }; }
4075 fi
4076
4077 else
4078   ac_cv_path_GREP=$GREP
4079 fi
4080
4081
4082 fi
4083 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4084 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4085  GREP="$ac_cv_path_GREP"
4086
4087
4088 { echo "$as_me:$LINENO: checking for egrep" >&5
4089 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4090 if test "${ac_cv_path_EGREP+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094    then ac_cv_path_EGREP="$GREP -E"
4095    else
4096      # Extract the first word of "egrep" to use in msg output
4097 if test -z "$EGREP"; then
4098 set dummy egrep; ac_prog_name=$2
4099 if test "${ac_cv_path_EGREP+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   ac_path_EGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109   for ac_prog in egrep; do
4110   for ac_exec_ext in '' $ac_executable_extensions; do
4111     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4113     # Check for GNU ac_path_EGREP and select it if it is found.
4114   # Check for GNU $ac_path_EGREP
4115 case `"$ac_path_EGREP" --version 2>&1` in
4116 *GNU*)
4117   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4118 *)
4119   ac_count=0
4120   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4121   while :
4122   do
4123     cat "conftest.in" "conftest.in" >"conftest.tmp"
4124     mv "conftest.tmp" "conftest.in"
4125     cp "conftest.in" "conftest.nl"
4126     echo 'EGREP' >> "conftest.nl"
4127     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129     ac_count=`expr $ac_count + 1`
4130     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131       # Best one so far, save it but keep looking for a better one
4132       ac_cv_path_EGREP="$ac_path_EGREP"
4133       ac_path_EGREP_max=$ac_count
4134     fi
4135     # 10*(2^10) chars as input seems more than enough
4136     test $ac_count -gt 10 && break
4137   done
4138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141
4142     $ac_path_EGREP_found && break 3
4143   done
4144 done
4145
4146 done
4147 IFS=$as_save_IFS
4148
4149
4150 fi
4151
4152 EGREP="$ac_cv_path_EGREP"
4153 if test -z "$EGREP"; then
4154   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4155 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4156    { (exit 1); exit 1; }; }
4157 fi
4158
4159 else
4160   ac_cv_path_EGREP=$EGREP
4161 fi
4162
4163
4164    fi
4165 fi
4166 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4167 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4168  EGREP="$ac_cv_path_EGREP"
4169
4170
4171
4172 # Check whether --with-gnu-ld was given.
4173 if test "${with_gnu_ld+set}" = set; then
4174   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4175 else
4176   with_gnu_ld=no
4177 fi
4178
4179 ac_prog=ld
4180 if test "$GCC" = yes; then
4181   # Check if gcc -print-prog-name=ld gives a path.
4182   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4184   case $host in
4185   *-*-mingw*)
4186     # gcc leaves a trailing carriage return which upsets mingw
4187     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4188   *)
4189     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4190   esac
4191   case $ac_prog in
4192     # Accept absolute paths.
4193     [\\/]* | ?:[\\/]*)
4194       re_direlt='/[^/][^/]*/\.\./'
4195       # Canonicalize the pathname of ld
4196       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4197       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4198         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4199       done
4200       test -z "$LD" && LD="$ac_prog"
4201       ;;
4202   "")
4203     # If it fails, then pretend we aren't using GCC.
4204     ac_prog=ld
4205     ;;
4206   *)
4207     # If it is relative, then search for the first ld in PATH.
4208     with_gnu_ld=unknown
4209     ;;
4210   esac
4211 elif test "$with_gnu_ld" = yes; then
4212   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4214 else
4215   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4217 fi
4218 if test "${lt_cv_path_LD+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -z "$LD"; then
4222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223   for ac_dir in $PATH; do
4224     IFS="$lt_save_ifs"
4225     test -z "$ac_dir" && ac_dir=.
4226     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4227       lt_cv_path_LD="$ac_dir/$ac_prog"
4228       # Check to see if the program is GNU ld.  I'd rather use --version,
4229       # but apparently some variants of GNU ld only accept -v.
4230       # Break only if it was the GNU/non-GNU ld that we prefer.
4231       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4232       *GNU* | *'with BFD'*)
4233         test "$with_gnu_ld" != no && break
4234         ;;
4235       *)
4236         test "$with_gnu_ld" != yes && break
4237         ;;
4238       esac
4239     fi
4240   done
4241   IFS="$lt_save_ifs"
4242 else
4243   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4244 fi
4245 fi
4246
4247 LD="$lt_cv_path_LD"
4248 if test -n "$LD"; then
4249   { echo "$as_me:$LINENO: result: $LD" >&5
4250 echo "${ECHO_T}$LD" >&6; }
4251 else
4252   { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4254 fi
4255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4257    { (exit 1); exit 1; }; }
4258 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4264 case `$LD -v 2>&1 </dev/null` in
4265 *GNU* | *'with BFD'*)
4266   lt_cv_prog_gnu_ld=yes
4267   ;;
4268 *)
4269   lt_cv_prog_gnu_ld=no
4270   ;;
4271 esac
4272 fi
4273 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4275 with_gnu_ld=$lt_cv_prog_gnu_ld
4276
4277
4278 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4279 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4280 if test "${lt_cv_ld_reload_flag+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   lt_cv_ld_reload_flag='-r'
4284 fi
4285 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4286 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4287 reload_flag=$lt_cv_ld_reload_flag
4288 case $reload_flag in
4289 "" | " "*) ;;
4290 *) reload_flag=" $reload_flag" ;;
4291 esac
4292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4293 case $host_os in
4294   darwin*)
4295     if test "$GCC" = yes; then
4296       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4297     else
4298       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299     fi
4300     ;;
4301 esac
4302
4303 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4304 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4305 if test "${lt_cv_path_NM+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$NM"; then
4309   # Let the user override the test.
4310   lt_cv_path_NM="$NM"
4311 else
4312   lt_nm_to_check="${ac_tool_prefix}nm"
4313   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4314     lt_nm_to_check="$lt_nm_to_check nm"
4315   fi
4316   for lt_tmp_nm in $lt_nm_to_check; do
4317     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4318     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4319       IFS="$lt_save_ifs"
4320       test -z "$ac_dir" && ac_dir=.
4321       tmp_nm="$ac_dir/$lt_tmp_nm"
4322       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4323         # Check to see if the nm accepts a BSD-compat flag.
4324         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4325         #   nm: unknown option "B" ignored
4326         # Tru64's nm complains that /dev/null is an invalid object file
4327         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4328         */dev/null* | *'Invalid file or object type'*)
4329           lt_cv_path_NM="$tmp_nm -B"
4330           break
4331           ;;
4332         *)
4333           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4334           */dev/null*)
4335             lt_cv_path_NM="$tmp_nm -p"
4336             break
4337             ;;
4338           *)
4339             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4340             continue # so that we can try to find one that supports BSD flags
4341             ;;
4342           esac
4343           ;;
4344         esac
4345       fi
4346     done
4347     IFS="$lt_save_ifs"
4348   done
4349   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4350 fi
4351 fi
4352 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4353 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4354 NM="$lt_cv_path_NM"
4355
4356 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4357 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4358 LN_S=$as_ln_s
4359 if test "$LN_S" = "ln -s"; then
4360   { echo "$as_me:$LINENO: result: yes" >&5
4361 echo "${ECHO_T}yes" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4364 echo "${ECHO_T}no, using $LN_S" >&6; }
4365 fi
4366
4367 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4368 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4369 if test "${lt_cv_deplibs_check_method+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   lt_cv_file_magic_cmd='$MAGIC_CMD'
4373 lt_cv_file_magic_test_file=
4374 lt_cv_deplibs_check_method='unknown'
4375 # Need to set the preceding variable on all platforms that support
4376 # interlibrary dependencies.
4377 # 'none' -- dependencies not supported.
4378 # `unknown' -- same as none, but documents that we really don't know.
4379 # 'pass_all' -- all dependencies passed with no checks.
4380 # 'test_compile' -- check by making test program.
4381 # 'file_magic [[regex]]' -- check by looking for files in library path
4382 # which responds to the $file_magic_cmd with a given extended regex.
4383 # If you have `file' or equivalent on your system and you're not sure
4384 # whether `pass_all' will *always* work, you probably want this one.
4385
4386 case $host_os in
4387 aix4* | aix5*)
4388   lt_cv_deplibs_check_method=pass_all
4389   ;;
4390
4391 beos*)
4392   lt_cv_deplibs_check_method=pass_all
4393   ;;
4394
4395 bsdi[45]*)
4396   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4397   lt_cv_file_magic_cmd='/usr/bin/file -L'
4398   lt_cv_file_magic_test_file=/shlib/libc.so
4399   ;;
4400
4401 cygwin*)
4402   # func_win32_libid is a shell function defined in ltmain.sh
4403   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4404   lt_cv_file_magic_cmd='func_win32_libid'
4405   ;;
4406
4407 mingw* | pw32*)
4408   # Base MSYS/MinGW do not provide the 'file' command needed by
4409   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4410   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4411   lt_cv_file_magic_cmd='$OBJDUMP -f'
4412   ;;
4413
4414 darwin* | rhapsody*)
4415   lt_cv_deplibs_check_method=pass_all
4416   ;;
4417
4418 freebsd* | dragonfly*)
4419   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4420     case $host_cpu in
4421     i*86 )
4422       # Not sure whether the presence of OpenBSD here was a mistake.
4423       # Let's accept both of them until this is cleared up.
4424       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4425       lt_cv_file_magic_cmd=/usr/bin/file
4426       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4427       ;;
4428     esac
4429   else
4430     lt_cv_deplibs_check_method=pass_all
4431   fi
4432   ;;
4433
4434 gnu*)
4435   lt_cv_deplibs_check_method=pass_all
4436   ;;
4437
4438 hpux10.20* | hpux11*)
4439   lt_cv_file_magic_cmd=/usr/bin/file
4440   case $host_cpu in
4441   ia64*)
4442     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4443     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4444     ;;
4445   hppa*64*)
4446     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]'
4447     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4448     ;;
4449   *)
4450     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4451     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4452     ;;
4453   esac
4454   ;;
4455
4456 interix3*)
4457   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4458   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4459   ;;
4460
4461 irix5* | irix6* | nonstopux*)
4462   case $LD in
4463   *-32|*"-32 ") libmagic=32-bit;;
4464   *-n32|*"-n32 ") libmagic=N32;;
4465   *-64|*"-64 ") libmagic=64-bit;;
4466   *) libmagic=never-match;;
4467   esac
4468   lt_cv_deplibs_check_method=pass_all
4469   ;;
4470
4471 # This must be Linux ELF.
4472 linux* | k*bsd*-gnu)
4473   lt_cv_deplibs_check_method=pass_all
4474   ;;
4475
4476 netbsd* | netbsdelf*-gnu)
4477   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4479   else
4480     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4481   fi
4482   ;;
4483
4484 newos6*)
4485   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4486   lt_cv_file_magic_cmd=/usr/bin/file
4487   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4488   ;;
4489
4490 nto-qnx*)
4491   lt_cv_deplibs_check_method=unknown
4492   ;;
4493
4494 openbsd*)
4495   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4497   else
4498     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4499   fi
4500   ;;
4501
4502 osf3* | osf4* | osf5*)
4503   lt_cv_deplibs_check_method=pass_all
4504   ;;
4505
4506 solaris*)
4507   lt_cv_deplibs_check_method=pass_all
4508   ;;
4509
4510 sysv4 | sysv4.3*)
4511   case $host_vendor in
4512   motorola)
4513     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]'
4514     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4515     ;;
4516   ncr)
4517     lt_cv_deplibs_check_method=pass_all
4518     ;;
4519   sequent)
4520     lt_cv_file_magic_cmd='/bin/file'
4521     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4522     ;;
4523   sni)
4524     lt_cv_file_magic_cmd='/bin/file'
4525     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4526     lt_cv_file_magic_test_file=/lib/libc.so
4527     ;;
4528   siemens)
4529     lt_cv_deplibs_check_method=pass_all
4530     ;;
4531   pc)
4532     lt_cv_deplibs_check_method=pass_all
4533     ;;
4534   esac
4535   ;;
4536
4537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4538   lt_cv_deplibs_check_method=pass_all
4539   ;;
4540 esac
4541
4542 fi
4543 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4544 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4545 file_magic_cmd=$lt_cv_file_magic_cmd
4546 deplibs_check_method=$lt_cv_deplibs_check_method
4547 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4548
4549
4550
4551
4552 # If no C compiler was specified, use CC.
4553 LTCC=${LTCC-"$CC"}
4554
4555 # If no C compiler flags were specified, use CFLAGS.
4556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4557
4558 # Allow CC to be a program name with arguments.
4559 compiler=$CC
4560
4561
4562 # Check whether --enable-libtool-lock was given.
4563 if test "${enable_libtool_lock+set}" = set; then
4564   enableval=$enable_libtool_lock;
4565 fi
4566
4567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4568
4569 # Some flags need to be propagated to the compiler or linker for good
4570 # libtool support.
4571 case $host in
4572 ia64-*-hpux*)
4573   # Find out which ABI we are using.
4574   echo 'int i;' > conftest.$ac_ext
4575   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576   (eval $ac_compile) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; then
4580     case `/usr/bin/file conftest.$ac_objext` in
4581     *ELF-32*)
4582       HPUX_IA64_MODE="32"
4583       ;;
4584     *ELF-64*)
4585       HPUX_IA64_MODE="64"
4586       ;;
4587     esac
4588   fi
4589   rm -rf conftest*
4590   ;;
4591 *-*-irix6*)
4592   # Find out which ABI we are using.
4593   echo '#line 4593 "configure"' > conftest.$ac_ext
4594   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595   (eval $ac_compile) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; then
4599    if test "$lt_cv_prog_gnu_ld" = yes; then
4600     case `/usr/bin/file conftest.$ac_objext` in
4601     *32-bit*)
4602       LD="${LD-ld} -melf32bsmip"
4603       ;;
4604     *N32*)
4605       LD="${LD-ld} -melf32bmipn32"
4606       ;;
4607     *64-bit*)
4608       LD="${LD-ld} -melf64bmip"
4609       ;;
4610     esac
4611    else
4612     case `/usr/bin/file conftest.$ac_objext` in
4613     *32-bit*)
4614       LD="${LD-ld} -32"
4615       ;;
4616     *N32*)
4617       LD="${LD-ld} -n32"
4618       ;;
4619     *64-bit*)
4620       LD="${LD-ld} -64"
4621       ;;
4622     esac
4623    fi
4624   fi
4625   rm -rf conftest*
4626   ;;
4627
4628 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4629   # Find out which ABI we are using.
4630   echo 'int i;' > conftest.$ac_ext
4631   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632   (eval $ac_compile) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; then
4636     case `/usr/bin/file conftest.o` in
4637     *32-bit*)
4638       case $host in
4639         x86_64-*linux*)
4640           LD="${LD-ld} -m elf_i386"
4641           ;;
4642         ppc64-*linux*|powerpc64-*linux*)
4643           LD="${LD-ld} -m elf32ppclinux"
4644           ;;
4645         s390x-*linux*)
4646           LD="${LD-ld} -m elf_s390"
4647           ;;
4648         sparc64-*linux*)
4649           LD="${LD-ld} -m elf32_sparc"
4650           ;;
4651       esac
4652       ;;
4653     *64-bit*)
4654       case $host in
4655         x86_64-*linux*)
4656           LD="${LD-ld} -m elf_x86_64"
4657           ;;
4658         ppc*-*linux*|powerpc*-*linux*)
4659           LD="${LD-ld} -m elf64ppc"
4660           ;;
4661         s390*-*linux*)
4662           LD="${LD-ld} -m elf64_s390"
4663           ;;
4664         sparc*-*linux*)
4665           LD="${LD-ld} -m elf64_sparc"
4666           ;;
4667       esac
4668       ;;
4669     esac
4670   fi
4671   rm -rf conftest*
4672   ;;
4673
4674 *-*-sco3.2v5*)
4675   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4676   SAVE_CFLAGS="$CFLAGS"
4677   CFLAGS="$CFLAGS -belf"
4678   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4679 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4680 if test "${lt_cv_cc_needs_belf+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689      cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695
4696 int
4697 main ()
4698 {
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711   (eval "$ac_link") 2>conftest.er1
4712   ac_status=$?
4713   grep -v '^ *+' conftest.er1 >conftest.err
4714   rm -f conftest.er1
4715   cat conftest.err >&5
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } && {
4718          test -z "$ac_c_werror_flag" ||
4719          test ! -s conftest.err
4720        } && test -s conftest$ac_exeext &&
4721        $as_test_x conftest$ac_exeext; then
4722   lt_cv_cc_needs_belf=yes
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727         lt_cv_cc_needs_belf=no
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4731       conftest$ac_exeext conftest.$ac_ext
4732      ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738 fi
4739 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4740 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4741   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4742     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4743     CFLAGS="$SAVE_CFLAGS"
4744   fi
4745   ;;
4746 sparc*-*solaris*)
4747   # Find out which ABI we are using.
4748   echo 'int i;' > conftest.$ac_ext
4749   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750   (eval $ac_compile) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; then
4754     case `/usr/bin/file conftest.o` in
4755     *64-bit*)
4756       case $lt_cv_prog_gnu_ld in
4757       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4758       *)    LD="${LD-ld} -64" ;;
4759       esac
4760       ;;
4761     esac
4762   fi
4763   rm -rf conftest*
4764   ;;
4765
4766 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4767   if test -n "$ac_tool_prefix"; then
4768   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   if test -n "$DLLTOOL"; then
4776   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 fi
4794 fi
4795 DLLTOOL=$ac_cv_prog_DLLTOOL
4796 if test -n "$DLLTOOL"; then
4797   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4798 echo "${ECHO_T}$DLLTOOL" >&6; }
4799 else
4800   { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4802 fi
4803
4804
4805 fi
4806 if test -z "$ac_cv_prog_DLLTOOL"; then
4807   ac_ct_DLLTOOL=$DLLTOOL
4808   # Extract the first word of "dlltool", so it can be a program name with args.
4809 set dummy dlltool; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   if test -n "$ac_ct_DLLTOOL"; then
4816   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823   for ac_exec_ext in '' $ac_executable_extensions; do
4824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830 done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4836 if test -n "$ac_ct_DLLTOOL"; then
4837   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4838 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4839 else
4840   { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4842 fi
4843
4844   if test "x$ac_ct_DLLTOOL" = x; then
4845     DLLTOOL="false"
4846   else
4847     case $cross_compiling:$ac_tool_warned in
4848 yes:)
4849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4850 whose name does not start with the host triplet.  If you think this
4851 configuration is useful to you, please write to autoconf@gnu.org." >&5
4852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4853 whose name does not start with the host triplet.  If you think this
4854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4855 ac_tool_warned=yes ;;
4856 esac
4857     DLLTOOL=$ac_ct_DLLTOOL
4858   fi
4859 else
4860   DLLTOOL="$ac_cv_prog_DLLTOOL"
4861 fi
4862
4863   if test -n "$ac_tool_prefix"; then
4864   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}as; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_AS+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$AS"; then
4872   ac_cv_prog_AS="$AS" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_AS="${ac_tool_prefix}as"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 AS=$ac_cv_prog_AS
4892 if test -n "$AS"; then
4893   { echo "$as_me:$LINENO: result: $AS" >&5
4894 echo "${ECHO_T}$AS" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901 fi
4902 if test -z "$ac_cv_prog_AS"; then
4903   ac_ct_AS=$AS
4904   # Extract the first word of "as", so it can be a program name with args.
4905 set dummy as; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   if test -n "$ac_ct_AS"; then
4912   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_prog_ac_ct_AS="as"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4932 if test -n "$ac_ct_AS"; then
4933   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4934 echo "${ECHO_T}$ac_ct_AS" >&6; }
4935 else
4936   { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4938 fi
4939
4940   if test "x$ac_ct_AS" = x; then
4941     AS="false"
4942   else
4943     case $cross_compiling:$ac_tool_warned in
4944 yes:)
4945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4946 whose name does not start with the host triplet.  If you think this
4947 configuration is useful to you, please write to autoconf@gnu.org." >&5
4948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4949 whose name does not start with the host triplet.  If you think this
4950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953     AS=$ac_ct_AS
4954   fi
4955 else
4956   AS="$ac_cv_prog_AS"
4957 fi
4958
4959   if test -n "$ac_tool_prefix"; then
4960   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4964 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   if test -n "$OBJDUMP"; then
4968   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975   for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 fi
4986 fi
4987 OBJDUMP=$ac_cv_prog_OBJDUMP
4988 if test -n "$OBJDUMP"; then
4989   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4990 echo "${ECHO_T}$OBJDUMP" >&6; }
4991 else
4992   { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4994 fi
4995
4996
4997 fi
4998 if test -z "$ac_cv_prog_OBJDUMP"; then
4999   ac_ct_OBJDUMP=$OBJDUMP
5000   # Extract the first word of "objdump", so it can be a program name with args.
5001 set dummy objdump; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   if test -n "$ac_ct_OBJDUMP"; then
5008   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015   for ac_exec_ext in '' $ac_executable_extensions; do
5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5028 if test -n "$ac_ct_OBJDUMP"; then
5029   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5030 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5031 else
5032   { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034 fi
5035
5036   if test "x$ac_ct_OBJDUMP" = x; then
5037     OBJDUMP="false"
5038   else
5039     case $cross_compiling:$ac_tool_warned in
5040 yes:)
5041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5042 whose name does not start with the host triplet.  If you think this
5043 configuration is useful to you, please write to autoconf@gnu.org." >&5
5044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5045 whose name does not start with the host triplet.  If you think this
5046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049     OBJDUMP=$ac_ct_OBJDUMP
5050   fi
5051 else
5052   OBJDUMP="$ac_cv_prog_OBJDUMP"
5053 fi
5054
5055   ;;
5056
5057 esac
5058
5059 need_locks="$enable_libtool_lock"
5060
5061
5062 ac_ext=c
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5068 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5069 # On Suns, sometimes $CPP names a directory.
5070 if test -n "$CPP" && test -d "$CPP"; then
5071   CPP=
5072 fi
5073 if test -z "$CPP"; then
5074   if test "${ac_cv_prog_CPP+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077       # Double quotes because CPP needs to be expanded
5078     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5079     do
5080       ac_preproc_ok=false
5081 for ac_c_preproc_warn_flag in '' yes
5082 do
5083   # Use a header file that comes with gcc, so configuring glibc
5084   # with a fresh cross-compiler works.
5085   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086   # <limits.h> exists even on freestanding compilers.
5087   # On the NeXT, cc -E runs the code through the compiler's parser,
5088   # not just through cpp. "Syntax error" is here to catch this case.
5089   cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h.  */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h.  */
5095 #ifdef __STDC__
5096 # include <limits.h>
5097 #else
5098 # include <assert.h>
5099 #endif
5100                      Syntax error
5101 _ACEOF
5102 if { (ac_try="$ac_cpp conftest.$ac_ext"
5103 case "(($ac_try" in
5104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105   *) ac_try_echo=$ac_try;;
5106 esac
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5109   ac_status=$?
5110   grep -v '^ *+' conftest.er1 >conftest.err
5111   rm -f conftest.er1
5112   cat conftest.err >&5
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } >/dev/null && {
5115          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5116          test ! -s conftest.err
5117        }; then
5118   :
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123   # Broken: fails on valid input.
5124 continue
5125 fi
5126
5127 rm -f conftest.err conftest.$ac_ext
5128
5129   # OK, works on sane cases.  Now check whether nonexistent headers
5130   # can be detected and how.
5131   cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h.  */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h.  */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if { (ac_try="$ac_cpp conftest.$ac_ext"
5140 case "(($ac_try" in
5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142   *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5146   ac_status=$?
5147   grep -v '^ *+' conftest.er1 >conftest.err
5148   rm -f conftest.er1
5149   cat conftest.err >&5
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } >/dev/null && {
5152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5153          test ! -s conftest.err
5154        }; then
5155   # Broken: success on invalid input.
5156 continue
5157 else
5158   echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161   # Passes both tests.
5162 ac_preproc_ok=:
5163 break
5164 fi
5165
5166 rm -f conftest.err conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5172   break
5173 fi
5174
5175     done
5176     ac_cv_prog_CPP=$CPP
5177
5178 fi
5179   CPP=$ac_cv_prog_CPP
5180 else
5181   ac_cv_prog_CPP=$CPP
5182 fi
5183 { echo "$as_me:$LINENO: result: $CPP" >&5
5184 echo "${ECHO_T}$CPP" >&6; }
5185 ac_preproc_ok=false
5186 for ac_c_preproc_warn_flag in '' yes
5187 do
5188   # Use a header file that comes with gcc, so configuring glibc
5189   # with a fresh cross-compiler works.
5190   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191   # <limits.h> exists even on freestanding compilers.
5192   # On the NeXT, cc -E runs the code through the compiler's parser,
5193   # not just through cpp. "Syntax error" is here to catch this case.
5194   cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205                      Syntax error
5206 _ACEOF
5207 if { (ac_try="$ac_cpp conftest.$ac_ext"
5208 case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } >/dev/null && {
5220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5221          test ! -s conftest.err
5222        }; then
5223   :
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228   # Broken: fails on valid input.
5229 continue
5230 fi
5231
5232 rm -f conftest.err conftest.$ac_ext
5233
5234   # OK, works on sane cases.  Now check whether nonexistent headers
5235   # can be detected and how.
5236   cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 #include <ac_nonexistent.h>
5243 _ACEOF
5244 if { (ac_try="$ac_cpp conftest.$ac_ext"
5245 case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5251   ac_status=$?
5252   grep -v '^ *+' conftest.er1 >conftest.err
5253   rm -f conftest.er1
5254   cat conftest.err >&5
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } >/dev/null && {
5257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5258          test ! -s conftest.err
5259        }; then
5260   # Broken: success on invalid input.
5261 continue
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266   # Passes both tests.
5267 ac_preproc_ok=:
5268 break
5269 fi
5270
5271 rm -f conftest.err conftest.$ac_ext
5272
5273 done
5274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275 rm -f conftest.err conftest.$ac_ext
5276 if $ac_preproc_ok; then
5277   :
5278 else
5279   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details." >&5
5281 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5282 See \`config.log' for more details." >&2;}
5283    { (exit 1); exit 1; }; }
5284 fi
5285
5286 ac_ext=c
5287 ac_cpp='$CPP $CPPFLAGS'
5288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
5292
5293 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5294 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5295 if test "${ac_cv_header_stdc+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 #include <stdlib.h>
5305 #include <stdarg.h>
5306 #include <string.h>
5307 #include <float.h>
5308
5309 int
5310 main ()
5311 {
5312
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5319 case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324   (eval "$ac_compile") 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } && {
5331          test -z "$ac_c_werror_flag" ||
5332          test ! -s conftest.err
5333        } && test -s conftest.$ac_objext; then
5334   ac_cv_header_stdc=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339         ac_cv_header_stdc=no
5340 fi
5341
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343
5344 if test $ac_cv_header_stdc = yes; then
5345   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 #include <string.h>
5353
5354 _ACEOF
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356   $EGREP "memchr" >/dev/null 2>&1; then
5357   :
5358 else
5359   ac_cv_header_stdc=no
5360 fi
5361 rm -f conftest*
5362
5363 fi
5364
5365 if test $ac_cv_header_stdc = yes; then
5366   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <stdlib.h>
5374
5375 _ACEOF
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377   $EGREP "free" >/dev/null 2>&1; then
5378   :
5379 else
5380   ac_cv_header_stdc=no
5381 fi
5382 rm -f conftest*
5383
5384 fi
5385
5386 if test $ac_cv_header_stdc = yes; then
5387   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388   if test "$cross_compiling" = yes; then
5389   :
5390 else
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #include <ctype.h>
5398 #include <stdlib.h>
5399 #if ((' ' & 0x0FF) == 0x020)
5400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5402 #else
5403 # define ISLOWER(c) \
5404                    (('a' <= (c) && (c) <= 'i') \
5405                      || ('j' <= (c) && (c) <= 'r') \
5406                      || ('s' <= (c) && (c) <= 'z'))
5407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5408 #endif
5409
5410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5411 int
5412 main ()
5413 {
5414   int i;
5415   for (i = 0; i < 256; i++)
5416     if (XOR (islower (i), ISLOWER (i))
5417         || toupper (i) != TOUPPER (i))
5418       return 2;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest$ac_exeext
5423 if { (ac_try="$ac_link"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_link") 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5433   { (case "(($ac_try" in
5434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435   *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438   (eval "$ac_try") 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }; }; then
5442   :
5443 else
5444   echo "$as_me: program exited with status $ac_status" >&5
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448 ( exit $ac_status )
5449 ac_cv_header_stdc=no
5450 fi
5451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 fi
5453
5454
5455 fi
5456 fi
5457 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5458 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5459 if test $ac_cv_header_stdc = yes; then
5460
5461 cat >>confdefs.h <<\_ACEOF
5462 #define STDC_HEADERS 1
5463 _ACEOF
5464
5465 fi
5466
5467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5478                   inttypes.h stdint.h unistd.h
5479 do
5480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486   cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h.  */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h.  */
5492 $ac_includes_default
5493
5494 #include <$ac_header>
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_compile") 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } && {
5510          test -z "$ac_c_werror_flag" ||
5511          test ! -s conftest.err
5512        } && test -s conftest.$ac_objext; then
5513   eval "$as_ac_Header=yes"
5514 else
5515   echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518         eval "$as_ac_Header=no"
5519 fi
5520
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 ac_res=`eval echo '${'$as_ac_Header'}'`
5524                { echo "$as_me:$LINENO: result: $ac_res" >&5
5525 echo "${ECHO_T}$ac_res" >&6; }
5526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5527   cat >>confdefs.h <<_ACEOF
5528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5529 _ACEOF
5530
5531 fi
5532
5533 done
5534
5535
5536
5537 for ac_header in dlfcn.h
5538 do
5539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 fi
5546 ac_res=`eval echo '${'$as_ac_Header'}'`
5547                { echo "$as_me:$LINENO: result: $ac_res" >&5
5548 echo "${ECHO_T}$ac_res" >&6; }
5549 else
5550   # Is the header compilable?
5551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 $ac_includes_default
5560 #include <$ac_header>
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566   *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569   (eval "$ac_compile") 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } && {
5576          test -z "$ac_c_werror_flag" ||
5577          test ! -s conftest.err
5578        } && test -s conftest.$ac_objext; then
5579   ac_header_compiler=yes
5580 else
5581   echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584         ac_header_compiler=no
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5589 echo "${ECHO_T}$ac_header_compiler" >&6; }
5590
5591 # Is the header present?
5592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 #include <$ac_header>
5601 _ACEOF
5602 if { (ac_try="$ac_cpp conftest.$ac_ext"
5603 case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } >/dev/null && {
5615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5616          test ! -s conftest.err
5617        }; then
5618   ac_header_preproc=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623   ac_header_preproc=no
5624 fi
5625
5626 rm -f conftest.err conftest.$ac_ext
5627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5628 echo "${ECHO_T}$ac_header_preproc" >&6; }
5629
5630 # So?  What about this header?
5631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5632   yes:no: )
5633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5637     ac_header_preproc=yes
5638     ;;
5639   no:yes:* )
5640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5652     ( cat <<\_ASBOX
5653 ## -------------------------------------------------- ##
5654 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5655 ## -------------------------------------------------- ##
5656 _ASBOX
5657      ) | sed "s/^/$as_me: WARNING:     /" >&2
5658     ;;
5659 esac
5660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   eval "$as_ac_Header=\$ac_header_preproc"
5666 fi
5667 ac_res=`eval echo '${'$as_ac_Header'}'`
5668                { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5670
5671 fi
5672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5673   cat >>confdefs.h <<_ACEOF
5674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5675 _ACEOF
5676
5677 fi
5678
5679 done
5680
5681 ac_ext=cpp
5682 ac_cpp='$CXXCPP $CPPFLAGS'
5683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5686 if test -z "$CXX"; then
5687   if test -n "$CCC"; then
5688     CXX=$CCC
5689   else
5690     if test -n "$ac_tool_prefix"; then
5691   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5692   do
5693     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_CXX+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   if test -n "$CXX"; then
5701   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708   for ac_exec_ext in '' $ac_executable_extensions; do
5709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 CXX=$ac_cv_prog_CXX
5721 if test -n "$CXX"; then
5722   { echo "$as_me:$LINENO: result: $CXX" >&5
5723 echo "${ECHO_T}$CXX" >&6; }
5724 else
5725   { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5727 fi
5728
5729
5730     test -n "$CXX" && break
5731   done
5732 fi
5733 if test -z "$CXX"; then
5734   ac_ct_CXX=$CXX
5735   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5736 do
5737   # Extract the first word of "$ac_prog", so it can be a program name with args.
5738 set dummy $ac_prog; ac_word=$2
5739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5741 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   if test -n "$ac_ct_CXX"; then
5745   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752   for ac_exec_ext in '' $ac_executable_extensions; do
5753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754     ac_cv_prog_ac_ct_CXX="$ac_prog"
5755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759 done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5765 if test -n "$ac_ct_CXX"; then
5766   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5767 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5768 else
5769   { echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6; }
5771 fi
5772
5773
5774   test -n "$ac_ct_CXX" && break
5775 done
5776
5777   if test "x$ac_ct_CXX" = x; then
5778     CXX="g++"
5779   else
5780     case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5783 whose name does not start with the host triplet.  If you think this
5784 configuration is useful to you, please write to autoconf@gnu.org." >&5
5785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5786 whose name does not start with the host triplet.  If you think this
5787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790     CXX=$ac_ct_CXX
5791   fi
5792 fi
5793
5794   fi
5795 fi
5796 # Provide some information about the compiler.
5797 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5798 ac_compiler=`set X $ac_compile; echo $2`
5799 { (ac_try="$ac_compiler --version >&5"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_compiler --version >&5") 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }
5809 { (ac_try="$ac_compiler -v >&5"
5810 case "(($ac_try" in
5811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812   *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815   (eval "$ac_compiler -v >&5") 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }
5819 { (ac_try="$ac_compiler -V >&5"
5820 case "(($ac_try" in
5821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822   *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825   (eval "$ac_compiler -V >&5") 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }
5829
5830 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5831 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5832 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841
5842 int
5843 main ()
5844 {
5845 #ifndef __GNUC__
5846        choke me
5847 #endif
5848
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_compile") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } && {
5867          test -z "$ac_cxx_werror_flag" ||
5868          test ! -s conftest.err
5869        } && test -s conftest.$ac_objext; then
5870   ac_compiler_gnu=yes
5871 else
5872   echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875         ac_compiler_gnu=no
5876 fi
5877
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5880
5881 fi
5882 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5883 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5884 GXX=`test $ac_compiler_gnu = yes && echo yes`
5885 ac_test_CXXFLAGS=${CXXFLAGS+set}
5886 ac_save_CXXFLAGS=$CXXFLAGS
5887 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5888 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5889 if test "${ac_cv_prog_cxx_g+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5893    ac_cxx_werror_flag=yes
5894    ac_cv_prog_cxx_g=no
5895    CXXFLAGS="-g"
5896    cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902
5903 int
5904 main ()
5905 {
5906
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5913 case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_compile") 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
5922   cat conftest.err >&5
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } && {
5925          test -z "$ac_cxx_werror_flag" ||
5926          test ! -s conftest.err
5927        } && test -s conftest.$ac_objext; then
5928   ac_cv_prog_cxx_g=yes
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933         CXXFLAGS=""
5934       cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940
5941 int
5942 main ()
5943 {
5944
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956   (eval "$ac_compile") 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } && {
5963          test -z "$ac_cxx_werror_flag" ||
5964          test ! -s conftest.err
5965        } && test -s conftest.$ac_objext; then
5966   :
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5972          CXXFLAGS="-g"
5973          cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979
5980 int
5981 main ()
5982 {
5983
5984   ;
5985   return 0;
5986 }
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5990 case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_compile") 2>conftest.er1
5996   ac_status=$?
5997   grep -v '^ *+' conftest.er1 >conftest.err
5998   rm -f conftest.er1
5999   cat conftest.err >&5
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); } && {
6002          test -z "$ac_cxx_werror_flag" ||
6003          test ! -s conftest.err
6004        } && test -s conftest.$ac_objext; then
6005   ac_cv_prog_cxx_g=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010
6011 fi
6012
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 fi
6015
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6021 fi
6022 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6023 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6024 if test "$ac_test_CXXFLAGS" = set; then
6025   CXXFLAGS=$ac_save_CXXFLAGS
6026 elif test $ac_cv_prog_cxx_g = yes; then
6027   if test "$GXX" = yes; then
6028     CXXFLAGS="-g -O2"
6029   else
6030     CXXFLAGS="-g"
6031   fi
6032 else
6033   if test "$GXX" = yes; then
6034     CXXFLAGS="-O2"
6035   else
6036     CXXFLAGS=
6037   fi
6038 fi
6039 ac_ext=cpp
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6044
6045 depcc="$CXX"  am_compiler_list=
6046
6047 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6048 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6049 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6053   # We make a subdir and do the tests there.  Otherwise we can end up
6054   # making bogus files that we don't know about and never remove.  For
6055   # instance it was reported that on HP-UX the gcc test will end up
6056   # making a dummy file named `D' -- because `-MD' means `put the output
6057   # in D'.
6058   mkdir conftest.dir
6059   # Copy depcomp to subdir because otherwise we won't find it if we're
6060   # using a relative directory.
6061   cp "$am_depcomp" conftest.dir
6062   cd conftest.dir
6063   # We will build objects and dependencies in a subdirectory because
6064   # it helps to detect inapplicable dependency modes.  For instance
6065   # both Tru64's cc and ICC support -MD to output dependencies as a
6066   # side effect of compilation, but ICC will put the dependencies in
6067   # the current directory while Tru64 will put them in the object
6068   # directory.
6069   mkdir sub
6070
6071   am_cv_CXX_dependencies_compiler_type=none
6072   if test "$am_compiler_list" = ""; then
6073      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6074   fi
6075   for depmode in $am_compiler_list; do
6076     # Setup a source with many dependencies, because some compilers
6077     # like to wrap large dependency lists on column 80 (with \), and
6078     # we should not choose a depcomp mode which is confused by this.
6079     #
6080     # We need to recreate these files for each test, as the compiler may
6081     # overwrite some of them when testing with obscure command lines.
6082     # This happens at least with the AIX C compiler.
6083     : > sub/conftest.c
6084     for i in 1 2 3 4 5 6; do
6085       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6086       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6087       # Solaris 8's {/usr,}/bin/sh.
6088       touch sub/conftst$i.h
6089     done
6090     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6091
6092     case $depmode in
6093     nosideeffect)
6094       # after this tag, mechanisms are not by side-effect, so they'll
6095       # only be used when explicitly requested
6096       if test "x$enable_dependency_tracking" = xyes; then
6097         continue
6098       else
6099         break
6100       fi
6101       ;;
6102     none) break ;;
6103     esac
6104     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6105     # mode.  It turns out that the SunPro C++ compiler does not properly
6106     # handle `-M -o', and we need to detect this.
6107     if depmode=$depmode \
6108        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6109        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6110        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6111          >/dev/null 2>conftest.err &&
6112        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6113        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6114        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6115        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6116       # icc doesn't choke on unknown options, it will just issue warnings
6117       # or remarks (even with -Werror).  So we grep stderr for any message
6118       # that says an option was ignored or not supported.
6119       # When given -MP, icc 7.0 and 7.1 complain thusly:
6120       #   icc: Command line warning: ignoring option '-M'; no argument required
6121       # The diagnosis changed in icc 8.0:
6122       #   icc: Command line remark: option '-MP' not supported
6123       if (grep 'ignoring option' conftest.err ||
6124           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6125         am_cv_CXX_dependencies_compiler_type=$depmode
6126         break
6127       fi
6128     fi
6129   done
6130
6131   cd ..
6132   rm -rf conftest.dir
6133 else
6134   am_cv_CXX_dependencies_compiler_type=none
6135 fi
6136
6137 fi
6138 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6139 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6140 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6141
6142  if
6143   test "x$enable_dependency_tracking" != xno \
6144   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6145   am__fastdepCXX_TRUE=
6146   am__fastdepCXX_FALSE='#'
6147 else
6148   am__fastdepCXX_TRUE='#'
6149   am__fastdepCXX_FALSE=
6150 fi
6151
6152
6153
6154
6155 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6156     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6157     (test "X$CXX" != "Xg++"))) ; then
6158   ac_ext=cpp
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6163 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6164 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6165 if test -z "$CXXCPP"; then
6166   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169       # Double quotes because CXXCPP needs to be expanded
6170     for CXXCPP in "$CXX -E" "/lib/cpp"
6171     do
6172       ac_preproc_ok=false
6173 for ac_cxx_preproc_warn_flag in '' yes
6174 do
6175   # Use a header file that comes with gcc, so configuring glibc
6176   # with a fresh cross-compiler works.
6177   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178   # <limits.h> exists even on freestanding compilers.
6179   # On the NeXT, cc -E runs the code through the compiler's parser,
6180   # not just through cpp. "Syntax error" is here to catch this case.
6181   cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187 #ifdef __STDC__
6188 # include <limits.h>
6189 #else
6190 # include <assert.h>
6191 #endif
6192                      Syntax error
6193 _ACEOF
6194 if { (ac_try="$ac_cpp conftest.$ac_ext"
6195 case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } >/dev/null && {
6207          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6208          test ! -s conftest.err
6209        }; then
6210   :
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215   # Broken: fails on valid input.
6216 continue
6217 fi
6218
6219 rm -f conftest.err conftest.$ac_ext
6220
6221   # OK, works on sane cases.  Now check whether nonexistent headers
6222   # can be detected and how.
6223   cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229 #include <ac_nonexistent.h>
6230 _ACEOF
6231 if { (ac_try="$ac_cpp conftest.$ac_ext"
6232 case "(($ac_try" in
6233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234   *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6238   ac_status=$?
6239   grep -v '^ *+' conftest.er1 >conftest.err
6240   rm -f conftest.er1
6241   cat conftest.err >&5
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); } >/dev/null && {
6244          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6245          test ! -s conftest.err
6246        }; then
6247   # Broken: success on invalid input.
6248 continue
6249 else
6250   echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253   # Passes both tests.
6254 ac_preproc_ok=:
6255 break
6256 fi
6257
6258 rm -f conftest.err conftest.$ac_ext
6259
6260 done
6261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262 rm -f conftest.err conftest.$ac_ext
6263 if $ac_preproc_ok; then
6264   break
6265 fi
6266
6267     done
6268     ac_cv_prog_CXXCPP=$CXXCPP
6269
6270 fi
6271   CXXCPP=$ac_cv_prog_CXXCPP
6272 else
6273   ac_cv_prog_CXXCPP=$CXXCPP
6274 fi
6275 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6276 echo "${ECHO_T}$CXXCPP" >&6; }
6277 ac_preproc_ok=false
6278 for ac_cxx_preproc_warn_flag in '' yes
6279 do
6280   # Use a header file that comes with gcc, so configuring glibc
6281   # with a fresh cross-compiler works.
6282   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283   # <limits.h> exists even on freestanding compilers.
6284   # On the NeXT, cc -E runs the code through the compiler's parser,
6285   # not just through cpp. "Syntax error" is here to catch this case.
6286   cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 #ifdef __STDC__
6293 # include <limits.h>
6294 #else
6295 # include <assert.h>
6296 #endif
6297                      Syntax error
6298 _ACEOF
6299 if { (ac_try="$ac_cpp conftest.$ac_ext"
6300 case "(($ac_try" in
6301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302   *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } >/dev/null && {
6312          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6313          test ! -s conftest.err
6314        }; then
6315   :
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320   # Broken: fails on valid input.
6321 continue
6322 fi
6323
6324 rm -f conftest.err conftest.$ac_ext
6325
6326   # OK, works on sane cases.  Now check whether nonexistent headers
6327   # can be detected and how.
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 #include <ac_nonexistent.h>
6335 _ACEOF
6336 if { (ac_try="$ac_cpp conftest.$ac_ext"
6337 case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6343   ac_status=$?
6344   grep -v '^ *+' conftest.er1 >conftest.err
6345   rm -f conftest.er1
6346   cat conftest.err >&5
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } >/dev/null && {
6349          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6350          test ! -s conftest.err
6351        }; then
6352   # Broken: success on invalid input.
6353 continue
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358   # Passes both tests.
6359 ac_preproc_ok=:
6360 break
6361 fi
6362
6363 rm -f conftest.err conftest.$ac_ext
6364
6365 done
6366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367 rm -f conftest.err conftest.$ac_ext
6368 if $ac_preproc_ok; then
6369   :
6370 else
6371   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6372 See \`config.log' for more details." >&5
6373 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6374 See \`config.log' for more details." >&2;}
6375    { (exit 1); exit 1; }; }
6376 fi
6377
6378 ac_ext=cpp
6379 ac_cpp='$CXXCPP $CPPFLAGS'
6380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6383
6384 fi
6385
6386
6387
6388
6389
6390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6391
6392 # find the maximum length of command line arguments
6393 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398     i=0
6399   teststring="ABCD"
6400
6401   case $build_os in
6402   msdosdjgpp*)
6403     # On DJGPP, this test can blow up pretty badly due to problems in libc
6404     # (any single argument exceeding 2000 bytes causes a buffer overrun
6405     # during glob expansion).  Even if it were fixed, the result of this
6406     # check would be larger than it should be.
6407     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6408     ;;
6409
6410   gnu*)
6411     # Under GNU Hurd, this test is not required because there is
6412     # no limit to the length of command line arguments.
6413     # Libtool will interpret -1 as no limit whatsoever
6414     lt_cv_sys_max_cmd_len=-1;
6415     ;;
6416
6417   cygwin* | mingw*)
6418     # On Win9x/ME, this test blows up -- it succeeds, but takes
6419     # about 5 minutes as the teststring grows exponentially.
6420     # Worse, since 9x/ME are not pre-emptively multitasking,
6421     # you end up with a "frozen" computer, even though with patience
6422     # the test eventually succeeds (with a max line length of 256k).
6423     # Instead, let's just punt: use the minimum linelength reported by
6424     # all of the supported platforms: 8192 (on NT/2K/XP).
6425     lt_cv_sys_max_cmd_len=8192;
6426     ;;
6427
6428   amigaos*)
6429     # On AmigaOS with pdksh, this test takes hours, literally.
6430     # So we just punt and use a minimum line length of 8192.
6431     lt_cv_sys_max_cmd_len=8192;
6432     ;;
6433
6434   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6435     # This has been around since 386BSD, at least.  Likely further.
6436     if test -x /sbin/sysctl; then
6437       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6438     elif test -x /usr/sbin/sysctl; then
6439       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6440     else
6441       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6442     fi
6443     # And add a safety zone
6444     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6445     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6446     ;;
6447
6448   interix*)
6449     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6450     lt_cv_sys_max_cmd_len=196608
6451     ;;
6452
6453   osf*)
6454     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6455     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6456     # nice to cause kernel panics so lets avoid the loop below.
6457     # First set a reasonable default.
6458     lt_cv_sys_max_cmd_len=16384
6459     #
6460     if test -x /sbin/sysconfig; then
6461       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6462         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6463       esac
6464     fi
6465     ;;
6466   sco3.2v5*)
6467     lt_cv_sys_max_cmd_len=102400
6468     ;;
6469   sysv5* | sco5v6* | sysv4.2uw2*)
6470     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6471     if test -n "$kargmax"; then
6472       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6473     else
6474       lt_cv_sys_max_cmd_len=32768
6475     fi
6476     ;;
6477   *)
6478     # If test is not a shell built-in, we'll probably end up computing a
6479     # maximum length that is only half of the actual maximum length, but
6480     # we can't tell.
6481     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6482     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6483                = "XX$teststring") >/dev/null 2>&1 &&
6484             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6485             lt_cv_sys_max_cmd_len=$new_result &&
6486             test $i != 17 # 1/2 MB should be enough
6487     do
6488       i=`expr $i + 1`
6489       teststring=$teststring$teststring
6490     done
6491     teststring=
6492     # Add a significant safety factor because C++ compilers can tack on massive
6493     # amounts of additional arguments before passing them to the linker.
6494     # It appears as though 1/2 is a usable value.
6495     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6496     ;;
6497   esac
6498
6499 fi
6500
6501 if test -n $lt_cv_sys_max_cmd_len ; then
6502   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6503 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6504 else
6505   { echo "$as_me:$LINENO: result: none" >&5
6506 echo "${ECHO_T}none" >&6; }
6507 fi
6508
6509
6510
6511
6512 # Check for command to grab the raw symbol name followed by C symbol from nm.
6513 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6514 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6515 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518
6519 # These are sane defaults that work on at least a few old systems.
6520 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6521
6522 # Character class describing NM global symbol codes.
6523 symcode='[BCDEGRST]'
6524
6525 # Regexp to match symbols that can be accessed directly from C.
6526 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6527
6528 # Transform an extracted symbol line into a proper C declaration
6529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6530
6531 # Transform an extracted symbol line into symbol name and symbol address
6532 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'"
6533
6534 # Define system-specific variables.
6535 case $host_os in
6536 aix*)
6537   symcode='[BCDT]'
6538   ;;
6539 cygwin* | mingw* | pw32*)
6540   symcode='[ABCDGISTW]'
6541   ;;
6542 hpux*) # Its linker distinguishes data from code symbols
6543   if test "$host_cpu" = ia64; then
6544     symcode='[ABCDEGRST]'
6545   fi
6546   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6547   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'"
6548   ;;
6549 linux* | k*bsd*-gnu)
6550   if test "$host_cpu" = ia64; then
6551     symcode='[ABCDGIRSTW]'
6552     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6553     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'"
6554   fi
6555   ;;
6556 irix* | nonstopux*)
6557   symcode='[BCDEGRST]'
6558   ;;
6559 osf*)
6560   symcode='[BCDEGQRST]'
6561   ;;
6562 solaris*)
6563   symcode='[BDRT]'
6564   ;;
6565 sco3.2v5*)
6566   symcode='[DT]'
6567   ;;
6568 sysv4.2uw2*)
6569   symcode='[DT]'
6570   ;;
6571 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6572   symcode='[ABDT]'
6573   ;;
6574 sysv4)
6575   symcode='[DFNSTU]'
6576   ;;
6577 esac
6578
6579 # Handle CRLF in mingw tool chain
6580 opt_cr=
6581 case $build_os in
6582 mingw*)
6583   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6584   ;;
6585 esac
6586
6587 # If we're using GNU nm, then use its standard symbol codes.
6588 case `$NM -V 2>&1` in
6589 *GNU* | *'with BFD'*)
6590   symcode='[ABCDGIRSTW]' ;;
6591 esac
6592
6593 # Try without a prefix undercore, then with it.
6594 for ac_symprfx in "" "_"; do
6595
6596   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6597   symxfrm="\\1 $ac_symprfx\\2 \\2"
6598
6599   # Write the raw and C identifiers.
6600   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6601
6602   # Check to see that the pipe works correctly.
6603   pipe_works=no
6604
6605   rm -f conftest*
6606   cat > conftest.$ac_ext <<EOF
6607 #ifdef __cplusplus
6608 extern "C" {
6609 #endif
6610 char nm_test_var;
6611 void nm_test_func(){}
6612 #ifdef __cplusplus
6613 }
6614 #endif
6615 int main(){nm_test_var='a';nm_test_func();return(0);}
6616 EOF
6617
6618   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619   (eval $ac_compile) 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; then
6623     # Now try to grab the symbols.
6624     nlist=conftest.nm
6625     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6626   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); } && test -s "$nlist"; then
6630       # Try sorting and uniquifying the output.
6631       if sort "$nlist" | uniq > "$nlist"T; then
6632         mv -f "$nlist"T "$nlist"
6633       else
6634         rm -f "$nlist"T
6635       fi
6636
6637       # Make sure that we snagged all the symbols we need.
6638       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6639         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6640           cat <<EOF > conftest.$ac_ext
6641 #ifdef __cplusplus
6642 extern "C" {
6643 #endif
6644
6645 EOF
6646           # Now generate the symbol file.
6647           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6648
6649           cat <<EOF >> conftest.$ac_ext
6650 #if defined (__STDC__) && __STDC__
6651 # define lt_ptr_t void *
6652 #else
6653 # define lt_ptr_t char *
6654 # define const
6655 #endif
6656
6657 /* The mapping between symbol names and symbols. */
6658 const struct {
6659   const char *name;
6660   lt_ptr_t address;
6661 }
6662 lt_preloaded_symbols[] =
6663 {
6664 EOF
6665           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6666           cat <<\EOF >> conftest.$ac_ext
6667   {0, (lt_ptr_t) 0}
6668 };
6669
6670 #ifdef __cplusplus
6671 }
6672 #endif
6673 EOF
6674           # Now try linking the two files.
6675           mv conftest.$ac_objext conftstm.$ac_objext
6676           lt_save_LIBS="$LIBS"
6677           lt_save_CFLAGS="$CFLAGS"
6678           LIBS="conftstm.$ac_objext"
6679           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6680           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681   (eval $ac_link) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6685             pipe_works=yes
6686           fi
6687           LIBS="$lt_save_LIBS"
6688           CFLAGS="$lt_save_CFLAGS"
6689         else
6690           echo "cannot find nm_test_func in $nlist" >&5
6691         fi
6692       else
6693         echo "cannot find nm_test_var in $nlist" >&5
6694       fi
6695     else
6696       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6697     fi
6698   else
6699     echo "$progname: failed program was:" >&5
6700     cat conftest.$ac_ext >&5
6701   fi
6702   rm -f conftest* conftst*
6703
6704   # Do not use the global_symbol_pipe unless it works.
6705   if test "$pipe_works" = yes; then
6706     break
6707   else
6708     lt_cv_sys_global_symbol_pipe=
6709   fi
6710 done
6711
6712 fi
6713
6714 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6715   lt_cv_sys_global_symbol_to_cdecl=
6716 fi
6717 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6718   { echo "$as_me:$LINENO: result: failed" >&5
6719 echo "${ECHO_T}failed" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: ok" >&5
6722 echo "${ECHO_T}ok" >&6; }
6723 fi
6724
6725 { echo "$as_me:$LINENO: checking for objdir" >&5
6726 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6727 if test "${lt_cv_objdir+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   rm -f .libs 2>/dev/null
6731 mkdir .libs 2>/dev/null
6732 if test -d .libs; then
6733   lt_cv_objdir=.libs
6734 else
6735   # MS-DOS does not allow filenames that begin with a dot.
6736   lt_cv_objdir=_libs
6737 fi
6738 rmdir .libs 2>/dev/null
6739 fi
6740 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6741 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6742 objdir=$lt_cv_objdir
6743
6744
6745
6746
6747
6748 case $host_os in
6749 aix3*)
6750   # AIX sometimes has problems with the GCC collect2 program.  For some
6751   # reason, if we set the COLLECT_NAMES environment variable, the problems
6752   # vanish in a puff of smoke.
6753   if test "X${COLLECT_NAMES+set}" != Xset; then
6754     COLLECT_NAMES=
6755     export COLLECT_NAMES
6756   fi
6757   ;;
6758 esac
6759
6760 # Sed substitution that helps us do robust quoting.  It backslashifies
6761 # metacharacters that are still active within double-quoted strings.
6762 Xsed='sed -e 1s/^X//'
6763 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6764
6765 # Same as above, but do not quote variable references.
6766 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6767
6768 # Sed substitution to delay expansion of an escaped shell variable in a
6769 # double_quote_subst'ed string.
6770 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6771
6772 # Sed substitution to avoid accidental globbing in evaled expressions
6773 no_glob_subst='s/\*/\\\*/g'
6774
6775 # Constants:
6776 rm="rm -f"
6777
6778 # Global variables:
6779 default_ofile=libtool
6780 can_build_shared=yes
6781
6782 # All known linkers require a `.a' archive for static linking (except MSVC,
6783 # which needs '.lib').
6784 libext=a
6785 ltmain="$ac_aux_dir/ltmain.sh"
6786 ofile="$default_ofile"
6787 with_gnu_ld="$lt_cv_prog_gnu_ld"
6788
6789 if test -n "$ac_tool_prefix"; then
6790   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}ar; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_prog_AR+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   if test -n "$AR"; then
6798   ac_cv_prog_AR="$AR" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805   for ac_exec_ext in '' $ac_executable_extensions; do
6806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807     ac_cv_prog_AR="${ac_tool_prefix}ar"
6808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 AR=$ac_cv_prog_AR
6818 if test -n "$AR"; then
6819   { echo "$as_me:$LINENO: result: $AR" >&5
6820 echo "${ECHO_T}$AR" >&6; }
6821 else
6822   { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_AR"; then
6829   ac_ct_AR=$AR
6830   # Extract the first word of "ar", so it can be a program name with args.
6831 set dummy ar; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   if test -n "$ac_ct_AR"; then
6838   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845   for ac_exec_ext in '' $ac_executable_extensions; do
6846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847     ac_cv_prog_ac_ct_AR="ar"
6848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6858 if test -n "$ac_ct_AR"; then
6859   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6860 echo "${ECHO_T}$ac_ct_AR" >&6; }
6861 else
6862   { echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6; }
6864 fi
6865
6866   if test "x$ac_ct_AR" = x; then
6867     AR="false"
6868   else
6869     case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet.  If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&5
6874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet.  If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879     AR=$ac_ct_AR
6880   fi
6881 else
6882   AR="$ac_cv_prog_AR"
6883 fi
6884
6885 if test -n "$ac_tool_prefix"; then
6886   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_prog_RANLIB+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   if test -n "$RANLIB"; then
6894   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   for ac_exec_ext in '' $ac_executable_extensions; do
6902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 RANLIB=$ac_cv_prog_RANLIB
6914 if test -n "$RANLIB"; then
6915   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6916 echo "${ECHO_T}$RANLIB" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_RANLIB"; then
6925   ac_ct_RANLIB=$RANLIB
6926   # Extract the first word of "ranlib", so it can be a program name with args.
6927 set dummy ranlib; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   if test -n "$ac_ct_RANLIB"; then
6934   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   for ac_exec_ext in '' $ac_executable_extensions; do
6942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943     ac_cv_prog_ac_ct_RANLIB="ranlib"
6944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6954 if test -n "$ac_ct_RANLIB"; then
6955   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6956 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962   if test "x$ac_ct_RANLIB" = x; then
6963     RANLIB=":"
6964   else
6965     case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6968 whose name does not start with the host triplet.  If you think this
6969 configuration is useful to you, please write to autoconf@gnu.org." >&5
6970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet.  If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975     RANLIB=$ac_ct_RANLIB
6976   fi
6977 else
6978   RANLIB="$ac_cv_prog_RANLIB"
6979 fi
6980
6981 if test -n "$ac_tool_prefix"; then
6982   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}strip; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_STRIP+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   if test -n "$STRIP"; then
6990   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 STRIP=$ac_cv_prog_STRIP
7010 if test -n "$STRIP"; then
7011   { echo "$as_me:$LINENO: result: $STRIP" >&5
7012 echo "${ECHO_T}$STRIP" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_STRIP"; then
7021   ac_ct_STRIP=$STRIP
7022   # Extract the first word of "strip", so it can be a program name with args.
7023 set dummy strip; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   if test -n "$ac_ct_STRIP"; then
7030   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039     ac_cv_prog_ac_ct_STRIP="strip"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7050 if test -n "$ac_ct_STRIP"; then
7051   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7052 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7053 else
7054   { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7056 fi
7057
7058   if test "x$ac_ct_STRIP" = x; then
7059     STRIP=":"
7060   else
7061     case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet.  If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&5
7066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet.  If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071     STRIP=$ac_ct_STRIP
7072   fi
7073 else
7074   STRIP="$ac_cv_prog_STRIP"
7075 fi
7076
7077
7078 old_CC="$CC"
7079 old_CFLAGS="$CFLAGS"
7080
7081 # Set sane defaults for various variables
7082 test -z "$AR" && AR=ar
7083 test -z "$AR_FLAGS" && AR_FLAGS=cru
7084 test -z "$AS" && AS=as
7085 test -z "$CC" && CC=cc
7086 test -z "$LTCC" && LTCC=$CC
7087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7088 test -z "$DLLTOOL" && DLLTOOL=dlltool
7089 test -z "$LD" && LD=ld
7090 test -z "$LN_S" && LN_S="ln -s"
7091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7092 test -z "$NM" && NM=nm
7093 test -z "$SED" && SED=sed
7094 test -z "$OBJDUMP" && OBJDUMP=objdump
7095 test -z "$RANLIB" && RANLIB=:
7096 test -z "$STRIP" && STRIP=:
7097 test -z "$ac_objext" && ac_objext=o
7098
7099 # Determine commands to create old-style static archives.
7100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7101 old_postinstall_cmds='chmod 644 $oldlib'
7102 old_postuninstall_cmds=
7103
7104 if test -n "$RANLIB"; then
7105   case $host_os in
7106   openbsd*)
7107     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7108     ;;
7109   *)
7110     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7111     ;;
7112   esac
7113   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7114 fi
7115
7116 for cc_temp in $compiler""; do
7117   case $cc_temp in
7118     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7119     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7120     \-*) ;;
7121     *) break;;
7122   esac
7123 done
7124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7125
7126
7127 # Only perform the check for file, if the check method requires it
7128 case $deplibs_check_method in
7129 file_magic*)
7130   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7131     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7132 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   case $MAGIC_CMD in
7137 [\\/*] |  ?:[\\/]*)
7138   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7139   ;;
7140 *)
7141   lt_save_MAGIC_CMD="$MAGIC_CMD"
7142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7143   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7144   for ac_dir in $ac_dummy; do
7145     IFS="$lt_save_ifs"
7146     test -z "$ac_dir" && ac_dir=.
7147     if test -f $ac_dir/${ac_tool_prefix}file; then
7148       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7149       if test -n "$file_magic_test_file"; then
7150         case $deplibs_check_method in
7151         "file_magic "*)
7152           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7153           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7154           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7155             $EGREP "$file_magic_regex" > /dev/null; then
7156             :
7157           else
7158             cat <<EOF 1>&2
7159
7160 *** Warning: the command libtool uses to detect shared libraries,
7161 *** $file_magic_cmd, produces output that libtool cannot recognize.
7162 *** The result is that libtool may fail to recognize shared libraries
7163 *** as such.  This will affect the creation of libtool libraries that
7164 *** depend on shared libraries, but programs linked with such libtool
7165 *** libraries will work regardless of this problem.  Nevertheless, you
7166 *** may want to report the problem to your system manager and/or to
7167 *** bug-libtool@gnu.org
7168
7169 EOF
7170           fi ;;
7171         esac
7172       fi
7173       break
7174     fi
7175   done
7176   IFS="$lt_save_ifs"
7177   MAGIC_CMD="$lt_save_MAGIC_CMD"
7178   ;;
7179 esac
7180 fi
7181
7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if test -n "$MAGIC_CMD"; then
7184   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7185 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191 if test -z "$lt_cv_path_MAGIC_CMD"; then
7192   if test -n "$ac_tool_prefix"; then
7193     { echo "$as_me:$LINENO: checking for file" >&5
7194 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   case $MAGIC_CMD in
7199 [\\/*] |  ?:[\\/]*)
7200   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7201   ;;
7202 *)
7203   lt_save_MAGIC_CMD="$MAGIC_CMD"
7204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7205   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7206   for ac_dir in $ac_dummy; do
7207     IFS="$lt_save_ifs"
7208     test -z "$ac_dir" && ac_dir=.
7209     if test -f $ac_dir/file; then
7210       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7211       if test -n "$file_magic_test_file"; then
7212         case $deplibs_check_method in
7213         "file_magic "*)
7214           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7215           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7217             $EGREP "$file_magic_regex" > /dev/null; then
7218             :
7219           else
7220             cat <<EOF 1>&2
7221
7222 *** Warning: the command libtool uses to detect shared libraries,
7223 *** $file_magic_cmd, produces output that libtool cannot recognize.
7224 *** The result is that libtool may fail to recognize shared libraries
7225 *** as such.  This will affect the creation of libtool libraries that
7226 *** depend on shared libraries, but programs linked with such libtool
7227 *** libraries will work regardless of this problem.  Nevertheless, you
7228 *** may want to report the problem to your system manager and/or to
7229 *** bug-libtool@gnu.org
7230
7231 EOF
7232           fi ;;
7233         esac
7234       fi
7235       break
7236     fi
7237   done
7238   IFS="$lt_save_ifs"
7239   MAGIC_CMD="$lt_save_MAGIC_CMD"
7240   ;;
7241 esac
7242 fi
7243
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if test -n "$MAGIC_CMD"; then
7246   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7247 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7248 else
7249   { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7251 fi
7252
7253   else
7254     MAGIC_CMD=:
7255   fi
7256 fi
7257
7258   fi
7259   ;;
7260 esac
7261
7262 enable_dlopen=no
7263 enable_win32_dll=yes
7264
7265 # Check whether --enable-libtool-lock was given.
7266 if test "${enable_libtool_lock+set}" = set; then
7267   enableval=$enable_libtool_lock;
7268 fi
7269
7270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7271
7272
7273 # Check whether --with-pic was given.
7274 if test "${with_pic+set}" = set; then
7275   withval=$with_pic; pic_mode="$withval"
7276 else
7277   pic_mode=default
7278 fi
7279
7280 test -z "$pic_mode" && pic_mode=default
7281
7282 # Use C for the default configuration in the libtool script
7283 tagname=
7284 lt_save_CC="$CC"
7285 ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291
7292 # Source file extension for C test sources.
7293 ac_ext=c
7294
7295 # Object file extension for compiled C test sources.
7296 objext=o
7297 objext=$objext
7298
7299 # Code to be used in simple compile tests
7300 lt_simple_compile_test_code="int some_variable = 0;\n"
7301
7302 # Code to be used in simple link tests
7303 lt_simple_link_test_code='int main(){return(0);}\n'
7304
7305
7306 # If no C compiler was specified, use CC.
7307 LTCC=${LTCC-"$CC"}
7308
7309 # If no C compiler flags were specified, use CFLAGS.
7310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7311
7312 # Allow CC to be a program name with arguments.
7313 compiler=$CC
7314
7315
7316 # save warnings/boilerplate of simple test code
7317 ac_outfile=conftest.$ac_objext
7318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7320 _lt_compiler_boilerplate=`cat conftest.err`
7321 $rm conftest*
7322
7323 ac_outfile=conftest.$ac_objext
7324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7326 _lt_linker_boilerplate=`cat conftest.err`
7327 $rm conftest*
7328
7329
7330
7331 lt_prog_compiler_no_builtin_flag=
7332
7333 if test "$GCC" = yes; then
7334   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7335
7336
7337 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7338 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7339 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   lt_cv_prog_compiler_rtti_exceptions=no
7343   ac_outfile=conftest.$ac_objext
7344    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7345    lt_compiler_flag="-fno-rtti -fno-exceptions"
7346    # Insert the option either (1) after the last *FLAGS variable, or
7347    # (2) before a word containing "conftest.", or (3) at the end.
7348    # Note that $ac_compile itself does not contain backslashes and begins
7349    # with a dollar sign (not a hyphen), so the echo should work correctly.
7350    # The option is referenced via a variable to avoid confusing sed.
7351    lt_compile=`echo "$ac_compile" | $SED \
7352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7354    -e 's:$: $lt_compiler_flag:'`
7355    (eval echo "\"\$as_me:7355: $lt_compile\"" >&5)
7356    (eval "$lt_compile" 2>conftest.err)
7357    ac_status=$?
7358    cat conftest.err >&5
7359    echo "$as_me:7359: \$? = $ac_status" >&5
7360    if (exit $ac_status) && test -s "$ac_outfile"; then
7361      # The compiler can only warn and ignore the option if not recognized
7362      # So say no if there are warnings other than the usual output.
7363      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7364      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7365      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7366        lt_cv_prog_compiler_rtti_exceptions=yes
7367      fi
7368    fi
7369    $rm conftest*
7370
7371 fi
7372 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7373 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7374
7375 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7376     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7377 else
7378     :
7379 fi
7380
7381 fi
7382
7383 lt_prog_compiler_wl=
7384 lt_prog_compiler_pic=
7385 lt_prog_compiler_static=
7386
7387 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7389
7390   if test "$GCC" = yes; then
7391     lt_prog_compiler_wl='-Wl,'
7392     lt_prog_compiler_static='-static'
7393
7394     case $host_os in
7395       aix*)
7396       # All AIX code is PIC.
7397       if test "$host_cpu" = ia64; then
7398         # AIX 5 now supports IA64 processor
7399         lt_prog_compiler_static='-Bstatic'
7400       fi
7401       ;;
7402
7403     amigaos*)
7404       # FIXME: we need at least 68020 code to build shared libraries, but
7405       # adding the `-m68020' flag to GCC prevents building anything better,
7406       # like `-m68040'.
7407       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7408       ;;
7409
7410     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7411       # PIC is the default for these OSes.
7412       ;;
7413
7414     mingw* | pw32* | os2*)
7415       # This hack is so that the source file can tell whether it is being
7416       # built for inclusion in a dll (and should export symbols for example).
7417       lt_prog_compiler_pic='-DDLL_EXPORT'
7418       ;;
7419
7420     darwin* | rhapsody*)
7421       # PIC is the default on this platform
7422       # Common symbols not allowed in MH_DYLIB files
7423       lt_prog_compiler_pic='-fno-common'
7424       ;;
7425
7426     interix3*)
7427       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7428       # Instead, we relocate shared libraries at runtime.
7429       ;;
7430
7431     msdosdjgpp*)
7432       # Just because we use GCC doesn't mean we suddenly get shared libraries
7433       # on systems that don't support them.
7434       lt_prog_compiler_can_build_shared=no
7435       enable_shared=no
7436       ;;
7437
7438     sysv4*MP*)
7439       if test -d /usr/nec; then
7440         lt_prog_compiler_pic=-Kconform_pic
7441       fi
7442       ;;
7443
7444     hpux*)
7445       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7446       # not for PA HP-UX.
7447       case $host_cpu in
7448       hppa*64*|ia64*)
7449         # +Z the default
7450         ;;
7451       *)
7452         lt_prog_compiler_pic='-fPIC'
7453         ;;
7454       esac
7455       ;;
7456
7457     *)
7458       lt_prog_compiler_pic='-fPIC'
7459       ;;
7460     esac
7461   else
7462     # PORTME Check for flag to pass linker flags through the system compiler.
7463     case $host_os in
7464     aix*)
7465       lt_prog_compiler_wl='-Wl,'
7466       if test "$host_cpu" = ia64; then
7467         # AIX 5 now supports IA64 processor
7468         lt_prog_compiler_static='-Bstatic'
7469       else
7470         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7471       fi
7472       ;;
7473       darwin*)
7474         # PIC is the default on this platform
7475         # Common symbols not allowed in MH_DYLIB files
7476        case $cc_basename in
7477          xlc*)
7478          lt_prog_compiler_pic='-qnocommon'
7479          lt_prog_compiler_wl='-Wl,'
7480          ;;
7481        esac
7482        ;;
7483
7484     mingw* | pw32* | os2*)
7485       # This hack is so that the source file can tell whether it is being
7486       # built for inclusion in a dll (and should export symbols for example).
7487       lt_prog_compiler_pic='-DDLL_EXPORT'
7488       ;;
7489
7490     hpux9* | hpux10* | hpux11*)
7491       lt_prog_compiler_wl='-Wl,'
7492       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7493       # not for PA HP-UX.
7494       case $host_cpu in
7495       hppa*64*|ia64*)
7496         # +Z the default
7497         ;;
7498       *)
7499         lt_prog_compiler_pic='+Z'
7500         ;;
7501       esac
7502       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7503       lt_prog_compiler_static='${wl}-a ${wl}archive'
7504       ;;
7505
7506     irix5* | irix6* | nonstopux*)
7507       lt_prog_compiler_wl='-Wl,'
7508       # PIC (with -KPIC) is the default.
7509       lt_prog_compiler_static='-non_shared'
7510       ;;
7511
7512     newsos6)
7513       lt_prog_compiler_pic='-KPIC'
7514       lt_prog_compiler_static='-Bstatic'
7515       ;;
7516
7517     linux* | k*bsd*-gnu)
7518       case $cc_basename in
7519       icc* | ecc*)
7520         lt_prog_compiler_wl='-Wl,'
7521         lt_prog_compiler_pic='-KPIC'
7522         lt_prog_compiler_static='-static'
7523         ;;
7524       pgcc* | pgf77* | pgf90* | pgf95*)
7525         # Portland Group compilers (*not* the Pentium gcc compiler,
7526         # which looks to be a dead project)
7527         lt_prog_compiler_wl='-Wl,'
7528         lt_prog_compiler_pic='-fpic'
7529         lt_prog_compiler_static='-Bstatic'
7530         ;;
7531       ccc*)
7532         lt_prog_compiler_wl='-Wl,'
7533         # All Alpha code is PIC.
7534         lt_prog_compiler_static='-non_shared'
7535         ;;
7536       esac
7537       ;;
7538
7539     osf3* | osf4* | osf5*)
7540       lt_prog_compiler_wl='-Wl,'
7541       # All OSF/1 code is PIC.
7542       lt_prog_compiler_static='-non_shared'
7543       ;;
7544
7545     solaris*)
7546       lt_prog_compiler_pic='-KPIC'
7547       lt_prog_compiler_static='-Bstatic'
7548       case $cc_basename in
7549       f77* | f90* | f95*)
7550         lt_prog_compiler_wl='-Qoption ld ';;
7551       *)
7552         lt_prog_compiler_wl='-Wl,';;
7553       esac
7554       ;;
7555
7556     sunos4*)
7557       lt_prog_compiler_wl='-Qoption ld '
7558       lt_prog_compiler_pic='-PIC'
7559       lt_prog_compiler_static='-Bstatic'
7560       ;;
7561
7562     sysv4 | sysv4.2uw2* | sysv4.3*)
7563       lt_prog_compiler_wl='-Wl,'
7564       lt_prog_compiler_pic='-KPIC'
7565       lt_prog_compiler_static='-Bstatic'
7566       ;;
7567
7568     sysv4*MP*)
7569       if test -d /usr/nec ;then
7570         lt_prog_compiler_pic='-Kconform_pic'
7571         lt_prog_compiler_static='-Bstatic'
7572       fi
7573       ;;
7574
7575     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7576       lt_prog_compiler_wl='-Wl,'
7577       lt_prog_compiler_pic='-KPIC'
7578       lt_prog_compiler_static='-Bstatic'
7579       ;;
7580
7581     unicos*)
7582       lt_prog_compiler_wl='-Wl,'
7583       lt_prog_compiler_can_build_shared=no
7584       ;;
7585
7586     uts4*)
7587       lt_prog_compiler_pic='-pic'
7588       lt_prog_compiler_static='-Bstatic'
7589       ;;
7590
7591     *)
7592       lt_prog_compiler_can_build_shared=no
7593       ;;
7594     esac
7595   fi
7596
7597 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7598 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7599
7600 #
7601 # Check to make sure the PIC flag actually works.
7602 #
7603 if test -n "$lt_prog_compiler_pic"; then
7604
7605 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7607 if test "${lt_prog_compiler_pic_works+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   lt_prog_compiler_pic_works=no
7611   ac_outfile=conftest.$ac_objext
7612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7613    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7614    # Insert the option either (1) after the last *FLAGS variable, or
7615    # (2) before a word containing "conftest.", or (3) at the end.
7616    # Note that $ac_compile itself does not contain backslashes and begins
7617    # with a dollar sign (not a hyphen), so the echo should work correctly.
7618    # The option is referenced via a variable to avoid confusing sed.
7619    lt_compile=`echo "$ac_compile" | $SED \
7620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622    -e 's:$: $lt_compiler_flag:'`
7623    (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624    (eval "$lt_compile" 2>conftest.err)
7625    ac_status=$?
7626    cat conftest.err >&5
7627    echo "$as_me:7627: \$? = $ac_status" >&5
7628    if (exit $ac_status) && test -s "$ac_outfile"; then
7629      # The compiler can only warn and ignore the option if not recognized
7630      # So say no if there are warnings other than the usual output.
7631      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7632      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634        lt_prog_compiler_pic_works=yes
7635      fi
7636    fi
7637    $rm conftest*
7638
7639 fi
7640 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7641 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7642
7643 if test x"$lt_prog_compiler_pic_works" = xyes; then
7644     case $lt_prog_compiler_pic in
7645      "" | " "*) ;;
7646      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7647      esac
7648 else
7649     lt_prog_compiler_pic=
7650      lt_prog_compiler_can_build_shared=no
7651 fi
7652
7653 fi
7654 case $host_os in
7655   # For platforms which do not support PIC, -DPIC is meaningless:
7656   *djgpp*)
7657     lt_prog_compiler_pic=
7658     ;;
7659   *)
7660     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7661     ;;
7662 esac
7663
7664 #
7665 # Check to make sure the static flag actually works.
7666 #
7667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7668 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7669 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7670 if test "${lt_prog_compiler_static_works+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   lt_prog_compiler_static_works=no
7674    save_LDFLAGS="$LDFLAGS"
7675    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7676    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7678      # The linker can only warn and ignore the option if not recognized
7679      # So say no if there are warnings
7680      if test -s conftest.err; then
7681        # Append any errors to the config.log.
7682        cat conftest.err 1>&5
7683        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7685        if diff conftest.exp conftest.er2 >/dev/null; then
7686          lt_prog_compiler_static_works=yes
7687        fi
7688      else
7689        lt_prog_compiler_static_works=yes
7690      fi
7691    fi
7692    $rm conftest*
7693    LDFLAGS="$save_LDFLAGS"
7694
7695 fi
7696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7697 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7698
7699 if test x"$lt_prog_compiler_static_works" = xyes; then
7700     :
7701 else
7702     lt_prog_compiler_static=
7703 fi
7704
7705
7706 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7707 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7708 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   lt_cv_prog_compiler_c_o=no
7712    $rm -r conftest 2>/dev/null
7713    mkdir conftest
7714    cd conftest
7715    mkdir out
7716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7717
7718    lt_compiler_flag="-o out/conftest2.$ac_objext"
7719    # Insert the option either (1) after the last *FLAGS variable, or
7720    # (2) before a word containing "conftest.", or (3) at the end.
7721    # Note that $ac_compile itself does not contain backslashes and begins
7722    # with a dollar sign (not a hyphen), so the echo should work correctly.
7723    lt_compile=`echo "$ac_compile" | $SED \
7724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726    -e 's:$: $lt_compiler_flag:'`
7727    (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728    (eval "$lt_compile" 2>out/conftest.err)
7729    ac_status=$?
7730    cat out/conftest.err >&5
7731    echo "$as_me:7731: \$? = $ac_status" >&5
7732    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7733    then
7734      # The compiler can only warn and ignore the option if not recognized
7735      # So say no if there are warnings
7736      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7737      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7738      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7739        lt_cv_prog_compiler_c_o=yes
7740      fi
7741    fi
7742    chmod u+w . 2>&5
7743    $rm conftest*
7744    # SGI C++ compiler will create directory out/ii_files/ for
7745    # template instantiation
7746    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7747    $rm out/* && rmdir out
7748    cd ..
7749    rmdir conftest
7750    $rm conftest*
7751
7752 fi
7753 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7755
7756
7757 hard_links="nottested"
7758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7759   # do not overwrite the value of need_locks provided by the user
7760   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7762   hard_links=yes
7763   $rm conftest*
7764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7765   touch conftest.a
7766   ln conftest.a conftest.b 2>&5 || hard_links=no
7767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768   { echo "$as_me:$LINENO: result: $hard_links" >&5
7769 echo "${ECHO_T}$hard_links" >&6; }
7770   if test "$hard_links" = no; then
7771     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7773     need_locks=warn
7774   fi
7775 else
7776   need_locks=no
7777 fi
7778
7779 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7781
7782   runpath_var=
7783   allow_undefined_flag=
7784   enable_shared_with_static_runtimes=no
7785   archive_cmds=
7786   archive_expsym_cmds=
7787   old_archive_From_new_cmds=
7788   old_archive_from_expsyms_cmds=
7789   export_dynamic_flag_spec=
7790   whole_archive_flag_spec=
7791   thread_safe_flag_spec=
7792   hardcode_libdir_flag_spec=
7793   hardcode_libdir_flag_spec_ld=
7794   hardcode_libdir_separator=
7795   hardcode_direct=no
7796   hardcode_minus_L=no
7797   hardcode_shlibpath_var=unsupported
7798   link_all_deplibs=unknown
7799   hardcode_automatic=no
7800   module_cmds=
7801   module_expsym_cmds=
7802   always_export_symbols=no
7803   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7804   # include_expsyms should be a list of space-separated symbols to be *always*
7805   # included in the symbol list
7806   include_expsyms=
7807   # exclude_expsyms can be an extended regexp of symbols to exclude
7808   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7809   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7810   # as well as any symbol that contains `d'.
7811   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7812   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7813   # platforms (ab)use it in PIC code, but their linkers get confused if
7814   # the symbol is explicitly referenced.  Since portable code cannot
7815   # rely on this symbol name, it's probably fine to never include it in
7816   # preloaded symbol tables.
7817   extract_expsyms_cmds=
7818   # Just being paranoid about ensuring that cc_basename is set.
7819   for cc_temp in $compiler""; do
7820   case $cc_temp in
7821     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7822     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7823     \-*) ;;
7824     *) break;;
7825   esac
7826 done
7827 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7828
7829   case $host_os in
7830   cygwin* | mingw* | pw32*)
7831     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7832     # When not using gcc, we currently assume that we are using
7833     # Microsoft Visual C++.
7834     if test "$GCC" != yes; then
7835       with_gnu_ld=no
7836     fi
7837     ;;
7838   interix*)
7839     # we just hope/assume this is gcc and not c89 (= MSVC++)
7840     with_gnu_ld=yes
7841     ;;
7842   openbsd*)
7843     with_gnu_ld=no
7844     ;;
7845   esac
7846
7847   ld_shlibs=yes
7848   if test "$with_gnu_ld" = yes; then
7849     # If archive_cmds runs LD, not CC, wlarc should be empty
7850     wlarc='${wl}'
7851
7852     # Set some defaults for GNU ld with shared library support. These
7853     # are reset later if shared libraries are not supported. Putting them
7854     # here allows them to be overridden if necessary.
7855     runpath_var=LD_RUN_PATH
7856     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7857     export_dynamic_flag_spec='${wl}--export-dynamic'
7858     # ancient GNU ld didn't support --whole-archive et. al.
7859     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7860         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7861       else
7862         whole_archive_flag_spec=
7863     fi
7864     supports_anon_versioning=no
7865     case `$LD -v 2>/dev/null` in
7866       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7867       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7868       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7869       *\ 2.11.*) ;; # other 2.11 versions
7870       *) supports_anon_versioning=yes ;;
7871     esac
7872
7873     # See if GNU ld supports shared libraries.
7874     case $host_os in
7875     aix3* | aix4* | aix5*)
7876       # On AIX/PPC, the GNU linker is very broken
7877       if test "$host_cpu" != ia64; then
7878         ld_shlibs=no
7879         cat <<EOF 1>&2
7880
7881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7882 *** to be unable to reliably create shared libraries on AIX.
7883 *** Therefore, libtool is disabling shared libraries support.  If you
7884 *** really care for shared libraries, you may want to modify your PATH
7885 *** so that a non-GNU linker is found, and then restart.
7886
7887 EOF
7888       fi
7889       ;;
7890
7891     amigaos*)
7892       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)'
7893       hardcode_libdir_flag_spec='-L$libdir'
7894       hardcode_minus_L=yes
7895
7896       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7897       # that the semantics of dynamic libraries on AmigaOS, at least up
7898       # to version 4, is to share data among multiple programs linked
7899       # with the same dynamic library.  Since this doesn't match the
7900       # behavior of shared libraries on other platforms, we can't use
7901       # them.
7902       ld_shlibs=no
7903       ;;
7904
7905     beos*)
7906       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7907         allow_undefined_flag=unsupported
7908         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7909         # support --undefined.  This deserves some investigation.  FIXME
7910         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911       else
7912         ld_shlibs=no
7913       fi
7914       ;;
7915
7916     cygwin* | mingw* | pw32*)
7917       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7918       # as there is no search path for DLLs.
7919       hardcode_libdir_flag_spec='-L$libdir'
7920       allow_undefined_flag=unsupported
7921       always_export_symbols=no
7922       enable_shared_with_static_runtimes=yes
7923       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7924
7925       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7927         # If the export-symbols file already is a .def file (1st line
7928         # is EXPORTS), use it as is; otherwise, prepend...
7929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7930           cp $export_symbols $output_objdir/$soname.def;
7931         else
7932           echo EXPORTS > $output_objdir/$soname.def;
7933           cat $export_symbols >> $output_objdir/$soname.def;
7934         fi~
7935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7936       else
7937         ld_shlibs=no
7938       fi
7939       ;;
7940
7941     interix3*)
7942       hardcode_direct=no
7943       hardcode_shlibpath_var=no
7944       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7945       export_dynamic_flag_spec='${wl}-E'
7946       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7947       # Instead, shared libraries are loaded at an image base (0x10000000 by
7948       # default) and relocated if they conflict, which is a slow very memory
7949       # consuming and fragmenting process.  To avoid this, we pick a random,
7950       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7951       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7952       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7953       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'
7954       ;;
7955
7956     linux* | k*bsd*-gnu)
7957       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7958         tmp_addflag=
7959         case $cc_basename,$host_cpu in
7960         pgcc*)                          # Portland Group C compiler
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'
7963           ;;
7964         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7965           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'
7966           tmp_addflag=' $pic_flag -Mnomain' ;;
7967         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7968           tmp_addflag=' -i_dynamic' ;;
7969         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7970           tmp_addflag=' -i_dynamic -nofor_main' ;;
7971         ifc* | ifort*)                  # Intel Fortran compiler
7972           tmp_addflag=' -nofor_main' ;;
7973         esac
7974         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975
7976         if test $supports_anon_versioning = yes; then
7977           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7978   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7979   $echo "local: *; };" >> $output_objdir/$libname.ver~
7980           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7981         fi
7982         link_all_deplibs=no
7983       else
7984         ld_shlibs=no
7985       fi
7986       ;;
7987
7988     netbsd* | netbsdelf*-gnu)
7989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7990         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7991         wlarc=
7992       else
7993         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7995       fi
7996       ;;
7997
7998     solaris*)
7999       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8000         ld_shlibs=no
8001         cat <<EOF 1>&2
8002
8003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8004 *** create shared libraries on Solaris systems.  Therefore, libtool
8005 *** is disabling shared libraries support.  We urge you to upgrade GNU
8006 *** binutils to release 2.9.1 or newer.  Another option is to modify
8007 *** your PATH or compiler configuration so that the native linker is
8008 *** used, and then restart.
8009
8010 EOF
8011       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8012         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8013         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8014       else
8015         ld_shlibs=no
8016       fi
8017       ;;
8018
8019     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8020       case `$LD -v 2>&1` in
8021         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8022         ld_shlibs=no
8023         cat <<_LT_EOF 1>&2
8024
8025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8026 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8027 *** is disabling shared libraries support.  We urge you to upgrade GNU
8028 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8029 *** your PATH or compiler configuration so that the native linker is
8030 *** used, and then restart.
8031
8032 _LT_EOF
8033         ;;
8034         *)
8035           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8036             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8037             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8038             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8039           else
8040             ld_shlibs=no
8041           fi
8042         ;;
8043       esac
8044       ;;
8045
8046     sunos4*)
8047       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8048       wlarc=
8049       hardcode_direct=yes
8050       hardcode_shlibpath_var=no
8051       ;;
8052
8053     *)
8054       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8056         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8057       else
8058         ld_shlibs=no
8059       fi
8060       ;;
8061     esac
8062
8063     if test "$ld_shlibs" = no; then
8064       runpath_var=
8065       hardcode_libdir_flag_spec=
8066       export_dynamic_flag_spec=
8067       whole_archive_flag_spec=
8068     fi
8069   else
8070     # PORTME fill in a description of your system's linker (not GNU ld)
8071     case $host_os in
8072     aix3*)
8073       allow_undefined_flag=unsupported
8074       always_export_symbols=yes
8075       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'
8076       # Note: this linker hardcodes the directories in LIBPATH if there
8077       # are no directories specified by -L.
8078       hardcode_minus_L=yes
8079       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8080         # Neither direct hardcoding nor static linking is supported with a
8081         # broken collect2.
8082         hardcode_direct=unsupported
8083       fi
8084       ;;
8085
8086     aix4* | aix5*)
8087       if test "$host_cpu" = ia64; then
8088         # On IA64, the linker does run time linking by default, so we don't
8089         # have to do anything special.
8090         aix_use_runtimelinking=no
8091         exp_sym_flag='-Bexport'
8092         no_entry_flag=""
8093       else
8094         # If we're using GNU nm, then we don't want the "-C" option.
8095         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8096         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8097           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'
8098         else
8099           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'
8100         fi
8101         aix_use_runtimelinking=no
8102
8103         # Test if we are trying to use run time linking or normal
8104         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8105         # need to do runtime linking.
8106         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8107           for ld_flag in $LDFLAGS; do
8108           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8109             aix_use_runtimelinking=yes
8110             break
8111           fi
8112           done
8113           ;;
8114         esac
8115
8116         exp_sym_flag='-bexport'
8117         no_entry_flag='-bnoentry'
8118       fi
8119
8120       # When large executables or shared objects are built, AIX ld can
8121       # have problems creating the table of contents.  If linking a library
8122       # or program results in "error TOC overflow" add -mminimal-toc to
8123       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8124       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8125
8126       archive_cmds=''
8127       hardcode_direct=yes
8128       hardcode_libdir_separator=':'
8129       link_all_deplibs=yes
8130
8131       if test "$GCC" = yes; then
8132         case $host_os in aix4.[012]|aix4.[012].*)
8133         # We only want to do this on AIX 4.2 and lower, the check
8134         # below for broken collect2 doesn't work under 4.3+
8135           collect2name=`${CC} -print-prog-name=collect2`
8136           if test -f "$collect2name" && \
8137            strings "$collect2name" | grep resolve_lib_name >/dev/null
8138           then
8139           # We have reworked collect2
8140           hardcode_direct=yes
8141           else
8142           # We have old collect2
8143           hardcode_direct=unsupported
8144           # It fails to find uninstalled libraries when the uninstalled
8145           # path is not listed in the libpath.  Setting hardcode_minus_L
8146           # to unsupported forces relinking
8147           hardcode_minus_L=yes
8148           hardcode_libdir_flag_spec='-L$libdir'
8149           hardcode_libdir_separator=
8150           fi
8151           ;;
8152         esac
8153         shared_flag='-shared'
8154         if test "$aix_use_runtimelinking" = yes; then
8155           shared_flag="$shared_flag "'${wl}-G'
8156         fi
8157       else
8158         # not using gcc
8159         if test "$host_cpu" = ia64; then
8160         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8161         # chokes on -Wl,-G. The following line is correct:
8162           shared_flag='-G'
8163         else
8164           if test "$aix_use_runtimelinking" = yes; then
8165             shared_flag='${wl}-G'
8166           else
8167             shared_flag='${wl}-bM:SRE'
8168           fi
8169         fi
8170       fi
8171
8172       # It seems that -bexpall does not export symbols beginning with
8173       # underscore (_), so it is better to generate a list of symbols to export.
8174       always_export_symbols=yes
8175       if test "$aix_use_runtimelinking" = yes; then
8176         # Warning - without using the other runtime loading flags (-brtl),
8177         # -berok will link without error, but may produce a broken library.
8178         allow_undefined_flag='-berok'
8179        # Determine the default libpath from the value encoded in an empty executable.
8180        cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 int
8188 main ()
8189 {
8190
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199   *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202   (eval "$ac_link") 2>conftest.er1
8203   ac_status=$?
8204   grep -v '^ *+' conftest.er1 >conftest.err
8205   rm -f conftest.er1
8206   cat conftest.err >&5
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); } && {
8209          test -z "$ac_c_werror_flag" ||
8210          test ! -s conftest.err
8211        } && test -s conftest$ac_exeext &&
8212        $as_test_x conftest$ac_exeext; then
8213
8214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8215 }'`
8216 # Check for a 64-bit object if we didn't find anything.
8217 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; }
8218 }'`; fi
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8222
8223
8224 fi
8225
8226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8227       conftest$ac_exeext conftest.$ac_ext
8228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8229
8230        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8231         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"
8232        else
8233         if test "$host_cpu" = ia64; then
8234           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8235           allow_undefined_flag="-z nodefs"
8236           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"
8237         else
8238          # Determine the default libpath from the value encoded in an empty executable.
8239          cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h.  */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h.  */
8245
8246 int
8247 main ()
8248 {
8249
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (ac_try="$ac_link"
8256 case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_link") 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } && {
8268          test -z "$ac_c_werror_flag" ||
8269          test ! -s conftest.err
8270        } && test -s conftest$ac_exeext &&
8271        $as_test_x conftest$ac_exeext; then
8272
8273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8274 }'`
8275 # Check for a 64-bit object if we didn't find anything.
8276 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; }
8277 }'`; fi
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282
8283 fi
8284
8285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8286       conftest$ac_exeext conftest.$ac_ext
8287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8288
8289          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8290           # Warning - without using the other run time loading flags,
8291           # -berok will link without error, but may produce a broken library.
8292           no_undefined_flag=' ${wl}-bernotok'
8293           allow_undefined_flag=' ${wl}-berok'
8294           # Exported symbols can be pulled into shared objects from archives
8295           whole_archive_flag_spec='$convenience'
8296           archive_cmds_need_lc=yes
8297           # This is similar to how AIX traditionally builds its shared libraries.
8298           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'
8299         fi
8300       fi
8301       ;;
8302
8303     amigaos*)
8304       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)'
8305       hardcode_libdir_flag_spec='-L$libdir'
8306       hardcode_minus_L=yes
8307       # see comment about different semantics on the GNU ld section
8308       ld_shlibs=no
8309       ;;
8310
8311     bsdi[45]*)
8312       export_dynamic_flag_spec=-rdynamic
8313       ;;
8314
8315     cygwin* | mingw* | pw32*)
8316       # When not using gcc, we currently assume that we are using
8317       # Microsoft Visual C++.
8318       # hardcode_libdir_flag_spec is actually meaningless, as there is
8319       # no search path for DLLs.
8320       hardcode_libdir_flag_spec=' '
8321       allow_undefined_flag=unsupported
8322       # Tell ltmain to make .lib files, not .a files.
8323       libext=lib
8324       # Tell ltmain to make .dll files, not .so files.
8325       shrext_cmds=".dll"
8326       # FIXME: Setting linknames here is a bad hack.
8327       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8328       # The linker will automatically build a .lib file if we build a DLL.
8329       old_archive_From_new_cmds='true'
8330       # FIXME: Should let the user specify the lib program.
8331       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8332       fix_srcfile_path='`cygpath -w "$srcfile"`'
8333       enable_shared_with_static_runtimes=yes
8334       ;;
8335
8336     darwin* | rhapsody*)
8337       case $host_os in
8338         rhapsody* | darwin1.[012])
8339          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8340          ;;
8341        *) # Darwin 1.3 on
8342          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8343            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8344          else
8345            case ${MACOSX_DEPLOYMENT_TARGET} in
8346              10.[012])
8347                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8348                ;;
8349              10.*)
8350                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8351                ;;
8352            esac
8353          fi
8354          ;;
8355       esac
8356       archive_cmds_need_lc=no
8357       hardcode_direct=no
8358       hardcode_automatic=yes
8359       hardcode_shlibpath_var=unsupported
8360       whole_archive_flag_spec=''
8361       link_all_deplibs=yes
8362     if test "$GCC" = yes ; then
8363         output_verbose_link_cmd='echo'
8364         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8365       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8366       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8367       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}'
8368       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}'
8369     else
8370       case $cc_basename in
8371         xlc*)
8372          output_verbose_link_cmd='echo'
8373          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8374          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8375           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8376          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}'
8377           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}'
8378           ;;
8379        *)
8380          ld_shlibs=no
8381           ;;
8382       esac
8383     fi
8384       ;;
8385
8386     dgux*)
8387       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388       hardcode_libdir_flag_spec='-L$libdir'
8389       hardcode_shlibpath_var=no
8390       ;;
8391
8392     freebsd1*)
8393       ld_shlibs=no
8394       ;;
8395
8396     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8397     # support.  Future versions do this automatically, but an explicit c++rt0.o
8398     # does not break anything, and helps significantly (at the cost of a little
8399     # extra space).
8400     freebsd2.2*)
8401       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8402       hardcode_libdir_flag_spec='-R$libdir'
8403       hardcode_direct=yes
8404       hardcode_shlibpath_var=no
8405       ;;
8406
8407     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8408     freebsd2*)
8409       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8410       hardcode_direct=yes
8411       hardcode_minus_L=yes
8412       hardcode_shlibpath_var=no
8413       ;;
8414
8415     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8416     freebsd* | dragonfly*)
8417       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8418       hardcode_libdir_flag_spec='-R$libdir'
8419       hardcode_direct=yes
8420       hardcode_shlibpath_var=no
8421       ;;
8422
8423     hpux9*)
8424       if test "$GCC" = yes; then
8425         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'
8426       else
8427         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'
8428       fi
8429       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8430       hardcode_libdir_separator=:
8431       hardcode_direct=yes
8432
8433       # hardcode_minus_L: Not really in the search PATH,
8434       # but as the default location of the library.
8435       hardcode_minus_L=yes
8436       export_dynamic_flag_spec='${wl}-E'
8437       ;;
8438
8439     hpux10*)
8440       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8441         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8442       else
8443         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8444       fi
8445       if test "$with_gnu_ld" = no; then
8446         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8447         hardcode_libdir_separator=:
8448
8449         hardcode_direct=yes
8450         export_dynamic_flag_spec='${wl}-E'
8451
8452         # hardcode_minus_L: Not really in the search PATH,
8453         # but as the default location of the library.
8454         hardcode_minus_L=yes
8455       fi
8456       ;;
8457
8458     hpux11*)
8459       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8460         case $host_cpu in
8461         hppa*64*)
8462           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463           ;;
8464         ia64*)
8465           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466           ;;
8467         *)
8468           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469           ;;
8470         esac
8471       else
8472         case $host_cpu in
8473         hppa*64*)
8474           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475           ;;
8476         ia64*)
8477           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8478           ;;
8479         *)
8480           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8481           ;;
8482         esac
8483       fi
8484       if test "$with_gnu_ld" = no; then
8485         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486         hardcode_libdir_separator=:
8487
8488         case $host_cpu in
8489         hppa*64*|ia64*)
8490           hardcode_libdir_flag_spec_ld='+b $libdir'
8491           hardcode_direct=no
8492           hardcode_shlibpath_var=no
8493           ;;
8494         *)
8495           hardcode_direct=yes
8496           export_dynamic_flag_spec='${wl}-E'
8497
8498           # hardcode_minus_L: Not really in the search PATH,
8499           # but as the default location of the library.
8500           hardcode_minus_L=yes
8501           ;;
8502         esac
8503       fi
8504       ;;
8505
8506     irix5* | irix6* | nonstopux*)
8507       if test "$GCC" = yes; then
8508         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'
8509       else
8510         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'
8511         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8512       fi
8513       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514       hardcode_libdir_separator=:
8515       link_all_deplibs=yes
8516       ;;
8517
8518     netbsd* | netbsdelf*-gnu)
8519       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8520         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8521       else
8522         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8523       fi
8524       hardcode_libdir_flag_spec='-R$libdir'
8525       hardcode_direct=yes
8526       hardcode_shlibpath_var=no
8527       ;;
8528
8529     newsos6)
8530       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8531       hardcode_direct=yes
8532       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533       hardcode_libdir_separator=:
8534       hardcode_shlibpath_var=no
8535       ;;
8536
8537     openbsd*)
8538       hardcode_direct=yes
8539       hardcode_shlibpath_var=no
8540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8541         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8542         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8543         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8544         export_dynamic_flag_spec='${wl}-E'
8545       else
8546        case $host_os in
8547          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8548            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8549            hardcode_libdir_flag_spec='-R$libdir'
8550            ;;
8551          *)
8552            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8553            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8554            ;;
8555        esac
8556       fi
8557       ;;
8558
8559     os2*)
8560       hardcode_libdir_flag_spec='-L$libdir'
8561       hardcode_minus_L=yes
8562       allow_undefined_flag=unsupported
8563       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'
8564       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8565       ;;
8566
8567     osf3*)
8568       if test "$GCC" = yes; then
8569         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8570         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'
8571       else
8572         allow_undefined_flag=' -expect_unresolved \*'
8573         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'
8574       fi
8575       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576       hardcode_libdir_separator=:
8577       ;;
8578
8579     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8580       if test "$GCC" = yes; then
8581         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8582         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'
8583         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8584       else
8585         allow_undefined_flag=' -expect_unresolved \*'
8586         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'
8587         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8588         $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'
8589
8590         # Both c and cxx compiler support -rpath directly
8591         hardcode_libdir_flag_spec='-rpath $libdir'
8592       fi
8593       hardcode_libdir_separator=:
8594       ;;
8595
8596     solaris*)
8597       no_undefined_flag=' -z text'
8598       if test "$GCC" = yes; then
8599         wlarc='${wl}'
8600         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8602           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8603       else
8604         wlarc=''
8605         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8607         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8608       fi
8609       hardcode_libdir_flag_spec='-R$libdir'
8610       hardcode_shlibpath_var=no
8611       case $host_os in
8612       solaris2.[0-5] | solaris2.[0-5].*) ;;
8613       *)
8614         # The compiler driver will combine linker options so we
8615         # cannot just pass the convience library names through
8616         # without $wl, iff we do not link with $LD.
8617         # Luckily, gcc supports the same syntax we need for Sun Studio.
8618         # Supported since Solaris 2.6 (maybe 2.5.1?)
8619         case $wlarc in
8620         '')
8621           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8622         *)
8623           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' ;;
8624         esac ;;
8625       esac
8626       link_all_deplibs=yes
8627       ;;
8628
8629     sunos4*)
8630       if test "x$host_vendor" = xsequent; then
8631         # Use $CC to link under sequent, because it throws in some extra .o
8632         # files that make .init and .fini sections work.
8633         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8634       else
8635         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8636       fi
8637       hardcode_libdir_flag_spec='-L$libdir'
8638       hardcode_direct=yes
8639       hardcode_minus_L=yes
8640       hardcode_shlibpath_var=no
8641       ;;
8642
8643     sysv4)
8644       case $host_vendor in
8645         sni)
8646           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647           hardcode_direct=yes # is this really true???
8648         ;;
8649         siemens)
8650           ## LD is ld it makes a PLAMLIB
8651           ## CC just makes a GrossModule.
8652           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8653           reload_cmds='$CC -r -o $output$reload_objs'
8654           hardcode_direct=no
8655         ;;
8656         motorola)
8657           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8659         ;;
8660       esac
8661       runpath_var='LD_RUN_PATH'
8662       hardcode_shlibpath_var=no
8663       ;;
8664
8665     sysv4.3*)
8666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667       hardcode_shlibpath_var=no
8668       export_dynamic_flag_spec='-Bexport'
8669       ;;
8670
8671     sysv4*MP*)
8672       if test -d /usr/nec; then
8673         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674         hardcode_shlibpath_var=no
8675         runpath_var=LD_RUN_PATH
8676         hardcode_runpath_var=yes
8677         ld_shlibs=yes
8678       fi
8679       ;;
8680
8681     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8682       no_undefined_flag='${wl}-z,text'
8683       archive_cmds_need_lc=no
8684       hardcode_shlibpath_var=no
8685       runpath_var='LD_RUN_PATH'
8686
8687       if test "$GCC" = yes; then
8688         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8690       else
8691         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8693       fi
8694       ;;
8695
8696     sysv5* | sco3.2v5* | sco5v6*)
8697       # Note: We can NOT use -z defs as we might desire, because we do not
8698       # link with -lc, and that would cause any symbols used from libc to
8699       # always be unresolved, which means just about no library would
8700       # ever link correctly.  If we're not using GNU ld we use -z text
8701       # though, which does catch some bad symbols but isn't as heavy-handed
8702       # as -z defs.
8703       no_undefined_flag='${wl}-z,text'
8704       allow_undefined_flag='${wl}-z,nodefs'
8705       archive_cmds_need_lc=no
8706       hardcode_shlibpath_var=no
8707       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8708       hardcode_libdir_separator=':'
8709       link_all_deplibs=yes
8710       export_dynamic_flag_spec='${wl}-Bexport'
8711       runpath_var='LD_RUN_PATH'
8712
8713       if test "$GCC" = yes; then
8714         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716       else
8717         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719       fi
8720       ;;
8721
8722     uts4*)
8723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724       hardcode_libdir_flag_spec='-L$libdir'
8725       hardcode_shlibpath_var=no
8726       ;;
8727
8728     *)
8729       ld_shlibs=no
8730       ;;
8731     esac
8732   fi
8733
8734 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735 echo "${ECHO_T}$ld_shlibs" >&6; }
8736 test "$ld_shlibs" = no && can_build_shared=no
8737
8738 #
8739 # Do we need to explicitly link libc?
8740 #
8741 case "x$archive_cmds_need_lc" in
8742 x|xyes)
8743   # Assume -lc should be added
8744   archive_cmds_need_lc=yes
8745
8746   if test "$enable_shared" = yes && test "$GCC" = yes; then
8747     case $archive_cmds in
8748     *'~'*)
8749       # FIXME: we may have to deal with multi-command sequences.
8750       ;;
8751     '$CC '*)
8752       # Test whether the compiler implicitly links with -lc since on some
8753       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8754       # to ld, don't add -lc before -lgcc.
8755       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8757       $rm conftest*
8758       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8759
8760       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761   (eval $ac_compile) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } 2>conftest.err; then
8765         soname=conftest
8766         lib=conftest
8767         libobjs=conftest.$ac_objext
8768         deplibs=
8769         wl=$lt_prog_compiler_wl
8770         pic_flag=$lt_prog_compiler_pic
8771         compiler_flags=-v
8772         linker_flags=-v
8773         verstring=
8774         output_objdir=.
8775         libname=conftest
8776         lt_save_allow_undefined_flag=$allow_undefined_flag
8777         allow_undefined_flag=
8778         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8779   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }
8783         then
8784           archive_cmds_need_lc=no
8785         else
8786           archive_cmds_need_lc=yes
8787         fi
8788         allow_undefined_flag=$lt_save_allow_undefined_flag
8789       else
8790         cat conftest.err 1>&5
8791       fi
8792       $rm conftest*
8793       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8794 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8795       ;;
8796     esac
8797   fi
8798   ;;
8799 esac
8800
8801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8803 library_names_spec=
8804 libname_spec='lib$name'
8805 soname_spec=
8806 shrext_cmds=".so"
8807 postinstall_cmds=
8808 postuninstall_cmds=
8809 finish_cmds=
8810 finish_eval=
8811 shlibpath_var=
8812 shlibpath_overrides_runpath=unknown
8813 version_type=none
8814 dynamic_linker="$host_os ld.so"
8815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8816 if test "$GCC" = yes; then
8817   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8818   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8819     # if the path contains ";" then we assume it to be the separator
8820     # otherwise default to the standard path separator (i.e. ":") - it is
8821     # assumed that no part of a normal pathname contains ";" but that should
8822     # okay in the real world where ";" in dirpaths is itself problematic.
8823     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8824   else
8825     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8826   fi
8827 else
8828   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8829 fi
8830 need_lib_prefix=unknown
8831 hardcode_into_libs=no
8832
8833 # when you set need_version to no, make sure it does not cause -set_version
8834 # flags to be left without arguments
8835 need_version=unknown
8836
8837 case $host_os in
8838 aix3*)
8839   version_type=linux
8840   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8841   shlibpath_var=LIBPATH
8842
8843   # AIX 3 has no versioning support, so we append a major version to the name.
8844   soname_spec='${libname}${release}${shared_ext}$major'
8845   ;;
8846
8847 aix4* | aix5*)
8848   version_type=linux
8849   need_lib_prefix=no
8850   need_version=no
8851   hardcode_into_libs=yes
8852   if test "$host_cpu" = ia64; then
8853     # AIX 5 supports IA64
8854     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8855     shlibpath_var=LD_LIBRARY_PATH
8856   else
8857     # With GCC up to 2.95.x, collect2 would create an import file
8858     # for dependence libraries.  The import file would start with
8859     # the line `#! .'.  This would cause the generated library to
8860     # depend on `.', always an invalid library.  This was fixed in
8861     # development snapshots of GCC prior to 3.0.
8862     case $host_os in
8863       aix4 | aix4.[01] | aix4.[01].*)
8864       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8865            echo ' yes '
8866            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8867         :
8868       else
8869         can_build_shared=no
8870       fi
8871       ;;
8872     esac
8873     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8874     # soname into executable. Probably we can add versioning support to
8875     # collect2, so additional links can be useful in future.
8876     if test "$aix_use_runtimelinking" = yes; then
8877       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8878       # instead of lib<name>.a to let people know that these are not
8879       # typical AIX shared libraries.
8880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881     else
8882       # We preserve .a as extension for shared libraries through AIX4.2
8883       # and later when we are not doing run time linking.
8884       library_names_spec='${libname}${release}.a $libname.a'
8885       soname_spec='${libname}${release}${shared_ext}$major'
8886     fi
8887     shlibpath_var=LIBPATH
8888   fi
8889   ;;
8890
8891 amigaos*)
8892   library_names_spec='$libname.ixlibrary $libname.a'
8893   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8894   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'
8895   ;;
8896
8897 beos*)
8898   library_names_spec='${libname}${shared_ext}'
8899   dynamic_linker="$host_os ld.so"
8900   shlibpath_var=LIBRARY_PATH
8901   ;;
8902
8903 bsdi[45]*)
8904   version_type=linux
8905   need_version=no
8906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907   soname_spec='${libname}${release}${shared_ext}$major'
8908   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8909   shlibpath_var=LD_LIBRARY_PATH
8910   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8911   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8912   # the default ld.so.conf also contains /usr/contrib/lib and
8913   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8914   # libtool to hard-code these into programs
8915   ;;
8916
8917 cygwin* | mingw* | pw32*)
8918   version_type=windows
8919   shrext_cmds=".dll"
8920   need_version=no
8921   need_lib_prefix=no
8922
8923   case $GCC,$host_os in
8924   yes,cygwin* | yes,mingw* | yes,pw32*)
8925     library_names_spec='$libname.dll.a'
8926     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8927     postinstall_cmds='base_file=`basename \${file}`~
8928       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8929       dldir=$destdir/`dirname \$dlpath`~
8930       test -d \$dldir || mkdir -p \$dldir~
8931       $install_prog $dir/$dlname \$dldir/$dlname~
8932       chmod a+x \$dldir/$dlname'
8933     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8934       dlpath=$dir/\$dldll~
8935        $rm \$dlpath'
8936     shlibpath_overrides_runpath=yes
8937
8938     case $host_os in
8939     cygwin*)
8940       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8941       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8942       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8943       ;;
8944     mingw*)
8945       # MinGW DLLs use traditional 'lib' prefix
8946       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8947       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8949         # It is most probably a Windows format PATH printed by
8950         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8951         # path with ; separators, and with drive letters. We can handle the
8952         # drive letters (cygwin fileutils understands them), so leave them,
8953         # especially as we might pass files found there to a mingw objdump,
8954         # which wouldn't understand a cygwinified path. Ahh.
8955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8956       else
8957         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8958       fi
8959       ;;
8960     pw32*)
8961       # pw32 DLLs use 'pw' prefix rather than 'lib'
8962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8963       ;;
8964     esac
8965     ;;
8966
8967   *)
8968     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8969     ;;
8970   esac
8971   dynamic_linker='Win32 ld.exe'
8972   # FIXME: first we should search . and the directory the executable is in
8973   shlibpath_var=PATH
8974   ;;
8975
8976 darwin* | rhapsody*)
8977   dynamic_linker="$host_os dyld"
8978   version_type=darwin
8979   need_lib_prefix=no
8980   need_version=no
8981   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8982   soname_spec='${libname}${release}${major}$shared_ext'
8983   shlibpath_overrides_runpath=yes
8984   shlibpath_var=DYLD_LIBRARY_PATH
8985   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8986   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8987   if test "$GCC" = yes; then
8988     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"`
8989   else
8990     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8991   fi
8992   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8993   ;;
8994
8995 dgux*)
8996   version_type=linux
8997   need_lib_prefix=no
8998   need_version=no
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   ;;
9003
9004 freebsd1*)
9005   dynamic_linker=no
9006   ;;
9007
9008 freebsd* | dragonfly*)
9009   # DragonFly does not have aout.  When/if they implement a new
9010   # versioning mechanism, adjust this.
9011   if test -x /usr/bin/objformat; then
9012     objformat=`/usr/bin/objformat`
9013   else
9014     case $host_os in
9015     freebsd[123]*) objformat=aout ;;
9016     *) objformat=elf ;;
9017     esac
9018   fi
9019   version_type=freebsd-$objformat
9020   case $version_type in
9021     freebsd-elf*)
9022       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023       need_version=no
9024       need_lib_prefix=no
9025       ;;
9026     freebsd-*)
9027       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028       need_version=yes
9029       ;;
9030   esac
9031   shlibpath_var=LD_LIBRARY_PATH
9032   case $host_os in
9033   freebsd2*)
9034     shlibpath_overrides_runpath=yes
9035     ;;
9036   freebsd3.[01]* | freebsdelf3.[01]*)
9037     shlibpath_overrides_runpath=yes
9038     hardcode_into_libs=yes
9039     ;;
9040   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9042     shlibpath_overrides_runpath=no
9043     hardcode_into_libs=yes
9044     ;;
9045   freebsd*) # from 4.6 on
9046     shlibpath_overrides_runpath=yes
9047     hardcode_into_libs=yes
9048     ;;
9049   esac
9050   ;;
9051
9052 gnu*)
9053   version_type=linux
9054   need_lib_prefix=no
9055   need_version=no
9056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057   soname_spec='${libname}${release}${shared_ext}$major'
9058   shlibpath_var=LD_LIBRARY_PATH
9059   hardcode_into_libs=yes
9060   ;;
9061
9062 hpux9* | hpux10* | hpux11*)
9063   # Give a soname corresponding to the major version so that dld.sl refuses to
9064   # link against other versions.
9065   version_type=sunos
9066   need_lib_prefix=no
9067   need_version=no
9068   case $host_cpu in
9069   ia64*)
9070     shrext_cmds='.so'
9071     hardcode_into_libs=yes
9072     dynamic_linker="$host_os dld.so"
9073     shlibpath_var=LD_LIBRARY_PATH
9074     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076     soname_spec='${libname}${release}${shared_ext}$major'
9077     if test "X$HPUX_IA64_MODE" = X32; then
9078       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9079     else
9080       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9081     fi
9082     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9083     ;;
9084    hppa*64*)
9085      shrext_cmds='.sl'
9086      hardcode_into_libs=yes
9087      dynamic_linker="$host_os dld.sl"
9088      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091      soname_spec='${libname}${release}${shared_ext}$major'
9092      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9094      ;;
9095    *)
9096     shrext_cmds='.sl'
9097     dynamic_linker="$host_os dld.sl"
9098     shlibpath_var=SHLIB_PATH
9099     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101     soname_spec='${libname}${release}${shared_ext}$major'
9102     ;;
9103   esac
9104   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105   postinstall_cmds='chmod 555 $lib'
9106   ;;
9107
9108 interix3*)
9109   version_type=linux
9110   need_lib_prefix=no
9111   need_version=no
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   shlibpath_overrides_runpath=no
9117   hardcode_into_libs=yes
9118   ;;
9119
9120 irix5* | irix6* | nonstopux*)
9121   case $host_os in
9122     nonstopux*) version_type=nonstopux ;;
9123     *)
9124         if test "$lt_cv_prog_gnu_ld" = yes; then
9125                 version_type=linux
9126         else
9127                 version_type=irix
9128         fi ;;
9129   esac
9130   need_lib_prefix=no
9131   need_version=no
9132   soname_spec='${libname}${release}${shared_ext}$major'
9133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9134   case $host_os in
9135   irix5* | nonstopux*)
9136     libsuff= shlibsuff=
9137     ;;
9138   *)
9139     case $LD in # libtool.m4 will add one of these switches to LD
9140     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141       libsuff= shlibsuff= libmagic=32-bit;;
9142     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143       libsuff=32 shlibsuff=N32 libmagic=N32;;
9144     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146     *) libsuff= shlibsuff= libmagic=never-match;;
9147     esac
9148     ;;
9149   esac
9150   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151   shlibpath_overrides_runpath=no
9152   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154   hardcode_into_libs=yes
9155   ;;
9156
9157 # No shared lib support for Linux oldld, aout, or coff.
9158 linux*oldld* | linux*aout* | linux*coff*)
9159   dynamic_linker=no
9160   ;;
9161
9162 # This must be Linux ELF.
9163 linux* | k*bsd*-gnu)
9164   version_type=linux
9165   need_lib_prefix=no
9166   need_version=no
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   shlibpath_overrides_runpath=no
9172   # This implies no fast_install, which is unacceptable.
9173   # Some rework will be needed to allow for fast_install
9174   # before this can be enabled.
9175   hardcode_into_libs=yes
9176
9177   # Append ld.so.conf contents to the search path
9178   if test -f /etc/ld.so.conf; then
9179     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' ' '`
9180     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9181   fi
9182
9183   # We used to test for /lib/ld.so.1 and disable shared libraries on
9184   # powerpc, because MkLinux only supported shared libraries with the
9185   # GNU dynamic linker.  Since this was broken with cross compilers,
9186   # most powerpc-linux boxes support dynamic linking these days and
9187   # people can always --disable-shared, the test was removed, and we
9188   # assume the GNU/Linux dynamic linker is in use.
9189   dynamic_linker='GNU/Linux ld.so'
9190   ;;
9191
9192 netbsdelf*-gnu)
9193   version_type=linux
9194   need_lib_prefix=no
9195   need_version=no
9196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   shlibpath_var=LD_LIBRARY_PATH
9199   shlibpath_overrides_runpath=no
9200   hardcode_into_libs=yes
9201   dynamic_linker='NetBSD ld.elf_so'
9202   ;;
9203
9204 netbsd*)
9205   version_type=sunos
9206   need_lib_prefix=no
9207   need_version=no
9208   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211     dynamic_linker='NetBSD (a.out) ld.so'
9212   else
9213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214     soname_spec='${libname}${release}${shared_ext}$major'
9215     dynamic_linker='NetBSD ld.elf_so'
9216   fi
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   hardcode_into_libs=yes
9220   ;;
9221
9222 newsos6)
9223   version_type=linux
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   shlibpath_overrides_runpath=yes
9227   ;;
9228
9229 nto-qnx*)
9230   version_type=linux
9231   need_lib_prefix=no
9232   need_version=no
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234   soname_spec='${libname}${release}${shared_ext}$major'
9235   shlibpath_var=LD_LIBRARY_PATH
9236   shlibpath_overrides_runpath=yes
9237   ;;
9238
9239 openbsd*)
9240   version_type=sunos
9241   sys_lib_dlsearch_path_spec="/usr/lib"
9242   need_lib_prefix=no
9243   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9244   case $host_os in
9245     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9246     *)                         need_version=no  ;;
9247   esac
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252     case $host_os in
9253       openbsd2.[89] | openbsd2.[89].*)
9254         shlibpath_overrides_runpath=no
9255         ;;
9256       *)
9257         shlibpath_overrides_runpath=yes
9258         ;;
9259       esac
9260   else
9261     shlibpath_overrides_runpath=yes
9262   fi
9263   ;;
9264
9265 os2*)
9266   libname_spec='$name'
9267   shrext_cmds=".dll"
9268   need_lib_prefix=no
9269   library_names_spec='$libname${shared_ext} $libname.a'
9270   dynamic_linker='OS/2 ld.exe'
9271   shlibpath_var=LIBPATH
9272   ;;
9273
9274 osf3* | osf4* | osf5*)
9275   version_type=osf
9276   need_lib_prefix=no
9277   need_version=no
9278   soname_spec='${libname}${release}${shared_ext}$major'
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280   shlibpath_var=LD_LIBRARY_PATH
9281   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9282   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9283   ;;
9284
9285 solaris*)
9286   version_type=linux
9287   need_lib_prefix=no
9288   need_version=no
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290   soname_spec='${libname}${release}${shared_ext}$major'
9291   shlibpath_var=LD_LIBRARY_PATH
9292   shlibpath_overrides_runpath=yes
9293   hardcode_into_libs=yes
9294   # ldd complains unless libraries are executable
9295   postinstall_cmds='chmod +x $lib'
9296   ;;
9297
9298 sunos4*)
9299   version_type=sunos
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   shlibpath_overrides_runpath=yes
9304   if test "$with_gnu_ld" = yes; then
9305     need_lib_prefix=no
9306   fi
9307   need_version=yes
9308   ;;
9309
9310 sysv4 | sysv4.3*)
9311   version_type=linux
9312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313   soname_spec='${libname}${release}${shared_ext}$major'
9314   shlibpath_var=LD_LIBRARY_PATH
9315   case $host_vendor in
9316     sni)
9317       shlibpath_overrides_runpath=no
9318       need_lib_prefix=no
9319       export_dynamic_flag_spec='${wl}-Blargedynsym'
9320       runpath_var=LD_RUN_PATH
9321       ;;
9322     siemens)
9323       need_lib_prefix=no
9324       ;;
9325     motorola)
9326       need_lib_prefix=no
9327       need_version=no
9328       shlibpath_overrides_runpath=no
9329       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330       ;;
9331   esac
9332   ;;
9333
9334 sysv4*MP*)
9335   if test -d /usr/nec ;then
9336     version_type=linux
9337     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338     soname_spec='$libname${shared_ext}.$major'
9339     shlibpath_var=LD_LIBRARY_PATH
9340   fi
9341   ;;
9342
9343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344   version_type=freebsd-elf
9345   need_lib_prefix=no
9346   need_version=no
9347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348   soname_spec='${libname}${release}${shared_ext}$major'
9349   shlibpath_var=LD_LIBRARY_PATH
9350   hardcode_into_libs=yes
9351   if test "$with_gnu_ld" = yes; then
9352     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353     shlibpath_overrides_runpath=no
9354   else
9355     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356     shlibpath_overrides_runpath=yes
9357     case $host_os in
9358       sco3.2v5*)
9359         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9360         ;;
9361     esac
9362   fi
9363   sys_lib_dlsearch_path_spec='/usr/lib'
9364   ;;
9365
9366 uts4*)
9367   version_type=linux
9368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369   soname_spec='${libname}${release}${shared_ext}$major'
9370   shlibpath_var=LD_LIBRARY_PATH
9371   ;;
9372
9373 *)
9374   dynamic_linker=no
9375   ;;
9376 esac
9377 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9378 echo "${ECHO_T}$dynamic_linker" >&6; }
9379 test "$dynamic_linker" = no && can_build_shared=no
9380
9381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9382 if test "$GCC" = yes; then
9383   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9384 fi
9385
9386 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9388 hardcode_action=
9389 if test -n "$hardcode_libdir_flag_spec" || \
9390    test -n "$runpath_var" || \
9391    test "X$hardcode_automatic" = "Xyes" ; then
9392
9393   # We can hardcode non-existant directories.
9394   if test "$hardcode_direct" != no &&
9395      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9396      # have to relink, otherwise we might link with an installed library
9397      # when we should be linking with a yet-to-be-installed one
9398      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9399      test "$hardcode_minus_L" != no; then
9400     # Linking always hardcodes the temporary library directory.
9401     hardcode_action=relink
9402   else
9403     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9404     hardcode_action=immediate
9405   fi
9406 else
9407   # We cannot hardcode anything, or else we can only hardcode existing
9408   # directories.
9409   hardcode_action=unsupported
9410 fi
9411 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9412 echo "${ECHO_T}$hardcode_action" >&6; }
9413
9414 if test "$hardcode_action" = relink; then
9415   # Fast installation is not supported
9416   enable_fast_install=no
9417 elif test "$shlibpath_overrides_runpath" = yes ||
9418      test "$enable_shared" = no; then
9419   # Fast installation is not necessary
9420   enable_fast_install=needless
9421 fi
9422
9423 striplib=
9424 old_striplib=
9425 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9426 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9427 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9428   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9429   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9430   { echo "$as_me:$LINENO: result: yes" >&5
9431 echo "${ECHO_T}yes" >&6; }
9432 else
9433 # FIXME - insert some real tests, host_os isn't really good enough
9434   case $host_os in
9435    darwin*)
9436        if test -n "$STRIP" ; then
9437          striplib="$STRIP -x"
9438          { echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6; }
9440        else
9441   { echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6; }
9443 fi
9444        ;;
9445    *)
9446   { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9448     ;;
9449   esac
9450 fi
9451
9452 if test "x$enable_dlopen" != xyes; then
9453   enable_dlopen=unknown
9454   enable_dlopen_self=unknown
9455   enable_dlopen_self_static=unknown
9456 else
9457   lt_cv_dlopen=no
9458   lt_cv_dlopen_libs=
9459
9460   case $host_os in
9461   beos*)
9462     lt_cv_dlopen="load_add_on"
9463     lt_cv_dlopen_libs=
9464     lt_cv_dlopen_self=yes
9465     ;;
9466
9467   mingw* | pw32*)
9468     lt_cv_dlopen="LoadLibrary"
9469     lt_cv_dlopen_libs=
9470    ;;
9471
9472   cygwin*)
9473     lt_cv_dlopen="dlopen"
9474     lt_cv_dlopen_libs=
9475    ;;
9476
9477   darwin*)
9478   # if libdl is installed we need to link against it
9479     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-ldl  $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492
9493 /* Override any GCC internal prototype to avoid an error.
9494    Use char because int might match the return type of a GCC
9495    builtin and then its argument prototype would still apply.  */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char dlopen ();
9500 int
9501 main ()
9502 {
9503 return dlopen ();
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_link") 2>conftest.er1
9516   ac_status=$?
9517   grep -v '^ *+' conftest.er1 >conftest.err
9518   rm -f conftest.er1
9519   cat conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } && {
9522          test -z "$ac_c_werror_flag" ||
9523          test ! -s conftest.err
9524        } && test -s conftest$ac_exeext &&
9525        $as_test_x conftest$ac_exeext; then
9526   ac_cv_lib_dl_dlopen=yes
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531         ac_cv_lib_dl_dlopen=no
9532 fi
9533
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535       conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9539 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9540 if test $ac_cv_lib_dl_dlopen = yes; then
9541   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9542 else
9543
9544     lt_cv_dlopen="dyld"
9545     lt_cv_dlopen_libs=
9546     lt_cv_dlopen_self=yes
9547
9548 fi
9549
9550    ;;
9551
9552   *)
9553     { echo "$as_me:$LINENO: checking for shl_load" >&5
9554 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_shl_load+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h.  */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h.  */
9564 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9566 #define shl_load innocuous_shl_load
9567
9568 /* System header to define __stub macros and hopefully few prototypes,
9569     which can conflict with char shl_load (); below.
9570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9571     <limits.h> exists even on freestanding compilers.  */
9572
9573 #ifdef __STDC__
9574 # include <limits.h>
9575 #else
9576 # include <assert.h>
9577 #endif
9578
9579 #undef shl_load
9580
9581 /* Override any GCC internal prototype to avoid an error.
9582    Use char because int might match the return type of a GCC
9583    builtin and then its argument prototype would still apply.  */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char shl_load ();
9588 /* The GNU C library defines this for functions which it implements
9589     to always fail with ENOSYS.  Some functions are actually named
9590     something starting with __ and the normal name is an alias.  */
9591 #if defined __stub_shl_load || defined __stub___shl_load
9592 choke me
9593 #endif
9594
9595 int
9596 main ()
9597 {
9598 return shl_load ();
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (ac_try="$ac_link"
9605 case "(($ac_try" in
9606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607   *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610   (eval "$ac_link") 2>conftest.er1
9611   ac_status=$?
9612   grep -v '^ *+' conftest.er1 >conftest.err
9613   rm -f conftest.er1
9614   cat conftest.err >&5
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); } && {
9617          test -z "$ac_c_werror_flag" ||
9618          test ! -s conftest.err
9619        } && test -s conftest$ac_exeext &&
9620        $as_test_x conftest$ac_exeext; then
9621   ac_cv_func_shl_load=yes
9622 else
9623   echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626         ac_cv_func_shl_load=no
9627 fi
9628
9629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9630       conftest$ac_exeext conftest.$ac_ext
9631 fi
9632 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9633 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9634 if test $ac_cv_func_shl_load = yes; then
9635   lt_cv_dlopen="shl_load"
9636 else
9637   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   ac_check_lib_save_LIBS=$LIBS
9643 LIBS="-ldld  $LIBS"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652    Use char because int might match the return type of a GCC
9653    builtin and then its argument prototype would still apply.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char shl_load ();
9658 int
9659 main ()
9660 {
9661 return shl_load ();
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_link") 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && {
9680          test -z "$ac_c_werror_flag" ||
9681          test ! -s conftest.err
9682        } && test -s conftest$ac_exeext &&
9683        $as_test_x conftest$ac_exeext; then
9684   ac_cv_lib_dld_shl_load=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689         ac_cv_lib_dld_shl_load=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693       conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9695 fi
9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9697 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9698 if test $ac_cv_lib_dld_shl_load = yes; then
9699   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9700 else
9701   { echo "$as_me:$LINENO: checking for dlopen" >&5
9702 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9703 if test "${ac_cv_func_dlopen+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9714 #define dlopen innocuous_dlopen
9715
9716 /* System header to define __stub macros and hopefully few prototypes,
9717     which can conflict with char dlopen (); below.
9718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719     <limits.h> exists even on freestanding compilers.  */
9720
9721 #ifdef __STDC__
9722 # include <limits.h>
9723 #else
9724 # include <assert.h>
9725 #endif
9726
9727 #undef dlopen
9728
9729 /* Override any GCC internal prototype to avoid an error.
9730    Use char because int might match the return type of a GCC
9731    builtin and then its argument prototype would still apply.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 char dlopen ();
9736 /* The GNU C library defines this for functions which it implements
9737     to always fail with ENOSYS.  Some functions are actually named
9738     something starting with __ and the normal name is an alias.  */
9739 #if defined __stub_dlopen || defined __stub___dlopen
9740 choke me
9741 #endif
9742
9743 int
9744 main ()
9745 {
9746 return dlopen ();
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9753 case "(($ac_try" in
9754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755   *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758   (eval "$ac_link") 2>conftest.er1
9759   ac_status=$?
9760   grep -v '^ *+' conftest.er1 >conftest.err
9761   rm -f conftest.er1
9762   cat conftest.err >&5
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } && {
9765          test -z "$ac_c_werror_flag" ||
9766          test ! -s conftest.err
9767        } && test -s conftest$ac_exeext &&
9768        $as_test_x conftest$ac_exeext; then
9769   ac_cv_func_dlopen=yes
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774         ac_cv_func_dlopen=no
9775 fi
9776
9777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9778       conftest$ac_exeext conftest.$ac_ext
9779 fi
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9781 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9782 if test $ac_cv_func_dlopen = yes; then
9783   lt_cv_dlopen="dlopen"
9784 else
9785   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9788   echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790   ac_check_lib_save_LIBS=$LIBS
9791 LIBS="-ldl  $LIBS"
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h.  */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h.  */
9798
9799 /* Override any GCC internal prototype to avoid an error.
9800    Use char because int might match the return type of a GCC
9801    builtin and then its argument prototype would still apply.  */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char dlopen ();
9806 int
9807 main ()
9808 {
9809 return dlopen ();
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (ac_try="$ac_link"
9816 case "(($ac_try" in
9817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818   *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821   (eval "$ac_link") 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } && {
9828          test -z "$ac_c_werror_flag" ||
9829          test ! -s conftest.err
9830        } && test -s conftest$ac_exeext &&
9831        $as_test_x conftest$ac_exeext; then
9832   ac_cv_lib_dl_dlopen=yes
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837         ac_cv_lib_dl_dlopen=no
9838 fi
9839
9840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9841       conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9843 fi
9844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9846 if test $ac_cv_lib_dl_dlopen = yes; then
9847   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9848 else
9849   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9850 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9852   echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854   ac_check_lib_save_LIBS=$LIBS
9855 LIBS="-lsvld  $LIBS"
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h.  */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h.  */
9862
9863 /* Override any GCC internal prototype to avoid an error.
9864    Use char because int might match the return type of a GCC
9865    builtin and then its argument prototype would still apply.  */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 char dlopen ();
9870 int
9871 main ()
9872 {
9873 return dlopen ();
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_link") 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } && {
9892          test -z "$ac_c_werror_flag" ||
9893          test ! -s conftest.err
9894        } && test -s conftest$ac_exeext &&
9895        $as_test_x conftest$ac_exeext; then
9896   ac_cv_lib_svld_dlopen=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901         ac_cv_lib_svld_dlopen=no
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905       conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9907 fi
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910 if test $ac_cv_lib_svld_dlopen = yes; then
9911   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9912 else
9913   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9914 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9915 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   ac_check_lib_save_LIBS=$LIBS
9919 LIBS="-ldld  $LIBS"
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926
9927 /* Override any GCC internal prototype to avoid an error.
9928    Use char because int might match the return type of a GCC
9929    builtin and then its argument prototype would still apply.  */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 char dld_link ();
9934 int
9935 main ()
9936 {
9937 return dld_link ();
9938   ;
9939   return 0;
9940 }
9941 _ACEOF
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9944 case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_link") 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } && {
9956          test -z "$ac_c_werror_flag" ||
9957          test ! -s conftest.err
9958        } && test -s conftest$ac_exeext &&
9959        $as_test_x conftest$ac_exeext; then
9960   ac_cv_lib_dld_dld_link=yes
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965         ac_cv_lib_dld_dld_link=no
9966 fi
9967
9968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9969       conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9971 fi
9972 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9974 if test $ac_cv_lib_dld_dld_link = yes; then
9975   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9976 fi
9977
9978
9979 fi
9980
9981
9982 fi
9983
9984
9985 fi
9986
9987
9988 fi
9989
9990
9991 fi
9992
9993     ;;
9994   esac
9995
9996   if test "x$lt_cv_dlopen" != xno; then
9997     enable_dlopen=yes
9998   else
9999     enable_dlopen=no
10000   fi
10001
10002   case $lt_cv_dlopen in
10003   dlopen)
10004     save_CPPFLAGS="$CPPFLAGS"
10005     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10006
10007     save_LDFLAGS="$LDFLAGS"
10008     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10009
10010     save_LIBS="$LIBS"
10011     LIBS="$lt_cv_dlopen_libs $LIBS"
10012
10013     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10014 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10015 if test "${lt_cv_dlopen_self+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018           if test "$cross_compiling" = yes; then :
10019   lt_cv_dlopen_self=cross
10020 else
10021   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10022   lt_status=$lt_dlunknown
10023   cat > conftest.$ac_ext <<EOF
10024 #line 10024 "configure"
10025 #include "confdefs.h"
10026
10027 #if HAVE_DLFCN_H
10028 #include <dlfcn.h>
10029 #endif
10030
10031 #include <stdio.h>
10032
10033 #ifdef RTLD_GLOBAL
10034 #  define LT_DLGLOBAL           RTLD_GLOBAL
10035 #else
10036 #  ifdef DL_GLOBAL
10037 #    define LT_DLGLOBAL         DL_GLOBAL
10038 #  else
10039 #    define LT_DLGLOBAL         0
10040 #  endif
10041 #endif
10042
10043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10044    find out it does not work in some platform. */
10045 #ifndef LT_DLLAZY_OR_NOW
10046 #  ifdef RTLD_LAZY
10047 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10048 #  else
10049 #    ifdef DL_LAZY
10050 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10051 #    else
10052 #      ifdef RTLD_NOW
10053 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10054 #      else
10055 #        ifdef DL_NOW
10056 #          define LT_DLLAZY_OR_NOW      DL_NOW
10057 #        else
10058 #          define LT_DLLAZY_OR_NOW      0
10059 #        endif
10060 #      endif
10061 #    endif
10062 #  endif
10063 #endif
10064
10065 #ifdef __cplusplus
10066 extern "C" void exit (int);
10067 #endif
10068
10069 void fnord() { int i=42;}
10070 int main ()
10071 {
10072   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10073   int status = $lt_dlunknown;
10074
10075   if (self)
10076     {
10077       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10078       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10079       /* dlclose (self); */
10080     }
10081   else
10082     puts (dlerror ());
10083
10084     exit (status);
10085 }
10086 EOF
10087   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088   (eval $ac_link) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10092     (./conftest; exit; ) >&5 2>/dev/null
10093     lt_status=$?
10094     case x$lt_status in
10095       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10096       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10097       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10098     esac
10099   else :
10100     # compilation failed
10101     lt_cv_dlopen_self=no
10102   fi
10103 fi
10104 rm -fr conftest*
10105
10106
10107 fi
10108 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10109 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10110
10111     if test "x$lt_cv_dlopen_self" = xyes; then
10112       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10113       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10114 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10115 if test "${lt_cv_dlopen_self_static+set}" = set; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118           if test "$cross_compiling" = yes; then :
10119   lt_cv_dlopen_self_static=cross
10120 else
10121   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10122   lt_status=$lt_dlunknown
10123   cat > conftest.$ac_ext <<EOF
10124 #line 10124 "configure"
10125 #include "confdefs.h"
10126
10127 #if HAVE_DLFCN_H
10128 #include <dlfcn.h>
10129 #endif
10130
10131 #include <stdio.h>
10132
10133 #ifdef RTLD_GLOBAL
10134 #  define LT_DLGLOBAL           RTLD_GLOBAL
10135 #else
10136 #  ifdef DL_GLOBAL
10137 #    define LT_DLGLOBAL         DL_GLOBAL
10138 #  else
10139 #    define LT_DLGLOBAL         0
10140 #  endif
10141 #endif
10142
10143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10144    find out it does not work in some platform. */
10145 #ifndef LT_DLLAZY_OR_NOW
10146 #  ifdef RTLD_LAZY
10147 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10148 #  else
10149 #    ifdef DL_LAZY
10150 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10151 #    else
10152 #      ifdef RTLD_NOW
10153 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10154 #      else
10155 #        ifdef DL_NOW
10156 #          define LT_DLLAZY_OR_NOW      DL_NOW
10157 #        else
10158 #          define LT_DLLAZY_OR_NOW      0
10159 #        endif
10160 #      endif
10161 #    endif
10162 #  endif
10163 #endif
10164
10165 #ifdef __cplusplus
10166 extern "C" void exit (int);
10167 #endif
10168
10169 void fnord() { int i=42;}
10170 int main ()
10171 {
10172   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10173   int status = $lt_dlunknown;
10174
10175   if (self)
10176     {
10177       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10178       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10179       /* dlclose (self); */
10180     }
10181   else
10182     puts (dlerror ());
10183
10184     exit (status);
10185 }
10186 EOF
10187   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188   (eval $ac_link) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10192     (./conftest; exit; ) >&5 2>/dev/null
10193     lt_status=$?
10194     case x$lt_status in
10195       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10196       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10197       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10198     esac
10199   else :
10200     # compilation failed
10201     lt_cv_dlopen_self_static=no
10202   fi
10203 fi
10204 rm -fr conftest*
10205
10206
10207 fi
10208 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10209 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10210     fi
10211
10212     CPPFLAGS="$save_CPPFLAGS"
10213     LDFLAGS="$save_LDFLAGS"
10214     LIBS="$save_LIBS"
10215     ;;
10216   esac
10217
10218   case $lt_cv_dlopen_self in
10219   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10220   *) enable_dlopen_self=unknown ;;
10221   esac
10222
10223   case $lt_cv_dlopen_self_static in
10224   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10225   *) enable_dlopen_self_static=unknown ;;
10226   esac
10227 fi
10228
10229
10230 # Report which library types will actually be built
10231 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10232 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10233 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10234 echo "${ECHO_T}$can_build_shared" >&6; }
10235
10236 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10237 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10238 test "$can_build_shared" = "no" && enable_shared=no
10239
10240 # On AIX, shared libraries and static libraries use the same namespace, and
10241 # are all built from PIC.
10242 case $host_os in
10243 aix3*)
10244   test "$enable_shared" = yes && enable_static=no
10245   if test -n "$RANLIB"; then
10246     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10247     postinstall_cmds='$RANLIB $lib'
10248   fi
10249   ;;
10250
10251 aix4* | aix5*)
10252   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10253     test "$enable_shared" = yes && enable_static=no
10254   fi
10255     ;;
10256 esac
10257 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10258 echo "${ECHO_T}$enable_shared" >&6; }
10259
10260 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10261 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10262 # Make sure either enable_shared or enable_static is yes.
10263 test "$enable_shared" = yes || enable_static=yes
10264 { echo "$as_me:$LINENO: result: $enable_static" >&5
10265 echo "${ECHO_T}$enable_static" >&6; }
10266
10267 # The else clause should only fire when bootstrapping the
10268 # libtool distribution, otherwise you forgot to ship ltmain.sh
10269 # with your package, and you will get complaints that there are
10270 # no rules to generate ltmain.sh.
10271 if test -f "$ltmain"; then
10272   # See if we are running on zsh, and set the options which allow our commands through
10273   # without removal of \ escapes.
10274   if test -n "${ZSH_VERSION+set}" ; then
10275     setopt NO_GLOB_SUBST
10276   fi
10277   # Now quote all the things that may contain metacharacters while being
10278   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10279   # variables and quote the copies for generation of the libtool script.
10280   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10281     SED SHELL STRIP \
10282     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10283     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10284     deplibs_check_method reload_flag reload_cmds need_locks \
10285     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10286     lt_cv_sys_global_symbol_to_c_name_address \
10287     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10288     old_postinstall_cmds old_postuninstall_cmds \
10289     compiler \
10290     CC \
10291     LD \
10292     lt_prog_compiler_wl \
10293     lt_prog_compiler_pic \
10294     lt_prog_compiler_static \
10295     lt_prog_compiler_no_builtin_flag \
10296     export_dynamic_flag_spec \
10297     thread_safe_flag_spec \
10298     whole_archive_flag_spec \
10299     enable_shared_with_static_runtimes \
10300     old_archive_cmds \
10301     old_archive_from_new_cmds \
10302     predep_objects \
10303     postdep_objects \
10304     predeps \
10305     postdeps \
10306     compiler_lib_search_path \
10307     archive_cmds \
10308     archive_expsym_cmds \
10309     postinstall_cmds \
10310     postuninstall_cmds \
10311     old_archive_from_expsyms_cmds \
10312     allow_undefined_flag \
10313     no_undefined_flag \
10314     export_symbols_cmds \
10315     hardcode_libdir_flag_spec \
10316     hardcode_libdir_flag_spec_ld \
10317     hardcode_libdir_separator \
10318     hardcode_automatic \
10319     module_cmds \
10320     module_expsym_cmds \
10321     lt_cv_prog_compiler_c_o \
10322     exclude_expsyms \
10323     include_expsyms; do
10324
10325     case $var in
10326     old_archive_cmds | \
10327     old_archive_from_new_cmds | \
10328     archive_cmds | \
10329     archive_expsym_cmds | \
10330     module_cmds | \
10331     module_expsym_cmds | \
10332     old_archive_from_expsyms_cmds | \
10333     export_symbols_cmds | \
10334     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10335     postinstall_cmds | postuninstall_cmds | \
10336     old_postinstall_cmds | old_postuninstall_cmds | \
10337     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10338       # Double-quote double-evaled strings.
10339       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10340       ;;
10341     *)
10342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10343       ;;
10344     esac
10345   done
10346
10347   case $lt_echo in
10348   *'\$0 --fallback-echo"')
10349     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10350     ;;
10351   esac
10352
10353 cfgfile="${ofile}T"
10354   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10355   $rm -f "$cfgfile"
10356   { echo "$as_me:$LINENO: creating $ofile" >&5
10357 echo "$as_me: creating $ofile" >&6;}
10358
10359   cat <<__EOF__ >> "$cfgfile"
10360 #! $SHELL
10361
10362 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10363 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10364 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10365 #
10366 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10367 # Free Software Foundation, Inc.
10368 #
10369 # This file is part of GNU Libtool:
10370 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10371 #
10372 # This program is free software; you can redistribute it and/or modify
10373 # it under the terms of the GNU General Public License as published by
10374 # the Free Software Foundation; either version 2 of the License, or
10375 # (at your option) any later version.
10376 #
10377 # This program is distributed in the hope that it will be useful, but
10378 # WITHOUT ANY WARRANTY; without even the implied warranty of
10379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10380 # General Public License for more details.
10381 #
10382 # You should have received a copy of the GNU General Public License
10383 # along with this program; if not, write to the Free Software
10384 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10385 #
10386 # As a special exception to the GNU General Public License, if you
10387 # distribute this file as part of a program that contains a
10388 # configuration script generated by Autoconf, you may include it under
10389 # the same distribution terms that you use for the rest of that program.
10390
10391 # A sed program that does not truncate output.
10392 SED=$lt_SED
10393
10394 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10395 Xsed="$SED -e 1s/^X//"
10396
10397 # The HP-UX ksh and POSIX shell print the target directory to stdout
10398 # if CDPATH is set.
10399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10400
10401 # The names of the tagged configurations supported by this script.
10402 available_tags=
10403
10404 # ### BEGIN LIBTOOL CONFIG
10405
10406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10407
10408 # Shell to use when invoking shell scripts.
10409 SHELL=$lt_SHELL
10410
10411 # Whether or not to build shared libraries.
10412 build_libtool_libs=$enable_shared
10413
10414 # Whether or not to build static libraries.
10415 build_old_libs=$enable_static
10416
10417 # Whether or not to add -lc for building shared libraries.
10418 build_libtool_need_lc=$archive_cmds_need_lc
10419
10420 # Whether or not to disallow shared libs when runtime libs are static
10421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10422
10423 # Whether or not to optimize for fast installation.
10424 fast_install=$enable_fast_install
10425
10426 # The host system.
10427 host_alias=$host_alias
10428 host=$host
10429 host_os=$host_os
10430
10431 # The build system.
10432 build_alias=$build_alias
10433 build=$build
10434 build_os=$build_os
10435
10436 # An echo program that does not interpret backslashes.
10437 echo=$lt_echo
10438
10439 # The archiver.
10440 AR=$lt_AR
10441 AR_FLAGS=$lt_AR_FLAGS
10442
10443 # A C compiler.
10444 LTCC=$lt_LTCC
10445
10446 # LTCC compiler flags.
10447 LTCFLAGS=$lt_LTCFLAGS
10448
10449 # A language-specific compiler.
10450 CC=$lt_compiler
10451
10452 # Is the compiler the GNU C compiler?
10453 with_gcc=$GCC
10454
10455 # An ERE matcher.
10456 EGREP=$lt_EGREP
10457
10458 # The linker used to build libraries.
10459 LD=$lt_LD
10460
10461 # Whether we need hard or soft links.
10462 LN_S=$lt_LN_S
10463
10464 # A BSD-compatible nm program.
10465 NM=$lt_NM
10466
10467 # A symbol stripping program
10468 STRIP=$lt_STRIP
10469
10470 # Used to examine libraries when file_magic_cmd begins "file"
10471 MAGIC_CMD=$MAGIC_CMD
10472
10473 # Used on cygwin: DLL creation program.
10474 DLLTOOL="$DLLTOOL"
10475
10476 # Used on cygwin: object dumper.
10477 OBJDUMP="$OBJDUMP"
10478
10479 # Used on cygwin: assembler.
10480 AS="$AS"
10481
10482 # The name of the directory that contains temporary libtool files.
10483 objdir=$objdir
10484
10485 # How to create reloadable object files.
10486 reload_flag=$lt_reload_flag
10487 reload_cmds=$lt_reload_cmds
10488
10489 # How to pass a linker flag through the compiler.
10490 wl=$lt_lt_prog_compiler_wl
10491
10492 # Object file suffix (normally "o").
10493 objext="$ac_objext"
10494
10495 # Old archive suffix (normally "a").
10496 libext="$libext"
10497
10498 # Shared library suffix (normally ".so").
10499 shrext_cmds='$shrext_cmds'
10500
10501 # Executable file suffix (normally "").
10502 exeext="$exeext"
10503
10504 # Additional compiler flags for building library objects.
10505 pic_flag=$lt_lt_prog_compiler_pic
10506 pic_mode=$pic_mode
10507
10508 # What is the maximum length of a command?
10509 max_cmd_len=$lt_cv_sys_max_cmd_len
10510
10511 # Does compiler simultaneously support -c and -o options?
10512 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10513
10514 # Must we lock files when doing compilation?
10515 need_locks=$lt_need_locks
10516
10517 # Do we need the lib prefix for modules?
10518 need_lib_prefix=$need_lib_prefix
10519
10520 # Do we need a version for libraries?
10521 need_version=$need_version
10522
10523 # Whether dlopen is supported.
10524 dlopen_support=$enable_dlopen
10525
10526 # Whether dlopen of programs is supported.
10527 dlopen_self=$enable_dlopen_self
10528
10529 # Whether dlopen of statically linked programs is supported.
10530 dlopen_self_static=$enable_dlopen_self_static
10531
10532 # Compiler flag to prevent dynamic linking.
10533 link_static_flag=$lt_lt_prog_compiler_static
10534
10535 # Compiler flag to turn off builtin functions.
10536 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10537
10538 # Compiler flag to allow reflexive dlopens.
10539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10540
10541 # Compiler flag to generate shared objects directly from archives.
10542 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10543
10544 # Compiler flag to generate thread-safe objects.
10545 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10546
10547 # Library versioning type.
10548 version_type=$version_type
10549
10550 # Format of library name prefix.
10551 libname_spec=$lt_libname_spec
10552
10553 # List of archive names.  First name is the real one, the rest are links.
10554 # The last name is the one that the linker finds with -lNAME.
10555 library_names_spec=$lt_library_names_spec
10556
10557 # The coded name of the library, if different from the real name.
10558 soname_spec=$lt_soname_spec
10559
10560 # Commands used to build and install an old-style archive.
10561 RANLIB=$lt_RANLIB
10562 old_archive_cmds=$lt_old_archive_cmds
10563 old_postinstall_cmds=$lt_old_postinstall_cmds
10564 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10565
10566 # Create an old-style archive from a shared archive.
10567 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10568
10569 # Create a temporary old-style archive to link instead of a shared archive.
10570 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10571
10572 # Commands used to build and install a shared archive.
10573 archive_cmds=$lt_archive_cmds
10574 archive_expsym_cmds=$lt_archive_expsym_cmds
10575 postinstall_cmds=$lt_postinstall_cmds
10576 postuninstall_cmds=$lt_postuninstall_cmds
10577
10578 # Commands used to build a loadable module (assumed same as above if empty)
10579 module_cmds=$lt_module_cmds
10580 module_expsym_cmds=$lt_module_expsym_cmds
10581
10582 # Commands to strip libraries.
10583 old_striplib=$lt_old_striplib
10584 striplib=$lt_striplib
10585
10586 # Dependencies to place before the objects being linked to create a
10587 # shared library.
10588 predep_objects=$lt_predep_objects
10589
10590 # Dependencies to place after the objects being linked to create a
10591 # shared library.
10592 postdep_objects=$lt_postdep_objects
10593
10594 # Dependencies to place before the objects being linked to create a
10595 # shared library.
10596 predeps=$lt_predeps
10597
10598 # Dependencies to place after the objects being linked to create a
10599 # shared library.
10600 postdeps=$lt_postdeps
10601
10602 # The library search path used internally by the compiler when linking
10603 # a shared library.
10604 compiler_lib_search_path=$lt_compiler_lib_search_path
10605
10606 # Method to check whether dependent libraries are shared objects.
10607 deplibs_check_method=$lt_deplibs_check_method
10608
10609 # Command to use when deplibs_check_method == file_magic.
10610 file_magic_cmd=$lt_file_magic_cmd
10611
10612 # Flag that allows shared libraries with undefined symbols to be built.
10613 allow_undefined_flag=$lt_allow_undefined_flag
10614
10615 # Flag that forces no undefined symbols.
10616 no_undefined_flag=$lt_no_undefined_flag
10617
10618 # Commands used to finish a libtool library installation in a directory.
10619 finish_cmds=$lt_finish_cmds
10620
10621 # Same as above, but a single script fragment to be evaled but not shown.
10622 finish_eval=$lt_finish_eval
10623
10624 # Take the output of nm and produce a listing of raw symbols and C names.
10625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10626
10627 # Transform the output of nm in a proper C declaration
10628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10629
10630 # Transform the output of nm in a C name address pair
10631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10632
10633 # This is the shared library runtime path variable.
10634 runpath_var=$runpath_var
10635
10636 # This is the shared library path variable.
10637 shlibpath_var=$shlibpath_var
10638
10639 # Is shlibpath searched before the hard-coded library search path?
10640 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10641
10642 # How to hardcode a shared library path into an executable.
10643 hardcode_action=$hardcode_action
10644
10645 # Whether we should hardcode library paths into libraries.
10646 hardcode_into_libs=$hardcode_into_libs
10647
10648 # Flag to hardcode \$libdir into a binary during linking.
10649 # This must work even if \$libdir does not exist.
10650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10651
10652 # If ld is used when linking, flag to hardcode \$libdir into
10653 # a binary during linking. This must work even if \$libdir does
10654 # not exist.
10655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10656
10657 # Whether we need a single -rpath flag with a separated argument.
10658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10659
10660 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10661 # resulting binary.
10662 hardcode_direct=$hardcode_direct
10663
10664 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10665 # resulting binary.
10666 hardcode_minus_L=$hardcode_minus_L
10667
10668 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10669 # the resulting binary.
10670 hardcode_shlibpath_var=$hardcode_shlibpath_var
10671
10672 # Set to yes if building a shared library automatically hardcodes DIR into the library
10673 # and all subsequent libraries and executables linked against it.
10674 hardcode_automatic=$hardcode_automatic
10675
10676 # Variables whose values should be saved in libtool wrapper scripts and
10677 # restored at relink time.
10678 variables_saved_for_relink="$variables_saved_for_relink"
10679
10680 # Whether libtool must link a program against all its dependency libraries.
10681 link_all_deplibs=$link_all_deplibs
10682
10683 # Compile-time system search path for libraries
10684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10685
10686 # Run-time system search path for libraries
10687 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10688
10689 # Fix the shell variable \$srcfile for the compiler.
10690 fix_srcfile_path="$fix_srcfile_path"
10691
10692 # Set to yes if exported symbols are required.
10693 always_export_symbols=$always_export_symbols
10694
10695 # The commands to list exported symbols.
10696 export_symbols_cmds=$lt_export_symbols_cmds
10697
10698 # The commands to extract the exported symbol list from a shared archive.
10699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10700
10701 # Symbols that should not be listed in the preloaded symbols.
10702 exclude_expsyms=$lt_exclude_expsyms
10703
10704 # Symbols that must always be exported.
10705 include_expsyms=$lt_include_expsyms
10706
10707 # ### END LIBTOOL CONFIG
10708
10709 __EOF__
10710
10711
10712   case $host_os in
10713   aix3*)
10714     cat <<\EOF >> "$cfgfile"
10715
10716 # AIX sometimes has problems with the GCC collect2 program.  For some
10717 # reason, if we set the COLLECT_NAMES environment variable, the problems
10718 # vanish in a puff of smoke.
10719 if test "X${COLLECT_NAMES+set}" != Xset; then
10720   COLLECT_NAMES=
10721   export COLLECT_NAMES
10722 fi
10723 EOF
10724     ;;
10725   esac
10726
10727   # We use sed instead of cat because bash on DJGPP gets confused if
10728   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10729   # text mode, it properly converts lines to CR/LF.  This bash problem
10730   # is reportedly fixed, but why not run on old versions too?
10731   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10732
10733   mv -f "$cfgfile" "$ofile" || \
10734     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10735   chmod +x "$ofile"
10736
10737 else
10738   # If there is no Makefile yet, we rely on a make rule to execute
10739   # `config.status --recheck' to rerun these tests and create the
10740   # libtool script then.
10741   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10742   if test -f "$ltmain_in"; then
10743     test -f Makefile && make "$ltmain"
10744   fi
10745 fi
10746
10747
10748 ac_ext=c
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753
10754 CC="$lt_save_CC"
10755
10756
10757 # Check whether --with-tags was given.
10758 if test "${with_tags+set}" = set; then
10759   withval=$with_tags; tagnames="$withval"
10760 fi
10761
10762
10763 if test -f "$ltmain" && test -n "$tagnames"; then
10764   if test ! -f "${ofile}"; then
10765     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10766 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10767   fi
10768
10769   if test -z "$LTCC"; then
10770     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10771     if test -z "$LTCC"; then
10772       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10773 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10774     else
10775       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10776 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10777     fi
10778   fi
10779   if test -z "$LTCFLAGS"; then
10780     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10781   fi
10782
10783   # Extract list of available tagged configurations in $ofile.
10784   # Note that this assumes the entire list is on one line.
10785   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10786
10787   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10788   for tagname in $tagnames; do
10789     IFS="$lt_save_ifs"
10790     # Check whether tagname contains only valid characters
10791     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10792     "") ;;
10793     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10794 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10795    { (exit 1); exit 1; }; }
10796         ;;
10797     esac
10798
10799     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10800     then
10801       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10802 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10803    { (exit 1); exit 1; }; }
10804     fi
10805
10806     # Update the list of available tags.
10807     if test -n "$tagname"; then
10808       echo appending configuration tag \"$tagname\" to $ofile
10809
10810       case $tagname in
10811       CXX)
10812         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10813             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10814             (test "X$CXX" != "Xg++"))) ; then
10815           ac_ext=cpp
10816 ac_cpp='$CXXCPP $CPPFLAGS'
10817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10820
10821
10822
10823
10824 archive_cmds_need_lc_CXX=no
10825 allow_undefined_flag_CXX=
10826 always_export_symbols_CXX=no
10827 archive_expsym_cmds_CXX=
10828 export_dynamic_flag_spec_CXX=
10829 hardcode_direct_CXX=no
10830 hardcode_libdir_flag_spec_CXX=
10831 hardcode_libdir_flag_spec_ld_CXX=
10832 hardcode_libdir_separator_CXX=
10833 hardcode_minus_L_CXX=no
10834 hardcode_shlibpath_var_CXX=unsupported
10835 hardcode_automatic_CXX=no
10836 module_cmds_CXX=
10837 module_expsym_cmds_CXX=
10838 link_all_deplibs_CXX=unknown
10839 old_archive_cmds_CXX=$old_archive_cmds
10840 no_undefined_flag_CXX=
10841 whole_archive_flag_spec_CXX=
10842 enable_shared_with_static_runtimes_CXX=no
10843
10844 # Dependencies to place before and after the object being linked:
10845 predep_objects_CXX=
10846 postdep_objects_CXX=
10847 predeps_CXX=
10848 postdeps_CXX=
10849 compiler_lib_search_path_CXX=
10850
10851 # Source file extension for C++ test sources.
10852 ac_ext=cpp
10853
10854 # Object file extension for compiled C++ test sources.
10855 objext=o
10856 objext_CXX=$objext
10857
10858 # Code to be used in simple compile tests
10859 lt_simple_compile_test_code="int some_variable = 0;\n"
10860
10861 # Code to be used in simple link tests
10862 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10863
10864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10865
10866 # If no C compiler was specified, use CC.
10867 LTCC=${LTCC-"$CC"}
10868
10869 # If no C compiler flags were specified, use CFLAGS.
10870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10871
10872 # Allow CC to be a program name with arguments.
10873 compiler=$CC
10874
10875
10876 # save warnings/boilerplate of simple test code
10877 ac_outfile=conftest.$ac_objext
10878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10880 _lt_compiler_boilerplate=`cat conftest.err`
10881 $rm conftest*
10882
10883 ac_outfile=conftest.$ac_objext
10884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10886 _lt_linker_boilerplate=`cat conftest.err`
10887 $rm conftest*
10888
10889
10890 # Allow CC to be a program name with arguments.
10891 lt_save_CC=$CC
10892 lt_save_LD=$LD
10893 lt_save_GCC=$GCC
10894 GCC=$GXX
10895 lt_save_with_gnu_ld=$with_gnu_ld
10896 lt_save_path_LD=$lt_cv_path_LD
10897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10898   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10899 else
10900   $as_unset lt_cv_prog_gnu_ld
10901 fi
10902 if test -n "${lt_cv_path_LDCXX+set}"; then
10903   lt_cv_path_LD=$lt_cv_path_LDCXX
10904 else
10905   $as_unset lt_cv_path_LD
10906 fi
10907 test -z "${LDCXX+set}" || LD=$LDCXX
10908 CC=${CXX-"c++"}
10909 compiler=$CC
10910 compiler_CXX=$CC
10911 for cc_temp in $compiler""; do
10912   case $cc_temp in
10913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10915     \-*) ;;
10916     *) break;;
10917   esac
10918 done
10919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10920
10921
10922 # We don't want -fno-exception wen compiling C++ code, so set the
10923 # no_builtin_flag separately
10924 if test "$GXX" = yes; then
10925   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10926 else
10927   lt_prog_compiler_no_builtin_flag_CXX=
10928 fi
10929
10930 if test "$GXX" = yes; then
10931   # Set up default GNU C++ configuration
10932
10933
10934 # Check whether --with-gnu-ld was given.
10935 if test "${with_gnu_ld+set}" = set; then
10936   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10937 else
10938   with_gnu_ld=no
10939 fi
10940
10941 ac_prog=ld
10942 if test "$GCC" = yes; then
10943   # Check if gcc -print-prog-name=ld gives a path.
10944   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10945 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10946   case $host in
10947   *-*-mingw*)
10948     # gcc leaves a trailing carriage return which upsets mingw
10949     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10950   *)
10951     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10952   esac
10953   case $ac_prog in
10954     # Accept absolute paths.
10955     [\\/]* | ?:[\\/]*)
10956       re_direlt='/[^/][^/]*/\.\./'
10957       # Canonicalize the pathname of ld
10958       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10959       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10960         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10961       done
10962       test -z "$LD" && LD="$ac_prog"
10963       ;;
10964   "")
10965     # If it fails, then pretend we aren't using GCC.
10966     ac_prog=ld
10967     ;;
10968   *)
10969     # If it is relative, then search for the first ld in PATH.
10970     with_gnu_ld=unknown
10971     ;;
10972   esac
10973 elif test "$with_gnu_ld" = yes; then
10974   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10976 else
10977   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10979 fi
10980 if test "${lt_cv_path_LD+set}" = set; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983   if test -z "$LD"; then
10984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10985   for ac_dir in $PATH; do
10986     IFS="$lt_save_ifs"
10987     test -z "$ac_dir" && ac_dir=.
10988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10989       lt_cv_path_LD="$ac_dir/$ac_prog"
10990       # Check to see if the program is GNU ld.  I'd rather use --version,
10991       # but apparently some variants of GNU ld only accept -v.
10992       # Break only if it was the GNU/non-GNU ld that we prefer.
10993       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10994       *GNU* | *'with BFD'*)
10995         test "$with_gnu_ld" != no && break
10996         ;;
10997       *)
10998         test "$with_gnu_ld" != yes && break
10999         ;;
11000       esac
11001     fi
11002   done
11003   IFS="$lt_save_ifs"
11004 else
11005   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11006 fi
11007 fi
11008
11009 LD="$lt_cv_path_LD"
11010 if test -n "$LD"; then
11011   { echo "$as_me:$LINENO: result: $LD" >&5
11012 echo "${ECHO_T}$LD" >&6; }
11013 else
11014   { echo "$as_me:$LINENO: result: no" >&5
11015 echo "${ECHO_T}no" >&6; }
11016 fi
11017 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11018 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11019    { (exit 1); exit 1; }; }
11020 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11021 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11022 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11026 case `$LD -v 2>&1 </dev/null` in
11027 *GNU* | *'with BFD'*)
11028   lt_cv_prog_gnu_ld=yes
11029   ;;
11030 *)
11031   lt_cv_prog_gnu_ld=no
11032   ;;
11033 esac
11034 fi
11035 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11036 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11037 with_gnu_ld=$lt_cv_prog_gnu_ld
11038
11039
11040
11041   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11042   # archiving commands below assume that GNU ld is being used.
11043   if test "$with_gnu_ld" = yes; then
11044     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11045     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'
11046
11047     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11048     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11049
11050     # If archive_cmds runs LD, not CC, wlarc should be empty
11051     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11052     #     investigate it a little bit more. (MM)
11053     wlarc='${wl}'
11054
11055     # ancient GNU ld didn't support --whole-archive et. al.
11056     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11057         grep 'no-whole-archive' > /dev/null; then
11058       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11059     else
11060       whole_archive_flag_spec_CXX=
11061     fi
11062   else
11063     with_gnu_ld=no
11064     wlarc=
11065
11066     # A generic and very simple default shared library creation
11067     # command for GNU C++ for the case where it uses the native
11068     # linker, instead of GNU ld.  If possible, this setting should
11069     # overridden to take advantage of the native linker features on
11070     # the platform it is being used on.
11071     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11072   fi
11073
11074   # Commands to make compiler produce verbose output that lists
11075   # what "hidden" libraries, object files and flags are used when
11076   # linking a shared library.
11077   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11078
11079 else
11080   GXX=no
11081   with_gnu_ld=no
11082   wlarc=
11083 fi
11084
11085 # PORTME: fill in a description of your system's C++ link characteristics
11086 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11088 ld_shlibs_CXX=yes
11089 case $host_os in
11090   aix3*)
11091     # FIXME: insert proper C++ library support
11092     ld_shlibs_CXX=no
11093     ;;
11094   aix4* | aix5*)
11095     if test "$host_cpu" = ia64; then
11096       # On IA64, the linker does run time linking by default, so we don't
11097       # have to do anything special.
11098       aix_use_runtimelinking=no
11099       exp_sym_flag='-Bexport'
11100       no_entry_flag=""
11101     else
11102       aix_use_runtimelinking=no
11103
11104       # Test if we are trying to use run time linking or normal
11105       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11106       # need to do runtime linking.
11107       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11108         for ld_flag in $LDFLAGS; do
11109           case $ld_flag in
11110           *-brtl*)
11111             aix_use_runtimelinking=yes
11112             break
11113             ;;
11114           esac
11115         done
11116         ;;
11117       esac
11118
11119       exp_sym_flag='-bexport'
11120       no_entry_flag='-bnoentry'
11121     fi
11122
11123     # When large executables or shared objects are built, AIX ld can
11124     # have problems creating the table of contents.  If linking a library
11125     # or program results in "error TOC overflow" add -mminimal-toc to
11126     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11127     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11128
11129     archive_cmds_CXX=''
11130     hardcode_direct_CXX=yes
11131     hardcode_libdir_separator_CXX=':'
11132     link_all_deplibs_CXX=yes
11133
11134     if test "$GXX" = yes; then
11135       case $host_os in aix4.[012]|aix4.[012].*)
11136       # We only want to do this on AIX 4.2 and lower, the check
11137       # below for broken collect2 doesn't work under 4.3+
11138         collect2name=`${CC} -print-prog-name=collect2`
11139         if test -f "$collect2name" && \
11140            strings "$collect2name" | grep resolve_lib_name >/dev/null
11141         then
11142           # We have reworked collect2
11143           hardcode_direct_CXX=yes
11144         else
11145           # We have old collect2
11146           hardcode_direct_CXX=unsupported
11147           # It fails to find uninstalled libraries when the uninstalled
11148           # path is not listed in the libpath.  Setting hardcode_minus_L
11149           # to unsupported forces relinking
11150           hardcode_minus_L_CXX=yes
11151           hardcode_libdir_flag_spec_CXX='-L$libdir'
11152           hardcode_libdir_separator_CXX=
11153         fi
11154         ;;
11155       esac
11156       shared_flag='-shared'
11157       if test "$aix_use_runtimelinking" = yes; then
11158         shared_flag="$shared_flag "'${wl}-G'
11159       fi
11160     else
11161       # not using gcc
11162       if test "$host_cpu" = ia64; then
11163         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11164         # chokes on -Wl,-G. The following line is correct:
11165         shared_flag='-G'
11166       else
11167         if test "$aix_use_runtimelinking" = yes; then
11168           shared_flag='${wl}-G'
11169         else
11170           shared_flag='${wl}-bM:SRE'
11171         fi
11172       fi
11173     fi
11174
11175     # It seems that -bexpall does not export symbols beginning with
11176     # underscore (_), so it is better to generate a list of symbols to export.
11177     always_export_symbols_CXX=yes
11178     if test "$aix_use_runtimelinking" = yes; then
11179       # Warning - without using the other runtime loading flags (-brtl),
11180       # -berok will link without error, but may produce a broken library.
11181       allow_undefined_flag_CXX='-berok'
11182       # Determine the default libpath from the value encoded in an empty executable.
11183       cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189
11190 int
11191 main ()
11192 {
11193
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest.$ac_objext conftest$ac_exeext
11199 if { (ac_try="$ac_link"
11200 case "(($ac_try" in
11201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202   *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205   (eval "$ac_link") 2>conftest.er1
11206   ac_status=$?
11207   grep -v '^ *+' conftest.er1 >conftest.err
11208   rm -f conftest.er1
11209   cat conftest.err >&5
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); } && {
11212          test -z "$ac_cxx_werror_flag" ||
11213          test ! -s conftest.err
11214        } && test -s conftest$ac_exeext &&
11215        $as_test_x conftest$ac_exeext; then
11216
11217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11218 }'`
11219 # Check for a 64-bit object if we didn't find anything.
11220 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; }
11221 }'`; fi
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226
11227 fi
11228
11229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11230       conftest$ac_exeext conftest.$ac_ext
11231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11232
11233       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11234
11235       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"
11236      else
11237       if test "$host_cpu" = ia64; then
11238         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11239         allow_undefined_flag_CXX="-z nodefs"
11240         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"
11241       else
11242         # Determine the default libpath from the value encoded in an empty executable.
11243         cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249
11250 int
11251 main ()
11252 {
11253
11254   ;
11255   return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265   (eval "$ac_link") 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } && {
11272          test -z "$ac_cxx_werror_flag" ||
11273          test ! -s conftest.err
11274        } && test -s conftest$ac_exeext &&
11275        $as_test_x conftest$ac_exeext; then
11276
11277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11278 }'`
11279 # Check for a 64-bit object if we didn't find anything.
11280 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; }
11281 }'`; fi
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286
11287 fi
11288
11289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11290       conftest$ac_exeext conftest.$ac_ext
11291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11292
11293         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11294         # Warning - without using the other run time loading flags,
11295         # -berok will link without error, but may produce a broken library.
11296         no_undefined_flag_CXX=' ${wl}-bernotok'
11297         allow_undefined_flag_CXX=' ${wl}-berok'
11298         # Exported symbols can be pulled into shared objects from archives
11299         whole_archive_flag_spec_CXX='$convenience'
11300         archive_cmds_need_lc_CXX=yes
11301         # This is similar to how AIX traditionally builds its shared libraries.
11302         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'
11303       fi
11304     fi
11305     ;;
11306
11307   beos*)
11308     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11309       allow_undefined_flag_CXX=unsupported
11310       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11311       # support --undefined.  This deserves some investigation.  FIXME
11312       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11313     else
11314       ld_shlibs_CXX=no
11315     fi
11316     ;;
11317
11318   chorus*)
11319     case $cc_basename in
11320       *)
11321         # FIXME: insert proper C++ library support
11322         ld_shlibs_CXX=no
11323         ;;
11324     esac
11325     ;;
11326
11327   cygwin* | mingw* | pw32*)
11328     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11329     # as there is no search path for DLLs.
11330     hardcode_libdir_flag_spec_CXX='-L$libdir'
11331     allow_undefined_flag_CXX=unsupported
11332     always_export_symbols_CXX=no
11333     enable_shared_with_static_runtimes_CXX=yes
11334
11335     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11336       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'
11337       # If the export-symbols file already is a .def file (1st line
11338       # is EXPORTS), use it as is; otherwise, prepend...
11339       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11340         cp $export_symbols $output_objdir/$soname.def;
11341       else
11342         echo EXPORTS > $output_objdir/$soname.def;
11343         cat $export_symbols >> $output_objdir/$soname.def;
11344       fi~
11345       $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'
11346     else
11347       ld_shlibs_CXX=no
11348     fi
11349   ;;
11350       darwin* | rhapsody*)
11351         case $host_os in
11352         rhapsody* | darwin1.[012])
11353          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11354          ;;
11355        *) # Darwin 1.3 on
11356          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11357            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11358          else
11359            case ${MACOSX_DEPLOYMENT_TARGET} in
11360              10.[012])
11361                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11362                ;;
11363              10.*)
11364                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11365                ;;
11366            esac
11367          fi
11368          ;;
11369         esac
11370       archive_cmds_need_lc_CXX=no
11371       hardcode_direct_CXX=no
11372       hardcode_automatic_CXX=yes
11373       hardcode_shlibpath_var_CXX=unsupported
11374       whole_archive_flag_spec_CXX=''
11375       link_all_deplibs_CXX=yes
11376
11377     if test "$GXX" = yes ; then
11378       lt_int_apple_cc_single_mod=no
11379       output_verbose_link_cmd='echo'
11380       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11381        lt_int_apple_cc_single_mod=yes
11382       fi
11383       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11384        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11385       else
11386           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'
11387         fi
11388         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11389         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11390           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11391             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}'
11392           else
11393             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}'
11394           fi
11395             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}'
11396       else
11397       case $cc_basename in
11398         xlc*)
11399          output_verbose_link_cmd='echo'
11400           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'
11401           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11402           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11403           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}'
11404           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}'
11405           ;;
11406        *)
11407          ld_shlibs_CXX=no
11408           ;;
11409       esac
11410       fi
11411         ;;
11412
11413   dgux*)
11414     case $cc_basename in
11415       ec++*)
11416         # FIXME: insert proper C++ library support
11417         ld_shlibs_CXX=no
11418         ;;
11419       ghcx*)
11420         # Green Hills C++ Compiler
11421         # FIXME: insert proper C++ library support
11422         ld_shlibs_CXX=no
11423         ;;
11424       *)
11425         # FIXME: insert proper C++ library support
11426         ld_shlibs_CXX=no
11427         ;;
11428     esac
11429     ;;
11430   freebsd[12]*)
11431     # C++ shared libraries reported to be fairly broken before switch to ELF
11432     ld_shlibs_CXX=no
11433     ;;
11434   freebsd-elf*)
11435     archive_cmds_need_lc_CXX=no
11436     ;;
11437   freebsd* | dragonfly*)
11438     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11439     # conventions
11440     ld_shlibs_CXX=yes
11441     ;;
11442   gnu*)
11443     ;;
11444   hpux9*)
11445     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11446     hardcode_libdir_separator_CXX=:
11447     export_dynamic_flag_spec_CXX='${wl}-E'
11448     hardcode_direct_CXX=yes
11449     hardcode_minus_L_CXX=yes # Not in the search PATH,
11450                                 # but as the default
11451                                 # location of the library.
11452
11453     case $cc_basename in
11454     CC*)
11455       # FIXME: insert proper C++ library support
11456       ld_shlibs_CXX=no
11457       ;;
11458     aCC*)
11459       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'
11460       # Commands to make compiler produce verbose output that lists
11461       # what "hidden" libraries, object files and flags are used when
11462       # linking a shared library.
11463       #
11464       # There doesn't appear to be a way to prevent this compiler from
11465       # explicitly linking system object files so we need to strip them
11466       # from the output so that they don't get included in the library
11467       # dependencies.
11468       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'
11469       ;;
11470     *)
11471       if test "$GXX" = yes; then
11472         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'
11473       else
11474         # FIXME: insert proper C++ library support
11475         ld_shlibs_CXX=no
11476       fi
11477       ;;
11478     esac
11479     ;;
11480   hpux10*|hpux11*)
11481     if test $with_gnu_ld = no; then
11482       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11483       hardcode_libdir_separator_CXX=:
11484
11485       case $host_cpu in
11486       hppa*64*|ia64*)
11487         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11488         ;;
11489       *)
11490         export_dynamic_flag_spec_CXX='${wl}-E'
11491         ;;
11492       esac
11493     fi
11494     case $host_cpu in
11495     hppa*64*|ia64*)
11496       hardcode_direct_CXX=no
11497       hardcode_shlibpath_var_CXX=no
11498       ;;
11499     *)
11500       hardcode_direct_CXX=yes
11501       hardcode_minus_L_CXX=yes # Not in the search PATH,
11502                                               # but as the default
11503                                               # location of the library.
11504       ;;
11505     esac
11506
11507     case $cc_basename in
11508       CC*)
11509         # FIXME: insert proper C++ library support
11510         ld_shlibs_CXX=no
11511         ;;
11512       aCC*)
11513         case $host_cpu in
11514         hppa*64*)
11515           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11516           ;;
11517         ia64*)
11518           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519           ;;
11520         *)
11521           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522           ;;
11523         esac
11524         # Commands to make compiler produce verbose output that lists
11525         # what "hidden" libraries, object files and flags are used when
11526         # linking a shared library.
11527         #
11528         # There doesn't appear to be a way to prevent this compiler from
11529         # explicitly linking system object files so we need to strip them
11530         # from the output so that they don't get included in the library
11531         # dependencies.
11532         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'
11533         ;;
11534       *)
11535         if test "$GXX" = yes; then
11536           if test $with_gnu_ld = no; then
11537             case $host_cpu in
11538             hppa*64*)
11539               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11540               ;;
11541             ia64*)
11542               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11543               ;;
11544             *)
11545               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'
11546               ;;
11547             esac
11548           fi
11549         else
11550           # FIXME: insert proper C++ library support
11551           ld_shlibs_CXX=no
11552         fi
11553         ;;
11554     esac
11555     ;;
11556   interix3*)
11557     hardcode_direct_CXX=no
11558     hardcode_shlibpath_var_CXX=no
11559     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11560     export_dynamic_flag_spec_CXX='${wl}-E'
11561     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11562     # Instead, shared libraries are loaded at an image base (0x10000000 by
11563     # default) and relocated if they conflict, which is a slow very memory
11564     # consuming and fragmenting process.  To avoid this, we pick a random,
11565     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11566     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11567     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'
11568     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'
11569     ;;
11570   irix5* | irix6*)
11571     case $cc_basename in
11572       CC*)
11573         # SGI C++
11574         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'
11575
11576         # Archives containing C++ object files must be created using
11577         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11578         # necessary to make sure instantiated templates are included
11579         # in the archive.
11580         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11581         ;;
11582       *)
11583         if test "$GXX" = yes; then
11584           if test "$with_gnu_ld" = no; then
11585             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'
11586           else
11587             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'
11588           fi
11589         fi
11590         link_all_deplibs_CXX=yes
11591         ;;
11592     esac
11593     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11594     hardcode_libdir_separator_CXX=:
11595     ;;
11596   linux* | k*bsd*-gnu)
11597     case $cc_basename in
11598       KCC*)
11599         # Kuck and Associates, Inc. (KAI) C++ Compiler
11600
11601         # KCC will only create a shared library if the output file
11602         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11603         # to its proper name (with version) after linking.
11604         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'
11605         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'
11606         # Commands to make compiler produce verbose output that lists
11607         # what "hidden" libraries, object files and flags are used when
11608         # linking a shared library.
11609         #
11610         # There doesn't appear to be a way to prevent this compiler from
11611         # explicitly linking system object files so we need to strip them
11612         # from the output so that they don't get included in the library
11613         # dependencies.
11614         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'
11615
11616         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11617         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11618
11619         # Archives containing C++ object files must be created using
11620         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11621         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11622         ;;
11623       icpc*)
11624         # Intel C++
11625         with_gnu_ld=yes
11626         # version 8.0 and above of icpc choke on multiply defined symbols
11627         # if we add $predep_objects and $postdep_objects, however 7.1 and
11628         # earlier do not add the objects themselves.
11629         case `$CC -V 2>&1` in
11630         *"Version 7."*)
11631           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632           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'
11633           ;;
11634         *)  # Version 8.0 or newer
11635           tmp_idyn=
11636           case $host_cpu in
11637             ia64*) tmp_idyn=' -i_dynamic';;
11638           esac
11639           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11640           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'
11641           ;;
11642         esac
11643         archive_cmds_need_lc_CXX=no
11644         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11645         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11646         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11647         ;;
11648       pgCC*)
11649         # Portland Group C++ compiler
11650         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11651         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'
11652
11653         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11654         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11655         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'
11656         ;;
11657       cxx*)
11658         # Compaq C++
11659         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11660         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'
11661
11662         runpath_var=LD_RUN_PATH
11663         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11664         hardcode_libdir_separator_CXX=:
11665
11666         # Commands to make compiler produce verbose output that lists
11667         # what "hidden" libraries, object files and flags are used when
11668         # linking a shared library.
11669         #
11670         # There doesn't appear to be a way to prevent this compiler from
11671         # explicitly linking system object files so we need to strip them
11672         # from the output so that they don't get included in the library
11673         # dependencies.
11674         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'
11675         ;;
11676     esac
11677     ;;
11678   lynxos*)
11679     # FIXME: insert proper C++ library support
11680     ld_shlibs_CXX=no
11681     ;;
11682   m88k*)
11683     # FIXME: insert proper C++ library support
11684     ld_shlibs_CXX=no
11685     ;;
11686   mvs*)
11687     case $cc_basename in
11688       cxx*)
11689         # FIXME: insert proper C++ library support
11690         ld_shlibs_CXX=no
11691         ;;
11692       *)
11693         # FIXME: insert proper C++ library support
11694         ld_shlibs_CXX=no
11695         ;;
11696     esac
11697     ;;
11698   netbsd* | netbsdelf*-gnu)
11699     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11700       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11701       wlarc=
11702       hardcode_libdir_flag_spec_CXX='-R$libdir'
11703       hardcode_direct_CXX=yes
11704       hardcode_shlibpath_var_CXX=no
11705     fi
11706     # Workaround some broken pre-1.5 toolchains
11707     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11708     ;;
11709   openbsd2*)
11710     # C++ shared libraries are fairly broken
11711     ld_shlibs_CXX=no
11712     ;;
11713   openbsd*)
11714     hardcode_direct_CXX=yes
11715     hardcode_shlibpath_var_CXX=no
11716     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11717     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11718     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11719       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11720       export_dynamic_flag_spec_CXX='${wl}-E'
11721       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11722     fi
11723     output_verbose_link_cmd='echo'
11724     ;;
11725   osf3*)
11726     case $cc_basename in
11727       KCC*)
11728         # Kuck and Associates, Inc. (KAI) C++ Compiler
11729
11730         # KCC will only create a shared library if the output file
11731         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11732         # to its proper name (with version) after linking.
11733         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'
11734
11735         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11736         hardcode_libdir_separator_CXX=:
11737
11738         # Archives containing C++ object files must be created using
11739         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11740         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11741
11742         ;;
11743       RCC*)
11744         # Rational C++ 2.4.1
11745         # FIXME: insert proper C++ library support
11746         ld_shlibs_CXX=no
11747         ;;
11748       cxx*)
11749         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11750         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'
11751
11752         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11753         hardcode_libdir_separator_CXX=:
11754
11755         # Commands to make compiler produce verbose output that lists
11756         # what "hidden" libraries, object files and flags are used when
11757         # linking a shared library.
11758         #
11759         # There doesn't appear to be a way to prevent this compiler from
11760         # explicitly linking system object files so we need to strip them
11761         # from the output so that they don't get included in the library
11762         # dependencies.
11763         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'
11764         ;;
11765       *)
11766         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11767           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11768           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'
11769
11770           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771           hardcode_libdir_separator_CXX=:
11772
11773           # Commands to make compiler produce verbose output that lists
11774           # what "hidden" libraries, object files and flags are used when
11775           # linking a shared library.
11776           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11777
11778         else
11779           # FIXME: insert proper C++ library support
11780           ld_shlibs_CXX=no
11781         fi
11782         ;;
11783     esac
11784     ;;
11785   osf4* | osf5*)
11786     case $cc_basename in
11787       KCC*)
11788         # Kuck and Associates, Inc. (KAI) C++ Compiler
11789
11790         # KCC will only create a shared library if the output file
11791         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11792         # to its proper name (with version) after linking.
11793         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'
11794
11795         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11796         hardcode_libdir_separator_CXX=:
11797
11798         # Archives containing C++ object files must be created using
11799         # the KAI C++ compiler.
11800         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11801         ;;
11802       RCC*)
11803         # Rational C++ 2.4.1
11804         # FIXME: insert proper C++ library support
11805         ld_shlibs_CXX=no
11806         ;;
11807       cxx*)
11808         allow_undefined_flag_CXX=' -expect_unresolved \*'
11809         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'
11810         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11811           echo "-hidden">> $lib.exp~
11812           $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~
11813           $rm $lib.exp'
11814
11815         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11816         hardcode_libdir_separator_CXX=:
11817
11818         # Commands to make compiler produce verbose output that lists
11819         # what "hidden" libraries, object files and flags are used when
11820         # linking a shared library.
11821         #
11822         # There doesn't appear to be a way to prevent this compiler from
11823         # explicitly linking system object files so we need to strip them
11824         # from the output so that they don't get included in the library
11825         # dependencies.
11826         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'
11827         ;;
11828       *)
11829         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11830           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11831          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'
11832
11833           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11834           hardcode_libdir_separator_CXX=:
11835
11836           # Commands to make compiler produce verbose output that lists
11837           # what "hidden" libraries, object files and flags are used when
11838           # linking a shared library.
11839           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11840
11841         else
11842           # FIXME: insert proper C++ library support
11843           ld_shlibs_CXX=no
11844         fi
11845         ;;
11846     esac
11847     ;;
11848   psos*)
11849     # FIXME: insert proper C++ library support
11850     ld_shlibs_CXX=no
11851     ;;
11852   sunos4*)
11853     case $cc_basename in
11854       CC*)
11855         # Sun C++ 4.x
11856         # FIXME: insert proper C++ library support
11857         ld_shlibs_CXX=no
11858         ;;
11859       lcc*)
11860         # Lucid
11861         # FIXME: insert proper C++ library support
11862         ld_shlibs_CXX=no
11863         ;;
11864       *)
11865         # FIXME: insert proper C++ library support
11866         ld_shlibs_CXX=no
11867         ;;
11868     esac
11869     ;;
11870   solaris*)
11871     case $cc_basename in
11872       CC*)
11873         # Sun C++ 4.2, 5.x and Centerline C++
11874         archive_cmds_need_lc_CXX=yes
11875         no_undefined_flag_CXX=' -zdefs'
11876         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11878         $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'
11879
11880         hardcode_libdir_flag_spec_CXX='-R$libdir'
11881         hardcode_shlibpath_var_CXX=no
11882         case $host_os in
11883           solaris2.[0-5] | solaris2.[0-5].*) ;;
11884           *)
11885             # The C++ compiler is used as linker so we must use $wl
11886             # flag to pass the commands to the underlying system
11887             # linker. We must also pass each convience library through
11888             # to the system linker between allextract/defaultextract.
11889             # The C++ compiler will combine linker options so we
11890             # cannot just pass the convience library names through
11891             # without $wl.
11892             # Supported since Solaris 2.6 (maybe 2.5.1?)
11893             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'
11894             ;;
11895         esac
11896         link_all_deplibs_CXX=yes
11897
11898         output_verbose_link_cmd='echo'
11899
11900         # Archives containing C++ object files must be created using
11901         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11902         # necessary to make sure instantiated templates are included
11903         # in the archive.
11904         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11905         ;;
11906       gcx*)
11907         # Green Hills C++ Compiler
11908         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11909
11910         # The C++ compiler must be used to create the archive.
11911         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11912         ;;
11913       *)
11914         # GNU C++ compiler with Solaris linker
11915         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11916           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11917           if $CC --version | grep -v '^2\.7' > /dev/null; then
11918             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11919             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11920                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11921
11922             # Commands to make compiler produce verbose output that lists
11923             # what "hidden" libraries, object files and flags are used when
11924             # linking a shared library.
11925             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11926           else
11927             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11928             # platform.
11929             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11930             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11931                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11932
11933             # Commands to make compiler produce verbose output that lists
11934             # what "hidden" libraries, object files and flags are used when
11935             # linking a shared library.
11936             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11937           fi
11938
11939           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11940         fi
11941         ;;
11942     esac
11943     ;;
11944   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11945     no_undefined_flag_CXX='${wl}-z,text'
11946     archive_cmds_need_lc_CXX=no
11947     hardcode_shlibpath_var_CXX=no
11948     runpath_var='LD_RUN_PATH'
11949
11950     case $cc_basename in
11951       CC*)
11952         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954         ;;
11955       *)
11956         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958         ;;
11959     esac
11960     ;;
11961   sysv5* | sco3.2v5* | sco5v6*)
11962     # Note: We can NOT use -z defs as we might desire, because we do not
11963     # link with -lc, and that would cause any symbols used from libc to
11964     # always be unresolved, which means just about no library would
11965     # ever link correctly.  If we're not using GNU ld we use -z text
11966     # though, which does catch some bad symbols but isn't as heavy-handed
11967     # as -z defs.
11968     # For security reasons, it is highly recommended that you always
11969     # use absolute paths for naming shared libraries, and exclude the
11970     # DT_RUNPATH tag from executables and libraries.  But doing so
11971     # requires that you compile everything twice, which is a pain.
11972     # So that behaviour is only enabled if SCOABSPATH is set to a
11973     # non-empty value in the environment.  Most likely only useful for
11974     # creating official distributions of packages.
11975     # This is a hack until libtool officially supports absolute path
11976     # names for shared libraries.
11977     no_undefined_flag_CXX='${wl}-z,text'
11978     allow_undefined_flag_CXX='${wl}-z,nodefs'
11979     archive_cmds_need_lc_CXX=no
11980     hardcode_shlibpath_var_CXX=no
11981     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11982     hardcode_libdir_separator_CXX=':'
11983     link_all_deplibs_CXX=yes
11984     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11985     runpath_var='LD_RUN_PATH'
11986
11987     case $cc_basename in
11988       CC*)
11989         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11990         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991         ;;
11992       *)
11993         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11994         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11995         ;;
11996     esac
11997     ;;
11998   tandem*)
11999     case $cc_basename in
12000       NCC*)
12001         # NonStop-UX NCC 3.20
12002         # FIXME: insert proper C++ library support
12003         ld_shlibs_CXX=no
12004         ;;
12005       *)
12006         # FIXME: insert proper C++ library support
12007         ld_shlibs_CXX=no
12008         ;;
12009     esac
12010     ;;
12011   vxworks*)
12012     # FIXME: insert proper C++ library support
12013     ld_shlibs_CXX=no
12014     ;;
12015   *)
12016     # FIXME: insert proper C++ library support
12017     ld_shlibs_CXX=no
12018     ;;
12019 esac
12020 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12021 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12022 test "$ld_shlibs_CXX" = no && can_build_shared=no
12023
12024 GCC_CXX="$GXX"
12025 LD_CXX="$LD"
12026
12027
12028 cat > conftest.$ac_ext <<EOF
12029 class Foo
12030 {
12031 public:
12032   Foo (void) { a = 0; }
12033 private:
12034   int a;
12035 };
12036 EOF
12037
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039   (eval $ac_compile) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; then
12043   # Parse the compiler output and extract the necessary
12044   # objects, libraries and library flags.
12045
12046   # Sentinel used to keep track of whether or not we are before
12047   # the conftest object file.
12048   pre_test_object_deps_done=no
12049
12050   # The `*' in the case matches for architectures that use `case' in
12051   # $output_verbose_cmd can trigger glob expansion during the loop
12052   # eval without this substitution.
12053   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12054
12055   for p in `eval $output_verbose_link_cmd`; do
12056     case $p in
12057
12058     -L* | -R* | -l*)
12059        # Some compilers place space between "-{L,R}" and the path.
12060        # Remove the space.
12061        if test $p = "-L" \
12062           || test $p = "-R"; then
12063          prev=$p
12064          continue
12065        else
12066          prev=
12067        fi
12068
12069        if test "$pre_test_object_deps_done" = no; then
12070          case $p in
12071          -L* | -R*)
12072            # Internal compiler library paths should come after those
12073            # provided the user.  The postdeps already come after the
12074            # user supplied libs so there is no need to process them.
12075            if test -z "$compiler_lib_search_path_CXX"; then
12076              compiler_lib_search_path_CXX="${prev}${p}"
12077            else
12078              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12079            fi
12080            ;;
12081          # The "-l" case would never come before the object being
12082          # linked, so don't bother handling this case.
12083          esac
12084        else
12085          if test -z "$postdeps_CXX"; then
12086            postdeps_CXX="${prev}${p}"
12087          else
12088            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12089          fi
12090        fi
12091        ;;
12092
12093     *.$objext)
12094        # This assumes that the test object file only shows up
12095        # once in the compiler output.
12096        if test "$p" = "conftest.$objext"; then
12097          pre_test_object_deps_done=yes
12098          continue
12099        fi
12100
12101        if test "$pre_test_object_deps_done" = no; then
12102          if test -z "$predep_objects_CXX"; then
12103            predep_objects_CXX="$p"
12104          else
12105            predep_objects_CXX="$predep_objects_CXX $p"
12106          fi
12107        else
12108          if test -z "$postdep_objects_CXX"; then
12109            postdep_objects_CXX="$p"
12110          else
12111            postdep_objects_CXX="$postdep_objects_CXX $p"
12112          fi
12113        fi
12114        ;;
12115
12116     *) ;; # Ignore the rest.
12117
12118     esac
12119   done
12120
12121   # Clean up.
12122   rm -f a.out a.exe
12123 else
12124   echo "libtool.m4: error: problem compiling CXX test program"
12125 fi
12126
12127 $rm -f confest.$objext
12128
12129 # PORTME: override above test on systems where it is broken
12130 case $host_os in
12131 interix3*)
12132   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12133   # hack all around it, let's just trust "g++" to DTRT.
12134   predep_objects_CXX=
12135   postdep_objects_CXX=
12136   postdeps_CXX=
12137   ;;
12138
12139 solaris*)
12140   case $cc_basename in
12141   CC*)
12142     # Adding this requires a known-good setup of shared libraries for
12143     # Sun compiler versions before 5.6, else PIC objects from an old
12144     # archive will be linked into the output, leading to subtle bugs.
12145     postdeps_CXX='-lCstd -lCrun'
12146     ;;
12147   esac
12148   ;;
12149 esac
12150
12151
12152 case " $postdeps_CXX " in
12153 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12154 esac
12155
12156 lt_prog_compiler_wl_CXX=
12157 lt_prog_compiler_pic_CXX=
12158 lt_prog_compiler_static_CXX=
12159
12160 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12162
12163   # C++ specific cases for pic, static, wl, etc.
12164   if test "$GXX" = yes; then
12165     lt_prog_compiler_wl_CXX='-Wl,'
12166     lt_prog_compiler_static_CXX='-static'
12167
12168     case $host_os in
12169     aix*)
12170       # All AIX code is PIC.
12171       if test "$host_cpu" = ia64; then
12172         # AIX 5 now supports IA64 processor
12173         lt_prog_compiler_static_CXX='-Bstatic'
12174       fi
12175       ;;
12176     amigaos*)
12177       # FIXME: we need at least 68020 code to build shared libraries, but
12178       # adding the `-m68020' flag to GCC prevents building anything better,
12179       # like `-m68040'.
12180       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12181       ;;
12182     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12183       # PIC is the default for these OSes.
12184       ;;
12185     mingw* | os2* | pw32*)
12186       # This hack is so that the source file can tell whether it is being
12187       # built for inclusion in a dll (and should export symbols for example).
12188       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12189       ;;
12190     darwin* | rhapsody*)
12191       # PIC is the default on this platform
12192       # Common symbols not allowed in MH_DYLIB files
12193       lt_prog_compiler_pic_CXX='-fno-common'
12194       ;;
12195     *djgpp*)
12196       # DJGPP does not support shared libraries at all
12197       lt_prog_compiler_pic_CXX=
12198       ;;
12199     interix3*)
12200       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12201       # Instead, we relocate shared libraries at runtime.
12202       ;;
12203     sysv4*MP*)
12204       if test -d /usr/nec; then
12205         lt_prog_compiler_pic_CXX=-Kconform_pic
12206       fi
12207       ;;
12208     hpux*)
12209       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12210       # not for PA HP-UX.
12211       case $host_cpu in
12212       hppa*64*|ia64*)
12213         ;;
12214       *)
12215         lt_prog_compiler_pic_CXX='-fPIC'
12216         ;;
12217       esac
12218       ;;
12219     *)
12220       lt_prog_compiler_pic_CXX='-fPIC'
12221       ;;
12222     esac
12223   else
12224     case $host_os in
12225       aix4* | aix5*)
12226         # All AIX code is PIC.
12227         if test "$host_cpu" = ia64; then
12228           # AIX 5 now supports IA64 processor
12229           lt_prog_compiler_static_CXX='-Bstatic'
12230         else
12231           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12232         fi
12233         ;;
12234       chorus*)
12235         case $cc_basename in
12236         cxch68*)
12237           # Green Hills C++ Compiler
12238           # _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"
12239           ;;
12240         esac
12241         ;;
12242        darwin*)
12243          # PIC is the default on this platform
12244          # Common symbols not allowed in MH_DYLIB files
12245          case $cc_basename in
12246            xlc*)
12247            lt_prog_compiler_pic_CXX='-qnocommon'
12248            lt_prog_compiler_wl_CXX='-Wl,'
12249            ;;
12250          esac
12251        ;;
12252       dgux*)
12253         case $cc_basename in
12254           ec++*)
12255             lt_prog_compiler_pic_CXX='-KPIC'
12256             ;;
12257           ghcx*)
12258             # Green Hills C++ Compiler
12259             lt_prog_compiler_pic_CXX='-pic'
12260             ;;
12261           *)
12262             ;;
12263         esac
12264         ;;
12265       freebsd* | dragonfly*)
12266         # FreeBSD uses GNU C++
12267         ;;
12268       hpux9* | hpux10* | hpux11*)
12269         case $cc_basename in
12270           CC*)
12271             lt_prog_compiler_wl_CXX='-Wl,'
12272             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12273             if test "$host_cpu" != ia64; then
12274               lt_prog_compiler_pic_CXX='+Z'
12275             fi
12276             ;;
12277           aCC*)
12278             lt_prog_compiler_wl_CXX='-Wl,'
12279             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12280             case $host_cpu in
12281             hppa*64*|ia64*)
12282               # +Z the default
12283               ;;
12284             *)
12285               lt_prog_compiler_pic_CXX='+Z'
12286               ;;
12287             esac
12288             ;;
12289           *)
12290             ;;
12291         esac
12292         ;;
12293       interix*)
12294         # This is c89, which is MS Visual C++ (no shared libs)
12295         # Anyone wants to do a port?
12296         ;;
12297       irix5* | irix6* | nonstopux*)
12298         case $cc_basename in
12299           CC*)
12300             lt_prog_compiler_wl_CXX='-Wl,'
12301             lt_prog_compiler_static_CXX='-non_shared'
12302             # CC pic flag -KPIC is the default.
12303             ;;
12304           *)
12305             ;;
12306         esac
12307         ;;
12308       linux* | k*bsd*-gnu)
12309         case $cc_basename in
12310           KCC*)
12311             # KAI C++ Compiler
12312             lt_prog_compiler_wl_CXX='--backend -Wl,'
12313             lt_prog_compiler_pic_CXX='-fPIC'
12314             ;;
12315           icpc* | ecpc*)
12316             # Intel C++
12317             lt_prog_compiler_wl_CXX='-Wl,'
12318             lt_prog_compiler_pic_CXX='-KPIC'
12319             lt_prog_compiler_static_CXX='-static'
12320             ;;
12321           pgCC*)
12322             # Portland Group C++ compiler.
12323             lt_prog_compiler_wl_CXX='-Wl,'
12324             lt_prog_compiler_pic_CXX='-fpic'
12325             lt_prog_compiler_static_CXX='-Bstatic'
12326             ;;
12327           cxx*)
12328             # Compaq C++
12329             # Make sure the PIC flag is empty.  It appears that all Alpha
12330             # Linux and Compaq Tru64 Unix objects are PIC.
12331             lt_prog_compiler_pic_CXX=
12332             lt_prog_compiler_static_CXX='-non_shared'
12333             ;;
12334           *)
12335             ;;
12336         esac
12337         ;;
12338       lynxos*)
12339         ;;
12340       m88k*)
12341         ;;
12342       mvs*)
12343         case $cc_basename in
12344           cxx*)
12345             lt_prog_compiler_pic_CXX='-W c,exportall'
12346             ;;
12347           *)
12348             ;;
12349         esac
12350         ;;
12351       netbsd* | netbsdelf*-gnu)
12352         ;;
12353       osf3* | osf4* | osf5*)
12354         case $cc_basename in
12355           KCC*)
12356             lt_prog_compiler_wl_CXX='--backend -Wl,'
12357             ;;
12358           RCC*)
12359             # Rational C++ 2.4.1
12360             lt_prog_compiler_pic_CXX='-pic'
12361             ;;
12362           cxx*)
12363             # Digital/Compaq C++
12364             lt_prog_compiler_wl_CXX='-Wl,'
12365             # Make sure the PIC flag is empty.  It appears that all Alpha
12366             # Linux and Compaq Tru64 Unix objects are PIC.
12367             lt_prog_compiler_pic_CXX=
12368             lt_prog_compiler_static_CXX='-non_shared'
12369             ;;
12370           *)
12371             ;;
12372         esac
12373         ;;
12374       psos*)
12375         ;;
12376       solaris*)
12377         case $cc_basename in
12378           CC*)
12379             # Sun C++ 4.2, 5.x and Centerline C++
12380             lt_prog_compiler_pic_CXX='-KPIC'
12381             lt_prog_compiler_static_CXX='-Bstatic'
12382             lt_prog_compiler_wl_CXX='-Qoption ld '
12383             ;;
12384           gcx*)
12385             # Green Hills C++ Compiler
12386             lt_prog_compiler_pic_CXX='-PIC'
12387             ;;
12388           *)
12389             ;;
12390         esac
12391         ;;
12392       sunos4*)
12393         case $cc_basename in
12394           CC*)
12395             # Sun C++ 4.x
12396             lt_prog_compiler_pic_CXX='-pic'
12397             lt_prog_compiler_static_CXX='-Bstatic'
12398             ;;
12399           lcc*)
12400             # Lucid
12401             lt_prog_compiler_pic_CXX='-pic'
12402             ;;
12403           *)
12404             ;;
12405         esac
12406         ;;
12407       tandem*)
12408         case $cc_basename in
12409           NCC*)
12410             # NonStop-UX NCC 3.20
12411             lt_prog_compiler_pic_CXX='-KPIC'
12412             ;;
12413           *)
12414             ;;
12415         esac
12416         ;;
12417       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12418         case $cc_basename in
12419           CC*)
12420             lt_prog_compiler_wl_CXX='-Wl,'
12421             lt_prog_compiler_pic_CXX='-KPIC'
12422             lt_prog_compiler_static_CXX='-Bstatic'
12423             ;;
12424         esac
12425         ;;
12426       vxworks*)
12427         ;;
12428       *)
12429         lt_prog_compiler_can_build_shared_CXX=no
12430         ;;
12431     esac
12432   fi
12433
12434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12435 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12436
12437 #
12438 # Check to make sure the PIC flag actually works.
12439 #
12440 if test -n "$lt_prog_compiler_pic_CXX"; then
12441
12442 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12443 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12444 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12445   echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447   lt_prog_compiler_pic_works_CXX=no
12448   ac_outfile=conftest.$ac_objext
12449    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12450    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12451    # Insert the option either (1) after the last *FLAGS variable, or
12452    # (2) before a word containing "conftest.", or (3) at the end.
12453    # Note that $ac_compile itself does not contain backslashes and begins
12454    # with a dollar sign (not a hyphen), so the echo should work correctly.
12455    # The option is referenced via a variable to avoid confusing sed.
12456    lt_compile=`echo "$ac_compile" | $SED \
12457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12459    -e 's:$: $lt_compiler_flag:'`
12460    (eval echo "\"\$as_me:12460: $lt_compile\"" >&5)
12461    (eval "$lt_compile" 2>conftest.err)
12462    ac_status=$?
12463    cat conftest.err >&5
12464    echo "$as_me:12464: \$? = $ac_status" >&5
12465    if (exit $ac_status) && test -s "$ac_outfile"; then
12466      # The compiler can only warn and ignore the option if not recognized
12467      # So say no if there are warnings other than the usual output.
12468      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12469      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12470      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12471        lt_prog_compiler_pic_works_CXX=yes
12472      fi
12473    fi
12474    $rm conftest*
12475
12476 fi
12477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12478 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12479
12480 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12481     case $lt_prog_compiler_pic_CXX in
12482      "" | " "*) ;;
12483      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12484      esac
12485 else
12486     lt_prog_compiler_pic_CXX=
12487      lt_prog_compiler_can_build_shared_CXX=no
12488 fi
12489
12490 fi
12491 case $host_os in
12492   # For platforms which do not support PIC, -DPIC is meaningless:
12493   *djgpp*)
12494     lt_prog_compiler_pic_CXX=
12495     ;;
12496   *)
12497     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12498     ;;
12499 esac
12500
12501 #
12502 # Check to make sure the static flag actually works.
12503 #
12504 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12505 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12507 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   lt_prog_compiler_static_works_CXX=no
12511    save_LDFLAGS="$LDFLAGS"
12512    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12513    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12514    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12515      # The linker can only warn and ignore the option if not recognized
12516      # So say no if there are warnings
12517      if test -s conftest.err; then
12518        # Append any errors to the config.log.
12519        cat conftest.err 1>&5
12520        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12521        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12522        if diff conftest.exp conftest.er2 >/dev/null; then
12523          lt_prog_compiler_static_works_CXX=yes
12524        fi
12525      else
12526        lt_prog_compiler_static_works_CXX=yes
12527      fi
12528    fi
12529    $rm conftest*
12530    LDFLAGS="$save_LDFLAGS"
12531
12532 fi
12533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12534 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12535
12536 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12537     :
12538 else
12539     lt_prog_compiler_static_CXX=
12540 fi
12541
12542
12543 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12545 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12546   echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548   lt_cv_prog_compiler_c_o_CXX=no
12549    $rm -r conftest 2>/dev/null
12550    mkdir conftest
12551    cd conftest
12552    mkdir out
12553    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12554
12555    lt_compiler_flag="-o out/conftest2.$ac_objext"
12556    # Insert the option either (1) after the last *FLAGS variable, or
12557    # (2) before a word containing "conftest.", or (3) at the end.
12558    # Note that $ac_compile itself does not contain backslashes and begins
12559    # with a dollar sign (not a hyphen), so the echo should work correctly.
12560    lt_compile=`echo "$ac_compile" | $SED \
12561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12563    -e 's:$: $lt_compiler_flag:'`
12564    (eval echo "\"\$as_me:12564: $lt_compile\"" >&5)
12565    (eval "$lt_compile" 2>out/conftest.err)
12566    ac_status=$?
12567    cat out/conftest.err >&5
12568    echo "$as_me:12568: \$? = $ac_status" >&5
12569    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12570    then
12571      # The compiler can only warn and ignore the option if not recognized
12572      # So say no if there are warnings
12573      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12574      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12575      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12576        lt_cv_prog_compiler_c_o_CXX=yes
12577      fi
12578    fi
12579    chmod u+w . 2>&5
12580    $rm conftest*
12581    # SGI C++ compiler will create directory out/ii_files/ for
12582    # template instantiation
12583    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12584    $rm out/* && rmdir out
12585    cd ..
12586    rmdir conftest
12587    $rm conftest*
12588
12589 fi
12590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12591 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12592
12593
12594 hard_links="nottested"
12595 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12596   # do not overwrite the value of need_locks provided by the user
12597   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12598 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12599   hard_links=yes
12600   $rm conftest*
12601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12602   touch conftest.a
12603   ln conftest.a conftest.b 2>&5 || hard_links=no
12604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12605   { echo "$as_me:$LINENO: result: $hard_links" >&5
12606 echo "${ECHO_T}$hard_links" >&6; }
12607   if test "$hard_links" = no; then
12608     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12609 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12610     need_locks=warn
12611   fi
12612 else
12613   need_locks=no
12614 fi
12615
12616 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12618
12619   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12620   case $host_os in
12621   aix4* | aix5*)
12622     # If we're using GNU nm, then we don't want the "-C" option.
12623     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12624     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12625       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'
12626     else
12627       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'
12628     fi
12629     ;;
12630   pw32*)
12631     export_symbols_cmds_CXX="$ltdll_cmds"
12632   ;;
12633   cygwin* | mingw*)
12634     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'
12635   ;;
12636   linux* | k*bsd*-gnu)
12637     link_all_deplibs_CXX=no
12638   ;;
12639   *)
12640     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12641   ;;
12642   esac
12643
12644 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12645 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12646 test "$ld_shlibs_CXX" = no && can_build_shared=no
12647
12648 #
12649 # Do we need to explicitly link libc?
12650 #
12651 case "x$archive_cmds_need_lc_CXX" in
12652 x|xyes)
12653   # Assume -lc should be added
12654   archive_cmds_need_lc_CXX=yes
12655
12656   if test "$enable_shared" = yes && test "$GCC" = yes; then
12657     case $archive_cmds_CXX in
12658     *'~'*)
12659       # FIXME: we may have to deal with multi-command sequences.
12660       ;;
12661     '$CC '*)
12662       # Test whether the compiler implicitly links with -lc since on some
12663       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12664       # to ld, don't add -lc before -lgcc.
12665       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12667       $rm conftest*
12668       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12669
12670       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } 2>conftest.err; then
12675         soname=conftest
12676         lib=conftest
12677         libobjs=conftest.$ac_objext
12678         deplibs=
12679         wl=$lt_prog_compiler_wl_CXX
12680         pic_flag=$lt_prog_compiler_pic_CXX
12681         compiler_flags=-v
12682         linker_flags=-v
12683         verstring=
12684         output_objdir=.
12685         libname=conftest
12686         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12687         allow_undefined_flag_CXX=
12688         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12689   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }
12693         then
12694           archive_cmds_need_lc_CXX=no
12695         else
12696           archive_cmds_need_lc_CXX=yes
12697         fi
12698         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12699       else
12700         cat conftest.err 1>&5
12701       fi
12702       $rm conftest*
12703       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12704 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12705       ;;
12706     esac
12707   fi
12708   ;;
12709 esac
12710
12711 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12713 library_names_spec=
12714 libname_spec='lib$name'
12715 soname_spec=
12716 shrext_cmds=".so"
12717 postinstall_cmds=
12718 postuninstall_cmds=
12719 finish_cmds=
12720 finish_eval=
12721 shlibpath_var=
12722 shlibpath_overrides_runpath=unknown
12723 version_type=none
12724 dynamic_linker="$host_os ld.so"
12725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12726 if test "$GCC" = yes; then
12727   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12728   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12729     # if the path contains ";" then we assume it to be the separator
12730     # otherwise default to the standard path separator (i.e. ":") - it is
12731     # assumed that no part of a normal pathname contains ";" but that should
12732     # okay in the real world where ";" in dirpaths is itself problematic.
12733     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12734   else
12735     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12736   fi
12737 else
12738   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12739 fi
12740 need_lib_prefix=unknown
12741 hardcode_into_libs=no
12742
12743 # when you set need_version to no, make sure it does not cause -set_version
12744 # flags to be left without arguments
12745 need_version=unknown
12746
12747 case $host_os in
12748 aix3*)
12749   version_type=linux
12750   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12751   shlibpath_var=LIBPATH
12752
12753   # AIX 3 has no versioning support, so we append a major version to the name.
12754   soname_spec='${libname}${release}${shared_ext}$major'
12755   ;;
12756
12757 aix4* | aix5*)
12758   version_type=linux
12759   need_lib_prefix=no
12760   need_version=no
12761   hardcode_into_libs=yes
12762   if test "$host_cpu" = ia64; then
12763     # AIX 5 supports IA64
12764     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12765     shlibpath_var=LD_LIBRARY_PATH
12766   else
12767     # With GCC up to 2.95.x, collect2 would create an import file
12768     # for dependence libraries.  The import file would start with
12769     # the line `#! .'.  This would cause the generated library to
12770     # depend on `.', always an invalid library.  This was fixed in
12771     # development snapshots of GCC prior to 3.0.
12772     case $host_os in
12773       aix4 | aix4.[01] | aix4.[01].*)
12774       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12775            echo ' yes '
12776            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12777         :
12778       else
12779         can_build_shared=no
12780       fi
12781       ;;
12782     esac
12783     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12784     # soname into executable. Probably we can add versioning support to
12785     # collect2, so additional links can be useful in future.
12786     if test "$aix_use_runtimelinking" = yes; then
12787       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12788       # instead of lib<name>.a to let people know that these are not
12789       # typical AIX shared libraries.
12790       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791     else
12792       # We preserve .a as extension for shared libraries through AIX4.2
12793       # and later when we are not doing run time linking.
12794       library_names_spec='${libname}${release}.a $libname.a'
12795       soname_spec='${libname}${release}${shared_ext}$major'
12796     fi
12797     shlibpath_var=LIBPATH
12798   fi
12799   ;;
12800
12801 amigaos*)
12802   library_names_spec='$libname.ixlibrary $libname.a'
12803   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12804   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'
12805   ;;
12806
12807 beos*)
12808   library_names_spec='${libname}${shared_ext}'
12809   dynamic_linker="$host_os ld.so"
12810   shlibpath_var=LIBRARY_PATH
12811   ;;
12812
12813 bsdi[45]*)
12814   version_type=linux
12815   need_version=no
12816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817   soname_spec='${libname}${release}${shared_ext}$major'
12818   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12819   shlibpath_var=LD_LIBRARY_PATH
12820   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12821   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12822   # the default ld.so.conf also contains /usr/contrib/lib and
12823   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12824   # libtool to hard-code these into programs
12825   ;;
12826
12827 cygwin* | mingw* | pw32*)
12828   version_type=windows
12829   shrext_cmds=".dll"
12830   need_version=no
12831   need_lib_prefix=no
12832
12833   case $GCC,$host_os in
12834   yes,cygwin* | yes,mingw* | yes,pw32*)
12835     library_names_spec='$libname.dll.a'
12836     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12837     postinstall_cmds='base_file=`basename \${file}`~
12838       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12839       dldir=$destdir/`dirname \$dlpath`~
12840       test -d \$dldir || mkdir -p \$dldir~
12841       $install_prog $dir/$dlname \$dldir/$dlname~
12842       chmod a+x \$dldir/$dlname'
12843     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12844       dlpath=$dir/\$dldll~
12845        $rm \$dlpath'
12846     shlibpath_overrides_runpath=yes
12847
12848     case $host_os in
12849     cygwin*)
12850       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12851       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12852       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12853       ;;
12854     mingw*)
12855       # MinGW DLLs use traditional 'lib' prefix
12856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12857       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12858       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12859         # It is most probably a Windows format PATH printed by
12860         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12861         # path with ; separators, and with drive letters. We can handle the
12862         # drive letters (cygwin fileutils understands them), so leave them,
12863         # especially as we might pass files found there to a mingw objdump,
12864         # which wouldn't understand a cygwinified path. Ahh.
12865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12866       else
12867         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12868       fi
12869       ;;
12870     pw32*)
12871       # pw32 DLLs use 'pw' prefix rather than 'lib'
12872       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12873       ;;
12874     esac
12875     ;;
12876
12877   *)
12878     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12879     ;;
12880   esac
12881   dynamic_linker='Win32 ld.exe'
12882   # FIXME: first we should search . and the directory the executable is in
12883   shlibpath_var=PATH
12884   ;;
12885
12886 darwin* | rhapsody*)
12887   dynamic_linker="$host_os dyld"
12888   version_type=darwin
12889   need_lib_prefix=no
12890   need_version=no
12891   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12892   soname_spec='${libname}${release}${major}$shared_ext'
12893   shlibpath_overrides_runpath=yes
12894   shlibpath_var=DYLD_LIBRARY_PATH
12895   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12896   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12897   if test "$GCC" = yes; then
12898     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"`
12899   else
12900     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12901   fi
12902   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12903   ;;
12904
12905 dgux*)
12906   version_type=linux
12907   need_lib_prefix=no
12908   need_version=no
12909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12910   soname_spec='${libname}${release}${shared_ext}$major'
12911   shlibpath_var=LD_LIBRARY_PATH
12912   ;;
12913
12914 freebsd1*)
12915   dynamic_linker=no
12916   ;;
12917
12918 freebsd* | dragonfly*)
12919   # DragonFly does not have aout.  When/if they implement a new
12920   # versioning mechanism, adjust this.
12921   if test -x /usr/bin/objformat; then
12922     objformat=`/usr/bin/objformat`
12923   else
12924     case $host_os in
12925     freebsd[123]*) objformat=aout ;;
12926     *) objformat=elf ;;
12927     esac
12928   fi
12929   version_type=freebsd-$objformat
12930   case $version_type in
12931     freebsd-elf*)
12932       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12933       need_version=no
12934       need_lib_prefix=no
12935       ;;
12936     freebsd-*)
12937       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12938       need_version=yes
12939       ;;
12940   esac
12941   shlibpath_var=LD_LIBRARY_PATH
12942   case $host_os in
12943   freebsd2*)
12944     shlibpath_overrides_runpath=yes
12945     ;;
12946   freebsd3.[01]* | freebsdelf3.[01]*)
12947     shlibpath_overrides_runpath=yes
12948     hardcode_into_libs=yes
12949     ;;
12950   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12951   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12952     shlibpath_overrides_runpath=no
12953     hardcode_into_libs=yes
12954     ;;
12955   freebsd*) # from 4.6 on
12956     shlibpath_overrides_runpath=yes
12957     hardcode_into_libs=yes
12958     ;;
12959   esac
12960   ;;
12961
12962 gnu*)
12963   version_type=linux
12964   need_lib_prefix=no
12965   need_version=no
12966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12967   soname_spec='${libname}${release}${shared_ext}$major'
12968   shlibpath_var=LD_LIBRARY_PATH
12969   hardcode_into_libs=yes
12970   ;;
12971
12972 hpux9* | hpux10* | hpux11*)
12973   # Give a soname corresponding to the major version so that dld.sl refuses to
12974   # link against other versions.
12975   version_type=sunos
12976   need_lib_prefix=no
12977   need_version=no
12978   case $host_cpu in
12979   ia64*)
12980     shrext_cmds='.so'
12981     hardcode_into_libs=yes
12982     dynamic_linker="$host_os dld.so"
12983     shlibpath_var=LD_LIBRARY_PATH
12984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986     soname_spec='${libname}${release}${shared_ext}$major'
12987     if test "X$HPUX_IA64_MODE" = X32; then
12988       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12989     else
12990       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12991     fi
12992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12993     ;;
12994    hppa*64*)
12995      shrext_cmds='.sl'
12996      hardcode_into_libs=yes
12997      dynamic_linker="$host_os dld.sl"
12998      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12999      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001      soname_spec='${libname}${release}${shared_ext}$major'
13002      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13003      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13004      ;;
13005    *)
13006     shrext_cmds='.sl'
13007     dynamic_linker="$host_os dld.sl"
13008     shlibpath_var=SHLIB_PATH
13009     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011     soname_spec='${libname}${release}${shared_ext}$major'
13012     ;;
13013   esac
13014   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13015   postinstall_cmds='chmod 555 $lib'
13016   ;;
13017
13018 interix3*)
13019   version_type=linux
13020   need_lib_prefix=no
13021   need_version=no
13022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13023   soname_spec='${libname}${release}${shared_ext}$major'
13024   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13025   shlibpath_var=LD_LIBRARY_PATH
13026   shlibpath_overrides_runpath=no
13027   hardcode_into_libs=yes
13028   ;;
13029
13030 irix5* | irix6* | nonstopux*)
13031   case $host_os in
13032     nonstopux*) version_type=nonstopux ;;
13033     *)
13034         if test "$lt_cv_prog_gnu_ld" = yes; then
13035                 version_type=linux
13036         else
13037                 version_type=irix
13038         fi ;;
13039   esac
13040   need_lib_prefix=no
13041   need_version=no
13042   soname_spec='${libname}${release}${shared_ext}$major'
13043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13044   case $host_os in
13045   irix5* | nonstopux*)
13046     libsuff= shlibsuff=
13047     ;;
13048   *)
13049     case $LD in # libtool.m4 will add one of these switches to LD
13050     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13051       libsuff= shlibsuff= libmagic=32-bit;;
13052     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13053       libsuff=32 shlibsuff=N32 libmagic=N32;;
13054     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13055       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13056     *) libsuff= shlibsuff= libmagic=never-match;;
13057     esac
13058     ;;
13059   esac
13060   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13061   shlibpath_overrides_runpath=no
13062   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13063   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13064   hardcode_into_libs=yes
13065   ;;
13066
13067 # No shared lib support for Linux oldld, aout, or coff.
13068 linux*oldld* | linux*aout* | linux*coff*)
13069   dynamic_linker=no
13070   ;;
13071
13072 # This must be Linux ELF.
13073 linux* | k*bsd*-gnu)
13074   version_type=linux
13075   need_lib_prefix=no
13076   need_version=no
13077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078   soname_spec='${libname}${release}${shared_ext}$major'
13079   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13080   shlibpath_var=LD_LIBRARY_PATH
13081   shlibpath_overrides_runpath=no
13082   # This implies no fast_install, which is unacceptable.
13083   # Some rework will be needed to allow for fast_install
13084   # before this can be enabled.
13085   hardcode_into_libs=yes
13086
13087   # Append ld.so.conf contents to the search path
13088   if test -f /etc/ld.so.conf; then
13089     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' ' '`
13090     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13091   fi
13092
13093   # We used to test for /lib/ld.so.1 and disable shared libraries on
13094   # powerpc, because MkLinux only supported shared libraries with the
13095   # GNU dynamic linker.  Since this was broken with cross compilers,
13096   # most powerpc-linux boxes support dynamic linking these days and
13097   # people can always --disable-shared, the test was removed, and we
13098   # assume the GNU/Linux dynamic linker is in use.
13099   dynamic_linker='GNU/Linux ld.so'
13100   ;;
13101
13102 netbsdelf*-gnu)
13103   version_type=linux
13104   need_lib_prefix=no
13105   need_version=no
13106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13107   soname_spec='${libname}${release}${shared_ext}$major'
13108   shlibpath_var=LD_LIBRARY_PATH
13109   shlibpath_overrides_runpath=no
13110   hardcode_into_libs=yes
13111   dynamic_linker='NetBSD ld.elf_so'
13112   ;;
13113
13114 netbsd*)
13115   version_type=sunos
13116   need_lib_prefix=no
13117   need_version=no
13118   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13121     dynamic_linker='NetBSD (a.out) ld.so'
13122   else
13123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13124     soname_spec='${libname}${release}${shared_ext}$major'
13125     dynamic_linker='NetBSD ld.elf_so'
13126   fi
13127   shlibpath_var=LD_LIBRARY_PATH
13128   shlibpath_overrides_runpath=yes
13129   hardcode_into_libs=yes
13130   ;;
13131
13132 newsos6)
13133   version_type=linux
13134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135   shlibpath_var=LD_LIBRARY_PATH
13136   shlibpath_overrides_runpath=yes
13137   ;;
13138
13139 nto-qnx*)
13140   version_type=linux
13141   need_lib_prefix=no
13142   need_version=no
13143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144   soname_spec='${libname}${release}${shared_ext}$major'
13145   shlibpath_var=LD_LIBRARY_PATH
13146   shlibpath_overrides_runpath=yes
13147   ;;
13148
13149 openbsd*)
13150   version_type=sunos
13151   sys_lib_dlsearch_path_spec="/usr/lib"
13152   need_lib_prefix=no
13153   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13154   case $host_os in
13155     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13156     *)                         need_version=no  ;;
13157   esac
13158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13160   shlibpath_var=LD_LIBRARY_PATH
13161   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13162     case $host_os in
13163       openbsd2.[89] | openbsd2.[89].*)
13164         shlibpath_overrides_runpath=no
13165         ;;
13166       *)
13167         shlibpath_overrides_runpath=yes
13168         ;;
13169       esac
13170   else
13171     shlibpath_overrides_runpath=yes
13172   fi
13173   ;;
13174
13175 os2*)
13176   libname_spec='$name'
13177   shrext_cmds=".dll"
13178   need_lib_prefix=no
13179   library_names_spec='$libname${shared_ext} $libname.a'
13180   dynamic_linker='OS/2 ld.exe'
13181   shlibpath_var=LIBPATH
13182   ;;
13183
13184 osf3* | osf4* | osf5*)
13185   version_type=osf
13186   need_lib_prefix=no
13187   need_version=no
13188   soname_spec='${libname}${release}${shared_ext}$major'
13189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190   shlibpath_var=LD_LIBRARY_PATH
13191   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13192   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13193   ;;
13194
13195 solaris*)
13196   version_type=linux
13197   need_lib_prefix=no
13198   need_version=no
13199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200   soname_spec='${libname}${release}${shared_ext}$major'
13201   shlibpath_var=LD_LIBRARY_PATH
13202   shlibpath_overrides_runpath=yes
13203   hardcode_into_libs=yes
13204   # ldd complains unless libraries are executable
13205   postinstall_cmds='chmod +x $lib'
13206   ;;
13207
13208 sunos4*)
13209   version_type=sunos
13210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13211   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13212   shlibpath_var=LD_LIBRARY_PATH
13213   shlibpath_overrides_runpath=yes
13214   if test "$with_gnu_ld" = yes; then
13215     need_lib_prefix=no
13216   fi
13217   need_version=yes
13218   ;;
13219
13220 sysv4 | sysv4.3*)
13221   version_type=linux
13222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223   soname_spec='${libname}${release}${shared_ext}$major'
13224   shlibpath_var=LD_LIBRARY_PATH
13225   case $host_vendor in
13226     sni)
13227       shlibpath_overrides_runpath=no
13228       need_lib_prefix=no
13229       export_dynamic_flag_spec='${wl}-Blargedynsym'
13230       runpath_var=LD_RUN_PATH
13231       ;;
13232     siemens)
13233       need_lib_prefix=no
13234       ;;
13235     motorola)
13236       need_lib_prefix=no
13237       need_version=no
13238       shlibpath_overrides_runpath=no
13239       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13240       ;;
13241   esac
13242   ;;
13243
13244 sysv4*MP*)
13245   if test -d /usr/nec ;then
13246     version_type=linux
13247     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13248     soname_spec='$libname${shared_ext}.$major'
13249     shlibpath_var=LD_LIBRARY_PATH
13250   fi
13251   ;;
13252
13253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13254   version_type=freebsd-elf
13255   need_lib_prefix=no
13256   need_version=no
13257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13258   soname_spec='${libname}${release}${shared_ext}$major'
13259   shlibpath_var=LD_LIBRARY_PATH
13260   hardcode_into_libs=yes
13261   if test "$with_gnu_ld" = yes; then
13262     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13263     shlibpath_overrides_runpath=no
13264   else
13265     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13266     shlibpath_overrides_runpath=yes
13267     case $host_os in
13268       sco3.2v5*)
13269         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13270         ;;
13271     esac
13272   fi
13273   sys_lib_dlsearch_path_spec='/usr/lib'
13274   ;;
13275
13276 uts4*)
13277   version_type=linux
13278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   shlibpath_var=LD_LIBRARY_PATH
13281   ;;
13282
13283 *)
13284   dynamic_linker=no
13285   ;;
13286 esac
13287 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13288 echo "${ECHO_T}$dynamic_linker" >&6; }
13289 test "$dynamic_linker" = no && can_build_shared=no
13290
13291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13292 if test "$GCC" = yes; then
13293   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13294 fi
13295
13296 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13298 hardcode_action_CXX=
13299 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13300    test -n "$runpath_var_CXX" || \
13301    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13302
13303   # We can hardcode non-existant directories.
13304   if test "$hardcode_direct_CXX" != no &&
13305      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13306      # have to relink, otherwise we might link with an installed library
13307      # when we should be linking with a yet-to-be-installed one
13308      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13309      test "$hardcode_minus_L_CXX" != no; then
13310     # Linking always hardcodes the temporary library directory.
13311     hardcode_action_CXX=relink
13312   else
13313     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13314     hardcode_action_CXX=immediate
13315   fi
13316 else
13317   # We cannot hardcode anything, or else we can only hardcode existing
13318   # directories.
13319   hardcode_action_CXX=unsupported
13320 fi
13321 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13322 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13323
13324 if test "$hardcode_action_CXX" = relink; then
13325   # Fast installation is not supported
13326   enable_fast_install=no
13327 elif test "$shlibpath_overrides_runpath" = yes ||
13328      test "$enable_shared" = no; then
13329   # Fast installation is not necessary
13330   enable_fast_install=needless
13331 fi
13332
13333
13334 # The else clause should only fire when bootstrapping the
13335 # libtool distribution, otherwise you forgot to ship ltmain.sh
13336 # with your package, and you will get complaints that there are
13337 # no rules to generate ltmain.sh.
13338 if test -f "$ltmain"; then
13339   # See if we are running on zsh, and set the options which allow our commands through
13340   # without removal of \ escapes.
13341   if test -n "${ZSH_VERSION+set}" ; then
13342     setopt NO_GLOB_SUBST
13343   fi
13344   # Now quote all the things that may contain metacharacters while being
13345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13346   # variables and quote the copies for generation of the libtool script.
13347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13348     SED SHELL STRIP \
13349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13351     deplibs_check_method reload_flag reload_cmds need_locks \
13352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13353     lt_cv_sys_global_symbol_to_c_name_address \
13354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13355     old_postinstall_cmds old_postuninstall_cmds \
13356     compiler_CXX \
13357     CC_CXX \
13358     LD_CXX \
13359     lt_prog_compiler_wl_CXX \
13360     lt_prog_compiler_pic_CXX \
13361     lt_prog_compiler_static_CXX \
13362     lt_prog_compiler_no_builtin_flag_CXX \
13363     export_dynamic_flag_spec_CXX \
13364     thread_safe_flag_spec_CXX \
13365     whole_archive_flag_spec_CXX \
13366     enable_shared_with_static_runtimes_CXX \
13367     old_archive_cmds_CXX \
13368     old_archive_from_new_cmds_CXX \
13369     predep_objects_CXX \
13370     postdep_objects_CXX \
13371     predeps_CXX \
13372     postdeps_CXX \
13373     compiler_lib_search_path_CXX \
13374     archive_cmds_CXX \
13375     archive_expsym_cmds_CXX \
13376     postinstall_cmds_CXX \
13377     postuninstall_cmds_CXX \
13378     old_archive_from_expsyms_cmds_CXX \
13379     allow_undefined_flag_CXX \
13380     no_undefined_flag_CXX \
13381     export_symbols_cmds_CXX \
13382     hardcode_libdir_flag_spec_CXX \
13383     hardcode_libdir_flag_spec_ld_CXX \
13384     hardcode_libdir_separator_CXX \
13385     hardcode_automatic_CXX \
13386     module_cmds_CXX \
13387     module_expsym_cmds_CXX \
13388     lt_cv_prog_compiler_c_o_CXX \
13389     exclude_expsyms_CXX \
13390     include_expsyms_CXX; do
13391
13392     case $var in
13393     old_archive_cmds_CXX | \
13394     old_archive_from_new_cmds_CXX | \
13395     archive_cmds_CXX | \
13396     archive_expsym_cmds_CXX | \
13397     module_cmds_CXX | \
13398     module_expsym_cmds_CXX | \
13399     old_archive_from_expsyms_cmds_CXX | \
13400     export_symbols_cmds_CXX | \
13401     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13402     postinstall_cmds | postuninstall_cmds | \
13403     old_postinstall_cmds | old_postuninstall_cmds | \
13404     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13405       # Double-quote double-evaled strings.
13406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13407       ;;
13408     *)
13409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13410       ;;
13411     esac
13412   done
13413
13414   case $lt_echo in
13415   *'\$0 --fallback-echo"')
13416     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13417     ;;
13418   esac
13419
13420 cfgfile="$ofile"
13421
13422   cat <<__EOF__ >> "$cfgfile"
13423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13424
13425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13426
13427 # Shell to use when invoking shell scripts.
13428 SHELL=$lt_SHELL
13429
13430 # Whether or not to build shared libraries.
13431 build_libtool_libs=$enable_shared
13432
13433 # Whether or not to build static libraries.
13434 build_old_libs=$enable_static
13435
13436 # Whether or not to add -lc for building shared libraries.
13437 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13438
13439 # Whether or not to disallow shared libs when runtime libs are static
13440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13441
13442 # Whether or not to optimize for fast installation.
13443 fast_install=$enable_fast_install
13444
13445 # The host system.
13446 host_alias=$host_alias
13447 host=$host
13448 host_os=$host_os
13449
13450 # The build system.
13451 build_alias=$build_alias
13452 build=$build
13453 build_os=$build_os
13454
13455 # An echo program that does not interpret backslashes.
13456 echo=$lt_echo
13457
13458 # The archiver.
13459 AR=$lt_AR
13460 AR_FLAGS=$lt_AR_FLAGS
13461
13462 # A C compiler.
13463 LTCC=$lt_LTCC
13464
13465 # LTCC compiler flags.
13466 LTCFLAGS=$lt_LTCFLAGS
13467
13468 # A language-specific compiler.
13469 CC=$lt_compiler_CXX
13470
13471 # Is the compiler the GNU C compiler?
13472 with_gcc=$GCC_CXX
13473
13474 # An ERE matcher.
13475 EGREP=$lt_EGREP
13476
13477 # The linker used to build libraries.
13478 LD=$lt_LD_CXX
13479
13480 # Whether we need hard or soft links.
13481 LN_S=$lt_LN_S
13482
13483 # A BSD-compatible nm program.
13484 NM=$lt_NM
13485
13486 # A symbol stripping program
13487 STRIP=$lt_STRIP
13488
13489 # Used to examine libraries when file_magic_cmd begins "file"
13490 MAGIC_CMD=$MAGIC_CMD
13491
13492 # Used on cygwin: DLL creation program.
13493 DLLTOOL="$DLLTOOL"
13494
13495 # Used on cygwin: object dumper.
13496 OBJDUMP="$OBJDUMP"
13497
13498 # Used on cygwin: assembler.
13499 AS="$AS"
13500
13501 # The name of the directory that contains temporary libtool files.
13502 objdir=$objdir
13503
13504 # How to create reloadable object files.
13505 reload_flag=$lt_reload_flag
13506 reload_cmds=$lt_reload_cmds
13507
13508 # How to pass a linker flag through the compiler.
13509 wl=$lt_lt_prog_compiler_wl_CXX
13510
13511 # Object file suffix (normally "o").
13512 objext="$ac_objext"
13513
13514 # Old archive suffix (normally "a").
13515 libext="$libext"
13516
13517 # Shared library suffix (normally ".so").
13518 shrext_cmds='$shrext_cmds'
13519
13520 # Executable file suffix (normally "").
13521 exeext="$exeext"
13522
13523 # Additional compiler flags for building library objects.
13524 pic_flag=$lt_lt_prog_compiler_pic_CXX
13525 pic_mode=$pic_mode
13526
13527 # What is the maximum length of a command?
13528 max_cmd_len=$lt_cv_sys_max_cmd_len
13529
13530 # Does compiler simultaneously support -c and -o options?
13531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13532
13533 # Must we lock files when doing compilation?
13534 need_locks=$lt_need_locks
13535
13536 # Do we need the lib prefix for modules?
13537 need_lib_prefix=$need_lib_prefix
13538
13539 # Do we need a version for libraries?
13540 need_version=$need_version
13541
13542 # Whether dlopen is supported.
13543 dlopen_support=$enable_dlopen
13544
13545 # Whether dlopen of programs is supported.
13546 dlopen_self=$enable_dlopen_self
13547
13548 # Whether dlopen of statically linked programs is supported.
13549 dlopen_self_static=$enable_dlopen_self_static
13550
13551 # Compiler flag to prevent dynamic linking.
13552 link_static_flag=$lt_lt_prog_compiler_static_CXX
13553
13554 # Compiler flag to turn off builtin functions.
13555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13556
13557 # Compiler flag to allow reflexive dlopens.
13558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13559
13560 # Compiler flag to generate shared objects directly from archives.
13561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13562
13563 # Compiler flag to generate thread-safe objects.
13564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13565
13566 # Library versioning type.
13567 version_type=$version_type
13568
13569 # Format of library name prefix.
13570 libname_spec=$lt_libname_spec
13571
13572 # List of archive names.  First name is the real one, the rest are links.
13573 # The last name is the one that the linker finds with -lNAME.
13574 library_names_spec=$lt_library_names_spec
13575
13576 # The coded name of the library, if different from the real name.
13577 soname_spec=$lt_soname_spec
13578
13579 # Commands used to build and install an old-style archive.
13580 RANLIB=$lt_RANLIB
13581 old_archive_cmds=$lt_old_archive_cmds_CXX
13582 old_postinstall_cmds=$lt_old_postinstall_cmds
13583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13584
13585 # Create an old-style archive from a shared archive.
13586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13587
13588 # Create a temporary old-style archive to link instead of a shared archive.
13589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13590
13591 # Commands used to build and install a shared archive.
13592 archive_cmds=$lt_archive_cmds_CXX
13593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13594 postinstall_cmds=$lt_postinstall_cmds
13595 postuninstall_cmds=$lt_postuninstall_cmds
13596
13597 # Commands used to build a loadable module (assumed same as above if empty)
13598 module_cmds=$lt_module_cmds_CXX
13599 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13600
13601 # Commands to strip libraries.
13602 old_striplib=$lt_old_striplib
13603 striplib=$lt_striplib
13604
13605 # Dependencies to place before the objects being linked to create a
13606 # shared library.
13607 predep_objects=$lt_predep_objects_CXX
13608
13609 # Dependencies to place after the objects being linked to create a
13610 # shared library.
13611 postdep_objects=$lt_postdep_objects_CXX
13612
13613 # Dependencies to place before the objects being linked to create a
13614 # shared library.
13615 predeps=$lt_predeps_CXX
13616
13617 # Dependencies to place after the objects being linked to create a
13618 # shared library.
13619 postdeps=$lt_postdeps_CXX
13620
13621 # The library search path used internally by the compiler when linking
13622 # a shared library.
13623 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13624
13625 # Method to check whether dependent libraries are shared objects.
13626 deplibs_check_method=$lt_deplibs_check_method
13627
13628 # Command to use when deplibs_check_method == file_magic.
13629 file_magic_cmd=$lt_file_magic_cmd
13630
13631 # Flag that allows shared libraries with undefined symbols to be built.
13632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13633
13634 # Flag that forces no undefined symbols.
13635 no_undefined_flag=$lt_no_undefined_flag_CXX
13636
13637 # Commands used to finish a libtool library installation in a directory.
13638 finish_cmds=$lt_finish_cmds
13639
13640 # Same as above, but a single script fragment to be evaled but not shown.
13641 finish_eval=$lt_finish_eval
13642
13643 # Take the output of nm and produce a listing of raw symbols and C names.
13644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13645
13646 # Transform the output of nm in a proper C declaration
13647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13648
13649 # Transform the output of nm in a C name address pair
13650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13651
13652 # This is the shared library runtime path variable.
13653 runpath_var=$runpath_var
13654
13655 # This is the shared library path variable.
13656 shlibpath_var=$shlibpath_var
13657
13658 # Is shlibpath searched before the hard-coded library search path?
13659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13660
13661 # How to hardcode a shared library path into an executable.
13662 hardcode_action=$hardcode_action_CXX
13663
13664 # Whether we should hardcode library paths into libraries.
13665 hardcode_into_libs=$hardcode_into_libs
13666
13667 # Flag to hardcode \$libdir into a binary during linking.
13668 # This must work even if \$libdir does not exist.
13669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13670
13671 # If ld is used when linking, flag to hardcode \$libdir into
13672 # a binary during linking. This must work even if \$libdir does
13673 # not exist.
13674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13675
13676 # Whether we need a single -rpath flag with a separated argument.
13677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13678
13679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_direct=$hardcode_direct_CXX
13682
13683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13684 # resulting binary.
13685 hardcode_minus_L=$hardcode_minus_L_CXX
13686
13687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13688 # the resulting binary.
13689 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13690
13691 # Set to yes if building a shared library automatically hardcodes DIR into the library
13692 # and all subsequent libraries and executables linked against it.
13693 hardcode_automatic=$hardcode_automatic_CXX
13694
13695 # Variables whose values should be saved in libtool wrapper scripts and
13696 # restored at relink time.
13697 variables_saved_for_relink="$variables_saved_for_relink"
13698
13699 # Whether libtool must link a program against all its dependency libraries.
13700 link_all_deplibs=$link_all_deplibs_CXX
13701
13702 # Compile-time system search path for libraries
13703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13704
13705 # Run-time system search path for libraries
13706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13707
13708 # Fix the shell variable \$srcfile for the compiler.
13709 fix_srcfile_path="$fix_srcfile_path_CXX"
13710
13711 # Set to yes if exported symbols are required.
13712 always_export_symbols=$always_export_symbols_CXX
13713
13714 # The commands to list exported symbols.
13715 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13716
13717 # The commands to extract the exported symbol list from a shared archive.
13718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13719
13720 # Symbols that should not be listed in the preloaded symbols.
13721 exclude_expsyms=$lt_exclude_expsyms_CXX
13722
13723 # Symbols that must always be exported.
13724 include_expsyms=$lt_include_expsyms_CXX
13725
13726 # ### END LIBTOOL TAG CONFIG: $tagname
13727
13728 __EOF__
13729
13730
13731 else
13732   # If there is no Makefile yet, we rely on a make rule to execute
13733   # `config.status --recheck' to rerun these tests and create the
13734   # libtool script then.
13735   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13736   if test -f "$ltmain_in"; then
13737     test -f Makefile && make "$ltmain"
13738   fi
13739 fi
13740
13741
13742 ac_ext=c
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13747
13748 CC=$lt_save_CC
13749 LDCXX=$LD
13750 LD=$lt_save_LD
13751 GCC=$lt_save_GCC
13752 with_gnu_ldcxx=$with_gnu_ld
13753 with_gnu_ld=$lt_save_with_gnu_ld
13754 lt_cv_path_LDCXX=$lt_cv_path_LD
13755 lt_cv_path_LD=$lt_save_path_LD
13756 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13757 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13758
13759         else
13760           tagname=""
13761         fi
13762         ;;
13763
13764       F77)
13765         if test -n "$F77" && test "X$F77" != "Xno"; then
13766
13767 ac_ext=f
13768 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13769 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13770 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13771
13772
13773 archive_cmds_need_lc_F77=no
13774 allow_undefined_flag_F77=
13775 always_export_symbols_F77=no
13776 archive_expsym_cmds_F77=
13777 export_dynamic_flag_spec_F77=
13778 hardcode_direct_F77=no
13779 hardcode_libdir_flag_spec_F77=
13780 hardcode_libdir_flag_spec_ld_F77=
13781 hardcode_libdir_separator_F77=
13782 hardcode_minus_L_F77=no
13783 hardcode_automatic_F77=no
13784 module_cmds_F77=
13785 module_expsym_cmds_F77=
13786 link_all_deplibs_F77=unknown
13787 old_archive_cmds_F77=$old_archive_cmds
13788 no_undefined_flag_F77=
13789 whole_archive_flag_spec_F77=
13790 enable_shared_with_static_runtimes_F77=no
13791
13792 # Source file extension for f77 test sources.
13793 ac_ext=f
13794
13795 # Object file extension for compiled f77 test sources.
13796 objext=o
13797 objext_F77=$objext
13798
13799 # Code to be used in simple compile tests
13800 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13801
13802 # Code to be used in simple link tests
13803 lt_simple_link_test_code="      program t\n      end\n"
13804
13805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13806
13807 # If no C compiler was specified, use CC.
13808 LTCC=${LTCC-"$CC"}
13809
13810 # If no C compiler flags were specified, use CFLAGS.
13811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13812
13813 # Allow CC to be a program name with arguments.
13814 compiler=$CC
13815
13816
13817 # save warnings/boilerplate of simple test code
13818 ac_outfile=conftest.$ac_objext
13819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13821 _lt_compiler_boilerplate=`cat conftest.err`
13822 $rm conftest*
13823
13824 ac_outfile=conftest.$ac_objext
13825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13827 _lt_linker_boilerplate=`cat conftest.err`
13828 $rm conftest*
13829
13830
13831 # Allow CC to be a program name with arguments.
13832 lt_save_CC="$CC"
13833 CC=${F77-"f77"}
13834 compiler=$CC
13835 compiler_F77=$CC
13836 for cc_temp in $compiler""; do
13837   case $cc_temp in
13838     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13839     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13840     \-*) ;;
13841     *) break;;
13842   esac
13843 done
13844 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13845
13846
13847 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13848 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13849 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13850 echo "${ECHO_T}$can_build_shared" >&6; }
13851
13852 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13853 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13854 test "$can_build_shared" = "no" && enable_shared=no
13855
13856 # On AIX, shared libraries and static libraries use the same namespace, and
13857 # are all built from PIC.
13858 case $host_os in
13859 aix3*)
13860   test "$enable_shared" = yes && enable_static=no
13861   if test -n "$RANLIB"; then
13862     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13863     postinstall_cmds='$RANLIB $lib'
13864   fi
13865   ;;
13866 aix4* | aix5*)
13867   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13868     test "$enable_shared" = yes && enable_static=no
13869   fi
13870   ;;
13871 esac
13872 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13873 echo "${ECHO_T}$enable_shared" >&6; }
13874
13875 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13876 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13877 # Make sure either enable_shared or enable_static is yes.
13878 test "$enable_shared" = yes || enable_static=yes
13879 { echo "$as_me:$LINENO: result: $enable_static" >&5
13880 echo "${ECHO_T}$enable_static" >&6; }
13881
13882 GCC_F77="$G77"
13883 LD_F77="$LD"
13884
13885 lt_prog_compiler_wl_F77=
13886 lt_prog_compiler_pic_F77=
13887 lt_prog_compiler_static_F77=
13888
13889 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13890 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13891
13892   if test "$GCC" = yes; then
13893     lt_prog_compiler_wl_F77='-Wl,'
13894     lt_prog_compiler_static_F77='-static'
13895
13896     case $host_os in
13897       aix*)
13898       # All AIX code is PIC.
13899       if test "$host_cpu" = ia64; then
13900         # AIX 5 now supports IA64 processor
13901         lt_prog_compiler_static_F77='-Bstatic'
13902       fi
13903       ;;
13904
13905     amigaos*)
13906       # FIXME: we need at least 68020 code to build shared libraries, but
13907       # adding the `-m68020' flag to GCC prevents building anything better,
13908       # like `-m68040'.
13909       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13910       ;;
13911
13912     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13913       # PIC is the default for these OSes.
13914       ;;
13915
13916     mingw* | pw32* | os2*)
13917       # This hack is so that the source file can tell whether it is being
13918       # built for inclusion in a dll (and should export symbols for example).
13919       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13920       ;;
13921
13922     darwin* | rhapsody*)
13923       # PIC is the default on this platform
13924       # Common symbols not allowed in MH_DYLIB files
13925       lt_prog_compiler_pic_F77='-fno-common'
13926       ;;
13927
13928     interix3*)
13929       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13930       # Instead, we relocate shared libraries at runtime.
13931       ;;
13932
13933     msdosdjgpp*)
13934       # Just because we use GCC doesn't mean we suddenly get shared libraries
13935       # on systems that don't support them.
13936       lt_prog_compiler_can_build_shared_F77=no
13937       enable_shared=no
13938       ;;
13939
13940     sysv4*MP*)
13941       if test -d /usr/nec; then
13942         lt_prog_compiler_pic_F77=-Kconform_pic
13943       fi
13944       ;;
13945
13946     hpux*)
13947       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13948       # not for PA HP-UX.
13949       case $host_cpu in
13950       hppa*64*|ia64*)
13951         # +Z the default
13952         ;;
13953       *)
13954         lt_prog_compiler_pic_F77='-fPIC'
13955         ;;
13956       esac
13957       ;;
13958
13959     *)
13960       lt_prog_compiler_pic_F77='-fPIC'
13961       ;;
13962     esac
13963   else
13964     # PORTME Check for flag to pass linker flags through the system compiler.
13965     case $host_os in
13966     aix*)
13967       lt_prog_compiler_wl_F77='-Wl,'
13968       if test "$host_cpu" = ia64; then
13969         # AIX 5 now supports IA64 processor
13970         lt_prog_compiler_static_F77='-Bstatic'
13971       else
13972         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13973       fi
13974       ;;
13975       darwin*)
13976         # PIC is the default on this platform
13977         # Common symbols not allowed in MH_DYLIB files
13978        case $cc_basename in
13979          xlc*)
13980          lt_prog_compiler_pic_F77='-qnocommon'
13981          lt_prog_compiler_wl_F77='-Wl,'
13982          ;;
13983        esac
13984        ;;
13985
13986     mingw* | pw32* | os2*)
13987       # This hack is so that the source file can tell whether it is being
13988       # built for inclusion in a dll (and should export symbols for example).
13989       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13990       ;;
13991
13992     hpux9* | hpux10* | hpux11*)
13993       lt_prog_compiler_wl_F77='-Wl,'
13994       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13995       # not for PA HP-UX.
13996       case $host_cpu in
13997       hppa*64*|ia64*)
13998         # +Z the default
13999         ;;
14000       *)
14001         lt_prog_compiler_pic_F77='+Z'
14002         ;;
14003       esac
14004       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14005       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14006       ;;
14007
14008     irix5* | irix6* | nonstopux*)
14009       lt_prog_compiler_wl_F77='-Wl,'
14010       # PIC (with -KPIC) is the default.
14011       lt_prog_compiler_static_F77='-non_shared'
14012       ;;
14013
14014     newsos6)
14015       lt_prog_compiler_pic_F77='-KPIC'
14016       lt_prog_compiler_static_F77='-Bstatic'
14017       ;;
14018
14019     linux* | k*bsd*-gnu)
14020       case $cc_basename in
14021       icc* | ecc*)
14022         lt_prog_compiler_wl_F77='-Wl,'
14023         lt_prog_compiler_pic_F77='-KPIC'
14024         lt_prog_compiler_static_F77='-static'
14025         ;;
14026       pgcc* | pgf77* | pgf90* | pgf95*)
14027         # Portland Group compilers (*not* the Pentium gcc compiler,
14028         # which looks to be a dead project)
14029         lt_prog_compiler_wl_F77='-Wl,'
14030         lt_prog_compiler_pic_F77='-fpic'
14031         lt_prog_compiler_static_F77='-Bstatic'
14032         ;;
14033       ccc*)
14034         lt_prog_compiler_wl_F77='-Wl,'
14035         # All Alpha code is PIC.
14036         lt_prog_compiler_static_F77='-non_shared'
14037         ;;
14038       esac
14039       ;;
14040
14041     osf3* | osf4* | osf5*)
14042       lt_prog_compiler_wl_F77='-Wl,'
14043       # All OSF/1 code is PIC.
14044       lt_prog_compiler_static_F77='-non_shared'
14045       ;;
14046
14047     solaris*)
14048       lt_prog_compiler_pic_F77='-KPIC'
14049       lt_prog_compiler_static_F77='-Bstatic'
14050       case $cc_basename in
14051       f77* | f90* | f95*)
14052         lt_prog_compiler_wl_F77='-Qoption ld ';;
14053       *)
14054         lt_prog_compiler_wl_F77='-Wl,';;
14055       esac
14056       ;;
14057
14058     sunos4*)
14059       lt_prog_compiler_wl_F77='-Qoption ld '
14060       lt_prog_compiler_pic_F77='-PIC'
14061       lt_prog_compiler_static_F77='-Bstatic'
14062       ;;
14063
14064     sysv4 | sysv4.2uw2* | sysv4.3*)
14065       lt_prog_compiler_wl_F77='-Wl,'
14066       lt_prog_compiler_pic_F77='-KPIC'
14067       lt_prog_compiler_static_F77='-Bstatic'
14068       ;;
14069
14070     sysv4*MP*)
14071       if test -d /usr/nec ;then
14072         lt_prog_compiler_pic_F77='-Kconform_pic'
14073         lt_prog_compiler_static_F77='-Bstatic'
14074       fi
14075       ;;
14076
14077     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14078       lt_prog_compiler_wl_F77='-Wl,'
14079       lt_prog_compiler_pic_F77='-KPIC'
14080       lt_prog_compiler_static_F77='-Bstatic'
14081       ;;
14082
14083     unicos*)
14084       lt_prog_compiler_wl_F77='-Wl,'
14085       lt_prog_compiler_can_build_shared_F77=no
14086       ;;
14087
14088     uts4*)
14089       lt_prog_compiler_pic_F77='-pic'
14090       lt_prog_compiler_static_F77='-Bstatic'
14091       ;;
14092
14093     *)
14094       lt_prog_compiler_can_build_shared_F77=no
14095       ;;
14096     esac
14097   fi
14098
14099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14100 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14101
14102 #
14103 # Check to make sure the PIC flag actually works.
14104 #
14105 if test -n "$lt_prog_compiler_pic_F77"; then
14106
14107 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14109 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14110   echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112   lt_prog_compiler_pic_works_F77=no
14113   ac_outfile=conftest.$ac_objext
14114    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14115    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14116    # Insert the option either (1) after the last *FLAGS variable, or
14117    # (2) before a word containing "conftest.", or (3) at the end.
14118    # Note that $ac_compile itself does not contain backslashes and begins
14119    # with a dollar sign (not a hyphen), so the echo should work correctly.
14120    # The option is referenced via a variable to avoid confusing sed.
14121    lt_compile=`echo "$ac_compile" | $SED \
14122    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14124    -e 's:$: $lt_compiler_flag:'`
14125    (eval echo "\"\$as_me:14125: $lt_compile\"" >&5)
14126    (eval "$lt_compile" 2>conftest.err)
14127    ac_status=$?
14128    cat conftest.err >&5
14129    echo "$as_me:14129: \$? = $ac_status" >&5
14130    if (exit $ac_status) && test -s "$ac_outfile"; then
14131      # The compiler can only warn and ignore the option if not recognized
14132      # So say no if there are warnings other than the usual output.
14133      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14134      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14135      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14136        lt_prog_compiler_pic_works_F77=yes
14137      fi
14138    fi
14139    $rm conftest*
14140
14141 fi
14142 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14143 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14144
14145 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14146     case $lt_prog_compiler_pic_F77 in
14147      "" | " "*) ;;
14148      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14149      esac
14150 else
14151     lt_prog_compiler_pic_F77=
14152      lt_prog_compiler_can_build_shared_F77=no
14153 fi
14154
14155 fi
14156 case $host_os in
14157   # For platforms which do not support PIC, -DPIC is meaningless:
14158   *djgpp*)
14159     lt_prog_compiler_pic_F77=
14160     ;;
14161   *)
14162     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14163     ;;
14164 esac
14165
14166 #
14167 # Check to make sure the static flag actually works.
14168 #
14169 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14170 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14171 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14172 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14173   echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175   lt_prog_compiler_static_works_F77=no
14176    save_LDFLAGS="$LDFLAGS"
14177    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14178    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14179    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14180      # The linker can only warn and ignore the option if not recognized
14181      # So say no if there are warnings
14182      if test -s conftest.err; then
14183        # Append any errors to the config.log.
14184        cat conftest.err 1>&5
14185        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14186        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14187        if diff conftest.exp conftest.er2 >/dev/null; then
14188          lt_prog_compiler_static_works_F77=yes
14189        fi
14190      else
14191        lt_prog_compiler_static_works_F77=yes
14192      fi
14193    fi
14194    $rm conftest*
14195    LDFLAGS="$save_LDFLAGS"
14196
14197 fi
14198 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14199 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14200
14201 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14202     :
14203 else
14204     lt_prog_compiler_static_F77=
14205 fi
14206
14207
14208 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14210 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14211   echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213   lt_cv_prog_compiler_c_o_F77=no
14214    $rm -r conftest 2>/dev/null
14215    mkdir conftest
14216    cd conftest
14217    mkdir out
14218    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14219
14220    lt_compiler_flag="-o out/conftest2.$ac_objext"
14221    # Insert the option either (1) after the last *FLAGS variable, or
14222    # (2) before a word containing "conftest.", or (3) at the end.
14223    # Note that $ac_compile itself does not contain backslashes and begins
14224    # with a dollar sign (not a hyphen), so the echo should work correctly.
14225    lt_compile=`echo "$ac_compile" | $SED \
14226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228    -e 's:$: $lt_compiler_flag:'`
14229    (eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
14230    (eval "$lt_compile" 2>out/conftest.err)
14231    ac_status=$?
14232    cat out/conftest.err >&5
14233    echo "$as_me:14233: \$? = $ac_status" >&5
14234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14235    then
14236      # The compiler can only warn and ignore the option if not recognized
14237      # So say no if there are warnings
14238      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14241        lt_cv_prog_compiler_c_o_F77=yes
14242      fi
14243    fi
14244    chmod u+w . 2>&5
14245    $rm conftest*
14246    # SGI C++ compiler will create directory out/ii_files/ for
14247    # template instantiation
14248    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14249    $rm out/* && rmdir out
14250    cd ..
14251    rmdir conftest
14252    $rm conftest*
14253
14254 fi
14255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14257
14258
14259 hard_links="nottested"
14260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14261   # do not overwrite the value of need_locks provided by the user
14262   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14264   hard_links=yes
14265   $rm conftest*
14266   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14267   touch conftest.a
14268   ln conftest.a conftest.b 2>&5 || hard_links=no
14269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14270   { echo "$as_me:$LINENO: result: $hard_links" >&5
14271 echo "${ECHO_T}$hard_links" >&6; }
14272   if test "$hard_links" = no; then
14273     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14275     need_locks=warn
14276   fi
14277 else
14278   need_locks=no
14279 fi
14280
14281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14283
14284   runpath_var=
14285   allow_undefined_flag_F77=
14286   enable_shared_with_static_runtimes_F77=no
14287   archive_cmds_F77=
14288   archive_expsym_cmds_F77=
14289   old_archive_From_new_cmds_F77=
14290   old_archive_from_expsyms_cmds_F77=
14291   export_dynamic_flag_spec_F77=
14292   whole_archive_flag_spec_F77=
14293   thread_safe_flag_spec_F77=
14294   hardcode_libdir_flag_spec_F77=
14295   hardcode_libdir_flag_spec_ld_F77=
14296   hardcode_libdir_separator_F77=
14297   hardcode_direct_F77=no
14298   hardcode_minus_L_F77=no
14299   hardcode_shlibpath_var_F77=unsupported
14300   link_all_deplibs_F77=unknown
14301   hardcode_automatic_F77=no
14302   module_cmds_F77=
14303   module_expsym_cmds_F77=
14304   always_export_symbols_F77=no
14305   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14306   # include_expsyms should be a list of space-separated symbols to be *always*
14307   # included in the symbol list
14308   include_expsyms_F77=
14309   # exclude_expsyms can be an extended regexp of symbols to exclude
14310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14312   # as well as any symbol that contains `d'.
14313   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14315   # platforms (ab)use it in PIC code, but their linkers get confused if
14316   # the symbol is explicitly referenced.  Since portable code cannot
14317   # rely on this symbol name, it's probably fine to never include it in
14318   # preloaded symbol tables.
14319   extract_expsyms_cmds=
14320   # Just being paranoid about ensuring that cc_basename is set.
14321   for cc_temp in $compiler""; do
14322   case $cc_temp in
14323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14325     \-*) ;;
14326     *) break;;
14327   esac
14328 done
14329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14330
14331   case $host_os in
14332   cygwin* | mingw* | pw32*)
14333     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14334     # When not using gcc, we currently assume that we are using
14335     # Microsoft Visual C++.
14336     if test "$GCC" != yes; then
14337       with_gnu_ld=no
14338     fi
14339     ;;
14340   interix*)
14341     # we just hope/assume this is gcc and not c89 (= MSVC++)
14342     with_gnu_ld=yes
14343     ;;
14344   openbsd*)
14345     with_gnu_ld=no
14346     ;;
14347   esac
14348
14349   ld_shlibs_F77=yes
14350   if test "$with_gnu_ld" = yes; then
14351     # If archive_cmds runs LD, not CC, wlarc should be empty
14352     wlarc='${wl}'
14353
14354     # Set some defaults for GNU ld with shared library support. These
14355     # are reset later if shared libraries are not supported. Putting them
14356     # here allows them to be overridden if necessary.
14357     runpath_var=LD_RUN_PATH
14358     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14359     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14360     # ancient GNU ld didn't support --whole-archive et. al.
14361     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14362         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14363       else
14364         whole_archive_flag_spec_F77=
14365     fi
14366     supports_anon_versioning=no
14367     case `$LD -v 2>/dev/null` in
14368       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14369       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14370       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14371       *\ 2.11.*) ;; # other 2.11 versions
14372       *) supports_anon_versioning=yes ;;
14373     esac
14374
14375     # See if GNU ld supports shared libraries.
14376     case $host_os in
14377     aix3* | aix4* | aix5*)
14378       # On AIX/PPC, the GNU linker is very broken
14379       if test "$host_cpu" != ia64; then
14380         ld_shlibs_F77=no
14381         cat <<EOF 1>&2
14382
14383 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14384 *** to be unable to reliably create shared libraries on AIX.
14385 *** Therefore, libtool is disabling shared libraries support.  If you
14386 *** really care for shared libraries, you may want to modify your PATH
14387 *** so that a non-GNU linker is found, and then restart.
14388
14389 EOF
14390       fi
14391       ;;
14392
14393     amigaos*)
14394       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)'
14395       hardcode_libdir_flag_spec_F77='-L$libdir'
14396       hardcode_minus_L_F77=yes
14397
14398       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14399       # that the semantics of dynamic libraries on AmigaOS, at least up
14400       # to version 4, is to share data among multiple programs linked
14401       # with the same dynamic library.  Since this doesn't match the
14402       # behavior of shared libraries on other platforms, we can't use
14403       # them.
14404       ld_shlibs_F77=no
14405       ;;
14406
14407     beos*)
14408       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14409         allow_undefined_flag_F77=unsupported
14410         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14411         # support --undefined.  This deserves some investigation.  FIXME
14412         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14413       else
14414         ld_shlibs_F77=no
14415       fi
14416       ;;
14417
14418     cygwin* | mingw* | pw32*)
14419       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14420       # as there is no search path for DLLs.
14421       hardcode_libdir_flag_spec_F77='-L$libdir'
14422       allow_undefined_flag_F77=unsupported
14423       always_export_symbols_F77=no
14424       enable_shared_with_static_runtimes_F77=yes
14425       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14426
14427       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14428         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14429         # If the export-symbols file already is a .def file (1st line
14430         # is EXPORTS), use it as is; otherwise, prepend...
14431         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14432           cp $export_symbols $output_objdir/$soname.def;
14433         else
14434           echo EXPORTS > $output_objdir/$soname.def;
14435           cat $export_symbols >> $output_objdir/$soname.def;
14436         fi~
14437         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14438       else
14439         ld_shlibs_F77=no
14440       fi
14441       ;;
14442
14443     interix3*)
14444       hardcode_direct_F77=no
14445       hardcode_shlibpath_var_F77=no
14446       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14447       export_dynamic_flag_spec_F77='${wl}-E'
14448       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14449       # Instead, shared libraries are loaded at an image base (0x10000000 by
14450       # default) and relocated if they conflict, which is a slow very memory
14451       # consuming and fragmenting process.  To avoid this, we pick a random,
14452       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14453       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14454       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'
14455       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'
14456       ;;
14457
14458     linux* | k*bsd*-gnu)
14459       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14460         tmp_addflag=
14461         case $cc_basename,$host_cpu in
14462         pgcc*)                          # Portland Group C compiler
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'
14465           ;;
14466         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14467           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'
14468           tmp_addflag=' $pic_flag -Mnomain' ;;
14469         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14470           tmp_addflag=' -i_dynamic' ;;
14471         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14472           tmp_addflag=' -i_dynamic -nofor_main' ;;
14473         ifc* | ifort*)                  # Intel Fortran compiler
14474           tmp_addflag=' -nofor_main' ;;
14475         esac
14476         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14477
14478         if test $supports_anon_versioning = yes; then
14479           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14480   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14481   $echo "local: *; };" >> $output_objdir/$libname.ver~
14482           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14483         fi
14484         link_all_deplibs_F77=no
14485       else
14486         ld_shlibs_F77=no
14487       fi
14488       ;;
14489
14490     netbsd* | netbsdelf*-gnu)
14491       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14492         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14493         wlarc=
14494       else
14495         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14496         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14497       fi
14498       ;;
14499
14500     solaris*)
14501       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14502         ld_shlibs_F77=no
14503         cat <<EOF 1>&2
14504
14505 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14506 *** create shared libraries on Solaris systems.  Therefore, libtool
14507 *** is disabling shared libraries support.  We urge you to upgrade GNU
14508 *** binutils to release 2.9.1 or newer.  Another option is to modify
14509 *** your PATH or compiler configuration so that the native linker is
14510 *** used, and then restart.
14511
14512 EOF
14513       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14514         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14515         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14516       else
14517         ld_shlibs_F77=no
14518       fi
14519       ;;
14520
14521     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14522       case `$LD -v 2>&1` in
14523         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14524         ld_shlibs_F77=no
14525         cat <<_LT_EOF 1>&2
14526
14527 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14528 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14529 *** is disabling shared libraries support.  We urge you to upgrade GNU
14530 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14531 *** your PATH or compiler configuration so that the native linker is
14532 *** used, and then restart.
14533
14534 _LT_EOF
14535         ;;
14536         *)
14537           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14539             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14540             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14541           else
14542             ld_shlibs_F77=no
14543           fi
14544         ;;
14545       esac
14546       ;;
14547
14548     sunos4*)
14549       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14550       wlarc=
14551       hardcode_direct_F77=yes
14552       hardcode_shlibpath_var_F77=no
14553       ;;
14554
14555     *)
14556       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14557         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14558         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14559       else
14560         ld_shlibs_F77=no
14561       fi
14562       ;;
14563     esac
14564
14565     if test "$ld_shlibs_F77" = no; then
14566       runpath_var=
14567       hardcode_libdir_flag_spec_F77=
14568       export_dynamic_flag_spec_F77=
14569       whole_archive_flag_spec_F77=
14570     fi
14571   else
14572     # PORTME fill in a description of your system's linker (not GNU ld)
14573     case $host_os in
14574     aix3*)
14575       allow_undefined_flag_F77=unsupported
14576       always_export_symbols_F77=yes
14577       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'
14578       # Note: this linker hardcodes the directories in LIBPATH if there
14579       # are no directories specified by -L.
14580       hardcode_minus_L_F77=yes
14581       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14582         # Neither direct hardcoding nor static linking is supported with a
14583         # broken collect2.
14584         hardcode_direct_F77=unsupported
14585       fi
14586       ;;
14587
14588     aix4* | aix5*)
14589       if test "$host_cpu" = ia64; then
14590         # On IA64, the linker does run time linking by default, so we don't
14591         # have to do anything special.
14592         aix_use_runtimelinking=no
14593         exp_sym_flag='-Bexport'
14594         no_entry_flag=""
14595       else
14596         # If we're using GNU nm, then we don't want the "-C" option.
14597         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14598         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14599           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'
14600         else
14601           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'
14602         fi
14603         aix_use_runtimelinking=no
14604
14605         # Test if we are trying to use run time linking or normal
14606         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14607         # need to do runtime linking.
14608         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14609           for ld_flag in $LDFLAGS; do
14610           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14611             aix_use_runtimelinking=yes
14612             break
14613           fi
14614           done
14615           ;;
14616         esac
14617
14618         exp_sym_flag='-bexport'
14619         no_entry_flag='-bnoentry'
14620       fi
14621
14622       # When large executables or shared objects are built, AIX ld can
14623       # have problems creating the table of contents.  If linking a library
14624       # or program results in "error TOC overflow" add -mminimal-toc to
14625       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14626       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14627
14628       archive_cmds_F77=''
14629       hardcode_direct_F77=yes
14630       hardcode_libdir_separator_F77=':'
14631       link_all_deplibs_F77=yes
14632
14633       if test "$GCC" = yes; then
14634         case $host_os in aix4.[012]|aix4.[012].*)
14635         # We only want to do this on AIX 4.2 and lower, the check
14636         # below for broken collect2 doesn't work under 4.3+
14637           collect2name=`${CC} -print-prog-name=collect2`
14638           if test -f "$collect2name" && \
14639            strings "$collect2name" | grep resolve_lib_name >/dev/null
14640           then
14641           # We have reworked collect2
14642           hardcode_direct_F77=yes
14643           else
14644           # We have old collect2
14645           hardcode_direct_F77=unsupported
14646           # It fails to find uninstalled libraries when the uninstalled
14647           # path is not listed in the libpath.  Setting hardcode_minus_L
14648           # to unsupported forces relinking
14649           hardcode_minus_L_F77=yes
14650           hardcode_libdir_flag_spec_F77='-L$libdir'
14651           hardcode_libdir_separator_F77=
14652           fi
14653           ;;
14654         esac
14655         shared_flag='-shared'
14656         if test "$aix_use_runtimelinking" = yes; then
14657           shared_flag="$shared_flag "'${wl}-G'
14658         fi
14659       else
14660         # not using gcc
14661         if test "$host_cpu" = ia64; then
14662         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14663         # chokes on -Wl,-G. The following line is correct:
14664           shared_flag='-G'
14665         else
14666           if test "$aix_use_runtimelinking" = yes; then
14667             shared_flag='${wl}-G'
14668           else
14669             shared_flag='${wl}-bM:SRE'
14670           fi
14671         fi
14672       fi
14673
14674       # It seems that -bexpall does not export symbols beginning with
14675       # underscore (_), so it is better to generate a list of symbols to export.
14676       always_export_symbols_F77=yes
14677       if test "$aix_use_runtimelinking" = yes; then
14678         # Warning - without using the other runtime loading flags (-brtl),
14679         # -berok will link without error, but may produce a broken library.
14680         allow_undefined_flag_F77='-berok'
14681        # Determine the default libpath from the value encoded in an empty executable.
14682        cat >conftest.$ac_ext <<_ACEOF
14683       program main
14684
14685       end
14686 _ACEOF
14687 rm -f conftest.$ac_objext conftest$ac_exeext
14688 if { (ac_try="$ac_link"
14689 case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_link") 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } && {
14701          test -z "$ac_f77_werror_flag" ||
14702          test ! -s conftest.err
14703        } && test -s conftest$ac_exeext &&
14704        $as_test_x conftest$ac_exeext; then
14705
14706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14707 }'`
14708 # Check for a 64-bit object if we didn't find anything.
14709 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; }
14710 }'`; fi
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715
14716 fi
14717
14718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14719       conftest$ac_exeext conftest.$ac_ext
14720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14721
14722        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14723         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"
14724        else
14725         if test "$host_cpu" = ia64; then
14726           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14727           allow_undefined_flag_F77="-z nodefs"
14728           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"
14729         else
14730          # Determine the default libpath from the value encoded in an empty executable.
14731          cat >conftest.$ac_ext <<_ACEOF
14732       program main
14733
14734       end
14735 _ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (ac_try="$ac_link"
14738 case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_link") 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } && {
14750          test -z "$ac_f77_werror_flag" ||
14751          test ! -s conftest.err
14752        } && test -s conftest$ac_exeext &&
14753        $as_test_x conftest$ac_exeext; then
14754
14755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14756 }'`
14757 # Check for a 64-bit object if we didn't find anything.
14758 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; }
14759 }'`; fi
14760 else
14761   echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764
14765 fi
14766
14767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14768       conftest$ac_exeext conftest.$ac_ext
14769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14770
14771          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14772           # Warning - without using the other run time loading flags,
14773           # -berok will link without error, but may produce a broken library.
14774           no_undefined_flag_F77=' ${wl}-bernotok'
14775           allow_undefined_flag_F77=' ${wl}-berok'
14776           # Exported symbols can be pulled into shared objects from archives
14777           whole_archive_flag_spec_F77='$convenience'
14778           archive_cmds_need_lc_F77=yes
14779           # This is similar to how AIX traditionally builds its shared libraries.
14780           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'
14781         fi
14782       fi
14783       ;;
14784
14785     amigaos*)
14786       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)'
14787       hardcode_libdir_flag_spec_F77='-L$libdir'
14788       hardcode_minus_L_F77=yes
14789       # see comment about different semantics on the GNU ld section
14790       ld_shlibs_F77=no
14791       ;;
14792
14793     bsdi[45]*)
14794       export_dynamic_flag_spec_F77=-rdynamic
14795       ;;
14796
14797     cygwin* | mingw* | pw32*)
14798       # When not using gcc, we currently assume that we are using
14799       # Microsoft Visual C++.
14800       # hardcode_libdir_flag_spec is actually meaningless, as there is
14801       # no search path for DLLs.
14802       hardcode_libdir_flag_spec_F77=' '
14803       allow_undefined_flag_F77=unsupported
14804       # Tell ltmain to make .lib files, not .a files.
14805       libext=lib
14806       # Tell ltmain to make .dll files, not .so files.
14807       shrext_cmds=".dll"
14808       # FIXME: Setting linknames here is a bad hack.
14809       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14810       # The linker will automatically build a .lib file if we build a DLL.
14811       old_archive_From_new_cmds_F77='true'
14812       # FIXME: Should let the user specify the lib program.
14813       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14814       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14815       enable_shared_with_static_runtimes_F77=yes
14816       ;;
14817
14818     darwin* | rhapsody*)
14819       case $host_os in
14820         rhapsody* | darwin1.[012])
14821          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14822          ;;
14823        *) # Darwin 1.3 on
14824          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14825            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14826          else
14827            case ${MACOSX_DEPLOYMENT_TARGET} in
14828              10.[012])
14829                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14830                ;;
14831              10.*)
14832                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14833                ;;
14834            esac
14835          fi
14836          ;;
14837       esac
14838       archive_cmds_need_lc_F77=no
14839       hardcode_direct_F77=no
14840       hardcode_automatic_F77=yes
14841       hardcode_shlibpath_var_F77=unsupported
14842       whole_archive_flag_spec_F77=''
14843       link_all_deplibs_F77=yes
14844     if test "$GCC" = yes ; then
14845         output_verbose_link_cmd='echo'
14846         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14847       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14848       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14849       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}'
14850       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}'
14851     else
14852       case $cc_basename in
14853         xlc*)
14854          output_verbose_link_cmd='echo'
14855          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14856          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14857           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14858          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}'
14859           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}'
14860           ;;
14861        *)
14862          ld_shlibs_F77=no
14863           ;;
14864       esac
14865     fi
14866       ;;
14867
14868     dgux*)
14869       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14870       hardcode_libdir_flag_spec_F77='-L$libdir'
14871       hardcode_shlibpath_var_F77=no
14872       ;;
14873
14874     freebsd1*)
14875       ld_shlibs_F77=no
14876       ;;
14877
14878     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14879     # support.  Future versions do this automatically, but an explicit c++rt0.o
14880     # does not break anything, and helps significantly (at the cost of a little
14881     # extra space).
14882     freebsd2.2*)
14883       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14884       hardcode_libdir_flag_spec_F77='-R$libdir'
14885       hardcode_direct_F77=yes
14886       hardcode_shlibpath_var_F77=no
14887       ;;
14888
14889     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14890     freebsd2*)
14891       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14892       hardcode_direct_F77=yes
14893       hardcode_minus_L_F77=yes
14894       hardcode_shlibpath_var_F77=no
14895       ;;
14896
14897     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14898     freebsd* | dragonfly*)
14899       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14900       hardcode_libdir_flag_spec_F77='-R$libdir'
14901       hardcode_direct_F77=yes
14902       hardcode_shlibpath_var_F77=no
14903       ;;
14904
14905     hpux9*)
14906       if test "$GCC" = yes; then
14907         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'
14908       else
14909         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'
14910       fi
14911       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14912       hardcode_libdir_separator_F77=:
14913       hardcode_direct_F77=yes
14914
14915       # hardcode_minus_L: Not really in the search PATH,
14916       # but as the default location of the library.
14917       hardcode_minus_L_F77=yes
14918       export_dynamic_flag_spec_F77='${wl}-E'
14919       ;;
14920
14921     hpux10*)
14922       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14923         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14924       else
14925         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14926       fi
14927       if test "$with_gnu_ld" = no; then
14928         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14929         hardcode_libdir_separator_F77=:
14930
14931         hardcode_direct_F77=yes
14932         export_dynamic_flag_spec_F77='${wl}-E'
14933
14934         # hardcode_minus_L: Not really in the search PATH,
14935         # but as the default location of the library.
14936         hardcode_minus_L_F77=yes
14937       fi
14938       ;;
14939
14940     hpux11*)
14941       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14942         case $host_cpu in
14943         hppa*64*)
14944           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14945           ;;
14946         ia64*)
14947           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14948           ;;
14949         *)
14950           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14951           ;;
14952         esac
14953       else
14954         case $host_cpu in
14955         hppa*64*)
14956           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14957           ;;
14958         ia64*)
14959           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14960           ;;
14961         *)
14962           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14963           ;;
14964         esac
14965       fi
14966       if test "$with_gnu_ld" = no; then
14967         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14968         hardcode_libdir_separator_F77=:
14969
14970         case $host_cpu in
14971         hppa*64*|ia64*)
14972           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14973           hardcode_direct_F77=no
14974           hardcode_shlibpath_var_F77=no
14975           ;;
14976         *)
14977           hardcode_direct_F77=yes
14978           export_dynamic_flag_spec_F77='${wl}-E'
14979
14980           # hardcode_minus_L: Not really in the search PATH,
14981           # but as the default location of the library.
14982           hardcode_minus_L_F77=yes
14983           ;;
14984         esac
14985       fi
14986       ;;
14987
14988     irix5* | irix6* | nonstopux*)
14989       if test "$GCC" = yes; then
14990         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'
14991       else
14992         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'
14993         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14994       fi
14995       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14996       hardcode_libdir_separator_F77=:
14997       link_all_deplibs_F77=yes
14998       ;;
14999
15000     netbsd* | netbsdelf*-gnu)
15001       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15002         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15003       else
15004         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15005       fi
15006       hardcode_libdir_flag_spec_F77='-R$libdir'
15007       hardcode_direct_F77=yes
15008       hardcode_shlibpath_var_F77=no
15009       ;;
15010
15011     newsos6)
15012       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013       hardcode_direct_F77=yes
15014       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15015       hardcode_libdir_separator_F77=:
15016       hardcode_shlibpath_var_F77=no
15017       ;;
15018
15019     openbsd*)
15020       hardcode_direct_F77=yes
15021       hardcode_shlibpath_var_F77=no
15022       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15023         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15024         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15025         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15026         export_dynamic_flag_spec_F77='${wl}-E'
15027       else
15028        case $host_os in
15029          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15030            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15031            hardcode_libdir_flag_spec_F77='-R$libdir'
15032            ;;
15033          *)
15034            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15035            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15036            ;;
15037        esac
15038       fi
15039       ;;
15040
15041     os2*)
15042       hardcode_libdir_flag_spec_F77='-L$libdir'
15043       hardcode_minus_L_F77=yes
15044       allow_undefined_flag_F77=unsupported
15045       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'
15046       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15047       ;;
15048
15049     osf3*)
15050       if test "$GCC" = yes; then
15051         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15052         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'
15053       else
15054         allow_undefined_flag_F77=' -expect_unresolved \*'
15055         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'
15056       fi
15057       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15058       hardcode_libdir_separator_F77=:
15059       ;;
15060
15061     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15062       if test "$GCC" = yes; then
15063         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15064         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'
15065         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15066       else
15067         allow_undefined_flag_F77=' -expect_unresolved \*'
15068         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'
15069         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~
15070         $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'
15071
15072         # Both c and cxx compiler support -rpath directly
15073         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15074       fi
15075       hardcode_libdir_separator_F77=:
15076       ;;
15077
15078     solaris*)
15079       no_undefined_flag_F77=' -z text'
15080       if test "$GCC" = yes; then
15081         wlarc='${wl}'
15082         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15084           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15085       else
15086         wlarc=''
15087         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15088         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15089         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15090       fi
15091       hardcode_libdir_flag_spec_F77='-R$libdir'
15092       hardcode_shlibpath_var_F77=no
15093       case $host_os in
15094       solaris2.[0-5] | solaris2.[0-5].*) ;;
15095       *)
15096         # The compiler driver will combine linker options so we
15097         # cannot just pass the convience library names through
15098         # without $wl, iff we do not link with $LD.
15099         # Luckily, gcc supports the same syntax we need for Sun Studio.
15100         # Supported since Solaris 2.6 (maybe 2.5.1?)
15101         case $wlarc in
15102         '')
15103           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15104         *)
15105           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' ;;
15106         esac ;;
15107       esac
15108       link_all_deplibs_F77=yes
15109       ;;
15110
15111     sunos4*)
15112       if test "x$host_vendor" = xsequent; then
15113         # Use $CC to link under sequent, because it throws in some extra .o
15114         # files that make .init and .fini sections work.
15115         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15116       else
15117         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15118       fi
15119       hardcode_libdir_flag_spec_F77='-L$libdir'
15120       hardcode_direct_F77=yes
15121       hardcode_minus_L_F77=yes
15122       hardcode_shlibpath_var_F77=no
15123       ;;
15124
15125     sysv4)
15126       case $host_vendor in
15127         sni)
15128           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15129           hardcode_direct_F77=yes # is this really true???
15130         ;;
15131         siemens)
15132           ## LD is ld it makes a PLAMLIB
15133           ## CC just makes a GrossModule.
15134           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15135           reload_cmds_F77='$CC -r -o $output$reload_objs'
15136           hardcode_direct_F77=no
15137         ;;
15138         motorola)
15139           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15140           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15141         ;;
15142       esac
15143       runpath_var='LD_RUN_PATH'
15144       hardcode_shlibpath_var_F77=no
15145       ;;
15146
15147     sysv4.3*)
15148       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149       hardcode_shlibpath_var_F77=no
15150       export_dynamic_flag_spec_F77='-Bexport'
15151       ;;
15152
15153     sysv4*MP*)
15154       if test -d /usr/nec; then
15155         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15156         hardcode_shlibpath_var_F77=no
15157         runpath_var=LD_RUN_PATH
15158         hardcode_runpath_var=yes
15159         ld_shlibs_F77=yes
15160       fi
15161       ;;
15162
15163     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15164       no_undefined_flag_F77='${wl}-z,text'
15165       archive_cmds_need_lc_F77=no
15166       hardcode_shlibpath_var_F77=no
15167       runpath_var='LD_RUN_PATH'
15168
15169       if test "$GCC" = yes; then
15170         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15172       else
15173         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15175       fi
15176       ;;
15177
15178     sysv5* | sco3.2v5* | sco5v6*)
15179       # Note: We can NOT use -z defs as we might desire, because we do not
15180       # link with -lc, and that would cause any symbols used from libc to
15181       # always be unresolved, which means just about no library would
15182       # ever link correctly.  If we're not using GNU ld we use -z text
15183       # though, which does catch some bad symbols but isn't as heavy-handed
15184       # as -z defs.
15185       no_undefined_flag_F77='${wl}-z,text'
15186       allow_undefined_flag_F77='${wl}-z,nodefs'
15187       archive_cmds_need_lc_F77=no
15188       hardcode_shlibpath_var_F77=no
15189       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15190       hardcode_libdir_separator_F77=':'
15191       link_all_deplibs_F77=yes
15192       export_dynamic_flag_spec_F77='${wl}-Bexport'
15193       runpath_var='LD_RUN_PATH'
15194
15195       if test "$GCC" = yes; then
15196         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15198       else
15199         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15200         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201       fi
15202       ;;
15203
15204     uts4*)
15205       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206       hardcode_libdir_flag_spec_F77='-L$libdir'
15207       hardcode_shlibpath_var_F77=no
15208       ;;
15209
15210     *)
15211       ld_shlibs_F77=no
15212       ;;
15213     esac
15214   fi
15215
15216 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15217 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15218 test "$ld_shlibs_F77" = no && can_build_shared=no
15219
15220 #
15221 # Do we need to explicitly link libc?
15222 #
15223 case "x$archive_cmds_need_lc_F77" in
15224 x|xyes)
15225   # Assume -lc should be added
15226   archive_cmds_need_lc_F77=yes
15227
15228   if test "$enable_shared" = yes && test "$GCC" = yes; then
15229     case $archive_cmds_F77 in
15230     *'~'*)
15231       # FIXME: we may have to deal with multi-command sequences.
15232       ;;
15233     '$CC '*)
15234       # Test whether the compiler implicitly links with -lc since on some
15235       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15236       # to ld, don't add -lc before -lgcc.
15237       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15239       $rm conftest*
15240       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15241
15242       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15243   (eval $ac_compile) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } 2>conftest.err; then
15247         soname=conftest
15248         lib=conftest
15249         libobjs=conftest.$ac_objext
15250         deplibs=
15251         wl=$lt_prog_compiler_wl_F77
15252         pic_flag=$lt_prog_compiler_pic_F77
15253         compiler_flags=-v
15254         linker_flags=-v
15255         verstring=
15256         output_objdir=.
15257         libname=conftest
15258         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15259         allow_undefined_flag_F77=
15260         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15261   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }
15265         then
15266           archive_cmds_need_lc_F77=no
15267         else
15268           archive_cmds_need_lc_F77=yes
15269         fi
15270         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15271       else
15272         cat conftest.err 1>&5
15273       fi
15274       $rm conftest*
15275       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15276 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15277       ;;
15278     esac
15279   fi
15280   ;;
15281 esac
15282
15283 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15285 library_names_spec=
15286 libname_spec='lib$name'
15287 soname_spec=
15288 shrext_cmds=".so"
15289 postinstall_cmds=
15290 postuninstall_cmds=
15291 finish_cmds=
15292 finish_eval=
15293 shlibpath_var=
15294 shlibpath_overrides_runpath=unknown
15295 version_type=none
15296 dynamic_linker="$host_os ld.so"
15297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15298 if test "$GCC" = yes; then
15299   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15300   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15301     # if the path contains ";" then we assume it to be the separator
15302     # otherwise default to the standard path separator (i.e. ":") - it is
15303     # assumed that no part of a normal pathname contains ";" but that should
15304     # okay in the real world where ";" in dirpaths is itself problematic.
15305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15306   else
15307     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15308   fi
15309 else
15310   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15311 fi
15312 need_lib_prefix=unknown
15313 hardcode_into_libs=no
15314
15315 # when you set need_version to no, make sure it does not cause -set_version
15316 # flags to be left without arguments
15317 need_version=unknown
15318
15319 case $host_os in
15320 aix3*)
15321   version_type=linux
15322   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323   shlibpath_var=LIBPATH
15324
15325   # AIX 3 has no versioning support, so we append a major version to the name.
15326   soname_spec='${libname}${release}${shared_ext}$major'
15327   ;;
15328
15329 aix4* | aix5*)
15330   version_type=linux
15331   need_lib_prefix=no
15332   need_version=no
15333   hardcode_into_libs=yes
15334   if test "$host_cpu" = ia64; then
15335     # AIX 5 supports IA64
15336     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337     shlibpath_var=LD_LIBRARY_PATH
15338   else
15339     # With GCC up to 2.95.x, collect2 would create an import file
15340     # for dependence libraries.  The import file would start with
15341     # the line `#! .'.  This would cause the generated library to
15342     # depend on `.', always an invalid library.  This was fixed in
15343     # development snapshots of GCC prior to 3.0.
15344     case $host_os in
15345       aix4 | aix4.[01] | aix4.[01].*)
15346       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15347            echo ' yes '
15348            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15349         :
15350       else
15351         can_build_shared=no
15352       fi
15353       ;;
15354     esac
15355     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356     # soname into executable. Probably we can add versioning support to
15357     # collect2, so additional links can be useful in future.
15358     if test "$aix_use_runtimelinking" = yes; then
15359       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360       # instead of lib<name>.a to let people know that these are not
15361       # typical AIX shared libraries.
15362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363     else
15364       # We preserve .a as extension for shared libraries through AIX4.2
15365       # and later when we are not doing run time linking.
15366       library_names_spec='${libname}${release}.a $libname.a'
15367       soname_spec='${libname}${release}${shared_ext}$major'
15368     fi
15369     shlibpath_var=LIBPATH
15370   fi
15371   ;;
15372
15373 amigaos*)
15374   library_names_spec='$libname.ixlibrary $libname.a'
15375   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15376   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'
15377   ;;
15378
15379 beos*)
15380   library_names_spec='${libname}${shared_ext}'
15381   dynamic_linker="$host_os ld.so"
15382   shlibpath_var=LIBRARY_PATH
15383   ;;
15384
15385 bsdi[45]*)
15386   version_type=linux
15387   need_version=no
15388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389   soname_spec='${libname}${release}${shared_ext}$major'
15390   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15391   shlibpath_var=LD_LIBRARY_PATH
15392   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15393   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15394   # the default ld.so.conf also contains /usr/contrib/lib and
15395   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15396   # libtool to hard-code these into programs
15397   ;;
15398
15399 cygwin* | mingw* | pw32*)
15400   version_type=windows
15401   shrext_cmds=".dll"
15402   need_version=no
15403   need_lib_prefix=no
15404
15405   case $GCC,$host_os in
15406   yes,cygwin* | yes,mingw* | yes,pw32*)
15407     library_names_spec='$libname.dll.a'
15408     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409     postinstall_cmds='base_file=`basename \${file}`~
15410       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15411       dldir=$destdir/`dirname \$dlpath`~
15412       test -d \$dldir || mkdir -p \$dldir~
15413       $install_prog $dir/$dlname \$dldir/$dlname~
15414       chmod a+x \$dldir/$dlname'
15415     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15416       dlpath=$dir/\$dldll~
15417        $rm \$dlpath'
15418     shlibpath_overrides_runpath=yes
15419
15420     case $host_os in
15421     cygwin*)
15422       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15423       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15425       ;;
15426     mingw*)
15427       # MinGW DLLs use traditional 'lib' prefix
15428       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15430       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15431         # It is most probably a Windows format PATH printed by
15432         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15433         # path with ; separators, and with drive letters. We can handle the
15434         # drive letters (cygwin fileutils understands them), so leave them,
15435         # especially as we might pass files found there to a mingw objdump,
15436         # which wouldn't understand a cygwinified path. Ahh.
15437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15438       else
15439         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15440       fi
15441       ;;
15442     pw32*)
15443       # pw32 DLLs use 'pw' prefix rather than 'lib'
15444       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15445       ;;
15446     esac
15447     ;;
15448
15449   *)
15450     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15451     ;;
15452   esac
15453   dynamic_linker='Win32 ld.exe'
15454   # FIXME: first we should search . and the directory the executable is in
15455   shlibpath_var=PATH
15456   ;;
15457
15458 darwin* | rhapsody*)
15459   dynamic_linker="$host_os dyld"
15460   version_type=darwin
15461   need_lib_prefix=no
15462   need_version=no
15463   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15464   soname_spec='${libname}${release}${major}$shared_ext'
15465   shlibpath_overrides_runpath=yes
15466   shlibpath_var=DYLD_LIBRARY_PATH
15467   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15468   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15469   if test "$GCC" = yes; then
15470     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"`
15471   else
15472     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15473   fi
15474   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15475   ;;
15476
15477 dgux*)
15478   version_type=linux
15479   need_lib_prefix=no
15480   need_version=no
15481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   shlibpath_var=LD_LIBRARY_PATH
15484   ;;
15485
15486 freebsd1*)
15487   dynamic_linker=no
15488   ;;
15489
15490 freebsd* | dragonfly*)
15491   # DragonFly does not have aout.  When/if they implement a new
15492   # versioning mechanism, adjust this.
15493   if test -x /usr/bin/objformat; then
15494     objformat=`/usr/bin/objformat`
15495   else
15496     case $host_os in
15497     freebsd[123]*) objformat=aout ;;
15498     *) objformat=elf ;;
15499     esac
15500   fi
15501   version_type=freebsd-$objformat
15502   case $version_type in
15503     freebsd-elf*)
15504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15505       need_version=no
15506       need_lib_prefix=no
15507       ;;
15508     freebsd-*)
15509       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15510       need_version=yes
15511       ;;
15512   esac
15513   shlibpath_var=LD_LIBRARY_PATH
15514   case $host_os in
15515   freebsd2*)
15516     shlibpath_overrides_runpath=yes
15517     ;;
15518   freebsd3.[01]* | freebsdelf3.[01]*)
15519     shlibpath_overrides_runpath=yes
15520     hardcode_into_libs=yes
15521     ;;
15522   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15523   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15524     shlibpath_overrides_runpath=no
15525     hardcode_into_libs=yes
15526     ;;
15527   freebsd*) # from 4.6 on
15528     shlibpath_overrides_runpath=yes
15529     hardcode_into_libs=yes
15530     ;;
15531   esac
15532   ;;
15533
15534 gnu*)
15535   version_type=linux
15536   need_lib_prefix=no
15537   need_version=no
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   hardcode_into_libs=yes
15542   ;;
15543
15544 hpux9* | hpux10* | hpux11*)
15545   # Give a soname corresponding to the major version so that dld.sl refuses to
15546   # link against other versions.
15547   version_type=sunos
15548   need_lib_prefix=no
15549   need_version=no
15550   case $host_cpu in
15551   ia64*)
15552     shrext_cmds='.so'
15553     hardcode_into_libs=yes
15554     dynamic_linker="$host_os dld.so"
15555     shlibpath_var=LD_LIBRARY_PATH
15556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558     soname_spec='${libname}${release}${shared_ext}$major'
15559     if test "X$HPUX_IA64_MODE" = X32; then
15560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15561     else
15562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15563     fi
15564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15565     ;;
15566    hppa*64*)
15567      shrext_cmds='.sl'
15568      hardcode_into_libs=yes
15569      dynamic_linker="$host_os dld.sl"
15570      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15571      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15572      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573      soname_spec='${libname}${release}${shared_ext}$major'
15574      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15575      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15576      ;;
15577    *)
15578     shrext_cmds='.sl'
15579     dynamic_linker="$host_os dld.sl"
15580     shlibpath_var=SHLIB_PATH
15581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583     soname_spec='${libname}${release}${shared_ext}$major'
15584     ;;
15585   esac
15586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15587   postinstall_cmds='chmod 555 $lib'
15588   ;;
15589
15590 interix3*)
15591   version_type=linux
15592   need_lib_prefix=no
15593   need_version=no
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15595   soname_spec='${libname}${release}${shared_ext}$major'
15596   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15597   shlibpath_var=LD_LIBRARY_PATH
15598   shlibpath_overrides_runpath=no
15599   hardcode_into_libs=yes
15600   ;;
15601
15602 irix5* | irix6* | nonstopux*)
15603   case $host_os in
15604     nonstopux*) version_type=nonstopux ;;
15605     *)
15606         if test "$lt_cv_prog_gnu_ld" = yes; then
15607                 version_type=linux
15608         else
15609                 version_type=irix
15610         fi ;;
15611   esac
15612   need_lib_prefix=no
15613   need_version=no
15614   soname_spec='${libname}${release}${shared_ext}$major'
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15616   case $host_os in
15617   irix5* | nonstopux*)
15618     libsuff= shlibsuff=
15619     ;;
15620   *)
15621     case $LD in # libtool.m4 will add one of these switches to LD
15622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15623       libsuff= shlibsuff= libmagic=32-bit;;
15624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15625       libsuff=32 shlibsuff=N32 libmagic=N32;;
15626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15628     *) libsuff= shlibsuff= libmagic=never-match;;
15629     esac
15630     ;;
15631   esac
15632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15633   shlibpath_overrides_runpath=no
15634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15636   hardcode_into_libs=yes
15637   ;;
15638
15639 # No shared lib support for Linux oldld, aout, or coff.
15640 linux*oldld* | linux*aout* | linux*coff*)
15641   dynamic_linker=no
15642   ;;
15643
15644 # This must be Linux ELF.
15645 linux* | k*bsd*-gnu)
15646   version_type=linux
15647   need_lib_prefix=no
15648   need_version=no
15649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650   soname_spec='${libname}${release}${shared_ext}$major'
15651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15652   shlibpath_var=LD_LIBRARY_PATH
15653   shlibpath_overrides_runpath=no
15654   # This implies no fast_install, which is unacceptable.
15655   # Some rework will be needed to allow for fast_install
15656   # before this can be enabled.
15657   hardcode_into_libs=yes
15658
15659   # Append ld.so.conf contents to the search path
15660   if test -f /etc/ld.so.conf; then
15661     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' ' '`
15662     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15663   fi
15664
15665   # We used to test for /lib/ld.so.1 and disable shared libraries on
15666   # powerpc, because MkLinux only supported shared libraries with the
15667   # GNU dynamic linker.  Since this was broken with cross compilers,
15668   # most powerpc-linux boxes support dynamic linking these days and
15669   # people can always --disable-shared, the test was removed, and we
15670   # assume the GNU/Linux dynamic linker is in use.
15671   dynamic_linker='GNU/Linux ld.so'
15672   ;;
15673
15674 netbsdelf*-gnu)
15675   version_type=linux
15676   need_lib_prefix=no
15677   need_version=no
15678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15679   soname_spec='${libname}${release}${shared_ext}$major'
15680   shlibpath_var=LD_LIBRARY_PATH
15681   shlibpath_overrides_runpath=no
15682   hardcode_into_libs=yes
15683   dynamic_linker='NetBSD ld.elf_so'
15684   ;;
15685
15686 netbsd*)
15687   version_type=sunos
15688   need_lib_prefix=no
15689   need_version=no
15690   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15692     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15693     dynamic_linker='NetBSD (a.out) ld.so'
15694   else
15695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15696     soname_spec='${libname}${release}${shared_ext}$major'
15697     dynamic_linker='NetBSD ld.elf_so'
15698   fi
15699   shlibpath_var=LD_LIBRARY_PATH
15700   shlibpath_overrides_runpath=yes
15701   hardcode_into_libs=yes
15702   ;;
15703
15704 newsos6)
15705   version_type=linux
15706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707   shlibpath_var=LD_LIBRARY_PATH
15708   shlibpath_overrides_runpath=yes
15709   ;;
15710
15711 nto-qnx*)
15712   version_type=linux
15713   need_lib_prefix=no
15714   need_version=no
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716   soname_spec='${libname}${release}${shared_ext}$major'
15717   shlibpath_var=LD_LIBRARY_PATH
15718   shlibpath_overrides_runpath=yes
15719   ;;
15720
15721 openbsd*)
15722   version_type=sunos
15723   sys_lib_dlsearch_path_spec="/usr/lib"
15724   need_lib_prefix=no
15725   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15726   case $host_os in
15727     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15728     *)                         need_version=no  ;;
15729   esac
15730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15732   shlibpath_var=LD_LIBRARY_PATH
15733   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15734     case $host_os in
15735       openbsd2.[89] | openbsd2.[89].*)
15736         shlibpath_overrides_runpath=no
15737         ;;
15738       *)
15739         shlibpath_overrides_runpath=yes
15740         ;;
15741       esac
15742   else
15743     shlibpath_overrides_runpath=yes
15744   fi
15745   ;;
15746
15747 os2*)
15748   libname_spec='$name'
15749   shrext_cmds=".dll"
15750   need_lib_prefix=no
15751   library_names_spec='$libname${shared_ext} $libname.a'
15752   dynamic_linker='OS/2 ld.exe'
15753   shlibpath_var=LIBPATH
15754   ;;
15755
15756 osf3* | osf4* | osf5*)
15757   version_type=osf
15758   need_lib_prefix=no
15759   need_version=no
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15764   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15765   ;;
15766
15767 solaris*)
15768   version_type=linux
15769   need_lib_prefix=no
15770   need_version=no
15771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772   soname_spec='${libname}${release}${shared_ext}$major'
15773   shlibpath_var=LD_LIBRARY_PATH
15774   shlibpath_overrides_runpath=yes
15775   hardcode_into_libs=yes
15776   # ldd complains unless libraries are executable
15777   postinstall_cmds='chmod +x $lib'
15778   ;;
15779
15780 sunos4*)
15781   version_type=sunos
15782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15783   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15784   shlibpath_var=LD_LIBRARY_PATH
15785   shlibpath_overrides_runpath=yes
15786   if test "$with_gnu_ld" = yes; then
15787     need_lib_prefix=no
15788   fi
15789   need_version=yes
15790   ;;
15791
15792 sysv4 | sysv4.3*)
15793   version_type=linux
15794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   shlibpath_var=LD_LIBRARY_PATH
15797   case $host_vendor in
15798     sni)
15799       shlibpath_overrides_runpath=no
15800       need_lib_prefix=no
15801       export_dynamic_flag_spec='${wl}-Blargedynsym'
15802       runpath_var=LD_RUN_PATH
15803       ;;
15804     siemens)
15805       need_lib_prefix=no
15806       ;;
15807     motorola)
15808       need_lib_prefix=no
15809       need_version=no
15810       shlibpath_overrides_runpath=no
15811       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15812       ;;
15813   esac
15814   ;;
15815
15816 sysv4*MP*)
15817   if test -d /usr/nec ;then
15818     version_type=linux
15819     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15820     soname_spec='$libname${shared_ext}.$major'
15821     shlibpath_var=LD_LIBRARY_PATH
15822   fi
15823   ;;
15824
15825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15826   version_type=freebsd-elf
15827   need_lib_prefix=no
15828   need_version=no
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   hardcode_into_libs=yes
15833   if test "$with_gnu_ld" = yes; then
15834     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15835     shlibpath_overrides_runpath=no
15836   else
15837     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15838     shlibpath_overrides_runpath=yes
15839     case $host_os in
15840       sco3.2v5*)
15841         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15842         ;;
15843     esac
15844   fi
15845   sys_lib_dlsearch_path_spec='/usr/lib'
15846   ;;
15847
15848 uts4*)
15849   version_type=linux
15850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851   soname_spec='${libname}${release}${shared_ext}$major'
15852   shlibpath_var=LD_LIBRARY_PATH
15853   ;;
15854
15855 *)
15856   dynamic_linker=no
15857   ;;
15858 esac
15859 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15860 echo "${ECHO_T}$dynamic_linker" >&6; }
15861 test "$dynamic_linker" = no && can_build_shared=no
15862
15863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15864 if test "$GCC" = yes; then
15865   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15866 fi
15867
15868 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15870 hardcode_action_F77=
15871 if test -n "$hardcode_libdir_flag_spec_F77" || \
15872    test -n "$runpath_var_F77" || \
15873    test "X$hardcode_automatic_F77" = "Xyes" ; then
15874
15875   # We can hardcode non-existant directories.
15876   if test "$hardcode_direct_F77" != no &&
15877      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15878      # have to relink, otherwise we might link with an installed library
15879      # when we should be linking with a yet-to-be-installed one
15880      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15881      test "$hardcode_minus_L_F77" != no; then
15882     # Linking always hardcodes the temporary library directory.
15883     hardcode_action_F77=relink
15884   else
15885     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15886     hardcode_action_F77=immediate
15887   fi
15888 else
15889   # We cannot hardcode anything, or else we can only hardcode existing
15890   # directories.
15891   hardcode_action_F77=unsupported
15892 fi
15893 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15894 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15895
15896 if test "$hardcode_action_F77" = relink; then
15897   # Fast installation is not supported
15898   enable_fast_install=no
15899 elif test "$shlibpath_overrides_runpath" = yes ||
15900      test "$enable_shared" = no; then
15901   # Fast installation is not necessary
15902   enable_fast_install=needless
15903 fi
15904
15905
15906 # The else clause should only fire when bootstrapping the
15907 # libtool distribution, otherwise you forgot to ship ltmain.sh
15908 # with your package, and you will get complaints that there are
15909 # no rules to generate ltmain.sh.
15910 if test -f "$ltmain"; then
15911   # See if we are running on zsh, and set the options which allow our commands through
15912   # without removal of \ escapes.
15913   if test -n "${ZSH_VERSION+set}" ; then
15914     setopt NO_GLOB_SUBST
15915   fi
15916   # Now quote all the things that may contain metacharacters while being
15917   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15918   # variables and quote the copies for generation of the libtool script.
15919   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15920     SED SHELL STRIP \
15921     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15922     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15923     deplibs_check_method reload_flag reload_cmds need_locks \
15924     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15925     lt_cv_sys_global_symbol_to_c_name_address \
15926     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15927     old_postinstall_cmds old_postuninstall_cmds \
15928     compiler_F77 \
15929     CC_F77 \
15930     LD_F77 \
15931     lt_prog_compiler_wl_F77 \
15932     lt_prog_compiler_pic_F77 \
15933     lt_prog_compiler_static_F77 \
15934     lt_prog_compiler_no_builtin_flag_F77 \
15935     export_dynamic_flag_spec_F77 \
15936     thread_safe_flag_spec_F77 \
15937     whole_archive_flag_spec_F77 \
15938     enable_shared_with_static_runtimes_F77 \
15939     old_archive_cmds_F77 \
15940     old_archive_from_new_cmds_F77 \
15941     predep_objects_F77 \
15942     postdep_objects_F77 \
15943     predeps_F77 \
15944     postdeps_F77 \
15945     compiler_lib_search_path_F77 \
15946     archive_cmds_F77 \
15947     archive_expsym_cmds_F77 \
15948     postinstall_cmds_F77 \
15949     postuninstall_cmds_F77 \
15950     old_archive_from_expsyms_cmds_F77 \
15951     allow_undefined_flag_F77 \
15952     no_undefined_flag_F77 \
15953     export_symbols_cmds_F77 \
15954     hardcode_libdir_flag_spec_F77 \
15955     hardcode_libdir_flag_spec_ld_F77 \
15956     hardcode_libdir_separator_F77 \
15957     hardcode_automatic_F77 \
15958     module_cmds_F77 \
15959     module_expsym_cmds_F77 \
15960     lt_cv_prog_compiler_c_o_F77 \
15961     exclude_expsyms_F77 \
15962     include_expsyms_F77; do
15963
15964     case $var in
15965     old_archive_cmds_F77 | \
15966     old_archive_from_new_cmds_F77 | \
15967     archive_cmds_F77 | \
15968     archive_expsym_cmds_F77 | \
15969     module_cmds_F77 | \
15970     module_expsym_cmds_F77 | \
15971     old_archive_from_expsyms_cmds_F77 | \
15972     export_symbols_cmds_F77 | \
15973     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15974     postinstall_cmds | postuninstall_cmds | \
15975     old_postinstall_cmds | old_postuninstall_cmds | \
15976     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15977       # Double-quote double-evaled strings.
15978       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15979       ;;
15980     *)
15981       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15982       ;;
15983     esac
15984   done
15985
15986   case $lt_echo in
15987   *'\$0 --fallback-echo"')
15988     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15989     ;;
15990   esac
15991
15992 cfgfile="$ofile"
15993
15994   cat <<__EOF__ >> "$cfgfile"
15995 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15996
15997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15998
15999 # Shell to use when invoking shell scripts.
16000 SHELL=$lt_SHELL
16001
16002 # Whether or not to build shared libraries.
16003 build_libtool_libs=$enable_shared
16004
16005 # Whether or not to build static libraries.
16006 build_old_libs=$enable_static
16007
16008 # Whether or not to add -lc for building shared libraries.
16009 build_libtool_need_lc=$archive_cmds_need_lc_F77
16010
16011 # Whether or not to disallow shared libs when runtime libs are static
16012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16013
16014 # Whether or not to optimize for fast installation.
16015 fast_install=$enable_fast_install
16016
16017 # The host system.
16018 host_alias=$host_alias
16019 host=$host
16020 host_os=$host_os
16021
16022 # The build system.
16023 build_alias=$build_alias
16024 build=$build
16025 build_os=$build_os
16026
16027 # An echo program that does not interpret backslashes.
16028 echo=$lt_echo
16029
16030 # The archiver.
16031 AR=$lt_AR
16032 AR_FLAGS=$lt_AR_FLAGS
16033
16034 # A C compiler.
16035 LTCC=$lt_LTCC
16036
16037 # LTCC compiler flags.
16038 LTCFLAGS=$lt_LTCFLAGS
16039
16040 # A language-specific compiler.
16041 CC=$lt_compiler_F77
16042
16043 # Is the compiler the GNU C compiler?
16044 with_gcc=$GCC_F77
16045
16046 # An ERE matcher.
16047 EGREP=$lt_EGREP
16048
16049 # The linker used to build libraries.
16050 LD=$lt_LD_F77
16051
16052 # Whether we need hard or soft links.
16053 LN_S=$lt_LN_S
16054
16055 # A BSD-compatible nm program.
16056 NM=$lt_NM
16057
16058 # A symbol stripping program
16059 STRIP=$lt_STRIP
16060
16061 # Used to examine libraries when file_magic_cmd begins "file"
16062 MAGIC_CMD=$MAGIC_CMD
16063
16064 # Used on cygwin: DLL creation program.
16065 DLLTOOL="$DLLTOOL"
16066
16067 # Used on cygwin: object dumper.
16068 OBJDUMP="$OBJDUMP"
16069
16070 # Used on cygwin: assembler.
16071 AS="$AS"
16072
16073 # The name of the directory that contains temporary libtool files.
16074 objdir=$objdir
16075
16076 # How to create reloadable object files.
16077 reload_flag=$lt_reload_flag
16078 reload_cmds=$lt_reload_cmds
16079
16080 # How to pass a linker flag through the compiler.
16081 wl=$lt_lt_prog_compiler_wl_F77
16082
16083 # Object file suffix (normally "o").
16084 objext="$ac_objext"
16085
16086 # Old archive suffix (normally "a").
16087 libext="$libext"
16088
16089 # Shared library suffix (normally ".so").
16090 shrext_cmds='$shrext_cmds'
16091
16092 # Executable file suffix (normally "").
16093 exeext="$exeext"
16094
16095 # Additional compiler flags for building library objects.
16096 pic_flag=$lt_lt_prog_compiler_pic_F77
16097 pic_mode=$pic_mode
16098
16099 # What is the maximum length of a command?
16100 max_cmd_len=$lt_cv_sys_max_cmd_len
16101
16102 # Does compiler simultaneously support -c and -o options?
16103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16104
16105 # Must we lock files when doing compilation?
16106 need_locks=$lt_need_locks
16107
16108 # Do we need the lib prefix for modules?
16109 need_lib_prefix=$need_lib_prefix
16110
16111 # Do we need a version for libraries?
16112 need_version=$need_version
16113
16114 # Whether dlopen is supported.
16115 dlopen_support=$enable_dlopen
16116
16117 # Whether dlopen of programs is supported.
16118 dlopen_self=$enable_dlopen_self
16119
16120 # Whether dlopen of statically linked programs is supported.
16121 dlopen_self_static=$enable_dlopen_self_static
16122
16123 # Compiler flag to prevent dynamic linking.
16124 link_static_flag=$lt_lt_prog_compiler_static_F77
16125
16126 # Compiler flag to turn off builtin functions.
16127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16128
16129 # Compiler flag to allow reflexive dlopens.
16130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16131
16132 # Compiler flag to generate shared objects directly from archives.
16133 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16134
16135 # Compiler flag to generate thread-safe objects.
16136 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16137
16138 # Library versioning type.
16139 version_type=$version_type
16140
16141 # Format of library name prefix.
16142 libname_spec=$lt_libname_spec
16143
16144 # List of archive names.  First name is the real one, the rest are links.
16145 # The last name is the one that the linker finds with -lNAME.
16146 library_names_spec=$lt_library_names_spec
16147
16148 # The coded name of the library, if different from the real name.
16149 soname_spec=$lt_soname_spec
16150
16151 # Commands used to build and install an old-style archive.
16152 RANLIB=$lt_RANLIB
16153 old_archive_cmds=$lt_old_archive_cmds_F77
16154 old_postinstall_cmds=$lt_old_postinstall_cmds
16155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16156
16157 # Create an old-style archive from a shared archive.
16158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16159
16160 # Create a temporary old-style archive to link instead of a shared archive.
16161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16162
16163 # Commands used to build and install a shared archive.
16164 archive_cmds=$lt_archive_cmds_F77
16165 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16166 postinstall_cmds=$lt_postinstall_cmds
16167 postuninstall_cmds=$lt_postuninstall_cmds
16168
16169 # Commands used to build a loadable module (assumed same as above if empty)
16170 module_cmds=$lt_module_cmds_F77
16171 module_expsym_cmds=$lt_module_expsym_cmds_F77
16172
16173 # Commands to strip libraries.
16174 old_striplib=$lt_old_striplib
16175 striplib=$lt_striplib
16176
16177 # Dependencies to place before the objects being linked to create a
16178 # shared library.
16179 predep_objects=$lt_predep_objects_F77
16180
16181 # Dependencies to place after the objects being linked to create a
16182 # shared library.
16183 postdep_objects=$lt_postdep_objects_F77
16184
16185 # Dependencies to place before the objects being linked to create a
16186 # shared library.
16187 predeps=$lt_predeps_F77
16188
16189 # Dependencies to place after the objects being linked to create a
16190 # shared library.
16191 postdeps=$lt_postdeps_F77
16192
16193 # The library search path used internally by the compiler when linking
16194 # a shared library.
16195 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16196
16197 # Method to check whether dependent libraries are shared objects.
16198 deplibs_check_method=$lt_deplibs_check_method
16199
16200 # Command to use when deplibs_check_method == file_magic.
16201 file_magic_cmd=$lt_file_magic_cmd
16202
16203 # Flag that allows shared libraries with undefined symbols to be built.
16204 allow_undefined_flag=$lt_allow_undefined_flag_F77
16205
16206 # Flag that forces no undefined symbols.
16207 no_undefined_flag=$lt_no_undefined_flag_F77
16208
16209 # Commands used to finish a libtool library installation in a directory.
16210 finish_cmds=$lt_finish_cmds
16211
16212 # Same as above, but a single script fragment to be evaled but not shown.
16213 finish_eval=$lt_finish_eval
16214
16215 # Take the output of nm and produce a listing of raw symbols and C names.
16216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16217
16218 # Transform the output of nm in a proper C declaration
16219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16220
16221 # Transform the output of nm in a C name address pair
16222 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16223
16224 # This is the shared library runtime path variable.
16225 runpath_var=$runpath_var
16226
16227 # This is the shared library path variable.
16228 shlibpath_var=$shlibpath_var
16229
16230 # Is shlibpath searched before the hard-coded library search path?
16231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16232
16233 # How to hardcode a shared library path into an executable.
16234 hardcode_action=$hardcode_action_F77
16235
16236 # Whether we should hardcode library paths into libraries.
16237 hardcode_into_libs=$hardcode_into_libs
16238
16239 # Flag to hardcode \$libdir into a binary during linking.
16240 # This must work even if \$libdir does not exist.
16241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16242
16243 # If ld is used when linking, flag to hardcode \$libdir into
16244 # a binary during linking. This must work even if \$libdir does
16245 # not exist.
16246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16247
16248 # Whether we need a single -rpath flag with a separated argument.
16249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16250
16251 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16252 # resulting binary.
16253 hardcode_direct=$hardcode_direct_F77
16254
16255 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_minus_L=$hardcode_minus_L_F77
16258
16259 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16260 # the resulting binary.
16261 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16262
16263 # Set to yes if building a shared library automatically hardcodes DIR into the library
16264 # and all subsequent libraries and executables linked against it.
16265 hardcode_automatic=$hardcode_automatic_F77
16266
16267 # Variables whose values should be saved in libtool wrapper scripts and
16268 # restored at relink time.
16269 variables_saved_for_relink="$variables_saved_for_relink"
16270
16271 # Whether libtool must link a program against all its dependency libraries.
16272 link_all_deplibs=$link_all_deplibs_F77
16273
16274 # Compile-time system search path for libraries
16275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16276
16277 # Run-time system search path for libraries
16278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16279
16280 # Fix the shell variable \$srcfile for the compiler.
16281 fix_srcfile_path="$fix_srcfile_path_F77"
16282
16283 # Set to yes if exported symbols are required.
16284 always_export_symbols=$always_export_symbols_F77
16285
16286 # The commands to list exported symbols.
16287 export_symbols_cmds=$lt_export_symbols_cmds_F77
16288
16289 # The commands to extract the exported symbol list from a shared archive.
16290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16291
16292 # Symbols that should not be listed in the preloaded symbols.
16293 exclude_expsyms=$lt_exclude_expsyms_F77
16294
16295 # Symbols that must always be exported.
16296 include_expsyms=$lt_include_expsyms_F77
16297
16298 # ### END LIBTOOL TAG CONFIG: $tagname
16299
16300 __EOF__
16301
16302
16303 else
16304   # If there is no Makefile yet, we rely on a make rule to execute
16305   # `config.status --recheck' to rerun these tests and create the
16306   # libtool script then.
16307   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16308   if test -f "$ltmain_in"; then
16309     test -f Makefile && make "$ltmain"
16310   fi
16311 fi
16312
16313
16314 ac_ext=c
16315 ac_cpp='$CPP $CPPFLAGS'
16316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16319
16320 CC="$lt_save_CC"
16321
16322         else
16323           tagname=""
16324         fi
16325         ;;
16326
16327       GCJ)
16328         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16329
16330
16331 # Source file extension for Java test sources.
16332 ac_ext=java
16333
16334 # Object file extension for compiled Java test sources.
16335 objext=o
16336 objext_GCJ=$objext
16337
16338 # Code to be used in simple compile tests
16339 lt_simple_compile_test_code="class foo {}\n"
16340
16341 # Code to be used in simple link tests
16342 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16343
16344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16345
16346 # If no C compiler was specified, use CC.
16347 LTCC=${LTCC-"$CC"}
16348
16349 # If no C compiler flags were specified, use CFLAGS.
16350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16351
16352 # Allow CC to be a program name with arguments.
16353 compiler=$CC
16354
16355
16356 # save warnings/boilerplate of simple test code
16357 ac_outfile=conftest.$ac_objext
16358 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16360 _lt_compiler_boilerplate=`cat conftest.err`
16361 $rm conftest*
16362
16363 ac_outfile=conftest.$ac_objext
16364 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_linker_boilerplate=`cat conftest.err`
16367 $rm conftest*
16368
16369
16370 # Allow CC to be a program name with arguments.
16371 lt_save_CC="$CC"
16372 CC=${GCJ-"gcj"}
16373 compiler=$CC
16374 compiler_GCJ=$CC
16375 for cc_temp in $compiler""; do
16376   case $cc_temp in
16377     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16378     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16379     \-*) ;;
16380     *) break;;
16381   esac
16382 done
16383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16384
16385
16386 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16387 archive_cmds_need_lc_GCJ=no
16388
16389 old_archive_cmds_GCJ=$old_archive_cmds
16390
16391
16392 lt_prog_compiler_no_builtin_flag_GCJ=
16393
16394 if test "$GCC" = yes; then
16395   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16396
16397
16398 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16399 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16400 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   lt_cv_prog_compiler_rtti_exceptions=no
16404   ac_outfile=conftest.$ac_objext
16405    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16406    lt_compiler_flag="-fno-rtti -fno-exceptions"
16407    # Insert the option either (1) after the last *FLAGS variable, or
16408    # (2) before a word containing "conftest.", or (3) at the end.
16409    # Note that $ac_compile itself does not contain backslashes and begins
16410    # with a dollar sign (not a hyphen), so the echo should work correctly.
16411    # The option is referenced via a variable to avoid confusing sed.
16412    lt_compile=`echo "$ac_compile" | $SED \
16413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16415    -e 's:$: $lt_compiler_flag:'`
16416    (eval echo "\"\$as_me:16416: $lt_compile\"" >&5)
16417    (eval "$lt_compile" 2>conftest.err)
16418    ac_status=$?
16419    cat conftest.err >&5
16420    echo "$as_me:16420: \$? = $ac_status" >&5
16421    if (exit $ac_status) && test -s "$ac_outfile"; then
16422      # The compiler can only warn and ignore the option if not recognized
16423      # So say no if there are warnings other than the usual output.
16424      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16425      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16426      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16427        lt_cv_prog_compiler_rtti_exceptions=yes
16428      fi
16429    fi
16430    $rm conftest*
16431
16432 fi
16433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16434 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16435
16436 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16437     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16438 else
16439     :
16440 fi
16441
16442 fi
16443
16444 lt_prog_compiler_wl_GCJ=
16445 lt_prog_compiler_pic_GCJ=
16446 lt_prog_compiler_static_GCJ=
16447
16448 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16449 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16450
16451   if test "$GCC" = yes; then
16452     lt_prog_compiler_wl_GCJ='-Wl,'
16453     lt_prog_compiler_static_GCJ='-static'
16454
16455     case $host_os in
16456       aix*)
16457       # All AIX code is PIC.
16458       if test "$host_cpu" = ia64; then
16459         # AIX 5 now supports IA64 processor
16460         lt_prog_compiler_static_GCJ='-Bstatic'
16461       fi
16462       ;;
16463
16464     amigaos*)
16465       # FIXME: we need at least 68020 code to build shared libraries, but
16466       # adding the `-m68020' flag to GCC prevents building anything better,
16467       # like `-m68040'.
16468       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16469       ;;
16470
16471     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16472       # PIC is the default for these OSes.
16473       ;;
16474
16475     mingw* | pw32* | os2*)
16476       # This hack is so that the source file can tell whether it is being
16477       # built for inclusion in a dll (and should export symbols for example).
16478       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16479       ;;
16480
16481     darwin* | rhapsody*)
16482       # PIC is the default on this platform
16483       # Common symbols not allowed in MH_DYLIB files
16484       lt_prog_compiler_pic_GCJ='-fno-common'
16485       ;;
16486
16487     interix3*)
16488       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16489       # Instead, we relocate shared libraries at runtime.
16490       ;;
16491
16492     msdosdjgpp*)
16493       # Just because we use GCC doesn't mean we suddenly get shared libraries
16494       # on systems that don't support them.
16495       lt_prog_compiler_can_build_shared_GCJ=no
16496       enable_shared=no
16497       ;;
16498
16499     sysv4*MP*)
16500       if test -d /usr/nec; then
16501         lt_prog_compiler_pic_GCJ=-Kconform_pic
16502       fi
16503       ;;
16504
16505     hpux*)
16506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16507       # not for PA HP-UX.
16508       case $host_cpu in
16509       hppa*64*|ia64*)
16510         # +Z the default
16511         ;;
16512       *)
16513         lt_prog_compiler_pic_GCJ='-fPIC'
16514         ;;
16515       esac
16516       ;;
16517
16518     *)
16519       lt_prog_compiler_pic_GCJ='-fPIC'
16520       ;;
16521     esac
16522   else
16523     # PORTME Check for flag to pass linker flags through the system compiler.
16524     case $host_os in
16525     aix*)
16526       lt_prog_compiler_wl_GCJ='-Wl,'
16527       if test "$host_cpu" = ia64; then
16528         # AIX 5 now supports IA64 processor
16529         lt_prog_compiler_static_GCJ='-Bstatic'
16530       else
16531         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16532       fi
16533       ;;
16534       darwin*)
16535         # PIC is the default on this platform
16536         # Common symbols not allowed in MH_DYLIB files
16537        case $cc_basename in
16538          xlc*)
16539          lt_prog_compiler_pic_GCJ='-qnocommon'
16540          lt_prog_compiler_wl_GCJ='-Wl,'
16541          ;;
16542        esac
16543        ;;
16544
16545     mingw* | pw32* | os2*)
16546       # This hack is so that the source file can tell whether it is being
16547       # built for inclusion in a dll (and should export symbols for example).
16548       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16549       ;;
16550
16551     hpux9* | hpux10* | hpux11*)
16552       lt_prog_compiler_wl_GCJ='-Wl,'
16553       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16554       # not for PA HP-UX.
16555       case $host_cpu in
16556       hppa*64*|ia64*)
16557         # +Z the default
16558         ;;
16559       *)
16560         lt_prog_compiler_pic_GCJ='+Z'
16561         ;;
16562       esac
16563       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16564       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16565       ;;
16566
16567     irix5* | irix6* | nonstopux*)
16568       lt_prog_compiler_wl_GCJ='-Wl,'
16569       # PIC (with -KPIC) is the default.
16570       lt_prog_compiler_static_GCJ='-non_shared'
16571       ;;
16572
16573     newsos6)
16574       lt_prog_compiler_pic_GCJ='-KPIC'
16575       lt_prog_compiler_static_GCJ='-Bstatic'
16576       ;;
16577
16578     linux* | k*bsd*-gnu)
16579       case $cc_basename in
16580       icc* | ecc*)
16581         lt_prog_compiler_wl_GCJ='-Wl,'
16582         lt_prog_compiler_pic_GCJ='-KPIC'
16583         lt_prog_compiler_static_GCJ='-static'
16584         ;;
16585       pgcc* | pgf77* | pgf90* | pgf95*)
16586         # Portland Group compilers (*not* the Pentium gcc compiler,
16587         # which looks to be a dead project)
16588         lt_prog_compiler_wl_GCJ='-Wl,'
16589         lt_prog_compiler_pic_GCJ='-fpic'
16590         lt_prog_compiler_static_GCJ='-Bstatic'
16591         ;;
16592       ccc*)
16593         lt_prog_compiler_wl_GCJ='-Wl,'
16594         # All Alpha code is PIC.
16595         lt_prog_compiler_static_GCJ='-non_shared'
16596         ;;
16597       esac
16598       ;;
16599
16600     osf3* | osf4* | osf5*)
16601       lt_prog_compiler_wl_GCJ='-Wl,'
16602       # All OSF/1 code is PIC.
16603       lt_prog_compiler_static_GCJ='-non_shared'
16604       ;;
16605
16606     solaris*)
16607       lt_prog_compiler_pic_GCJ='-KPIC'
16608       lt_prog_compiler_static_GCJ='-Bstatic'
16609       case $cc_basename in
16610       f77* | f90* | f95*)
16611         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16612       *)
16613         lt_prog_compiler_wl_GCJ='-Wl,';;
16614       esac
16615       ;;
16616
16617     sunos4*)
16618       lt_prog_compiler_wl_GCJ='-Qoption ld '
16619       lt_prog_compiler_pic_GCJ='-PIC'
16620       lt_prog_compiler_static_GCJ='-Bstatic'
16621       ;;
16622
16623     sysv4 | sysv4.2uw2* | sysv4.3*)
16624       lt_prog_compiler_wl_GCJ='-Wl,'
16625       lt_prog_compiler_pic_GCJ='-KPIC'
16626       lt_prog_compiler_static_GCJ='-Bstatic'
16627       ;;
16628
16629     sysv4*MP*)
16630       if test -d /usr/nec ;then
16631         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16632         lt_prog_compiler_static_GCJ='-Bstatic'
16633       fi
16634       ;;
16635
16636     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16637       lt_prog_compiler_wl_GCJ='-Wl,'
16638       lt_prog_compiler_pic_GCJ='-KPIC'
16639       lt_prog_compiler_static_GCJ='-Bstatic'
16640       ;;
16641
16642     unicos*)
16643       lt_prog_compiler_wl_GCJ='-Wl,'
16644       lt_prog_compiler_can_build_shared_GCJ=no
16645       ;;
16646
16647     uts4*)
16648       lt_prog_compiler_pic_GCJ='-pic'
16649       lt_prog_compiler_static_GCJ='-Bstatic'
16650       ;;
16651
16652     *)
16653       lt_prog_compiler_can_build_shared_GCJ=no
16654       ;;
16655     esac
16656   fi
16657
16658 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16659 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16660
16661 #
16662 # Check to make sure the PIC flag actually works.
16663 #
16664 if test -n "$lt_prog_compiler_pic_GCJ"; then
16665
16666 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16667 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16668 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671   lt_prog_compiler_pic_works_GCJ=no
16672   ac_outfile=conftest.$ac_objext
16673    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16674    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16675    # Insert the option either (1) after the last *FLAGS variable, or
16676    # (2) before a word containing "conftest.", or (3) at the end.
16677    # Note that $ac_compile itself does not contain backslashes and begins
16678    # with a dollar sign (not a hyphen), so the echo should work correctly.
16679    # The option is referenced via a variable to avoid confusing sed.
16680    lt_compile=`echo "$ac_compile" | $SED \
16681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16683    -e 's:$: $lt_compiler_flag:'`
16684    (eval echo "\"\$as_me:16684: $lt_compile\"" >&5)
16685    (eval "$lt_compile" 2>conftest.err)
16686    ac_status=$?
16687    cat conftest.err >&5
16688    echo "$as_me:16688: \$? = $ac_status" >&5
16689    if (exit $ac_status) && test -s "$ac_outfile"; then
16690      # The compiler can only warn and ignore the option if not recognized
16691      # So say no if there are warnings other than the usual output.
16692      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16693      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16694      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16695        lt_prog_compiler_pic_works_GCJ=yes
16696      fi
16697    fi
16698    $rm conftest*
16699
16700 fi
16701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16702 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16703
16704 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16705     case $lt_prog_compiler_pic_GCJ in
16706      "" | " "*) ;;
16707      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16708      esac
16709 else
16710     lt_prog_compiler_pic_GCJ=
16711      lt_prog_compiler_can_build_shared_GCJ=no
16712 fi
16713
16714 fi
16715 case $host_os in
16716   # For platforms which do not support PIC, -DPIC is meaningless:
16717   *djgpp*)
16718     lt_prog_compiler_pic_GCJ=
16719     ;;
16720   *)
16721     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16722     ;;
16723 esac
16724
16725 #
16726 # Check to make sure the static flag actually works.
16727 #
16728 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16729 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16730 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16731 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   lt_prog_compiler_static_works_GCJ=no
16735    save_LDFLAGS="$LDFLAGS"
16736    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16737    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16738    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16739      # The linker can only warn and ignore the option if not recognized
16740      # So say no if there are warnings
16741      if test -s conftest.err; then
16742        # Append any errors to the config.log.
16743        cat conftest.err 1>&5
16744        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16745        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16746        if diff conftest.exp conftest.er2 >/dev/null; then
16747          lt_prog_compiler_static_works_GCJ=yes
16748        fi
16749      else
16750        lt_prog_compiler_static_works_GCJ=yes
16751      fi
16752    fi
16753    $rm conftest*
16754    LDFLAGS="$save_LDFLAGS"
16755
16756 fi
16757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16758 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16759
16760 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16761     :
16762 else
16763     lt_prog_compiler_static_GCJ=
16764 fi
16765
16766
16767 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16768 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16769 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   lt_cv_prog_compiler_c_o_GCJ=no
16773    $rm -r conftest 2>/dev/null
16774    mkdir conftest
16775    cd conftest
16776    mkdir out
16777    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16778
16779    lt_compiler_flag="-o out/conftest2.$ac_objext"
16780    # Insert the option either (1) after the last *FLAGS variable, or
16781    # (2) before a word containing "conftest.", or (3) at the end.
16782    # Note that $ac_compile itself does not contain backslashes and begins
16783    # with a dollar sign (not a hyphen), so the echo should work correctly.
16784    lt_compile=`echo "$ac_compile" | $SED \
16785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16787    -e 's:$: $lt_compiler_flag:'`
16788    (eval echo "\"\$as_me:16788: $lt_compile\"" >&5)
16789    (eval "$lt_compile" 2>out/conftest.err)
16790    ac_status=$?
16791    cat out/conftest.err >&5
16792    echo "$as_me:16792: \$? = $ac_status" >&5
16793    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16794    then
16795      # The compiler can only warn and ignore the option if not recognized
16796      # So say no if there are warnings
16797      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16798      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16799      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16800        lt_cv_prog_compiler_c_o_GCJ=yes
16801      fi
16802    fi
16803    chmod u+w . 2>&5
16804    $rm conftest*
16805    # SGI C++ compiler will create directory out/ii_files/ for
16806    # template instantiation
16807    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16808    $rm out/* && rmdir out
16809    cd ..
16810    rmdir conftest
16811    $rm conftest*
16812
16813 fi
16814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16815 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16816
16817
16818 hard_links="nottested"
16819 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16820   # do not overwrite the value of need_locks provided by the user
16821   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16822 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16823   hard_links=yes
16824   $rm conftest*
16825   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16826   touch conftest.a
16827   ln conftest.a conftest.b 2>&5 || hard_links=no
16828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16829   { echo "$as_me:$LINENO: result: $hard_links" >&5
16830 echo "${ECHO_T}$hard_links" >&6; }
16831   if test "$hard_links" = no; then
16832     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16833 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16834     need_locks=warn
16835   fi
16836 else
16837   need_locks=no
16838 fi
16839
16840 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16841 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16842
16843   runpath_var=
16844   allow_undefined_flag_GCJ=
16845   enable_shared_with_static_runtimes_GCJ=no
16846   archive_cmds_GCJ=
16847   archive_expsym_cmds_GCJ=
16848   old_archive_From_new_cmds_GCJ=
16849   old_archive_from_expsyms_cmds_GCJ=
16850   export_dynamic_flag_spec_GCJ=
16851   whole_archive_flag_spec_GCJ=
16852   thread_safe_flag_spec_GCJ=
16853   hardcode_libdir_flag_spec_GCJ=
16854   hardcode_libdir_flag_spec_ld_GCJ=
16855   hardcode_libdir_separator_GCJ=
16856   hardcode_direct_GCJ=no
16857   hardcode_minus_L_GCJ=no
16858   hardcode_shlibpath_var_GCJ=unsupported
16859   link_all_deplibs_GCJ=unknown
16860   hardcode_automatic_GCJ=no
16861   module_cmds_GCJ=
16862   module_expsym_cmds_GCJ=
16863   always_export_symbols_GCJ=no
16864   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16865   # include_expsyms should be a list of space-separated symbols to be *always*
16866   # included in the symbol list
16867   include_expsyms_GCJ=
16868   # exclude_expsyms can be an extended regexp of symbols to exclude
16869   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16870   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16871   # as well as any symbol that contains `d'.
16872   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16873   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16874   # platforms (ab)use it in PIC code, but their linkers get confused if
16875   # the symbol is explicitly referenced.  Since portable code cannot
16876   # rely on this symbol name, it's probably fine to never include it in
16877   # preloaded symbol tables.
16878   extract_expsyms_cmds=
16879   # Just being paranoid about ensuring that cc_basename is set.
16880   for cc_temp in $compiler""; do
16881   case $cc_temp in
16882     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16883     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16884     \-*) ;;
16885     *) break;;
16886   esac
16887 done
16888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16889
16890   case $host_os in
16891   cygwin* | mingw* | pw32*)
16892     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16893     # When not using gcc, we currently assume that we are using
16894     # Microsoft Visual C++.
16895     if test "$GCC" != yes; then
16896       with_gnu_ld=no
16897     fi
16898     ;;
16899   interix*)
16900     # we just hope/assume this is gcc and not c89 (= MSVC++)
16901     with_gnu_ld=yes
16902     ;;
16903   openbsd*)
16904     with_gnu_ld=no
16905     ;;
16906   esac
16907
16908   ld_shlibs_GCJ=yes
16909   if test "$with_gnu_ld" = yes; then
16910     # If archive_cmds runs LD, not CC, wlarc should be empty
16911     wlarc='${wl}'
16912
16913     # Set some defaults for GNU ld with shared library support. These
16914     # are reset later if shared libraries are not supported. Putting them
16915     # here allows them to be overridden if necessary.
16916     runpath_var=LD_RUN_PATH
16917     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16918     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16919     # ancient GNU ld didn't support --whole-archive et. al.
16920     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16921         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16922       else
16923         whole_archive_flag_spec_GCJ=
16924     fi
16925     supports_anon_versioning=no
16926     case `$LD -v 2>/dev/null` in
16927       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16928       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16929       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16930       *\ 2.11.*) ;; # other 2.11 versions
16931       *) supports_anon_versioning=yes ;;
16932     esac
16933
16934     # See if GNU ld supports shared libraries.
16935     case $host_os in
16936     aix3* | aix4* | aix5*)
16937       # On AIX/PPC, the GNU linker is very broken
16938       if test "$host_cpu" != ia64; then
16939         ld_shlibs_GCJ=no
16940         cat <<EOF 1>&2
16941
16942 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16943 *** to be unable to reliably create shared libraries on AIX.
16944 *** Therefore, libtool is disabling shared libraries support.  If you
16945 *** really care for shared libraries, you may want to modify your PATH
16946 *** so that a non-GNU linker is found, and then restart.
16947
16948 EOF
16949       fi
16950       ;;
16951
16952     amigaos*)
16953       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)'
16954       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16955       hardcode_minus_L_GCJ=yes
16956
16957       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16958       # that the semantics of dynamic libraries on AmigaOS, at least up
16959       # to version 4, is to share data among multiple programs linked
16960       # with the same dynamic library.  Since this doesn't match the
16961       # behavior of shared libraries on other platforms, we can't use
16962       # them.
16963       ld_shlibs_GCJ=no
16964       ;;
16965
16966     beos*)
16967       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16968         allow_undefined_flag_GCJ=unsupported
16969         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16970         # support --undefined.  This deserves some investigation.  FIXME
16971         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16972       else
16973         ld_shlibs_GCJ=no
16974       fi
16975       ;;
16976
16977     cygwin* | mingw* | pw32*)
16978       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16979       # as there is no search path for DLLs.
16980       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981       allow_undefined_flag_GCJ=unsupported
16982       always_export_symbols_GCJ=no
16983       enable_shared_with_static_runtimes_GCJ=yes
16984       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16985
16986       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16987         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16988         # If the export-symbols file already is a .def file (1st line
16989         # is EXPORTS), use it as is; otherwise, prepend...
16990         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16991           cp $export_symbols $output_objdir/$soname.def;
16992         else
16993           echo EXPORTS > $output_objdir/$soname.def;
16994           cat $export_symbols >> $output_objdir/$soname.def;
16995         fi~
16996         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16997       else
16998         ld_shlibs_GCJ=no
16999       fi
17000       ;;
17001
17002     interix3*)
17003       hardcode_direct_GCJ=no
17004       hardcode_shlibpath_var_GCJ=no
17005       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17006       export_dynamic_flag_spec_GCJ='${wl}-E'
17007       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17008       # Instead, shared libraries are loaded at an image base (0x10000000 by
17009       # default) and relocated if they conflict, which is a slow very memory
17010       # consuming and fragmenting process.  To avoid this, we pick a random,
17011       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17012       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17013       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'
17014       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'
17015       ;;
17016
17017     linux* | k*bsd*-gnu)
17018       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17019         tmp_addflag=
17020         case $cc_basename,$host_cpu in
17021         pgcc*)                          # Portland Group C compiler
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'
17024           ;;
17025         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17026           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'
17027           tmp_addflag=' $pic_flag -Mnomain' ;;
17028         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17029           tmp_addflag=' -i_dynamic' ;;
17030         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17031           tmp_addflag=' -i_dynamic -nofor_main' ;;
17032         ifc* | ifort*)                  # Intel Fortran compiler
17033           tmp_addflag=' -nofor_main' ;;
17034         esac
17035         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17036
17037         if test $supports_anon_versioning = yes; then
17038           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17039   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17040   $echo "local: *; };" >> $output_objdir/$libname.ver~
17041           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17042         fi
17043         link_all_deplibs_GCJ=no
17044       else
17045         ld_shlibs_GCJ=no
17046       fi
17047       ;;
17048
17049     netbsd* | netbsdelf*-gnu)
17050       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17051         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17052         wlarc=
17053       else
17054         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17055         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17056       fi
17057       ;;
17058
17059     solaris*)
17060       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17061         ld_shlibs_GCJ=no
17062         cat <<EOF 1>&2
17063
17064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17065 *** create shared libraries on Solaris systems.  Therefore, libtool
17066 *** is disabling shared libraries support.  We urge you to upgrade GNU
17067 *** binutils to release 2.9.1 or newer.  Another option is to modify
17068 *** your PATH or compiler configuration so that the native linker is
17069 *** used, and then restart.
17070
17071 EOF
17072       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17073         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17074         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17075       else
17076         ld_shlibs_GCJ=no
17077       fi
17078       ;;
17079
17080     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17081       case `$LD -v 2>&1` in
17082         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17083         ld_shlibs_GCJ=no
17084         cat <<_LT_EOF 1>&2
17085
17086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17087 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17088 *** is disabling shared libraries support.  We urge you to upgrade GNU
17089 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17090 *** your PATH or compiler configuration so that the native linker is
17091 *** used, and then restart.
17092
17093 _LT_EOF
17094         ;;
17095         *)
17096           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17097             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17098             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17099             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17100           else
17101             ld_shlibs_GCJ=no
17102           fi
17103         ;;
17104       esac
17105       ;;
17106
17107     sunos4*)
17108       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17109       wlarc=
17110       hardcode_direct_GCJ=yes
17111       hardcode_shlibpath_var_GCJ=no
17112       ;;
17113
17114     *)
17115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17118       else
17119         ld_shlibs_GCJ=no
17120       fi
17121       ;;
17122     esac
17123
17124     if test "$ld_shlibs_GCJ" = no; then
17125       runpath_var=
17126       hardcode_libdir_flag_spec_GCJ=
17127       export_dynamic_flag_spec_GCJ=
17128       whole_archive_flag_spec_GCJ=
17129     fi
17130   else
17131     # PORTME fill in a description of your system's linker (not GNU ld)
17132     case $host_os in
17133     aix3*)
17134       allow_undefined_flag_GCJ=unsupported
17135       always_export_symbols_GCJ=yes
17136       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'
17137       # Note: this linker hardcodes the directories in LIBPATH if there
17138       # are no directories specified by -L.
17139       hardcode_minus_L_GCJ=yes
17140       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17141         # Neither direct hardcoding nor static linking is supported with a
17142         # broken collect2.
17143         hardcode_direct_GCJ=unsupported
17144       fi
17145       ;;
17146
17147     aix4* | aix5*)
17148       if test "$host_cpu" = ia64; then
17149         # On IA64, the linker does run time linking by default, so we don't
17150         # have to do anything special.
17151         aix_use_runtimelinking=no
17152         exp_sym_flag='-Bexport'
17153         no_entry_flag=""
17154       else
17155         # If we're using GNU nm, then we don't want the "-C" option.
17156         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17157         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17158           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'
17159         else
17160           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'
17161         fi
17162         aix_use_runtimelinking=no
17163
17164         # Test if we are trying to use run time linking or normal
17165         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17166         # need to do runtime linking.
17167         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17168           for ld_flag in $LDFLAGS; do
17169           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17170             aix_use_runtimelinking=yes
17171             break
17172           fi
17173           done
17174           ;;
17175         esac
17176
17177         exp_sym_flag='-bexport'
17178         no_entry_flag='-bnoentry'
17179       fi
17180
17181       # When large executables or shared objects are built, AIX ld can
17182       # have problems creating the table of contents.  If linking a library
17183       # or program results in "error TOC overflow" add -mminimal-toc to
17184       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17185       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17186
17187       archive_cmds_GCJ=''
17188       hardcode_direct_GCJ=yes
17189       hardcode_libdir_separator_GCJ=':'
17190       link_all_deplibs_GCJ=yes
17191
17192       if test "$GCC" = yes; then
17193         case $host_os in aix4.[012]|aix4.[012].*)
17194         # We only want to do this on AIX 4.2 and lower, the check
17195         # below for broken collect2 doesn't work under 4.3+
17196           collect2name=`${CC} -print-prog-name=collect2`
17197           if test -f "$collect2name" && \
17198            strings "$collect2name" | grep resolve_lib_name >/dev/null
17199           then
17200           # We have reworked collect2
17201           hardcode_direct_GCJ=yes
17202           else
17203           # We have old collect2
17204           hardcode_direct_GCJ=unsupported
17205           # It fails to find uninstalled libraries when the uninstalled
17206           # path is not listed in the libpath.  Setting hardcode_minus_L
17207           # to unsupported forces relinking
17208           hardcode_minus_L_GCJ=yes
17209           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17210           hardcode_libdir_separator_GCJ=
17211           fi
17212           ;;
17213         esac
17214         shared_flag='-shared'
17215         if test "$aix_use_runtimelinking" = yes; then
17216           shared_flag="$shared_flag "'${wl}-G'
17217         fi
17218       else
17219         # not using gcc
17220         if test "$host_cpu" = ia64; then
17221         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17222         # chokes on -Wl,-G. The following line is correct:
17223           shared_flag='-G'
17224         else
17225           if test "$aix_use_runtimelinking" = yes; then
17226             shared_flag='${wl}-G'
17227           else
17228             shared_flag='${wl}-bM:SRE'
17229           fi
17230         fi
17231       fi
17232
17233       # It seems that -bexpall does not export symbols beginning with
17234       # underscore (_), so it is better to generate a list of symbols to export.
17235       always_export_symbols_GCJ=yes
17236       if test "$aix_use_runtimelinking" = yes; then
17237         # Warning - without using the other runtime loading flags (-brtl),
17238         # -berok will link without error, but may produce a broken library.
17239         allow_undefined_flag_GCJ='-berok'
17240        # Determine the default libpath from the value encoded in an empty executable.
17241        cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h.  */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h.  */
17247
17248 int
17249 main ()
17250 {
17251
17252   ;
17253   return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260   *) ac_try_echo=$ac_try;;
17261 esac
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263   (eval "$ac_link") 2>conftest.er1
17264   ac_status=$?
17265   grep -v '^ *+' conftest.er1 >conftest.err
17266   rm -f conftest.er1
17267   cat conftest.err >&5
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); } && {
17270          test -z "$ac_c_werror_flag" ||
17271          test ! -s conftest.err
17272        } && test -s conftest$ac_exeext &&
17273        $as_test_x conftest$ac_exeext; then
17274
17275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17276 }'`
17277 # Check for a 64-bit object if we didn't find anything.
17278 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; }
17279 }'`; fi
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284
17285 fi
17286
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288       conftest$ac_exeext conftest.$ac_ext
17289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17290
17291        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17292         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"
17293        else
17294         if test "$host_cpu" = ia64; then
17295           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17296           allow_undefined_flag_GCJ="-z nodefs"
17297           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"
17298         else
17299          # Determine the default libpath from the value encoded in an empty executable.
17300          cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307 int
17308 main ()
17309 {
17310
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_link") 2>conftest.er1
17323   ac_status=$?
17324   grep -v '^ *+' conftest.er1 >conftest.err
17325   rm -f conftest.er1
17326   cat conftest.err >&5
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } && {
17329          test -z "$ac_c_werror_flag" ||
17330          test ! -s conftest.err
17331        } && test -s conftest$ac_exeext &&
17332        $as_test_x conftest$ac_exeext; then
17333
17334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17335 }'`
17336 # Check for a 64-bit object if we didn't find anything.
17337 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; }
17338 }'`; fi
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343
17344 fi
17345
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347       conftest$ac_exeext conftest.$ac_ext
17348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17349
17350          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17351           # Warning - without using the other run time loading flags,
17352           # -berok will link without error, but may produce a broken library.
17353           no_undefined_flag_GCJ=' ${wl}-bernotok'
17354           allow_undefined_flag_GCJ=' ${wl}-berok'
17355           # Exported symbols can be pulled into shared objects from archives
17356           whole_archive_flag_spec_GCJ='$convenience'
17357           archive_cmds_need_lc_GCJ=yes
17358           # This is similar to how AIX traditionally builds its shared libraries.
17359           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'
17360         fi
17361       fi
17362       ;;
17363
17364     amigaos*)
17365       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)'
17366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367       hardcode_minus_L_GCJ=yes
17368       # see comment about different semantics on the GNU ld section
17369       ld_shlibs_GCJ=no
17370       ;;
17371
17372     bsdi[45]*)
17373       export_dynamic_flag_spec_GCJ=-rdynamic
17374       ;;
17375
17376     cygwin* | mingw* | pw32*)
17377       # When not using gcc, we currently assume that we are using
17378       # Microsoft Visual C++.
17379       # hardcode_libdir_flag_spec is actually meaningless, as there is
17380       # no search path for DLLs.
17381       hardcode_libdir_flag_spec_GCJ=' '
17382       allow_undefined_flag_GCJ=unsupported
17383       # Tell ltmain to make .lib files, not .a files.
17384       libext=lib
17385       # Tell ltmain to make .dll files, not .so files.
17386       shrext_cmds=".dll"
17387       # FIXME: Setting linknames here is a bad hack.
17388       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17389       # The linker will automatically build a .lib file if we build a DLL.
17390       old_archive_From_new_cmds_GCJ='true'
17391       # FIXME: Should let the user specify the lib program.
17392       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17393       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17394       enable_shared_with_static_runtimes_GCJ=yes
17395       ;;
17396
17397     darwin* | rhapsody*)
17398       case $host_os in
17399         rhapsody* | darwin1.[012])
17400          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17401          ;;
17402        *) # Darwin 1.3 on
17403          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17404            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17405          else
17406            case ${MACOSX_DEPLOYMENT_TARGET} in
17407              10.[012])
17408                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17409                ;;
17410              10.*)
17411                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17412                ;;
17413            esac
17414          fi
17415          ;;
17416       esac
17417       archive_cmds_need_lc_GCJ=no
17418       hardcode_direct_GCJ=no
17419       hardcode_automatic_GCJ=yes
17420       hardcode_shlibpath_var_GCJ=unsupported
17421       whole_archive_flag_spec_GCJ=''
17422       link_all_deplibs_GCJ=yes
17423     if test "$GCC" = yes ; then
17424         output_verbose_link_cmd='echo'
17425         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17426       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17427       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17428       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}'
17429       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}'
17430     else
17431       case $cc_basename in
17432         xlc*)
17433          output_verbose_link_cmd='echo'
17434          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17435          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437          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}'
17438           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}'
17439           ;;
17440        *)
17441          ld_shlibs_GCJ=no
17442           ;;
17443       esac
17444     fi
17445       ;;
17446
17447     dgux*)
17448       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17449       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450       hardcode_shlibpath_var_GCJ=no
17451       ;;
17452
17453     freebsd1*)
17454       ld_shlibs_GCJ=no
17455       ;;
17456
17457     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17458     # support.  Future versions do this automatically, but an explicit c++rt0.o
17459     # does not break anything, and helps significantly (at the cost of a little
17460     # extra space).
17461     freebsd2.2*)
17462       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17463       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464       hardcode_direct_GCJ=yes
17465       hardcode_shlibpath_var_GCJ=no
17466       ;;
17467
17468     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17469     freebsd2*)
17470       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17471       hardcode_direct_GCJ=yes
17472       hardcode_minus_L_GCJ=yes
17473       hardcode_shlibpath_var_GCJ=no
17474       ;;
17475
17476     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17477     freebsd* | dragonfly*)
17478       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17479       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17480       hardcode_direct_GCJ=yes
17481       hardcode_shlibpath_var_GCJ=no
17482       ;;
17483
17484     hpux9*)
17485       if test "$GCC" = yes; then
17486         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'
17487       else
17488         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'
17489       fi
17490       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491       hardcode_libdir_separator_GCJ=:
17492       hardcode_direct_GCJ=yes
17493
17494       # hardcode_minus_L: Not really in the search PATH,
17495       # but as the default location of the library.
17496       hardcode_minus_L_GCJ=yes
17497       export_dynamic_flag_spec_GCJ='${wl}-E'
17498       ;;
17499
17500     hpux10*)
17501       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17502         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17503       else
17504         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17505       fi
17506       if test "$with_gnu_ld" = no; then
17507         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17508         hardcode_libdir_separator_GCJ=:
17509
17510         hardcode_direct_GCJ=yes
17511         export_dynamic_flag_spec_GCJ='${wl}-E'
17512
17513         # hardcode_minus_L: Not really in the search PATH,
17514         # but as the default location of the library.
17515         hardcode_minus_L_GCJ=yes
17516       fi
17517       ;;
17518
17519     hpux11*)
17520       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17521         case $host_cpu in
17522         hppa*64*)
17523           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17524           ;;
17525         ia64*)
17526           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17527           ;;
17528         *)
17529           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17530           ;;
17531         esac
17532       else
17533         case $host_cpu in
17534         hppa*64*)
17535           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17536           ;;
17537         ia64*)
17538           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17539           ;;
17540         *)
17541           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17542           ;;
17543         esac
17544       fi
17545       if test "$with_gnu_ld" = no; then
17546         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17547         hardcode_libdir_separator_GCJ=:
17548
17549         case $host_cpu in
17550         hppa*64*|ia64*)
17551           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17552           hardcode_direct_GCJ=no
17553           hardcode_shlibpath_var_GCJ=no
17554           ;;
17555         *)
17556           hardcode_direct_GCJ=yes
17557           export_dynamic_flag_spec_GCJ='${wl}-E'
17558
17559           # hardcode_minus_L: Not really in the search PATH,
17560           # but as the default location of the library.
17561           hardcode_minus_L_GCJ=yes
17562           ;;
17563         esac
17564       fi
17565       ;;
17566
17567     irix5* | irix6* | nonstopux*)
17568       if test "$GCC" = yes; then
17569         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'
17570       else
17571         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'
17572         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17573       fi
17574       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17575       hardcode_libdir_separator_GCJ=:
17576       link_all_deplibs_GCJ=yes
17577       ;;
17578
17579     netbsd* | netbsdelf*-gnu)
17580       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17582       else
17583         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17584       fi
17585       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17586       hardcode_direct_GCJ=yes
17587       hardcode_shlibpath_var_GCJ=no
17588       ;;
17589
17590     newsos6)
17591       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17592       hardcode_direct_GCJ=yes
17593       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594       hardcode_libdir_separator_GCJ=:
17595       hardcode_shlibpath_var_GCJ=no
17596       ;;
17597
17598     openbsd*)
17599       hardcode_direct_GCJ=yes
17600       hardcode_shlibpath_var_GCJ=no
17601       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17602         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17603         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17604         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17605         export_dynamic_flag_spec_GCJ='${wl}-E'
17606       else
17607        case $host_os in
17608          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17609            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17610            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17611            ;;
17612          *)
17613            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17614            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17615            ;;
17616        esac
17617       fi
17618       ;;
17619
17620     os2*)
17621       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17622       hardcode_minus_L_GCJ=yes
17623       allow_undefined_flag_GCJ=unsupported
17624       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'
17625       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17626       ;;
17627
17628     osf3*)
17629       if test "$GCC" = yes; then
17630         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17631         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'
17632       else
17633         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17634         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'
17635       fi
17636       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17637       hardcode_libdir_separator_GCJ=:
17638       ;;
17639
17640     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17641       if test "$GCC" = yes; then
17642         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17643         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'
17644         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645       else
17646         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17647         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'
17648         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~
17649         $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'
17650
17651         # Both c and cxx compiler support -rpath directly
17652         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17653       fi
17654       hardcode_libdir_separator_GCJ=:
17655       ;;
17656
17657     solaris*)
17658       no_undefined_flag_GCJ=' -z text'
17659       if test "$GCC" = yes; then
17660         wlarc='${wl}'
17661         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17662         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17663           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17664       else
17665         wlarc=''
17666         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17668         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17669       fi
17670       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17671       hardcode_shlibpath_var_GCJ=no
17672       case $host_os in
17673       solaris2.[0-5] | solaris2.[0-5].*) ;;
17674       *)
17675         # The compiler driver will combine linker options so we
17676         # cannot just pass the convience library names through
17677         # without $wl, iff we do not link with $LD.
17678         # Luckily, gcc supports the same syntax we need for Sun Studio.
17679         # Supported since Solaris 2.6 (maybe 2.5.1?)
17680         case $wlarc in
17681         '')
17682           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17683         *)
17684           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' ;;
17685         esac ;;
17686       esac
17687       link_all_deplibs_GCJ=yes
17688       ;;
17689
17690     sunos4*)
17691       if test "x$host_vendor" = xsequent; then
17692         # Use $CC to link under sequent, because it throws in some extra .o
17693         # files that make .init and .fini sections work.
17694         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17695       else
17696         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17697       fi
17698       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17699       hardcode_direct_GCJ=yes
17700       hardcode_minus_L_GCJ=yes
17701       hardcode_shlibpath_var_GCJ=no
17702       ;;
17703
17704     sysv4)
17705       case $host_vendor in
17706         sni)
17707           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708           hardcode_direct_GCJ=yes # is this really true???
17709         ;;
17710         siemens)
17711           ## LD is ld it makes a PLAMLIB
17712           ## CC just makes a GrossModule.
17713           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17714           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17715           hardcode_direct_GCJ=no
17716         ;;
17717         motorola)
17718           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17720         ;;
17721       esac
17722       runpath_var='LD_RUN_PATH'
17723       hardcode_shlibpath_var_GCJ=no
17724       ;;
17725
17726     sysv4.3*)
17727       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728       hardcode_shlibpath_var_GCJ=no
17729       export_dynamic_flag_spec_GCJ='-Bexport'
17730       ;;
17731
17732     sysv4*MP*)
17733       if test -d /usr/nec; then
17734         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735         hardcode_shlibpath_var_GCJ=no
17736         runpath_var=LD_RUN_PATH
17737         hardcode_runpath_var=yes
17738         ld_shlibs_GCJ=yes
17739       fi
17740       ;;
17741
17742     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17743       no_undefined_flag_GCJ='${wl}-z,text'
17744       archive_cmds_need_lc_GCJ=no
17745       hardcode_shlibpath_var_GCJ=no
17746       runpath_var='LD_RUN_PATH'
17747
17748       if test "$GCC" = yes; then
17749         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17751       else
17752         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17754       fi
17755       ;;
17756
17757     sysv5* | sco3.2v5* | sco5v6*)
17758       # Note: We can NOT use -z defs as we might desire, because we do not
17759       # link with -lc, and that would cause any symbols used from libc to
17760       # always be unresolved, which means just about no library would
17761       # ever link correctly.  If we're not using GNU ld we use -z text
17762       # though, which does catch some bad symbols but isn't as heavy-handed
17763       # as -z defs.
17764       no_undefined_flag_GCJ='${wl}-z,text'
17765       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17766       archive_cmds_need_lc_GCJ=no
17767       hardcode_shlibpath_var_GCJ=no
17768       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17769       hardcode_libdir_separator_GCJ=':'
17770       link_all_deplibs_GCJ=yes
17771       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17772       runpath_var='LD_RUN_PATH'
17773
17774       if test "$GCC" = yes; then
17775         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17777       else
17778         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17779         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780       fi
17781       ;;
17782
17783     uts4*)
17784       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17785       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786       hardcode_shlibpath_var_GCJ=no
17787       ;;
17788
17789     *)
17790       ld_shlibs_GCJ=no
17791       ;;
17792     esac
17793   fi
17794
17795 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17796 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17797 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17798
17799 #
17800 # Do we need to explicitly link libc?
17801 #
17802 case "x$archive_cmds_need_lc_GCJ" in
17803 x|xyes)
17804   # Assume -lc should be added
17805   archive_cmds_need_lc_GCJ=yes
17806
17807   if test "$enable_shared" = yes && test "$GCC" = yes; then
17808     case $archive_cmds_GCJ in
17809     *'~'*)
17810       # FIXME: we may have to deal with multi-command sequences.
17811       ;;
17812     '$CC '*)
17813       # Test whether the compiler implicitly links with -lc since on some
17814       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17815       # to ld, don't add -lc before -lgcc.
17816       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17817 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17818       $rm conftest*
17819       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17820
17821       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822   (eval $ac_compile) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); } 2>conftest.err; then
17826         soname=conftest
17827         lib=conftest
17828         libobjs=conftest.$ac_objext
17829         deplibs=
17830         wl=$lt_prog_compiler_wl_GCJ
17831         pic_flag=$lt_prog_compiler_pic_GCJ
17832         compiler_flags=-v
17833         linker_flags=-v
17834         verstring=
17835         output_objdir=.
17836         libname=conftest
17837         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17838         allow_undefined_flag_GCJ=
17839         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17840   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }
17844         then
17845           archive_cmds_need_lc_GCJ=no
17846         else
17847           archive_cmds_need_lc_GCJ=yes
17848         fi
17849         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17850       else
17851         cat conftest.err 1>&5
17852       fi
17853       $rm conftest*
17854       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17855 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17856       ;;
17857     esac
17858   fi
17859   ;;
17860 esac
17861
17862 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17864 library_names_spec=
17865 libname_spec='lib$name'
17866 soname_spec=
17867 shrext_cmds=".so"
17868 postinstall_cmds=
17869 postuninstall_cmds=
17870 finish_cmds=
17871 finish_eval=
17872 shlibpath_var=
17873 shlibpath_overrides_runpath=unknown
17874 version_type=none
17875 dynamic_linker="$host_os ld.so"
17876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17877 if test "$GCC" = yes; then
17878   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17879   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17880     # if the path contains ";" then we assume it to be the separator
17881     # otherwise default to the standard path separator (i.e. ":") - it is
17882     # assumed that no part of a normal pathname contains ";" but that should
17883     # okay in the real world where ";" in dirpaths is itself problematic.
17884     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17885   else
17886     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17887   fi
17888 else
17889   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17890 fi
17891 need_lib_prefix=unknown
17892 hardcode_into_libs=no
17893
17894 # when you set need_version to no, make sure it does not cause -set_version
17895 # flags to be left without arguments
17896 need_version=unknown
17897
17898 case $host_os in
17899 aix3*)
17900   version_type=linux
17901   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17902   shlibpath_var=LIBPATH
17903
17904   # AIX 3 has no versioning support, so we append a major version to the name.
17905   soname_spec='${libname}${release}${shared_ext}$major'
17906   ;;
17907
17908 aix4* | aix5*)
17909   version_type=linux
17910   need_lib_prefix=no
17911   need_version=no
17912   hardcode_into_libs=yes
17913   if test "$host_cpu" = ia64; then
17914     # AIX 5 supports IA64
17915     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17916     shlibpath_var=LD_LIBRARY_PATH
17917   else
17918     # With GCC up to 2.95.x, collect2 would create an import file
17919     # for dependence libraries.  The import file would start with
17920     # the line `#! .'.  This would cause the generated library to
17921     # depend on `.', always an invalid library.  This was fixed in
17922     # development snapshots of GCC prior to 3.0.
17923     case $host_os in
17924       aix4 | aix4.[01] | aix4.[01].*)
17925       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17926            echo ' yes '
17927            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17928         :
17929       else
17930         can_build_shared=no
17931       fi
17932       ;;
17933     esac
17934     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17935     # soname into executable. Probably we can add versioning support to
17936     # collect2, so additional links can be useful in future.
17937     if test "$aix_use_runtimelinking" = yes; then
17938       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17939       # instead of lib<name>.a to let people know that these are not
17940       # typical AIX shared libraries.
17941       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942     else
17943       # We preserve .a as extension for shared libraries through AIX4.2
17944       # and later when we are not doing run time linking.
17945       library_names_spec='${libname}${release}.a $libname.a'
17946       soname_spec='${libname}${release}${shared_ext}$major'
17947     fi
17948     shlibpath_var=LIBPATH
17949   fi
17950   ;;
17951
17952 amigaos*)
17953   library_names_spec='$libname.ixlibrary $libname.a'
17954   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17955   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'
17956   ;;
17957
17958 beos*)
17959   library_names_spec='${libname}${shared_ext}'
17960   dynamic_linker="$host_os ld.so"
17961   shlibpath_var=LIBRARY_PATH
17962   ;;
17963
17964 bsdi[45]*)
17965   version_type=linux
17966   need_version=no
17967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968   soname_spec='${libname}${release}${shared_ext}$major'
17969   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17970   shlibpath_var=LD_LIBRARY_PATH
17971   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17972   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17973   # the default ld.so.conf also contains /usr/contrib/lib and
17974   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17975   # libtool to hard-code these into programs
17976   ;;
17977
17978 cygwin* | mingw* | pw32*)
17979   version_type=windows
17980   shrext_cmds=".dll"
17981   need_version=no
17982   need_lib_prefix=no
17983
17984   case $GCC,$host_os in
17985   yes,cygwin* | yes,mingw* | yes,pw32*)
17986     library_names_spec='$libname.dll.a'
17987     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17988     postinstall_cmds='base_file=`basename \${file}`~
17989       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17990       dldir=$destdir/`dirname \$dlpath`~
17991       test -d \$dldir || mkdir -p \$dldir~
17992       $install_prog $dir/$dlname \$dldir/$dlname~
17993       chmod a+x \$dldir/$dlname'
17994     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17995       dlpath=$dir/\$dldll~
17996        $rm \$dlpath'
17997     shlibpath_overrides_runpath=yes
17998
17999     case $host_os in
18000     cygwin*)
18001       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18002       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18003       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18004       ;;
18005     mingw*)
18006       # MinGW DLLs use traditional 'lib' prefix
18007       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18008       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18009       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18010         # It is most probably a Windows format PATH printed by
18011         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18012         # path with ; separators, and with drive letters. We can handle the
18013         # drive letters (cygwin fileutils understands them), so leave them,
18014         # especially as we might pass files found there to a mingw objdump,
18015         # which wouldn't understand a cygwinified path. Ahh.
18016         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18017       else
18018         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18019       fi
18020       ;;
18021     pw32*)
18022       # pw32 DLLs use 'pw' prefix rather than 'lib'
18023       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18024       ;;
18025     esac
18026     ;;
18027
18028   *)
18029     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18030     ;;
18031   esac
18032   dynamic_linker='Win32 ld.exe'
18033   # FIXME: first we should search . and the directory the executable is in
18034   shlibpath_var=PATH
18035   ;;
18036
18037 darwin* | rhapsody*)
18038   dynamic_linker="$host_os dyld"
18039   version_type=darwin
18040   need_lib_prefix=no
18041   need_version=no
18042   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18043   soname_spec='${libname}${release}${major}$shared_ext'
18044   shlibpath_overrides_runpath=yes
18045   shlibpath_var=DYLD_LIBRARY_PATH
18046   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18047   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18048   if test "$GCC" = yes; then
18049     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"`
18050   else
18051     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18052   fi
18053   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18054   ;;
18055
18056 dgux*)
18057   version_type=linux
18058   need_lib_prefix=no
18059   need_version=no
18060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18061   soname_spec='${libname}${release}${shared_ext}$major'
18062   shlibpath_var=LD_LIBRARY_PATH
18063   ;;
18064
18065 freebsd1*)
18066   dynamic_linker=no
18067   ;;
18068
18069 freebsd* | dragonfly*)
18070   # DragonFly does not have aout.  When/if they implement a new
18071   # versioning mechanism, adjust this.
18072   if test -x /usr/bin/objformat; then
18073     objformat=`/usr/bin/objformat`
18074   else
18075     case $host_os in
18076     freebsd[123]*) objformat=aout ;;
18077     *) objformat=elf ;;
18078     esac
18079   fi
18080   version_type=freebsd-$objformat
18081   case $version_type in
18082     freebsd-elf*)
18083       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18084       need_version=no
18085       need_lib_prefix=no
18086       ;;
18087     freebsd-*)
18088       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18089       need_version=yes
18090       ;;
18091   esac
18092   shlibpath_var=LD_LIBRARY_PATH
18093   case $host_os in
18094   freebsd2*)
18095     shlibpath_overrides_runpath=yes
18096     ;;
18097   freebsd3.[01]* | freebsdelf3.[01]*)
18098     shlibpath_overrides_runpath=yes
18099     hardcode_into_libs=yes
18100     ;;
18101   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18102   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18103     shlibpath_overrides_runpath=no
18104     hardcode_into_libs=yes
18105     ;;
18106   freebsd*) # from 4.6 on
18107     shlibpath_overrides_runpath=yes
18108     hardcode_into_libs=yes
18109     ;;
18110   esac
18111   ;;
18112
18113 gnu*)
18114   version_type=linux
18115   need_lib_prefix=no
18116   need_version=no
18117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18118   soname_spec='${libname}${release}${shared_ext}$major'
18119   shlibpath_var=LD_LIBRARY_PATH
18120   hardcode_into_libs=yes
18121   ;;
18122
18123 hpux9* | hpux10* | hpux11*)
18124   # Give a soname corresponding to the major version so that dld.sl refuses to
18125   # link against other versions.
18126   version_type=sunos
18127   need_lib_prefix=no
18128   need_version=no
18129   case $host_cpu in
18130   ia64*)
18131     shrext_cmds='.so'
18132     hardcode_into_libs=yes
18133     dynamic_linker="$host_os dld.so"
18134     shlibpath_var=LD_LIBRARY_PATH
18135     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137     soname_spec='${libname}${release}${shared_ext}$major'
18138     if test "X$HPUX_IA64_MODE" = X32; then
18139       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18140     else
18141       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18142     fi
18143     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18144     ;;
18145    hppa*64*)
18146      shrext_cmds='.sl'
18147      hardcode_into_libs=yes
18148      dynamic_linker="$host_os dld.sl"
18149      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18150      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152      soname_spec='${libname}${release}${shared_ext}$major'
18153      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18154      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18155      ;;
18156    *)
18157     shrext_cmds='.sl'
18158     dynamic_linker="$host_os dld.sl"
18159     shlibpath_var=SHLIB_PATH
18160     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162     soname_spec='${libname}${release}${shared_ext}$major'
18163     ;;
18164   esac
18165   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18166   postinstall_cmds='chmod 555 $lib'
18167   ;;
18168
18169 interix3*)
18170   version_type=linux
18171   need_lib_prefix=no
18172   need_version=no
18173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18174   soname_spec='${libname}${release}${shared_ext}$major'
18175   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18176   shlibpath_var=LD_LIBRARY_PATH
18177   shlibpath_overrides_runpath=no
18178   hardcode_into_libs=yes
18179   ;;
18180
18181 irix5* | irix6* | nonstopux*)
18182   case $host_os in
18183     nonstopux*) version_type=nonstopux ;;
18184     *)
18185         if test "$lt_cv_prog_gnu_ld" = yes; then
18186                 version_type=linux
18187         else
18188                 version_type=irix
18189         fi ;;
18190   esac
18191   need_lib_prefix=no
18192   need_version=no
18193   soname_spec='${libname}${release}${shared_ext}$major'
18194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18195   case $host_os in
18196   irix5* | nonstopux*)
18197     libsuff= shlibsuff=
18198     ;;
18199   *)
18200     case $LD in # libtool.m4 will add one of these switches to LD
18201     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18202       libsuff= shlibsuff= libmagic=32-bit;;
18203     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18204       libsuff=32 shlibsuff=N32 libmagic=N32;;
18205     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18206       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18207     *) libsuff= shlibsuff= libmagic=never-match;;
18208     esac
18209     ;;
18210   esac
18211   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18212   shlibpath_overrides_runpath=no
18213   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18214   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18215   hardcode_into_libs=yes
18216   ;;
18217
18218 # No shared lib support for Linux oldld, aout, or coff.
18219 linux*oldld* | linux*aout* | linux*coff*)
18220   dynamic_linker=no
18221   ;;
18222
18223 # This must be Linux ELF.
18224 linux* | k*bsd*-gnu)
18225   version_type=linux
18226   need_lib_prefix=no
18227   need_version=no
18228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229   soname_spec='${libname}${release}${shared_ext}$major'
18230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18231   shlibpath_var=LD_LIBRARY_PATH
18232   shlibpath_overrides_runpath=no
18233   # This implies no fast_install, which is unacceptable.
18234   # Some rework will be needed to allow for fast_install
18235   # before this can be enabled.
18236   hardcode_into_libs=yes
18237
18238   # Append ld.so.conf contents to the search path
18239   if test -f /etc/ld.so.conf; then
18240     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' ' '`
18241     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18242   fi
18243
18244   # We used to test for /lib/ld.so.1 and disable shared libraries on
18245   # powerpc, because MkLinux only supported shared libraries with the
18246   # GNU dynamic linker.  Since this was broken with cross compilers,
18247   # most powerpc-linux boxes support dynamic linking these days and
18248   # people can always --disable-shared, the test was removed, and we
18249   # assume the GNU/Linux dynamic linker is in use.
18250   dynamic_linker='GNU/Linux ld.so'
18251   ;;
18252
18253 netbsdelf*-gnu)
18254   version_type=linux
18255   need_lib_prefix=no
18256   need_version=no
18257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258   soname_spec='${libname}${release}${shared_ext}$major'
18259   shlibpath_var=LD_LIBRARY_PATH
18260   shlibpath_overrides_runpath=no
18261   hardcode_into_libs=yes
18262   dynamic_linker='NetBSD ld.elf_so'
18263   ;;
18264
18265 netbsd*)
18266   version_type=sunos
18267   need_lib_prefix=no
18268   need_version=no
18269   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18271     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18272     dynamic_linker='NetBSD (a.out) ld.so'
18273   else
18274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18275     soname_spec='${libname}${release}${shared_ext}$major'
18276     dynamic_linker='NetBSD ld.elf_so'
18277   fi
18278   shlibpath_var=LD_LIBRARY_PATH
18279   shlibpath_overrides_runpath=yes
18280   hardcode_into_libs=yes
18281   ;;
18282
18283 newsos6)
18284   version_type=linux
18285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286   shlibpath_var=LD_LIBRARY_PATH
18287   shlibpath_overrides_runpath=yes
18288   ;;
18289
18290 nto-qnx*)
18291   version_type=linux
18292   need_lib_prefix=no
18293   need_version=no
18294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295   soname_spec='${libname}${release}${shared_ext}$major'
18296   shlibpath_var=LD_LIBRARY_PATH
18297   shlibpath_overrides_runpath=yes
18298   ;;
18299
18300 openbsd*)
18301   version_type=sunos
18302   sys_lib_dlsearch_path_spec="/usr/lib"
18303   need_lib_prefix=no
18304   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18305   case $host_os in
18306     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18307     *)                         need_version=no  ;;
18308   esac
18309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18310   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18311   shlibpath_var=LD_LIBRARY_PATH
18312   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18313     case $host_os in
18314       openbsd2.[89] | openbsd2.[89].*)
18315         shlibpath_overrides_runpath=no
18316         ;;
18317       *)
18318         shlibpath_overrides_runpath=yes
18319         ;;
18320       esac
18321   else
18322     shlibpath_overrides_runpath=yes
18323   fi
18324   ;;
18325
18326 os2*)
18327   libname_spec='$name'
18328   shrext_cmds=".dll"
18329   need_lib_prefix=no
18330   library_names_spec='$libname${shared_ext} $libname.a'
18331   dynamic_linker='OS/2 ld.exe'
18332   shlibpath_var=LIBPATH
18333   ;;
18334
18335 osf3* | osf4* | osf5*)
18336   version_type=osf
18337   need_lib_prefix=no
18338   need_version=no
18339   soname_spec='${libname}${release}${shared_ext}$major'
18340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341   shlibpath_var=LD_LIBRARY_PATH
18342   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18343   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18344   ;;
18345
18346 solaris*)
18347   version_type=linux
18348   need_lib_prefix=no
18349   need_version=no
18350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351   soname_spec='${libname}${release}${shared_ext}$major'
18352   shlibpath_var=LD_LIBRARY_PATH
18353   shlibpath_overrides_runpath=yes
18354   hardcode_into_libs=yes
18355   # ldd complains unless libraries are executable
18356   postinstall_cmds='chmod +x $lib'
18357   ;;
18358
18359 sunos4*)
18360   version_type=sunos
18361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18362   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18363   shlibpath_var=LD_LIBRARY_PATH
18364   shlibpath_overrides_runpath=yes
18365   if test "$with_gnu_ld" = yes; then
18366     need_lib_prefix=no
18367   fi
18368   need_version=yes
18369   ;;
18370
18371 sysv4 | sysv4.3*)
18372   version_type=linux
18373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374   soname_spec='${libname}${release}${shared_ext}$major'
18375   shlibpath_var=LD_LIBRARY_PATH
18376   case $host_vendor in
18377     sni)
18378       shlibpath_overrides_runpath=no
18379       need_lib_prefix=no
18380       export_dynamic_flag_spec='${wl}-Blargedynsym'
18381       runpath_var=LD_RUN_PATH
18382       ;;
18383     siemens)
18384       need_lib_prefix=no
18385       ;;
18386     motorola)
18387       need_lib_prefix=no
18388       need_version=no
18389       shlibpath_overrides_runpath=no
18390       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18391       ;;
18392   esac
18393   ;;
18394
18395 sysv4*MP*)
18396   if test -d /usr/nec ;then
18397     version_type=linux
18398     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18399     soname_spec='$libname${shared_ext}.$major'
18400     shlibpath_var=LD_LIBRARY_PATH
18401   fi
18402   ;;
18403
18404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18405   version_type=freebsd-elf
18406   need_lib_prefix=no
18407   need_version=no
18408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18409   soname_spec='${libname}${release}${shared_ext}$major'
18410   shlibpath_var=LD_LIBRARY_PATH
18411   hardcode_into_libs=yes
18412   if test "$with_gnu_ld" = yes; then
18413     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18414     shlibpath_overrides_runpath=no
18415   else
18416     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18417     shlibpath_overrides_runpath=yes
18418     case $host_os in
18419       sco3.2v5*)
18420         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18421         ;;
18422     esac
18423   fi
18424   sys_lib_dlsearch_path_spec='/usr/lib'
18425   ;;
18426
18427 uts4*)
18428   version_type=linux
18429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430   soname_spec='${libname}${release}${shared_ext}$major'
18431   shlibpath_var=LD_LIBRARY_PATH
18432   ;;
18433
18434 *)
18435   dynamic_linker=no
18436   ;;
18437 esac
18438 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18439 echo "${ECHO_T}$dynamic_linker" >&6; }
18440 test "$dynamic_linker" = no && can_build_shared=no
18441
18442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18443 if test "$GCC" = yes; then
18444   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18445 fi
18446
18447 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18448 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18449 hardcode_action_GCJ=
18450 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18451    test -n "$runpath_var_GCJ" || \
18452    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18453
18454   # We can hardcode non-existant directories.
18455   if test "$hardcode_direct_GCJ" != no &&
18456      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18457      # have to relink, otherwise we might link with an installed library
18458      # when we should be linking with a yet-to-be-installed one
18459      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18460      test "$hardcode_minus_L_GCJ" != no; then
18461     # Linking always hardcodes the temporary library directory.
18462     hardcode_action_GCJ=relink
18463   else
18464     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18465     hardcode_action_GCJ=immediate
18466   fi
18467 else
18468   # We cannot hardcode anything, or else we can only hardcode existing
18469   # directories.
18470   hardcode_action_GCJ=unsupported
18471 fi
18472 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18473 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18474
18475 if test "$hardcode_action_GCJ" = relink; then
18476   # Fast installation is not supported
18477   enable_fast_install=no
18478 elif test "$shlibpath_overrides_runpath" = yes ||
18479      test "$enable_shared" = no; then
18480   # Fast installation is not necessary
18481   enable_fast_install=needless
18482 fi
18483
18484
18485 # The else clause should only fire when bootstrapping the
18486 # libtool distribution, otherwise you forgot to ship ltmain.sh
18487 # with your package, and you will get complaints that there are
18488 # no rules to generate ltmain.sh.
18489 if test -f "$ltmain"; then
18490   # See if we are running on zsh, and set the options which allow our commands through
18491   # without removal of \ escapes.
18492   if test -n "${ZSH_VERSION+set}" ; then
18493     setopt NO_GLOB_SUBST
18494   fi
18495   # Now quote all the things that may contain metacharacters while being
18496   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18497   # variables and quote the copies for generation of the libtool script.
18498   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18499     SED SHELL STRIP \
18500     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18501     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18502     deplibs_check_method reload_flag reload_cmds need_locks \
18503     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18504     lt_cv_sys_global_symbol_to_c_name_address \
18505     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18506     old_postinstall_cmds old_postuninstall_cmds \
18507     compiler_GCJ \
18508     CC_GCJ \
18509     LD_GCJ \
18510     lt_prog_compiler_wl_GCJ \
18511     lt_prog_compiler_pic_GCJ \
18512     lt_prog_compiler_static_GCJ \
18513     lt_prog_compiler_no_builtin_flag_GCJ \
18514     export_dynamic_flag_spec_GCJ \
18515     thread_safe_flag_spec_GCJ \
18516     whole_archive_flag_spec_GCJ \
18517     enable_shared_with_static_runtimes_GCJ \
18518     old_archive_cmds_GCJ \
18519     old_archive_from_new_cmds_GCJ \
18520     predep_objects_GCJ \
18521     postdep_objects_GCJ \
18522     predeps_GCJ \
18523     postdeps_GCJ \
18524     compiler_lib_search_path_GCJ \
18525     archive_cmds_GCJ \
18526     archive_expsym_cmds_GCJ \
18527     postinstall_cmds_GCJ \
18528     postuninstall_cmds_GCJ \
18529     old_archive_from_expsyms_cmds_GCJ \
18530     allow_undefined_flag_GCJ \
18531     no_undefined_flag_GCJ \
18532     export_symbols_cmds_GCJ \
18533     hardcode_libdir_flag_spec_GCJ \
18534     hardcode_libdir_flag_spec_ld_GCJ \
18535     hardcode_libdir_separator_GCJ \
18536     hardcode_automatic_GCJ \
18537     module_cmds_GCJ \
18538     module_expsym_cmds_GCJ \
18539     lt_cv_prog_compiler_c_o_GCJ \
18540     exclude_expsyms_GCJ \
18541     include_expsyms_GCJ; do
18542
18543     case $var in
18544     old_archive_cmds_GCJ | \
18545     old_archive_from_new_cmds_GCJ | \
18546     archive_cmds_GCJ | \
18547     archive_expsym_cmds_GCJ | \
18548     module_cmds_GCJ | \
18549     module_expsym_cmds_GCJ | \
18550     old_archive_from_expsyms_cmds_GCJ | \
18551     export_symbols_cmds_GCJ | \
18552     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18553     postinstall_cmds | postuninstall_cmds | \
18554     old_postinstall_cmds | old_postuninstall_cmds | \
18555     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18556       # Double-quote double-evaled strings.
18557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18558       ;;
18559     *)
18560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18561       ;;
18562     esac
18563   done
18564
18565   case $lt_echo in
18566   *'\$0 --fallback-echo"')
18567     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18568     ;;
18569   esac
18570
18571 cfgfile="$ofile"
18572
18573   cat <<__EOF__ >> "$cfgfile"
18574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18575
18576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18577
18578 # Shell to use when invoking shell scripts.
18579 SHELL=$lt_SHELL
18580
18581 # Whether or not to build shared libraries.
18582 build_libtool_libs=$enable_shared
18583
18584 # Whether or not to build static libraries.
18585 build_old_libs=$enable_static
18586
18587 # Whether or not to add -lc for building shared libraries.
18588 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18589
18590 # Whether or not to disallow shared libs when runtime libs are static
18591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18592
18593 # Whether or not to optimize for fast installation.
18594 fast_install=$enable_fast_install
18595
18596 # The host system.
18597 host_alias=$host_alias
18598 host=$host
18599 host_os=$host_os
18600
18601 # The build system.
18602 build_alias=$build_alias
18603 build=$build
18604 build_os=$build_os
18605
18606 # An echo program that does not interpret backslashes.
18607 echo=$lt_echo
18608
18609 # The archiver.
18610 AR=$lt_AR
18611 AR_FLAGS=$lt_AR_FLAGS
18612
18613 # A C compiler.
18614 LTCC=$lt_LTCC
18615
18616 # LTCC compiler flags.
18617 LTCFLAGS=$lt_LTCFLAGS
18618
18619 # A language-specific compiler.
18620 CC=$lt_compiler_GCJ
18621
18622 # Is the compiler the GNU C compiler?
18623 with_gcc=$GCC_GCJ
18624
18625 # An ERE matcher.
18626 EGREP=$lt_EGREP
18627
18628 # The linker used to build libraries.
18629 LD=$lt_LD_GCJ
18630
18631 # Whether we need hard or soft links.
18632 LN_S=$lt_LN_S
18633
18634 # A BSD-compatible nm program.
18635 NM=$lt_NM
18636
18637 # A symbol stripping program
18638 STRIP=$lt_STRIP
18639
18640 # Used to examine libraries when file_magic_cmd begins "file"
18641 MAGIC_CMD=$MAGIC_CMD
18642
18643 # Used on cygwin: DLL creation program.
18644 DLLTOOL="$DLLTOOL"
18645
18646 # Used on cygwin: object dumper.
18647 OBJDUMP="$OBJDUMP"
18648
18649 # Used on cygwin: assembler.
18650 AS="$AS"
18651
18652 # The name of the directory that contains temporary libtool files.
18653 objdir=$objdir
18654
18655 # How to create reloadable object files.
18656 reload_flag=$lt_reload_flag
18657 reload_cmds=$lt_reload_cmds
18658
18659 # How to pass a linker flag through the compiler.
18660 wl=$lt_lt_prog_compiler_wl_GCJ
18661
18662 # Object file suffix (normally "o").
18663 objext="$ac_objext"
18664
18665 # Old archive suffix (normally "a").
18666 libext="$libext"
18667
18668 # Shared library suffix (normally ".so").
18669 shrext_cmds='$shrext_cmds'
18670
18671 # Executable file suffix (normally "").
18672 exeext="$exeext"
18673
18674 # Additional compiler flags for building library objects.
18675 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18676 pic_mode=$pic_mode
18677
18678 # What is the maximum length of a command?
18679 max_cmd_len=$lt_cv_sys_max_cmd_len
18680
18681 # Does compiler simultaneously support -c and -o options?
18682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18683
18684 # Must we lock files when doing compilation?
18685 need_locks=$lt_need_locks
18686
18687 # Do we need the lib prefix for modules?
18688 need_lib_prefix=$need_lib_prefix
18689
18690 # Do we need a version for libraries?
18691 need_version=$need_version
18692
18693 # Whether dlopen is supported.
18694 dlopen_support=$enable_dlopen
18695
18696 # Whether dlopen of programs is supported.
18697 dlopen_self=$enable_dlopen_self
18698
18699 # Whether dlopen of statically linked programs is supported.
18700 dlopen_self_static=$enable_dlopen_self_static
18701
18702 # Compiler flag to prevent dynamic linking.
18703 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18704
18705 # Compiler flag to turn off builtin functions.
18706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18707
18708 # Compiler flag to allow reflexive dlopens.
18709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18710
18711 # Compiler flag to generate shared objects directly from archives.
18712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18713
18714 # Compiler flag to generate thread-safe objects.
18715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18716
18717 # Library versioning type.
18718 version_type=$version_type
18719
18720 # Format of library name prefix.
18721 libname_spec=$lt_libname_spec
18722
18723 # List of archive names.  First name is the real one, the rest are links.
18724 # The last name is the one that the linker finds with -lNAME.
18725 library_names_spec=$lt_library_names_spec
18726
18727 # The coded name of the library, if different from the real name.
18728 soname_spec=$lt_soname_spec
18729
18730 # Commands used to build and install an old-style archive.
18731 RANLIB=$lt_RANLIB
18732 old_archive_cmds=$lt_old_archive_cmds_GCJ
18733 old_postinstall_cmds=$lt_old_postinstall_cmds
18734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18735
18736 # Create an old-style archive from a shared archive.
18737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18738
18739 # Create a temporary old-style archive to link instead of a shared archive.
18740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18741
18742 # Commands used to build and install a shared archive.
18743 archive_cmds=$lt_archive_cmds_GCJ
18744 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18745 postinstall_cmds=$lt_postinstall_cmds
18746 postuninstall_cmds=$lt_postuninstall_cmds
18747
18748 # Commands used to build a loadable module (assumed same as above if empty)
18749 module_cmds=$lt_module_cmds_GCJ
18750 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18751
18752 # Commands to strip libraries.
18753 old_striplib=$lt_old_striplib
18754 striplib=$lt_striplib
18755
18756 # Dependencies to place before the objects being linked to create a
18757 # shared library.
18758 predep_objects=$lt_predep_objects_GCJ
18759
18760 # Dependencies to place after the objects being linked to create a
18761 # shared library.
18762 postdep_objects=$lt_postdep_objects_GCJ
18763
18764 # Dependencies to place before the objects being linked to create a
18765 # shared library.
18766 predeps=$lt_predeps_GCJ
18767
18768 # Dependencies to place after the objects being linked to create a
18769 # shared library.
18770 postdeps=$lt_postdeps_GCJ
18771
18772 # The library search path used internally by the compiler when linking
18773 # a shared library.
18774 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18775
18776 # Method to check whether dependent libraries are shared objects.
18777 deplibs_check_method=$lt_deplibs_check_method
18778
18779 # Command to use when deplibs_check_method == file_magic.
18780 file_magic_cmd=$lt_file_magic_cmd
18781
18782 # Flag that allows shared libraries with undefined symbols to be built.
18783 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18784
18785 # Flag that forces no undefined symbols.
18786 no_undefined_flag=$lt_no_undefined_flag_GCJ
18787
18788 # Commands used to finish a libtool library installation in a directory.
18789 finish_cmds=$lt_finish_cmds
18790
18791 # Same as above, but a single script fragment to be evaled but not shown.
18792 finish_eval=$lt_finish_eval
18793
18794 # Take the output of nm and produce a listing of raw symbols and C names.
18795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18796
18797 # Transform the output of nm in a proper C declaration
18798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18799
18800 # Transform the output of nm in a C name address pair
18801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18802
18803 # This is the shared library runtime path variable.
18804 runpath_var=$runpath_var
18805
18806 # This is the shared library path variable.
18807 shlibpath_var=$shlibpath_var
18808
18809 # Is shlibpath searched before the hard-coded library search path?
18810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18811
18812 # How to hardcode a shared library path into an executable.
18813 hardcode_action=$hardcode_action_GCJ
18814
18815 # Whether we should hardcode library paths into libraries.
18816 hardcode_into_libs=$hardcode_into_libs
18817
18818 # Flag to hardcode \$libdir into a binary during linking.
18819 # This must work even if \$libdir does not exist.
18820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18821
18822 # If ld is used when linking, flag to hardcode \$libdir into
18823 # a binary during linking. This must work even if \$libdir does
18824 # not exist.
18825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18826
18827 # Whether we need a single -rpath flag with a separated argument.
18828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18829
18830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_direct=$hardcode_direct_GCJ
18833
18834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18835 # resulting binary.
18836 hardcode_minus_L=$hardcode_minus_L_GCJ
18837
18838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18839 # the resulting binary.
18840 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18841
18842 # Set to yes if building a shared library automatically hardcodes DIR into the library
18843 # and all subsequent libraries and executables linked against it.
18844 hardcode_automatic=$hardcode_automatic_GCJ
18845
18846 # Variables whose values should be saved in libtool wrapper scripts and
18847 # restored at relink time.
18848 variables_saved_for_relink="$variables_saved_for_relink"
18849
18850 # Whether libtool must link a program against all its dependency libraries.
18851 link_all_deplibs=$link_all_deplibs_GCJ
18852
18853 # Compile-time system search path for libraries
18854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18855
18856 # Run-time system search path for libraries
18857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18858
18859 # Fix the shell variable \$srcfile for the compiler.
18860 fix_srcfile_path="$fix_srcfile_path_GCJ"
18861
18862 # Set to yes if exported symbols are required.
18863 always_export_symbols=$always_export_symbols_GCJ
18864
18865 # The commands to list exported symbols.
18866 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18867
18868 # The commands to extract the exported symbol list from a shared archive.
18869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18870
18871 # Symbols that should not be listed in the preloaded symbols.
18872 exclude_expsyms=$lt_exclude_expsyms_GCJ
18873
18874 # Symbols that must always be exported.
18875 include_expsyms=$lt_include_expsyms_GCJ
18876
18877 # ### END LIBTOOL TAG CONFIG: $tagname
18878
18879 __EOF__
18880
18881
18882 else
18883   # If there is no Makefile yet, we rely on a make rule to execute
18884   # `config.status --recheck' to rerun these tests and create the
18885   # libtool script then.
18886   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18887   if test -f "$ltmain_in"; then
18888     test -f Makefile && make "$ltmain"
18889   fi
18890 fi
18891
18892
18893 ac_ext=c
18894 ac_cpp='$CPP $CPPFLAGS'
18895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18898
18899 CC="$lt_save_CC"
18900
18901         else
18902           tagname=""
18903         fi
18904         ;;
18905
18906       RC)
18907
18908
18909 # Source file extension for RC test sources.
18910 ac_ext=rc
18911
18912 # Object file extension for compiled RC test sources.
18913 objext=o
18914 objext_RC=$objext
18915
18916 # Code to be used in simple compile tests
18917 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18918
18919 # Code to be used in simple link tests
18920 lt_simple_link_test_code="$lt_simple_compile_test_code"
18921
18922 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18923
18924 # If no C compiler was specified, use CC.
18925 LTCC=${LTCC-"$CC"}
18926
18927 # If no C compiler flags were specified, use CFLAGS.
18928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18929
18930 # Allow CC to be a program name with arguments.
18931 compiler=$CC
18932
18933
18934 # save warnings/boilerplate of simple test code
18935 ac_outfile=conftest.$ac_objext
18936 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18938 _lt_compiler_boilerplate=`cat conftest.err`
18939 $rm conftest*
18940
18941 ac_outfile=conftest.$ac_objext
18942 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18944 _lt_linker_boilerplate=`cat conftest.err`
18945 $rm conftest*
18946
18947
18948 # Allow CC to be a program name with arguments.
18949 lt_save_CC="$CC"
18950 CC=${RC-"windres"}
18951 compiler=$CC
18952 compiler_RC=$CC
18953 for cc_temp in $compiler""; do
18954   case $cc_temp in
18955     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18956     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18957     \-*) ;;
18958     *) break;;
18959   esac
18960 done
18961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18962
18963 lt_cv_prog_compiler_c_o_RC=yes
18964
18965 # The else clause should only fire when bootstrapping the
18966 # libtool distribution, otherwise you forgot to ship ltmain.sh
18967 # with your package, and you will get complaints that there are
18968 # no rules to generate ltmain.sh.
18969 if test -f "$ltmain"; then
18970   # See if we are running on zsh, and set the options which allow our commands through
18971   # without removal of \ escapes.
18972   if test -n "${ZSH_VERSION+set}" ; then
18973     setopt NO_GLOB_SUBST
18974   fi
18975   # Now quote all the things that may contain metacharacters while being
18976   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18977   # variables and quote the copies for generation of the libtool script.
18978   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18979     SED SHELL STRIP \
18980     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18981     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18982     deplibs_check_method reload_flag reload_cmds need_locks \
18983     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18984     lt_cv_sys_global_symbol_to_c_name_address \
18985     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18986     old_postinstall_cmds old_postuninstall_cmds \
18987     compiler_RC \
18988     CC_RC \
18989     LD_RC \
18990     lt_prog_compiler_wl_RC \
18991     lt_prog_compiler_pic_RC \
18992     lt_prog_compiler_static_RC \
18993     lt_prog_compiler_no_builtin_flag_RC \
18994     export_dynamic_flag_spec_RC \
18995     thread_safe_flag_spec_RC \
18996     whole_archive_flag_spec_RC \
18997     enable_shared_with_static_runtimes_RC \
18998     old_archive_cmds_RC \
18999     old_archive_from_new_cmds_RC \
19000     predep_objects_RC \
19001     postdep_objects_RC \
19002     predeps_RC \
19003     postdeps_RC \
19004     compiler_lib_search_path_RC \
19005     archive_cmds_RC \
19006     archive_expsym_cmds_RC \
19007     postinstall_cmds_RC \
19008     postuninstall_cmds_RC \
19009     old_archive_from_expsyms_cmds_RC \
19010     allow_undefined_flag_RC \
19011     no_undefined_flag_RC \
19012     export_symbols_cmds_RC \
19013     hardcode_libdir_flag_spec_RC \
19014     hardcode_libdir_flag_spec_ld_RC \
19015     hardcode_libdir_separator_RC \
19016     hardcode_automatic_RC \
19017     module_cmds_RC \
19018     module_expsym_cmds_RC \
19019     lt_cv_prog_compiler_c_o_RC \
19020     exclude_expsyms_RC \
19021     include_expsyms_RC; do
19022
19023     case $var in
19024     old_archive_cmds_RC | \
19025     old_archive_from_new_cmds_RC | \
19026     archive_cmds_RC | \
19027     archive_expsym_cmds_RC | \
19028     module_cmds_RC | \
19029     module_expsym_cmds_RC | \
19030     old_archive_from_expsyms_cmds_RC | \
19031     export_symbols_cmds_RC | \
19032     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19033     postinstall_cmds | postuninstall_cmds | \
19034     old_postinstall_cmds | old_postuninstall_cmds | \
19035     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19036       # Double-quote double-evaled strings.
19037       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19038       ;;
19039     *)
19040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19041       ;;
19042     esac
19043   done
19044
19045   case $lt_echo in
19046   *'\$0 --fallback-echo"')
19047     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19048     ;;
19049   esac
19050
19051 cfgfile="$ofile"
19052
19053   cat <<__EOF__ >> "$cfgfile"
19054 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19055
19056 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19057
19058 # Shell to use when invoking shell scripts.
19059 SHELL=$lt_SHELL
19060
19061 # Whether or not to build shared libraries.
19062 build_libtool_libs=$enable_shared
19063
19064 # Whether or not to build static libraries.
19065 build_old_libs=$enable_static
19066
19067 # Whether or not to add -lc for building shared libraries.
19068 build_libtool_need_lc=$archive_cmds_need_lc_RC
19069
19070 # Whether or not to disallow shared libs when runtime libs are static
19071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19072
19073 # Whether or not to optimize for fast installation.
19074 fast_install=$enable_fast_install
19075
19076 # The host system.
19077 host_alias=$host_alias
19078 host=$host
19079 host_os=$host_os
19080
19081 # The build system.
19082 build_alias=$build_alias
19083 build=$build
19084 build_os=$build_os
19085
19086 # An echo program that does not interpret backslashes.
19087 echo=$lt_echo
19088
19089 # The archiver.
19090 AR=$lt_AR
19091 AR_FLAGS=$lt_AR_FLAGS
19092
19093 # A C compiler.
19094 LTCC=$lt_LTCC
19095
19096 # LTCC compiler flags.
19097 LTCFLAGS=$lt_LTCFLAGS
19098
19099 # A language-specific compiler.
19100 CC=$lt_compiler_RC
19101
19102 # Is the compiler the GNU C compiler?
19103 with_gcc=$GCC_RC
19104
19105 # An ERE matcher.
19106 EGREP=$lt_EGREP
19107
19108 # The linker used to build libraries.
19109 LD=$lt_LD_RC
19110
19111 # Whether we need hard or soft links.
19112 LN_S=$lt_LN_S
19113
19114 # A BSD-compatible nm program.
19115 NM=$lt_NM
19116
19117 # A symbol stripping program
19118 STRIP=$lt_STRIP
19119
19120 # Used to examine libraries when file_magic_cmd begins "file"
19121 MAGIC_CMD=$MAGIC_CMD
19122
19123 # Used on cygwin: DLL creation program.
19124 DLLTOOL="$DLLTOOL"
19125
19126 # Used on cygwin: object dumper.
19127 OBJDUMP="$OBJDUMP"
19128
19129 # Used on cygwin: assembler.
19130 AS="$AS"
19131
19132 # The name of the directory that contains temporary libtool files.
19133 objdir=$objdir
19134
19135 # How to create reloadable object files.
19136 reload_flag=$lt_reload_flag
19137 reload_cmds=$lt_reload_cmds
19138
19139 # How to pass a linker flag through the compiler.
19140 wl=$lt_lt_prog_compiler_wl_RC
19141
19142 # Object file suffix (normally "o").
19143 objext="$ac_objext"
19144
19145 # Old archive suffix (normally "a").
19146 libext="$libext"
19147
19148 # Shared library suffix (normally ".so").
19149 shrext_cmds='$shrext_cmds'
19150
19151 # Executable file suffix (normally "").
19152 exeext="$exeext"
19153
19154 # Additional compiler flags for building library objects.
19155 pic_flag=$lt_lt_prog_compiler_pic_RC
19156 pic_mode=$pic_mode
19157
19158 # What is the maximum length of a command?
19159 max_cmd_len=$lt_cv_sys_max_cmd_len
19160
19161 # Does compiler simultaneously support -c and -o options?
19162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19163
19164 # Must we lock files when doing compilation?
19165 need_locks=$lt_need_locks
19166
19167 # Do we need the lib prefix for modules?
19168 need_lib_prefix=$need_lib_prefix
19169
19170 # Do we need a version for libraries?
19171 need_version=$need_version
19172
19173 # Whether dlopen is supported.
19174 dlopen_support=$enable_dlopen
19175
19176 # Whether dlopen of programs is supported.
19177 dlopen_self=$enable_dlopen_self
19178
19179 # Whether dlopen of statically linked programs is supported.
19180 dlopen_self_static=$enable_dlopen_self_static
19181
19182 # Compiler flag to prevent dynamic linking.
19183 link_static_flag=$lt_lt_prog_compiler_static_RC
19184
19185 # Compiler flag to turn off builtin functions.
19186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19187
19188 # Compiler flag to allow reflexive dlopens.
19189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19190
19191 # Compiler flag to generate shared objects directly from archives.
19192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19193
19194 # Compiler flag to generate thread-safe objects.
19195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19196
19197 # Library versioning type.
19198 version_type=$version_type
19199
19200 # Format of library name prefix.
19201 libname_spec=$lt_libname_spec
19202
19203 # List of archive names.  First name is the real one, the rest are links.
19204 # The last name is the one that the linker finds with -lNAME.
19205 library_names_spec=$lt_library_names_spec
19206
19207 # The coded name of the library, if different from the real name.
19208 soname_spec=$lt_soname_spec
19209
19210 # Commands used to build and install an old-style archive.
19211 RANLIB=$lt_RANLIB
19212 old_archive_cmds=$lt_old_archive_cmds_RC
19213 old_postinstall_cmds=$lt_old_postinstall_cmds
19214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19215
19216 # Create an old-style archive from a shared archive.
19217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19218
19219 # Create a temporary old-style archive to link instead of a shared archive.
19220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19221
19222 # Commands used to build and install a shared archive.
19223 archive_cmds=$lt_archive_cmds_RC
19224 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19225 postinstall_cmds=$lt_postinstall_cmds
19226 postuninstall_cmds=$lt_postuninstall_cmds
19227
19228 # Commands used to build a loadable module (assumed same as above if empty)
19229 module_cmds=$lt_module_cmds_RC
19230 module_expsym_cmds=$lt_module_expsym_cmds_RC
19231
19232 # Commands to strip libraries.
19233 old_striplib=$lt_old_striplib
19234 striplib=$lt_striplib
19235
19236 # Dependencies to place before the objects being linked to create a
19237 # shared library.
19238 predep_objects=$lt_predep_objects_RC
19239
19240 # Dependencies to place after the objects being linked to create a
19241 # shared library.
19242 postdep_objects=$lt_postdep_objects_RC
19243
19244 # Dependencies to place before the objects being linked to create a
19245 # shared library.
19246 predeps=$lt_predeps_RC
19247
19248 # Dependencies to place after the objects being linked to create a
19249 # shared library.
19250 postdeps=$lt_postdeps_RC
19251
19252 # The library search path used internally by the compiler when linking
19253 # a shared library.
19254 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19255
19256 # Method to check whether dependent libraries are shared objects.
19257 deplibs_check_method=$lt_deplibs_check_method
19258
19259 # Command to use when deplibs_check_method == file_magic.
19260 file_magic_cmd=$lt_file_magic_cmd
19261
19262 # Flag that allows shared libraries with undefined symbols to be built.
19263 allow_undefined_flag=$lt_allow_undefined_flag_RC
19264
19265 # Flag that forces no undefined symbols.
19266 no_undefined_flag=$lt_no_undefined_flag_RC
19267
19268 # Commands used to finish a libtool library installation in a directory.
19269 finish_cmds=$lt_finish_cmds
19270
19271 # Same as above, but a single script fragment to be evaled but not shown.
19272 finish_eval=$lt_finish_eval
19273
19274 # Take the output of nm and produce a listing of raw symbols and C names.
19275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19276
19277 # Transform the output of nm in a proper C declaration
19278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19279
19280 # Transform the output of nm in a C name address pair
19281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19282
19283 # This is the shared library runtime path variable.
19284 runpath_var=$runpath_var
19285
19286 # This is the shared library path variable.
19287 shlibpath_var=$shlibpath_var
19288
19289 # Is shlibpath searched before the hard-coded library search path?
19290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19291
19292 # How to hardcode a shared library path into an executable.
19293 hardcode_action=$hardcode_action_RC
19294
19295 # Whether we should hardcode library paths into libraries.
19296 hardcode_into_libs=$hardcode_into_libs
19297
19298 # Flag to hardcode \$libdir into a binary during linking.
19299 # This must work even if \$libdir does not exist.
19300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19301
19302 # If ld is used when linking, flag to hardcode \$libdir into
19303 # a binary during linking. This must work even if \$libdir does
19304 # not exist.
19305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19306
19307 # Whether we need a single -rpath flag with a separated argument.
19308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19309
19310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_direct=$hardcode_direct_RC
19313
19314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19315 # resulting binary.
19316 hardcode_minus_L=$hardcode_minus_L_RC
19317
19318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19319 # the resulting binary.
19320 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19321
19322 # Set to yes if building a shared library automatically hardcodes DIR into the library
19323 # and all subsequent libraries and executables linked against it.
19324 hardcode_automatic=$hardcode_automatic_RC
19325
19326 # Variables whose values should be saved in libtool wrapper scripts and
19327 # restored at relink time.
19328 variables_saved_for_relink="$variables_saved_for_relink"
19329
19330 # Whether libtool must link a program against all its dependency libraries.
19331 link_all_deplibs=$link_all_deplibs_RC
19332
19333 # Compile-time system search path for libraries
19334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19335
19336 # Run-time system search path for libraries
19337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19338
19339 # Fix the shell variable \$srcfile for the compiler.
19340 fix_srcfile_path="$fix_srcfile_path_RC"
19341
19342 # Set to yes if exported symbols are required.
19343 always_export_symbols=$always_export_symbols_RC
19344
19345 # The commands to list exported symbols.
19346 export_symbols_cmds=$lt_export_symbols_cmds_RC
19347
19348 # The commands to extract the exported symbol list from a shared archive.
19349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19350
19351 # Symbols that should not be listed in the preloaded symbols.
19352 exclude_expsyms=$lt_exclude_expsyms_RC
19353
19354 # Symbols that must always be exported.
19355 include_expsyms=$lt_include_expsyms_RC
19356
19357 # ### END LIBTOOL TAG CONFIG: $tagname
19358
19359 __EOF__
19360
19361
19362 else
19363   # If there is no Makefile yet, we rely on a make rule to execute
19364   # `config.status --recheck' to rerun these tests and create the
19365   # libtool script then.
19366   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19367   if test -f "$ltmain_in"; then
19368     test -f Makefile && make "$ltmain"
19369   fi
19370 fi
19371
19372
19373 ac_ext=c
19374 ac_cpp='$CPP $CPPFLAGS'
19375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19378
19379 CC="$lt_save_CC"
19380
19381         ;;
19382
19383       *)
19384         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19385 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19386    { (exit 1); exit 1; }; }
19387         ;;
19388       esac
19389
19390       # Append the new tag name to the list of available tags.
19391       if test -n "$tagname" ; then
19392       available_tags="$available_tags $tagname"
19393     fi
19394     fi
19395   done
19396   IFS="$lt_save_ifs"
19397
19398   # Now substitute the updated list of available tags.
19399   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19400     mv "${ofile}T" "$ofile"
19401     chmod +x "$ofile"
19402   else
19403     rm -f "${ofile}T"
19404     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19405 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19406    { (exit 1); exit 1; }; }
19407   fi
19408 fi
19409
19410
19411
19412 # This can be used to rebuild libtool when needed
19413 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19414
19415 # Always use our own libtool.
19416 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19417
19418 # Prevent multiple expansion
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443 ###############
19444 ## System checks
19445 ##
19446
19447   { echo "$as_me:$LINENO: result: " >&5
19448 echo "${ECHO_T}" >&6; }
19449   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19450 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19451
19452 ac_ext=c
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457 if test -n "$ac_tool_prefix"; then
19458   for ac_prog in xlC gcc cc
19459   do
19460     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19464 if test "${ac_cv_prog_CC+set}" = set; then
19465   echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467   if test -n "$CC"; then
19468   ac_cv_prog_CC="$CC" # Let the user override the test.
19469 else
19470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19472 do
19473   IFS=$as_save_IFS
19474   test -z "$as_dir" && as_dir=.
19475   for ac_exec_ext in '' $ac_executable_extensions; do
19476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19477     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19479     break 2
19480   fi
19481 done
19482 done
19483 IFS=$as_save_IFS
19484
19485 fi
19486 fi
19487 CC=$ac_cv_prog_CC
19488 if test -n "$CC"; then
19489   { echo "$as_me:$LINENO: result: $CC" >&5
19490 echo "${ECHO_T}$CC" >&6; }
19491 else
19492   { echo "$as_me:$LINENO: result: no" >&5
19493 echo "${ECHO_T}no" >&6; }
19494 fi
19495
19496
19497     test -n "$CC" && break
19498   done
19499 fi
19500 if test -z "$CC"; then
19501   ac_ct_CC=$CC
19502   for ac_prog in xlC gcc cc
19503 do
19504   # Extract the first word of "$ac_prog", so it can be a program name with args.
19505 set dummy $ac_prog; ac_word=$2
19506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511   if test -n "$ac_ct_CC"; then
19512   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19513 else
19514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19515 for as_dir in $PATH
19516 do
19517   IFS=$as_save_IFS
19518   test -z "$as_dir" && as_dir=.
19519   for ac_exec_ext in '' $ac_executable_extensions; do
19520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19521     ac_cv_prog_ac_ct_CC="$ac_prog"
19522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19523     break 2
19524   fi
19525 done
19526 done
19527 IFS=$as_save_IFS
19528
19529 fi
19530 fi
19531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19532 if test -n "$ac_ct_CC"; then
19533   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19534 echo "${ECHO_T}$ac_ct_CC" >&6; }
19535 else
19536   { echo "$as_me:$LINENO: result: no" >&5
19537 echo "${ECHO_T}no" >&6; }
19538 fi
19539
19540
19541   test -n "$ac_ct_CC" && break
19542 done
19543
19544   if test "x$ac_ct_CC" = x; then
19545     CC=""
19546   else
19547     case $cross_compiling:$ac_tool_warned in
19548 yes:)
19549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19550 whose name does not start with the host triplet.  If you think this
19551 configuration is useful to you, please write to autoconf@gnu.org." >&5
19552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19553 whose name does not start with the host triplet.  If you think this
19554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19555 ac_tool_warned=yes ;;
19556 esac
19557     CC=$ac_ct_CC
19558   fi
19559 fi
19560
19561
19562 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19563 See \`config.log' for more details." >&5
19564 echo "$as_me: error: no acceptable C compiler found in \$PATH
19565 See \`config.log' for more details." >&2;}
19566    { (exit 1); exit 1; }; }
19567
19568 # Provide some information about the compiler.
19569 echo "$as_me:$LINENO: checking for C compiler version" >&5
19570 ac_compiler=`set X $ac_compile; echo $2`
19571 { (ac_try="$ac_compiler --version >&5"
19572 case "(($ac_try" in
19573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574   *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577   (eval "$ac_compiler --version >&5") 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }
19581 { (ac_try="$ac_compiler -v >&5"
19582 case "(($ac_try" in
19583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584   *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587   (eval "$ac_compiler -v >&5") 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }
19591 { (ac_try="$ac_compiler -V >&5"
19592 case "(($ac_try" in
19593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594   *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597   (eval "$ac_compiler -V >&5") 2>&5
19598   ac_status=$?
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); }
19601
19602 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613
19614 int
19615 main ()
19616 {
19617 #ifndef __GNUC__
19618        choke me
19619 #endif
19620
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632   (eval "$ac_compile") 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } && {
19639          test -z "$ac_c_werror_flag" ||
19640          test ! -s conftest.err
19641        } && test -s conftest.$ac_objext; then
19642   ac_compiler_gnu=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647         ac_compiler_gnu=no
19648 fi
19649
19650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19652
19653 fi
19654 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19656 GCC=`test $ac_compiler_gnu = yes && echo yes`
19657 ac_test_CFLAGS=${CFLAGS+set}
19658 ac_save_CFLAGS=$CFLAGS
19659 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19660 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19661 if test "${ac_cv_prog_cc_g+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   ac_save_c_werror_flag=$ac_c_werror_flag
19665    ac_c_werror_flag=yes
19666    ac_cv_prog_cc_g=no
19667    CFLAGS="-g"
19668    cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674
19675 int
19676 main ()
19677 {
19678
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_compile") 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } && {
19697          test -z "$ac_c_werror_flag" ||
19698          test ! -s conftest.err
19699        } && test -s conftest.$ac_objext; then
19700   ac_cv_prog_cc_g=yes
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705         CFLAGS=""
19706       cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712
19713 int
19714 main ()
19715 {
19716
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest.$ac_objext
19722 if { (ac_try="$ac_compile"
19723 case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_compile") 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } && {
19735          test -z "$ac_c_werror_flag" ||
19736          test ! -s conftest.err
19737        } && test -s conftest.$ac_objext; then
19738   :
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743         ac_c_werror_flag=$ac_save_c_werror_flag
19744          CFLAGS="-g"
19745          cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h.  */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h.  */
19751
19752 int
19753 main ()
19754 {
19755
19756   ;
19757   return 0;
19758 }
19759 _ACEOF
19760 rm -f conftest.$ac_objext
19761 if { (ac_try="$ac_compile"
19762 case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_compile") 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } && {
19774          test -z "$ac_c_werror_flag" ||
19775          test ! -s conftest.err
19776        } && test -s conftest.$ac_objext; then
19777   ac_cv_prog_cc_g=yes
19778 else
19779   echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782
19783 fi
19784
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792    ac_c_werror_flag=$ac_save_c_werror_flag
19793 fi
19794 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19795 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19796 if test "$ac_test_CFLAGS" = set; then
19797   CFLAGS=$ac_save_CFLAGS
19798 elif test $ac_cv_prog_cc_g = yes; then
19799   if test "$GCC" = yes; then
19800     CFLAGS="-g -O2"
19801   else
19802     CFLAGS="-g"
19803   fi
19804 else
19805   if test "$GCC" = yes; then
19806     CFLAGS="-O2"
19807   else
19808     CFLAGS=
19809   fi
19810 fi
19811 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19812 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19813 if test "${ac_cv_prog_cc_c89+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   ac_cv_prog_cc_c89=no
19817 ac_save_CC=$CC
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 #include <stdarg.h>
19825 #include <stdio.h>
19826 #include <sys/types.h>
19827 #include <sys/stat.h>
19828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19829 struct buf { int x; };
19830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19831 static char *e (p, i)
19832      char **p;
19833      int i;
19834 {
19835   return p[i];
19836 }
19837 static char *f (char * (*g) (char **, int), char **p, ...)
19838 {
19839   char *s;
19840   va_list v;
19841   va_start (v,p);
19842   s = g (p, va_arg (v,int));
19843   va_end (v);
19844   return s;
19845 }
19846
19847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19848    function prototypes and stuff, but not '\xHH' hex character constants.
19849    These don't provoke an error unfortunately, instead are silently treated
19850    as 'x'.  The following induces an error, until -std is added to get
19851    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19852    array size at least.  It's necessary to write '\x00'==0 to get something
19853    that's true only with -std.  */
19854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19855
19856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19857    inside strings and character constants.  */
19858 #define FOO(x) 'x'
19859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19860
19861 int test (int i, double x);
19862 struct s1 {int (*f) (int a);};
19863 struct s2 {int (*f) (double a);};
19864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19865 int argc;
19866 char **argv;
19867 int
19868 main ()
19869 {
19870 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19876         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19877 do
19878   CC="$ac_save_CC $ac_arg"
19879   rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_compile") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } && {
19893          test -z "$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        } && test -s conftest.$ac_objext; then
19896   ac_cv_prog_cc_c89=$ac_arg
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901
19902 fi
19903
19904 rm -f core conftest.err conftest.$ac_objext
19905   test "x$ac_cv_prog_cc_c89" != "xno" && break
19906 done
19907 rm -f conftest.$ac_ext
19908 CC=$ac_save_CC
19909
19910 fi
19911 # AC_CACHE_VAL
19912 case "x$ac_cv_prog_cc_c89" in
19913   x)
19914     { echo "$as_me:$LINENO: result: none needed" >&5
19915 echo "${ECHO_T}none needed" >&6; } ;;
19916   xno)
19917     { echo "$as_me:$LINENO: result: unsupported" >&5
19918 echo "${ECHO_T}unsupported" >&6; } ;;
19919   *)
19920     CC="$CC $ac_cv_prog_cc_c89"
19921     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19922 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19923 esac
19924
19925
19926 ac_ext=c
19927 ac_cpp='$CPP $CPPFLAGS'
19928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19931
19932 depcc="$CC"   am_compiler_list=
19933
19934 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19940   # We make a subdir and do the tests there.  Otherwise we can end up
19941   # making bogus files that we don't know about and never remove.  For
19942   # instance it was reported that on HP-UX the gcc test will end up
19943   # making a dummy file named `D' -- because `-MD' means `put the output
19944   # in D'.
19945   mkdir conftest.dir
19946   # Copy depcomp to subdir because otherwise we won't find it if we're
19947   # using a relative directory.
19948   cp "$am_depcomp" conftest.dir
19949   cd conftest.dir
19950   # We will build objects and dependencies in a subdirectory because
19951   # it helps to detect inapplicable dependency modes.  For instance
19952   # both Tru64's cc and ICC support -MD to output dependencies as a
19953   # side effect of compilation, but ICC will put the dependencies in
19954   # the current directory while Tru64 will put them in the object
19955   # directory.
19956   mkdir sub
19957
19958   am_cv_CC_dependencies_compiler_type=none
19959   if test "$am_compiler_list" = ""; then
19960      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19961   fi
19962   for depmode in $am_compiler_list; do
19963     # Setup a source with many dependencies, because some compilers
19964     # like to wrap large dependency lists on column 80 (with \), and
19965     # we should not choose a depcomp mode which is confused by this.
19966     #
19967     # We need to recreate these files for each test, as the compiler may
19968     # overwrite some of them when testing with obscure command lines.
19969     # This happens at least with the AIX C compiler.
19970     : > sub/conftest.c
19971     for i in 1 2 3 4 5 6; do
19972       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19973       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19974       # Solaris 8's {/usr,}/bin/sh.
19975       touch sub/conftst$i.h
19976     done
19977     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19978
19979     case $depmode in
19980     nosideeffect)
19981       # after this tag, mechanisms are not by side-effect, so they'll
19982       # only be used when explicitly requested
19983       if test "x$enable_dependency_tracking" = xyes; then
19984         continue
19985       else
19986         break
19987       fi
19988       ;;
19989     none) break ;;
19990     esac
19991     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19992     # mode.  It turns out that the SunPro C++ compiler does not properly
19993     # handle `-M -o', and we need to detect this.
19994     if depmode=$depmode \
19995        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19996        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19997        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19998          >/dev/null 2>conftest.err &&
19999        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20000        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20001        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20002        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20003       # icc doesn't choke on unknown options, it will just issue warnings
20004       # or remarks (even with -Werror).  So we grep stderr for any message
20005       # that says an option was ignored or not supported.
20006       # When given -MP, icc 7.0 and 7.1 complain thusly:
20007       #   icc: Command line warning: ignoring option '-M'; no argument required
20008       # The diagnosis changed in icc 8.0:
20009       #   icc: Command line remark: option '-MP' not supported
20010       if (grep 'ignoring option' conftest.err ||
20011           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20012         am_cv_CC_dependencies_compiler_type=$depmode
20013         break
20014       fi
20015     fi
20016   done
20017
20018   cd ..
20019   rm -rf conftest.dir
20020 else
20021   am_cv_CC_dependencies_compiler_type=none
20022 fi
20023
20024 fi
20025 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20028
20029  if
20030   test "x$enable_dependency_tracking" != xno \
20031   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20032   am__fastdepCC_TRUE=
20033   am__fastdepCC_FALSE='#'
20034 else
20035   am__fastdepCC_TRUE='#'
20036   am__fastdepCC_FALSE=
20037 fi
20038
20039
20040 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20041 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20042 # Just in case
20043 sleep 1
20044 echo timestamp > conftest.file
20045 # Do `set' in a subshell so we don't clobber the current shell's
20046 # arguments.  Must try -L first in case configure is actually a
20047 # symlink; some systems play weird games with the mod time of symlinks
20048 # (eg FreeBSD returns the mod time of the symlink's containing
20049 # directory).
20050 if (
20051    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20052    if test "$*" = "X"; then
20053       # -L didn't work.
20054       set X `ls -t $srcdir/configure conftest.file`
20055    fi
20056    rm -f conftest.file
20057    if test "$*" != "X $srcdir/configure conftest.file" \
20058       && test "$*" != "X conftest.file $srcdir/configure"; then
20059
20060       # If neither matched, then we have a broken ls.  This can happen
20061       # if, for instance, CONFIG_SHELL is bash and it inherits a
20062       # broken ls alias from the environment.  This has actually
20063       # happened.  Such a system could not be considered "sane".
20064       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20065 alias in your environment" >&5
20066 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20067 alias in your environment" >&2;}
20068    { (exit 1); exit 1; }; }
20069    fi
20070
20071    test "$2" = conftest.file
20072    )
20073 then
20074    # Ok.
20075    :
20076 else
20077    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20078 Check your system clock" >&5
20079 echo "$as_me: error: newly created file is older than distributed files!
20080 Check your system clock" >&2;}
20081    { (exit 1); exit 1; }; }
20082 fi
20083 { echo "$as_me:$LINENO: result: yes" >&5
20084 echo "${ECHO_T}yes" >&6; }
20085 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20086 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20087 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20088 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   cat >conftest.make <<\_ACEOF
20092 SHELL = /bin/sh
20093 all:
20094         @echo '@@@%%%=$(MAKE)=@@@%%%'
20095 _ACEOF
20096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20098   *@@@%%%=?*=@@@%%%*)
20099     eval ac_cv_prog_make_${ac_make}_set=yes;;
20100   *)
20101     eval ac_cv_prog_make_${ac_make}_set=no;;
20102 esac
20103 rm -f conftest.make
20104 fi
20105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20106   { echo "$as_me:$LINENO: result: yes" >&5
20107 echo "${ECHO_T}yes" >&6; }
20108   SET_MAKE=
20109 else
20110   { echo "$as_me:$LINENO: result: no" >&5
20111 echo "${ECHO_T}no" >&6; }
20112   SET_MAKE="MAKE=${MAKE-make}"
20113 fi
20114
20115
20116 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20117 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20118 if test "$cross_compiling" = yes; then
20119   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20120 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20121 else
20122   cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 #include <stdio.h>
20129 int
20130 main ()
20131 {
20132 printf("%s",NULL);
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_link") 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148   { (case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_try") 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; }; then
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define PRINTF_NULL_WORKING 1
20160 _ACEOF
20161
20162               { echo "$as_me:$LINENO: result: yes" >&5
20163 echo "${ECHO_T}yes" >&6; }
20164 else
20165   echo "$as_me: program exited with status $ac_status" >&5
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ( exit $ac_status )
20170 { echo "$as_me:$LINENO: result: no" >&5
20171 echo "${ECHO_T}no" >&6; }
20172 fi
20173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20174 fi
20175
20176
20177
20178
20179     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20180 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20181     if test "${ac_cv_va_copy+set}" = set; then
20182   echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184
20185     ac_cv_va_copy=""
20186
20187
20188
20189     if test ".$ac_cv_va_copy" = .; then
20190         if test "$cross_compiling" = yes; then
20191   ac_cv_va_copy="C99"
20192 else
20193   cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199
20200 #include <stdlib.h>
20201 #include <stdarg.h>
20202 #include <string.h>
20203 #define DO_VA_COPY(d, s) va_copy((d), (s))
20204 void test(char *str, ...)
20205 {
20206     va_list ap, ap2;
20207     int i;
20208     va_start(ap, str);
20209     DO_VA_COPY(ap2, ap);
20210     for (i = 1; i <= 9; i++) {
20211         int k = (int)va_arg(ap, int);
20212         if (k != i)
20213             abort();
20214     }
20215     DO_VA_COPY(ap, ap2);
20216     for (i = 1; i <= 9; i++) {
20217         int k = (int)va_arg(ap, int);
20218         if (k != i)
20219             abort();
20220     }
20221     va_end(ap);
20222 }
20223 int main(int argc, char *argv[])
20224 {
20225     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20226     exit(0);
20227 }
20228
20229 _ACEOF
20230 rm -f conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234   *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237   (eval "$ac_link") 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241   { (case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_try") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_cv_va_copy="C99"
20251 else
20252   echo "$as_me: program exited with status $ac_status" >&5
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 fi
20257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20258 fi
20259
20260
20261             fi
20262
20263
20264
20265
20266     if test ".$ac_cv_va_copy" = .; then
20267         if test "$cross_compiling" = yes; then
20268   ac_cv_va_copy="GCM"
20269 else
20270   cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276
20277 #include <stdlib.h>
20278 #include <stdarg.h>
20279 #include <string.h>
20280 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20281 void test(char *str, ...)
20282 {
20283     va_list ap, ap2;
20284     int i;
20285     va_start(ap, str);
20286     DO_VA_COPY(ap2, ap);
20287     for (i = 1; i <= 9; i++) {
20288         int k = (int)va_arg(ap, int);
20289         if (k != i)
20290             abort();
20291     }
20292     DO_VA_COPY(ap, ap2);
20293     for (i = 1; i <= 9; i++) {
20294         int k = (int)va_arg(ap, int);
20295         if (k != i)
20296             abort();
20297     }
20298     va_end(ap);
20299 }
20300 int main(int argc, char *argv[])
20301 {
20302     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20303     exit(0);
20304 }
20305
20306 _ACEOF
20307 rm -f conftest$ac_exeext
20308 if { (ac_try="$ac_link"
20309 case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_link") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318   { (case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323   (eval "$ac_try") 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); }; }; then
20327   ac_cv_va_copy="GCM"
20328 else
20329   echo "$as_me: program exited with status $ac_status" >&5
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333 fi
20334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335 fi
20336
20337
20338             fi
20339
20340
20341
20342
20343     if test ".$ac_cv_va_copy" = .; then
20344         if test "$cross_compiling" = yes; then
20345   ac_cv_va_copy="GCH"
20346 else
20347   cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353
20354 #include <stdlib.h>
20355 #include <stdarg.h>
20356 #include <string.h>
20357 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20358 void test(char *str, ...)
20359 {
20360     va_list ap, ap2;
20361     int i;
20362     va_start(ap, str);
20363     DO_VA_COPY(ap2, ap);
20364     for (i = 1; i <= 9; i++) {
20365         int k = (int)va_arg(ap, int);
20366         if (k != i)
20367             abort();
20368     }
20369     DO_VA_COPY(ap, ap2);
20370     for (i = 1; i <= 9; i++) {
20371         int k = (int)va_arg(ap, int);
20372         if (k != i)
20373             abort();
20374     }
20375     va_end(ap);
20376 }
20377 int main(int argc, char *argv[])
20378 {
20379     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20380     exit(0);
20381 }
20382
20383 _ACEOF
20384 rm -f conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_link") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395   { (case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_try") 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   ac_cv_va_copy="GCH"
20405 else
20406   echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 fi
20411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20412 fi
20413
20414
20415             fi
20416
20417
20418
20419
20420     if test ".$ac_cv_va_copy" = .; then
20421         if test "$cross_compiling" = yes; then
20422   ac_cv_va_copy="GCB"
20423 else
20424   cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h.  */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h.  */
20430
20431 #include <stdlib.h>
20432 #include <stdarg.h>
20433 #include <string.h>
20434 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20435 void test(char *str, ...)
20436 {
20437     va_list ap, ap2;
20438     int i;
20439     va_start(ap, str);
20440     DO_VA_COPY(ap2, ap);
20441     for (i = 1; i <= 9; i++) {
20442         int k = (int)va_arg(ap, int);
20443         if (k != i)
20444             abort();
20445     }
20446     DO_VA_COPY(ap, ap2);
20447     for (i = 1; i <= 9; i++) {
20448         int k = (int)va_arg(ap, int);
20449         if (k != i)
20450             abort();
20451     }
20452     va_end(ap);
20453 }
20454 int main(int argc, char *argv[])
20455 {
20456     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20457     exit(0);
20458 }
20459
20460 _ACEOF
20461 rm -f conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465   *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468   (eval "$ac_link") 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20472   { (case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_try") 2>&5
20478   ac_status=$?
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); }; }; then
20481   ac_cv_va_copy="GCB"
20482 else
20483   echo "$as_me: program exited with status $ac_status" >&5
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 fi
20488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20489 fi
20490
20491
20492             fi
20493
20494
20495
20496
20497     if test ".$ac_cv_va_copy" = .; then
20498         if test "$cross_compiling" = yes; then
20499   ac_cv_va_copy="ASS"
20500 else
20501   cat >conftest.$ac_ext <<_ACEOF
20502 /* confdefs.h.  */
20503 _ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h.  */
20507
20508 #include <stdlib.h>
20509 #include <stdarg.h>
20510 #include <string.h>
20511 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20512 void test(char *str, ...)
20513 {
20514     va_list ap, ap2;
20515     int i;
20516     va_start(ap, str);
20517     DO_VA_COPY(ap2, ap);
20518     for (i = 1; i <= 9; i++) {
20519         int k = (int)va_arg(ap, int);
20520         if (k != i)
20521             abort();
20522     }
20523     DO_VA_COPY(ap, ap2);
20524     for (i = 1; i <= 9; i++) {
20525         int k = (int)va_arg(ap, int);
20526         if (k != i)
20527             abort();
20528     }
20529     va_end(ap);
20530 }
20531 int main(int argc, char *argv[])
20532 {
20533     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20534     exit(0);
20535 }
20536
20537 _ACEOF
20538 rm -f conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545   (eval "$ac_link") 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549   { (case "(($ac_try" in
20550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551   *) ac_try_echo=$ac_try;;
20552 esac
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554   (eval "$ac_try") 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; }; then
20558   ac_cv_va_copy="ASS"
20559 else
20560   echo "$as_me: program exited with status $ac_status" >&5
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 fi
20565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20566 fi
20567
20568
20569             fi
20570
20571
20572
20573
20574     if test ".$ac_cv_va_copy" = .; then
20575         if test "$cross_compiling" = yes; then
20576   ac_cv_va_copy="ASP"
20577 else
20578   cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584
20585 #include <stdlib.h>
20586 #include <stdarg.h>
20587 #include <string.h>
20588 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20589 void test(char *str, ...)
20590 {
20591     va_list ap, ap2;
20592     int i;
20593     va_start(ap, str);
20594     DO_VA_COPY(ap2, ap);
20595     for (i = 1; i <= 9; i++) {
20596         int k = (int)va_arg(ap, int);
20597         if (k != i)
20598             abort();
20599     }
20600     DO_VA_COPY(ap, ap2);
20601     for (i = 1; i <= 9; i++) {
20602         int k = (int)va_arg(ap, int);
20603         if (k != i)
20604             abort();
20605     }
20606     va_end(ap);
20607 }
20608 int main(int argc, char *argv[])
20609 {
20610     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20611     exit(0);
20612 }
20613
20614 _ACEOF
20615 rm -f conftest$ac_exeext
20616 if { (ac_try="$ac_link"
20617 case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_link") 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20626   { (case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_try") 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_cv_va_copy="ASP"
20636 else
20637   echo "$as_me: program exited with status $ac_status" >&5
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641 fi
20642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20643 fi
20644
20645
20646             fi
20647
20648
20649
20650
20651     if test ".$ac_cv_va_copy" = .; then
20652         if test "$cross_compiling" = yes; then
20653   ac_cv_va_copy="CPS"
20654 else
20655   cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h.  */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h.  */
20661
20662 #include <stdlib.h>
20663 #include <stdarg.h>
20664 #include <string.h>
20665 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20666 void test(char *str, ...)
20667 {
20668     va_list ap, ap2;
20669     int i;
20670     va_start(ap, str);
20671     DO_VA_COPY(ap2, ap);
20672     for (i = 1; i <= 9; i++) {
20673         int k = (int)va_arg(ap, int);
20674         if (k != i)
20675             abort();
20676     }
20677     DO_VA_COPY(ap, ap2);
20678     for (i = 1; i <= 9; i++) {
20679         int k = (int)va_arg(ap, int);
20680         if (k != i)
20681             abort();
20682     }
20683     va_end(ap);
20684 }
20685 int main(int argc, char *argv[])
20686 {
20687     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20688     exit(0);
20689 }
20690
20691 _ACEOF
20692 rm -f conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_link") 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_try") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   ac_cv_va_copy="CPS"
20713 else
20714   echo "$as_me: program exited with status $ac_status" >&5
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 fi
20719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20720 fi
20721
20722
20723             fi
20724
20725
20726
20727
20728     if test ".$ac_cv_va_copy" = .; then
20729         if test "$cross_compiling" = yes; then
20730   ac_cv_va_copy="CPP"
20731 else
20732   cat >conftest.$ac_ext <<_ACEOF
20733 /* confdefs.h.  */
20734 _ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h.  */
20738
20739 #include <stdlib.h>
20740 #include <stdarg.h>
20741 #include <string.h>
20742 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20743 void test(char *str, ...)
20744 {
20745     va_list ap, ap2;
20746     int i;
20747     va_start(ap, str);
20748     DO_VA_COPY(ap2, ap);
20749     for (i = 1; i <= 9; i++) {
20750         int k = (int)va_arg(ap, int);
20751         if (k != i)
20752             abort();
20753     }
20754     DO_VA_COPY(ap, ap2);
20755     for (i = 1; i <= 9; i++) {
20756         int k = (int)va_arg(ap, int);
20757         if (k != i)
20758             abort();
20759     }
20760     va_end(ap);
20761 }
20762 int main(int argc, char *argv[])
20763 {
20764     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20765     exit(0);
20766 }
20767
20768 _ACEOF
20769 rm -f conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773   *) ac_try_echo=$ac_try;;
20774 esac
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776   (eval "$ac_link") 2>&5
20777   ac_status=$?
20778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20780   { (case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_try") 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; }; then
20789   ac_cv_va_copy="CPP"
20790 else
20791   echo "$as_me: program exited with status $ac_status" >&5
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795 fi
20796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20797 fi
20798
20799
20800             fi
20801
20802     if test ".$ac_cv_va_copy" = .; then
20803         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20804 echo "$as_me: error: no working implementation found" >&2;}
20805    { (exit 1); exit 1; }; }
20806     fi
20807
20808 fi
20809
20810     if test ".$ac_cv_va_copy" = ".C99"; then
20811
20812 cat >>confdefs.h <<\_ACEOF
20813 #define HAVE_VA_COPY 1
20814 _ACEOF
20815
20816   fi
20817
20818 cat >>confdefs.h <<_ACEOF
20819 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20820 _ACEOF
20821
20822
20823
20824     if test ".$ac_cv_va_copy" = ".C99"; then
20825       { echo "$as_me:$LINENO: result: yes" >&5
20826 echo "${ECHO_T}yes" >&6; }
20827   else
20828       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20829 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20830   fi
20831
20832
20833 # Checks for header files.
20834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20836 if test "${ac_cv_header_stdc+set}" = set; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839   cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845 #include <stdlib.h>
20846 #include <stdarg.h>
20847 #include <string.h>
20848 #include <float.h>
20849
20850 int
20851 main ()
20852 {
20853
20854   ;
20855   return 0;
20856 }
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_compile") 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } && {
20872          test -z "$ac_c_werror_flag" ||
20873          test ! -s conftest.err
20874        } && test -s conftest.$ac_objext; then
20875   ac_cv_header_stdc=yes
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         ac_cv_header_stdc=no
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884
20885 if test $ac_cv_header_stdc = yes; then
20886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20887   cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 #include <string.h>
20894
20895 _ACEOF
20896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20897   $EGREP "memchr" >/dev/null 2>&1; then
20898   :
20899 else
20900   ac_cv_header_stdc=no
20901 fi
20902 rm -f conftest*
20903
20904 fi
20905
20906 if test $ac_cv_header_stdc = yes; then
20907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20908   cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h.  */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h.  */
20914 #include <stdlib.h>
20915
20916 _ACEOF
20917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20918   $EGREP "free" >/dev/null 2>&1; then
20919   :
20920 else
20921   ac_cv_header_stdc=no
20922 fi
20923 rm -f conftest*
20924
20925 fi
20926
20927 if test $ac_cv_header_stdc = yes; then
20928   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20929   if test "$cross_compiling" = yes; then
20930   :
20931 else
20932   cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 #include <ctype.h>
20939 #include <stdlib.h>
20940 #if ((' ' & 0x0FF) == 0x020)
20941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20943 #else
20944 # define ISLOWER(c) \
20945                    (('a' <= (c) && (c) <= 'i') \
20946                      || ('j' <= (c) && (c) <= 'r') \
20947                      || ('s' <= (c) && (c) <= 'z'))
20948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20949 #endif
20950
20951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20952 int
20953 main ()
20954 {
20955   int i;
20956   for (i = 0; i < 256; i++)
20957     if (XOR (islower (i), ISLOWER (i))
20958         || toupper (i) != TOUPPER (i))
20959       return 2;
20960   return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest$ac_exeext
20964 if { (ac_try="$ac_link"
20965 case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_link") 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974   { (case "(($ac_try" in
20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976   *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979   (eval "$ac_try") 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   :
20984 else
20985   echo "$as_me: program exited with status $ac_status" >&5
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 ( exit $ac_status )
20990 ac_cv_header_stdc=no
20991 fi
20992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20993 fi
20994
20995
20996 fi
20997 fi
20998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21000 if test $ac_cv_header_stdc = yes; then
21001
21002 cat >>confdefs.h <<\_ACEOF
21003 #define STDC_HEADERS 1
21004 _ACEOF
21005
21006 fi
21007
21008 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21009 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21010 if test "${ac_cv_header_time+set}" = set; then
21011   echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013   cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 #include <sys/types.h>
21020 #include <sys/time.h>
21021 #include <time.h>
21022
21023 int
21024 main ()
21025 {
21026 if ((struct tm *) 0)
21027 return 0;
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext
21033 if { (ac_try="$ac_compile"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_compile") 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } && {
21046          test -z "$ac_c_werror_flag" ||
21047          test ! -s conftest.err
21048        } && test -s conftest.$ac_objext; then
21049   ac_cv_header_time=yes
21050 else
21051   echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054         ac_cv_header_time=no
21055 fi
21056
21057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058 fi
21059 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21060 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21061 if test $ac_cv_header_time = yes; then
21062
21063 cat >>confdefs.h <<\_ACEOF
21064 #define TIME_WITH_SYS_TIME 1
21065 _ACEOF
21066
21067 fi
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079 for ac_header in sys/socket.h \
21080                   sys/stat.h \
21081                   windows.h winsock.h winsock2.h \
21082                   sys/time.h \
21083                   errno.h unistd.h \
21084                   execinfo.h\
21085                   signal.h
21086 do
21087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21089   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 fi
21094 ac_res=`eval echo '${'$as_ac_Header'}'`
21095                { echo "$as_me:$LINENO: result: $ac_res" >&5
21096 echo "${ECHO_T}$ac_res" >&6; }
21097 else
21098   # Is the header compilable?
21099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21101 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107 $ac_includes_default
21108 #include <$ac_header>
21109 _ACEOF
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114   *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117   (eval "$ac_compile") 2>conftest.er1
21118   ac_status=$?
21119   grep -v '^ *+' conftest.er1 >conftest.err
21120   rm -f conftest.er1
21121   cat conftest.err >&5
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); } && {
21124          test -z "$ac_c_werror_flag" ||
21125          test ! -s conftest.err
21126        } && test -s conftest.$ac_objext; then
21127   ac_header_compiler=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132         ac_header_compiler=no
21133 fi
21134
21135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21137 echo "${ECHO_T}$ac_header_compiler" >&6; }
21138
21139 # Is the header present?
21140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 #include <$ac_header>
21149 _ACEOF
21150 if { (ac_try="$ac_cpp conftest.$ac_ext"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } >/dev/null && {
21163          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21164          test ! -s conftest.err
21165        }; then
21166   ac_header_preproc=yes
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171   ac_header_preproc=no
21172 fi
21173
21174 rm -f conftest.err conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21176 echo "${ECHO_T}$ac_header_preproc" >&6; }
21177
21178 # So?  What about this header?
21179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21180   yes:no: )
21181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21185     ac_header_preproc=yes
21186     ;;
21187   no:yes:* )
21188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21200     ( cat <<\_ASBOX
21201 ## -------------------------------------------------- ##
21202 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21203 ## -------------------------------------------------- ##
21204 _ASBOX
21205      ) | sed "s/^/$as_me: WARNING:     /" >&2
21206     ;;
21207 esac
21208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213   eval "$as_ac_Header=\$ac_header_preproc"
21214 fi
21215 ac_res=`eval echo '${'$as_ac_Header'}'`
21216                { echo "$as_me:$LINENO: result: $ac_res" >&5
21217 echo "${ECHO_T}$ac_res" >&6; }
21218
21219 fi
21220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21221   cat >>confdefs.h <<_ACEOF
21222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21223 _ACEOF
21224
21225 fi
21226
21227 done
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237 for ac_func in gettimeofday usleep \
21238                 getdtablesize \
21239                 sysconf\
21240                 readv\
21241                 popen\
21242                 signal\
21243                 getline
21244 do
21245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21249   echo $ECHO_N "(cached) $ECHO_C" >&6
21250 else
21251   cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21259 #define $ac_func innocuous_$ac_func
21260
21261 /* System header to define __stub macros and hopefully few prototypes,
21262     which can conflict with char $ac_func (); below.
21263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21264     <limits.h> exists even on freestanding compilers.  */
21265
21266 #ifdef __STDC__
21267 # include <limits.h>
21268 #else
21269 # include <assert.h>
21270 #endif
21271
21272 #undef $ac_func
21273
21274 /* Override any GCC internal prototype to avoid an error.
21275    Use char because int might match the return type of a GCC
21276    builtin and then its argument prototype would still apply.  */
21277 #ifdef __cplusplus
21278 extern "C"
21279 #endif
21280 char $ac_func ();
21281 /* The GNU C library defines this for functions which it implements
21282     to always fail with ENOSYS.  Some functions are actually named
21283     something starting with __ and the normal name is an alias.  */
21284 #if defined __stub_$ac_func || defined __stub___$ac_func
21285 choke me
21286 #endif
21287
21288 int
21289 main ()
21290 {
21291 return $ac_func ();
21292   ;
21293   return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest.$ac_objext conftest$ac_exeext
21297 if { (ac_try="$ac_link"
21298 case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303   (eval "$ac_link") 2>conftest.er1
21304   ac_status=$?
21305   grep -v '^ *+' conftest.er1 >conftest.err
21306   rm -f conftest.er1
21307   cat conftest.err >&5
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } && {
21310          test -z "$ac_c_werror_flag" ||
21311          test ! -s conftest.err
21312        } && test -s conftest$ac_exeext &&
21313        $as_test_x conftest$ac_exeext; then
21314   eval "$as_ac_var=yes"
21315 else
21316   echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         eval "$as_ac_var=no"
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21323       conftest$ac_exeext conftest.$ac_ext
21324 fi
21325 ac_res=`eval echo '${'$as_ac_var'}'`
21326                { echo "$as_me:$LINENO: result: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21328 if test `eval echo '${'$as_ac_var'}'` = yes; then
21329   cat >>confdefs.h <<_ACEOF
21330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21331 _ACEOF
21332
21333 fi
21334 done
21335
21336
21337 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21338
21339
21340 for ac_func in snprintf vsnprintf
21341 do
21342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348   cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21356 #define $ac_func innocuous_$ac_func
21357
21358 /* System header to define __stub macros and hopefully few prototypes,
21359     which can conflict with char $ac_func (); below.
21360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21361     <limits.h> exists even on freestanding compilers.  */
21362
21363 #ifdef __STDC__
21364 # include <limits.h>
21365 #else
21366 # include <assert.h>
21367 #endif
21368
21369 #undef $ac_func
21370
21371 /* Override any GCC internal prototype to avoid an error.
21372    Use char because int might match the return type of a GCC
21373    builtin and then its argument prototype would still apply.  */
21374 #ifdef __cplusplus
21375 extern "C"
21376 #endif
21377 char $ac_func ();
21378 /* The GNU C library defines this for functions which it implements
21379     to always fail with ENOSYS.  Some functions are actually named
21380     something starting with __ and the normal name is an alias.  */
21381 #if defined __stub_$ac_func || defined __stub___$ac_func
21382 choke me
21383 #endif
21384
21385 int
21386 main ()
21387 {
21388 return $ac_func ();
21389   ;
21390   return 0;
21391 }
21392 _ACEOF
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397   *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400   (eval "$ac_link") 2>conftest.er1
21401   ac_status=$?
21402   grep -v '^ *+' conftest.er1 >conftest.err
21403   rm -f conftest.er1
21404   cat conftest.err >&5
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); } && {
21407          test -z "$ac_c_werror_flag" ||
21408          test ! -s conftest.err
21409        } && test -s conftest$ac_exeext &&
21410        $as_test_x conftest$ac_exeext; then
21411   eval "$as_ac_var=yes"
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416         eval "$as_ac_var=no"
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21420       conftest$ac_exeext conftest.$ac_ext
21421 fi
21422 ac_res=`eval echo '${'$as_ac_var'}'`
21423                { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21425 if test `eval echo '${'$as_ac_var'}'` = yes; then
21426   cat >>confdefs.h <<_ACEOF
21427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21428 _ACEOF
21429
21430 fi
21431 done
21432
21433 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21434 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21435 if test "${ac_cv_have_working_snprintf+set}" = set; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438   if test "$cross_compiling" = yes; then
21439   ac_cv_have_working_snprintf=cross
21440 else
21441   cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include <stdio.h>
21448
21449 int main(void)
21450 {
21451     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21452     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21453     int i;
21454     i = snprintf (bufs, 2, "%s", "111");
21455     if (strcmp (bufs, "1")) exit (1);
21456     if (i != 3) exit (1);
21457     i = snprintf (bufd, 2, "%d", 111);
21458     if (strcmp (bufd, "1")) exit (1);
21459     if (i != 3) exit (1);
21460     exit(0);
21461 }
21462 _ACEOF
21463 rm -f conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467   *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470   (eval "$ac_link") 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21474   { (case "(($ac_try" in
21475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476   *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479   (eval "$ac_try") 2>&5
21480   ac_status=$?
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); }; }; then
21483   ac_cv_have_working_snprintf=yes
21484 else
21485   echo "$as_me: program exited with status $ac_status" >&5
21486 echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489 ( exit $ac_status )
21490 ac_cv_have_working_snprintf=no
21491 fi
21492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21493 fi
21494
21495
21496 fi
21497
21498 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21499 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21500 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21501 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21502 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505   if test "$cross_compiling" = yes; then
21506   ac_cv_have_working_vsnprintf=cross
21507 else
21508   cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 #include <stdio.h>
21515 #include <stdarg.h>
21516
21517 int my_vsnprintf (char *buf, const char *tmpl, ...)
21518 {
21519     int i;
21520     va_list args;
21521     va_start (args, tmpl);
21522     i = vsnprintf (buf, 2, tmpl, args);
21523     va_end (args);
21524     return i;
21525 }
21526
21527 int main(void)
21528 {
21529     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21530     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21531     int i;
21532     i = my_vsnprintf (bufs, "%s", "111");
21533     if (strcmp (bufs, "1")) exit (1);
21534     if (i != 3) exit (1);
21535     i = my_vsnprintf (bufd, "%d", 111);
21536     if (strcmp (bufd, "1")) exit (1);
21537     if (i != 3) exit (1);
21538     exit(0);
21539 }
21540 _ACEOF
21541 rm -f conftest$ac_exeext
21542 if { (ac_try="$ac_link"
21543 case "(($ac_try" in
21544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545   *) ac_try_echo=$ac_try;;
21546 esac
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548   (eval "$ac_link") 2>&5
21549   ac_status=$?
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21552   { (case "(($ac_try" in
21553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554   *) ac_try_echo=$ac_try;;
21555 esac
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557   (eval "$ac_try") 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   ac_cv_have_working_vsnprintf=yes
21562 else
21563   echo "$as_me: program exited with status $ac_status" >&5
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21566
21567 ( exit $ac_status )
21568 ac_cv_have_working_vsnprintf=no
21569 fi
21570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21571 fi
21572
21573
21574 fi
21575
21576 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21577 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21578 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21579   case " $LIBOBJS " in
21580   *" snprintf.$ac_objext "* ) ;;
21581   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21582  ;;
21583 esac
21584
21585   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21586 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21587
21588 cat >>confdefs.h <<\_ACEOF
21589 #define PREFER_PORTABLE_SNPRINTF 1
21590 _ACEOF
21591
21592 fi
21593 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21594 { echo "$as_me:$LINENO: checking for asprintf" >&5
21595 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21596 if test "${ac_cv_func_asprintf+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599   cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h.  */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h.  */
21605 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21607 #define asprintf innocuous_asprintf
21608
21609 /* System header to define __stub macros and hopefully few prototypes,
21610     which can conflict with char asprintf (); below.
21611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21612     <limits.h> exists even on freestanding compilers.  */
21613
21614 #ifdef __STDC__
21615 # include <limits.h>
21616 #else
21617 # include <assert.h>
21618 #endif
21619
21620 #undef asprintf
21621
21622 /* Override any GCC internal prototype to avoid an error.
21623    Use char because int might match the return type of a GCC
21624    builtin and then its argument prototype would still apply.  */
21625 #ifdef __cplusplus
21626 extern "C"
21627 #endif
21628 char asprintf ();
21629 /* The GNU C library defines this for functions which it implements
21630     to always fail with ENOSYS.  Some functions are actually named
21631     something starting with __ and the normal name is an alias.  */
21632 #if defined __stub_asprintf || defined __stub___asprintf
21633 choke me
21634 #endif
21635
21636 int
21637 main ()
21638 {
21639 return asprintf ();
21640   ;
21641   return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648   *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651   (eval "$ac_link") 2>conftest.er1
21652   ac_status=$?
21653   grep -v '^ *+' conftest.er1 >conftest.err
21654   rm -f conftest.er1
21655   cat conftest.err >&5
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); } && {
21658          test -z "$ac_c_werror_flag" ||
21659          test ! -s conftest.err
21660        } && test -s conftest$ac_exeext &&
21661        $as_test_x conftest$ac_exeext; then
21662   ac_cv_func_asprintf=yes
21663 else
21664   echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21666
21667         ac_cv_func_asprintf=no
21668 fi
21669
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671       conftest$ac_exeext conftest.$ac_ext
21672 fi
21673 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21674 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21675 if test $ac_cv_func_asprintf = yes; then
21676   :
21677 else
21678
21679 cat >>confdefs.h <<\_ACEOF
21680 #define NEED_ASPRINTF 1
21681 _ACEOF
21682
21683 fi
21684
21685 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21686 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21687 if test "${ac_cv_func_vasprintf+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21698 #define vasprintf innocuous_vasprintf
21699
21700 /* System header to define __stub macros and hopefully few prototypes,
21701     which can conflict with char vasprintf (); below.
21702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21703     <limits.h> exists even on freestanding compilers.  */
21704
21705 #ifdef __STDC__
21706 # include <limits.h>
21707 #else
21708 # include <assert.h>
21709 #endif
21710
21711 #undef vasprintf
21712
21713 /* Override any GCC internal prototype to avoid an error.
21714    Use char because int might match the return type of a GCC
21715    builtin and then its argument prototype would still apply.  */
21716 #ifdef __cplusplus
21717 extern "C"
21718 #endif
21719 char vasprintf ();
21720 /* The GNU C library defines this for functions which it implements
21721     to always fail with ENOSYS.  Some functions are actually named
21722     something starting with __ and the normal name is an alias.  */
21723 #if defined __stub_vasprintf || defined __stub___vasprintf
21724 choke me
21725 #endif
21726
21727 int
21728 main ()
21729 {
21730 return vasprintf ();
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_link") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } && {
21749          test -z "$ac_c_werror_flag" ||
21750          test ! -s conftest.err
21751        } && test -s conftest$ac_exeext &&
21752        $as_test_x conftest$ac_exeext; then
21753   ac_cv_func_vasprintf=yes
21754 else
21755   echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758         ac_cv_func_vasprintf=no
21759 fi
21760
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762       conftest$ac_exeext conftest.$ac_ext
21763 fi
21764 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21765 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21766 if test $ac_cv_func_vasprintf = yes; then
21767   :
21768 else
21769
21770 cat >>confdefs.h <<\_ACEOF
21771 #define NEED_VASPRINTF 1
21772 _ACEOF
21773
21774 fi
21775
21776
21777 # Checks for typedefs, structures, and compiler characteristics.
21778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21780 if test "${ac_cv_c_const+set}" = set; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783   cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789
21790 int
21791 main ()
21792 {
21793 /* FIXME: Include the comments suggested by Paul. */
21794 #ifndef __cplusplus
21795   /* Ultrix mips cc rejects this.  */
21796   typedef int charset[2];
21797   const charset cs;
21798   /* SunOS 4.1.1 cc rejects this.  */
21799   char const *const *pcpcc;
21800   char **ppc;
21801   /* NEC SVR4.0.2 mips cc rejects this.  */
21802   struct point {int x, y;};
21803   static struct point const zero = {0,0};
21804   /* AIX XL C 1.02.0.0 rejects this.
21805      It does not let you subtract one const X* pointer from another in
21806      an arm of an if-expression whose if-part is not a constant
21807      expression */
21808   const char *g = "string";
21809   pcpcc = &g + (g ? g-g : 0);
21810   /* HPUX 7.0 cc rejects these. */
21811   ++pcpcc;
21812   ppc = (char**) pcpcc;
21813   pcpcc = (char const *const *) ppc;
21814   { /* SCO 3.2v4 cc rejects this.  */
21815     char *t;
21816     char const *s = 0 ? (char *) 0 : (char const *) 0;
21817
21818     *t++ = 0;
21819     if (s) return 0;
21820   }
21821   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21822     int x[] = {25, 17};
21823     const int *foo = &x[0];
21824     ++foo;
21825   }
21826   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21827     typedef const int *iptr;
21828     iptr p = 0;
21829     ++p;
21830   }
21831   { /* AIX XL C 1.02.0.0 rejects this saying
21832        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21833     struct s { int j; const int *ap[3]; };
21834     struct s *b; b->j = 5;
21835   }
21836   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21837     const int foo = 10;
21838     if (!foo) return 0;
21839   }
21840   return !cs[0] && !zero.x;
21841 #endif
21842
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851   *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854   (eval "$ac_compile") 2>conftest.er1
21855   ac_status=$?
21856   grep -v '^ *+' conftest.er1 >conftest.err
21857   rm -f conftest.er1
21858   cat conftest.err >&5
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); } && {
21861          test -z "$ac_c_werror_flag" ||
21862          test ! -s conftest.err
21863        } && test -s conftest.$ac_objext; then
21864   ac_cv_c_const=yes
21865 else
21866   echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869         ac_cv_c_const=no
21870 fi
21871
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 fi
21874 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21875 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21876 if test $ac_cv_c_const = no; then
21877
21878 cat >>confdefs.h <<\_ACEOF
21879 #define const
21880 _ACEOF
21881
21882 fi
21883
21884 { echo "$as_me:$LINENO: checking for inline" >&5
21885 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21886 if test "${ac_cv_c_inline+set}" = set; then
21887   echo $ECHO_N "(cached) $ECHO_C" >&6
21888 else
21889   ac_cv_c_inline=no
21890 for ac_kw in inline __inline__ __inline; do
21891   cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h.  */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h.  */
21897 #ifndef __cplusplus
21898 typedef int foo_t;
21899 static $ac_kw foo_t static_foo () {return 0; }
21900 $ac_kw foo_t foo () {return 0; }
21901 #endif
21902
21903 _ACEOF
21904 rm -f conftest.$ac_objext
21905 if { (ac_try="$ac_compile"
21906 case "(($ac_try" in
21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908   *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911   (eval "$ac_compile") 2>conftest.er1
21912   ac_status=$?
21913   grep -v '^ *+' conftest.er1 >conftest.err
21914   rm -f conftest.er1
21915   cat conftest.err >&5
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } && {
21918          test -z "$ac_c_werror_flag" ||
21919          test ! -s conftest.err
21920        } && test -s conftest.$ac_objext; then
21921   ac_cv_c_inline=$ac_kw
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926
21927 fi
21928
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930   test "$ac_cv_c_inline" != no && break
21931 done
21932
21933 fi
21934 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21935 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21936
21937
21938 case $ac_cv_c_inline in
21939   inline | yes) ;;
21940   *)
21941     case $ac_cv_c_inline in
21942       no) ac_val=;;
21943       *) ac_val=$ac_cv_c_inline;;
21944     esac
21945     cat >>confdefs.h <<_ACEOF
21946 #ifndef __cplusplus
21947 #define inline $ac_val
21948 #endif
21949 _ACEOF
21950     ;;
21951 esac
21952
21953 { echo "$as_me:$LINENO: checking for size_t" >&5
21954 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21955 if test "${ac_cv_type_size_t+set}" = set; then
21956   echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958   cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964 $ac_includes_default
21965 typedef size_t ac__type_new_;
21966 int
21967 main ()
21968 {
21969 if ((ac__type_new_ *) 0)
21970   return 0;
21971 if (sizeof (ac__type_new_))
21972   return 0;
21973   ;
21974   return 0;
21975 }
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984   (eval "$ac_compile") 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } && {
21991          test -z "$ac_c_werror_flag" ||
21992          test ! -s conftest.err
21993        } && test -s conftest.$ac_objext; then
21994   ac_cv_type_size_t=yes
21995 else
21996   echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999         ac_cv_type_size_t=no
22000 fi
22001
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003 fi
22004 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22005 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22006 if test $ac_cv_type_size_t = yes; then
22007   :
22008 else
22009
22010 cat >>confdefs.h <<_ACEOF
22011 #define size_t unsigned int
22012 _ACEOF
22013
22014 fi
22015
22016
22017 ###################################
22018 ## SimGrid and GRAS specific checks
22019 ##
22020
22021
22022   { echo "$as_me:$LINENO: result: " >&5
22023 echo "${ECHO_T}" >&6; }
22024   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22025 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22026
22027 # Check architecture signature begin
22028
22029 # Check for the architecture
22030 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22032 if test "${ac_cv_c_bigendian+set}" = set; then
22033   echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035   # See if sys/param.h defines the BYTE_ORDER macro.
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 #include <sys/types.h>
22043 #include <sys/param.h>
22044
22045 int
22046 main ()
22047 {
22048 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22049         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22050  bogus endian macros
22051 #endif
22052
22053   ;
22054   return 0;
22055 }
22056 _ACEOF
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_compile") 2>conftest.er1
22065   ac_status=$?
22066   grep -v '^ *+' conftest.er1 >conftest.err
22067   rm -f conftest.er1
22068   cat conftest.err >&5
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } && {
22071          test -z "$ac_c_werror_flag" ||
22072          test ! -s conftest.err
22073        } && test -s conftest.$ac_objext; then
22074   # It does; now see whether it defined to BIG_ENDIAN or not.
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081 #include <sys/types.h>
22082 #include <sys/param.h>
22083
22084 int
22085 main ()
22086 {
22087 #if BYTE_ORDER != BIG_ENDIAN
22088  not big endian
22089 #endif
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099   *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102   (eval "$ac_compile") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_c_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest.$ac_objext; then
22112   ac_cv_c_bigendian=yes
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117         ac_cv_c_bigendian=no
22118 fi
22119
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 else
22122   echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22124
22125         # It does not; compile a test program.
22126 if test "$cross_compiling" = yes; then
22127   # try to guess the endianness by grepping values into an object file
22128   ac_cv_c_bigendian=unknown
22129   cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h.  */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h.  */
22135 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22136 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22137 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22138 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22139 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22140 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22141 int
22142 main ()
22143 {
22144  _ascii (); _ebcdic ();
22145   ;
22146   return 0;
22147 }
22148 _ACEOF
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156   (eval "$ac_compile") 2>conftest.er1
22157   ac_status=$?
22158   grep -v '^ *+' conftest.er1 >conftest.err
22159   rm -f conftest.er1
22160   cat conftest.err >&5
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } && {
22163          test -z "$ac_c_werror_flag" ||
22164          test ! -s conftest.err
22165        } && test -s conftest.$ac_objext; then
22166   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22167   ac_cv_c_bigendian=yes
22168 fi
22169 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22170   if test "$ac_cv_c_bigendian" = unknown; then
22171     ac_cv_c_bigendian=no
22172   else
22173     # finding both strings is unlikely to happen, but who knows?
22174     ac_cv_c_bigendian=unknown
22175   fi
22176 fi
22177 else
22178   echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181
22182 fi
22183
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 else
22186   cat >conftest.$ac_ext <<_ACEOF
22187 /* confdefs.h.  */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h.  */
22192 $ac_includes_default
22193 int
22194 main ()
22195 {
22196
22197   /* Are we little or big endian?  From Harbison&Steele.  */
22198   union
22199   {
22200     long int l;
22201     char c[sizeof (long int)];
22202   } u;
22203   u.l = 1;
22204   return u.c[sizeof (long int) - 1] == 1;
22205
22206   ;
22207   return 0;
22208 }
22209 _ACEOF
22210 rm -f conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214   *) ac_try_echo=$ac_try;;
22215 esac
22216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217   (eval "$ac_link") 2>&5
22218   ac_status=$?
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22221   { (case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_try") 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; }; then
22230   ac_cv_c_bigendian=no
22231 else
22232   echo "$as_me: program exited with status $ac_status" >&5
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ( exit $ac_status )
22237 ac_cv_c_bigendian=yes
22238 fi
22239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22240 fi
22241
22242
22243 fi
22244
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 fi
22247 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22248 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22249 case $ac_cv_c_bigendian in
22250   yes)
22251     endian=1 ;;
22252   no)
22253     endian=0 ;;
22254   *)
22255     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22256 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22257    { (exit 1); exit 1; }; } ;;
22258 esac
22259
22260
22261 cat >>confdefs.h <<_ACEOF
22262 #define GRAS_BIGENDIAN $endian
22263 _ACEOF
22264
22265
22266 { echo "$as_me:$LINENO: checking size of char" >&5
22267 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22268     if test "${ac_cv_sizeof_char+set}" = set; then
22269   echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22272    cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 #include "confdefs.h"
22279    #include <sys/types.h>
22280
22281
22282 int
22283 main ()
22284 {
22285 switch (0) case 0: case (sizeof (char) == $ac_size):;
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297   (eval "$ac_compile") 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } && {
22304          test -z "$ac_c_werror_flag" ||
22305          test ! -s conftest.err
22306        } && test -s conftest.$ac_objext; then
22307   ac_cv_sizeof_char=$ac_size
22308 else
22309   echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312
22313 fi
22314
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316    if test x$ac_cv_sizeof_char != x ; then break; fi
22317   done
22318
22319 fi
22320
22321
22322 unspecif=$ac_cv_sizeof_char
22323 if test x$unspecif = x ; then
22324   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22325 echo "$as_me: error: cannot determine a size for char" >&2;}
22326    { (exit 1); exit 1; }; }
22327 fi
22328
22329     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22333    cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339 #include "confdefs.h"
22340    #include <sys/types.h>
22341
22342
22343 int
22344 main ()
22345 {
22346 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22347   ;
22348   return 0;
22349 }
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355   *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358   (eval "$ac_compile") 2>conftest.er1
22359   ac_status=$?
22360   grep -v '^ *+' conftest.er1 >conftest.err
22361   rm -f conftest.er1
22362   cat conftest.err >&5
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); } && {
22365          test -z "$ac_c_werror_flag" ||
22366          test ! -s conftest.err
22367        } && test -s conftest.$ac_objext; then
22368   ac_cv_sizeof_signed_char=$ac_size
22369 else
22370   echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22378   done
22379
22380 fi
22381
22382
22383 signed=$ac_cv_sizeof_signed_char
22384 if test x$signed = x ; then
22385   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22386 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22387    { (exit 1); exit 1; }; }
22388 fi
22389 if test x$unspecif != x$signed ; then
22390   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22391 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22392    { (exit 1); exit 1; }; }
22393 fi
22394
22395     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22396   echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22399    cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405 #include "confdefs.h"
22406    #include <sys/types.h>
22407
22408
22409 int
22410 main ()
22411 {
22412 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22413   ;
22414   return 0;
22415 }
22416 _ACEOF
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421   *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424   (eval "$ac_compile") 2>conftest.er1
22425   ac_status=$?
22426   grep -v '^ *+' conftest.er1 >conftest.err
22427   rm -f conftest.er1
22428   cat conftest.err >&5
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); } && {
22431          test -z "$ac_c_werror_flag" ||
22432          test ! -s conftest.err
22433        } && test -s conftest.$ac_objext; then
22434   ac_cv_sizeof_unsigned_char=$ac_size
22435 else
22436   echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439
22440 fi
22441
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22444   done
22445
22446 fi
22447
22448
22449 unsigned=$ac_cv_sizeof_unsigned_char
22450 if test x$unsigned = x ; then
22451   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22452 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22453    { (exit 1); exit 1; }; }
22454 fi
22455 if test x$unsigned != x$signed ; then
22456   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22457 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22458    { (exit 1); exit 1; }; }
22459 fi
22460
22461 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22462 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22463                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22464 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22465
22466  if test "${ac_cv_struct_boundary_char+set}" = set; then
22467   echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22470    cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h.  */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h.  */
22476 #include "confdefs.h"
22477      #include <sys/types.h>
22478      struct s { char c; char i; };
22479
22480 int
22481 main ()
22482 {
22483 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22484   ;
22485   return 0;
22486 }
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_compile") 2>conftest.er1
22496   ac_status=$?
22497   grep -v '^ *+' conftest.er1 >conftest.err
22498   rm -f conftest.er1
22499   cat conftest.err >&5
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } && {
22502          test -z "$ac_c_werror_flag" ||
22503          test ! -s conftest.err
22504        } && test -s conftest.$ac_objext; then
22505   ac_cv_struct_boundary_char=$ac_size
22506 else
22507   echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510
22511 fi
22512
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22515   done
22516
22517 fi
22518
22519  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22520 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22521  if test x$ac_cv_struct_boundary_char = x ; then
22522    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22523 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22524    { (exit 1); exit 1; }; }
22525  fi
22526
22527 { echo "$as_me:$LINENO: checking size of short int" >&5
22528 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22529     if test "${ac_cv_sizeof_short_int+set}" = set; then
22530   echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22533    cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539 #include "confdefs.h"
22540    #include <sys/types.h>
22541
22542
22543 int
22544 main ()
22545 {
22546 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555   *) ac_try_echo=$ac_try;;
22556 esac
22557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558   (eval "$ac_compile") 2>conftest.er1
22559   ac_status=$?
22560   grep -v '^ *+' conftest.er1 >conftest.err
22561   rm -f conftest.er1
22562   cat conftest.err >&5
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); } && {
22565          test -z "$ac_c_werror_flag" ||
22566          test ! -s conftest.err
22567        } && test -s conftest.$ac_objext; then
22568   ac_cv_sizeof_short_int=$ac_size
22569 else
22570   echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22572
22573
22574 fi
22575
22576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22578   done
22579
22580 fi
22581
22582
22583 unspecif=$ac_cv_sizeof_short_int
22584 if test x$unspecif = x ; then
22585   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22586 echo "$as_me: error: cannot determine a size for short int" >&2;}
22587    { (exit 1); exit 1; }; }
22588 fi
22589
22590     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22591   echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22594    cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600 #include "confdefs.h"
22601    #include <sys/types.h>
22602
22603
22604 int
22605 main ()
22606 {
22607 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616   *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619   (eval "$ac_compile") 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } && {
22626          test -z "$ac_c_werror_flag" ||
22627          test ! -s conftest.err
22628        } && test -s conftest.$ac_objext; then
22629   ac_cv_sizeof_signed_short_int=$ac_size
22630 else
22631   echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634
22635 fi
22636
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22639   done
22640
22641 fi
22642
22643
22644 signed=$ac_cv_sizeof_signed_short_int
22645 if test x$signed = x ; then
22646   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22647 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22648    { (exit 1); exit 1; }; }
22649 fi
22650 if test x$unspecif != x$signed ; then
22651   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22652 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22653    { (exit 1); exit 1; }; }
22654 fi
22655
22656     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22657   echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22660    cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666 #include "confdefs.h"
22667    #include <sys/types.h>
22668
22669
22670 int
22671 main ()
22672 {
22673 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682   *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685   (eval "$ac_compile") 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } && {
22692          test -z "$ac_c_werror_flag" ||
22693          test ! -s conftest.err
22694        } && test -s conftest.$ac_objext; then
22695   ac_cv_sizeof_unsigned_short_int=$ac_size
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22705   done
22706
22707 fi
22708
22709
22710 unsigned=$ac_cv_sizeof_unsigned_short_int
22711 if test x$unsigned = x ; then
22712   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22713 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22714    { (exit 1); exit 1; }; }
22715 fi
22716 if test x$unsigned != x$signed ; then
22717   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22718 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22719    { (exit 1); exit 1; }; }
22720 fi
22721
22722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22723 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22724              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22725 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22726
22727  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22728   echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22730   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22731    cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h.  */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h.  */
22737 #include "confdefs.h"
22738      #include <sys/types.h>
22739      struct s { char c; short int i; };
22740
22741 int
22742 main ()
22743 {
22744 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_compile") 2>conftest.er1
22757   ac_status=$?
22758   grep -v '^ *+' conftest.er1 >conftest.err
22759   rm -f conftest.er1
22760   cat conftest.err >&5
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); } && {
22763          test -z "$ac_c_werror_flag" ||
22764          test ! -s conftest.err
22765        } && test -s conftest.$ac_objext; then
22766   ac_cv_struct_boundary_short_int=$ac_size
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771
22772 fi
22773
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22776   done
22777
22778 fi
22779
22780  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22781 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22782  if test x$ac_cv_struct_boundary_short_int = x ; then
22783    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22784 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22785    { (exit 1); exit 1; }; }
22786  fi
22787
22788 { echo "$as_me:$LINENO: checking size of int" >&5
22789 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22790     if test "${ac_cv_sizeof_int+set}" = set; then
22791   echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22794    cat >conftest.$ac_ext <<_ACEOF
22795 /* confdefs.h.  */
22796 _ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h.  */
22800 #include "confdefs.h"
22801    #include <sys/types.h>
22802
22803
22804 int
22805 main ()
22806 {
22807 switch (0) case 0: case (sizeof (int) == $ac_size):;
22808   ;
22809   return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_compile") 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } && {
22826          test -z "$ac_c_werror_flag" ||
22827          test ! -s conftest.err
22828        } && test -s conftest.$ac_objext; then
22829   ac_cv_sizeof_int=$ac_size
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838    if test x$ac_cv_sizeof_int != x ; then break; fi
22839   done
22840
22841 fi
22842
22843
22844 unspecif=$ac_cv_sizeof_int
22845 if test x$unspecif = x ; then
22846   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22847 echo "$as_me: error: cannot determine a size for int" >&2;}
22848    { (exit 1); exit 1; }; }
22849 fi
22850
22851     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22852   echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22855    cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h.  */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h.  */
22861 #include "confdefs.h"
22862    #include <sys/types.h>
22863
22864
22865 int
22866 main ()
22867 {
22868 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22869   ;
22870   return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877   *) ac_try_echo=$ac_try;;
22878 esac
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880   (eval "$ac_compile") 2>conftest.er1
22881   ac_status=$?
22882   grep -v '^ *+' conftest.er1 >conftest.err
22883   rm -f conftest.er1
22884   cat conftest.err >&5
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } && {
22887          test -z "$ac_c_werror_flag" ||
22888          test ! -s conftest.err
22889        } && test -s conftest.$ac_objext; then
22890   ac_cv_sizeof_signed_int=$ac_size
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22900   done
22901
22902 fi
22903
22904
22905 signed=$ac_cv_sizeof_signed_int
22906 if test x$signed = x ; then
22907   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22908 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22909    { (exit 1); exit 1; }; }
22910 fi
22911 if test x$unspecif != x$signed ; then
22912   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22913 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22914    { (exit 1); exit 1; }; }
22915 fi
22916
22917     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22921    cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 #include "confdefs.h"
22928    #include <sys/types.h>
22929
22930
22931 int
22932 main ()
22933 {
22934 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946   (eval "$ac_compile") 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } && {
22953          test -z "$ac_c_werror_flag" ||
22954          test ! -s conftest.err
22955        } && test -s conftest.$ac_objext; then
22956   ac_cv_sizeof_unsigned_int=$ac_size
22957 else
22958   echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961
22962 fi
22963
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22966   done
22967
22968 fi
22969
22970
22971 unsigned=$ac_cv_sizeof_unsigned_int
22972 if test x$unsigned = x ; then
22973   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22974 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22975    { (exit 1); exit 1; }; }
22976 fi
22977 if test x$unsigned != x$signed ; then
22978   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22979 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22980    { (exit 1); exit 1; }; }
22981 fi
22982
22983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22984 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22985                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22986 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22987
22988  if test "${ac_cv_struct_boundary_int+set}" = set; then
22989   echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22992    cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998 #include "confdefs.h"
22999      #include <sys/types.h>
23000      struct s { char c; int i; };
23001
23002 int
23003 main ()
23004 {
23005 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_compile") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest.$ac_objext; then
23027   ac_cv_struct_boundary_int=$ac_size
23028 else
23029   echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032
23033 fi
23034
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23037   done
23038
23039 fi
23040
23041  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23042 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23043  if test x$ac_cv_struct_boundary_int = x ; then
23044    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23045 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23046    { (exit 1); exit 1; }; }
23047  fi
23048
23049 { echo "$as_me:$LINENO: checking size of long int" >&5
23050 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23051     if test "${ac_cv_sizeof_long_int+set}" = set; then
23052   echo $ECHO_N "(cached) $ECHO_C" >&6
23053 else
23054   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23055    cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061 #include "confdefs.h"
23062    #include <sys/types.h>
23063
23064
23065 int
23066 main ()
23067 {
23068 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077   *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080   (eval "$ac_compile") 2>conftest.er1
23081   ac_status=$?
23082   grep -v '^ *+' conftest.er1 >conftest.err
23083   rm -f conftest.er1
23084   cat conftest.err >&5
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); } && {
23087          test -z "$ac_c_werror_flag" ||
23088          test ! -s conftest.err
23089        } && test -s conftest.$ac_objext; then
23090   ac_cv_sizeof_long_int=$ac_size
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095
23096 fi
23097
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23100   done
23101
23102 fi
23103
23104
23105 unspecif=$ac_cv_sizeof_long_int
23106 if test x$unspecif = x ; then
23107   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23108 echo "$as_me: error: cannot determine a size for long int" >&2;}
23109    { (exit 1); exit 1; }; }
23110 fi
23111
23112     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23113   echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23116    cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122 #include "confdefs.h"
23123    #include <sys/types.h>
23124
23125
23126 int
23127 main ()
23128 {
23129 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23130   ;
23131   return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138   *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141   (eval "$ac_compile") 2>conftest.er1
23142   ac_status=$?
23143   grep -v '^ *+' conftest.er1 >conftest.err
23144   rm -f conftest.er1
23145   cat conftest.err >&5
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); } && {
23148          test -z "$ac_c_werror_flag" ||
23149          test ! -s conftest.err
23150        } && test -s conftest.$ac_objext; then
23151   ac_cv_sizeof_signed_long_int=$ac_size
23152 else
23153   echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156
23157 fi
23158
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23161   done
23162
23163 fi
23164
23165
23166 signed=$ac_cv_sizeof_signed_long_int
23167 if test x$signed = x ; then
23168   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23169 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23170    { (exit 1); exit 1; }; }
23171 fi
23172 if test x$unspecif != x$signed ; then
23173   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23174 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23175    { (exit 1); exit 1; }; }
23176 fi
23177
23178     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23179   echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23181   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23182    cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 #include "confdefs.h"
23189    #include <sys/types.h>
23190
23191
23192 int
23193 main ()
23194 {
23195 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23196   ;
23197   return 0;
23198 }
23199 _ACEOF
23200 rm -f conftest.$ac_objext
23201 if { (ac_try="$ac_compile"
23202 case "(($ac_try" in
23203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204   *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207   (eval "$ac_compile") 2>conftest.er1
23208   ac_status=$?
23209   grep -v '^ *+' conftest.er1 >conftest.err
23210   rm -f conftest.er1
23211   cat conftest.err >&5
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } && {
23214          test -z "$ac_c_werror_flag" ||
23215          test ! -s conftest.err
23216        } && test -s conftest.$ac_objext; then
23217   ac_cv_sizeof_unsigned_long_int=$ac_size
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222
23223 fi
23224
23225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23227   done
23228
23229 fi
23230
23231
23232 unsigned=$ac_cv_sizeof_unsigned_long_int
23233 if test x$unsigned = x ; then
23234   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23235 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23236    { (exit 1); exit 1; }; }
23237 fi
23238 if test x$unsigned != x$signed ; then
23239   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23240 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23241    { (exit 1); exit 1; }; }
23242 fi
23243
23244 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23245 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23246               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23247 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23248
23249  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23250   echo $ECHO_N "(cached) $ECHO_C" >&6
23251 else
23252   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23253    cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259 #include "confdefs.h"
23260      #include <sys/types.h>
23261      struct s { char c; long int i; };
23262
23263 int
23264 main ()
23265 {
23266 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278   (eval "$ac_compile") 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && {
23285          test -z "$ac_c_werror_flag" ||
23286          test ! -s conftest.err
23287        } && test -s conftest.$ac_objext; then
23288   ac_cv_struct_boundary_long_int=$ac_size
23289 else
23290   echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23292
23293
23294 fi
23295
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23298   done
23299
23300 fi
23301
23302  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23303 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23304  if test x$ac_cv_struct_boundary_long_int = x ; then
23305    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23306 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23307    { (exit 1); exit 1; }; }
23308  fi
23309
23310 { echo "$as_me:$LINENO: checking size of long long int" >&5
23311 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23312     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23313   echo $ECHO_N "(cached) $ECHO_C" >&6
23314 else
23315   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23316    cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322 #include "confdefs.h"
23323    #include <sys/types.h>
23324
23325
23326 int
23327 main ()
23328 {
23329 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338   *) ac_try_echo=$ac_try;;
23339 esac
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341   (eval "$ac_compile") 2>conftest.er1
23342   ac_status=$?
23343   grep -v '^ *+' conftest.er1 >conftest.err
23344   rm -f conftest.er1
23345   cat conftest.err >&5
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); } && {
23348          test -z "$ac_c_werror_flag" ||
23349          test ! -s conftest.err
23350        } && test -s conftest.$ac_objext; then
23351   ac_cv_sizeof_long_long_int=$ac_size
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356
23357 fi
23358
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23361   done
23362
23363 fi
23364
23365
23366 unspecif=$ac_cv_sizeof_long_long_int
23367 if test x$unspecif = x ; then
23368   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23369 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23370    { (exit 1); exit 1; }; }
23371 fi
23372
23373     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23374   echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23377    cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 #include "confdefs.h"
23384    #include <sys/types.h>
23385
23386
23387 int
23388 main ()
23389 {
23390 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23391   ;
23392   return 0;
23393 }
23394 _ACEOF
23395 rm -f conftest.$ac_objext
23396 if { (ac_try="$ac_compile"
23397 case "(($ac_try" in
23398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399   *) ac_try_echo=$ac_try;;
23400 esac
23401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402   (eval "$ac_compile") 2>conftest.er1
23403   ac_status=$?
23404   grep -v '^ *+' conftest.er1 >conftest.err
23405   rm -f conftest.er1
23406   cat conftest.err >&5
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); } && {
23409          test -z "$ac_c_werror_flag" ||
23410          test ! -s conftest.err
23411        } && test -s conftest.$ac_objext; then
23412   ac_cv_sizeof_signed_long_long_int=$ac_size
23413 else
23414   echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23416
23417
23418 fi
23419
23420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23421    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23422   done
23423
23424 fi
23425
23426
23427 signed=$ac_cv_sizeof_signed_long_long_int
23428 if test x$signed = x ; then
23429   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23430 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23431    { (exit 1); exit 1; }; }
23432 fi
23433 if test x$unspecif != x$signed ; then
23434   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23435 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23436    { (exit 1); exit 1; }; }
23437 fi
23438
23439     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23440   echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23443    cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449 #include "confdefs.h"
23450    #include <sys/types.h>
23451
23452
23453 int
23454 main ()
23455 {
23456 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_compile") 2>conftest.er1
23469   ac_status=$?
23470   grep -v '^ *+' conftest.er1 >conftest.err
23471   rm -f conftest.er1
23472   cat conftest.err >&5
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } && {
23475          test -z "$ac_c_werror_flag" ||
23476          test ! -s conftest.err
23477        } && test -s conftest.$ac_objext; then
23478   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23479 else
23480   echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23482
23483
23484 fi
23485
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23488   done
23489
23490 fi
23491
23492
23493 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23494 if test x$unsigned = x ; then
23495   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23496 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23497    { (exit 1); exit 1; }; }
23498 fi
23499 if test x$unsigned != x$signed ; then
23500   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23501 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23502    { (exit 1); exit 1; }; }
23503 fi
23504
23505 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23506 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23507          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23508 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23509
23510  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23511   echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23514    cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h.  */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h.  */
23520 #include "confdefs.h"
23521      #include <sys/types.h>
23522      struct s { char c; long long int i; };
23523
23524 int
23525 main ()
23526 {
23527 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536   *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539   (eval "$ac_compile") 2>conftest.er1
23540   ac_status=$?
23541   grep -v '^ *+' conftest.er1 >conftest.err
23542   rm -f conftest.er1
23543   cat conftest.err >&5
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); } && {
23546          test -z "$ac_c_werror_flag" ||
23547          test ! -s conftest.err
23548        } && test -s conftest.$ac_objext; then
23549   ac_cv_struct_boundary_long_long_int=$ac_size
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23559   done
23560
23561 fi
23562
23563  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23564 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23565  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23566    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23567 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23568    { (exit 1); exit 1; }; }
23569  fi
23570
23571
23572     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23573 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23574
23575  if test "${ac_cv_struct_boundary_float+set}" = set; then
23576   echo $ECHO_N "(cached) $ECHO_C" >&6
23577 else
23578   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23579    cat >conftest.$ac_ext <<_ACEOF
23580 /* confdefs.h.  */
23581 _ACEOF
23582 cat confdefs.h >>conftest.$ac_ext
23583 cat >>conftest.$ac_ext <<_ACEOF
23584 /* end confdefs.h.  */
23585 #include "confdefs.h"
23586      #include <sys/types.h>
23587      struct s { char c; float i; };
23588
23589 int
23590 main ()
23591 {
23592 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext
23598 if { (ac_try="$ac_compile"
23599 case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_compile") 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } && {
23611          test -z "$ac_c_werror_flag" ||
23612          test ! -s conftest.err
23613        } && test -s conftest.$ac_objext; then
23614   ac_cv_struct_boundary_float=$ac_size
23615 else
23616   echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619
23620 fi
23621
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23623    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23624   done
23625
23626 fi
23627
23628  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23629 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23630  if test x$ac_cv_struct_boundary_float = x ; then
23631    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23632 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23633    { (exit 1); exit 1; }; }
23634  fi
23635                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23636 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23637
23638  if test "${ac_cv_struct_boundary_double+set}" = set; then
23639   echo $ECHO_N "(cached) $ECHO_C" >&6
23640 else
23641   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23642    cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648 #include "confdefs.h"
23649      #include <sys/types.h>
23650      struct s { char c; double i; };
23651
23652 int
23653 main ()
23654 {
23655 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext
23661 if { (ac_try="$ac_compile"
23662 case "(($ac_try" in
23663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664   *) ac_try_echo=$ac_try;;
23665 esac
23666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667   (eval "$ac_compile") 2>conftest.er1
23668   ac_status=$?
23669   grep -v '^ *+' conftest.er1 >conftest.err
23670   rm -f conftest.er1
23671   cat conftest.err >&5
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } && {
23674          test -z "$ac_c_werror_flag" ||
23675          test ! -s conftest.err
23676        } && test -s conftest.$ac_objext; then
23677   ac_cv_struct_boundary_double=$ac_size
23678 else
23679   echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682
23683 fi
23684
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23687   done
23688
23689 fi
23690
23691  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23692 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23693  if test x$ac_cv_struct_boundary_double = x ; then
23694    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23695 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23696    { (exit 1); exit 1; }; }
23697  fi
23698
23699
23700 { echo "$as_me:$LINENO: checking size of void *" >&5
23701 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23702     if test "${ac_cv_sizeof_void_p+set}" = set; then
23703   echo $ECHO_N "(cached) $ECHO_C" >&6
23704 else
23705   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23706    cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h.  */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h.  */
23712 #include "confdefs.h"
23713    #include <sys/types.h>
23714
23715
23716 int
23717 main ()
23718 {
23719 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23720   ;
23721   return 0;
23722 }
23723 _ACEOF
23724 rm -f conftest.$ac_objext
23725 if { (ac_try="$ac_compile"
23726 case "(($ac_try" in
23727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728   *) ac_try_echo=$ac_try;;
23729 esac
23730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731   (eval "$ac_compile") 2>conftest.er1
23732   ac_status=$?
23733   grep -v '^ *+' conftest.er1 >conftest.err
23734   rm -f conftest.er1
23735   cat conftest.err >&5
23736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737   (exit $ac_status); } && {
23738          test -z "$ac_c_werror_flag" ||
23739          test ! -s conftest.err
23740        } && test -s conftest.$ac_objext; then
23741   ac_cv_sizeof_void_p=$ac_size
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746
23747 fi
23748
23749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23751   done
23752
23753 fi
23754
23755
23756 if test x$ac_cv_sizeof_void_p = x ; then
23757   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23758 echo "$as_me: error: cannot determine a size for void *" >&2;}
23759    { (exit 1); exit 1; }; }
23760 fi
23761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23762 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23763                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23764 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23765
23766  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23767   echo $ECHO_N "(cached) $ECHO_C" >&6
23768 else
23769   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23770    cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h.  */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h.  */
23776 #include "confdefs.h"
23777      #include <sys/types.h>
23778      struct s { char c; void * i; };
23779
23780 int
23781 main ()
23782 {
23783 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 rm -f conftest.$ac_objext
23789 if { (ac_try="$ac_compile"
23790 case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795   (eval "$ac_compile") 2>conftest.er1
23796   ac_status=$?
23797   grep -v '^ *+' conftest.er1 >conftest.err
23798   rm -f conftest.er1
23799   cat conftest.err >&5
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); } && {
23802          test -z "$ac_c_werror_flag" ||
23803          test ! -s conftest.err
23804        } && test -s conftest.$ac_objext; then
23805   ac_cv_struct_boundary_void_p=$ac_size
23806 else
23807   echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810
23811 fi
23812
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23815   done
23816
23817 fi
23818
23819  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23820 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23821  if test x$ac_cv_struct_boundary_void_p = x ; then
23822    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23823 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23824    { (exit 1); exit 1; }; }
23825  fi
23826
23827 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23828 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23829     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23830   echo $ECHO_N "(cached) $ECHO_C" >&6
23831 else
23832   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23833    cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h.  */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h.  */
23839 #include "confdefs.h"
23840    #include <sys/types.h>
23841
23842
23843 int
23844 main ()
23845 {
23846 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855   *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858   (eval "$ac_compile") 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } && {
23865          test -z "$ac_c_werror_flag" ||
23866          test ! -s conftest.err
23867        } && test -s conftest.$ac_objext; then
23868   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23869 else
23870   echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23872
23873
23874 fi
23875
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23878   done
23879
23880 fi
23881
23882
23883 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23884   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23885 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23886    { (exit 1); exit 1; }; }
23887 fi
23888 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23889 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23890
23891
23892
23893 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23894 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23895 if test x$endian = x1 ; then
23896   trace_endian=B
23897 else
23898   trace_endian=l
23899 fi
23900 gras_arch=unknown
23901 trace="$trace_endian"
23902
23903 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23904
23905 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23906 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23907 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23908 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23909
23910 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23911 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23912
23913 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23914
23915 # sizeof float/double are not tested since IEEE 754 is assumed.
23916 # Check README.IEEE for rational.
23917
23918 # The numbers after the _ in the arch name are the maximal packing boundary.
23919 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23920 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23921 case $trace in
23922   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;;
23923   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;;
23924   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;;
23925   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;;
23926
23927   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;;
23928
23929   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;;
23930   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;;
23931   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;;
23932   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;;
23933
23934   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;;
23935   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;;
23936 esac
23937 if test x$gras_arch = xunknown ; then
23938   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23939 echo "${ECHO_T}damnit ($trace)" >&6; }
23940   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23941 Please report this architecture trace ($trace) and what it corresponds to." >&5
23942 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23943 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23944    { (exit 1); exit 1; }; }
23945 fi
23946 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23947
23948 cat >>confdefs.h <<_ACEOF
23949 #define GRAS_THISARCH $gras_arch
23950 _ACEOF
23951
23952 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23953 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23954
23955  if test "$gras_size" = 32; then
23956   GRAS_ARCH_32_BITS_TRUE=
23957   GRAS_ARCH_32_BITS_FALSE='#'
23958 else
23959   GRAS_ARCH_32_BITS_TRUE='#'
23960   GRAS_ARCH_32_BITS_FALSE=
23961 fi
23962
23963
23964 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23965 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23966 ac_cv_sizeof_max=0
23967 for s in $ac_cv_sizeof_char \
23968          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23969          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23970          4 8; do
23971
23972   if test $ac_cv_sizeof_max -lt $s ; then
23973     ac_cv_sizeof_max=$s
23974   fi
23975 done
23976 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23977 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23978
23979 cat >>confdefs.h <<_ACEOF
23980 #define SIZEOF_MAX $ac_cv_sizeof_max
23981 _ACEOF
23982
23983
23984
23985 # Check architecture signature end
23986   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23987 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23988    cat >conftest.$ac_ext <<_ACEOF
23989 /* confdefs.h.  */
23990 _ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h.  */
23994 #include "confdefs.h"
23995         #include <sys/types.h>
23996         #include <stddef.h> /* offsetof() */
23997         struct s {char c; double d;};
23998
23999 int
24000 main ()
24001 {
24002 switch (0)
24003         case 0:
24004         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24005
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014   *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017   (eval "$ac_compile") 2>conftest.er1
24018   ac_status=$?
24019   grep -v '^ *+' conftest.er1 >conftest.err
24020   rm -f conftest.er1
24021   cat conftest.err >&5
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); } && {
24024          test -z "$ac_c_werror_flag" ||
24025          test ! -s conftest.err
24026        } && test -s conftest.$ac_objext; then
24027   gras_struct_packed=yes
24028 else
24029   echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24031
24032         gras_struct_packed=no
24033 fi
24034
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036
24037    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24038 echo "${ECHO_T}$gras_struct_packed" >&6; }
24039    if test x$gras_struct_packed = "xyes" ; then
24040      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24041 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24042    { (exit 1); exit 1; }; }
24043    fi
24044
24045    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24046 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24047    cat >conftest.$ac_ext <<_ACEOF
24048 /* confdefs.h.  */
24049 _ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h.  */
24053 #include "confdefs.h"
24054         #include <sys/types.h>
24055         #include <stddef.h> /* offsetof() */
24056         struct s {double d; int i; char c;};
24057
24058 int
24059 main ()
24060 {
24061 switch (0)
24062         case 0:
24063         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24064
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073   *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076   (eval "$ac_compile") 2>conftest.er1
24077   ac_status=$?
24078   grep -v '^ *+' conftest.er1 >conftest.err
24079   rm -f conftest.er1
24080   cat conftest.err >&5
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); } && {
24083          test -z "$ac_c_werror_flag" ||
24084          test ! -s conftest.err
24085        } && test -s conftest.$ac_objext; then
24086   gras_struct_compact=yes
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091         gras_struct_compact=no
24092 fi
24093
24094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24095
24096    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24097 echo "${ECHO_T}$gras_struct_compact" >&6; }
24098
24099    if test x$gras_struct_compact != xyes ; then
24100      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24101 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24102    { (exit 1); exit 1; }; }
24103    fi
24104
24105 cat >>confdefs.h <<_ACEOF
24106 #define GRAS_STRUCT_COMPACT 1
24107 _ACEOF
24108
24109    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24110 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24111
24112    cat >conftest.$ac_ext <<_ACEOF
24113 /* confdefs.h.  */
24114 _ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h.  */
24118 #include "confdefs.h"
24119       #include <sys/types.h>
24120         #include <stddef.h> /* offsetof() */
24121         struct s { double d; int i; char c[6]; };
24122
24123 int
24124 main ()
24125 {
24126 switch (0)
24127       case 0:
24128       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24129
24130   ;
24131   return 0;
24132 }
24133 _ACEOF
24134 rm -f conftest.$ac_objext
24135 if { (ac_try="$ac_compile"
24136 case "(($ac_try" in
24137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138   *) ac_try_echo=$ac_try;;
24139 esac
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141   (eval "$ac_compile") 2>conftest.er1
24142   ac_status=$?
24143   grep -v '^ *+' conftest.er1 >conftest.err
24144   rm -f conftest.er1
24145   cat conftest.err >&5
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); } && {
24148          test -z "$ac_c_werror_flag" ||
24149          test ! -s conftest.err
24150        } && test -s conftest.$ac_objext; then
24151   gras_array_straddle_struct=yes
24152 else
24153   echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24155
24156         gras_array_straddle_struct=no
24157 fi
24158
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160
24161    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24162 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24163
24164    if test x$gras_array_straddle_struct = xyes ; then
24165
24166 cat >>confdefs.h <<_ACEOF
24167 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24168 _ACEOF
24169
24170    else
24171      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24172 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24173    { (exit 1); exit 1; }; }
24174    fi
24175
24176
24177
24178
24179
24180   { echo "$as_me:$LINENO: result: " >&5
24181 echo "${ECHO_T}" >&6; }
24182   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24183 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24184
24185
24186
24187
24188 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24189 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24190 if test "${ac_cv_check_mcsc+set}" = set; then
24191   echo $ECHO_N "(cached) $ECHO_C" >&6
24192 else
24193
24194 if test "$cross_compiling" = yes; then
24195   ac_cv_check_mcsc=no
24196
24197 else
24198   cat >conftest.$ac_ext <<_ACEOF
24199 /* confdefs.h.  */
24200 _ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h.  */
24204
24205
24206 #include <stdio.h>
24207 #include <stdlib.h>
24208 #include <ucontext.h>
24209
24210 ucontext_t uc_child;
24211 ucontext_t uc_main;
24212
24213 void child(void *arg)
24214 {
24215     if (arg != (void *)12345)
24216         exit(1);
24217     if (swapcontext(&uc_child, &uc_main) != 0)
24218         exit(2);
24219 }
24220
24221 int main(int argc, char *argv[])
24222 {
24223     FILE *fp;
24224     void *stack;
24225
24226     /* the default is that it fails */
24227     if ((fp = fopen("conftestval", "w")) == NULL)
24228         exit(3);
24229     fprintf(fp, "no\n");
24230     fclose(fp);
24231
24232     /* configure a child user-space context */
24233     if ((stack = malloc(64*1024)) == NULL)
24234         exit(4);
24235     if (getcontext(&uc_child) != 0)
24236         exit(5);
24237     uc_child.uc_link = NULL;
24238     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24239     uc_child.uc_stack.ss_size = 32*1024;
24240     uc_child.uc_stack.ss_flags = 0;
24241     makecontext(&uc_child, child, 2, (void *)12345);
24242
24243     /* switch into the user context */
24244     if (swapcontext(&uc_main, &uc_child) != 0)
24245         exit(6);
24246
24247     /* Fine, child came home */
24248     if ((fp = fopen("conftestval", "w")) == NULL)
24249         exit(7);
24250     fprintf(fp, "yes\n");
24251     fclose(fp);
24252
24253     /* die successfully */
24254     exit(0);
24255 }
24256
24257 _ACEOF
24258 rm -f conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265   (eval "$ac_link") 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24269   { (case "(($ac_try" in
24270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24271   *) ac_try_echo=$ac_try;;
24272 esac
24273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24274   (eval "$ac_try") 2>&5
24275   ac_status=$?
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); }; }; then
24278   ac_cv_check_mcsc=`cat conftestval`
24279 else
24280   echo "$as_me: program exited with status $ac_status" >&5
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 ( exit $ac_status )
24285 ac_cv_check_mcsc=no
24286 fi
24287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24288 fi
24289
24290
24291 fi
24292 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24293 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24294 if test ".$ac_cv_check_mcsc" = .yes; then
24295     mcsc=yes
24296 else
24297     mcsc=no
24298 fi
24299
24300
24301
24302 for ac_header in pthread.h
24303 do
24304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24309   echo $ECHO_N "(cached) $ECHO_C" >&6
24310 fi
24311 ac_res=`eval echo '${'$as_ac_Header'}'`
24312                { echo "$as_me:$LINENO: result: $ac_res" >&5
24313 echo "${ECHO_T}$ac_res" >&6; }
24314 else
24315   # Is the header compilable?
24316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24318 cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324 $ac_includes_default
24325 #include <$ac_header>
24326 _ACEOF
24327 rm -f conftest.$ac_objext
24328 if { (ac_try="$ac_compile"
24329 case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334   (eval "$ac_compile") 2>conftest.er1
24335   ac_status=$?
24336   grep -v '^ *+' conftest.er1 >conftest.err
24337   rm -f conftest.er1
24338   cat conftest.err >&5
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); } && {
24341          test -z "$ac_c_werror_flag" ||
24342          test ! -s conftest.err
24343        } && test -s conftest.$ac_objext; then
24344   ac_header_compiler=yes
24345 else
24346   echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24348
24349         ac_header_compiler=no
24350 fi
24351
24352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24354 echo "${ECHO_T}$ac_header_compiler" >&6; }
24355
24356 # Is the header present?
24357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24359 cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 #include <$ac_header>
24366 _ACEOF
24367 if { (ac_try="$ac_cpp conftest.$ac_ext"
24368 case "(($ac_try" in
24369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370   *) ac_try_echo=$ac_try;;
24371 esac
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24374   ac_status=$?
24375   grep -v '^ *+' conftest.er1 >conftest.err
24376   rm -f conftest.er1
24377   cat conftest.err >&5
24378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379   (exit $ac_status); } >/dev/null && {
24380          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24381          test ! -s conftest.err
24382        }; then
24383   ac_header_preproc=yes
24384 else
24385   echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24387
24388   ac_header_preproc=no
24389 fi
24390
24391 rm -f conftest.err conftest.$ac_ext
24392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24393 echo "${ECHO_T}$ac_header_preproc" >&6; }
24394
24395 # So?  What about this header?
24396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24397   yes:no: )
24398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24402     ac_header_preproc=yes
24403     ;;
24404   no:yes:* )
24405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24417     ( cat <<\_ASBOX
24418 ## -------------------------------------------------- ##
24419 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24420 ## -------------------------------------------------- ##
24421 _ASBOX
24422      ) | sed "s/^/$as_me: WARNING:     /" >&2
24423     ;;
24424 esac
24425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24428   echo $ECHO_N "(cached) $ECHO_C" >&6
24429 else
24430   eval "$as_ac_Header=\$ac_header_preproc"
24431 fi
24432 ac_res=`eval echo '${'$as_ac_Header'}'`
24433                { echo "$as_me:$LINENO: result: $ac_res" >&5
24434 echo "${ECHO_T}$ac_res" >&6; }
24435
24436 fi
24437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24438   cat >>confdefs.h <<_ACEOF
24439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24440 _ACEOF
24441
24442 fi
24443
24444 done
24445
24446 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24447 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24448 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24449   echo $ECHO_N "(cached) $ECHO_C" >&6
24450 else
24451   ac_check_lib_save_LIBS=$LIBS
24452 LIBS="-lpthread  $LIBS"
24453 cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459
24460 /* Override any GCC internal prototype to avoid an error.
24461    Use char because int might match the return type of a GCC
24462    builtin and then its argument prototype would still apply.  */
24463 #ifdef __cplusplus
24464 extern "C"
24465 #endif
24466 char pthread_create ();
24467 int
24468 main ()
24469 {
24470 return pthread_create ();
24471   ;
24472   return 0;
24473 }
24474 _ACEOF
24475 rm -f conftest.$ac_objext conftest$ac_exeext
24476 if { (ac_try="$ac_link"
24477 case "(($ac_try" in
24478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479   *) ac_try_echo=$ac_try;;
24480 esac
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482   (eval "$ac_link") 2>conftest.er1
24483   ac_status=$?
24484   grep -v '^ *+' conftest.er1 >conftest.err
24485   rm -f conftest.er1
24486   cat conftest.err >&5
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } && {
24489          test -z "$ac_c_werror_flag" ||
24490          test ! -s conftest.err
24491        } && test -s conftest$ac_exeext &&
24492        $as_test_x conftest$ac_exeext; then
24493   ac_cv_lib_pthread_pthread_create=yes
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         ac_cv_lib_pthread_pthread_create=no
24499 fi
24500
24501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24502       conftest$ac_exeext conftest.$ac_ext
24503 LIBS=$ac_check_lib_save_LIBS
24504 fi
24505 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24506 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24507 if test $ac_cv_lib_pthread_pthread_create = yes; then
24508   pthread=yes
24509 else
24510   pthread=no
24511 fi
24512
24513
24514
24515 if test ".$mcsc" = .yes; then
24516    mcsc=yes
24517 elif test ".$pthread" = .yes; then
24518    pthread=yes
24519 else
24520     ac_header=windows.h
24521     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24522     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24523       windows_context=yes
24524     else
24525       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24526 echo "$as_me: error: no appropriate backend found" >&2;}
24527    { (exit 1); exit 1; }; }
24528     fi
24529 fi
24530
24531
24532 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24533 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24534
24535
24536 # Check whether --with-pthread was given.
24537 if test "${with_pthread+set}" = set; then
24538   withval=$with_pthread; with_context=pthread
24539 fi
24540
24541
24542 # Check whether --with-pthread was given.
24543 if test "${with_pthread+set}" = set; then
24544   withval=$with_pthread; with_context=pthread
24545 fi
24546
24547
24548
24549 # Check whether --with-context was given.
24550 if test "${with_context+set}" = set; then
24551   withval=$with_context;
24552 else
24553   with_context=auto
24554 fi
24555
24556
24557 if test "x$with_context$mcsc" = "xucontextno" ; then
24558   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24559 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24560    { (exit 77); exit 77; }; }
24561 fi
24562
24563 case $with_context in
24564  ucontext) ;;
24565  pthread) ;;
24566  pthreads) ;;
24567  windows) ;;
24568  auto) with_context=ucontext;;
24569  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24570 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24571    { (exit 1); exit 1; }; } ;;
24572 esac
24573
24574 if test "x$with_context" = "xucontext" ; then
24575   if test ".$mcsc" = .yes; then
24576     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24577 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24578
24579 cat >>confdefs.h <<\_ACEOF
24580 #define CONTEXT_UCONTEXT 1
24581 _ACEOF
24582
24583   else
24584     if test ".$windows_context" = .yes ; then
24585       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24586 echo "${ECHO_T}use windows context portability layer." >&6; }
24587       with_context=windows
24588     else
24589       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24590 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24591       with_context=pthread
24592     fi
24593   fi
24594 fi
24595
24596 if test "x$with_context" = "xpthreads"; then
24597   with_context=pthread
24598 fi
24599 if test "x$with_context" = "xpthread"; then
24600
24601 for ac_header in pthread.h
24602 do
24603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24605   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24608   echo $ECHO_N "(cached) $ECHO_C" >&6
24609 fi
24610 ac_res=`eval echo '${'$as_ac_Header'}'`
24611                { echo "$as_me:$LINENO: result: $ac_res" >&5
24612 echo "${ECHO_T}$ac_res" >&6; }
24613 else
24614   # Is the header compilable?
24615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24617 cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h.  */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h.  */
24623 $ac_includes_default
24624 #include <$ac_header>
24625 _ACEOF
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630   *) ac_try_echo=$ac_try;;
24631 esac
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633   (eval "$ac_compile") 2>conftest.er1
24634   ac_status=$?
24635   grep -v '^ *+' conftest.er1 >conftest.err
24636   rm -f conftest.er1
24637   cat conftest.err >&5
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); } && {
24640          test -z "$ac_c_werror_flag" ||
24641          test ! -s conftest.err
24642        } && test -s conftest.$ac_objext; then
24643   ac_header_compiler=yes
24644 else
24645   echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24647
24648         ac_header_compiler=no
24649 fi
24650
24651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24653 echo "${ECHO_T}$ac_header_compiler" >&6; }
24654
24655 # Is the header present?
24656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24658 cat >conftest.$ac_ext <<_ACEOF
24659 /* confdefs.h.  */
24660 _ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h.  */
24664 #include <$ac_header>
24665 _ACEOF
24666 if { (ac_try="$ac_cpp conftest.$ac_ext"
24667 case "(($ac_try" in
24668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669   *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24673   ac_status=$?
24674   grep -v '^ *+' conftest.er1 >conftest.err
24675   rm -f conftest.er1
24676   cat conftest.err >&5
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); } >/dev/null && {
24679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24680          test ! -s conftest.err
24681        }; then
24682   ac_header_preproc=yes
24683 else
24684   echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24686
24687   ac_header_preproc=no
24688 fi
24689
24690 rm -f conftest.err conftest.$ac_ext
24691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24692 echo "${ECHO_T}$ac_header_preproc" >&6; }
24693
24694 # So?  What about this header?
24695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24696   yes:no: )
24697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24701     ac_header_preproc=yes
24702     ;;
24703   no:yes:* )
24704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24716     ( cat <<\_ASBOX
24717 ## -------------------------------------------------- ##
24718 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24719 ## -------------------------------------------------- ##
24720 _ASBOX
24721      ) | sed "s/^/$as_me: WARNING:     /" >&2
24722     ;;
24723 esac
24724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729   eval "$as_ac_Header=\$ac_header_preproc"
24730 fi
24731 ac_res=`eval echo '${'$as_ac_Header'}'`
24732                { echo "$as_me:$LINENO: result: $ac_res" >&5
24733 echo "${ECHO_T}$ac_res" >&6; }
24734
24735 fi
24736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24737   cat >>confdefs.h <<_ACEOF
24738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24739 _ACEOF
24740
24741 fi
24742
24743 done
24744
24745
24746 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24747 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24748 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   ac_check_lib_save_LIBS=$LIBS
24752 LIBS="-lpthread  $LIBS"
24753 cat >conftest.$ac_ext <<_ACEOF
24754 /* confdefs.h.  */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h.  */
24759
24760 /* Override any GCC internal prototype to avoid an error.
24761    Use char because int might match the return type of a GCC
24762    builtin and then its argument prototype would still apply.  */
24763 #ifdef __cplusplus
24764 extern "C"
24765 #endif
24766 char pthread_create ();
24767 int
24768 main ()
24769 {
24770 return pthread_create ();
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 rm -f conftest.$ac_objext conftest$ac_exeext
24776 if { (ac_try="$ac_link"
24777 case "(($ac_try" in
24778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779   *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782   (eval "$ac_link") 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } && {
24789          test -z "$ac_c_werror_flag" ||
24790          test ! -s conftest.err
24791        } && test -s conftest$ac_exeext &&
24792        $as_test_x conftest$ac_exeext; then
24793   ac_cv_lib_pthread_pthread_create=yes
24794 else
24795   echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798         ac_cv_lib_pthread_pthread_create=no
24799 fi
24800
24801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24802       conftest$ac_exeext conftest.$ac_ext
24803 LIBS=$ac_check_lib_save_LIBS
24804 fi
24805 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24806 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24807 if test $ac_cv_lib_pthread_pthread_create = yes; then
24808   cat >>confdefs.h <<_ACEOF
24809 #define HAVE_LIBPTHREAD 1
24810 _ACEOF
24811
24812   LIBS="-lpthread $LIBS"
24813
24814 else
24815   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24816 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24817    { (exit 1); exit 1; }; }
24818 fi
24819
24820
24821 cat >>confdefs.h <<\_ACEOF
24822 #define CONTEXT_THREADS 1
24823 _ACEOF
24824
24825   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
24826 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
24827 fi
24828  if test "x$with_context" != xucontext; then
24829   CONTEXT_THREADS_TRUE=
24830   CONTEXT_THREADS_FALSE='#'
24831 else
24832   CONTEXT_THREADS_TRUE='#'
24833   CONTEXT_THREADS_FALSE=
24834 fi
24835
24836
24837
24838 if test "x$with_context" = "xucontext" ; then
24839   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24840 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24841 if test "${ac_cv_check_stackgrowth+set}" = set; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 else
24844
24845 cross_compiling=no
24846 if test "$cross_compiling" = yes; then
24847   ac_cv_check_stackgrowth=down
24848
24849 else
24850   cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h.  */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h.  */
24856
24857 #include <stdio.h>
24858 #include <stdlib.h>
24859 static int iterate = 10;
24860 static int growsdown(int *x)
24861 {
24862     auto int y;
24863     y = (x > &y);
24864     if (--iterate > 0)
24865         y = growsdown(&y);
24866     if (y != (x > &y))
24867         exit(1);
24868     return y;
24869 }
24870 int main(int argc, char *argv[])
24871 {
24872     FILE *f;
24873     auto int x;
24874     if ((f = fopen("conftestval", "w")) == NULL)
24875         exit(1);
24876     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24877     fclose(f);
24878     exit(0);
24879 }
24880
24881
24882 _ACEOF
24883 rm -f conftest$ac_exeext
24884 if { (ac_try="$ac_link"
24885 case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_link") 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24894   { (case "(($ac_try" in
24895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896   *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899   (eval "$ac_try") 2>&5
24900   ac_status=$?
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); }; }; then
24903   ac_cv_check_stackgrowth=`cat conftestval`
24904 else
24905   echo "$as_me: program exited with status $ac_status" >&5
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909 ( exit $ac_status )
24910 ac_cv_check_stackgrowth=down
24911 fi
24912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24913 fi
24914
24915
24916 fi
24917 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24918 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24919 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24920     val="-1"
24921 else
24922     val="+1"
24923 fi
24924
24925 cat >>confdefs.h <<_ACEOF
24926 #define PTH_STACKGROWTH $val
24927 _ACEOF
24928
24929
24930   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24931       PTH_STACK_GROWTH="down"
24932   else
24933       PTH_STACK_GROWTH="up"
24934   fi
24935
24936
24937
24938
24939
24940
24941 for ac_func in makecontext
24942 do
24943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24947   echo $ECHO_N "(cached) $ECHO_C" >&6
24948 else
24949   cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h.  */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h.  */
24955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24957 #define $ac_func innocuous_$ac_func
24958
24959 /* System header to define __stub macros and hopefully few prototypes,
24960     which can conflict with char $ac_func (); below.
24961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24962     <limits.h> exists even on freestanding compilers.  */
24963
24964 #ifdef __STDC__
24965 # include <limits.h>
24966 #else
24967 # include <assert.h>
24968 #endif
24969
24970 #undef $ac_func
24971
24972 /* Override any GCC internal prototype to avoid an error.
24973    Use char because int might match the return type of a GCC
24974    builtin and then its argument prototype would still apply.  */
24975 #ifdef __cplusplus
24976 extern "C"
24977 #endif
24978 char $ac_func ();
24979 /* The GNU C library defines this for functions which it implements
24980     to always fail with ENOSYS.  Some functions are actually named
24981     something starting with __ and the normal name is an alias.  */
24982 #if defined __stub_$ac_func || defined __stub___$ac_func
24983 choke me
24984 #endif
24985
24986 int
24987 main ()
24988 {
24989 return $ac_func ();
24990   ;
24991   return 0;
24992 }
24993 _ACEOF
24994 rm -f conftest.$ac_objext conftest$ac_exeext
24995 if { (ac_try="$ac_link"
24996 case "(($ac_try" in
24997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998   *) ac_try_echo=$ac_try;;
24999 esac
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001   (eval "$ac_link") 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } && {
25008          test -z "$ac_c_werror_flag" ||
25009          test ! -s conftest.err
25010        } && test -s conftest$ac_exeext &&
25011        $as_test_x conftest$ac_exeext; then
25012   eval "$as_ac_var=yes"
25013 else
25014   echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25016
25017         eval "$as_ac_var=no"
25018 fi
25019
25020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25021       conftest$ac_exeext conftest.$ac_ext
25022 fi
25023 ac_res=`eval echo '${'$as_ac_var'}'`
25024                { echo "$as_me:$LINENO: result: $ac_res" >&5
25025 echo "${ECHO_T}$ac_res" >&6; }
25026 if test `eval echo '${'$as_ac_var'}'` = yes; then
25027   cat >>confdefs.h <<_ACEOF
25028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25029 _ACEOF
25030
25031 fi
25032 done
25033
25034
25035 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25036 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25037 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25038   echo $ECHO_N "(cached) $ECHO_C" >&6
25039 else
25040
25041 if test ".$ac_cv_func_makecontext" = .no; then
25042         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25043 else
25044         OCFLAGS="$CFLAGS"
25045     CFLAGS="$CFLAGS -DTEST_makecontext"
25046     cross_compiling=no
25047         if test "$cross_compiling" = yes; then
25048
25049 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25050
25051 else
25052   cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058
25059 #include <stdio.h>
25060 #include <stdlib.h>
25061 #include <string.h>
25062 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25063 #include <sys/types.h>
25064 #include <signal.h>
25065 #include <unistd.h>
25066 #endif
25067 #if defined(TEST_makecontext)
25068 #include <ucontext.h>
25069 #endif
25070 union alltypes {
25071     long   l;
25072     double d;
25073     void  *vp;
25074     void (*fp)(void);
25075     char  *cp;
25076 };
25077 static volatile char *handler_addr = (char *)0xDEAD;
25078 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25079 static volatile int handler_done = 0;
25080 void handler(int sig)
25081 {
25082     char garbage[1024];
25083     int i;
25084     auto int dummy;
25085     for (i = 0; i < 1024; i++)
25086         garbage[i] = 'X';
25087     handler_addr = (char *)&dummy;
25088     handler_done = 1;
25089     return;
25090 }
25091 #endif
25092 #if defined(TEST_makecontext)
25093 static ucontext_t uc_handler;
25094 static ucontext_t uc_main;
25095 void handler(void)
25096 {
25097     char garbage[1024];
25098     int i;
25099     auto int dummy;
25100     for (i = 0; i < 1024; i++)
25101         garbage[i] = 'X';
25102     handler_addr = (char *)&dummy;
25103     swapcontext(&uc_handler, &uc_main);
25104     return;
25105 }
25106 #endif
25107 int main(int argc, char *argv[])
25108 {
25109     FILE *f;
25110     char *skaddr;
25111     char *skbuf;
25112     int sksize;
25113     char result[1024];
25114     int i;
25115     sksize = 32768;
25116     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25117     if (skbuf == NULL)
25118         exit(1);
25119     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25120         skbuf[i] = 'A';
25121     skaddr = skbuf+sizeof(union alltypes);
25122 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25123     {
25124         struct sigaction sa;
25125 #if defined(TEST_sigstack)
25126         struct sigstack ss;
25127 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25128         stack_t ss;
25129 #else
25130         struct sigaltstack ss;
25131 #endif
25132 #if defined(TEST_sigstack)
25133         ss.ss_sp      = (void *)(skaddr + sksize);
25134         ss.ss_onstack = 0;
25135         if (sigstack(&ss, NULL) < 0)
25136             exit(1);
25137 #elif defined(TEST_sigaltstack)
25138         ss.ss_sp    = (void *)(skaddr + sksize);
25139         ss.ss_size  = sksize;
25140         ss.ss_flags = 0;
25141         if (sigaltstack(&ss, NULL) < 0)
25142             exit(1);
25143 #endif
25144         memset((void *)&sa, 0, sizeof(struct sigaction));
25145         sa.sa_handler = handler;
25146         sa.sa_flags = SA_ONSTACK;
25147         sigemptyset(&sa.sa_mask);
25148         sigaction(SIGUSR1, &sa, NULL);
25149         kill(getpid(), SIGUSR1);
25150         while (!handler_done)
25151             /*nop*/;
25152     }
25153 #endif
25154 #if defined(TEST_makecontext)
25155     {
25156         if (getcontext(&uc_handler) != 0)
25157             exit(1);
25158         uc_handler.uc_link = NULL;
25159         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25160         uc_handler.uc_stack.ss_size  = sksize;
25161         uc_handler.uc_stack.ss_flags = 0;
25162         makecontext(&uc_handler, handler, 1);
25163         swapcontext(&uc_main, &uc_handler);
25164     }
25165 #endif
25166     if (handler_addr == (char *)0xDEAD)
25167         exit(1);
25168     if (handler_addr < skaddr+sksize) {
25169         /* stack was placed into lower area */
25170         if (*(skaddr+sksize) != 'A')
25171              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25172                      sizeof(union alltypes), sizeof(union alltypes));
25173         else
25174              strcpy(result, "(skaddr)+(sksize),(sksize)");
25175     }
25176     else {
25177         /* stack was placed into higher area */
25178         if (*(skaddr+sksize*2) != 'A')
25179             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25180         else
25181             strcpy(result, "(skaddr),(sksize)");
25182     }
25183     if ((f = fopen("conftestval", "w")) == NULL)
25184         exit(1);
25185     fprintf(f, "%s\n", result);
25186     fclose(f);
25187     exit(0);
25188 }
25189
25190 _ACEOF
25191 rm -f conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195   *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198   (eval "$ac_link") 2>&5
25199   ac_status=$?
25200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25202   { (case "(($ac_try" in
25203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204   *) ac_try_echo=$ac_try;;
25205 esac
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207   (eval "$ac_try") 2>&5
25208   ac_status=$?
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); }; }; then
25211
25212 ac_cv_stacksetup_makecontext=`cat conftestval`
25213 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25214
25215 else
25216   echo "$as_me: program exited with status $ac_status" >&5
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220 ( exit $ac_status )
25221
25222 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25223
25224 fi
25225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25226 fi
25227
25228
25229 CFLAGS="$OCFLAGS"
25230
25231 fi
25232 fi
25233 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25234 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25235 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25236 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25237 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25238 { echo "$as_me:$LINENO: result: $type" >&5
25239 echo "${ECHO_T}$type" >&6; }
25240 if test ".$verbose" = .yes; then
25241     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25242 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25243 fi
25244
25245 if test ".$verbose" = .yes; then
25246     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25247 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25248 fi
25249
25250
25251 fi
25252
25253 #########################################
25254 ## Check for libraries extra-dependencies
25255 ##
25256
25257
25258   { echo "$as_me:$LINENO: result: " >&5
25259 echo "${ECHO_T}" >&6; }
25260   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25261 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25262
25263
25264 SIMGRID_DEP=""
25265 GRAS_DEP=""
25266
25267 if test xpthread=xyes ; then
25268   # if the pthreads are usable
25269   if test "x$with_context" = "xpthread" ; then
25270     # if we use them to implement the xbt_context
25271     SIMGRID_DEP="-lpthread"
25272   fi
25273   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25274   if test "x$with_context" != "xwindows" ; then
25275     GRAS_DEP="-lpthread"
25276   fi
25277 fi
25278
25279 #########################################
25280 ## Build optional modules (gtnets)
25281 ##
25282 gtnets=no
25283
25284 # Check whether --with-gtnets was given.
25285 if test "${with_gtnets+set}" = set; then
25286   withval=$with_gtnets; gtnets_path="$withval"
25287 else
25288   gtnets_path="no"
25289 fi
25290
25291 if test "x$gtnets_path" = "xno" ; then
25292   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25293 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25294 else
25295   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25296 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25297   { echo "$as_me:$LINENO: checking for gtnets" >&5
25298 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25299   ac_ext=cpp
25300 ac_cpp='$CXXCPP $CPPFLAGS'
25301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25304
25305   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25306   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25307   LDFLAGS_SAV=$LDFLAGS
25308   CPPFLAGS_SAV=$CPPFLAGS
25309   CPPFLAGS+=$GTNETS_CPPFLAGS
25310   LDFLAGS+=$GTNETS_LDFLAGS
25311   cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h.  */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h.  */
25317  #include <simulator.h>
25318
25319 int
25320 main ()
25321 {
25322 Simulator s; s.RunUntilNextCompletion();
25323   ;
25324   return 0;
25325 }
25326 _ACEOF
25327 rm -f conftest.$ac_objext conftest$ac_exeext
25328 if { (ac_try="$ac_link"
25329 case "(($ac_try" in
25330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331   *) ac_try_echo=$ac_try;;
25332 esac
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334   (eval "$ac_link") 2>conftest.er1
25335   ac_status=$?
25336   grep -v '^ *+' conftest.er1 >conftest.err
25337   rm -f conftest.er1
25338   cat conftest.err >&5
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } && {
25341          test -z "$ac_cxx_werror_flag" ||
25342          test ! -s conftest.err
25343        } && test -s conftest$ac_exeext &&
25344        $as_test_x conftest$ac_exeext; then
25345   gtnets=yes
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350         gtnets=no
25351 fi
25352
25353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25354       conftest$ac_exeext conftest.$ac_ext
25355   CPPFLAGS=$CPPFLAGS_SAV
25356   LDFLAGS=$LDFLAGS_SAV
25357   ac_ext=c
25358 ac_cpp='$CPP $CPPFLAGS'
25359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25362
25363
25364   if test "x$gtnets" = xyes ; then
25365     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25366     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25367     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25368 echo "${ECHO_T}Found working gtnets library." >&6; }
25369
25370 cat >>confdefs.h <<\_ACEOF
25371 #define HAVE_GTNETS 1
25372 _ACEOF
25373
25374   else
25375     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25376 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25377   fi
25378 fi
25379  if test "x$gtnets" != xno; then
25380   HAVE_GTNETS_TRUE=
25381   HAVE_GTNETS_FALSE='#'
25382 else
25383   HAVE_GTNETS_TRUE='#'
25384   HAVE_GTNETS_FALSE=
25385 fi
25386
25387
25388 #########################################
25389 ## Build optional modules (csdp)
25390 ##
25391 csdp=no
25392
25393 # Check whether --with-csdp was given.
25394 if test "${with_csdp+set}" = set; then
25395   withval=$with_csdp; csdp_path="$withval"
25396 else
25397   csdp_path="no"
25398 fi
25399
25400 if test "x$csdp_path" = "xno" ; then
25401   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25402 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25403 else
25404   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25405 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25406   { echo "$as_me:$LINENO: checking for csdp" >&5
25407 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25408   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25409   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25410
25411   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25412 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25413 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   ac_check_lib_save_LIBS=$LIBS
25417 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25418 cat >conftest.$ac_ext <<_ACEOF
25419 /* confdefs.h.  */
25420 _ACEOF
25421 cat confdefs.h >>conftest.$ac_ext
25422 cat >>conftest.$ac_ext <<_ACEOF
25423 /* end confdefs.h.  */
25424
25425 /* Override any GCC internal prototype to avoid an error.
25426    Use char because int might match the return type of a GCC
25427    builtin and then its argument prototype would still apply.  */
25428 #ifdef __cplusplus
25429 extern "C"
25430 #endif
25431 char easy_sdp ();
25432 int
25433 main ()
25434 {
25435 return easy_sdp ();
25436   ;
25437   return 0;
25438 }
25439 _ACEOF
25440 rm -f conftest.$ac_objext conftest$ac_exeext
25441 if { (ac_try="$ac_link"
25442 case "(($ac_try" in
25443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444   *) ac_try_echo=$ac_try;;
25445 esac
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447   (eval "$ac_link") 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } && {
25454          test -z "$ac_c_werror_flag" ||
25455          test ! -s conftest.err
25456        } && test -s conftest$ac_exeext &&
25457        $as_test_x conftest$ac_exeext; then
25458   ac_cv_lib_sdp_easy_sdp=yes
25459 else
25460   echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463         ac_cv_lib_sdp_easy_sdp=no
25464 fi
25465
25466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25467       conftest$ac_exeext conftest.$ac_ext
25468 LIBS=$ac_check_lib_save_LIBS
25469 fi
25470 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25471 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25472 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25473   csdp_lib=yes
25474 else
25475   csdp_lib=no
25476 fi
25477
25478
25479   CPPFLAGS_SAV=$CPPFLAGS
25480   CPPFLAGS+=$CSDP_CPPFLAGS
25481   if test "${ac_cv_header_declarations_h+set}" = set; then
25482   { echo "$as_me:$LINENO: checking for declarations.h" >&5
25483 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25484 if test "${ac_cv_header_declarations_h+set}" = set; then
25485   echo $ECHO_N "(cached) $ECHO_C" >&6
25486 fi
25487 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25488 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25489 else
25490   # Is the header compilable?
25491 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25492 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25493 cat >conftest.$ac_ext <<_ACEOF
25494 /* confdefs.h.  */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h.  */
25499 $ac_includes_default
25500 #include <declarations.h>
25501 _ACEOF
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506   *) ac_try_echo=$ac_try;;
25507 esac
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509   (eval "$ac_compile") 2>conftest.er1
25510   ac_status=$?
25511   grep -v '^ *+' conftest.er1 >conftest.err
25512   rm -f conftest.er1
25513   cat conftest.err >&5
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); } && {
25516          test -z "$ac_c_werror_flag" ||
25517          test ! -s conftest.err
25518        } && test -s conftest.$ac_objext; then
25519   ac_header_compiler=yes
25520 else
25521   echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523
25524         ac_header_compiler=no
25525 fi
25526
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25529 echo "${ECHO_T}$ac_header_compiler" >&6; }
25530
25531 # Is the header present?
25532 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25533 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25534 cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 #include <declarations.h>
25541 _ACEOF
25542 if { (ac_try="$ac_cpp conftest.$ac_ext"
25543 case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25549   ac_status=$?
25550   grep -v '^ *+' conftest.er1 >conftest.err
25551   rm -f conftest.er1
25552   cat conftest.err >&5
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); } >/dev/null && {
25555          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25556          test ! -s conftest.err
25557        }; then
25558   ac_header_preproc=yes
25559 else
25560   echo "$as_me: failed program was:" >&5
25561 sed 's/^/| /' conftest.$ac_ext >&5
25562
25563   ac_header_preproc=no
25564 fi
25565
25566 rm -f conftest.err conftest.$ac_ext
25567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25568 echo "${ECHO_T}$ac_header_preproc" >&6; }
25569
25570 # So?  What about this header?
25571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25572   yes:no: )
25573     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25574 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25575     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25576 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25577     ac_header_preproc=yes
25578     ;;
25579   no:yes:* )
25580     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25581 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25582     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
25583 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
25584     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25585 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25586     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
25587 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25588     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25589 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25590     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25591 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25592     ( cat <<\_ASBOX
25593 ## -------------------------------------------------- ##
25594 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25595 ## -------------------------------------------------- ##
25596 _ASBOX
25597      ) | sed "s/^/$as_me: WARNING:     /" >&2
25598     ;;
25599 esac
25600 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25601 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25602 if test "${ac_cv_header_declarations_h+set}" = set; then
25603   echo $ECHO_N "(cached) $ECHO_C" >&6
25604 else
25605   ac_cv_header_declarations_h=$ac_header_preproc
25606 fi
25607 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25608 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25609
25610 fi
25611 if test $ac_cv_header_declarations_h = yes; then
25612   csdp_header=yes
25613 else
25614   csdp_header=no
25615 fi
25616
25617
25618   CPPFLAGS=$CPPFLAGS_SAV
25619
25620
25621
25622   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25623      csdp=yes;
25624   else
25625      csdp=no;
25626   fi
25627   if test "x$csdp" = xyes; then
25628     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25629     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25630     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25631 echo "${ECHO_T}Found working sdp library." >&6; }
25632
25633 cat >>confdefs.h <<\_ACEOF
25634 #define HAVE_SDP 1
25635 _ACEOF
25636
25637   else
25638     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25639 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25640   fi;
25641 fi
25642  if test x$csdp != xno; then
25643   HAVE_SDP_TRUE=
25644   HAVE_SDP_FALSE='#'
25645 else
25646   HAVE_SDP_TRUE='#'
25647   HAVE_SDP_FALSE=
25648 fi
25649
25650
25651
25652
25653 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25654 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25655 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25656   echo $ECHO_N "(cached) $ECHO_C" >&6
25657 else
25658   ac_check_lib_save_LIBS=$LIBS
25659 LIBS="-lnsl  $LIBS"
25660 cat >conftest.$ac_ext <<_ACEOF
25661 /* confdefs.h.  */
25662 _ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h.  */
25666
25667 /* Override any GCC internal prototype to avoid an error.
25668    Use char because int might match the return type of a GCC
25669    builtin and then its argument prototype would still apply.  */
25670 #ifdef __cplusplus
25671 extern "C"
25672 #endif
25673 char gethostbyname ();
25674 int
25675 main ()
25676 {
25677 return gethostbyname ();
25678   ;
25679   return 0;
25680 }
25681 _ACEOF
25682 rm -f conftest.$ac_objext conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686   *) ac_try_echo=$ac_try;;
25687 esac
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689   (eval "$ac_link") 2>conftest.er1
25690   ac_status=$?
25691   grep -v '^ *+' conftest.er1 >conftest.err
25692   rm -f conftest.er1
25693   cat conftest.err >&5
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); } && {
25696          test -z "$ac_c_werror_flag" ||
25697          test ! -s conftest.err
25698        } && test -s conftest$ac_exeext &&
25699        $as_test_x conftest$ac_exeext; then
25700   ac_cv_lib_nsl_gethostbyname=yes
25701 else
25702   echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25704
25705         ac_cv_lib_nsl_gethostbyname=no
25706 fi
25707
25708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25709       conftest$ac_exeext conftest.$ac_ext
25710 LIBS=$ac_check_lib_save_LIBS
25711 fi
25712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25713 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25714 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25715   GRAS_DEP="$GRAS_DEP -lnsl"
25716 fi
25717
25718 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25719 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25720 if test "${ac_cv_lib_socket_connect+set}" = set; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723   ac_check_lib_save_LIBS=$LIBS
25724 LIBS="-lsocket  $LIBS"
25725 cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h.  */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h.  */
25731
25732 /* Override any GCC internal prototype to avoid an error.
25733    Use char because int might match the return type of a GCC
25734    builtin and then its argument prototype would still apply.  */
25735 #ifdef __cplusplus
25736 extern "C"
25737 #endif
25738 char connect ();
25739 int
25740 main ()
25741 {
25742 return connect ();
25743   ;
25744   return 0;
25745 }
25746 _ACEOF
25747 rm -f conftest.$ac_objext conftest$ac_exeext
25748 if { (ac_try="$ac_link"
25749 case "(($ac_try" in
25750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751   *) ac_try_echo=$ac_try;;
25752 esac
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754   (eval "$ac_link") 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } && {
25761          test -z "$ac_c_werror_flag" ||
25762          test ! -s conftest.err
25763        } && test -s conftest$ac_exeext &&
25764        $as_test_x conftest$ac_exeext; then
25765   ac_cv_lib_socket_connect=yes
25766 else
25767   echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770         ac_cv_lib_socket_connect=no
25771 fi
25772
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774       conftest$ac_exeext conftest.$ac_ext
25775 LIBS=$ac_check_lib_save_LIBS
25776 fi
25777 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25778 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25779 if test $ac_cv_lib_socket_connect = yes; then
25780   GRAS_DEP="$GRAS_DEP -lsocket"
25781 fi
25782
25783
25784 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25785 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25786 case $host_os in
25787   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25788             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25789             cat >>confdefs.h <<\_ACEOF
25790 #define CONTEXT_THREADS 1
25791 _ACEOF
25792 ;;
25793 esac
25794
25795 if test "x$GRAS_DEP" = x; then
25796    { echo "$as_me:$LINENO: result: none" >&5
25797 echo "${ECHO_T}none" >&6; }
25798 else
25799    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25800 echo "${ECHO_T}$GRAS_DEP" >&6; }
25801 fi
25802
25803
25804 ##############################################
25805 ## Enhance maintainer mode and SUBST variables
25806 ## (must be placed after any compilation tests since our overprotective flags
25807 ##  let some tests fail)
25808
25809 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25810 # Next line is modified by sed when building gramine source tree
25811 gramine_mode=no
25812 if test x$gramine_mode = xyes
25813 then
25814   USE_MAINTAINER_MODE=no
25815 fi
25816  if test x$gramine_mode != xno; then
25817   GRAMINE_MODE_TRUE=
25818   GRAMINE_MODE_FALSE='#'
25819 else
25820   GRAMINE_MODE_TRUE='#'
25821   GRAMINE_MODE_FALSE=
25822 fi
25823
25824
25825
25826 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25827 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25828     # Check whether --enable-maintainer-mode was given.
25829 if test "${enable_maintainer_mode+set}" = set; then
25830   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25831 else
25832   USE_MAINTAINER_MODE=no
25833 fi
25834
25835   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25836 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25837    if test $USE_MAINTAINER_MODE = yes; then
25838   MAINTAINER_MODE_TRUE=
25839   MAINTAINER_MODE_FALSE='#'
25840 else
25841   MAINTAINER_MODE_TRUE='#'
25842   MAINTAINER_MODE_FALSE=
25843 fi
25844
25845   MAINT=$MAINTAINER_MODE_TRUE
25846
25847
25848 if test x$USE_MAINTAINER_MODE = xyes
25849 then
25850    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25851    enable_compile_warnings=yes
25852 fi
25853
25854   # Check whether --enable-compile-warnings was given.
25855 if test "${enable_compile_warnings+set}" = set; then
25856   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25857 else
25858   enable_compile_warnings=no
25859 fi
25860
25861
25862   # Check whether --enable-compile-optimizations was given.
25863 if test "${enable_compile_optimizations+set}" = set; then
25864   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25865 else
25866   enable_compile_optimizations=auto
25867 fi
25868
25869
25870   if test "x$cflags_set" != "xyes" ; then
25871     # if user didn't specify CFLAGS explicitely
25872
25873     # AC PROG CC tests whether -g is accepted.
25874     # Cool, but it also tries to set -O2. I don't want it with gcc
25875     saveCFLAGS="$CFLAGS"
25876     CFLAGS=
25877     case " $saveCFLAGS " in
25878     *-g*) CFLAGS="-g" ;;
25879     esac
25880     case " $saveCFLAGS " in
25881     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25882     esac
25883
25884     # damn AC PROG CC, why did you set -O??
25885     CFLAGS="-g"
25886   fi
25887
25888   if test "x$enable_compile_warnings" = "xyes" ; then
25889     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25890 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25891     warnCFLAGS=
25892     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25893       case " $CFLAGS " in
25894       *-Wall*) ;;
25895       *) warnCFLAGS="-Wall -Wunused" ;;
25896       esac
25897
25898       ## -W is not all that useful.  And it cannot be controlled
25899       ## with individual -Wno-xxx flags, unlike -Wall
25900
25901       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25902       ## -Wshadow chokes on try{ try{} } constructs
25903       if test "x$enable_compile_warnings" = "xyes"; then
25904         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25905         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25906         -Wno-unused-function  \
25907         -Werror \
25908         | sed 's/ +/ /g'`
25909         # -Wno-unused-variable  -Wno-unused-label
25910       fi
25911     fi
25912     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25913 echo "${ECHO_T}$warnCFLAGS" >&6; }
25914     # placed before since gcc remembers the last one on conflict
25915     CFLAGS="$warnCFLAGS $CFLAGS"
25916   fi
25917
25918   if test "x$enable_compile_optimizations" = "xyes" ||
25919      test "x$enable_compile_optimizations" = "xauto" ; then
25920     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25921 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25922     optCFLAGS=
25923     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25924         case " $CFLAGS " in
25925         *-O*) ;;
25926         *) optCFLAGS="$optCFLAGS -O3" ;;
25927         esac
25928         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25929
25930         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25931         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25932         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
25933           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
25934           # but the check would be too complicated to get 3.4.
25935           # Instead, rule out any 3.x compiler.
25936
25937           # Note that the flag didn't exist before gcc 3.0
25938           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25939         fi
25940             fi
25941     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25942 echo "${ECHO_T}$optCFLAGS" >&6; }
25943     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25944     if test "x$cflags_set" != "xyes" ; then
25945       CFLAGS="$optCFLAGS $CFLAGS"
25946     fi
25947   fi
25948
25949   if test x$lt_cv_prog_gnu_ld = xyes ; then
25950     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25951   else
25952     LD_DYNAMIC_FLAGS=
25953   fi
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970   { echo "$as_me:$LINENO: result: " >&5
25971 echo "${ECHO_T}" >&6; }
25972   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25973 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25974
25975 # Java cruft
25976 # Check whether --enable-java was given.
25977 if test "${enable_java+set}" = set; then
25978   enableval=$enable_java; want_java=$enableval
25979 else
25980   want_java=yes
25981 fi
25982
25983 if test "x$want_java" != "xyes" ; then
25984    { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25985 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
25986    { echo "$as_me:$LINENO: result: disabled by user" >&5
25987 echo "${ECHO_T}disabled by user" >&6; }
25988    use_java="disabled by user"
25989 else
25990   # Extract the first word of "javac", so it can be a program name with args.
25991 set dummy javac; ac_word=$2
25992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25994 if test "${ac_cv_path_JAVAC+set}" = set; then
25995   echo $ECHO_N "(cached) $ECHO_C" >&6
25996 else
25997   case $JAVAC in
25998   [\\/]* | ?:[\\/]*)
25999   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26000   ;;
26001   *)
26002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26003 for as_dir in $PATH
26004 do
26005   IFS=$as_save_IFS
26006   test -z "$as_dir" && as_dir=.
26007   for ac_exec_ext in '' $ac_executable_extensions; do
26008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26009     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26011     break 2
26012   fi
26013 done
26014 done
26015 IFS=$as_save_IFS
26016
26017   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26018   ;;
26019 esac
26020 fi
26021 JAVAC=$ac_cv_path_JAVAC
26022 if test -n "$JAVAC"; then
26023   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26024 echo "${ECHO_T}$JAVAC" >&6; }
26025 else
26026   { echo "$as_me:$LINENO: result: no" >&5
26027 echo "${ECHO_T}no" >&6; }
26028 fi
26029
26030
26031   # Extract the first word of "java ", so it can be a program name with args.
26032 set dummy java ; ac_word=$2
26033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26035 if test "${ac_cv_path_JAVA+set}" = set; then
26036   echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26038   case $JAVA in
26039   [\\/]* | ?:[\\/]*)
26040   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26041   ;;
26042   *)
26043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26044 for as_dir in $PATH
26045 do
26046   IFS=$as_save_IFS
26047   test -z "$as_dir" && as_dir=.
26048   for ac_exec_ext in '' $ac_executable_extensions; do
26049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26050     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26052     break 2
26053   fi
26054 done
26055 done
26056 IFS=$as_save_IFS
26057
26058   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26059   ;;
26060 esac
26061 fi
26062 JAVA=$ac_cv_path_JAVA
26063 if test -n "$JAVA"; then
26064   { echo "$as_me:$LINENO: result: $JAVA" >&5
26065 echo "${ECHO_T}$JAVA" >&6; }
26066 else
26067   { echo "$as_me:$LINENO: result: no" >&5
26068 echo "${ECHO_T}no" >&6; }
26069 fi
26070
26071
26072   # Extract the first word of "jar  ", so it can be a program name with args.
26073 set dummy jar  ; 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_path_JAR+set}" = set; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   case $JAR in
26080   [\\/]* | ?:[\\/]*)
26081   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26082   ;;
26083   *)
26084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26085 for as_dir in $PATH
26086 do
26087   IFS=$as_save_IFS
26088   test -z "$as_dir" && as_dir=.
26089   for ac_exec_ext in '' $ac_executable_extensions; do
26090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26091     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26093     break 2
26094   fi
26095 done
26096 done
26097 IFS=$as_save_IFS
26098
26099   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26100   ;;
26101 esac
26102 fi
26103 JAR=$ac_cv_path_JAR
26104 if test -n "$JAR"; then
26105   { echo "$as_me:$LINENO: result: $JAR" >&5
26106 echo "${ECHO_T}$JAR" >&6; }
26107 else
26108   { echo "$as_me:$LINENO: result: no" >&5
26109 echo "${ECHO_T}no" >&6; }
26110 fi
26111
26112
26113
26114 for ac_header in jni.h
26115 do
26116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 fi
26123 ac_res=`eval echo '${'$as_ac_Header'}'`
26124                { echo "$as_me:$LINENO: result: $ac_res" >&5
26125 echo "${ECHO_T}$ac_res" >&6; }
26126 else
26127   # Is the header compilable?
26128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26130 cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h.  */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h.  */
26136 $ac_includes_default
26137 #include <$ac_header>
26138 _ACEOF
26139 rm -f conftest.$ac_objext
26140 if { (ac_try="$ac_compile"
26141 case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146   (eval "$ac_compile") 2>conftest.er1
26147   ac_status=$?
26148   grep -v '^ *+' conftest.er1 >conftest.err
26149   rm -f conftest.er1
26150   cat conftest.err >&5
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); } && {
26153          test -z "$ac_c_werror_flag" ||
26154          test ! -s conftest.err
26155        } && test -s conftest.$ac_objext; then
26156   ac_header_compiler=yes
26157 else
26158   echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26160
26161         ac_header_compiler=no
26162 fi
26163
26164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26166 echo "${ECHO_T}$ac_header_compiler" >&6; }
26167
26168 # Is the header present?
26169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26171 cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177 #include <$ac_header>
26178 _ACEOF
26179 if { (ac_try="$ac_cpp conftest.$ac_ext"
26180 case "(($ac_try" in
26181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182   *) ac_try_echo=$ac_try;;
26183 esac
26184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26186   ac_status=$?
26187   grep -v '^ *+' conftest.er1 >conftest.err
26188   rm -f conftest.er1
26189   cat conftest.err >&5
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } >/dev/null && {
26192          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26193          test ! -s conftest.err
26194        }; then
26195   ac_header_preproc=yes
26196 else
26197   echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200   ac_header_preproc=no
26201 fi
26202
26203 rm -f conftest.err conftest.$ac_ext
26204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26205 echo "${ECHO_T}$ac_header_preproc" >&6; }
26206
26207 # So?  What about this header?
26208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26209   yes:no: )
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26214     ac_header_preproc=yes
26215     ;;
26216   no:yes:* )
26217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26229     ( cat <<\_ASBOX
26230 ## -------------------------------------------------- ##
26231 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26232 ## -------------------------------------------------- ##
26233 _ASBOX
26234      ) | sed "s/^/$as_me: WARNING:     /" >&2
26235     ;;
26236 esac
26237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26240   echo $ECHO_N "(cached) $ECHO_C" >&6
26241 else
26242   eval "$as_ac_Header=\$ac_header_preproc"
26243 fi
26244 ac_res=`eval echo '${'$as_ac_Header'}'`
26245                { echo "$as_me:$LINENO: result: $ac_res" >&5
26246 echo "${ECHO_T}$ac_res" >&6; }
26247
26248 fi
26249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26250   cat >>confdefs.h <<_ACEOF
26251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26252 _ACEOF
26253
26254 fi
26255
26256 done
26257
26258   { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26259 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26260   if test -n "$JAVAC"   \
26261      && test -n "$JAVA" \
26262      && test -n "$JAR"  \
26263      && test "x$ac_cv_header_jni_h" = "xyes" ; then
26264
26265      use_java="yes"
26266   else
26267      use_java="no"
26268   fi
26269   { echo "$as_me:$LINENO: result: $use_java" >&5
26270 echo "${ECHO_T}$use_java" >&6; }
26271 fi
26272  if test "x$use_java" = "xyes"; then
26273   HAVE_JAVA_TRUE=
26274   HAVE_JAVA_FALSE='#'
26275 else
26276   HAVE_JAVA_TRUE='#'
26277   HAVE_JAVA_FALSE=
26278 fi
26279
26280
26281 #####################
26282 ## Check for programs
26283 ##
26284
26285
26286   { echo "$as_me:$LINENO: result: " >&5
26287 echo "${ECHO_T}" >&6; }
26288   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26289 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26290
26291 # Extract the first word of "bash", so it can be a program name with args.
26292 set dummy bash; ac_word=$2
26293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26295 if test "${ac_cv_prog_BASH+set}" = set; then
26296   echo $ECHO_N "(cached) $ECHO_C" >&6
26297 else
26298   if test -n "$BASH"; then
26299   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26300 else
26301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26302 for as_dir in $PATH
26303 do
26304   IFS=$as_save_IFS
26305   test -z "$as_dir" && as_dir=.
26306   for ac_exec_ext in '' $ac_executable_extensions; do
26307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26308     ac_cv_prog_BASH="`which bash`"
26309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26310     break 2
26311   fi
26312 done
26313 done
26314 IFS=$as_save_IFS
26315
26316   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26317 fi
26318 fi
26319 BASH=$ac_cv_prog_BASH
26320 if test -n "$BASH"; then
26321   { echo "$as_me:$LINENO: result: $BASH" >&5
26322 echo "${ECHO_T}$BASH" >&6; }
26323 else
26324   { echo "$as_me:$LINENO: result: no" >&5
26325 echo "${ECHO_T}no" >&6; }
26326 fi
26327
26328
26329 WARNING="This file is generated, do not edit"
26330
26331
26332
26333 # Can we rebuild the parsers?
26334 # We really want flex and refuse other lex. So, the parser is portable and
26335 # does not induce extra lib dependency
26336 for ac_prog in flex lex
26337 do
26338   # Extract the first word of "$ac_prog", so it can be a program name with args.
26339 set dummy $ac_prog; ac_word=$2
26340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26342 if test "${ac_cv_prog_LEX+set}" = set; then
26343   echo $ECHO_N "(cached) $ECHO_C" >&6
26344 else
26345   if test -n "$LEX"; then
26346   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26347 else
26348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26349 for as_dir in $PATH
26350 do
26351   IFS=$as_save_IFS
26352   test -z "$as_dir" && as_dir=.
26353   for ac_exec_ext in '' $ac_executable_extensions; do
26354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26355     ac_cv_prog_LEX="$ac_prog"
26356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26357     break 2
26358   fi
26359 done
26360 done
26361 IFS=$as_save_IFS
26362
26363 fi
26364 fi
26365 LEX=$ac_cv_prog_LEX
26366 if test -n "$LEX"; then
26367   { echo "$as_me:$LINENO: result: $LEX" >&5
26368 echo "${ECHO_T}$LEX" >&6; }
26369 else
26370   { echo "$as_me:$LINENO: result: no" >&5
26371 echo "${ECHO_T}no" >&6; }
26372 fi
26373
26374
26375   test -n "$LEX" && break
26376 done
26377 test -n "$LEX" || LEX=":"
26378
26379 if test "x$LEX" != "x:"; then
26380   cat >conftest.l <<_ACEOF
26381 %%
26382 a { ECHO; }
26383 b { REJECT; }
26384 c { yymore (); }
26385 d { yyless (1); }
26386 e { yyless (input () != 0); }
26387 f { unput (yytext[0]); }
26388 . { BEGIN INITIAL; }
26389 %%
26390 #ifdef YYTEXT_POINTER
26391 extern char *yytext;
26392 #endif
26393 int
26394 main (void)
26395 {
26396   return ! yylex () + ! yywrap ();
26397 }
26398 _ACEOF
26399 { (ac_try="$LEX conftest.l"
26400 case "(($ac_try" in
26401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26402   *) ac_try_echo=$ac_try;;
26403 esac
26404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26405   (eval "$LEX conftest.l") 2>&5
26406   ac_status=$?
26407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); }
26409 { echo "$as_me:$LINENO: checking lex output file root" >&5
26410 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26411 if test "${ac_cv_prog_lex_root+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414
26415 if test -f lex.yy.c; then
26416   ac_cv_prog_lex_root=lex.yy
26417 elif test -f lexyy.c; then
26418   ac_cv_prog_lex_root=lexyy
26419 else
26420   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26421 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26422    { (exit 1); exit 1; }; }
26423 fi
26424 fi
26425 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26426 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26427 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26428
26429 if test -z "${LEXLIB+set}"; then
26430   { echo "$as_me:$LINENO: checking lex library" >&5
26431 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26432 if test "${ac_cv_lib_lex+set}" = set; then
26433   echo $ECHO_N "(cached) $ECHO_C" >&6
26434 else
26435
26436     ac_save_LIBS=$LIBS
26437     ac_cv_lib_lex='none needed'
26438     for ac_lib in '' -lfl -ll; do
26439       LIBS="$ac_lib $ac_save_LIBS"
26440       cat >conftest.$ac_ext <<_ACEOF
26441 `cat $LEX_OUTPUT_ROOT.c`
26442 _ACEOF
26443 rm -f conftest.$ac_objext conftest$ac_exeext
26444 if { (ac_try="$ac_link"
26445 case "(($ac_try" in
26446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447   *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450   (eval "$ac_link") 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } && {
26457          test -z "$ac_c_werror_flag" ||
26458          test ! -s conftest.err
26459        } && test -s conftest$ac_exeext &&
26460        $as_test_x conftest$ac_exeext; then
26461   ac_cv_lib_lex=$ac_lib
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466
26467 fi
26468
26469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26470       conftest$ac_exeext conftest.$ac_ext
26471       test "$ac_cv_lib_lex" != 'none needed' && break
26472     done
26473     LIBS=$ac_save_LIBS
26474
26475 fi
26476 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26477 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26478   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26479 fi
26480
26481
26482 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26483 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26484 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26485   echo $ECHO_N "(cached) $ECHO_C" >&6
26486 else
26487   # POSIX says lex can declare yytext either as a pointer or an array; the
26488 # default is implementation-dependent.  Figure out which it is, since
26489 # not all implementations provide the %pointer and %array declarations.
26490 ac_cv_prog_lex_yytext_pointer=no
26491 ac_save_LIBS=$LIBS
26492 LIBS="$LEXLIB $ac_save_LIBS"
26493 cat >conftest.$ac_ext <<_ACEOF
26494 #define YYTEXT_POINTER 1
26495 `cat $LEX_OUTPUT_ROOT.c`
26496 _ACEOF
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501   *) ac_try_echo=$ac_try;;
26502 esac
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504   (eval "$ac_link") 2>conftest.er1
26505   ac_status=$?
26506   grep -v '^ *+' conftest.er1 >conftest.err
26507   rm -f conftest.er1
26508   cat conftest.err >&5
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } && {
26511          test -z "$ac_c_werror_flag" ||
26512          test ! -s conftest.err
26513        } && test -s conftest$ac_exeext &&
26514        $as_test_x conftest$ac_exeext; then
26515   ac_cv_prog_lex_yytext_pointer=yes
26516 else
26517   echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520
26521 fi
26522
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26524       conftest$ac_exeext conftest.$ac_ext
26525 LIBS=$ac_save_LIBS
26526
26527 fi
26528 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26529 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26530 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26531
26532 cat >>confdefs.h <<\_ACEOF
26533 #define YYTEXT_POINTER 1
26534 _ACEOF
26535
26536 fi
26537 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26538
26539 fi
26540
26541   if test "$LEX" != flex; then
26542     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26543 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26544     LEX=${am_missing_run}flex
26545     LEXLIB=''
26546
26547   else
26548     if test "x2.5.30" != "x" ; then
26549                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26550
26551       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26552       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26553       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26554
26555       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26556       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26557       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26558
26559       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26560          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26561          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26562       then
26563         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26564 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26565         LEX=${am_missing_run}flex
26566         LEXLIB=''
26567
26568       else
26569         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26570 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26571       fi
26572     fi
26573   fi
26574
26575
26576 # Can we rebuild the xml-lexers from the XML specification?
26577 # if not, simply touch the flex source files (which are distributed in
26578 #  tarballs even if generated by flexml) and hope for the best.
26579 # Extract the first word of "flexml", so it can be a program name with args.
26580 set dummy flexml; ac_word=$2
26581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26583 if test "${ac_cv_prog_FLEXML+set}" = set; then
26584   echo $ECHO_N "(cached) $ECHO_C" >&6
26585 else
26586   if test -n "$FLEXML"; then
26587   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26588 else
26589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26590 for as_dir in $PATH
26591 do
26592   IFS=$as_save_IFS
26593   test -z "$as_dir" && as_dir=.
26594   for ac_exec_ext in '' $ac_executable_extensions; do
26595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26596     ac_cv_prog_FLEXML="`which flexml`"
26597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26598     break 2
26599   fi
26600 done
26601 done
26602 IFS=$as_save_IFS
26603
26604   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26605 fi
26606 fi
26607 FLEXML=$ac_cv_prog_FLEXML
26608 if test -n "$FLEXML"; then
26609   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26610 echo "${ECHO_T}$FLEXML" >&6; }
26611 else
26612   { echo "$as_me:$LINENO: result: no" >&5
26613 echo "${ECHO_T}no" >&6; }
26614 fi
26615
26616
26617  if test x$FLEXML != xNOTFOUND; then
26618   HAVE_FLEXML_TRUE=
26619   HAVE_FLEXML_FALSE='#'
26620 else
26621   HAVE_FLEXML_TRUE='#'
26622   HAVE_FLEXML_FALSE=
26623 fi
26624
26625
26626 if test x$USE_MAINTAINER_MODE = xyes
26627 then
26628    # Check for doxygen when in maintainer mode since dist* targets fail
26629    # without it
26630    # Extract the first word of "doxygen", so it can be a program name with args.
26631 set dummy doxygen; ac_word=$2
26632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26634 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26635   echo $ECHO_N "(cached) $ECHO_C" >&6
26636 else
26637   case $DOXYGEN in
26638   [\\/]* | ?:[\\/]*)
26639   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26640   ;;
26641   *)
26642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26643 for as_dir in $PATH
26644 do
26645   IFS=$as_save_IFS
26646   test -z "$as_dir" && as_dir=.
26647   for ac_exec_ext in '' $ac_executable_extensions; do
26648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26649     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26651     break 2
26652   fi
26653 done
26654 done
26655 IFS=$as_save_IFS
26656
26657   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26658   ;;
26659 esac
26660 fi
26661 DOXYGEN=$ac_cv_path_DOXYGEN
26662 if test -n "$DOXYGEN"; then
26663   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26664 echo "${ECHO_T}$DOXYGEN" >&6; }
26665 else
26666   { echo "$as_me:$LINENO: result: no" >&5
26667 echo "${ECHO_T}no" >&6; }
26668 fi
26669
26670
26671    if test x$DOXYGEN = x ; then
26672      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26673 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26674    { (exit 1); exit 1; }; }
26675    fi
26676 fi
26677
26678 # Can we extract really usable backtraces? (also need the popen function)
26679 # Extract the first word of "addr2line", so it can be a program name with args.
26680 set dummy addr2line; ac_word=$2
26681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26683 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26684   echo $ECHO_N "(cached) $ECHO_C" >&6
26685 else
26686   case $ADDR2LINE in
26687   [\\/]* | ?:[\\/]*)
26688   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26689   ;;
26690   *)
26691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26692 for as_dir in $PATH
26693 do
26694   IFS=$as_save_IFS
26695   test -z "$as_dir" && as_dir=.
26696   for ac_exec_ext in '' $ac_executable_extensions; do
26697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26698     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26700     break 2
26701   fi
26702 done
26703 done
26704 IFS=$as_save_IFS
26705
26706   ;;
26707 esac
26708 fi
26709 ADDR2LINE=$ac_cv_path_ADDR2LINE
26710 if test -n "$ADDR2LINE"; then
26711   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26712 echo "${ECHO_T}$ADDR2LINE" >&6; }
26713 else
26714   { echo "$as_me:$LINENO: result: no" >&5
26715 echo "${ECHO_T}no" >&6; }
26716 fi
26717
26718
26719 if test x$ADDR2LINE != x ; then
26720
26721 cat >>confdefs.h <<_ACEOF
26722 #define ADDR2LINE "$ADDR2LINE"
26723 _ACEOF
26724
26725 fi
26726
26727
26728 # Can we make status line about the compilation result?
26729 # Extract the first word of "md5sum", so it can be a program name with args.
26730 set dummy md5sum; ac_word=$2
26731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26733 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26734   echo $ECHO_N "(cached) $ECHO_C" >&6
26735 else
26736   if test -n "$MD5SUM"; then
26737   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26738 else
26739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26740 for as_dir in $PATH
26741 do
26742   IFS=$as_save_IFS
26743   test -z "$as_dir" && as_dir=.
26744   for ac_exec_ext in '' $ac_executable_extensions; do
26745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26746     ac_cv_prog_MD5SUM="`which md5sum`"
26747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26748     break 2
26749   fi
26750 done
26751 done
26752 IFS=$as_save_IFS
26753
26754 fi
26755 fi
26756 MD5SUM=$ac_cv_prog_MD5SUM
26757 if test -n "$MD5SUM"; then
26758   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26759 echo "${ECHO_T}$MD5SUM" >&6; }
26760 else
26761   { echo "$as_me:$LINENO: result: no" >&5
26762 echo "${ECHO_T}no" >&6; }
26763 fi
26764
26765
26766 if test x$MD5SUM != xno ; then
26767   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26768                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26769 else
26770   build_version="no_md5sum_binary"
26771 fi
26772 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26773
26774
26775 ###################
26776 ## Makes the output
26777 ##
26778
26779
26780 #
26781 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26782 #  src/amok/Makefile
26783
26784
26785   { echo "$as_me:$LINENO: result: " >&5
26786 echo "${ECHO_T}" >&6; }
26787   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26788 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26789
26790
26791 # Core of the libraries
26792
26793 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26794
26795
26796 # Tools being embeeded in gramine (stub generator)
26797 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26798
26799
26800
26801 # GRAMINE_CUT_BEGIN
26802
26803 # Tools NOT being embeeded in gramine
26804 ac_config_files="$ac_config_files tools/graspe-slave"
26805
26806
26807 # Testsuite
26808
26809 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26810
26811
26812 # Documentation
26813 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26814
26815
26816 # Examples
26817
26818 #      examples/gras/p2p/Makefile
26819 #      examples/gras/p2p/chord/Makefile
26820 #      examples/gras/p2p/can/Makefile
26821
26822 if test "x$use_java" = "xyes" ; then
26823 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26824
26825 fi
26826
26827 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile 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"
26828
26829
26830
26831 # GRAMINE_CUT_END
26832
26833 cat >confcache <<\_ACEOF
26834 # This file is a shell script that caches the results of configure
26835 # tests run on this system so they can be shared between configure
26836 # scripts and configure runs, see configure's option --config-cache.
26837 # It is not useful on other systems.  If it contains results you don't
26838 # want to keep, you may remove or edit it.
26839 #
26840 # config.status only pays attention to the cache file if you give it
26841 # the --recheck option to rerun configure.
26842 #
26843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26845 # following values.
26846
26847 _ACEOF
26848
26849 # The following way of writing the cache mishandles newlines in values,
26850 # but we know of no workaround that is simple, portable, and efficient.
26851 # So, we kill variables containing newlines.
26852 # Ultrix sh set writes to stderr and can't be redirected directly,
26853 # and sets the high bit in the cache file unless we assign to the vars.
26854 (
26855   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26856     eval ac_val=\$$ac_var
26857     case $ac_val in #(
26858     *${as_nl}*)
26859       case $ac_var in #(
26860       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26861 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26862       esac
26863       case $ac_var in #(
26864       _ | IFS | as_nl) ;; #(
26865       *) $as_unset $ac_var ;;
26866       esac ;;
26867     esac
26868   done
26869
26870   (set) 2>&1 |
26871     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26872     *${as_nl}ac_space=\ *)
26873       # `set' does not quote correctly, so add quotes (double-quote
26874       # substitution turns \\\\ into \\, and sed turns \\ into \).
26875       sed -n \
26876         "s/'/'\\\\''/g;
26877           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26878       ;; #(
26879     *)
26880       # `set' quotes correctly as required by POSIX, so do not add quotes.
26881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26882       ;;
26883     esac |
26884     sort
26885 ) |
26886   sed '
26887      /^ac_cv_env_/b end
26888      t clear
26889      :clear
26890      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26891      t end
26892      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26893      :end' >>confcache
26894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26895   if test -w "$cache_file"; then
26896     test "x$cache_file" != "x/dev/null" &&
26897       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26898 echo "$as_me: updating cache $cache_file" >&6;}
26899     cat confcache >$cache_file
26900   else
26901     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26902 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26903   fi
26904 fi
26905 rm -f confcache
26906
26907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26908 # Let make expand exec_prefix.
26909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26910
26911 DEFS=-DHAVE_CONFIG_H
26912
26913 ac_libobjs=
26914 ac_ltlibobjs=
26915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26916   # 1. Remove the extension, and $U if already installed.
26917   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26918   ac_i=`echo "$ac_i" | sed "$ac_script"`
26919   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26920   #    will be set to the directory where LIBOBJS objects are built.
26921   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26922   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26923 done
26924 LIBOBJS=$ac_libobjs
26925
26926 LTLIBOBJS=$ac_ltlibobjs
26927
26928
26929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26930   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26931 Usually this means the macro was only invoked conditionally." >&5
26932 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26933 Usually this means the macro was only invoked conditionally." >&2;}
26934    { (exit 1); exit 1; }; }
26935 fi
26936 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26937   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26938 Usually this means the macro was only invoked conditionally." >&5
26939 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26940 Usually this means the macro was only invoked conditionally." >&2;}
26941    { (exit 1); exit 1; }; }
26942 fi
26943 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26944   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26945 Usually this means the macro was only invoked conditionally." >&5
26946 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26947 Usually this means the macro was only invoked conditionally." >&2;}
26948    { (exit 1); exit 1; }; }
26949 fi
26950 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26951   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26952 Usually this means the macro was only invoked conditionally." >&5
26953 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26954 Usually this means the macro was only invoked conditionally." >&2;}
26955    { (exit 1); exit 1; }; }
26956 fi
26957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26958   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26959 Usually this means the macro was only invoked conditionally." >&5
26960 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26961 Usually this means the macro was only invoked conditionally." >&2;}
26962    { (exit 1); exit 1; }; }
26963 fi
26964 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26965   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26966 Usually this means the macro was only invoked conditionally." >&5
26967 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26968 Usually this means the macro was only invoked conditionally." >&2;}
26969    { (exit 1); exit 1; }; }
26970 fi
26971 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
26972   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
26973 Usually this means the macro was only invoked conditionally." >&5
26974 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
26975 Usually this means the macro was only invoked conditionally." >&2;}
26976    { (exit 1); exit 1; }; }
26977 fi
26978 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
26979   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
26980 Usually this means the macro was only invoked conditionally." >&5
26981 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
26982 Usually this means the macro was only invoked conditionally." >&2;}
26983    { (exit 1); exit 1; }; }
26984 fi
26985 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26986   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26987 Usually this means the macro was only invoked conditionally." >&5
26988 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26989 Usually this means the macro was only invoked conditionally." >&2;}
26990    { (exit 1); exit 1; }; }
26991 fi
26992 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26993   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26994 Usually this means the macro was only invoked conditionally." >&5
26995 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26996 Usually this means the macro was only invoked conditionally." >&2;}
26997    { (exit 1); exit 1; }; }
26998 fi
26999 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27000   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27001 Usually this means the macro was only invoked conditionally." >&5
27002 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27003 Usually this means the macro was only invoked conditionally." >&2;}
27004    { (exit 1); exit 1; }; }
27005 fi
27006 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27007   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27008 Usually this means the macro was only invoked conditionally." >&5
27009 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27010 Usually this means the macro was only invoked conditionally." >&2;}
27011    { (exit 1); exit 1; }; }
27012 fi
27013 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27014   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27015 Usually this means the macro was only invoked conditionally." >&5
27016 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27017 Usually this means the macro was only invoked conditionally." >&2;}
27018    { (exit 1); exit 1; }; }
27019 fi
27020
27021 : ${CONFIG_STATUS=./config.status}
27022 ac_clean_files_save=$ac_clean_files
27023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27026 cat >$CONFIG_STATUS <<_ACEOF
27027 #! $SHELL
27028 # Generated by $as_me.
27029 # Run this file to recreate the current configuration.
27030 # Compiler output produced by configure, useful for debugging
27031 # configure, is in config.log if it exists.
27032
27033 debug=false
27034 ac_cs_recheck=false
27035 ac_cs_silent=false
27036 SHELL=\${CONFIG_SHELL-$SHELL}
27037 _ACEOF
27038
27039 cat >>$CONFIG_STATUS <<\_ACEOF
27040 ## --------------------- ##
27041 ## M4sh Initialization.  ##
27042 ## --------------------- ##
27043
27044 # Be more Bourne compatible
27045 DUALCASE=1; export DUALCASE # for MKS sh
27046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27047   emulate sh
27048   NULLCMD=:
27049   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27050   # is contrary to our usage.  Disable this feature.
27051   alias -g '${1+"$@"}'='"$@"'
27052   setopt NO_GLOB_SUBST
27053 else
27054   case `(set -o) 2>/dev/null` in
27055   *posix*) set -o posix ;;
27056 esac
27057
27058 fi
27059
27060
27061
27062
27063 # PATH needs CR
27064 # Avoid depending upon Character Ranges.
27065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27068 as_cr_digits='0123456789'
27069 as_cr_alnum=$as_cr_Letters$as_cr_digits
27070
27071 # The user is always right.
27072 if test "${PATH_SEPARATOR+set}" != set; then
27073   echo "#! /bin/sh" >conf$$.sh
27074   echo  "exit 0"   >>conf$$.sh
27075   chmod +x conf$$.sh
27076   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27077     PATH_SEPARATOR=';'
27078   else
27079     PATH_SEPARATOR=:
27080   fi
27081   rm -f conf$$.sh
27082 fi
27083
27084 # Support unset when possible.
27085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27086   as_unset=unset
27087 else
27088   as_unset=false
27089 fi
27090
27091
27092 # IFS
27093 # We need space, tab and new line, in precisely that order.  Quoting is
27094 # there to prevent editors from complaining about space-tab.
27095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27096 # splitting by setting IFS to empty value.)
27097 as_nl='
27098 '
27099 IFS=" ""        $as_nl"
27100
27101 # Find who we are.  Look in the path if we contain no directory separator.
27102 case $0 in
27103   *[\\/]* ) as_myself=$0 ;;
27104   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27105 for as_dir in $PATH
27106 do
27107   IFS=$as_save_IFS
27108   test -z "$as_dir" && as_dir=.
27109   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27110 done
27111 IFS=$as_save_IFS
27112
27113      ;;
27114 esac
27115 # We did not find ourselves, most probably we were run as `sh COMMAND'
27116 # in which case we are not to be found in the path.
27117 if test "x$as_myself" = x; then
27118   as_myself=$0
27119 fi
27120 if test ! -f "$as_myself"; then
27121   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27122   { (exit 1); exit 1; }
27123 fi
27124
27125 # Work around bugs in pre-3.0 UWIN ksh.
27126 for as_var in ENV MAIL MAILPATH
27127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27128 done
27129 PS1='$ '
27130 PS2='> '
27131 PS4='+ '
27132
27133 # NLS nuisances.
27134 for as_var in \
27135   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27136   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27137   LC_TELEPHONE LC_TIME
27138 do
27139   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27140     eval $as_var=C; export $as_var
27141   else
27142     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27143   fi
27144 done
27145
27146 # Required to use basename.
27147 if expr a : '\(a\)' >/dev/null 2>&1 &&
27148    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27149   as_expr=expr
27150 else
27151   as_expr=false
27152 fi
27153
27154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27155   as_basename=basename
27156 else
27157   as_basename=false
27158 fi
27159
27160
27161 # Name of the executable.
27162 as_me=`$as_basename -- "$0" ||
27163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27164          X"$0" : 'X\(//\)$' \| \
27165          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27166 echo X/"$0" |
27167     sed '/^.*\/\([^/][^/]*\)\/*$/{
27168             s//\1/
27169             q
27170           }
27171           /^X\/\(\/\/\)$/{
27172             s//\1/
27173             q
27174           }
27175           /^X\/\(\/\).*/{
27176             s//\1/
27177             q
27178           }
27179           s/.*/./; q'`
27180
27181 # CDPATH.
27182 $as_unset CDPATH
27183
27184
27185
27186   as_lineno_1=$LINENO
27187   as_lineno_2=$LINENO
27188   test "x$as_lineno_1" != "x$as_lineno_2" &&
27189   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27190
27191   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27192   # uniformly replaced by the line number.  The first 'sed' inserts a
27193   # line-number line after each line using $LINENO; the second 'sed'
27194   # does the real work.  The second script uses 'N' to pair each
27195   # line-number line with the line containing $LINENO, and appends
27196   # trailing '-' during substitution so that $LINENO is not a special
27197   # case at line end.
27198   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27199   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27200   # E. McMahon (1931-1989) for sed's syntax.  :-)
27201   sed -n '
27202     p
27203     /[$]LINENO/=
27204   ' <$as_myself |
27205     sed '
27206       s/[$]LINENO.*/&-/
27207       t lineno
27208       b
27209       :lineno
27210       N
27211       :loop
27212       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27213       t loop
27214       s/-\n.*//
27215     ' >$as_me.lineno &&
27216   chmod +x "$as_me.lineno" ||
27217     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27218    { (exit 1); exit 1; }; }
27219
27220   # Don't try to exec as it changes $[0], causing all sort of problems
27221   # (the dirname of $[0] is not the place where we might find the
27222   # original and so on.  Autoconf is especially sensitive to this).
27223   . "./$as_me.lineno"
27224   # Exit status is that of the last command.
27225   exit
27226 }
27227
27228
27229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27230   as_dirname=dirname
27231 else
27232   as_dirname=false
27233 fi
27234
27235 ECHO_C= ECHO_N= ECHO_T=
27236 case `echo -n x` in
27237 -n*)
27238   case `echo 'x\c'` in
27239   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27240   *)   ECHO_C='\c';;
27241   esac;;
27242 *)
27243   ECHO_N='-n';;
27244 esac
27245
27246 if expr a : '\(a\)' >/dev/null 2>&1 &&
27247    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27248   as_expr=expr
27249 else
27250   as_expr=false
27251 fi
27252
27253 rm -f conf$$ conf$$.exe conf$$.file
27254 if test -d conf$$.dir; then
27255   rm -f conf$$.dir/conf$$.file
27256 else
27257   rm -f conf$$.dir
27258   mkdir conf$$.dir
27259 fi
27260 echo >conf$$.file
27261 if ln -s conf$$.file conf$$ 2>/dev/null; then
27262   as_ln_s='ln -s'
27263   # ... but there are two gotchas:
27264   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27265   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27266   # In both cases, we have to default to `cp -p'.
27267   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27268     as_ln_s='cp -p'
27269 elif ln conf$$.file conf$$ 2>/dev/null; then
27270   as_ln_s=ln
27271 else
27272   as_ln_s='cp -p'
27273 fi
27274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27275 rmdir conf$$.dir 2>/dev/null
27276
27277 if mkdir -p . 2>/dev/null; then
27278   as_mkdir_p=:
27279 else
27280   test -d ./-p && rmdir ./-p
27281   as_mkdir_p=false
27282 fi
27283
27284 if test -x / >/dev/null 2>&1; then
27285   as_test_x='test -x'
27286 else
27287   if ls -dL / >/dev/null 2>&1; then
27288     as_ls_L_option=L
27289   else
27290     as_ls_L_option=
27291   fi
27292   as_test_x='
27293     eval sh -c '\''
27294       if test -d "$1"; then
27295         test -d "$1/.";
27296       else
27297         case $1 in
27298         -*)set "./$1";;
27299         esac;
27300         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27301         ???[sx]*):;;*)false;;esac;fi
27302     '\'' sh
27303   '
27304 fi
27305 as_executable_p=$as_test_x
27306
27307 # Sed expression to map a string onto a valid CPP name.
27308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27309
27310 # Sed expression to map a string onto a valid variable name.
27311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27312
27313
27314 exec 6>&1
27315
27316 # Save the log message, to keep $[0] and so on meaningful, and to
27317 # report actual input values of CONFIG_FILES etc. instead of their
27318 # values after options handling.
27319 ac_log="
27320 This file was extended by simgrid $as_me 3.3-cvs, which was
27321 generated by GNU Autoconf 2.61.  Invocation command line was
27322
27323   CONFIG_FILES    = $CONFIG_FILES
27324   CONFIG_HEADERS  = $CONFIG_HEADERS
27325   CONFIG_LINKS    = $CONFIG_LINKS
27326   CONFIG_COMMANDS = $CONFIG_COMMANDS
27327   $ $0 $@
27328
27329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27330 "
27331
27332 _ACEOF
27333
27334 cat >>$CONFIG_STATUS <<_ACEOF
27335 # Files that config.status was made for.
27336 config_files="$ac_config_files"
27337 config_headers="$ac_config_headers"
27338 config_commands="$ac_config_commands"
27339
27340 _ACEOF
27341
27342 cat >>$CONFIG_STATUS <<\_ACEOF
27343 ac_cs_usage="\
27344 \`$as_me' instantiates files from templates according to the
27345 current configuration.
27346
27347 Usage: $0 [OPTIONS] [FILE]...
27348
27349   -h, --help       print this help, then exit
27350   -V, --version    print version number and configuration settings, then exit
27351   -q, --quiet      do not print progress messages
27352   -d, --debug      don't remove temporary files
27353       --recheck    update $as_me by reconfiguring in the same conditions
27354   --file=FILE[:TEMPLATE]
27355                    instantiate the configuration file FILE
27356   --header=FILE[:TEMPLATE]
27357                    instantiate the configuration header FILE
27358
27359 Configuration files:
27360 $config_files
27361
27362 Configuration headers:
27363 $config_headers
27364
27365 Configuration commands:
27366 $config_commands
27367
27368 Report bugs to <bug-autoconf@gnu.org>."
27369
27370 _ACEOF
27371 cat >>$CONFIG_STATUS <<_ACEOF
27372 ac_cs_version="\\
27373 simgrid config.status 3.3-cvs
27374 configured by $0, generated by GNU Autoconf 2.61,
27375   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27376
27377 Copyright (C) 2006 Free Software Foundation, Inc.
27378 This config.status script is free software; the Free Software Foundation
27379 gives unlimited permission to copy, distribute and modify it."
27380
27381 ac_pwd='$ac_pwd'
27382 srcdir='$srcdir'
27383 INSTALL='$INSTALL'
27384 MKDIR_P='$MKDIR_P'
27385 _ACEOF
27386
27387 cat >>$CONFIG_STATUS <<\_ACEOF
27388 # If no file are specified by the user, then we need to provide default
27389 # value.  By we need to know if files were specified by the user.
27390 ac_need_defaults=:
27391 while test $# != 0
27392 do
27393   case $1 in
27394   --*=*)
27395     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27396     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27397     ac_shift=:
27398     ;;
27399   *)
27400     ac_option=$1
27401     ac_optarg=$2
27402     ac_shift=shift
27403     ;;
27404   esac
27405
27406   case $ac_option in
27407   # Handling of the options.
27408   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27409     ac_cs_recheck=: ;;
27410   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27411     echo "$ac_cs_version"; exit ;;
27412   --debug | --debu | --deb | --de | --d | -d )
27413     debug=: ;;
27414   --file | --fil | --fi | --f )
27415     $ac_shift
27416     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27417     ac_need_defaults=false;;
27418   --header | --heade | --head | --hea )
27419     $ac_shift
27420     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27421     ac_need_defaults=false;;
27422   --he | --h)
27423     # Conflict between --help and --header
27424     { echo "$as_me: error: ambiguous option: $1
27425 Try \`$0 --help' for more information." >&2
27426    { (exit 1); exit 1; }; };;
27427   --help | --hel | -h )
27428     echo "$ac_cs_usage"; exit ;;
27429   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27430   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27431     ac_cs_silent=: ;;
27432
27433   # This is an error.
27434   -*) { echo "$as_me: error: unrecognized option: $1
27435 Try \`$0 --help' for more information." >&2
27436    { (exit 1); exit 1; }; } ;;
27437
27438   *) ac_config_targets="$ac_config_targets $1"
27439      ac_need_defaults=false ;;
27440
27441   esac
27442   shift
27443 done
27444
27445 ac_configure_extra_args=
27446
27447 if $ac_cs_silent; then
27448   exec 6>/dev/null
27449   ac_configure_extra_args="$ac_configure_extra_args --silent"
27450 fi
27451
27452 _ACEOF
27453 cat >>$CONFIG_STATUS <<_ACEOF
27454 if \$ac_cs_recheck; then
27455   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27456   CONFIG_SHELL=$SHELL
27457   export CONFIG_SHELL
27458   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27459 fi
27460
27461 _ACEOF
27462 cat >>$CONFIG_STATUS <<\_ACEOF
27463 exec 5>>config.log
27464 {
27465   echo
27466   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27467 ## Running $as_me. ##
27468 _ASBOX
27469   echo "$ac_log"
27470 } >&5
27471
27472 _ACEOF
27473 cat >>$CONFIG_STATUS <<_ACEOF
27474 #
27475 # INIT-COMMANDS
27476 #
27477 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27478
27479 _ACEOF
27480
27481 cat >>$CONFIG_STATUS <<\_ACEOF
27482
27483 # Handling of arguments.
27484 for ac_config_target in $ac_config_targets
27485 do
27486   case $ac_config_target in
27487     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27488     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27489     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27490     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27491     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27492     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27493     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27494     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27495     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27496     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27497     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27498     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27499     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27500     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27501     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27502     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27503     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27504     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27505     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27506     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27507     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27508     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27509     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27510     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27511     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27512     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27513     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27514     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27515     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27516     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27517     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27518     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27519     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27520     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27521     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27522     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27523     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27524     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27525     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27526     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27527     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27528     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27529     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27530
27531   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27532 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27533    { (exit 1); exit 1; }; };;
27534   esac
27535 done
27536
27537
27538 # If the user did not use the arguments to specify the items to instantiate,
27539 # then the envvar interface is used.  Set only those that are not.
27540 # We use the long form for the default assignment because of an extremely
27541 # bizarre bug on SunOS 4.1.3.
27542 if $ac_need_defaults; then
27543   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27544   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27545   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27546 fi
27547
27548 # Have a temporary directory for convenience.  Make it in the build tree
27549 # simply because there is no reason against having it here, and in addition,
27550 # creating and moving files from /tmp can sometimes cause problems.
27551 # Hook for its removal unless debugging.
27552 # Note that there is a small window in which the directory will not be cleaned:
27553 # after its creation but before its name has been assigned to `$tmp'.
27554 $debug ||
27555 {
27556   tmp=
27557   trap 'exit_status=$?
27558   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27559 ' 0
27560   trap '{ (exit 1); exit 1; }' 1 2 13 15
27561 }
27562 # Create a (secure) tmp directory for tmp files.
27563
27564 {
27565   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27566   test -n "$tmp" && test -d "$tmp"
27567 }  ||
27568 {
27569   tmp=./conf$$-$RANDOM
27570   (umask 077 && mkdir "$tmp")
27571 } ||
27572 {
27573    echo "$me: cannot create a temporary directory in ." >&2
27574    { (exit 1); exit 1; }
27575 }
27576
27577 #
27578 # Set up the sed scripts for CONFIG_FILES section.
27579 #
27580
27581 # No need to generate the scripts if there are no CONFIG_FILES.
27582 # This happens for instance when ./config.status config.h
27583 if test -n "$CONFIG_FILES"; then
27584
27585 _ACEOF
27586
27587
27588
27589 ac_delim='%!_!# '
27590 for ac_last_try in false false false false false :; do
27591   cat >conf$$subs.sed <<_ACEOF
27592 SHELL!$SHELL$ac_delim
27593 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27594 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27595 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27596 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27597 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27598 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27599 exec_prefix!$exec_prefix$ac_delim
27600 prefix!$prefix$ac_delim
27601 program_transform_name!$program_transform_name$ac_delim
27602 bindir!$bindir$ac_delim
27603 sbindir!$sbindir$ac_delim
27604 libexecdir!$libexecdir$ac_delim
27605 datarootdir!$datarootdir$ac_delim
27606 datadir!$datadir$ac_delim
27607 sysconfdir!$sysconfdir$ac_delim
27608 sharedstatedir!$sharedstatedir$ac_delim
27609 localstatedir!$localstatedir$ac_delim
27610 includedir!$includedir$ac_delim
27611 oldincludedir!$oldincludedir$ac_delim
27612 docdir!$docdir$ac_delim
27613 infodir!$infodir$ac_delim
27614 htmldir!$htmldir$ac_delim
27615 dvidir!$dvidir$ac_delim
27616 pdfdir!$pdfdir$ac_delim
27617 psdir!$psdir$ac_delim
27618 libdir!$libdir$ac_delim
27619 localedir!$localedir$ac_delim
27620 mandir!$mandir$ac_delim
27621 DEFS!$DEFS$ac_delim
27622 ECHO_C!$ECHO_C$ac_delim
27623 ECHO_N!$ECHO_N$ac_delim
27624 ECHO_T!$ECHO_T$ac_delim
27625 LIBS!$LIBS$ac_delim
27626 build_alias!$build_alias$ac_delim
27627 host_alias!$host_alias$ac_delim
27628 target_alias!$target_alias$ac_delim
27629 build!$build$ac_delim
27630 build_cpu!$build_cpu$ac_delim
27631 build_vendor!$build_vendor$ac_delim
27632 build_os!$build_os$ac_delim
27633 host!$host$ac_delim
27634 host_cpu!$host_cpu$ac_delim
27635 host_vendor!$host_vendor$ac_delim
27636 host_os!$host_os$ac_delim
27637 target!$target$ac_delim
27638 target_cpu!$target_cpu$ac_delim
27639 target_vendor!$target_vendor$ac_delim
27640 target_os!$target_os$ac_delim
27641 GCJ!$GCJ$ac_delim
27642 GCJFLAGS!$GCJFLAGS$ac_delim
27643 am__leading_dot!$am__leading_dot$ac_delim
27644 DEPDIR!$DEPDIR$ac_delim
27645 am__include!$am__include$ac_delim
27646 am__quote!$am__quote$ac_delim
27647 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27648 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27649 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27650 GCJDEPMODE!$GCJDEPMODE$ac_delim
27651 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27652 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27653 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27654 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27655 INSTALL_DATA!$INSTALL_DATA$ac_delim
27656 am__isrc!$am__isrc$ac_delim
27657 CYGPATH_W!$CYGPATH_W$ac_delim
27658 PACKAGE!$PACKAGE$ac_delim
27659 VERSION!$VERSION$ac_delim
27660 ACLOCAL!$ACLOCAL$ac_delim
27661 AUTOCONF!$AUTOCONF$ac_delim
27662 AUTOMAKE!$AUTOMAKE$ac_delim
27663 AUTOHEADER!$AUTOHEADER$ac_delim
27664 MAKEINFO!$MAKEINFO$ac_delim
27665 install_sh!$install_sh$ac_delim
27666 STRIP!$STRIP$ac_delim
27667 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27668 mkdir_p!$mkdir_p$ac_delim
27669 AWK!$AWK$ac_delim
27670 SET_MAKE!$SET_MAKE$ac_delim
27671 AMTAR!$AMTAR$ac_delim
27672 am__tar!$am__tar$ac_delim
27673 am__untar!$am__untar$ac_delim
27674 CC!$CC$ac_delim
27675 CFLAGS!$CFLAGS$ac_delim
27676 LDFLAGS!$LDFLAGS$ac_delim
27677 CPPFLAGS!$CPPFLAGS$ac_delim
27678 ac_ct_CC!$ac_ct_CC$ac_delim
27679 EXEEXT!$EXEEXT$ac_delim
27680 OBJEXT!$OBJEXT$ac_delim
27681 CCDEPMODE!$CCDEPMODE$ac_delim
27682 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27683 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27684 GREP!$GREP$ac_delim
27685 EGREP!$EGREP$ac_delim
27686 LN_S!$LN_S$ac_delim
27687 ECHO!$ECHO$ac_delim
27688 AR!$AR$ac_delim
27689 _ACEOF
27690
27691   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27692     break
27693   elif $ac_last_try; then
27694     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27695 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27696    { (exit 1); exit 1; }; }
27697   else
27698     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27699   fi
27700 done
27701
27702 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27703 if test -n "$ac_eof"; then
27704   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27705   ac_eof=`expr $ac_eof + 1`
27706 fi
27707
27708 cat >>$CONFIG_STATUS <<_ACEOF
27709 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27711 _ACEOF
27712 sed '
27713 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27714 s/^/s,@/; s/!/@,|#_!!_#|/
27715 :n
27716 t n
27717 s/'"$ac_delim"'$/,g/; t
27718 s/$/\\/; p
27719 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27720 ' >>$CONFIG_STATUS <conf$$subs.sed
27721 rm -f conf$$subs.sed
27722 cat >>$CONFIG_STATUS <<_ACEOF
27723 CEOF$ac_eof
27724 _ACEOF
27725
27726
27727 ac_delim='%!_!# '
27728 for ac_last_try in false false false false false :; do
27729   cat >conf$$subs.sed <<_ACEOF
27730 RANLIB!$RANLIB$ac_delim
27731 DLLTOOL!$DLLTOOL$ac_delim
27732 AS!$AS$ac_delim
27733 OBJDUMP!$OBJDUMP$ac_delim
27734 CPP!$CPP$ac_delim
27735 CXX!$CXX$ac_delim
27736 CXXFLAGS!$CXXFLAGS$ac_delim
27737 ac_ct_CXX!$ac_ct_CXX$ac_delim
27738 CXXDEPMODE!$CXXDEPMODE$ac_delim
27739 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27740 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27741 CXXCPP!$CXXCPP$ac_delim
27742 LIBTOOL!$LIBTOOL$ac_delim
27743 LIBOBJS!$LIBOBJS$ac_delim
27744 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27745 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27746 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27747 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27748 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27749 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27750 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27751 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27752 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27753 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27754 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27755 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27756 GRAS_DEP!$GRAS_DEP$ac_delim
27757 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27758 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27759 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27760 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27761 MAINT!$MAINT$ac_delim
27762 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27763 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27764 abs_builddir!$abs_builddir$ac_delim
27765 abs_srcdir!$abs_srcdir$ac_delim
27766 abs_top_builddir!$abs_top_builddir$ac_delim
27767 abs_top_srcdir!$abs_top_srcdir$ac_delim
27768 JAVAC!$JAVAC$ac_delim
27769 JAVA!$JAVA$ac_delim
27770 JAR!$JAR$ac_delim
27771 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27772 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27773 BASH!$BASH$ac_delim
27774 WARNING!$WARNING$ac_delim
27775 LEX!$LEX$ac_delim
27776 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27777 LEXLIB!$LEXLIB$ac_delim
27778 FLEXML!$FLEXML$ac_delim
27779 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27780 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27781 DOXYGEN!$DOXYGEN$ac_delim
27782 ADDR2LINE!$ADDR2LINE$ac_delim
27783 ac_configure_args!$ac_configure_args$ac_delim
27784 MD5SUM!$MD5SUM$ac_delim
27785 build_id!$build_id$ac_delim
27786 LTLIBOBJS!$LTLIBOBJS$ac_delim
27787 _ACEOF
27788
27789   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
27790     break
27791   elif $ac_last_try; then
27792     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27794    { (exit 1); exit 1; }; }
27795   else
27796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27797   fi
27798 done
27799
27800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27801 if test -n "$ac_eof"; then
27802   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27803   ac_eof=`expr $ac_eof + 1`
27804 fi
27805
27806 cat >>$CONFIG_STATUS <<_ACEOF
27807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27809 _ACEOF
27810 sed '
27811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27812 s/^/s,@/; s/!/@,|#_!!_#|/
27813 :n
27814 t n
27815 s/'"$ac_delim"'$/,g/; t
27816 s/$/\\/; p
27817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27818 ' >>$CONFIG_STATUS <conf$$subs.sed
27819 rm -f conf$$subs.sed
27820 cat >>$CONFIG_STATUS <<_ACEOF
27821 :end
27822 s/|#_!!_#|//g
27823 CEOF$ac_eof
27824 _ACEOF
27825
27826
27827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27829 # trailing colons and then remove the whole line if VPATH becomes empty
27830 # (actually we leave an empty line to preserve line numbers).
27831 if test "x$srcdir" = x.; then
27832   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27833 s/:*\$(srcdir):*/:/
27834 s/:*\${srcdir}:*/:/
27835 s/:*@srcdir@:*/:/
27836 s/^\([^=]*=[     ]*\):*/\1/
27837 s/:*$//
27838 s/^[^=]*=[       ]*$//
27839 }'
27840 fi
27841
27842 cat >>$CONFIG_STATUS <<\_ACEOF
27843 fi # test -n "$CONFIG_FILES"
27844
27845
27846 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27847 do
27848   case $ac_tag in
27849   :[FHLC]) ac_mode=$ac_tag; continue;;
27850   esac
27851   case $ac_mode$ac_tag in
27852   :[FHL]*:*);;
27853   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27854 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27855    { (exit 1); exit 1; }; };;
27856   :[FH]-) ac_tag=-:-;;
27857   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27858   esac
27859   ac_save_IFS=$IFS
27860   IFS=:
27861   set x $ac_tag
27862   IFS=$ac_save_IFS
27863   shift
27864   ac_file=$1
27865   shift
27866
27867   case $ac_mode in
27868   :L) ac_source=$1;;
27869   :[FH])
27870     ac_file_inputs=
27871     for ac_f
27872     do
27873       case $ac_f in
27874       -) ac_f="$tmp/stdin";;
27875       *) # Look for the file first in the build tree, then in the source tree
27876          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27877          # because $ac_f cannot contain `:'.
27878          test -f "$ac_f" ||
27879            case $ac_f in
27880            [\\/$]*) false;;
27881            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27882            esac ||
27883            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27884 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27885    { (exit 1); exit 1; }; };;
27886       esac
27887       ac_file_inputs="$ac_file_inputs $ac_f"
27888     done
27889
27890     # Let's still pretend it is `configure' which instantiates (i.e., don't
27891     # use $as_me), people would be surprised to read:
27892     #    /* config.h.  Generated by config.status.  */
27893     configure_input="Generated from "`IFS=:
27894           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27895     if test x"$ac_file" != x-; then
27896       configure_input="$ac_file.  $configure_input"
27897       { echo "$as_me:$LINENO: creating $ac_file" >&5
27898 echo "$as_me: creating $ac_file" >&6;}
27899     fi
27900
27901     case $ac_tag in
27902     *:-:* | *:-) cat >"$tmp/stdin";;
27903     esac
27904     ;;
27905   esac
27906
27907   ac_dir=`$as_dirname -- "$ac_file" ||
27908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27909          X"$ac_file" : 'X\(//\)[^/]' \| \
27910          X"$ac_file" : 'X\(//\)$' \| \
27911          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27912 echo X"$ac_file" |
27913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27914             s//\1/
27915             q
27916           }
27917           /^X\(\/\/\)[^/].*/{
27918             s//\1/
27919             q
27920           }
27921           /^X\(\/\/\)$/{
27922             s//\1/
27923             q
27924           }
27925           /^X\(\/\).*/{
27926             s//\1/
27927             q
27928           }
27929           s/.*/./; q'`
27930   { as_dir="$ac_dir"
27931   case $as_dir in #(
27932   -*) as_dir=./$as_dir;;
27933   esac
27934   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27935     as_dirs=
27936     while :; do
27937       case $as_dir in #(
27938       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27939       *) as_qdir=$as_dir;;
27940       esac
27941       as_dirs="'$as_qdir' $as_dirs"
27942       as_dir=`$as_dirname -- "$as_dir" ||
27943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27944          X"$as_dir" : 'X\(//\)[^/]' \| \
27945          X"$as_dir" : 'X\(//\)$' \| \
27946          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27947 echo X"$as_dir" |
27948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27949             s//\1/
27950             q
27951           }
27952           /^X\(\/\/\)[^/].*/{
27953             s//\1/
27954             q
27955           }
27956           /^X\(\/\/\)$/{
27957             s//\1/
27958             q
27959           }
27960           /^X\(\/\).*/{
27961             s//\1/
27962             q
27963           }
27964           s/.*/./; q'`
27965       test -d "$as_dir" && break
27966     done
27967     test -z "$as_dirs" || eval "mkdir $as_dirs"
27968   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27969 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27970    { (exit 1); exit 1; }; }; }
27971   ac_builddir=.
27972
27973 case "$ac_dir" in
27974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27975 *)
27976   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27977   # A ".." for each directory in $ac_dir_suffix.
27978   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27979   case $ac_top_builddir_sub in
27980   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27981   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27982   esac ;;
27983 esac
27984 ac_abs_top_builddir=$ac_pwd
27985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27986 # for backward compatibility:
27987 ac_top_builddir=$ac_top_build_prefix
27988
27989 case $srcdir in
27990   .)  # We are building in place.
27991     ac_srcdir=.
27992     ac_top_srcdir=$ac_top_builddir_sub
27993     ac_abs_top_srcdir=$ac_pwd ;;
27994   [\\/]* | ?:[\\/]* )  # Absolute name.
27995     ac_srcdir=$srcdir$ac_dir_suffix;
27996     ac_top_srcdir=$srcdir
27997     ac_abs_top_srcdir=$srcdir ;;
27998   *) # Relative name.
27999     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28000     ac_top_srcdir=$ac_top_build_prefix$srcdir
28001     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28002 esac
28003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28004
28005
28006   case $ac_mode in
28007   :F)
28008   #
28009   # CONFIG_FILE
28010   #
28011
28012   case $INSTALL in
28013   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28014   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28015   esac
28016   ac_MKDIR_P=$MKDIR_P
28017   case $MKDIR_P in
28018   [\\/$]* | ?:[\\/]* ) ;;
28019   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28020   esac
28021 _ACEOF
28022
28023 cat >>$CONFIG_STATUS <<\_ACEOF
28024 # If the template does not know about datarootdir, expand it.
28025 # FIXME: This hack should be removed a few years after 2.60.
28026 ac_datarootdir_hack=; ac_datarootdir_seen=
28027
28028 case `sed -n '/datarootdir/ {
28029   p
28030   q
28031 }
28032 /@datadir@/p
28033 /@docdir@/p
28034 /@infodir@/p
28035 /@localedir@/p
28036 /@mandir@/p
28037 ' $ac_file_inputs` in
28038 *datarootdir*) ac_datarootdir_seen=yes;;
28039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28040   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28041 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28042 _ACEOF
28043 cat >>$CONFIG_STATUS <<_ACEOF
28044   ac_datarootdir_hack='
28045   s&@datadir@&$datadir&g
28046   s&@docdir@&$docdir&g
28047   s&@infodir@&$infodir&g
28048   s&@localedir@&$localedir&g
28049   s&@mandir@&$mandir&g
28050     s&\\\${datarootdir}&$datarootdir&g' ;;
28051 esac
28052 _ACEOF
28053
28054 # Neutralize VPATH when `$srcdir' = `.'.
28055 # Shell code in configure.ac might set extrasub.
28056 # FIXME: do we really want to maintain this feature?
28057 cat >>$CONFIG_STATUS <<_ACEOF
28058   sed "$ac_vpsub
28059 $extrasub
28060 _ACEOF
28061 cat >>$CONFIG_STATUS <<\_ACEOF
28062 :t
28063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28064 s&@configure_input@&$configure_input&;t t
28065 s&@top_builddir@&$ac_top_builddir_sub&;t t
28066 s&@srcdir@&$ac_srcdir&;t t
28067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28068 s&@top_srcdir@&$ac_top_srcdir&;t t
28069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28070 s&@builddir@&$ac_builddir&;t t
28071 s&@abs_builddir@&$ac_abs_builddir&;t t
28072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28073 s&@INSTALL@&$ac_INSTALL&;t t
28074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28075 $ac_datarootdir_hack
28076 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28077
28078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28079   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28080   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28081   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28082 which seems to be undefined.  Please make sure it is defined." >&5
28083 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28084 which seems to be undefined.  Please make sure it is defined." >&2;}
28085
28086   rm -f "$tmp/stdin"
28087   case $ac_file in
28088   -) cat "$tmp/out"; rm -f "$tmp/out";;
28089   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28090   esac
28091  ;;
28092   :H)
28093   #
28094   # CONFIG_HEADER
28095   #
28096 _ACEOF
28097
28098 # Transform confdefs.h into a sed script `conftest.defines', that
28099 # substitutes the proper values into config.h.in to produce config.h.
28100 rm -f conftest.defines conftest.tail
28101 # First, append a space to every undef/define line, to ease matching.
28102 echo 's/$/ /' >conftest.defines
28103 # Then, protect against being on the right side of a sed subst, or in
28104 # an unquoted here document, in config.status.  If some macros were
28105 # called several times there might be several #defines for the same
28106 # symbol, which is useless.  But do not sort them, since the last
28107 # AC_DEFINE must be honored.
28108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28109 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28110 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28111 # PARAMS is the parameter list in the macro definition--in most cases, it's
28112 # just an empty string.
28113 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28114 ac_dB='\\)[      (].*,\\1define\\2'
28115 ac_dC=' '
28116 ac_dD=' ,'
28117
28118 uniq confdefs.h |
28119   sed -n '
28120         t rset
28121         :rset
28122         s/^[     ]*#[    ]*define[       ][      ]*//
28123         t ok
28124         d
28125         :ok
28126         s/[\\&,]/\\&/g
28127         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28128         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28129   ' >>conftest.defines
28130
28131 # Remove the space that was appended to ease matching.
28132 # Then replace #undef with comments.  This is necessary, for
28133 # example, in the case of _POSIX_SOURCE, which is predefined and required
28134 # on some systems where configure will not decide to define it.
28135 # (The regexp can be short, since the line contains either #define or #undef.)
28136 echo 's/ $//
28137 s,^[     #]*u.*,/* & */,' >>conftest.defines
28138
28139 # Break up conftest.defines:
28140 ac_max_sed_lines=50
28141
28142 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28143 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28144 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28145 # et cetera.
28146 ac_in='$ac_file_inputs'
28147 ac_out='"$tmp/out1"'
28148 ac_nxt='"$tmp/out2"'
28149
28150 while :
28151 do
28152   # Write a here document:
28153     cat >>$CONFIG_STATUS <<_ACEOF
28154     # First, check the format of the line:
28155     cat >"\$tmp/defines.sed" <<\\CEOF
28156 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28157 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28158 b
28159 :def
28160 _ACEOF
28161   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28162   echo 'CEOF
28163     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28164   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28165   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28166   grep . conftest.tail >/dev/null || break
28167   rm -f conftest.defines
28168   mv conftest.tail conftest.defines
28169 done
28170 rm -f conftest.defines conftest.tail
28171
28172 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28173 cat >>$CONFIG_STATUS <<\_ACEOF
28174   if test x"$ac_file" != x-; then
28175     echo "/* $configure_input  */" >"$tmp/config.h"
28176     cat "$ac_result" >>"$tmp/config.h"
28177     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28178       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28179 echo "$as_me: $ac_file is unchanged" >&6;}
28180     else
28181       rm -f $ac_file
28182       mv "$tmp/config.h" $ac_file
28183     fi
28184   else
28185     echo "/* $configure_input  */"
28186     cat "$ac_result"
28187   fi
28188   rm -f "$tmp/out12"
28189 # Compute $ac_file's index in $config_headers.
28190 _am_stamp_count=1
28191 for _am_header in $config_headers :; do
28192   case $_am_header in
28193     $ac_file | $ac_file:* )
28194       break ;;
28195     * )
28196       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28197   esac
28198 done
28199 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28200 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28201          X$ac_file : 'X\(//\)[^/]' \| \
28202          X$ac_file : 'X\(//\)$' \| \
28203          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28204 echo X$ac_file |
28205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28206             s//\1/
28207             q
28208           }
28209           /^X\(\/\/\)[^/].*/{
28210             s//\1/
28211             q
28212           }
28213           /^X\(\/\/\)$/{
28214             s//\1/
28215             q
28216           }
28217           /^X\(\/\).*/{
28218             s//\1/
28219             q
28220           }
28221           s/.*/./; q'`/stamp-h$_am_stamp_count
28222  ;;
28223
28224   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28225 echo "$as_me: executing $ac_file commands" >&6;}
28226  ;;
28227   esac
28228
28229
28230   case $ac_file$ac_mode in
28231     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28232   # Strip MF so we end up with the name of the file.
28233   mf=`echo "$mf" | sed -e 's/:.*$//'`
28234   # Check whether this is an Automake generated Makefile or not.
28235   # We used to match only the files named `Makefile.in', but
28236   # some people rename them; so instead we look at the file content.
28237   # Grep'ing the first line is not enough: some people post-process
28238   # each Makefile.in and add a new line on top of each file to say so.
28239   # Grep'ing the whole file is not good either: AIX grep has a line
28240   # limit of 2048, but all sed's we know have understand at least 4000.
28241   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28242     dirpart=`$as_dirname -- "$mf" ||
28243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28244          X"$mf" : 'X\(//\)[^/]' \| \
28245          X"$mf" : 'X\(//\)$' \| \
28246          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28247 echo X"$mf" |
28248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28249             s//\1/
28250             q
28251           }
28252           /^X\(\/\/\)[^/].*/{
28253             s//\1/
28254             q
28255           }
28256           /^X\(\/\/\)$/{
28257             s//\1/
28258             q
28259           }
28260           /^X\(\/\).*/{
28261             s//\1/
28262             q
28263           }
28264           s/.*/./; q'`
28265   else
28266     continue
28267   fi
28268   # Extract the definition of DEPDIR, am__include, and am__quote
28269   # from the Makefile without running `make'.
28270   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28271   test -z "$DEPDIR" && continue
28272   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28273   test -z "am__include" && continue
28274   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28275   # When using ansi2knr, U may be empty or an underscore; expand it
28276   U=`sed -n 's/^U = //p' < "$mf"`
28277   # Find all dependency output files, they are included files with
28278   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28279   # simplest approach to changing $(DEPDIR) to its actual value in the
28280   # expansion.
28281   for file in `sed -n "
28282     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28283        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28284     # Make sure the directory exists.
28285     test -f "$dirpart/$file" && continue
28286     fdir=`$as_dirname -- "$file" ||
28287 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28288          X"$file" : 'X\(//\)[^/]' \| \
28289          X"$file" : 'X\(//\)$' \| \
28290          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28291 echo X"$file" |
28292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28293             s//\1/
28294             q
28295           }
28296           /^X\(\/\/\)[^/].*/{
28297             s//\1/
28298             q
28299           }
28300           /^X\(\/\/\)$/{
28301             s//\1/
28302             q
28303           }
28304           /^X\(\/\).*/{
28305             s//\1/
28306             q
28307           }
28308           s/.*/./; q'`
28309     { as_dir=$dirpart/$fdir
28310   case $as_dir in #(
28311   -*) as_dir=./$as_dir;;
28312   esac
28313   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28314     as_dirs=
28315     while :; do
28316       case $as_dir in #(
28317       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28318       *) as_qdir=$as_dir;;
28319       esac
28320       as_dirs="'$as_qdir' $as_dirs"
28321       as_dir=`$as_dirname -- "$as_dir" ||
28322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28323          X"$as_dir" : 'X\(//\)[^/]' \| \
28324          X"$as_dir" : 'X\(//\)$' \| \
28325          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28326 echo X"$as_dir" |
28327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28328             s//\1/
28329             q
28330           }
28331           /^X\(\/\/\)[^/].*/{
28332             s//\1/
28333             q
28334           }
28335           /^X\(\/\/\)$/{
28336             s//\1/
28337             q
28338           }
28339           /^X\(\/\).*/{
28340             s//\1/
28341             q
28342           }
28343           s/.*/./; q'`
28344       test -d "$as_dir" && break
28345     done
28346     test -z "$as_dirs" || eval "mkdir $as_dirs"
28347   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28348 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28349    { (exit 1); exit 1; }; }; }
28350     # echo "creating $dirpart/$file"
28351     echo '# dummy' > "$dirpart/$file"
28352   done
28353 done
28354  ;;
28355     "tools/graspe-slave":F)
28356     for file in                                                 \
28357      tools/graspe-slave           tools/graspe-master           \
28358     ; do                                                        \
28359       test -e $file && chmod +x $file;                          \
28360     done
28361  ;;
28362     "testsuite/Makefile":F)
28363     for file in                                                 \
28364      testsuite/run_tests                                        \
28365      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28366     ; do                                                        \
28367       test -e $file && chmod +x $file;                          \
28368     done
28369  ;;
28370     "testsuite/run_tests":F)
28371     for file in                                                 \
28372      testsuite/run_tests                                        \
28373      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28374     ; do                                                        \
28375       test -e $file && chmod +x $file;                          \
28376     done
28377  ;;
28378     "testsuite/gras/trp_tcp_usage":F)
28379     for file in                                                 \
28380      testsuite/run_tests                                        \
28381      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28382     ; do                                                        \
28383       test -e $file && chmod +x $file;                          \
28384     done
28385  ;;
28386     "testsuite/gras/trp_file_usage":F)
28387     for file in                                                 \
28388      testsuite/run_tests                                        \
28389      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28390     ; do                                                        \
28391       test -e $file && chmod +x $file;                          \
28392     done
28393  ;;
28394     "examples/Makefile":F)
28395     for file in                                                 \
28396      \
28397      examples/simdag/test_simdag                                \
28398      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28399      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28400     ; do                                                        \
28401       test -e $file && chmod +x $file;                          \
28402     done
28403  ;;
28404     "examples/msg/Makefile":F)
28405     for file in                                                 \
28406      \
28407      examples/simdag/test_simdag                                \
28408      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28409      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28410     ; do                                                        \
28411       test -e $file && chmod +x $file;                          \
28412     done
28413  ;;
28414     "examples/simdag/Makefile":F)
28415     for file in                                                 \
28416      \
28417      examples/simdag/test_simdag                                \
28418      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28419      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28420     ; do                                                        \
28421       test -e $file && chmod +x $file;                          \
28422     done
28423  ;;
28424     "examples/simdag/test_simdag":F)
28425     for file in                                                 \
28426      \
28427      examples/simdag/test_simdag                                \
28428      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28429      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28430     ; do                                                        \
28431       test -e $file && chmod +x $file;                          \
28432     done
28433  ;;
28434     "examples/gras/Makefile":F)
28435     for file in                                                 \
28436      \
28437      examples/simdag/test_simdag                                \
28438      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28439      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28440     ; do                                                        \
28441       test -e $file && chmod +x $file;                          \
28442     done
28443  ;;
28444     "examples/gras/ping/Makefile":F)
28445     for file in                                                 \
28446      \
28447      examples/simdag/test_simdag                                \
28448      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28449      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28450     ; do                                                        \
28451       test -e $file && chmod +x $file;                          \
28452     done
28453  ;;
28454     "examples/gras/rpc/Makefile":F)
28455     for file in                                                 \
28456      \
28457      examples/simdag/test_simdag                                \
28458      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28459      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28460     ; do                                                        \
28461       test -e $file && chmod +x $file;                          \
28462     done
28463  ;;
28464     "examples/gras/spawn/Makefile":F)
28465     for file in                                                 \
28466      \
28467      examples/simdag/test_simdag                                \
28468      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28469      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28470     ; do                                                        \
28471       test -e $file && chmod +x $file;                          \
28472     done
28473  ;;
28474     "examples/gras/synchro/Makefile":F)
28475     for file in                                                 \
28476      \
28477      examples/simdag/test_simdag                                \
28478      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28479      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28480     ; do                                                        \
28481       test -e $file && chmod +x $file;                          \
28482     done
28483  ;;
28484     "examples/gras/timer/Makefile":F)
28485     for file in                                                 \
28486      \
28487      examples/simdag/test_simdag                                \
28488      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28489      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28490     ; do                                                        \
28491       test -e $file && chmod +x $file;                          \
28492     done
28493  ;;
28494     "examples/gras/chrono/Makefile":F)
28495     for file in                                                 \
28496      \
28497      examples/simdag/test_simdag                                \
28498      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28499      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28500     ; do                                                        \
28501       test -e $file && chmod +x $file;                          \
28502     done
28503  ;;
28504     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28505     for file in                                                 \
28506      \
28507      examples/simdag/test_simdag                                \
28508      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28509      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28510     ; do                                                        \
28511       test -e $file && chmod +x $file;                          \
28512     done
28513  ;;
28514     "examples/gras/mmrpc/Makefile":F)
28515     for file in                                                 \
28516      \
28517      examples/simdag/test_simdag                                \
28518      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28519      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28520     ; do                                                        \
28521       test -e $file && chmod +x $file;                          \
28522     done
28523  ;;
28524     "examples/gras/pmm/Makefile":F)
28525     for file in                                                 \
28526      \
28527      examples/simdag/test_simdag                                \
28528      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28529      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28530     ; do                                                        \
28531       test -e $file && chmod +x $file;                          \
28532     done
28533  ;;
28534     "examples/gras/all2all/Makefile":F)
28535     for file in                                                 \
28536      \
28537      examples/simdag/test_simdag                                \
28538      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28539      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28540     ; do                                                        \
28541       test -e $file && chmod +x $file;                          \
28542     done
28543  ;;
28544     "examples/amok/Makefile":F)
28545     for file in                                                 \
28546      \
28547      examples/simdag/test_simdag                                \
28548      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28549      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28550     ; do                                                        \
28551       test -e $file && chmod +x $file;                          \
28552     done
28553  ;;
28554     "examples/amok/bandwidth/Makefile":F)
28555     for file in                                                 \
28556      \
28557      examples/simdag/test_simdag                                \
28558      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28559      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28560     ; do                                                        \
28561       test -e $file && chmod +x $file;                          \
28562     done
28563  ;;
28564     "examples/amok/bandwidth/test_sg":F)
28565     for file in                                                 \
28566      \
28567      examples/simdag/test_simdag                                \
28568      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28569      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28570     ; do                                                        \
28571       test -e $file && chmod +x $file;                          \
28572     done
28573  ;;
28574     "examples/amok/bandwidth/test_rl":F)
28575     for file in                                                 \
28576      \
28577      examples/simdag/test_simdag                                \
28578      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28579      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28580     ; do                                                        \
28581       test -e $file && chmod +x $file;                          \
28582     done
28583  ;;
28584     "examples/amok/saturate/Makefile":F)
28585     for file in                                                 \
28586      \
28587      examples/simdag/test_simdag                                \
28588      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28589      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28590     ; do                                                        \
28591       test -e $file && chmod +x $file;                          \
28592     done
28593  ;;
28594     "examples/amok/saturate/test_sg":F)
28595     for file in                                                 \
28596      \
28597      examples/simdag/test_simdag                                \
28598      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28599      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28600     ; do                                                        \
28601       test -e $file && chmod +x $file;                          \
28602     done
28603  ;;
28604     "examples/amok/saturate/test_rl":F)
28605     for file in                                                 \
28606      \
28607      examples/simdag/test_simdag                                \
28608      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28609      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28610     ; do                                                        \
28611       test -e $file && chmod +x $file;                          \
28612     done
28613  ;;
28614
28615   esac
28616 done # for ac_tag
28617
28618
28619 { (exit 0); exit 0; }
28620 _ACEOF
28621 chmod +x $CONFIG_STATUS
28622 ac_clean_files=$ac_clean_files_save
28623
28624
28625 # configure is writing to config.log, and then calls config.status.
28626 # config.status does its own redirection, appending to config.log.
28627 # Unfortunately, on DOS this fails, as config.log is still kept open
28628 # by configure, so config.status won't be able to write to it; its
28629 # output is simply discarded.  So we exec the FD to /dev/null,
28630 # effectively closing config.log, so it can be properly (re)opened and
28631 # appended to by config.status.  When coming back to configure, we
28632 # need to make the FD available again.
28633 if test "$no_create" != yes; then
28634   ac_cs_success=:
28635   ac_config_status_args=
28636   test "$silent" = yes &&
28637     ac_config_status_args="$ac_config_status_args --quiet"
28638   exec 5>/dev/null
28639   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28640   exec 5>>config.log
28641   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28642   # would make configure fail if this is the last instruction.
28643   $ac_cs_success || { (exit 1); exit 1; }
28644 fi
28645
28646
28647 echo "
28648
28649 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28650
28651         Compiler:        ${CC} (version: ${GCC_VERSION})
28652
28653         CFlags:          ${CFLAGS}
28654         CPPFlags:        ${CPPFLAGS}
28655         LDFlags:         ${LDFLAGS}
28656
28657         Context backend: ${with_context}
28658 "
28659
28660 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28661   echo "WARNING:"
28662   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28663   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28664   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28665   echo "WARNING:"
28666   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28667   echo "WARNING:"
28668 fi
28669 echo $build_id > stamp.configure
28670
28671 exit 0;