Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove_at already frees the element if last argument equals to NULL, so do not duppli...
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.154 .
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 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
735
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBOBJS
881 PTH_STACK_GROWTH
882 pth_skaddr_makecontext
883 pth_sksize_makecontext
884 USE_SIMIX_TRUE
885 USE_SIMIX_FALSE
886 GTNETS_CFLAGS
887 GTNETS_LDFLAGS
888 USE_GTNETS_TRUE
889 USE_GTNETS_FALSE
890 HAVE_SDP_TRUE
891 HAVE_SDP_FALSE
892 SIMGRID_DEP
893 AM_CFLAGS
894 GRAS_DEP
895 GRAMINE_MODE_TRUE
896 GRAMINE_MODE_FALSE
897 MAINTAINER_MODE_TRUE
898 MAINTAINER_MODE_FALSE
899 MAINT
900 LD_DYNAMIC_FLAGS
901 abs_builddir
902 abs_srcdir
903 abs_top_builddir
904 abs_top_srcdir
905 BASH
906 WARNING
907 LEX
908 LEX_OUTPUT_ROOT
909 LEXLIB
910 FLEXML
911 HAVE_FLEXML_TRUE
912 HAVE_FLEXML_FALSE
913 DOXYGEN
914 ADDR2LINE
915 ac_configure_args
916 MD5SUM
917 build_id
918 LTLIBOBJS'
919 ac_subst_files=''
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 CXX
930 CXXFLAGS
931 CCC
932 CXXCPP
933 F77
934 FFLAGS'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
982
983 ac_prev=
984 ac_dashdash=
985 for ac_option
986 do
987   # If the previous option needs an argument, assign it.
988   if test -n "$ac_prev"; then
989     eval $ac_prev=\$ac_option
990     ac_prev=
991     continue
992   fi
993
994   case $ac_option in
995   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996   *)    ac_optarg=yes ;;
997   esac
998
999   # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001   case $ac_dashdash$ac_option in
1002   --)
1003     ac_dashdash=yes ;;
1004
1005   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006     ac_prev=bindir ;;
1007   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008     bindir=$ac_optarg ;;
1009
1010   -build | --build | --buil | --bui | --bu)
1011     ac_prev=build_alias ;;
1012   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013     build_alias=$ac_optarg ;;
1014
1015   -cache-file | --cache-file | --cache-fil | --cache-fi \
1016   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017     ac_prev=cache_file ;;
1018   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020     cache_file=$ac_optarg ;;
1021
1022   --config-cache | -C)
1023     cache_file=config.cache ;;
1024
1025   -datadir | --datadir | --datadi | --datad)
1026     ac_prev=datadir ;;
1027   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028     datadir=$ac_optarg ;;
1029
1030   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031   | --dataroo | --dataro | --datar)
1032     ac_prev=datarootdir ;;
1033   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035     datarootdir=$ac_optarg ;;
1036
1037   -disable-* | --disable-*)
1038     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044     eval enable_$ac_feature=no ;;
1045
1046   -docdir | --docdir | --docdi | --doc | --do)
1047     ac_prev=docdir ;;
1048   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049     docdir=$ac_optarg ;;
1050
1051   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052     ac_prev=dvidir ;;
1053   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054     dvidir=$ac_optarg ;;
1055
1056   -enable-* | --enable-*)
1057     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1063     eval enable_$ac_feature=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209     ac_prev=sbindir ;;
1210   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211   | --sbi=* | --sb=*)
1212     sbindir=$ac_optarg ;;
1213
1214   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216   | --sharedst | --shareds | --shared | --share | --shar \
1217   | --sha | --sh)
1218     ac_prev=sharedstatedir ;;
1219   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222   | --sha=* | --sh=*)
1223     sharedstatedir=$ac_optarg ;;
1224
1225   -site | --site | --sit)
1226     ac_prev=site ;;
1227   -site=* | --site=* | --sit=*)
1228     site=$ac_optarg ;;
1229
1230   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231     ac_prev=srcdir ;;
1232   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233     srcdir=$ac_optarg ;;
1234
1235   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236   | --syscon | --sysco | --sysc | --sys | --sy)
1237     ac_prev=sysconfdir ;;
1238   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240     sysconfdir=$ac_optarg ;;
1241
1242   -target | --target | --targe | --targ | --tar | --ta | --t)
1243     ac_prev=target_alias ;;
1244   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245     target_alias=$ac_optarg ;;
1246
1247   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248     verbose=yes ;;
1249
1250   -version | --version | --versio | --versi | --vers | -V)
1251     ac_init_version=: ;;
1252
1253   -with-* | --with-*)
1254     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       { echo "$as_me: error: invalid package name: $ac_package" >&2
1258    { (exit 1); exit 1; }; }
1259     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1260     eval with_$ac_package=\$ac_optarg ;;
1261
1262   -without-* | --without-*)
1263     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       { echo "$as_me: error: invalid package name: $ac_package" >&2
1267    { (exit 1); exit 1; }; }
1268     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1269     eval with_$ac_package=no ;;
1270
1271   --x)
1272     # Obsolete; use --with-x.
1273     with_x=yes ;;
1274
1275   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276   | --x-incl | --x-inc | --x-in | --x-i)
1277     ac_prev=x_includes ;;
1278   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280     x_includes=$ac_optarg ;;
1281
1282   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284     ac_prev=x_libraries ;;
1285   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287     x_libraries=$ac_optarg ;;
1288
1289   -*) { echo "$as_me: error: unrecognized option: $ac_option
1290 Try \`$0 --help' for more information." >&2
1291    { (exit 1); exit 1; }; }
1292     ;;
1293
1294   *=*)
1295     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1298       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1299    { (exit 1); exit 1; }; }
1300     eval $ac_envvar=\$ac_optarg
1301     export $ac_envvar ;;
1302
1303   *)
1304     # FIXME: should be removed in autoconf 3.0.
1305     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309     ;;
1310
1311   esac
1312 done
1313
1314 if test -n "$ac_prev"; then
1315   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316   { echo "$as_me: error: missing argument to $ac_option" >&2
1317    { (exit 1); exit 1; }; }
1318 fi
1319
1320 # Be sure to have absolute directory names.
1321 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322                 datadir sysconfdir sharedstatedir localstatedir includedir \
1323                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324                 libdir localedir mandir
1325 do
1326   eval ac_val=\$$ac_var
1327   case $ac_val in
1328     [\\/$]* | ?:[\\/]* )  continue;;
1329     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330   esac
1331   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1332    { (exit 1); exit 1; }; }
1333 done
1334
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1338 build=$build_alias
1339 host=$host_alias
1340 target=$target_alias
1341
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344   if test "x$build_alias" = x; then
1345     cross_compiling=maybe
1346     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347     If a cross compiler is detected then cross compile mode will be used." >&2
1348   elif test "x$build_alias" != "x$host_alias"; then
1349     cross_compiling=yes
1350   fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362   { echo "$as_me: error: Working directory cannot be determined" >&2
1363    { (exit 1); exit 1; }; }
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365   { echo "$as_me: error: pwd does not report name of working directory" >&2
1366    { (exit 1); exit 1; }; }
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$0" ||
1374 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$0" : 'X\(//\)[^/]' \| \
1376          X"$0" : 'X\(//\)$' \| \
1377          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1378 echo X"$0" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1406    { (exit 1); exit 1; }; }
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1411    { (exit 1); exit 1; }; }
1412         pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415   srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_env_${ac_var}_value=\$${ac_var}
1426   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434   # Omit some internal or obsolete options to make the list less imposing.
1435   # This message is too long to be a string in the A/UX 3.1 sh.
1436   cat <<_ACEOF
1437 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE.  See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447   -h, --help              display this help and exit
1448       --help=short        display options specific to this package
1449       --help=recursive    display the short help of all the included packages
1450   -V, --version           display version information and exit
1451   -q, --quiet, --silent   do not print \`checking...' messages
1452       --cache-file=FILE   cache test results in FILE [disabled]
1453   -C, --config-cache      alias for \`--cache-file=config.cache'
1454   -n, --no-create         do not create output files
1455       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458   --prefix=PREFIX         install architecture-independent files in PREFIX
1459                           [$ac_default_prefix]
1460   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1461                           [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471   --bindir=DIR           user executables [EPREFIX/bin]
1472   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1473   --libexecdir=DIR       program executables [EPREFIX/libexec]
1474   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1475   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1476   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1477   --libdir=DIR           object code libraries [EPREFIX/lib]
1478   --includedir=DIR       C header files [PREFIX/include]
1479   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1480   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1481   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1482   --infodir=DIR          info documentation [DATAROOTDIR/info]
1483   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1484   --mandir=DIR           man documentation [DATAROOTDIR/man]
1485   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1486   --htmldir=DIR          html documentation [DOCDIR]
1487   --dvidir=DIR           dvi documentation [DOCDIR]
1488   --pdfdir=DIR           pdf documentation [DOCDIR]
1489   --psdir=DIR            ps documentation [DOCDIR]
1490 _ACEOF
1491
1492   cat <<\_ACEOF
1493
1494 Program names:
1495   --program-prefix=PREFIX            prepend PREFIX to installed program names
1496   --program-suffix=SUFFIX            append SUFFIX to installed program names
1497   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1498
1499 System types:
1500   --build=BUILD     configure for building on BUILD [guessed]
1501   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1502   --target=TARGET   configure for building compilers for TARGET [HOST]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507   case $ac_init_help in
1508      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1509    esac
1510   cat <<\_ACEOF
1511
1512 Optional Features:
1513   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1514   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1515   --enable-shared[=PKGS]  build shared libraries [default=yes]
1516   --enable-static[=PKGS]  build static libraries [default=yes]
1517   --enable-fast-install[=PKGS]
1518                           optimize for fast installation [default=yes]
1519   --disable-dependency-tracking  speeds up one-time build
1520   --enable-dependency-tracking   do not reject slow dependency extractors
1521   --disable-libtool-lock  avoid locking (might break parallel builds)
1522   --enable-simix          Use the new SimIX module (default=no)
1523   --enable-maintainer-mode  enable make rules and dependencies not useful
1524                           (and sometimes confusing) to the casual installer
1525   --enable-compile-warnings
1526                           use compiler warnings (default=no, unless in
1527                           maintainer mode)
1528   --disable-compile-optimizations
1529                           use compiler optimizations (default=yes, unless if
1530                           CFLAGS is explicitly set)
1531
1532 Optional Packages:
1533   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536   --with-pic              try to use only PIC/non-PIC objects [default=use
1537                           both]
1538   --with-tags[=TAGS]      include additional configurations [automatic]
1539   --with-pthread   Use pthread instead of ucontext.
1540   --with-pthreads   Use pthread instead of ucontext.
1541   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1542   --with-gtnets           Path to GTNetS installation (default to empty, ie
1543                           not using GTNetS)
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   CXX         C++ compiler command
1555   CXXFLAGS    C++ compiler flags
1556   CXXCPP      C++ preprocessor
1557   F77         Fortran 77 compiler command
1558   FFLAGS      Fortran 77 compiler flags
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" || continue
1572     ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1578   # A ".." for each directory in $ac_dir_suffix.
1579   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1580   case $ac_top_builddir_sub in
1581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583   esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591   .)  # We are building in place.
1592     ac_srcdir=.
1593     ac_top_srcdir=$ac_top_builddir_sub
1594     ac_abs_top_srcdir=$ac_pwd ;;
1595   [\\/]* | ?:[\\/]* )  # Absolute name.
1596     ac_srcdir=$srcdir$ac_dir_suffix;
1597     ac_top_srcdir=$srcdir
1598     ac_abs_top_srcdir=$srcdir ;;
1599   *) # Relative name.
1600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601     ac_top_srcdir=$ac_top_build_prefix$srcdir
1602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606     cd "$ac_dir" || { ac_status=$?; continue; }
1607     # Check for guested configure.
1608     if test -f "$ac_srcdir/configure.gnu"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611     elif test -f "$ac_srcdir/configure"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure" --help=recursive
1614     else
1615       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616     fi || ac_status=$?
1617     cd "$ac_pwd" || { ac_status=$?; break; }
1618   done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623   cat <<\_ACEOF
1624 simgrid configure 3.3-cvs
1625 generated by GNU Autoconf 2.61
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632   exit
1633 fi
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1637
1638 It was created by simgrid $as_me 3.3-cvs, which was
1639 generated by GNU Autoconf 2.61.  Invocation command line was
1640
1641   $ $0 $@
1642
1643 _ACEOF
1644 exec 5>>config.log
1645 {
1646 cat <<_ASUNAME
1647 ## --------- ##
1648 ## Platform. ##
1649 ## --------- ##
1650
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1659
1660 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1661 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1664 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1665 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1666 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1667
1668 _ASUNAME
1669
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   echo "PATH: $as_dir"
1676 done
1677 IFS=$as_save_IFS
1678
1679 } >&5
1680
1681 cat >&5 <<_ACEOF
1682
1683
1684 ## ----------- ##
1685 ## Core tests. ##
1686 ## ----------- ##
1687
1688 _ACEOF
1689
1690
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1696 ac_configure_args=
1697 ac_configure_args0=
1698 ac_configure_args1=
1699 ac_must_keep_next=false
1700 for ac_pass in 1 2
1701 do
1702   for ac_arg
1703   do
1704     case $ac_arg in
1705     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707     | -silent | --silent | --silen | --sile | --sil)
1708       continue ;;
1709     *\'*)
1710       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711     esac
1712     case $ac_pass in
1713     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714     2)
1715       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716       if test $ac_must_keep_next = true; then
1717         ac_must_keep_next=false # Got value, back to normal.
1718       else
1719         case $ac_arg in
1720           *=* | --config-cache | -C | -disable-* | --disable-* \
1721           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723           | -with-* | --with-* | -without-* | --without-* | --x)
1724             case "$ac_configure_args0 " in
1725               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726             esac
1727             ;;
1728           -* ) ac_must_keep_next=true ;;
1729         esac
1730       fi
1731       ac_configure_args="$ac_configure_args '$ac_arg'"
1732       ;;
1733     esac
1734   done
1735 done
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log.  We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745   # Save into config.log some information that might help in debugging.
1746   {
1747     echo
1748
1749     cat <<\_ASBOX
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1753 _ASBOX
1754     echo
1755     # The following way of writing the cache mishandles newlines in values,
1756 (
1757   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758     eval ac_val=\$$ac_var
1759     case $ac_val in #(
1760     *${as_nl}*)
1761       case $ac_var in #(
1762       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764       esac
1765       case $ac_var in #(
1766       _ | IFS | as_nl) ;; #(
1767       *) $as_unset $ac_var ;;
1768       esac ;;
1769     esac
1770   done
1771   (set) 2>&1 |
1772     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773     *${as_nl}ac_space=\ *)
1774       sed -n \
1775         "s/'\''/'\''\\\\'\'''\''/g;
1776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777       ;; #(
1778     *)
1779       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780       ;;
1781     esac |
1782     sort
1783 )
1784     echo
1785
1786     cat <<\_ASBOX
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1790 _ASBOX
1791     echo
1792     for ac_var in $ac_subst_vars
1793     do
1794       eval ac_val=\$$ac_var
1795       case $ac_val in
1796       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797       esac
1798       echo "$ac_var='\''$ac_val'\''"
1799     done | sort
1800     echo
1801
1802     if test -n "$ac_subst_files"; then
1803       cat <<\_ASBOX
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1807 _ASBOX
1808       echo
1809       for ac_var in $ac_subst_files
1810       do
1811         eval ac_val=\$$ac_var
1812         case $ac_val in
1813         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814         esac
1815         echo "$ac_var='\''$ac_val'\''"
1816       done | sort
1817       echo
1818     fi
1819
1820     if test -s confdefs.h; then
1821       cat <<\_ASBOX
1822 ## ----------- ##
1823 ## confdefs.h. ##
1824 ## ----------- ##
1825 _ASBOX
1826       echo
1827       cat confdefs.h
1828       echo
1829     fi
1830     test "$ac_signal" != 0 &&
1831       echo "$as_me: caught signal $ac_signal"
1832     echo "$as_me: exit $exit_status"
1833   } >&5
1834   rm -f core *.core core.conftest.* &&
1835     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836     exit $exit_status
1837 ' 0
1838 for ac_signal in 1 2 13 15; do
1839   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 done
1841 ac_signal=0
1842
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1845
1846 # Predefined preprocessor variables.
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 _ACEOF
1871
1872
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer explicitly selected file to automatically selected ones.
1875 if test -n "$CONFIG_SITE"; then
1876   set x "$CONFIG_SITE"
1877 elif test "x$prefix" != xNONE; then
1878   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 else
1880   set x "$ac_default_prefix/share/config.site" \
1881         "$ac_default_prefix/etc/config.site"
1882 fi
1883 shift
1884 for ac_site_file
1885 do
1886   if test -r "$ac_site_file"; then
1887     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 echo "$as_me: loading site script $ac_site_file" >&6;}
1889     sed 's/^/| /' "$ac_site_file" >&5
1890     . "$ac_site_file"
1891   fi
1892 done
1893
1894 if test -r "$cache_file"; then
1895   # Some versions of bash will fail to source /dev/null (special
1896   # files actually), so we avoid doing that.
1897   if test -f "$cache_file"; then
1898     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 echo "$as_me: loading cache $cache_file" >&6;}
1900     case $cache_file in
1901       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902       *)                      . "./$cache_file";;
1903     esac
1904   fi
1905 else
1906   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 echo "$as_me: creating cache $cache_file" >&6;}
1908   >$cache_file
1909 fi
1910
1911 # Check that the precious variables saved in the cache have kept the same
1912 # value.
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916   eval ac_new_set=\$ac_env_${ac_var}_set
1917   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918   eval ac_new_val=\$ac_env_${ac_var}_value
1919   case $ac_old_set,$ac_new_set in
1920     set,)
1921       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923       ac_cache_corrupted=: ;;
1924     ,set)
1925       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927       ac_cache_corrupted=: ;;
1928     ,);;
1929     *)
1930       if test "x$ac_old_val" != "x$ac_new_val"; then
1931         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1934 echo "$as_me:   former value:  $ac_old_val" >&2;}
1935         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1936 echo "$as_me:   current value: $ac_new_val" >&2;}
1937         ac_cache_corrupted=:
1938       fi;;
1939   esac
1940   # Pass precious variables to config.status.
1941   if test "$ac_new_set" = set; then
1942     case $ac_new_val in
1943     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944     *) ac_arg=$ac_var=$ac_new_val ;;
1945     esac
1946     case " $ac_configure_args " in
1947       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1948       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1949     esac
1950   fi
1951 done
1952 if $ac_cache_corrupted; then
1953   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957    { (exit 1); exit 1; }; }
1958 fi
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
1990
1991
1992 ac_config_headers="$ac_config_headers src/gras_config.h"
1993
1994 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1995
1996
1997 ac_aux_dir=
1998 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1999   if test -f "$ac_dir/install-sh"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/install-sh -c"
2002     break
2003   elif test -f "$ac_dir/install.sh"; then
2004     ac_aux_dir=$ac_dir
2005     ac_install_sh="$ac_aux_dir/install.sh -c"
2006     break
2007   elif test -f "$ac_dir/shtool"; then
2008     ac_aux_dir=$ac_dir
2009     ac_install_sh="$ac_aux_dir/shtool install -c"
2010     break
2011   fi
2012 done
2013 if test -z "$ac_aux_dir"; then
2014   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2015 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2026
2027
2028 # Make sure we can run config.sub.
2029 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2030   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2031 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2032    { (exit 1); exit 1; }; }
2033
2034 { echo "$as_me:$LINENO: checking build system type" >&5
2035 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2036 if test "${ac_cv_build+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   ac_build_alias=$build_alias
2040 test "x$ac_build_alias" = x &&
2041   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2042 test "x$ac_build_alias" = x &&
2043   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2045    { (exit 1); exit 1; }; }
2046 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2047   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 fi
2052 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2053 echo "${ECHO_T}$ac_cv_build" >&6; }
2054 case $ac_cv_build in
2055 *-*-*) ;;
2056 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2057 echo "$as_me: error: invalid value of canonical build" >&2;}
2058    { (exit 1); exit 1; }; };;
2059 esac
2060 build=$ac_cv_build
2061 ac_save_IFS=$IFS; IFS='-'
2062 set x $ac_cv_build
2063 shift
2064 build_cpu=$1
2065 build_vendor=$2
2066 shift; shift
2067 # Remember, the first character of IFS is used to create $*,
2068 # except with old shells:
2069 build_os=$*
2070 IFS=$ac_save_IFS
2071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2072
2073
2074 { echo "$as_me:$LINENO: checking host system type" >&5
2075 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2076 if test "${ac_cv_host+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test "x$host_alias" = x; then
2080   ac_cv_host=$ac_cv_build
2081 else
2082   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2083     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087
2088 fi
2089 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2090 echo "${ECHO_T}$ac_cv_host" >&6; }
2091 case $ac_cv_host in
2092 *-*-*) ;;
2093 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2094 echo "$as_me: error: invalid value of canonical host" >&2;}
2095    { (exit 1); exit 1; }; };;
2096 esac
2097 host=$ac_cv_host
2098 ac_save_IFS=$IFS; IFS='-'
2099 set x $ac_cv_host
2100 shift
2101 host_cpu=$1
2102 host_vendor=$2
2103 shift; shift
2104 # Remember, the first character of IFS is used to create $*,
2105 # except with old shells:
2106 host_os=$*
2107 IFS=$ac_save_IFS
2108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2109
2110
2111 { echo "$as_me:$LINENO: checking target system type" >&5
2112 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_target+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   if test "x$target_alias" = x; then
2117   ac_cv_target=$ac_cv_host
2118 else
2119   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2120     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2121 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2122    { (exit 1); exit 1; }; }
2123 fi
2124
2125 fi
2126 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2127 echo "${ECHO_T}$ac_cv_target" >&6; }
2128 case $ac_cv_target in
2129 *-*-*) ;;
2130 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2131 echo "$as_me: error: invalid value of canonical target" >&2;}
2132    { (exit 1); exit 1; }; };;
2133 esac
2134 target=$ac_cv_target
2135 ac_save_IFS=$IFS; IFS='-'
2136 set x $ac_cv_target
2137 shift
2138 target_cpu=$1
2139 target_vendor=$2
2140 shift; shift
2141 # Remember, the first character of IFS is used to create $*,
2142 # except with old shells:
2143 target_os=$*
2144 IFS=$ac_save_IFS
2145 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2146
2147
2148 # The aliases save the names the user supplied, while $host etc.
2149 # will get canonicalized.
2150 test -n "$target_alias" &&
2151   test "$program_prefix$program_suffix$program_transform_name" = \
2152     NONENONEs,x,x, &&
2153   program_prefix=${target_alias}-
2154 ac_ext=c
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159
2160
2161 am__api_version="1.9"
2162 # Find a good install program.  We prefer a C program (faster),
2163 # so one script is as good as another.  But avoid the broken or
2164 # incompatible versions:
2165 # SysV /etc/install, /usr/sbin/install
2166 # SunOS /usr/etc/install
2167 # IRIX /sbin/install
2168 # AIX /bin/install
2169 # AmigaOS /C/install, which installs bootblocks on floppy discs
2170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2173 # OS/2's system install, which has a completely different semantic
2174 # ./install, which can be erroneously created by make from ./install.sh.
2175 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2177 if test -z "$INSTALL"; then
2178 if test "${ac_cv_path_install+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   # Account for people who put trailing slashes in PATH elements.
2187 case $as_dir/ in
2188   ./ | .// | /cC/* | \
2189   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2190   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2191   /usr/ucb/* ) ;;
2192   *)
2193     # OSF1 and SCO ODT 3.0 have their own names for install.
2194     # Don't use installbsd from OSF since it installs stuff as root
2195     # by default.
2196     for ac_prog in ginstall scoinst install; do
2197       for ac_exec_ext in '' $ac_executable_extensions; do
2198         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2199           if test $ac_prog = install &&
2200             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201             # AIX install.  It has an incompatible calling convention.
2202             :
2203           elif test $ac_prog = install &&
2204             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205             # program-specific install script used by HP pwplus--don't use.
2206             :
2207           else
2208             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2209             break 3
2210           fi
2211         fi
2212       done
2213     done
2214     ;;
2215 esac
2216 done
2217 IFS=$as_save_IFS
2218
2219
2220 fi
2221   if test "${ac_cv_path_install+set}" = set; then
2222     INSTALL=$ac_cv_path_install
2223   else
2224     # As a last resort, use the slow shell script.  Don't cache a
2225     # value for INSTALL within a source directory, because that will
2226     # break other packages using the cache if that directory is
2227     # removed, or if the value is a relative name.
2228     INSTALL=$ac_install_sh
2229   fi
2230 fi
2231 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2232 echo "${ECHO_T}$INSTALL" >&6; }
2233
2234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2235 # It thinks the first close brace ends the variable substitution.
2236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2237
2238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2239
2240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2241
2242 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2243 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2244 # Just in case
2245 sleep 1
2246 echo timestamp > conftest.file
2247 # Do `set' in a subshell so we don't clobber the current shell's
2248 # arguments.  Must try -L first in case configure is actually a
2249 # symlink; some systems play weird games with the mod time of symlinks
2250 # (eg FreeBSD returns the mod time of the symlink's containing
2251 # directory).
2252 if (
2253    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2254    if test "$*" = "X"; then
2255       # -L didn't work.
2256       set X `ls -t $srcdir/configure conftest.file`
2257    fi
2258    rm -f conftest.file
2259    if test "$*" != "X $srcdir/configure conftest.file" \
2260       && test "$*" != "X conftest.file $srcdir/configure"; then
2261
2262       # If neither matched, then we have a broken ls.  This can happen
2263       # if, for instance, CONFIG_SHELL is bash and it inherits a
2264       # broken ls alias from the environment.  This has actually
2265       # happened.  Such a system could not be considered "sane".
2266       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2267 alias in your environment" >&5
2268 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2269 alias in your environment" >&2;}
2270    { (exit 1); exit 1; }; }
2271    fi
2272
2273    test "$2" = conftest.file
2274    )
2275 then
2276    # Ok.
2277    :
2278 else
2279    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2280 Check your system clock" >&5
2281 echo "$as_me: error: newly created file is older than distributed files!
2282 Check your system clock" >&2;}
2283    { (exit 1); exit 1; }; }
2284 fi
2285 { echo "$as_me:$LINENO: result: yes" >&5
2286 echo "${ECHO_T}yes" >&6; }
2287 test "$program_prefix" != NONE &&
2288   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289 # Use a double $ so make ignores it.
2290 test "$program_suffix" != NONE &&
2291   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292 # Double any \ or $.  echo might interpret backslashes.
2293 # By default was `s,x,x', remove it if useless.
2294 cat <<\_ACEOF >conftest.sed
2295 s/[\\$]/&&/g;s/;s,x,x,$//
2296 _ACEOF
2297 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2298 rm -f conftest.sed
2299
2300 # expand $ac_aux_dir to an absolute path
2301 am_aux_dir=`cd $ac_aux_dir && pwd`
2302
2303 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2304 # Use eval to expand $SHELL
2305 if eval "$MISSING --run true"; then
2306   am_missing_run="$MISSING --run "
2307 else
2308   am_missing_run=
2309   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2310 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2311 fi
2312
2313 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2314   # We used to keeping the `.' as first argument, in order to
2315   # allow $(mkdir_p) to be used without argument.  As in
2316   #   $(mkdir_p) $(somedir)
2317   # where $(somedir) is conditionally defined.  However this is wrong
2318   # for two reasons:
2319   #  1. if the package is installed by a user who cannot write `.'
2320   #     make install will fail,
2321   #  2. the above comment should most certainly read
2322   #     $(mkdir_p) $(DESTDIR)$(somedir)
2323   #     so it does not work when $(somedir) is undefined and
2324   #     $(DESTDIR) is not.
2325   #  To support the latter case, we have to write
2326   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2327   #  so the `.' trick is pointless.
2328   mkdir_p='mkdir -p --'
2329 else
2330   # On NextStep and OpenStep, the `mkdir' command does not
2331   # recognize any option.  It will interpret all options as
2332   # directories to create, and then abort because `.' already
2333   # exists.
2334   for d in ./-p ./--version;
2335   do
2336     test -d $d && rmdir $d
2337   done
2338   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2339   if test -f "$ac_aux_dir/mkinstalldirs"; then
2340     mkdir_p='$(mkinstalldirs)'
2341   else
2342     mkdir_p='$(install_sh) -d'
2343   fi
2344 fi
2345
2346 for ac_prog in gawk mawk nawk awk
2347 do
2348   # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_AWK+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$AWK"; then
2356   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_AWK="$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 AWK=$ac_cv_prog_AWK
2376 if test -n "$AWK"; then
2377   { echo "$as_me:$LINENO: result: $AWK" >&5
2378 echo "${ECHO_T}$AWK" >&6; }
2379 else
2380   { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 fi
2383
2384
2385   test -n "$AWK" && break
2386 done
2387
2388 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2389 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2390 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2391 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   cat >conftest.make <<\_ACEOF
2395 SHELL = /bin/sh
2396 all:
2397         @echo '@@@%%%=$(MAKE)=@@@%%%'
2398 _ACEOF
2399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2401   *@@@%%%=?*=@@@%%%*)
2402     eval ac_cv_prog_make_${ac_make}_set=yes;;
2403   *)
2404     eval ac_cv_prog_make_${ac_make}_set=no;;
2405 esac
2406 rm -f conftest.make
2407 fi
2408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2409   { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411   SET_MAKE=
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415   SET_MAKE="MAKE=${MAKE-make}"
2416 fi
2417
2418 rm -rf .tst 2>/dev/null
2419 mkdir .tst 2>/dev/null
2420 if test -d .tst; then
2421   am__leading_dot=.
2422 else
2423   am__leading_dot=_
2424 fi
2425 rmdir .tst 2>/dev/null
2426
2427 # test to see if srcdir already configured
2428 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2429    test -f $srcdir/config.status; then
2430   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2431 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2432    { (exit 1); exit 1; }; }
2433 fi
2434
2435 # test whether we have cygpath
2436 if test -z "$CYGPATH_W"; then
2437   if (cygpath --version) >/dev/null 2>/dev/null; then
2438     CYGPATH_W='cygpath -w'
2439   else
2440     CYGPATH_W=echo
2441   fi
2442 fi
2443
2444
2445 # Define the identity of the package.
2446  PACKAGE='simgrid'
2447  VERSION='3.3-cvs'
2448
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE "$PACKAGE"
2452 _ACEOF
2453
2454
2455 cat >>confdefs.h <<_ACEOF
2456 #define VERSION "$VERSION"
2457 _ACEOF
2458
2459 # Some tools Automake needs.
2460
2461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2462
2463
2464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2465
2466
2467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2468
2469
2470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2471
2472
2473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2474
2475 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2476
2477 # Installed binaries are usually stripped using `strip' when the user
2478 # run `make install-strip'.  However `strip' might not be the right
2479 # tool to use in cross-compilation environments, therefore Automake
2480 # will honor the `STRIP' environment variable to overrule this program.
2481 if test "$cross_compiling" != no; then
2482   if test -n "$ac_tool_prefix"; then
2483   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_STRIP+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$STRIP"; then
2491   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 STRIP=$ac_cv_prog_STRIP
2511 if test -n "$STRIP"; then
2512   { echo "$as_me:$LINENO: result: $STRIP" >&5
2513 echo "${ECHO_T}$STRIP" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519
2520 fi
2521 if test -z "$ac_cv_prog_STRIP"; then
2522   ac_ct_STRIP=$STRIP
2523   # Extract the first word of "strip", so it can be a program name with args.
2524 set dummy strip; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$ac_ct_STRIP"; then
2531   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_ac_ct_STRIP="strip"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2551 if test -n "$ac_ct_STRIP"; then
2552   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2553 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559   if test "x$ac_ct_STRIP" = x; then
2560     STRIP=":"
2561   else
2562     case $cross_compiling:$ac_tool_warned in
2563 yes:)
2564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet.  If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&5
2567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet.  If you think this
2569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2570 ac_tool_warned=yes ;;
2571 esac
2572     STRIP=$ac_ct_STRIP
2573   fi
2574 else
2575   STRIP="$ac_cv_prog_STRIP"
2576 fi
2577
2578 fi
2579 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2580
2581 # We need awk for the "check" target.  The system "awk" is bad on
2582 # some platforms.
2583 # Always define AMTAR for backward compatibility.
2584
2585 AMTAR=${AMTAR-"${am_missing_run}tar"}
2586
2587 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2588
2589
2590
2591
2592
2593
2594 ACLOCAL="$ACLOCAL -I acmacro"
2595
2596
2597 # Check whether --enable-shared was given.
2598 if test "${enable_shared+set}" = set; then
2599   enableval=$enable_shared; p=${PACKAGE-default}
2600     case $enableval in
2601     yes) enable_shared=yes ;;
2602     no) enable_shared=no ;;
2603     *)
2604       enable_shared=no
2605       # Look at the argument we got.  We use all the common list separators.
2606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2607       for pkg in $enableval; do
2608         IFS="$lt_save_ifs"
2609         if test "X$pkg" = "X$p"; then
2610           enable_shared=yes
2611         fi
2612       done
2613       IFS="$lt_save_ifs"
2614       ;;
2615     esac
2616 else
2617   enable_shared=yes
2618 fi
2619
2620
2621 # Check whether --enable-static was given.
2622 if test "${enable_static+set}" = set; then
2623   enableval=$enable_static; p=${PACKAGE-default}
2624     case $enableval in
2625     yes) enable_static=yes ;;
2626     no) enable_static=no ;;
2627     *)
2628      enable_static=no
2629       # Look at the argument we got.  We use all the common list separators.
2630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2631       for pkg in $enableval; do
2632         IFS="$lt_save_ifs"
2633         if test "X$pkg" = "X$p"; then
2634           enable_static=yes
2635         fi
2636       done
2637       IFS="$lt_save_ifs"
2638       ;;
2639     esac
2640 else
2641   enable_static=yes
2642 fi
2643
2644
2645 # Check whether --enable-fast-install was given.
2646 if test "${enable_fast_install+set}" = set; then
2647   enableval=$enable_fast_install; p=${PACKAGE-default}
2648     case $enableval in
2649     yes) enable_fast_install=yes ;;
2650     no) enable_fast_install=no ;;
2651     *)
2652       enable_fast_install=no
2653       # Look at the argument we got.  We use all the common list separators.
2654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655       for pkg in $enableval; do
2656         IFS="$lt_save_ifs"
2657         if test "X$pkg" = "X$p"; then
2658           enable_fast_install=yes
2659         fi
2660       done
2661       IFS="$lt_save_ifs"
2662       ;;
2663     esac
2664 else
2665   enable_fast_install=yes
2666 fi
2667
2668
2669 DEPDIR="${am__leading_dot}deps"
2670
2671 ac_config_commands="$ac_config_commands depfiles"
2672
2673
2674 am_make=${MAKE-make}
2675 cat > confinc << 'END'
2676 am__doit:
2677         @echo done
2678 .PHONY: am__doit
2679 END
2680 # If we don't find an include directive, just comment out the code.
2681 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2682 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2683 am__include="#"
2684 am__quote=
2685 _am_result=none
2686 # First try GNU make style include.
2687 echo "include confinc" > confmf
2688 # We grep out `Entering directory' and `Leaving directory'
2689 # messages which can occur if `w' ends up in MAKEFLAGS.
2690 # In particular we don't look at `^make:' because GNU make might
2691 # be invoked under some other name (usually "gmake"), in which
2692 # case it prints its new name instead of `make'.
2693 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694    am__include=include
2695    am__quote=
2696    _am_result=GNU
2697 fi
2698 # Now try BSD make style include.
2699 if test "$am__include" = "#"; then
2700    echo '.include "confinc"' > confmf
2701    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2702       am__include=.include
2703       am__quote="\""
2704       _am_result=BSD
2705    fi
2706 fi
2707
2708
2709 { echo "$as_me:$LINENO: result: $_am_result" >&5
2710 echo "${ECHO_T}$_am_result" >&6; }
2711 rm -f confinc confmf
2712
2713 # Check whether --enable-dependency-tracking was given.
2714 if test "${enable_dependency_tracking+set}" = set; then
2715   enableval=$enable_dependency_tracking;
2716 fi
2717
2718 if test "x$enable_dependency_tracking" != xno; then
2719   am_depcomp="$ac_aux_dir/depcomp"
2720   AMDEPBACKSLASH='\'
2721 fi
2722
2723
2724 if test "x$enable_dependency_tracking" != xno; then
2725   AMDEP_TRUE=
2726   AMDEP_FALSE='#'
2727 else
2728   AMDEP_TRUE='#'
2729   AMDEP_FALSE=
2730 fi
2731
2732
2733
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   if test -n "$CC"; then
2748   ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769   { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2771 else
2772   { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2774 fi
2775
2776
2777 fi
2778 if test -z "$ac_cv_prog_CC"; then
2779   ac_ct_CC=$CC
2780   # Extract the first word of "gcc", so it can be a program name with args.
2781 set dummy gcc; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   if test -n "$ac_ct_CC"; then
2788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795   for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_ac_ct_CC="gcc"
2798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2810 echo "${ECHO_T}$ac_ct_CC" >&6; }
2811 else
2812   { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2814 fi
2815
2816   if test "x$ac_ct_CC" = x; then
2817     CC=""
2818   else
2819     case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet.  If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&5
2824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet.  If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829     CC=$ac_ct_CC
2830   fi
2831 else
2832   CC="$ac_cv_prog_CC"
2833 fi
2834
2835 if test -z "$CC"; then
2836           if test -n "$ac_tool_prefix"; then
2837     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$CC"; then
2845   ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854     ac_cv_prog_CC="${ac_tool_prefix}cc"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866   { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2868 else
2869   { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2871 fi
2872
2873
2874   fi
2875 fi
2876 if test -z "$CC"; then
2877   # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -n "$CC"; then
2885   ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887   ac_prog_rejected=no
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896        ac_prog_rejected=yes
2897        continue
2898      fi
2899     ac_cv_prog_CC="cc"
2900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 if test $ac_prog_rejected = yes; then
2908   # We found a bogon in the path, so make sure we never use it.
2909   set dummy $ac_cv_prog_CC
2910   shift
2911   if test $# != 0; then
2912     # We chose a different compiler from the bogus one.
2913     # However, it has the same basename, so the bogon will be chosen
2914     # first if we set CC to just the basename; use the full file name.
2915     shift
2916     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2917   fi
2918 fi
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923   { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2925 else
2926   { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2928 fi
2929
2930
2931 fi
2932 if test -z "$CC"; then
2933   if test -n "$ac_tool_prefix"; then
2934   for ac_prog in cl.exe
2935   do
2936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   if test -n "$CC"; then
2944   ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951   for ac_exec_ext in '' $ac_executable_extensions; do
2952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965   { echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6; }
2967 else
2968   { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2970 fi
2971
2972
2973     test -n "$CC" && break
2974   done
2975 fi
2976 if test -z "$CC"; then
2977   ac_ct_CC=$CC
2978   for ac_prog in cl.exe
2979 do
2980   # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if test -n "$ac_ct_CC"; then
2988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995   for ac_exec_ext in '' $ac_executable_extensions; do
2996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997     ac_cv_prog_ac_ct_CC="$ac_prog"
2998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 else
3012   { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3014 fi
3015
3016
3017   test -n "$ac_ct_CC" && break
3018 done
3019
3020   if test "x$ac_ct_CC" = x; then
3021     CC=""
3022   else
3023     case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet.  If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&5
3028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet.  If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033     CC=$ac_ct_CC
3034   fi
3035 fi
3036
3037 fi
3038
3039
3040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&2;}
3044    { (exit 1); exit 1; }; }
3045
3046 # Provide some information about the compiler.
3047 echo "$as_me:$LINENO: checking for C compiler version" >&5
3048 ac_compiler=`set X $ac_compile; echo $2`
3049 { (ac_try="$ac_compiler --version >&5"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compiler --version >&5") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }
3059 { (ac_try="$ac_compiler -v >&5"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compiler -v >&5") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }
3069 { (ac_try="$ac_compiler -V >&5"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_compiler -V >&5") 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }
3079
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3099 # of exeext.
3100 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3102 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 #
3104 # List of possible output files, starting from the most likely.
3105 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3106 # only as a last resort.  b.out is created by i960 compilers.
3107 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3108 #
3109 # The IRIX 6 linker writes into existing files which may not be
3110 # executable, retaining their permissions.  Remove them first so a
3111 # subsequent execution test works.
3112 ac_rmfiles=
3113 for ac_file in $ac_files
3114 do
3115   case $ac_file in
3116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118   esac
3119 done
3120 rm -f $ac_rmfiles
3121
3122 if { (ac_try="$ac_link_default"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_link_default") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; then
3132   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139   test -f "$ac_file" || continue
3140   case $ac_file in
3141     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3142         ;;
3143     [ab].out )
3144         # We found the default executable, but exeext='' is most
3145         # certainly right.
3146         break;;
3147     *.* )
3148         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149         then :; else
3150            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151         fi
3152         # We set ac_cv_exeext here because the later test for it is not
3153         # safe: cross compilers may not add the suffix if given an `-o'
3154         # argument, so we may need to know it at that point already.
3155         # Even if this section looks crufty: it has the advantage of
3156         # actually working.
3157         break;;
3158     * )
3159         break;;
3160   esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else
3165   ac_file=''
3166 fi
3167
3168 { echo "$as_me:$LINENO: result: $ac_file" >&5
3169 echo "${ECHO_T}$ac_file" >&6; }
3170 if test -z "$ac_file"; then
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&2;}
3178    { (exit 77); exit 77; }; }
3179 fi
3180
3181 ac_exeext=$ac_cv_exeext
3182
3183 # Check that the compiler produces executables we can run.  If not, either
3184 # the compiler is broken, or we cross compile.
3185 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3188 # If not cross compiling, check that we can run a simple program.
3189 if test "$cross_compiling" != yes; then
3190   if { ac_try='./$ac_file'
3191   { (case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_try") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; }; then
3200     cross_compiling=no
3201   else
3202     if test "$cross_compiling" = maybe; then
3203         cross_compiling=yes
3204     else
3205         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206 If you meant to cross compile, use \`--host'.
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details." >&2;}
3211    { (exit 1); exit 1; }; }
3212     fi
3213   fi
3214 fi
3215 { echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6; }
3217
3218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 # Check that the compiler produces executables we can run.  If not, either
3221 # the compiler is broken, or we cross compile.
3222 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3224 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225 echo "${ECHO_T}$cross_compiling" >&6; }
3226
3227 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3229 if { (ac_try="$ac_link"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_link") 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; then
3239   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3240 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3241 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 # `rm'.
3243 for ac_file in conftest.exe conftest conftest.*; do
3244   test -f "$ac_file" || continue
3245   case $ac_file in
3246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3247     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248           break;;
3249     * ) break;;
3250   esac
3251 done
3252 else
3253   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259
3260 rm -f conftest$ac_cv_exeext
3261 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3263
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3266 ac_exeext=$EXEEXT
3267 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3269 if test "${ac_cv_objext+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279 int
3280 main ()
3281 {
3282
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_compile") 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; then
3298   for ac_file in conftest.o conftest.obj conftest.*; do
3299   test -f "$ac_file" || continue;
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3302     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303        break;;
3304   esac
3305 done
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 fi
3319 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3320 echo "${ECHO_T}$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3322 ac_objext=$OBJEXT
3323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338 #ifndef __GNUC__
3339        choke me
3340 #endif
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_compile") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } && {
3360          test -z "$ac_c_werror_flag" ||
3361          test ! -s conftest.err
3362        } && test -s conftest.$ac_objext; then
3363   ac_compiler_gnu=yes
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368         ac_compiler_gnu=no
3369 fi
3370
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373
3374 fi
3375 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3377 GCC=`test $ac_compiler_gnu = yes && echo yes`
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_cc_g+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   ac_save_c_werror_flag=$ac_c_werror_flag
3386    ac_c_werror_flag=yes
3387    ac_cv_prog_cc_g=no
3388    CFLAGS="-g"
3389    cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (ac_try="$ac_compile"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_compile") 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } && {
3418          test -z "$ac_c_werror_flag" ||
3419          test ! -s conftest.err
3420        } && test -s conftest.$ac_objext; then
3421   ac_cv_prog_cc_g=yes
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426         CFLAGS=""
3427       cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_compile") 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } && {
3456          test -z "$ac_c_werror_flag" ||
3457          test ! -s conftest.err
3458        } && test -s conftest.$ac_objext; then
3459   :
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464         ac_c_werror_flag=$ac_save_c_werror_flag
3465          CFLAGS="-g"
3466          cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_compile") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } && {
3495          test -z "$ac_c_werror_flag" ||
3496          test ! -s conftest.err
3497        } && test -s conftest.$ac_objext; then
3498   ac_cv_prog_cc_g=yes
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503
3504 fi
3505
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513    ac_c_werror_flag=$ac_save_c_werror_flag
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518   CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520   if test "$GCC" = yes; then
3521     CFLAGS="-g -O2"
3522   else
3523     CFLAGS="-g"
3524   fi
3525 else
3526   if test "$GCC" = yes; then
3527     CFLAGS="-O2"
3528   else
3529     CFLAGS=
3530   fi
3531 fi
3532 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3533 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_c89+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   ac_cv_prog_cc_c89=no
3538 ac_save_CC=$CC
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553      char **p;
3554      int i;
3555 {
3556   return p[i];
3557 }
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3559 {
3560   char *s;
3561   va_list v;
3562   va_start (v,p);
3563   s = g (p, va_arg (v,int));
3564   va_end (v);
3565   return s;
3566 }
3567
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3569    function prototypes and stuff, but not '\xHH' hex character constants.
3570    These don't provoke an error unfortunately, instead are silently treated
3571    as 'x'.  The following induces an error, until -std is added to get
3572    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3573    array size at least.  It's necessary to write '\x00'==0 to get something
3574    that's true only with -std.  */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578    inside strings and character constants.  */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3588 int
3589 main ()
3590 {
3591 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 do
3599   CC="$ac_save_CC $ac_arg"
3600   rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } && {
3614          test -z "$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        } && test -s conftest.$ac_objext; then
3617   ac_cv_prog_cc_c89=$ac_arg
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622
3623 fi
3624
3625 rm -f core conftest.err conftest.$ac_objext
3626   test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3630
3631 fi
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c89" in
3634   x)
3635     { echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6; } ;;
3637   xno)
3638     { echo "$as_me:$LINENO: result: unsupported" >&5
3639 echo "${ECHO_T}unsupported" >&6; } ;;
3640   *)
3641     CC="$CC $ac_cv_prog_cc_c89"
3642     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 esac
3645
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653 depcc="$CC"   am_compiler_list=
3654
3655 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3656 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3661   # We make a subdir and do the tests there.  Otherwise we can end up
3662   # making bogus files that we don't know about and never remove.  For
3663   # instance it was reported that on HP-UX the gcc test will end up
3664   # making a dummy file named `D' -- because `-MD' means `put the output
3665   # in D'.
3666   mkdir conftest.dir
3667   # Copy depcomp to subdir because otherwise we won't find it if we're
3668   # using a relative directory.
3669   cp "$am_depcomp" conftest.dir
3670   cd conftest.dir
3671   # We will build objects and dependencies in a subdirectory because
3672   # it helps to detect inapplicable dependency modes.  For instance
3673   # both Tru64's cc and ICC support -MD to output dependencies as a
3674   # side effect of compilation, but ICC will put the dependencies in
3675   # the current directory while Tru64 will put them in the object
3676   # directory.
3677   mkdir sub
3678
3679   am_cv_CC_dependencies_compiler_type=none
3680   if test "$am_compiler_list" = ""; then
3681      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682   fi
3683   for depmode in $am_compiler_list; do
3684     # Setup a source with many dependencies, because some compilers
3685     # like to wrap large dependency lists on column 80 (with \), and
3686     # we should not choose a depcomp mode which is confused by this.
3687     #
3688     # We need to recreate these files for each test, as the compiler may
3689     # overwrite some of them when testing with obscure command lines.
3690     # This happens at least with the AIX C compiler.
3691     : > sub/conftest.c
3692     for i in 1 2 3 4 5 6; do
3693       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3694       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3695       # Solaris 8's {/usr,}/bin/sh.
3696       touch sub/conftst$i.h
3697     done
3698     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3699
3700     case $depmode in
3701     nosideeffect)
3702       # after this tag, mechanisms are not by side-effect, so they'll
3703       # only be used when explicitly requested
3704       if test "x$enable_dependency_tracking" = xyes; then
3705         continue
3706       else
3707         break
3708       fi
3709       ;;
3710     none) break ;;
3711     esac
3712     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3713     # mode.  It turns out that the SunPro C++ compiler does not properly
3714     # handle `-M -o', and we need to detect this.
3715     if depmode=$depmode \
3716        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3717        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3718        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3719          >/dev/null 2>conftest.err &&
3720        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3721        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3722        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3723       # icc doesn't choke on unknown options, it will just issue warnings
3724       # or remarks (even with -Werror).  So we grep stderr for any message
3725       # that says an option was ignored or not supported.
3726       # When given -MP, icc 7.0 and 7.1 complain thusly:
3727       #   icc: Command line warning: ignoring option '-M'; no argument required
3728       # The diagnosis changed in icc 8.0:
3729       #   icc: Command line remark: option '-MP' not supported
3730       if (grep 'ignoring option' conftest.err ||
3731           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3732         am_cv_CC_dependencies_compiler_type=$depmode
3733         break
3734       fi
3735     fi
3736   done
3737
3738   cd ..
3739   rm -rf conftest.dir
3740 else
3741   am_cv_CC_dependencies_compiler_type=none
3742 fi
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748
3749
3750
3751 if
3752   test "x$enable_dependency_tracking" != xno \
3753   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754   am__fastdepCC_TRUE=
3755   am__fastdepCC_FALSE='#'
3756 else
3757   am__fastdepCC_TRUE='#'
3758   am__fastdepCC_FALSE=
3759 fi
3760
3761
3762 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3764 if test "${lt_cv_path_SED+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   # Loop through the user's path and test for sed and gsed.
3768 # Then use that list of sed's as ones to test for truncation.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for lt_ac_prog in sed gsed; do
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3777         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3778       fi
3779     done
3780   done
3781 done
3782 lt_ac_max=0
3783 lt_ac_count=0
3784 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3785 # along with /bin/sed that truncates output.
3786 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3787   test ! -f $lt_ac_sed && continue
3788   cat /dev/null > conftest.in
3789   lt_ac_count=0
3790   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3791   # Check for GNU sed and select it if it is found.
3792   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3793     lt_cv_path_SED=$lt_ac_sed
3794     break
3795   fi
3796   while true; do
3797     cat conftest.in conftest.in >conftest.tmp
3798     mv conftest.tmp conftest.in
3799     cp conftest.in conftest.nl
3800     echo >>conftest.nl
3801     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3802     cmp -s conftest.out conftest.nl || break
3803     # 10000 chars as input seems more than enough
3804     test $lt_ac_count -gt 10 && break
3805     lt_ac_count=`expr $lt_ac_count + 1`
3806     if test $lt_ac_count -gt $lt_ac_max; then
3807       lt_ac_max=$lt_ac_count
3808       lt_cv_path_SED=$lt_ac_sed
3809     fi
3810   done
3811 done
3812
3813 fi
3814
3815 SED=$lt_cv_path_SED
3816 { echo "$as_me:$LINENO: result: $SED" >&5
3817 echo "${ECHO_T}$SED" >&6; }
3818
3819 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3820 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3821 if test "${ac_cv_path_GREP+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   # Extract the first word of "grep ggrep" to use in msg output
3825 if test -z "$GREP"; then
3826 set dummy grep ggrep; ac_prog_name=$2
3827 if test "${ac_cv_path_GREP+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   ac_path_GREP_found=false
3831 # Loop through the user's path and test for each of PROGNAME-LIST
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_prog in grep ggrep; do
3838   for ac_exec_ext in '' $ac_executable_extensions; do
3839     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3840     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3841     # Check for GNU ac_path_GREP and select it if it is found.
3842   # Check for GNU $ac_path_GREP
3843 case `"$ac_path_GREP" --version 2>&1` in
3844 *GNU*)
3845   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3846 *)
3847   ac_count=0
3848   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3849   while :
3850   do
3851     cat "conftest.in" "conftest.in" >"conftest.tmp"
3852     mv "conftest.tmp" "conftest.in"
3853     cp "conftest.in" "conftest.nl"
3854     echo 'GREP' >> "conftest.nl"
3855     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3856     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3857     ac_count=`expr $ac_count + 1`
3858     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3859       # Best one so far, save it but keep looking for a better one
3860       ac_cv_path_GREP="$ac_path_GREP"
3861       ac_path_GREP_max=$ac_count
3862     fi
3863     # 10*(2^10) chars as input seems more than enough
3864     test $ac_count -gt 10 && break
3865   done
3866   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3867 esac
3868
3869
3870     $ac_path_GREP_found && break 3
3871   done
3872 done
3873
3874 done
3875 IFS=$as_save_IFS
3876
3877
3878 fi
3879
3880 GREP="$ac_cv_path_GREP"
3881 if test -z "$GREP"; then
3882   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3883 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3884    { (exit 1); exit 1; }; }
3885 fi
3886
3887 else
3888   ac_cv_path_GREP=$GREP
3889 fi
3890
3891
3892 fi
3893 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3894 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3895  GREP="$ac_cv_path_GREP"
3896
3897
3898 { echo "$as_me:$LINENO: checking for egrep" >&5
3899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3900 if test "${ac_cv_path_EGREP+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3904    then ac_cv_path_EGREP="$GREP -E"
3905    else
3906      # Extract the first word of "egrep" to use in msg output
3907 if test -z "$EGREP"; then
3908 set dummy egrep; ac_prog_name=$2
3909 if test "${ac_cv_path_EGREP+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919   for ac_prog in egrep; do
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923     # Check for GNU ac_path_EGREP and select it if it is found.
3924   # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3926 *GNU*)
3927   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928 *)
3929   ac_count=0
3930   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3931   while :
3932   do
3933     cat "conftest.in" "conftest.in" >"conftest.tmp"
3934     mv "conftest.tmp" "conftest.in"
3935     cp "conftest.in" "conftest.nl"
3936     echo 'EGREP' >> "conftest.nl"
3937     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939     ac_count=`expr $ac_count + 1`
3940     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941       # Best one so far, save it but keep looking for a better one
3942       ac_cv_path_EGREP="$ac_path_EGREP"
3943       ac_path_EGREP_max=$ac_count
3944     fi
3945     # 10*(2^10) chars as input seems more than enough
3946     test $ac_count -gt 10 && break
3947   done
3948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951
3952     $ac_path_EGREP_found && break 3
3953   done
3954 done
3955
3956 done
3957 IFS=$as_save_IFS
3958
3959
3960 fi
3961
3962 EGREP="$ac_cv_path_EGREP"
3963 if test -z "$EGREP"; then
3964   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3965 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 else
3970   ac_cv_path_EGREP=$EGREP
3971 fi
3972
3973
3974    fi
3975 fi
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3978  EGREP="$ac_cv_path_EGREP"
3979
3980
3981
3982 # Check whether --with-gnu-ld was given.
3983 if test "${with_gnu_ld+set}" = set; then
3984   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3985 else
3986   with_gnu_ld=no
3987 fi
3988
3989 ac_prog=ld
3990 if test "$GCC" = yes; then
3991   # Check if gcc -print-prog-name=ld gives a path.
3992   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3994   case $host in
3995   *-*-mingw*)
3996     # gcc leaves a trailing carriage return which upsets mingw
3997     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3998   *)
3999     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4000   esac
4001   case $ac_prog in
4002     # Accept absolute paths.
4003     [\\/]* | ?:[\\/]*)
4004       re_direlt='/[^/][^/]*/\.\./'
4005       # Canonicalize the pathname of ld
4006       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4007       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4008         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4009       done
4010       test -z "$LD" && LD="$ac_prog"
4011       ;;
4012   "")
4013     # If it fails, then pretend we aren't using GCC.
4014     ac_prog=ld
4015     ;;
4016   *)
4017     # If it is relative, then search for the first ld in PATH.
4018     with_gnu_ld=unknown
4019     ;;
4020   esac
4021 elif test "$with_gnu_ld" = yes; then
4022   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4024 else
4025   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4027 fi
4028 if test "${lt_cv_path_LD+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if test -z "$LD"; then
4032   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4033   for ac_dir in $PATH; do
4034     IFS="$lt_save_ifs"
4035     test -z "$ac_dir" && ac_dir=.
4036     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4037       lt_cv_path_LD="$ac_dir/$ac_prog"
4038       # Check to see if the program is GNU ld.  I'd rather use --version,
4039       # but apparently some variants of GNU ld only accept -v.
4040       # Break only if it was the GNU/non-GNU ld that we prefer.
4041       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4042       *GNU* | *'with BFD'*)
4043         test "$with_gnu_ld" != no && break
4044         ;;
4045       *)
4046         test "$with_gnu_ld" != yes && break
4047         ;;
4048       esac
4049     fi
4050   done
4051   IFS="$lt_save_ifs"
4052 else
4053   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4054 fi
4055 fi
4056
4057 LD="$lt_cv_path_LD"
4058 if test -n "$LD"; then
4059   { echo "$as_me:$LINENO: result: $LD" >&5
4060 echo "${ECHO_T}$LD" >&6; }
4061 else
4062   { echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6; }
4064 fi
4065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4067    { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4074 case `$LD -v 2>&1 </dev/null` in
4075 *GNU* | *'with BFD'*)
4076   lt_cv_prog_gnu_ld=yes
4077   ;;
4078 *)
4079   lt_cv_prog_gnu_ld=no
4080   ;;
4081 esac
4082 fi
4083 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4085 with_gnu_ld=$lt_cv_prog_gnu_ld
4086
4087
4088 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4089 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4090 if test "${lt_cv_ld_reload_flag+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   lt_cv_ld_reload_flag='-r'
4094 fi
4095 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4096 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4097 reload_flag=$lt_cv_ld_reload_flag
4098 case $reload_flag in
4099 "" | " "*) ;;
4100 *) reload_flag=" $reload_flag" ;;
4101 esac
4102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4103 case $host_os in
4104   darwin*)
4105     if test "$GCC" = yes; then
4106       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4107     else
4108       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4109     fi
4110     ;;
4111 esac
4112
4113 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4114 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4115 if test "${lt_cv_path_NM+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   if test -n "$NM"; then
4119   # Let the user override the test.
4120   lt_cv_path_NM="$NM"
4121 else
4122   lt_nm_to_check="${ac_tool_prefix}nm"
4123   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4124     lt_nm_to_check="$lt_nm_to_check nm"
4125   fi
4126   for lt_tmp_nm in $lt_nm_to_check; do
4127     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4129       IFS="$lt_save_ifs"
4130       test -z "$ac_dir" && ac_dir=.
4131       tmp_nm="$ac_dir/$lt_tmp_nm"
4132       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4133         # Check to see if the nm accepts a BSD-compat flag.
4134         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4135         #   nm: unknown option "B" ignored
4136         # Tru64's nm complains that /dev/null is an invalid object file
4137         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4138         */dev/null* | *'Invalid file or object type'*)
4139           lt_cv_path_NM="$tmp_nm -B"
4140           break
4141           ;;
4142         *)
4143           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4144           */dev/null*)
4145             lt_cv_path_NM="$tmp_nm -p"
4146             break
4147             ;;
4148           *)
4149             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4150             continue # so that we can try to find one that supports BSD flags
4151             ;;
4152           esac
4153           ;;
4154         esac
4155       fi
4156     done
4157     IFS="$lt_save_ifs"
4158   done
4159   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4160 fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4163 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4164 NM="$lt_cv_path_NM"
4165
4166 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4168 LN_S=$as_ln_s
4169 if test "$LN_S" = "ln -s"; then
4170   { echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6; }
4172 else
4173   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174 echo "${ECHO_T}no, using $LN_S" >&6; }
4175 fi
4176
4177 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4178 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4179 if test "${lt_cv_deplibs_check_method+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   lt_cv_file_magic_cmd='$MAGIC_CMD'
4183 lt_cv_file_magic_test_file=
4184 lt_cv_deplibs_check_method='unknown'
4185 # Need to set the preceding variable on all platforms that support
4186 # interlibrary dependencies.
4187 # 'none' -- dependencies not supported.
4188 # `unknown' -- same as none, but documents that we really don't know.
4189 # 'pass_all' -- all dependencies passed with no checks.
4190 # 'test_compile' -- check by making test program.
4191 # 'file_magic [[regex]]' -- check by looking for files in library path
4192 # which responds to the $file_magic_cmd with a given extended regex.
4193 # If you have `file' or equivalent on your system and you're not sure
4194 # whether `pass_all' will *always* work, you probably want this one.
4195
4196 case $host_os in
4197 aix4* | aix5*)
4198   lt_cv_deplibs_check_method=pass_all
4199   ;;
4200
4201 beos*)
4202   lt_cv_deplibs_check_method=pass_all
4203   ;;
4204
4205 bsdi[45]*)
4206   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207   lt_cv_file_magic_cmd='/usr/bin/file -L'
4208   lt_cv_file_magic_test_file=/shlib/libc.so
4209   ;;
4210
4211 cygwin*)
4212   # func_win32_libid is a shell function defined in ltmain.sh
4213   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214   lt_cv_file_magic_cmd='func_win32_libid'
4215   ;;
4216
4217 mingw* | pw32*)
4218   # Base MSYS/MinGW do not provide the 'file' command needed by
4219   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4220   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4221   lt_cv_file_magic_cmd='$OBJDUMP -f'
4222   ;;
4223
4224 darwin* | rhapsody*)
4225   lt_cv_deplibs_check_method=pass_all
4226   ;;
4227
4228 freebsd* | dragonfly*)
4229   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4230     case $host_cpu in
4231     i*86 )
4232       # Not sure whether the presence of OpenBSD here was a mistake.
4233       # Let's accept both of them until this is cleared up.
4234       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4235       lt_cv_file_magic_cmd=/usr/bin/file
4236       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4237       ;;
4238     esac
4239   else
4240     lt_cv_deplibs_check_method=pass_all
4241   fi
4242   ;;
4243
4244 gnu*)
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 hpux10.20* | hpux11*)
4249   lt_cv_file_magic_cmd=/usr/bin/file
4250   case $host_cpu in
4251   ia64*)
4252     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4253     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4254     ;;
4255   hppa*64*)
4256     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]'
4257     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4258     ;;
4259   *)
4260     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4261     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4262     ;;
4263   esac
4264   ;;
4265
4266 interix3*)
4267   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4268   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4269   ;;
4270
4271 irix5* | irix6* | nonstopux*)
4272   case $LD in
4273   *-32|*"-32 ") libmagic=32-bit;;
4274   *-n32|*"-n32 ") libmagic=N32;;
4275   *-64|*"-64 ") libmagic=64-bit;;
4276   *) libmagic=never-match;;
4277   esac
4278   lt_cv_deplibs_check_method=pass_all
4279   ;;
4280
4281 # This must be Linux ELF.
4282 linux* | k*bsd*-gnu)
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 netbsd* | netbsdelf*-gnu)
4287   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4288     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4289   else
4290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4291   fi
4292   ;;
4293
4294 newos6*)
4295   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4296   lt_cv_file_magic_cmd=/usr/bin/file
4297   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4298   ;;
4299
4300 nto-qnx*)
4301   lt_cv_deplibs_check_method=unknown
4302   ;;
4303
4304 openbsd*)
4305   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4306     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4307   else
4308     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4309   fi
4310   ;;
4311
4312 osf3* | osf4* | osf5*)
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 solaris*)
4317   lt_cv_deplibs_check_method=pass_all
4318   ;;
4319
4320 sysv4 | sysv4.3*)
4321   case $host_vendor in
4322   motorola)
4323     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]'
4324     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4325     ;;
4326   ncr)
4327     lt_cv_deplibs_check_method=pass_all
4328     ;;
4329   sequent)
4330     lt_cv_file_magic_cmd='/bin/file'
4331     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4332     ;;
4333   sni)
4334     lt_cv_file_magic_cmd='/bin/file'
4335     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4336     lt_cv_file_magic_test_file=/lib/libc.so
4337     ;;
4338   siemens)
4339     lt_cv_deplibs_check_method=pass_all
4340     ;;
4341   pc)
4342     lt_cv_deplibs_check_method=pass_all
4343     ;;
4344   esac
4345   ;;
4346
4347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4348   lt_cv_deplibs_check_method=pass_all
4349   ;;
4350 esac
4351
4352 fi
4353 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4354 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4355 file_magic_cmd=$lt_cv_file_magic_cmd
4356 deplibs_check_method=$lt_cv_deplibs_check_method
4357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4358
4359
4360
4361
4362 # If no C compiler was specified, use CC.
4363 LTCC=${LTCC-"$CC"}
4364
4365 # If no C compiler flags were specified, use CFLAGS.
4366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4367
4368 # Allow CC to be a program name with arguments.
4369 compiler=$CC
4370
4371
4372 # Check whether --enable-libtool-lock was given.
4373 if test "${enable_libtool_lock+set}" = set; then
4374   enableval=$enable_libtool_lock;
4375 fi
4376
4377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4378
4379 # Some flags need to be propagated to the compiler or linker for good
4380 # libtool support.
4381 case $host in
4382 ia64-*-hpux*)
4383   # Find out which ABI we are using.
4384   echo 'int i;' > conftest.$ac_ext
4385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386   (eval $ac_compile) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; then
4390     case `/usr/bin/file conftest.$ac_objext` in
4391     *ELF-32*)
4392       HPUX_IA64_MODE="32"
4393       ;;
4394     *ELF-64*)
4395       HPUX_IA64_MODE="64"
4396       ;;
4397     esac
4398   fi
4399   rm -rf conftest*
4400   ;;
4401 *-*-irix6*)
4402   # Find out which ABI we are using.
4403   echo '#line 4403 "configure"' > conftest.$ac_ext
4404   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; then
4409    if test "$lt_cv_prog_gnu_ld" = yes; then
4410     case `/usr/bin/file conftest.$ac_objext` in
4411     *32-bit*)
4412       LD="${LD-ld} -melf32bsmip"
4413       ;;
4414     *N32*)
4415       LD="${LD-ld} -melf32bmipn32"
4416       ;;
4417     *64-bit*)
4418       LD="${LD-ld} -melf64bmip"
4419       ;;
4420     esac
4421    else
4422     case `/usr/bin/file conftest.$ac_objext` in
4423     *32-bit*)
4424       LD="${LD-ld} -32"
4425       ;;
4426     *N32*)
4427       LD="${LD-ld} -n32"
4428       ;;
4429     *64-bit*)
4430       LD="${LD-ld} -64"
4431       ;;
4432     esac
4433    fi
4434   fi
4435   rm -rf conftest*
4436   ;;
4437
4438 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4439   # Find out which ABI we are using.
4440   echo 'int i;' > conftest.$ac_ext
4441   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442   (eval $ac_compile) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; then
4446     case `/usr/bin/file conftest.o` in
4447     *32-bit*)
4448       case $host in
4449         x86_64-*linux*)
4450           LD="${LD-ld} -m elf_i386"
4451           ;;
4452         ppc64-*linux*|powerpc64-*linux*)
4453           LD="${LD-ld} -m elf32ppclinux"
4454           ;;
4455         s390x-*linux*)
4456           LD="${LD-ld} -m elf_s390"
4457           ;;
4458         sparc64-*linux*)
4459           LD="${LD-ld} -m elf32_sparc"
4460           ;;
4461       esac
4462       ;;
4463     *64-bit*)
4464       case $host in
4465         x86_64-*linux*)
4466           LD="${LD-ld} -m elf_x86_64"
4467           ;;
4468         ppc*-*linux*|powerpc*-*linux*)
4469           LD="${LD-ld} -m elf64ppc"
4470           ;;
4471         s390*-*linux*)
4472           LD="${LD-ld} -m elf64_s390"
4473           ;;
4474         sparc*-*linux*)
4475           LD="${LD-ld} -m elf64_sparc"
4476           ;;
4477       esac
4478       ;;
4479     esac
4480   fi
4481   rm -rf conftest*
4482   ;;
4483
4484 *-*-sco3.2v5*)
4485   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4486   SAVE_CFLAGS="$CFLAGS"
4487   CFLAGS="$CFLAGS -belf"
4488   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4489 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4490 if test "${lt_cv_cc_needs_belf+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499      cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (ac_try="$ac_link"
4516 case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_link") 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } && {
4528          test -z "$ac_c_werror_flag" ||
4529          test ! -s conftest.err
4530        } && test -s conftest$ac_exeext &&
4531        $as_test_x conftest$ac_exeext; then
4532   lt_cv_cc_needs_belf=yes
4533 else
4534   echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537         lt_cv_cc_needs_belf=no
4538 fi
4539
4540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4541       conftest$ac_exeext conftest.$ac_ext
4542      ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 fi
4549 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4550 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4551   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4552     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4553     CFLAGS="$SAVE_CFLAGS"
4554   fi
4555   ;;
4556 sparc*-*solaris*)
4557   # Find out which ABI we are using.
4558   echo 'int i;' > conftest.$ac_ext
4559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560   (eval $ac_compile) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; then
4564     case `/usr/bin/file conftest.o` in
4565     *64-bit*)
4566       case $lt_cv_prog_gnu_ld in
4567       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4568       *)    LD="${LD-ld} -64" ;;
4569       esac
4570       ;;
4571     esac
4572   fi
4573   rm -rf conftest*
4574   ;;
4575
4576 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4577   if test -n "$ac_tool_prefix"; then
4578   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4582 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   if test -n "$DLLTOOL"; then
4586   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 DLLTOOL=$ac_cv_prog_DLLTOOL
4606 if test -n "$DLLTOOL"; then
4607   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4608 echo "${ECHO_T}$DLLTOOL" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 fi
4613
4614
4615 fi
4616 if test -z "$ac_cv_prog_DLLTOOL"; then
4617   ac_ct_DLLTOOL=$DLLTOOL
4618   # Extract the first word of "dlltool", so it can be a program name with args.
4619 set dummy dlltool; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$ac_ct_DLLTOOL"; then
4626   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4646 if test -n "$ac_ct_DLLTOOL"; then
4647   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4648 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654   if test "x$ac_ct_DLLTOOL" = x; then
4655     DLLTOOL="false"
4656   else
4657     case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet.  If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&5
4662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4663 whose name does not start with the host triplet.  If you think this
4664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4665 ac_tool_warned=yes ;;
4666 esac
4667     DLLTOOL=$ac_ct_DLLTOOL
4668   fi
4669 else
4670   DLLTOOL="$ac_cv_prog_DLLTOOL"
4671 fi
4672
4673   if test -n "$ac_tool_prefix"; then
4674   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}as; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_prog_AS+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -n "$AS"; then
4682   ac_cv_prog_AS="$AS" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691     ac_cv_prog_AS="${ac_tool_prefix}as"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697 IFS=$as_save_IFS
4698
4699 fi
4700 fi
4701 AS=$ac_cv_prog_AS
4702 if test -n "$AS"; then
4703   { echo "$as_me:$LINENO: result: $AS" >&5
4704 echo "${ECHO_T}$AS" >&6; }
4705 else
4706   { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4708 fi
4709
4710
4711 fi
4712 if test -z "$ac_cv_prog_AS"; then
4713   ac_ct_AS=$AS
4714   # Extract the first word of "as", so it can be a program name with args.
4715 set dummy as; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   if test -n "$ac_ct_AS"; then
4722   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_exec_ext in '' $ac_executable_extensions; do
4730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731     ac_cv_prog_ac_ct_AS="as"
4732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4742 if test -n "$ac_ct_AS"; then
4743   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4744 echo "${ECHO_T}$ac_ct_AS" >&6; }
4745 else
4746   { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4748 fi
4749
4750   if test "x$ac_ct_AS" = x; then
4751     AS="false"
4752   else
4753     case $cross_compiling:$ac_tool_warned in
4754 yes:)
4755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4756 whose name does not start with the host triplet.  If you think this
4757 configuration is useful to you, please write to autoconf@gnu.org." >&5
4758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4759 whose name does not start with the host triplet.  If you think this
4760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763     AS=$ac_ct_AS
4764   fi
4765 else
4766   AS="$ac_cv_prog_AS"
4767 fi
4768
4769   if test -n "$ac_tool_prefix"; then
4770   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4774 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   if test -n "$OBJDUMP"; then
4778   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785   for ac_exec_ext in '' $ac_executable_extensions; do
4786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 OBJDUMP=$ac_cv_prog_OBJDUMP
4798 if test -n "$OBJDUMP"; then
4799   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4800 echo "${ECHO_T}$OBJDUMP" >&6; }
4801 else
4802   { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4804 fi
4805
4806
4807 fi
4808 if test -z "$ac_cv_prog_OBJDUMP"; then
4809   ac_ct_OBJDUMP=$OBJDUMP
4810   # Extract the first word of "objdump", so it can be a program name with args.
4811 set dummy objdump; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   if test -n "$ac_ct_OBJDUMP"; then
4818   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4838 if test -n "$ac_ct_OBJDUMP"; then
4839   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4840 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4841 else
4842   { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 fi
4845
4846   if test "x$ac_ct_OBJDUMP" = x; then
4847     OBJDUMP="false"
4848   else
4849     case $cross_compiling:$ac_tool_warned in
4850 yes:)
4851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4852 whose name does not start with the host triplet.  If you think this
4853 configuration is useful to you, please write to autoconf@gnu.org." >&5
4854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4855 whose name does not start with the host triplet.  If you think this
4856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859     OBJDUMP=$ac_ct_OBJDUMP
4860   fi
4861 else
4862   OBJDUMP="$ac_cv_prog_OBJDUMP"
4863 fi
4864
4865   ;;
4866
4867 esac
4868
4869 need_locks="$enable_libtool_lock"
4870
4871
4872 ac_ext=c
4873 ac_cpp='$CPP $CPPFLAGS'
4874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4879 # On Suns, sometimes $CPP names a directory.
4880 if test -n "$CPP" && test -d "$CPP"; then
4881   CPP=
4882 fi
4883 if test -z "$CPP"; then
4884   if test "${ac_cv_prog_CPP+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887       # Double quotes because CPP needs to be expanded
4888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4889     do
4890       ac_preproc_ok=false
4891 for ac_c_preproc_warn_flag in '' yes
4892 do
4893   # Use a header file that comes with gcc, so configuring glibc
4894   # with a fresh cross-compiler works.
4895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896   # <limits.h> exists even on freestanding compilers.
4897   # On the NeXT, cc -E runs the code through the compiler's parser,
4898   # not just through cpp. "Syntax error" is here to catch this case.
4899   cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910                      Syntax error
4911 _ACEOF
4912 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919   ac_status=$?
4920   grep -v '^ *+' conftest.er1 >conftest.err
4921   rm -f conftest.er1
4922   cat conftest.err >&5
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } >/dev/null && {
4925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4926          test ! -s conftest.err
4927        }; then
4928   :
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933   # Broken: fails on valid input.
4934 continue
4935 fi
4936
4937 rm -f conftest.err conftest.$ac_ext
4938
4939   # OK, works on sane cases.  Now check whether nonexistent headers
4940   # can be detected and how.
4941   cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <ac_nonexistent.h>
4948 _ACEOF
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } >/dev/null && {
4962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963          test ! -s conftest.err
4964        }; then
4965   # Broken: success on invalid input.
4966 continue
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971   # Passes both tests.
4972 ac_preproc_ok=:
4973 break
4974 fi
4975
4976 rm -f conftest.err conftest.$ac_ext
4977
4978 done
4979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980 rm -f conftest.err conftest.$ac_ext
4981 if $ac_preproc_ok; then
4982   break
4983 fi
4984
4985     done
4986     ac_cv_prog_CPP=$CPP
4987
4988 fi
4989   CPP=$ac_cv_prog_CPP
4990 else
4991   ac_cv_prog_CPP=$CPP
4992 fi
4993 { echo "$as_me:$LINENO: result: $CPP" >&5
4994 echo "${ECHO_T}$CPP" >&6; }
4995 ac_preproc_ok=false
4996 for ac_c_preproc_warn_flag in '' yes
4997 do
4998   # Use a header file that comes with gcc, so configuring glibc
4999   # with a fresh cross-compiler works.
5000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001   # <limits.h> exists even on freestanding compilers.
5002   # On the NeXT, cc -E runs the code through the compiler's parser,
5003   # not just through cpp. "Syntax error" is here to catch this case.
5004   cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010 #ifdef __STDC__
5011 # include <limits.h>
5012 #else
5013 # include <assert.h>
5014 #endif
5015                      Syntax error
5016 _ACEOF
5017 if { (ac_try="$ac_cpp conftest.$ac_ext"
5018 case "(($ac_try" in
5019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020   *) ac_try_echo=$ac_try;;
5021 esac
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024   ac_status=$?
5025   grep -v '^ *+' conftest.er1 >conftest.err
5026   rm -f conftest.er1
5027   cat conftest.err >&5
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); } >/dev/null && {
5030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5031          test ! -s conftest.err
5032        }; then
5033   :
5034 else
5035   echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038   # Broken: fails on valid input.
5039 continue
5040 fi
5041
5042 rm -f conftest.err conftest.$ac_ext
5043
5044   # OK, works on sane cases.  Now check whether nonexistent headers
5045   # can be detected and how.
5046   cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 #include <ac_nonexistent.h>
5053 _ACEOF
5054 if { (ac_try="$ac_cpp conftest.$ac_ext"
5055 case "(($ac_try" in
5056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057   *) ac_try_echo=$ac_try;;
5058 esac
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5061   ac_status=$?
5062   grep -v '^ *+' conftest.er1 >conftest.err
5063   rm -f conftest.er1
5064   cat conftest.err >&5
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); } >/dev/null && {
5067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5068          test ! -s conftest.err
5069        }; then
5070   # Broken: success on invalid input.
5071 continue
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076   # Passes both tests.
5077 ac_preproc_ok=:
5078 break
5079 fi
5080
5081 rm -f conftest.err conftest.$ac_ext
5082
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then
5087   :
5088 else
5089   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." >&5
5091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." >&2;}
5093    { (exit 1); exit 1; }; }
5094 fi
5095
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102
5103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5105 if test "${ac_cv_header_stdc+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 #include <stdlib.h>
5115 #include <stdarg.h>
5116 #include <string.h>
5117 #include <float.h>
5118
5119 int
5120 main ()
5121 {
5122
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5129 case "(($ac_try" in
5130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131   *) ac_try_echo=$ac_try;;
5132 esac
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134   (eval "$ac_compile") 2>conftest.er1
5135   ac_status=$?
5136   grep -v '^ *+' conftest.er1 >conftest.err
5137   rm -f conftest.er1
5138   cat conftest.err >&5
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } && {
5141          test -z "$ac_c_werror_flag" ||
5142          test ! -s conftest.err
5143        } && test -s conftest.$ac_objext; then
5144   ac_cv_header_stdc=yes
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149         ac_cv_header_stdc=no
5150 fi
5151
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153
5154 if test $ac_cv_header_stdc = yes; then
5155   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5156   cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 #include <string.h>
5163
5164 _ACEOF
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166   $EGREP "memchr" >/dev/null 2>&1; then
5167   :
5168 else
5169   ac_cv_header_stdc=no
5170 fi
5171 rm -f conftest*
5172
5173 fi
5174
5175 if test $ac_cv_header_stdc = yes; then
5176   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5177   cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h.  */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h.  */
5183 #include <stdlib.h>
5184
5185 _ACEOF
5186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187   $EGREP "free" >/dev/null 2>&1; then
5188   :
5189 else
5190   ac_cv_header_stdc=no
5191 fi
5192 rm -f conftest*
5193
5194 fi
5195
5196 if test $ac_cv_header_stdc = yes; then
5197   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5198   if test "$cross_compiling" = yes; then
5199   :
5200 else
5201   cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h.  */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h.  */
5207 #include <ctype.h>
5208 #include <stdlib.h>
5209 #if ((' ' & 0x0FF) == 0x020)
5210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5212 #else
5213 # define ISLOWER(c) \
5214                    (('a' <= (c) && (c) <= 'i') \
5215                      || ('j' <= (c) && (c) <= 'r') \
5216                      || ('s' <= (c) && (c) <= 'z'))
5217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5218 #endif
5219
5220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5221 int
5222 main ()
5223 {
5224   int i;
5225   for (i = 0; i < 256; i++)
5226     if (XOR (islower (i), ISLOWER (i))
5227         || toupper (i) != TOUPPER (i))
5228       return 2;
5229   return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest$ac_exeext
5233 if { (ac_try="$ac_link"
5234 case "(($ac_try" in
5235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236   *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239   (eval "$ac_link") 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5243   { (case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_try") 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; }; then
5252   :
5253 else
5254   echo "$as_me: program exited with status $ac_status" >&5
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258 ( exit $ac_status )
5259 ac_cv_header_stdc=no
5260 fi
5261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5262 fi
5263
5264
5265 fi
5266 fi
5267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5269 if test $ac_cv_header_stdc = yes; then
5270
5271 cat >>confdefs.h <<\_ACEOF
5272 #define STDC_HEADERS 1
5273 _ACEOF
5274
5275 fi
5276
5277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288                   inttypes.h stdint.h unistd.h
5289 do
5290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h.  */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h.  */
5302 $ac_includes_default
5303
5304 #include <$ac_header>
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_compile") 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } && {
5320          test -z "$ac_c_werror_flag" ||
5321          test ! -s conftest.err
5322        } && test -s conftest.$ac_objext; then
5323   eval "$as_ac_Header=yes"
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328         eval "$as_ac_Header=no"
5329 fi
5330
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 fi
5333 ac_res=`eval echo '${'$as_ac_Header'}'`
5334                { echo "$as_me:$LINENO: result: $ac_res" >&5
5335 echo "${ECHO_T}$ac_res" >&6; }
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337   cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 _ACEOF
5340
5341 fi
5342
5343 done
5344
5345
5346
5347 for ac_header in dlfcn.h
5348 do
5349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 fi
5356 ac_res=`eval echo '${'$as_ac_Header'}'`
5357                { echo "$as_me:$LINENO: result: $ac_res" >&5
5358 echo "${ECHO_T}$ac_res" >&6; }
5359 else
5360   # Is the header compilable?
5361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 $ac_includes_default
5370 #include <$ac_header>
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (ac_try="$ac_compile"
5374 case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_compile") 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } && {
5386          test -z "$ac_c_werror_flag" ||
5387          test ! -s conftest.err
5388        } && test -s conftest.$ac_objext; then
5389   ac_header_compiler=yes
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394         ac_header_compiler=no
5395 fi
5396
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399 echo "${ECHO_T}$ac_header_compiler" >&6; }
5400
5401 # Is the header present?
5402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410 #include <$ac_header>
5411 _ACEOF
5412 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } >/dev/null && {
5425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5426          test ! -s conftest.err
5427        }; then
5428   ac_header_preproc=yes
5429 else
5430   echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5432
5433   ac_header_preproc=no
5434 fi
5435
5436 rm -f conftest.err conftest.$ac_ext
5437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5438 echo "${ECHO_T}$ac_header_preproc" >&6; }
5439
5440 # So?  What about this header?
5441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5442   yes:no: )
5443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5447     ac_header_preproc=yes
5448     ;;
5449   no:yes:* )
5450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5462     ( cat <<\_ASBOX
5463 ## -------------------------------------------------- ##
5464 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5465 ## -------------------------------------------------- ##
5466 _ASBOX
5467      ) | sed "s/^/$as_me: WARNING:     /" >&2
5468     ;;
5469 esac
5470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   eval "$as_ac_Header=\$ac_header_preproc"
5476 fi
5477 ac_res=`eval echo '${'$as_ac_Header'}'`
5478                { echo "$as_me:$LINENO: result: $ac_res" >&5
5479 echo "${ECHO_T}$ac_res" >&6; }
5480
5481 fi
5482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5483   cat >>confdefs.h <<_ACEOF
5484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5485 _ACEOF
5486
5487 fi
5488
5489 done
5490
5491 ac_ext=cpp
5492 ac_cpp='$CXXCPP $CPPFLAGS'
5493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5496 if test -z "$CXX"; then
5497   if test -n "$CCC"; then
5498     CXX=$CCC
5499   else
5500     if test -n "$ac_tool_prefix"; then
5501   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5502   do
5503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5507 if test "${ac_cv_prog_CXX+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$CXX"; then
5511   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 CXX=$ac_cv_prog_CXX
5531 if test -n "$CXX"; then
5532   { echo "$as_me:$LINENO: result: $CXX" >&5
5533 echo "${ECHO_T}$CXX" >&6; }
5534 else
5535   { echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6; }
5537 fi
5538
5539
5540     test -n "$CXX" && break
5541   done
5542 fi
5543 if test -z "$CXX"; then
5544   ac_ct_CXX=$CXX
5545   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5546 do
5547   # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5551 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   if test -n "$ac_ct_CXX"; then
5555   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564     ac_cv_prog_ac_ct_CXX="$ac_prog"
5565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5575 if test -n "$ac_ct_CXX"; then
5576   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5577 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5578 else
5579   { echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6; }
5581 fi
5582
5583
5584   test -n "$ac_ct_CXX" && break
5585 done
5586
5587   if test "x$ac_ct_CXX" = x; then
5588     CXX="g++"
5589   else
5590     case $cross_compiling:$ac_tool_warned in
5591 yes:)
5592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5593 whose name does not start with the host triplet.  If you think this
5594 configuration is useful to you, please write to autoconf@gnu.org." >&5
5595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5596 whose name does not start with the host triplet.  If you think this
5597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5598 ac_tool_warned=yes ;;
5599 esac
5600     CXX=$ac_ct_CXX
5601   fi
5602 fi
5603
5604   fi
5605 fi
5606 # Provide some information about the compiler.
5607 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5608 ac_compiler=`set X $ac_compile; echo $2`
5609 { (ac_try="$ac_compiler --version >&5"
5610 case "(($ac_try" in
5611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612   *) ac_try_echo=$ac_try;;
5613 esac
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615   (eval "$ac_compiler --version >&5") 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }
5619 { (ac_try="$ac_compiler -v >&5"
5620 case "(($ac_try" in
5621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622   *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625   (eval "$ac_compiler -v >&5") 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }
5629 { (ac_try="$ac_compiler -V >&5"
5630 case "(($ac_try" in
5631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632   *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635   (eval "$ac_compiler -V >&5") 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }
5639
5640 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5641 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5642 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h.  */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h.  */
5651
5652 int
5653 main ()
5654 {
5655 #ifndef __GNUC__
5656        choke me
5657 #endif
5658
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5665 case "(($ac_try" in
5666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667   *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670   (eval "$ac_compile") 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } && {
5677          test -z "$ac_cxx_werror_flag" ||
5678          test ! -s conftest.err
5679        } && test -s conftest.$ac_objext; then
5680   ac_compiler_gnu=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685         ac_compiler_gnu=no
5686 fi
5687
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5690
5691 fi
5692 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5693 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5694 GXX=`test $ac_compiler_gnu = yes && echo yes`
5695 ac_test_CXXFLAGS=${CXXFLAGS+set}
5696 ac_save_CXXFLAGS=$CXXFLAGS
5697 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5698 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5699 if test "${ac_cv_prog_cxx_g+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5703    ac_cxx_werror_flag=yes
5704    ac_cv_prog_cxx_g=no
5705    CXXFLAGS="-g"
5706    cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712
5713 int
5714 main ()
5715 {
5716
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725   *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728   (eval "$ac_compile") 2>conftest.er1
5729   ac_status=$?
5730   grep -v '^ *+' conftest.er1 >conftest.err
5731   rm -f conftest.er1
5732   cat conftest.err >&5
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } && {
5735          test -z "$ac_cxx_werror_flag" ||
5736          test ! -s conftest.err
5737        } && test -s conftest.$ac_objext; then
5738   ac_cv_prog_cxx_g=yes
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743         CXXFLAGS=""
5744       cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5750
5751 int
5752 main ()
5753 {
5754
5755   ;
5756   return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5761 case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_compile") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } && {
5773          test -z "$ac_cxx_werror_flag" ||
5774          test ! -s conftest.err
5775        } && test -s conftest.$ac_objext; then
5776   :
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5782          CXXFLAGS="-g"
5783          cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789
5790 int
5791 main ()
5792 {
5793
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } && {
5812          test -z "$ac_cxx_werror_flag" ||
5813          test ! -s conftest.err
5814        } && test -s conftest.$ac_objext; then
5815   ac_cv_prog_cxx_g=yes
5816 else
5817   echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820
5821 fi
5822
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 fi
5825
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 fi
5828
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5831 fi
5832 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5833 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5834 if test "$ac_test_CXXFLAGS" = set; then
5835   CXXFLAGS=$ac_save_CXXFLAGS
5836 elif test $ac_cv_prog_cxx_g = yes; then
5837   if test "$GXX" = yes; then
5838     CXXFLAGS="-g -O2"
5839   else
5840     CXXFLAGS="-g"
5841   fi
5842 else
5843   if test "$GXX" = yes; then
5844     CXXFLAGS="-O2"
5845   else
5846     CXXFLAGS=
5847   fi
5848 fi
5849 ac_ext=cpp
5850 ac_cpp='$CXXCPP $CPPFLAGS'
5851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5854
5855 depcc="$CXX"  am_compiler_list=
5856
5857 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5858 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5859 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5863   # We make a subdir and do the tests there.  Otherwise we can end up
5864   # making bogus files that we don't know about and never remove.  For
5865   # instance it was reported that on HP-UX the gcc test will end up
5866   # making a dummy file named `D' -- because `-MD' means `put the output
5867   # in D'.
5868   mkdir conftest.dir
5869   # Copy depcomp to subdir because otherwise we won't find it if we're
5870   # using a relative directory.
5871   cp "$am_depcomp" conftest.dir
5872   cd conftest.dir
5873   # We will build objects and dependencies in a subdirectory because
5874   # it helps to detect inapplicable dependency modes.  For instance
5875   # both Tru64's cc and ICC support -MD to output dependencies as a
5876   # side effect of compilation, but ICC will put the dependencies in
5877   # the current directory while Tru64 will put them in the object
5878   # directory.
5879   mkdir sub
5880
5881   am_cv_CXX_dependencies_compiler_type=none
5882   if test "$am_compiler_list" = ""; then
5883      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5884   fi
5885   for depmode in $am_compiler_list; do
5886     # Setup a source with many dependencies, because some compilers
5887     # like to wrap large dependency lists on column 80 (with \), and
5888     # we should not choose a depcomp mode which is confused by this.
5889     #
5890     # We need to recreate these files for each test, as the compiler may
5891     # overwrite some of them when testing with obscure command lines.
5892     # This happens at least with the AIX C compiler.
5893     : > sub/conftest.c
5894     for i in 1 2 3 4 5 6; do
5895       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5896       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5897       # Solaris 8's {/usr,}/bin/sh.
5898       touch sub/conftst$i.h
5899     done
5900     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5901
5902     case $depmode in
5903     nosideeffect)
5904       # after this tag, mechanisms are not by side-effect, so they'll
5905       # only be used when explicitly requested
5906       if test "x$enable_dependency_tracking" = xyes; then
5907         continue
5908       else
5909         break
5910       fi
5911       ;;
5912     none) break ;;
5913     esac
5914     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5915     # mode.  It turns out that the SunPro C++ compiler does not properly
5916     # handle `-M -o', and we need to detect this.
5917     if depmode=$depmode \
5918        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5919        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5920        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5921          >/dev/null 2>conftest.err &&
5922        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5923        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5924        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5925       # icc doesn't choke on unknown options, it will just issue warnings
5926       # or remarks (even with -Werror).  So we grep stderr for any message
5927       # that says an option was ignored or not supported.
5928       # When given -MP, icc 7.0 and 7.1 complain thusly:
5929       #   icc: Command line warning: ignoring option '-M'; no argument required
5930       # The diagnosis changed in icc 8.0:
5931       #   icc: Command line remark: option '-MP' not supported
5932       if (grep 'ignoring option' conftest.err ||
5933           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5934         am_cv_CXX_dependencies_compiler_type=$depmode
5935         break
5936       fi
5937     fi
5938   done
5939
5940   cd ..
5941   rm -rf conftest.dir
5942 else
5943   am_cv_CXX_dependencies_compiler_type=none
5944 fi
5945
5946 fi
5947 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5948 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5949 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5950
5951
5952
5953 if
5954   test "x$enable_dependency_tracking" != xno \
5955   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5956   am__fastdepCXX_TRUE=
5957   am__fastdepCXX_FALSE='#'
5958 else
5959   am__fastdepCXX_TRUE='#'
5960   am__fastdepCXX_FALSE=
5961 fi
5962
5963
5964
5965
5966 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5967     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5968     (test "X$CXX" != "Xg++"))) ; then
5969   ac_ext=cpp
5970 ac_cpp='$CXXCPP $CPPFLAGS'
5971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5974 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5975 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5976 if test -z "$CXXCPP"; then
5977   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980       # Double quotes because CXXCPP needs to be expanded
5981     for CXXCPP in "$CXX -E" "/lib/cpp"
5982     do
5983       ac_preproc_ok=false
5984 for ac_cxx_preproc_warn_flag in '' yes
5985 do
5986   # Use a header file that comes with gcc, so configuring glibc
5987   # with a fresh cross-compiler works.
5988   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989   # <limits.h> exists even on freestanding compilers.
5990   # On the NeXT, cc -E runs the code through the compiler's parser,
5991   # not just through cpp. "Syntax error" is here to catch this case.
5992   cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 #ifdef __STDC__
5999 # include <limits.h>
6000 #else
6001 # include <assert.h>
6002 #endif
6003                      Syntax error
6004 _ACEOF
6005 if { (ac_try="$ac_cpp conftest.$ac_ext"
6006 case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null && {
6018          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6019          test ! -s conftest.err
6020        }; then
6021   :
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026   # Broken: fails on valid input.
6027 continue
6028 fi
6029
6030 rm -f conftest.err conftest.$ac_ext
6031
6032   # OK, works on sane cases.  Now check whether nonexistent headers
6033   # can be detected and how.
6034   cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #include <ac_nonexistent.h>
6041 _ACEOF
6042 if { (ac_try="$ac_cpp conftest.$ac_ext"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049   ac_status=$?
6050   grep -v '^ *+' conftest.er1 >conftest.err
6051   rm -f conftest.er1
6052   cat conftest.err >&5
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } >/dev/null && {
6055          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6056          test ! -s conftest.err
6057        }; then
6058   # Broken: success on invalid input.
6059 continue
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064   # Passes both tests.
6065 ac_preproc_ok=:
6066 break
6067 fi
6068
6069 rm -f conftest.err conftest.$ac_ext
6070
6071 done
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then
6075   break
6076 fi
6077
6078     done
6079     ac_cv_prog_CXXCPP=$CXXCPP
6080
6081 fi
6082   CXXCPP=$ac_cv_prog_CXXCPP
6083 else
6084   ac_cv_prog_CXXCPP=$CXXCPP
6085 fi
6086 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6087 echo "${ECHO_T}$CXXCPP" >&6; }
6088 ac_preproc_ok=false
6089 for ac_cxx_preproc_warn_flag in '' yes
6090 do
6091   # Use a header file that comes with gcc, so configuring glibc
6092   # with a fresh cross-compiler works.
6093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094   # <limits.h> exists even on freestanding compilers.
6095   # On the NeXT, cc -E runs the code through the compiler's parser,
6096   # not just through cpp. "Syntax error" is here to catch this case.
6097   cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103 #ifdef __STDC__
6104 # include <limits.h>
6105 #else
6106 # include <assert.h>
6107 #endif
6108                      Syntax error
6109 _ACEOF
6110 if { (ac_try="$ac_cpp conftest.$ac_ext"
6111 case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } >/dev/null && {
6123          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6124          test ! -s conftest.err
6125        }; then
6126   :
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131   # Broken: fails on valid input.
6132 continue
6133 fi
6134
6135 rm -f conftest.err conftest.$ac_ext
6136
6137   # OK, works on sane cases.  Now check whether nonexistent headers
6138   # can be detected and how.
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 #include <ac_nonexistent.h>
6146 _ACEOF
6147 if { (ac_try="$ac_cpp conftest.$ac_ext"
6148 case "(($ac_try" in
6149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150   *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6154   ac_status=$?
6155   grep -v '^ *+' conftest.er1 >conftest.err
6156   rm -f conftest.er1
6157   cat conftest.err >&5
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } >/dev/null && {
6160          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6161          test ! -s conftest.err
6162        }; then
6163   # Broken: success on invalid input.
6164 continue
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169   # Passes both tests.
6170 ac_preproc_ok=:
6171 break
6172 fi
6173
6174 rm -f conftest.err conftest.$ac_ext
6175
6176 done
6177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6178 rm -f conftest.err conftest.$ac_ext
6179 if $ac_preproc_ok; then
6180   :
6181 else
6182   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6183 See \`config.log' for more details." >&5
6184 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6185 See \`config.log' for more details." >&2;}
6186    { (exit 1); exit 1; }; }
6187 fi
6188
6189 ac_ext=cpp
6190 ac_cpp='$CXXCPP $CPPFLAGS'
6191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6194
6195 fi
6196
6197
6198 ac_ext=f
6199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6202 if test -n "$ac_tool_prefix"; then
6203   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6204   do
6205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209 if test "${ac_cv_prog_F77+set}" = set; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212   if test -n "$F77"; then
6213   ac_cv_prog_F77="$F77" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220   for ac_exec_ext in '' $ac_executable_extensions; do
6221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224     break 2
6225   fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 F77=$ac_cv_prog_F77
6233 if test -n "$F77"; then
6234   { echo "$as_me:$LINENO: result: $F77" >&5
6235 echo "${ECHO_T}$F77" >&6; }
6236 else
6237   { echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6; }
6239 fi
6240
6241
6242     test -n "$F77" && break
6243   done
6244 fi
6245 if test -z "$F77"; then
6246   ac_ct_F77=$F77
6247   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6248 do
6249   # Extract the first word of "$ac_prog", so it can be a program name with args.
6250 set dummy $ac_prog; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   if test -n "$ac_ct_F77"; then
6257   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266     ac_cv_prog_ac_ct_F77="$ac_prog"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6277 if test -n "$ac_ct_F77"; then
6278   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6279 echo "${ECHO_T}$ac_ct_F77" >&6; }
6280 else
6281   { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6283 fi
6284
6285
6286   test -n "$ac_ct_F77" && break
6287 done
6288
6289   if test "x$ac_ct_F77" = x; then
6290     F77=""
6291   else
6292     case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet.  If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&5
6297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6298 whose name does not start with the host triplet.  If you think this
6299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302     F77=$ac_ct_F77
6303   fi
6304 fi
6305
6306
6307 # Provide some information about the compiler.
6308 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6309 ac_compiler=`set X $ac_compile; echo $2`
6310 { (ac_try="$ac_compiler --version >&5"
6311 case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316   (eval "$ac_compiler --version >&5") 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }
6320 { (ac_try="$ac_compiler -v >&5"
6321 case "(($ac_try" in
6322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323   *) ac_try_echo=$ac_try;;
6324 esac
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326   (eval "$ac_compiler -v >&5") 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }
6330 { (ac_try="$ac_compiler -V >&5"
6331 case "(($ac_try" in
6332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333   *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336   (eval "$ac_compiler -V >&5") 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }
6340 rm -f a.out
6341
6342 # If we don't use `.F' as extension, the preprocessor is not run on the
6343 # input file.  (Note that this only needs to work for GNU compilers.)
6344 ac_save_ext=$ac_ext
6345 ac_ext=F
6346 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6347 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6348 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6349   echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351   cat >conftest.$ac_ext <<_ACEOF
6352       program main
6353 #ifndef __GNUC__
6354        choke me
6355 #endif
6356
6357       end
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6361 case "(($ac_try" in
6362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363   *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366   (eval "$ac_compile") 2>conftest.er1
6367   ac_status=$?
6368   grep -v '^ *+' conftest.er1 >conftest.err
6369   rm -f conftest.er1
6370   cat conftest.err >&5
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); } && {
6373          test -z "$ac_f77_werror_flag" ||
6374          test ! -s conftest.err
6375        } && test -s conftest.$ac_objext; then
6376   ac_compiler_gnu=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381         ac_compiler_gnu=no
6382 fi
6383
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6386
6387 fi
6388 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6389 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6390 ac_ext=$ac_save_ext
6391 ac_test_FFLAGS=${FFLAGS+set}
6392 ac_save_FFLAGS=$FFLAGS
6393 FFLAGS=
6394 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6395 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_f77_g+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   FFLAGS=-g
6400 cat >conftest.$ac_ext <<_ACEOF
6401       program main
6402
6403       end
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_compile") 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } && {
6419          test -z "$ac_f77_werror_flag" ||
6420          test ! -s conftest.err
6421        } && test -s conftest.$ac_objext; then
6422   ac_cv_prog_f77_g=yes
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427         ac_cv_prog_f77_g=no
6428 fi
6429
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431
6432 fi
6433 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6434 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6435 if test "$ac_test_FFLAGS" = set; then
6436   FFLAGS=$ac_save_FFLAGS
6437 elif test $ac_cv_prog_f77_g = yes; then
6438   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6439     FFLAGS="-g -O2"
6440   else
6441     FFLAGS="-g"
6442   fi
6443 else
6444   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6445     FFLAGS="-O2"
6446   else
6447     FFLAGS=
6448   fi
6449 fi
6450
6451 G77=`test $ac_compiler_gnu = yes && echo yes`
6452 ac_ext=c
6453 ac_cpp='$CPP $CPPFLAGS'
6454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458
6459
6460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6461
6462 # find the maximum length of command line arguments
6463 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6464 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468     i=0
6469   teststring="ABCD"
6470
6471   case $build_os in
6472   msdosdjgpp*)
6473     # On DJGPP, this test can blow up pretty badly due to problems in libc
6474     # (any single argument exceeding 2000 bytes causes a buffer overrun
6475     # during glob expansion).  Even if it were fixed, the result of this
6476     # check would be larger than it should be.
6477     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6478     ;;
6479
6480   gnu*)
6481     # Under GNU Hurd, this test is not required because there is
6482     # no limit to the length of command line arguments.
6483     # Libtool will interpret -1 as no limit whatsoever
6484     lt_cv_sys_max_cmd_len=-1;
6485     ;;
6486
6487   cygwin* | mingw*)
6488     # On Win9x/ME, this test blows up -- it succeeds, but takes
6489     # about 5 minutes as the teststring grows exponentially.
6490     # Worse, since 9x/ME are not pre-emptively multitasking,
6491     # you end up with a "frozen" computer, even though with patience
6492     # the test eventually succeeds (with a max line length of 256k).
6493     # Instead, let's just punt: use the minimum linelength reported by
6494     # all of the supported platforms: 8192 (on NT/2K/XP).
6495     lt_cv_sys_max_cmd_len=8192;
6496     ;;
6497
6498   amigaos*)
6499     # On AmigaOS with pdksh, this test takes hours, literally.
6500     # So we just punt and use a minimum line length of 8192.
6501     lt_cv_sys_max_cmd_len=8192;
6502     ;;
6503
6504   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6505     # This has been around since 386BSD, at least.  Likely further.
6506     if test -x /sbin/sysctl; then
6507       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6508     elif test -x /usr/sbin/sysctl; then
6509       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6510     else
6511       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6512     fi
6513     # And add a safety zone
6514     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6515     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6516     ;;
6517
6518   interix*)
6519     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6520     lt_cv_sys_max_cmd_len=196608
6521     ;;
6522
6523   osf*)
6524     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6525     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6526     # nice to cause kernel panics so lets avoid the loop below.
6527     # First set a reasonable default.
6528     lt_cv_sys_max_cmd_len=16384
6529     #
6530     if test -x /sbin/sysconfig; then
6531       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6532         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6533       esac
6534     fi
6535     ;;
6536   sco3.2v5*)
6537     lt_cv_sys_max_cmd_len=102400
6538     ;;
6539   sysv5* | sco5v6* | sysv4.2uw2*)
6540     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6541     if test -n "$kargmax"; then
6542       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6543     else
6544       lt_cv_sys_max_cmd_len=32768
6545     fi
6546     ;;
6547   *)
6548     # If test is not a shell built-in, we'll probably end up computing a
6549     # maximum length that is only half of the actual maximum length, but
6550     # we can't tell.
6551     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6552     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6553                = "XX$teststring") >/dev/null 2>&1 &&
6554             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6555             lt_cv_sys_max_cmd_len=$new_result &&
6556             test $i != 17 # 1/2 MB should be enough
6557     do
6558       i=`expr $i + 1`
6559       teststring=$teststring$teststring
6560     done
6561     teststring=
6562     # Add a significant safety factor because C++ compilers can tack on massive
6563     # amounts of additional arguments before passing them to the linker.
6564     # It appears as though 1/2 is a usable value.
6565     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6566     ;;
6567   esac
6568
6569 fi
6570
6571 if test -n $lt_cv_sys_max_cmd_len ; then
6572   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6573 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: none" >&5
6576 echo "${ECHO_T}none" >&6; }
6577 fi
6578
6579
6580
6581
6582 # Check for command to grab the raw symbol name followed by C symbol from nm.
6583 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6584 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588
6589 # These are sane defaults that work on at least a few old systems.
6590 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6591
6592 # Character class describing NM global symbol codes.
6593 symcode='[BCDEGRST]'
6594
6595 # Regexp to match symbols that can be accessed directly from C.
6596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6597
6598 # Transform an extracted symbol line into a proper C declaration
6599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6600
6601 # Transform an extracted symbol line into symbol name and symbol address
6602 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'"
6603
6604 # Define system-specific variables.
6605 case $host_os in
6606 aix*)
6607   symcode='[BCDT]'
6608   ;;
6609 cygwin* | mingw* | pw32*)
6610   symcode='[ABCDGISTW]'
6611   ;;
6612 hpux*) # Its linker distinguishes data from code symbols
6613   if test "$host_cpu" = ia64; then
6614     symcode='[ABCDEGRST]'
6615   fi
6616   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6617   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'"
6618   ;;
6619 linux* | k*bsd*-gnu)
6620   if test "$host_cpu" = ia64; then
6621     symcode='[ABCDGIRSTW]'
6622     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623     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'"
6624   fi
6625   ;;
6626 irix* | nonstopux*)
6627   symcode='[BCDEGRST]'
6628   ;;
6629 osf*)
6630   symcode='[BCDEGQRST]'
6631   ;;
6632 solaris*)
6633   symcode='[BDRT]'
6634   ;;
6635 sco3.2v5*)
6636   symcode='[DT]'
6637   ;;
6638 sysv4.2uw2*)
6639   symcode='[DT]'
6640   ;;
6641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6642   symcode='[ABDT]'
6643   ;;
6644 sysv4)
6645   symcode='[DFNSTU]'
6646   ;;
6647 esac
6648
6649 # Handle CRLF in mingw tool chain
6650 opt_cr=
6651 case $build_os in
6652 mingw*)
6653   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6654   ;;
6655 esac
6656
6657 # If we're using GNU nm, then use its standard symbol codes.
6658 case `$NM -V 2>&1` in
6659 *GNU* | *'with BFD'*)
6660   symcode='[ABCDGIRSTW]' ;;
6661 esac
6662
6663 # Try without a prefix undercore, then with it.
6664 for ac_symprfx in "" "_"; do
6665
6666   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6667   symxfrm="\\1 $ac_symprfx\\2 \\2"
6668
6669   # Write the raw and C identifiers.
6670   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6671
6672   # Check to see that the pipe works correctly.
6673   pipe_works=no
6674
6675   rm -f conftest*
6676   cat > conftest.$ac_ext <<EOF
6677 #ifdef __cplusplus
6678 extern "C" {
6679 #endif
6680 char nm_test_var;
6681 void nm_test_func(){}
6682 #ifdef __cplusplus
6683 }
6684 #endif
6685 int main(){nm_test_var='a';nm_test_func();return(0);}
6686 EOF
6687
6688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689   (eval $ac_compile) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; then
6693     # Now try to grab the symbols.
6694     nlist=conftest.nm
6695     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6696   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); } && test -s "$nlist"; then
6700       # Try sorting and uniquifying the output.
6701       if sort "$nlist" | uniq > "$nlist"T; then
6702         mv -f "$nlist"T "$nlist"
6703       else
6704         rm -f "$nlist"T
6705       fi
6706
6707       # Make sure that we snagged all the symbols we need.
6708       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6709         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6710           cat <<EOF > conftest.$ac_ext
6711 #ifdef __cplusplus
6712 extern "C" {
6713 #endif
6714
6715 EOF
6716           # Now generate the symbol file.
6717           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6718
6719           cat <<EOF >> conftest.$ac_ext
6720 #if defined (__STDC__) && __STDC__
6721 # define lt_ptr_t void *
6722 #else
6723 # define lt_ptr_t char *
6724 # define const
6725 #endif
6726
6727 /* The mapping between symbol names and symbols. */
6728 const struct {
6729   const char *name;
6730   lt_ptr_t address;
6731 }
6732 lt_preloaded_symbols[] =
6733 {
6734 EOF
6735           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6736           cat <<\EOF >> conftest.$ac_ext
6737   {0, (lt_ptr_t) 0}
6738 };
6739
6740 #ifdef __cplusplus
6741 }
6742 #endif
6743 EOF
6744           # Now try linking the two files.
6745           mv conftest.$ac_objext conftstm.$ac_objext
6746           lt_save_LIBS="$LIBS"
6747           lt_save_CFLAGS="$CFLAGS"
6748           LIBS="conftstm.$ac_objext"
6749           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6750           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751   (eval $ac_link) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6755             pipe_works=yes
6756           fi
6757           LIBS="$lt_save_LIBS"
6758           CFLAGS="$lt_save_CFLAGS"
6759         else
6760           echo "cannot find nm_test_func in $nlist" >&5
6761         fi
6762       else
6763         echo "cannot find nm_test_var in $nlist" >&5
6764       fi
6765     else
6766       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6767     fi
6768   else
6769     echo "$progname: failed program was:" >&5
6770     cat conftest.$ac_ext >&5
6771   fi
6772   rm -f conftest* conftst*
6773
6774   # Do not use the global_symbol_pipe unless it works.
6775   if test "$pipe_works" = yes; then
6776     break
6777   else
6778     lt_cv_sys_global_symbol_pipe=
6779   fi
6780 done
6781
6782 fi
6783
6784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6785   lt_cv_sys_global_symbol_to_cdecl=
6786 fi
6787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6788   { echo "$as_me:$LINENO: result: failed" >&5
6789 echo "${ECHO_T}failed" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: ok" >&5
6792 echo "${ECHO_T}ok" >&6; }
6793 fi
6794
6795 { echo "$as_me:$LINENO: checking for objdir" >&5
6796 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6797 if test "${lt_cv_objdir+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   rm -f .libs 2>/dev/null
6801 mkdir .libs 2>/dev/null
6802 if test -d .libs; then
6803   lt_cv_objdir=.libs
6804 else
6805   # MS-DOS does not allow filenames that begin with a dot.
6806   lt_cv_objdir=_libs
6807 fi
6808 rmdir .libs 2>/dev/null
6809 fi
6810 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6811 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6812 objdir=$lt_cv_objdir
6813
6814
6815
6816
6817
6818 case $host_os in
6819 aix3*)
6820   # AIX sometimes has problems with the GCC collect2 program.  For some
6821   # reason, if we set the COLLECT_NAMES environment variable, the problems
6822   # vanish in a puff of smoke.
6823   if test "X${COLLECT_NAMES+set}" != Xset; then
6824     COLLECT_NAMES=
6825     export COLLECT_NAMES
6826   fi
6827   ;;
6828 esac
6829
6830 # Sed substitution that helps us do robust quoting.  It backslashifies
6831 # metacharacters that are still active within double-quoted strings.
6832 Xsed='sed -e 1s/^X//'
6833 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6834
6835 # Same as above, but do not quote variable references.
6836 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6837
6838 # Sed substitution to delay expansion of an escaped shell variable in a
6839 # double_quote_subst'ed string.
6840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6841
6842 # Sed substitution to avoid accidental globbing in evaled expressions
6843 no_glob_subst='s/\*/\\\*/g'
6844
6845 # Constants:
6846 rm="rm -f"
6847
6848 # Global variables:
6849 default_ofile=libtool
6850 can_build_shared=yes
6851
6852 # All known linkers require a `.a' archive for static linking (except MSVC,
6853 # which needs '.lib').
6854 libext=a
6855 ltmain="$ac_aux_dir/ltmain.sh"
6856 ofile="$default_ofile"
6857 with_gnu_ld="$lt_cv_prog_gnu_ld"
6858
6859 if test -n "$ac_tool_prefix"; then
6860   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}ar; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_AR+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   if test -n "$AR"; then
6868   ac_cv_prog_AR="$AR" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_prog_AR="${ac_tool_prefix}ar"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 AR=$ac_cv_prog_AR
6888 if test -n "$AR"; then
6889   { echo "$as_me:$LINENO: result: $AR" >&5
6890 echo "${ECHO_T}$AR" >&6; }
6891 else
6892   { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6894 fi
6895
6896
6897 fi
6898 if test -z "$ac_cv_prog_AR"; then
6899   ac_ct_AR=$AR
6900   # Extract the first word of "ar", so it can be a program name with args.
6901 set dummy ar; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   if test -n "$ac_ct_AR"; then
6908   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915   for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_prog_ac_ct_AR="ar"
6918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6928 if test -n "$ac_ct_AR"; then
6929   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6930 echo "${ECHO_T}$ac_ct_AR" >&6; }
6931 else
6932   { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935
6936   if test "x$ac_ct_AR" = x; then
6937     AR="false"
6938   else
6939     case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet.  If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet.  If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949     AR=$ac_ct_AR
6950   fi
6951 else
6952   AR="$ac_cv_prog_AR"
6953 fi
6954
6955 if test -n "$ac_tool_prefix"; then
6956   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_prog_RANLIB+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   if test -n "$RANLIB"; then
6964   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 RANLIB=$ac_cv_prog_RANLIB
6984 if test -n "$RANLIB"; then
6985   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6986 echo "${ECHO_T}$RANLIB" >&6; }
6987 else
6988   { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_RANLIB"; then
6995   ac_ct_RANLIB=$RANLIB
6996   # Extract the first word of "ranlib", so it can be a program name with args.
6997 set dummy ranlib; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   if test -n "$ac_ct_RANLIB"; then
7004   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_prog_ac_ct_RANLIB="ranlib"
7014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7024 if test -n "$ac_ct_RANLIB"; then
7025   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7026 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032   if test "x$ac_ct_RANLIB" = x; then
7033     RANLIB=":"
7034   else
7035     case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7038 whose name does not start with the host triplet.  If you think this
7039 configuration is useful to you, please write to autoconf@gnu.org." >&5
7040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7041 whose name does not start with the host triplet.  If you think this
7042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045     RANLIB=$ac_ct_RANLIB
7046   fi
7047 else
7048   RANLIB="$ac_cv_prog_RANLIB"
7049 fi
7050
7051 if test -n "$ac_tool_prefix"; then
7052   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}strip; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_STRIP+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   if test -n "$STRIP"; then
7060   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 STRIP=$ac_cv_prog_STRIP
7080 if test -n "$STRIP"; then
7081   { echo "$as_me:$LINENO: result: $STRIP" >&5
7082 echo "${ECHO_T}$STRIP" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089 fi
7090 if test -z "$ac_cv_prog_STRIP"; then
7091   ac_ct_STRIP=$STRIP
7092   # Extract the first word of "strip", so it can be a program name with args.
7093 set dummy strip; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   if test -n "$ac_ct_STRIP"; then
7100   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_prog_ac_ct_STRIP="strip"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7120 if test -n "$ac_ct_STRIP"; then
7121   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7122 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128   if test "x$ac_ct_STRIP" = x; then
7129     STRIP=":"
7130   else
7131     case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7134 whose name does not start with the host triplet.  If you think this
7135 configuration is useful to you, please write to autoconf@gnu.org." >&5
7136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7137 whose name does not start with the host triplet.  If you think this
7138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     STRIP=$ac_ct_STRIP
7142   fi
7143 else
7144   STRIP="$ac_cv_prog_STRIP"
7145 fi
7146
7147
7148 old_CC="$CC"
7149 old_CFLAGS="$CFLAGS"
7150
7151 # Set sane defaults for various variables
7152 test -z "$AR" && AR=ar
7153 test -z "$AR_FLAGS" && AR_FLAGS=cru
7154 test -z "$AS" && AS=as
7155 test -z "$CC" && CC=cc
7156 test -z "$LTCC" && LTCC=$CC
7157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7158 test -z "$DLLTOOL" && DLLTOOL=dlltool
7159 test -z "$LD" && LD=ld
7160 test -z "$LN_S" && LN_S="ln -s"
7161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7162 test -z "$NM" && NM=nm
7163 test -z "$SED" && SED=sed
7164 test -z "$OBJDUMP" && OBJDUMP=objdump
7165 test -z "$RANLIB" && RANLIB=:
7166 test -z "$STRIP" && STRIP=:
7167 test -z "$ac_objext" && ac_objext=o
7168
7169 # Determine commands to create old-style static archives.
7170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7171 old_postinstall_cmds='chmod 644 $oldlib'
7172 old_postuninstall_cmds=
7173
7174 if test -n "$RANLIB"; then
7175   case $host_os in
7176   openbsd*)
7177     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7178     ;;
7179   *)
7180     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7181     ;;
7182   esac
7183   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7184 fi
7185
7186 for cc_temp in $compiler""; do
7187   case $cc_temp in
7188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7190     \-*) ;;
7191     *) break;;
7192   esac
7193 done
7194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7195
7196
7197 # Only perform the check for file, if the check method requires it
7198 case $deplibs_check_method in
7199 file_magic*)
7200   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7201     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7202 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   case $MAGIC_CMD in
7207 [\\/*] |  ?:[\\/]*)
7208   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7209   ;;
7210 *)
7211   lt_save_MAGIC_CMD="$MAGIC_CMD"
7212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7213   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7214   for ac_dir in $ac_dummy; do
7215     IFS="$lt_save_ifs"
7216     test -z "$ac_dir" && ac_dir=.
7217     if test -f $ac_dir/${ac_tool_prefix}file; then
7218       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7219       if test -n "$file_magic_test_file"; then
7220         case $deplibs_check_method in
7221         "file_magic "*)
7222           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7223           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7224           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7225             $EGREP "$file_magic_regex" > /dev/null; then
7226             :
7227           else
7228             cat <<EOF 1>&2
7229
7230 *** Warning: the command libtool uses to detect shared libraries,
7231 *** $file_magic_cmd, produces output that libtool cannot recognize.
7232 *** The result is that libtool may fail to recognize shared libraries
7233 *** as such.  This will affect the creation of libtool libraries that
7234 *** depend on shared libraries, but programs linked with such libtool
7235 *** libraries will work regardless of this problem.  Nevertheless, you
7236 *** may want to report the problem to your system manager and/or to
7237 *** bug-libtool@gnu.org
7238
7239 EOF
7240           fi ;;
7241         esac
7242       fi
7243       break
7244     fi
7245   done
7246   IFS="$lt_save_ifs"
7247   MAGIC_CMD="$lt_save_MAGIC_CMD"
7248   ;;
7249 esac
7250 fi
7251
7252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7253 if test -n "$MAGIC_CMD"; then
7254   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7255 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7256 else
7257   { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7259 fi
7260
7261 if test -z "$lt_cv_path_MAGIC_CMD"; then
7262   if test -n "$ac_tool_prefix"; then
7263     { echo "$as_me:$LINENO: checking for file" >&5
7264 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $MAGIC_CMD in
7269 [\\/*] |  ?:[\\/]*)
7270   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7271   ;;
7272 *)
7273   lt_save_MAGIC_CMD="$MAGIC_CMD"
7274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7275   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7276   for ac_dir in $ac_dummy; do
7277     IFS="$lt_save_ifs"
7278     test -z "$ac_dir" && ac_dir=.
7279     if test -f $ac_dir/file; then
7280       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7281       if test -n "$file_magic_test_file"; then
7282         case $deplibs_check_method in
7283         "file_magic "*)
7284           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7285           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7286           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7287             $EGREP "$file_magic_regex" > /dev/null; then
7288             :
7289           else
7290             cat <<EOF 1>&2
7291
7292 *** Warning: the command libtool uses to detect shared libraries,
7293 *** $file_magic_cmd, produces output that libtool cannot recognize.
7294 *** The result is that libtool may fail to recognize shared libraries
7295 *** as such.  This will affect the creation of libtool libraries that
7296 *** depend on shared libraries, but programs linked with such libtool
7297 *** libraries will work regardless of this problem.  Nevertheless, you
7298 *** may want to report the problem to your system manager and/or to
7299 *** bug-libtool@gnu.org
7300
7301 EOF
7302           fi ;;
7303         esac
7304       fi
7305       break
7306     fi
7307   done
7308   IFS="$lt_save_ifs"
7309   MAGIC_CMD="$lt_save_MAGIC_CMD"
7310   ;;
7311 esac
7312 fi
7313
7314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7315 if test -n "$MAGIC_CMD"; then
7316   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7317 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7318 else
7319   { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7321 fi
7322
7323   else
7324     MAGIC_CMD=:
7325   fi
7326 fi
7327
7328   fi
7329   ;;
7330 esac
7331
7332 enable_dlopen=no
7333 enable_win32_dll=yes
7334
7335 # Check whether --enable-libtool-lock was given.
7336 if test "${enable_libtool_lock+set}" = set; then
7337   enableval=$enable_libtool_lock;
7338 fi
7339
7340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7341
7342
7343 # Check whether --with-pic was given.
7344 if test "${with_pic+set}" = set; then
7345   withval=$with_pic; pic_mode="$withval"
7346 else
7347   pic_mode=default
7348 fi
7349
7350 test -z "$pic_mode" && pic_mode=default
7351
7352 # Use C for the default configuration in the libtool script
7353 tagname=
7354 lt_save_CC="$CC"
7355 ac_ext=c
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360
7361
7362 # Source file extension for C test sources.
7363 ac_ext=c
7364
7365 # Object file extension for compiled C test sources.
7366 objext=o
7367 objext=$objext
7368
7369 # Code to be used in simple compile tests
7370 lt_simple_compile_test_code="int some_variable = 0;\n"
7371
7372 # Code to be used in simple link tests
7373 lt_simple_link_test_code='int main(){return(0);}\n'
7374
7375
7376 # If no C compiler was specified, use CC.
7377 LTCC=${LTCC-"$CC"}
7378
7379 # If no C compiler flags were specified, use CFLAGS.
7380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7381
7382 # Allow CC to be a program name with arguments.
7383 compiler=$CC
7384
7385
7386 # save warnings/boilerplate of simple test code
7387 ac_outfile=conftest.$ac_objext
7388 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7390 _lt_compiler_boilerplate=`cat conftest.err`
7391 $rm conftest*
7392
7393 ac_outfile=conftest.$ac_objext
7394 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7396 _lt_linker_boilerplate=`cat conftest.err`
7397 $rm conftest*
7398
7399
7400
7401 lt_prog_compiler_no_builtin_flag=
7402
7403 if test "$GCC" = yes; then
7404   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7405
7406
7407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   lt_cv_prog_compiler_rtti_exceptions=no
7413   ac_outfile=conftest.$ac_objext
7414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7415    lt_compiler_flag="-fno-rtti -fno-exceptions"
7416    # Insert the option either (1) after the last *FLAGS variable, or
7417    # (2) before a word containing "conftest.", or (3) at the end.
7418    # Note that $ac_compile itself does not contain backslashes and begins
7419    # with a dollar sign (not a hyphen), so the echo should work correctly.
7420    # The option is referenced via a variable to avoid confusing sed.
7421    lt_compile=`echo "$ac_compile" | $SED \
7422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7424    -e 's:$: $lt_compiler_flag:'`
7425    (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
7426    (eval "$lt_compile" 2>conftest.err)
7427    ac_status=$?
7428    cat conftest.err >&5
7429    echo "$as_me:7429: \$? = $ac_status" >&5
7430    if (exit $ac_status) && test -s "$ac_outfile"; then
7431      # The compiler can only warn and ignore the option if not recognized
7432      # So say no if there are warnings other than the usual output.
7433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7436        lt_cv_prog_compiler_rtti_exceptions=yes
7437      fi
7438    fi
7439    $rm conftest*
7440
7441 fi
7442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7444
7445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7446     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7447 else
7448     :
7449 fi
7450
7451 fi
7452
7453 lt_prog_compiler_wl=
7454 lt_prog_compiler_pic=
7455 lt_prog_compiler_static=
7456
7457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7459
7460   if test "$GCC" = yes; then
7461     lt_prog_compiler_wl='-Wl,'
7462     lt_prog_compiler_static='-static'
7463
7464     case $host_os in
7465       aix*)
7466       # All AIX code is PIC.
7467       if test "$host_cpu" = ia64; then
7468         # AIX 5 now supports IA64 processor
7469         lt_prog_compiler_static='-Bstatic'
7470       fi
7471       ;;
7472
7473     amigaos*)
7474       # FIXME: we need at least 68020 code to build shared libraries, but
7475       # adding the `-m68020' flag to GCC prevents building anything better,
7476       # like `-m68040'.
7477       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7478       ;;
7479
7480     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7481       # PIC is the default for these OSes.
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     darwin* | rhapsody*)
7491       # PIC is the default on this platform
7492       # Common symbols not allowed in MH_DYLIB files
7493       lt_prog_compiler_pic='-fno-common'
7494       ;;
7495
7496     interix3*)
7497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7498       # Instead, we relocate shared libraries at runtime.
7499       ;;
7500
7501     msdosdjgpp*)
7502       # Just because we use GCC doesn't mean we suddenly get shared libraries
7503       # on systems that don't support them.
7504       lt_prog_compiler_can_build_shared=no
7505       enable_shared=no
7506       ;;
7507
7508     sysv4*MP*)
7509       if test -d /usr/nec; then
7510         lt_prog_compiler_pic=-Kconform_pic
7511       fi
7512       ;;
7513
7514     hpux*)
7515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7516       # not for PA HP-UX.
7517       case $host_cpu in
7518       hppa*64*|ia64*)
7519         # +Z the default
7520         ;;
7521       *)
7522         lt_prog_compiler_pic='-fPIC'
7523         ;;
7524       esac
7525       ;;
7526
7527     *)
7528       lt_prog_compiler_pic='-fPIC'
7529       ;;
7530     esac
7531   else
7532     # PORTME Check for flag to pass linker flags through the system compiler.
7533     case $host_os in
7534     aix*)
7535       lt_prog_compiler_wl='-Wl,'
7536       if test "$host_cpu" = ia64; then
7537         # AIX 5 now supports IA64 processor
7538         lt_prog_compiler_static='-Bstatic'
7539       else
7540         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7541       fi
7542       ;;
7543       darwin*)
7544         # PIC is the default on this platform
7545         # Common symbols not allowed in MH_DYLIB files
7546        case $cc_basename in
7547          xlc*)
7548          lt_prog_compiler_pic='-qnocommon'
7549          lt_prog_compiler_wl='-Wl,'
7550          ;;
7551        esac
7552        ;;
7553
7554     mingw* | pw32* | os2*)
7555       # This hack is so that the source file can tell whether it is being
7556       # built for inclusion in a dll (and should export symbols for example).
7557       lt_prog_compiler_pic='-DDLL_EXPORT'
7558       ;;
7559
7560     hpux9* | hpux10* | hpux11*)
7561       lt_prog_compiler_wl='-Wl,'
7562       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7563       # not for PA HP-UX.
7564       case $host_cpu in
7565       hppa*64*|ia64*)
7566         # +Z the default
7567         ;;
7568       *)
7569         lt_prog_compiler_pic='+Z'
7570         ;;
7571       esac
7572       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7573       lt_prog_compiler_static='${wl}-a ${wl}archive'
7574       ;;
7575
7576     irix5* | irix6* | nonstopux*)
7577       lt_prog_compiler_wl='-Wl,'
7578       # PIC (with -KPIC) is the default.
7579       lt_prog_compiler_static='-non_shared'
7580       ;;
7581
7582     newsos6)
7583       lt_prog_compiler_pic='-KPIC'
7584       lt_prog_compiler_static='-Bstatic'
7585       ;;
7586
7587     linux* | k*bsd*-gnu)
7588       case $cc_basename in
7589       icc* | ecc*)
7590         lt_prog_compiler_wl='-Wl,'
7591         lt_prog_compiler_pic='-KPIC'
7592         lt_prog_compiler_static='-static'
7593         ;;
7594       pgcc* | pgf77* | pgf90* | pgf95*)
7595         # Portland Group compilers (*not* the Pentium gcc compiler,
7596         # which looks to be a dead project)
7597         lt_prog_compiler_wl='-Wl,'
7598         lt_prog_compiler_pic='-fpic'
7599         lt_prog_compiler_static='-Bstatic'
7600         ;;
7601       ccc*)
7602         lt_prog_compiler_wl='-Wl,'
7603         # All Alpha code is PIC.
7604         lt_prog_compiler_static='-non_shared'
7605         ;;
7606       esac
7607       ;;
7608
7609     osf3* | osf4* | osf5*)
7610       lt_prog_compiler_wl='-Wl,'
7611       # All OSF/1 code is PIC.
7612       lt_prog_compiler_static='-non_shared'
7613       ;;
7614
7615     solaris*)
7616       lt_prog_compiler_pic='-KPIC'
7617       lt_prog_compiler_static='-Bstatic'
7618       case $cc_basename in
7619       f77* | f90* | f95*)
7620         lt_prog_compiler_wl='-Qoption ld ';;
7621       *)
7622         lt_prog_compiler_wl='-Wl,';;
7623       esac
7624       ;;
7625
7626     sunos4*)
7627       lt_prog_compiler_wl='-Qoption ld '
7628       lt_prog_compiler_pic='-PIC'
7629       lt_prog_compiler_static='-Bstatic'
7630       ;;
7631
7632     sysv4 | sysv4.2uw2* | sysv4.3*)
7633       lt_prog_compiler_wl='-Wl,'
7634       lt_prog_compiler_pic='-KPIC'
7635       lt_prog_compiler_static='-Bstatic'
7636       ;;
7637
7638     sysv4*MP*)
7639       if test -d /usr/nec ;then
7640         lt_prog_compiler_pic='-Kconform_pic'
7641         lt_prog_compiler_static='-Bstatic'
7642       fi
7643       ;;
7644
7645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7646       lt_prog_compiler_wl='-Wl,'
7647       lt_prog_compiler_pic='-KPIC'
7648       lt_prog_compiler_static='-Bstatic'
7649       ;;
7650
7651     unicos*)
7652       lt_prog_compiler_wl='-Wl,'
7653       lt_prog_compiler_can_build_shared=no
7654       ;;
7655
7656     uts4*)
7657       lt_prog_compiler_pic='-pic'
7658       lt_prog_compiler_static='-Bstatic'
7659       ;;
7660
7661     *)
7662       lt_prog_compiler_can_build_shared=no
7663       ;;
7664     esac
7665   fi
7666
7667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7668 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7669
7670 #
7671 # Check to make sure the PIC flag actually works.
7672 #
7673 if test -n "$lt_prog_compiler_pic"; then
7674
7675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7677 if test "${lt_prog_compiler_pic_works+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   lt_prog_compiler_pic_works=no
7681   ac_outfile=conftest.$ac_objext
7682    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7683    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7684    # Insert the option either (1) after the last *FLAGS variable, or
7685    # (2) before a word containing "conftest.", or (3) at the end.
7686    # Note that $ac_compile itself does not contain backslashes and begins
7687    # with a dollar sign (not a hyphen), so the echo should work correctly.
7688    # The option is referenced via a variable to avoid confusing sed.
7689    lt_compile=`echo "$ac_compile" | $SED \
7690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7692    -e 's:$: $lt_compiler_flag:'`
7693    (eval echo "\"\$as_me:7693: $lt_compile\"" >&5)
7694    (eval "$lt_compile" 2>conftest.err)
7695    ac_status=$?
7696    cat conftest.err >&5
7697    echo "$as_me:7697: \$? = $ac_status" >&5
7698    if (exit $ac_status) && test -s "$ac_outfile"; then
7699      # The compiler can only warn and ignore the option if not recognized
7700      # So say no if there are warnings other than the usual output.
7701      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7704        lt_prog_compiler_pic_works=yes
7705      fi
7706    fi
7707    $rm conftest*
7708
7709 fi
7710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7711 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7712
7713 if test x"$lt_prog_compiler_pic_works" = xyes; then
7714     case $lt_prog_compiler_pic in
7715      "" | " "*) ;;
7716      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7717      esac
7718 else
7719     lt_prog_compiler_pic=
7720      lt_prog_compiler_can_build_shared=no
7721 fi
7722
7723 fi
7724 case $host_os in
7725   # For platforms which do not support PIC, -DPIC is meaningless:
7726   *djgpp*)
7727     lt_prog_compiler_pic=
7728     ;;
7729   *)
7730     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7731     ;;
7732 esac
7733
7734 #
7735 # Check to make sure the static flag actually works.
7736 #
7737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7740 if test "${lt_prog_compiler_static_works+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   lt_prog_compiler_static_works=no
7744    save_LDFLAGS="$LDFLAGS"
7745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7746    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7748      # The linker can only warn and ignore the option if not recognized
7749      # So say no if there are warnings
7750      if test -s conftest.err; then
7751        # Append any errors to the config.log.
7752        cat conftest.err 1>&5
7753        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7755        if diff conftest.exp conftest.er2 >/dev/null; then
7756          lt_prog_compiler_static_works=yes
7757        fi
7758      else
7759        lt_prog_compiler_static_works=yes
7760      fi
7761    fi
7762    $rm conftest*
7763    LDFLAGS="$save_LDFLAGS"
7764
7765 fi
7766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7767 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7768
7769 if test x"$lt_prog_compiler_static_works" = xyes; then
7770     :
7771 else
7772     lt_prog_compiler_static=
7773 fi
7774
7775
7776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   lt_cv_prog_compiler_c_o=no
7782    $rm -r conftest 2>/dev/null
7783    mkdir conftest
7784    cd conftest
7785    mkdir out
7786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7787
7788    lt_compiler_flag="-o out/conftest2.$ac_objext"
7789    # Insert the option either (1) after the last *FLAGS variable, or
7790    # (2) before a word containing "conftest.", or (3) at the end.
7791    # Note that $ac_compile itself does not contain backslashes and begins
7792    # with a dollar sign (not a hyphen), so the echo should work correctly.
7793    lt_compile=`echo "$ac_compile" | $SED \
7794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796    -e 's:$: $lt_compiler_flag:'`
7797    (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798    (eval "$lt_compile" 2>out/conftest.err)
7799    ac_status=$?
7800    cat out/conftest.err >&5
7801    echo "$as_me:7801: \$? = $ac_status" >&5
7802    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7803    then
7804      # The compiler can only warn and ignore the option if not recognized
7805      # So say no if there are warnings
7806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7807      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7808      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7809        lt_cv_prog_compiler_c_o=yes
7810      fi
7811    fi
7812    chmod u+w . 2>&5
7813    $rm conftest*
7814    # SGI C++ compiler will create directory out/ii_files/ for
7815    # template instantiation
7816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7817    $rm out/* && rmdir out
7818    cd ..
7819    rmdir conftest
7820    $rm conftest*
7821
7822 fi
7823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7825
7826
7827 hard_links="nottested"
7828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7829   # do not overwrite the value of need_locks provided by the user
7830   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7832   hard_links=yes
7833   $rm conftest*
7834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7835   touch conftest.a
7836   ln conftest.a conftest.b 2>&5 || hard_links=no
7837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7838   { echo "$as_me:$LINENO: result: $hard_links" >&5
7839 echo "${ECHO_T}$hard_links" >&6; }
7840   if test "$hard_links" = no; then
7841     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7843     need_locks=warn
7844   fi
7845 else
7846   need_locks=no
7847 fi
7848
7849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7851
7852   runpath_var=
7853   allow_undefined_flag=
7854   enable_shared_with_static_runtimes=no
7855   archive_cmds=
7856   archive_expsym_cmds=
7857   old_archive_From_new_cmds=
7858   old_archive_from_expsyms_cmds=
7859   export_dynamic_flag_spec=
7860   whole_archive_flag_spec=
7861   thread_safe_flag_spec=
7862   hardcode_libdir_flag_spec=
7863   hardcode_libdir_flag_spec_ld=
7864   hardcode_libdir_separator=
7865   hardcode_direct=no
7866   hardcode_minus_L=no
7867   hardcode_shlibpath_var=unsupported
7868   link_all_deplibs=unknown
7869   hardcode_automatic=no
7870   module_cmds=
7871   module_expsym_cmds=
7872   always_export_symbols=no
7873   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7874   # include_expsyms should be a list of space-separated symbols to be *always*
7875   # included in the symbol list
7876   include_expsyms=
7877   # exclude_expsyms can be an extended regexp of symbols to exclude
7878   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7879   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7880   # as well as any symbol that contains `d'.
7881   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7882   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7883   # platforms (ab)use it in PIC code, but their linkers get confused if
7884   # the symbol is explicitly referenced.  Since portable code cannot
7885   # rely on this symbol name, it's probably fine to never include it in
7886   # preloaded symbol tables.
7887   extract_expsyms_cmds=
7888   # Just being paranoid about ensuring that cc_basename is set.
7889   for cc_temp in $compiler""; do
7890   case $cc_temp in
7891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7893     \-*) ;;
7894     *) break;;
7895   esac
7896 done
7897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7898
7899   case $host_os in
7900   cygwin* | mingw* | pw32*)
7901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7902     # When not using gcc, we currently assume that we are using
7903     # Microsoft Visual C++.
7904     if test "$GCC" != yes; then
7905       with_gnu_ld=no
7906     fi
7907     ;;
7908   interix*)
7909     # we just hope/assume this is gcc and not c89 (= MSVC++)
7910     with_gnu_ld=yes
7911     ;;
7912   openbsd*)
7913     with_gnu_ld=no
7914     ;;
7915   esac
7916
7917   ld_shlibs=yes
7918   if test "$with_gnu_ld" = yes; then
7919     # If archive_cmds runs LD, not CC, wlarc should be empty
7920     wlarc='${wl}'
7921
7922     # Set some defaults for GNU ld with shared library support. These
7923     # are reset later if shared libraries are not supported. Putting them
7924     # here allows them to be overridden if necessary.
7925     runpath_var=LD_RUN_PATH
7926     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7927     export_dynamic_flag_spec='${wl}--export-dynamic'
7928     # ancient GNU ld didn't support --whole-archive et. al.
7929     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7930         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7931       else
7932         whole_archive_flag_spec=
7933     fi
7934     supports_anon_versioning=no
7935     case `$LD -v 2>/dev/null` in
7936       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7937       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7938       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7939       *\ 2.11.*) ;; # other 2.11 versions
7940       *) supports_anon_versioning=yes ;;
7941     esac
7942
7943     # See if GNU ld supports shared libraries.
7944     case $host_os in
7945     aix3* | aix4* | aix5*)
7946       # On AIX/PPC, the GNU linker is very broken
7947       if test "$host_cpu" != ia64; then
7948         ld_shlibs=no
7949         cat <<EOF 1>&2
7950
7951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7952 *** to be unable to reliably create shared libraries on AIX.
7953 *** Therefore, libtool is disabling shared libraries support.  If you
7954 *** really care for shared libraries, you may want to modify your PATH
7955 *** so that a non-GNU linker is found, and then restart.
7956
7957 EOF
7958       fi
7959       ;;
7960
7961     amigaos*)
7962       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)'
7963       hardcode_libdir_flag_spec='-L$libdir'
7964       hardcode_minus_L=yes
7965
7966       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7967       # that the semantics of dynamic libraries on AmigaOS, at least up
7968       # to version 4, is to share data among multiple programs linked
7969       # with the same dynamic library.  Since this doesn't match the
7970       # behavior of shared libraries on other platforms, we can't use
7971       # them.
7972       ld_shlibs=no
7973       ;;
7974
7975     beos*)
7976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7977         allow_undefined_flag=unsupported
7978         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7979         # support --undefined.  This deserves some investigation.  FIXME
7980         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981       else
7982         ld_shlibs=no
7983       fi
7984       ;;
7985
7986     cygwin* | mingw* | pw32*)
7987       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7988       # as there is no search path for DLLs.
7989       hardcode_libdir_flag_spec='-L$libdir'
7990       allow_undefined_flag=unsupported
7991       always_export_symbols=no
7992       enable_shared_with_static_runtimes=yes
7993       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7994
7995       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7997         # If the export-symbols file already is a .def file (1st line
7998         # is EXPORTS), use it as is; otherwise, prepend...
7999         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8000           cp $export_symbols $output_objdir/$soname.def;
8001         else
8002           echo EXPORTS > $output_objdir/$soname.def;
8003           cat $export_symbols >> $output_objdir/$soname.def;
8004         fi~
8005         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8006       else
8007         ld_shlibs=no
8008       fi
8009       ;;
8010
8011     interix3*)
8012       hardcode_direct=no
8013       hardcode_shlibpath_var=no
8014       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8015       export_dynamic_flag_spec='${wl}-E'
8016       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8017       # Instead, shared libraries are loaded at an image base (0x10000000 by
8018       # default) and relocated if they conflict, which is a slow very memory
8019       # consuming and fragmenting process.  To avoid this, we pick a random,
8020       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8021       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8022       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8023       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'
8024       ;;
8025
8026     linux* | k*bsd*-gnu)
8027       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8028         tmp_addflag=
8029         case $cc_basename,$host_cpu in
8030         pgcc*)                          # Portland Group C compiler
8031           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'
8032           tmp_addflag=' $pic_flag'
8033           ;;
8034         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8035           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'
8036           tmp_addflag=' $pic_flag -Mnomain' ;;
8037         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8038           tmp_addflag=' -i_dynamic' ;;
8039         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8040           tmp_addflag=' -i_dynamic -nofor_main' ;;
8041         ifc* | ifort*)                  # Intel Fortran compiler
8042           tmp_addflag=' -nofor_main' ;;
8043         esac
8044         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045
8046         if test $supports_anon_versioning = yes; then
8047           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8048   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8049   $echo "local: *; };" >> $output_objdir/$libname.ver~
8050           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8051         fi
8052         link_all_deplibs=no
8053       else
8054         ld_shlibs=no
8055       fi
8056       ;;
8057
8058     netbsd* | netbsdelf*-gnu)
8059       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8060         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8061         wlarc=
8062       else
8063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8064         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8065       fi
8066       ;;
8067
8068     solaris*)
8069       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8070         ld_shlibs=no
8071         cat <<EOF 1>&2
8072
8073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8074 *** create shared libraries on Solaris systems.  Therefore, libtool
8075 *** is disabling shared libraries support.  We urge you to upgrade GNU
8076 *** binutils to release 2.9.1 or newer.  Another option is to modify
8077 *** your PATH or compiler configuration so that the native linker is
8078 *** used, and then restart.
8079
8080 EOF
8081       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8082         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8084       else
8085         ld_shlibs=no
8086       fi
8087       ;;
8088
8089     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8090       case `$LD -v 2>&1` in
8091         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8092         ld_shlibs=no
8093         cat <<_LT_EOF 1>&2
8094
8095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8096 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8097 *** is disabling shared libraries support.  We urge you to upgrade GNU
8098 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8099 *** your PATH or compiler configuration so that the native linker is
8100 *** used, and then restart.
8101
8102 _LT_EOF
8103         ;;
8104         *)
8105           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8106             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8107             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8108             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8109           else
8110             ld_shlibs=no
8111           fi
8112         ;;
8113       esac
8114       ;;
8115
8116     sunos4*)
8117       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8118       wlarc=
8119       hardcode_direct=yes
8120       hardcode_shlibpath_var=no
8121       ;;
8122
8123     *)
8124       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8127       else
8128         ld_shlibs=no
8129       fi
8130       ;;
8131     esac
8132
8133     if test "$ld_shlibs" = no; then
8134       runpath_var=
8135       hardcode_libdir_flag_spec=
8136       export_dynamic_flag_spec=
8137       whole_archive_flag_spec=
8138     fi
8139   else
8140     # PORTME fill in a description of your system's linker (not GNU ld)
8141     case $host_os in
8142     aix3*)
8143       allow_undefined_flag=unsupported
8144       always_export_symbols=yes
8145       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'
8146       # Note: this linker hardcodes the directories in LIBPATH if there
8147       # are no directories specified by -L.
8148       hardcode_minus_L=yes
8149       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8150         # Neither direct hardcoding nor static linking is supported with a
8151         # broken collect2.
8152         hardcode_direct=unsupported
8153       fi
8154       ;;
8155
8156     aix4* | aix5*)
8157       if test "$host_cpu" = ia64; then
8158         # On IA64, the linker does run time linking by default, so we don't
8159         # have to do anything special.
8160         aix_use_runtimelinking=no
8161         exp_sym_flag='-Bexport'
8162         no_entry_flag=""
8163       else
8164         # If we're using GNU nm, then we don't want the "-C" option.
8165         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8166         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8167           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'
8168         else
8169           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'
8170         fi
8171         aix_use_runtimelinking=no
8172
8173         # Test if we are trying to use run time linking or normal
8174         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8175         # need to do runtime linking.
8176         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8177           for ld_flag in $LDFLAGS; do
8178           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8179             aix_use_runtimelinking=yes
8180             break
8181           fi
8182           done
8183           ;;
8184         esac
8185
8186         exp_sym_flag='-bexport'
8187         no_entry_flag='-bnoentry'
8188       fi
8189
8190       # When large executables or shared objects are built, AIX ld can
8191       # have problems creating the table of contents.  If linking a library
8192       # or program results in "error TOC overflow" add -mminimal-toc to
8193       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8194       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8195
8196       archive_cmds=''
8197       hardcode_direct=yes
8198       hardcode_libdir_separator=':'
8199       link_all_deplibs=yes
8200
8201       if test "$GCC" = yes; then
8202         case $host_os in aix4.[012]|aix4.[012].*)
8203         # We only want to do this on AIX 4.2 and lower, the check
8204         # below for broken collect2 doesn't work under 4.3+
8205           collect2name=`${CC} -print-prog-name=collect2`
8206           if test -f "$collect2name" && \
8207            strings "$collect2name" | grep resolve_lib_name >/dev/null
8208           then
8209           # We have reworked collect2
8210           hardcode_direct=yes
8211           else
8212           # We have old collect2
8213           hardcode_direct=unsupported
8214           # It fails to find uninstalled libraries when the uninstalled
8215           # path is not listed in the libpath.  Setting hardcode_minus_L
8216           # to unsupported forces relinking
8217           hardcode_minus_L=yes
8218           hardcode_libdir_flag_spec='-L$libdir'
8219           hardcode_libdir_separator=
8220           fi
8221           ;;
8222         esac
8223         shared_flag='-shared'
8224         if test "$aix_use_runtimelinking" = yes; then
8225           shared_flag="$shared_flag "'${wl}-G'
8226         fi
8227       else
8228         # not using gcc
8229         if test "$host_cpu" = ia64; then
8230         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8231         # chokes on -Wl,-G. The following line is correct:
8232           shared_flag='-G'
8233         else
8234           if test "$aix_use_runtimelinking" = yes; then
8235             shared_flag='${wl}-G'
8236           else
8237             shared_flag='${wl}-bM:SRE'
8238           fi
8239         fi
8240       fi
8241
8242       # It seems that -bexpall does not export symbols beginning with
8243       # underscore (_), so it is better to generate a list of symbols to export.
8244       always_export_symbols=yes
8245       if test "$aix_use_runtimelinking" = yes; then
8246         # Warning - without using the other runtime loading flags (-brtl),
8247         # -berok will link without error, but may produce a broken library.
8248         allow_undefined_flag='-berok'
8249        # Determine the default libpath from the value encoded in an empty executable.
8250        cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256
8257 int
8258 main ()
8259 {
8260
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (ac_try="$ac_link"
8267 case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272   (eval "$ac_link") 2>conftest.er1
8273   ac_status=$?
8274   grep -v '^ *+' conftest.er1 >conftest.err
8275   rm -f conftest.er1
8276   cat conftest.err >&5
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); } && {
8279          test -z "$ac_c_werror_flag" ||
8280          test ! -s conftest.err
8281        } && test -s conftest$ac_exeext &&
8282        $as_test_x conftest$ac_exeext; then
8283
8284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8285 }'`
8286 # Check for a 64-bit object if we didn't find anything.
8287 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; }
8288 }'`; fi
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8297       conftest$ac_exeext conftest.$ac_ext
8298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8299
8300        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8301         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"
8302        else
8303         if test "$host_cpu" = ia64; then
8304           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8305           allow_undefined_flag="-z nodefs"
8306           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"
8307         else
8308          # Determine the default libpath from the value encoded in an empty executable.
8309          cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h.  */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h.  */
8315
8316 int
8317 main ()
8318 {
8319
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (ac_try="$ac_link"
8326 case "(($ac_try" in
8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328   *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331   (eval "$ac_link") 2>conftest.er1
8332   ac_status=$?
8333   grep -v '^ *+' conftest.er1 >conftest.err
8334   rm -f conftest.er1
8335   cat conftest.err >&5
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } && {
8338          test -z "$ac_c_werror_flag" ||
8339          test ! -s conftest.err
8340        } && test -s conftest$ac_exeext &&
8341        $as_test_x conftest$ac_exeext; then
8342
8343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8344 }'`
8345 # Check for a 64-bit object if we didn't find anything.
8346 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; }
8347 }'`; fi
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352
8353 fi
8354
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8356       conftest$ac_exeext conftest.$ac_ext
8357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8358
8359          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8360           # Warning - without using the other run time loading flags,
8361           # -berok will link without error, but may produce a broken library.
8362           no_undefined_flag=' ${wl}-bernotok'
8363           allow_undefined_flag=' ${wl}-berok'
8364           # Exported symbols can be pulled into shared objects from archives
8365           whole_archive_flag_spec='$convenience'
8366           archive_cmds_need_lc=yes
8367           # This is similar to how AIX traditionally builds its shared libraries.
8368           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'
8369         fi
8370       fi
8371       ;;
8372
8373     amigaos*)
8374       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)'
8375       hardcode_libdir_flag_spec='-L$libdir'
8376       hardcode_minus_L=yes
8377       # see comment about different semantics on the GNU ld section
8378       ld_shlibs=no
8379       ;;
8380
8381     bsdi[45]*)
8382       export_dynamic_flag_spec=-rdynamic
8383       ;;
8384
8385     cygwin* | mingw* | pw32*)
8386       # When not using gcc, we currently assume that we are using
8387       # Microsoft Visual C++.
8388       # hardcode_libdir_flag_spec is actually meaningless, as there is
8389       # no search path for DLLs.
8390       hardcode_libdir_flag_spec=' '
8391       allow_undefined_flag=unsupported
8392       # Tell ltmain to make .lib files, not .a files.
8393       libext=lib
8394       # Tell ltmain to make .dll files, not .so files.
8395       shrext_cmds=".dll"
8396       # FIXME: Setting linknames here is a bad hack.
8397       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8398       # The linker will automatically build a .lib file if we build a DLL.
8399       old_archive_From_new_cmds='true'
8400       # FIXME: Should let the user specify the lib program.
8401       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8402       fix_srcfile_path='`cygpath -w "$srcfile"`'
8403       enable_shared_with_static_runtimes=yes
8404       ;;
8405
8406     darwin* | rhapsody*)
8407       case $host_os in
8408         rhapsody* | darwin1.[012])
8409          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8410          ;;
8411        *) # Darwin 1.3 on
8412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8413            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8414          else
8415            case ${MACOSX_DEPLOYMENT_TARGET} in
8416              10.[012])
8417                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8418                ;;
8419              10.*)
8420                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8421                ;;
8422            esac
8423          fi
8424          ;;
8425       esac
8426       archive_cmds_need_lc=no
8427       hardcode_direct=no
8428       hardcode_automatic=yes
8429       hardcode_shlibpath_var=unsupported
8430       whole_archive_flag_spec=''
8431       link_all_deplibs=yes
8432     if test "$GCC" = yes ; then
8433         output_verbose_link_cmd='echo'
8434         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8435       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8436       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8437       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}'
8438       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}'
8439     else
8440       case $cc_basename in
8441         xlc*)
8442          output_verbose_link_cmd='echo'
8443          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8444          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8445           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8446          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}'
8447           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}'
8448           ;;
8449        *)
8450          ld_shlibs=no
8451           ;;
8452       esac
8453     fi
8454       ;;
8455
8456     dgux*)
8457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458       hardcode_libdir_flag_spec='-L$libdir'
8459       hardcode_shlibpath_var=no
8460       ;;
8461
8462     freebsd1*)
8463       ld_shlibs=no
8464       ;;
8465
8466     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8467     # support.  Future versions do this automatically, but an explicit c++rt0.o
8468     # does not break anything, and helps significantly (at the cost of a little
8469     # extra space).
8470     freebsd2.2*)
8471       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8472       hardcode_libdir_flag_spec='-R$libdir'
8473       hardcode_direct=yes
8474       hardcode_shlibpath_var=no
8475       ;;
8476
8477     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8478     freebsd2*)
8479       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8480       hardcode_direct=yes
8481       hardcode_minus_L=yes
8482       hardcode_shlibpath_var=no
8483       ;;
8484
8485     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8486     freebsd* | dragonfly*)
8487       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8488       hardcode_libdir_flag_spec='-R$libdir'
8489       hardcode_direct=yes
8490       hardcode_shlibpath_var=no
8491       ;;
8492
8493     hpux9*)
8494       if test "$GCC" = yes; then
8495         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'
8496       else
8497         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'
8498       fi
8499       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8500       hardcode_libdir_separator=:
8501       hardcode_direct=yes
8502
8503       # hardcode_minus_L: Not really in the search PATH,
8504       # but as the default location of the library.
8505       hardcode_minus_L=yes
8506       export_dynamic_flag_spec='${wl}-E'
8507       ;;
8508
8509     hpux10*)
8510       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8511         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8512       else
8513         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8514       fi
8515       if test "$with_gnu_ld" = no; then
8516         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8517         hardcode_libdir_separator=:
8518
8519         hardcode_direct=yes
8520         export_dynamic_flag_spec='${wl}-E'
8521
8522         # hardcode_minus_L: Not really in the search PATH,
8523         # but as the default location of the library.
8524         hardcode_minus_L=yes
8525       fi
8526       ;;
8527
8528     hpux11*)
8529       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8530         case $host_cpu in
8531         hppa*64*)
8532           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533           ;;
8534         ia64*)
8535           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8536           ;;
8537         *)
8538           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8539           ;;
8540         esac
8541       else
8542         case $host_cpu in
8543         hppa*64*)
8544           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545           ;;
8546         ia64*)
8547           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8548           ;;
8549         *)
8550           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551           ;;
8552         esac
8553       fi
8554       if test "$with_gnu_ld" = no; then
8555         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8556         hardcode_libdir_separator=:
8557
8558         case $host_cpu in
8559         hppa*64*|ia64*)
8560           hardcode_libdir_flag_spec_ld='+b $libdir'
8561           hardcode_direct=no
8562           hardcode_shlibpath_var=no
8563           ;;
8564         *)
8565           hardcode_direct=yes
8566           export_dynamic_flag_spec='${wl}-E'
8567
8568           # hardcode_minus_L: Not really in the search PATH,
8569           # but as the default location of the library.
8570           hardcode_minus_L=yes
8571           ;;
8572         esac
8573       fi
8574       ;;
8575
8576     irix5* | irix6* | nonstopux*)
8577       if test "$GCC" = yes; then
8578         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'
8579       else
8580         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'
8581         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8582       fi
8583       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8584       hardcode_libdir_separator=:
8585       link_all_deplibs=yes
8586       ;;
8587
8588     netbsd* | netbsdelf*-gnu)
8589       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8590         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8591       else
8592         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8593       fi
8594       hardcode_libdir_flag_spec='-R$libdir'
8595       hardcode_direct=yes
8596       hardcode_shlibpath_var=no
8597       ;;
8598
8599     newsos6)
8600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601       hardcode_direct=yes
8602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603       hardcode_libdir_separator=:
8604       hardcode_shlibpath_var=no
8605       ;;
8606
8607     openbsd*)
8608       hardcode_direct=yes
8609       hardcode_shlibpath_var=no
8610       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8611         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8612         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8613         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8614         export_dynamic_flag_spec='${wl}-E'
8615       else
8616        case $host_os in
8617          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8618            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8619            hardcode_libdir_flag_spec='-R$libdir'
8620            ;;
8621          *)
8622            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8623            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8624            ;;
8625        esac
8626       fi
8627       ;;
8628
8629     os2*)
8630       hardcode_libdir_flag_spec='-L$libdir'
8631       hardcode_minus_L=yes
8632       allow_undefined_flag=unsupported
8633       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'
8634       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8635       ;;
8636
8637     osf3*)
8638       if test "$GCC" = yes; then
8639         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8640         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'
8641       else
8642         allow_undefined_flag=' -expect_unresolved \*'
8643         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'
8644       fi
8645       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646       hardcode_libdir_separator=:
8647       ;;
8648
8649     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8650       if test "$GCC" = yes; then
8651         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8652         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'
8653         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8654       else
8655         allow_undefined_flag=' -expect_unresolved \*'
8656         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'
8657         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8658         $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'
8659
8660         # Both c and cxx compiler support -rpath directly
8661         hardcode_libdir_flag_spec='-rpath $libdir'
8662       fi
8663       hardcode_libdir_separator=:
8664       ;;
8665
8666     solaris*)
8667       no_undefined_flag=' -z text'
8668       if test "$GCC" = yes; then
8669         wlarc='${wl}'
8670         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8671         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8672           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8673       else
8674         wlarc=''
8675         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8677         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8678       fi
8679       hardcode_libdir_flag_spec='-R$libdir'
8680       hardcode_shlibpath_var=no
8681       case $host_os in
8682       solaris2.[0-5] | solaris2.[0-5].*) ;;
8683       *)
8684         # The compiler driver will combine linker options so we
8685         # cannot just pass the convience library names through
8686         # without $wl, iff we do not link with $LD.
8687         # Luckily, gcc supports the same syntax we need for Sun Studio.
8688         # Supported since Solaris 2.6 (maybe 2.5.1?)
8689         case $wlarc in
8690         '')
8691           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8692         *)
8693           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' ;;
8694         esac ;;
8695       esac
8696       link_all_deplibs=yes
8697       ;;
8698
8699     sunos4*)
8700       if test "x$host_vendor" = xsequent; then
8701         # Use $CC to link under sequent, because it throws in some extra .o
8702         # files that make .init and .fini sections work.
8703         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8704       else
8705         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8706       fi
8707       hardcode_libdir_flag_spec='-L$libdir'
8708       hardcode_direct=yes
8709       hardcode_minus_L=yes
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     sysv4)
8714       case $host_vendor in
8715         sni)
8716           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717           hardcode_direct=yes # is this really true???
8718         ;;
8719         siemens)
8720           ## LD is ld it makes a PLAMLIB
8721           ## CC just makes a GrossModule.
8722           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8723           reload_cmds='$CC -r -o $output$reload_objs'
8724           hardcode_direct=no
8725         ;;
8726         motorola)
8727           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8728           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8729         ;;
8730       esac
8731       runpath_var='LD_RUN_PATH'
8732       hardcode_shlibpath_var=no
8733       ;;
8734
8735     sysv4.3*)
8736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737       hardcode_shlibpath_var=no
8738       export_dynamic_flag_spec='-Bexport'
8739       ;;
8740
8741     sysv4*MP*)
8742       if test -d /usr/nec; then
8743         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744         hardcode_shlibpath_var=no
8745         runpath_var=LD_RUN_PATH
8746         hardcode_runpath_var=yes
8747         ld_shlibs=yes
8748       fi
8749       ;;
8750
8751     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8752       no_undefined_flag='${wl}-z,text'
8753       archive_cmds_need_lc=no
8754       hardcode_shlibpath_var=no
8755       runpath_var='LD_RUN_PATH'
8756
8757       if test "$GCC" = yes; then
8758         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8759         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8760       else
8761         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8762         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8763       fi
8764       ;;
8765
8766     sysv5* | sco3.2v5* | sco5v6*)
8767       # Note: We can NOT use -z defs as we might desire, because we do not
8768       # link with -lc, and that would cause any symbols used from libc to
8769       # always be unresolved, which means just about no library would
8770       # ever link correctly.  If we're not using GNU ld we use -z text
8771       # though, which does catch some bad symbols but isn't as heavy-handed
8772       # as -z defs.
8773       no_undefined_flag='${wl}-z,text'
8774       allow_undefined_flag='${wl}-z,nodefs'
8775       archive_cmds_need_lc=no
8776       hardcode_shlibpath_var=no
8777       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8778       hardcode_libdir_separator=':'
8779       link_all_deplibs=yes
8780       export_dynamic_flag_spec='${wl}-Bexport'
8781       runpath_var='LD_RUN_PATH'
8782
8783       if test "$GCC" = yes; then
8784         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8785         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786       else
8787         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8788         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789       fi
8790       ;;
8791
8792     uts4*)
8793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794       hardcode_libdir_flag_spec='-L$libdir'
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     *)
8799       ld_shlibs=no
8800       ;;
8801     esac
8802   fi
8803
8804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8805 echo "${ECHO_T}$ld_shlibs" >&6; }
8806 test "$ld_shlibs" = no && can_build_shared=no
8807
8808 #
8809 # Do we need to explicitly link libc?
8810 #
8811 case "x$archive_cmds_need_lc" in
8812 x|xyes)
8813   # Assume -lc should be added
8814   archive_cmds_need_lc=yes
8815
8816   if test "$enable_shared" = yes && test "$GCC" = yes; then
8817     case $archive_cmds in
8818     *'~'*)
8819       # FIXME: we may have to deal with multi-command sequences.
8820       ;;
8821     '$CC '*)
8822       # Test whether the compiler implicitly links with -lc since on some
8823       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8824       # to ld, don't add -lc before -lgcc.
8825       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8827       $rm conftest*
8828       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8829
8830       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831   (eval $ac_compile) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } 2>conftest.err; then
8835         soname=conftest
8836         lib=conftest
8837         libobjs=conftest.$ac_objext
8838         deplibs=
8839         wl=$lt_prog_compiler_wl
8840         pic_flag=$lt_prog_compiler_pic
8841         compiler_flags=-v
8842         linker_flags=-v
8843         verstring=
8844         output_objdir=.
8845         libname=conftest
8846         lt_save_allow_undefined_flag=$allow_undefined_flag
8847         allow_undefined_flag=
8848         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8849   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }
8853         then
8854           archive_cmds_need_lc=no
8855         else
8856           archive_cmds_need_lc=yes
8857         fi
8858         allow_undefined_flag=$lt_save_allow_undefined_flag
8859       else
8860         cat conftest.err 1>&5
8861       fi
8862       $rm conftest*
8863       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8864 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8865       ;;
8866     esac
8867   fi
8868   ;;
8869 esac
8870
8871 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8873 library_names_spec=
8874 libname_spec='lib$name'
8875 soname_spec=
8876 shrext_cmds=".so"
8877 postinstall_cmds=
8878 postuninstall_cmds=
8879 finish_cmds=
8880 finish_eval=
8881 shlibpath_var=
8882 shlibpath_overrides_runpath=unknown
8883 version_type=none
8884 dynamic_linker="$host_os ld.so"
8885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8886 if test "$GCC" = yes; then
8887   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8888   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8889     # if the path contains ";" then we assume it to be the separator
8890     # otherwise default to the standard path separator (i.e. ":") - it is
8891     # assumed that no part of a normal pathname contains ";" but that should
8892     # okay in the real world where ";" in dirpaths is itself problematic.
8893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8894   else
8895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8896   fi
8897 else
8898   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8899 fi
8900 need_lib_prefix=unknown
8901 hardcode_into_libs=no
8902
8903 # when you set need_version to no, make sure it does not cause -set_version
8904 # flags to be left without arguments
8905 need_version=unknown
8906
8907 case $host_os in
8908 aix3*)
8909   version_type=linux
8910   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8911   shlibpath_var=LIBPATH
8912
8913   # AIX 3 has no versioning support, so we append a major version to the name.
8914   soname_spec='${libname}${release}${shared_ext}$major'
8915   ;;
8916
8917 aix4* | aix5*)
8918   version_type=linux
8919   need_lib_prefix=no
8920   need_version=no
8921   hardcode_into_libs=yes
8922   if test "$host_cpu" = ia64; then
8923     # AIX 5 supports IA64
8924     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8925     shlibpath_var=LD_LIBRARY_PATH
8926   else
8927     # With GCC up to 2.95.x, collect2 would create an import file
8928     # for dependence libraries.  The import file would start with
8929     # the line `#! .'.  This would cause the generated library to
8930     # depend on `.', always an invalid library.  This was fixed in
8931     # development snapshots of GCC prior to 3.0.
8932     case $host_os in
8933       aix4 | aix4.[01] | aix4.[01].*)
8934       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8935            echo ' yes '
8936            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8937         :
8938       else
8939         can_build_shared=no
8940       fi
8941       ;;
8942     esac
8943     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8944     # soname into executable. Probably we can add versioning support to
8945     # collect2, so additional links can be useful in future.
8946     if test "$aix_use_runtimelinking" = yes; then
8947       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8948       # instead of lib<name>.a to let people know that these are not
8949       # typical AIX shared libraries.
8950       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951     else
8952       # We preserve .a as extension for shared libraries through AIX4.2
8953       # and later when we are not doing run time linking.
8954       library_names_spec='${libname}${release}.a $libname.a'
8955       soname_spec='${libname}${release}${shared_ext}$major'
8956     fi
8957     shlibpath_var=LIBPATH
8958   fi
8959   ;;
8960
8961 amigaos*)
8962   library_names_spec='$libname.ixlibrary $libname.a'
8963   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8964   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'
8965   ;;
8966
8967 beos*)
8968   library_names_spec='${libname}${shared_ext}'
8969   dynamic_linker="$host_os ld.so"
8970   shlibpath_var=LIBRARY_PATH
8971   ;;
8972
8973 bsdi[45]*)
8974   version_type=linux
8975   need_version=no
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977   soname_spec='${libname}${release}${shared_ext}$major'
8978   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8979   shlibpath_var=LD_LIBRARY_PATH
8980   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8981   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8982   # the default ld.so.conf also contains /usr/contrib/lib and
8983   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8984   # libtool to hard-code these into programs
8985   ;;
8986
8987 cygwin* | mingw* | pw32*)
8988   version_type=windows
8989   shrext_cmds=".dll"
8990   need_version=no
8991   need_lib_prefix=no
8992
8993   case $GCC,$host_os in
8994   yes,cygwin* | yes,mingw* | yes,pw32*)
8995     library_names_spec='$libname.dll.a'
8996     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997     postinstall_cmds='base_file=`basename \${file}`~
8998       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8999       dldir=$destdir/`dirname \$dlpath`~
9000       test -d \$dldir || mkdir -p \$dldir~
9001       $install_prog $dir/$dlname \$dldir/$dlname~
9002       chmod a+x \$dldir/$dlname'
9003     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9004       dlpath=$dir/\$dldll~
9005        $rm \$dlpath'
9006     shlibpath_overrides_runpath=yes
9007
9008     case $host_os in
9009     cygwin*)
9010       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9011       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9012       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9013       ;;
9014     mingw*)
9015       # MinGW DLLs use traditional 'lib' prefix
9016       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9017       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9018       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9019         # It is most probably a Windows format PATH printed by
9020         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9021         # path with ; separators, and with drive letters. We can handle the
9022         # drive letters (cygwin fileutils understands them), so leave them,
9023         # especially as we might pass files found there to a mingw objdump,
9024         # which wouldn't understand a cygwinified path. Ahh.
9025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9026       else
9027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9028       fi
9029       ;;
9030     pw32*)
9031       # pw32 DLLs use 'pw' prefix rather than 'lib'
9032       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9033       ;;
9034     esac
9035     ;;
9036
9037   *)
9038     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9039     ;;
9040   esac
9041   dynamic_linker='Win32 ld.exe'
9042   # FIXME: first we should search . and the directory the executable is in
9043   shlibpath_var=PATH
9044   ;;
9045
9046 darwin* | rhapsody*)
9047   dynamic_linker="$host_os dyld"
9048   version_type=darwin
9049   need_lib_prefix=no
9050   need_version=no
9051   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9052   soname_spec='${libname}${release}${major}$shared_ext'
9053   shlibpath_overrides_runpath=yes
9054   shlibpath_var=DYLD_LIBRARY_PATH
9055   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9056   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9057   if test "$GCC" = yes; then
9058     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"`
9059   else
9060     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9061   fi
9062   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9063   ;;
9064
9065 dgux*)
9066   version_type=linux
9067   need_lib_prefix=no
9068   need_version=no
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   ;;
9073
9074 freebsd1*)
9075   dynamic_linker=no
9076   ;;
9077
9078 freebsd* | dragonfly*)
9079   # DragonFly does not have aout.  When/if they implement a new
9080   # versioning mechanism, adjust this.
9081   if test -x /usr/bin/objformat; then
9082     objformat=`/usr/bin/objformat`
9083   else
9084     case $host_os in
9085     freebsd[123]*) objformat=aout ;;
9086     *) objformat=elf ;;
9087     esac
9088   fi
9089   version_type=freebsd-$objformat
9090   case $version_type in
9091     freebsd-elf*)
9092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093       need_version=no
9094       need_lib_prefix=no
9095       ;;
9096     freebsd-*)
9097       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9098       need_version=yes
9099       ;;
9100   esac
9101   shlibpath_var=LD_LIBRARY_PATH
9102   case $host_os in
9103   freebsd2*)
9104     shlibpath_overrides_runpath=yes
9105     ;;
9106   freebsd3.[01]* | freebsdelf3.[01]*)
9107     shlibpath_overrides_runpath=yes
9108     hardcode_into_libs=yes
9109     ;;
9110   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9111   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9112     shlibpath_overrides_runpath=no
9113     hardcode_into_libs=yes
9114     ;;
9115   freebsd*) # from 4.6 on
9116     shlibpath_overrides_runpath=yes
9117     hardcode_into_libs=yes
9118     ;;
9119   esac
9120   ;;
9121
9122 gnu*)
9123   version_type=linux
9124   need_lib_prefix=no
9125   need_version=no
9126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9127   soname_spec='${libname}${release}${shared_ext}$major'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   hardcode_into_libs=yes
9130   ;;
9131
9132 hpux9* | hpux10* | hpux11*)
9133   # Give a soname corresponding to the major version so that dld.sl refuses to
9134   # link against other versions.
9135   version_type=sunos
9136   need_lib_prefix=no
9137   need_version=no
9138   case $host_cpu in
9139   ia64*)
9140     shrext_cmds='.so'
9141     hardcode_into_libs=yes
9142     dynamic_linker="$host_os dld.so"
9143     shlibpath_var=LD_LIBRARY_PATH
9144     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146     soname_spec='${libname}${release}${shared_ext}$major'
9147     if test "X$HPUX_IA64_MODE" = X32; then
9148       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9149     else
9150       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9151     fi
9152     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9153     ;;
9154    hppa*64*)
9155      shrext_cmds='.sl'
9156      hardcode_into_libs=yes
9157      dynamic_linker="$host_os dld.sl"
9158      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9159      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9160      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161      soname_spec='${libname}${release}${shared_ext}$major'
9162      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9163      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9164      ;;
9165    *)
9166     shrext_cmds='.sl'
9167     dynamic_linker="$host_os dld.sl"
9168     shlibpath_var=SHLIB_PATH
9169     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171     soname_spec='${libname}${release}${shared_ext}$major'
9172     ;;
9173   esac
9174   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9175   postinstall_cmds='chmod 555 $lib'
9176   ;;
9177
9178 interix3*)
9179   version_type=linux
9180   need_lib_prefix=no
9181   need_version=no
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9185   shlibpath_var=LD_LIBRARY_PATH
9186   shlibpath_overrides_runpath=no
9187   hardcode_into_libs=yes
9188   ;;
9189
9190 irix5* | irix6* | nonstopux*)
9191   case $host_os in
9192     nonstopux*) version_type=nonstopux ;;
9193     *)
9194         if test "$lt_cv_prog_gnu_ld" = yes; then
9195                 version_type=linux
9196         else
9197                 version_type=irix
9198         fi ;;
9199   esac
9200   need_lib_prefix=no
9201   need_version=no
9202   soname_spec='${libname}${release}${shared_ext}$major'
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9204   case $host_os in
9205   irix5* | nonstopux*)
9206     libsuff= shlibsuff=
9207     ;;
9208   *)
9209     case $LD in # libtool.m4 will add one of these switches to LD
9210     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9211       libsuff= shlibsuff= libmagic=32-bit;;
9212     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9213       libsuff=32 shlibsuff=N32 libmagic=N32;;
9214     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9215       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9216     *) libsuff= shlibsuff= libmagic=never-match;;
9217     esac
9218     ;;
9219   esac
9220   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9221   shlibpath_overrides_runpath=no
9222   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9223   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9224   hardcode_into_libs=yes
9225   ;;
9226
9227 # No shared lib support for Linux oldld, aout, or coff.
9228 linux*oldld* | linux*aout* | linux*coff*)
9229   dynamic_linker=no
9230   ;;
9231
9232 # This must be Linux ELF.
9233 linux* | k*bsd*-gnu)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9240   shlibpath_var=LD_LIBRARY_PATH
9241   shlibpath_overrides_runpath=no
9242   # This implies no fast_install, which is unacceptable.
9243   # Some rework will be needed to allow for fast_install
9244   # before this can be enabled.
9245   hardcode_into_libs=yes
9246
9247   # Append ld.so.conf contents to the search path
9248   if test -f /etc/ld.so.conf; then
9249     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' ' '`
9250     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9251   fi
9252
9253   # We used to test for /lib/ld.so.1 and disable shared libraries on
9254   # powerpc, because MkLinux only supported shared libraries with the
9255   # GNU dynamic linker.  Since this was broken with cross compilers,
9256   # most powerpc-linux boxes support dynamic linking these days and
9257   # people can always --disable-shared, the test was removed, and we
9258   # assume the GNU/Linux dynamic linker is in use.
9259   dynamic_linker='GNU/Linux ld.so'
9260   ;;
9261
9262 netbsdelf*-gnu)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   shlibpath_overrides_runpath=no
9270   hardcode_into_libs=yes
9271   dynamic_linker='NetBSD ld.elf_so'
9272   ;;
9273
9274 netbsd*)
9275   version_type=sunos
9276   need_lib_prefix=no
9277   need_version=no
9278   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9281     dynamic_linker='NetBSD (a.out) ld.so'
9282   else
9283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284     soname_spec='${libname}${release}${shared_ext}$major'
9285     dynamic_linker='NetBSD ld.elf_so'
9286   fi
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=yes
9289   hardcode_into_libs=yes
9290   ;;
9291
9292 newsos6)
9293   version_type=linux
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   shlibpath_overrides_runpath=yes
9297   ;;
9298
9299 nto-qnx*)
9300   version_type=linux
9301   need_lib_prefix=no
9302   need_version=no
9303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   shlibpath_overrides_runpath=yes
9307   ;;
9308
9309 openbsd*)
9310   version_type=sunos
9311   sys_lib_dlsearch_path_spec="/usr/lib"
9312   need_lib_prefix=no
9313   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9314   case $host_os in
9315     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9316     *)                         need_version=no  ;;
9317   esac
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9319   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9320   shlibpath_var=LD_LIBRARY_PATH
9321   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9322     case $host_os in
9323       openbsd2.[89] | openbsd2.[89].*)
9324         shlibpath_overrides_runpath=no
9325         ;;
9326       *)
9327         shlibpath_overrides_runpath=yes
9328         ;;
9329       esac
9330   else
9331     shlibpath_overrides_runpath=yes
9332   fi
9333   ;;
9334
9335 os2*)
9336   libname_spec='$name'
9337   shrext_cmds=".dll"
9338   need_lib_prefix=no
9339   library_names_spec='$libname${shared_ext} $libname.a'
9340   dynamic_linker='OS/2 ld.exe'
9341   shlibpath_var=LIBPATH
9342   ;;
9343
9344 osf3* | osf4* | osf5*)
9345   version_type=osf
9346   need_lib_prefix=no
9347   need_version=no
9348   soname_spec='${libname}${release}${shared_ext}$major'
9349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9352   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9353   ;;
9354
9355 solaris*)
9356   version_type=linux
9357   need_lib_prefix=no
9358   need_version=no
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360   soname_spec='${libname}${release}${shared_ext}$major'
9361   shlibpath_var=LD_LIBRARY_PATH
9362   shlibpath_overrides_runpath=yes
9363   hardcode_into_libs=yes
9364   # ldd complains unless libraries are executable
9365   postinstall_cmds='chmod +x $lib'
9366   ;;
9367
9368 sunos4*)
9369   version_type=sunos
9370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9371   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   shlibpath_overrides_runpath=yes
9374   if test "$with_gnu_ld" = yes; then
9375     need_lib_prefix=no
9376   fi
9377   need_version=yes
9378   ;;
9379
9380 sysv4 | sysv4.3*)
9381   version_type=linux
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   case $host_vendor in
9386     sni)
9387       shlibpath_overrides_runpath=no
9388       need_lib_prefix=no
9389       export_dynamic_flag_spec='${wl}-Blargedynsym'
9390       runpath_var=LD_RUN_PATH
9391       ;;
9392     siemens)
9393       need_lib_prefix=no
9394       ;;
9395     motorola)
9396       need_lib_prefix=no
9397       need_version=no
9398       shlibpath_overrides_runpath=no
9399       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9400       ;;
9401   esac
9402   ;;
9403
9404 sysv4*MP*)
9405   if test -d /usr/nec ;then
9406     version_type=linux
9407     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9408     soname_spec='$libname${shared_ext}.$major'
9409     shlibpath_var=LD_LIBRARY_PATH
9410   fi
9411   ;;
9412
9413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9414   version_type=freebsd-elf
9415   need_lib_prefix=no
9416   need_version=no
9417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9418   soname_spec='${libname}${release}${shared_ext}$major'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   hardcode_into_libs=yes
9421   if test "$with_gnu_ld" = yes; then
9422     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9423     shlibpath_overrides_runpath=no
9424   else
9425     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9426     shlibpath_overrides_runpath=yes
9427     case $host_os in
9428       sco3.2v5*)
9429         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9430         ;;
9431     esac
9432   fi
9433   sys_lib_dlsearch_path_spec='/usr/lib'
9434   ;;
9435
9436 uts4*)
9437   version_type=linux
9438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439   soname_spec='${libname}${release}${shared_ext}$major'
9440   shlibpath_var=LD_LIBRARY_PATH
9441   ;;
9442
9443 *)
9444   dynamic_linker=no
9445   ;;
9446 esac
9447 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9448 echo "${ECHO_T}$dynamic_linker" >&6; }
9449 test "$dynamic_linker" = no && can_build_shared=no
9450
9451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9452 if test "$GCC" = yes; then
9453   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9454 fi
9455
9456 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9457 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9458 hardcode_action=
9459 if test -n "$hardcode_libdir_flag_spec" || \
9460    test -n "$runpath_var" || \
9461    test "X$hardcode_automatic" = "Xyes" ; then
9462
9463   # We can hardcode non-existant directories.
9464   if test "$hardcode_direct" != no &&
9465      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9466      # have to relink, otherwise we might link with an installed library
9467      # when we should be linking with a yet-to-be-installed one
9468      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9469      test "$hardcode_minus_L" != no; then
9470     # Linking always hardcodes the temporary library directory.
9471     hardcode_action=relink
9472   else
9473     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9474     hardcode_action=immediate
9475   fi
9476 else
9477   # We cannot hardcode anything, or else we can only hardcode existing
9478   # directories.
9479   hardcode_action=unsupported
9480 fi
9481 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9482 echo "${ECHO_T}$hardcode_action" >&6; }
9483
9484 if test "$hardcode_action" = relink; then
9485   # Fast installation is not supported
9486   enable_fast_install=no
9487 elif test "$shlibpath_overrides_runpath" = yes ||
9488      test "$enable_shared" = no; then
9489   # Fast installation is not necessary
9490   enable_fast_install=needless
9491 fi
9492
9493 striplib=
9494 old_striplib=
9495 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9496 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9497 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9498   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9499   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9500   { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9502 else
9503 # FIXME - insert some real tests, host_os isn't really good enough
9504   case $host_os in
9505    darwin*)
9506        if test -n "$STRIP" ; then
9507          striplib="$STRIP -x"
9508          { echo "$as_me:$LINENO: result: yes" >&5
9509 echo "${ECHO_T}yes" >&6; }
9510        else
9511   { echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6; }
9513 fi
9514        ;;
9515    *)
9516   { echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6; }
9518     ;;
9519   esac
9520 fi
9521
9522 if test "x$enable_dlopen" != xyes; then
9523   enable_dlopen=unknown
9524   enable_dlopen_self=unknown
9525   enable_dlopen_self_static=unknown
9526 else
9527   lt_cv_dlopen=no
9528   lt_cv_dlopen_libs=
9529
9530   case $host_os in
9531   beos*)
9532     lt_cv_dlopen="load_add_on"
9533     lt_cv_dlopen_libs=
9534     lt_cv_dlopen_self=yes
9535     ;;
9536
9537   mingw* | pw32*)
9538     lt_cv_dlopen="LoadLibrary"
9539     lt_cv_dlopen_libs=
9540    ;;
9541
9542   cygwin*)
9543     lt_cv_dlopen="dlopen"
9544     lt_cv_dlopen_libs=
9545    ;;
9546
9547   darwin*)
9548   # if libdl is installed we need to link against it
9549     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9550 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9551 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-ldl  $LIBS"
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564    Use char because int might match the return type of a GCC
9565    builtin and then its argument prototype would still apply.  */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char dlopen ();
9570 int
9571 main ()
9572 {
9573 return dlopen ();
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9580 case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585   (eval "$ac_link") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } && {
9592          test -z "$ac_c_werror_flag" ||
9593          test ! -s conftest.err
9594        } && test -s conftest$ac_exeext &&
9595        $as_test_x conftest$ac_exeext; then
9596   ac_cv_lib_dl_dlopen=yes
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601         ac_cv_lib_dl_dlopen=no
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9605       conftest$ac_exeext conftest.$ac_ext
9606 LIBS=$ac_check_lib_save_LIBS
9607 fi
9608 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9610 if test $ac_cv_lib_dl_dlopen = yes; then
9611   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9612 else
9613
9614     lt_cv_dlopen="dyld"
9615     lt_cv_dlopen_libs=
9616     lt_cv_dlopen_self=yes
9617
9618 fi
9619
9620    ;;
9621
9622   *)
9623     { echo "$as_me:$LINENO: checking for shl_load" >&5
9624 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_shl_load+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9636 #define shl_load innocuous_shl_load
9637
9638 /* System header to define __stub macros and hopefully few prototypes,
9639     which can conflict with char shl_load (); below.
9640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641     <limits.h> exists even on freestanding compilers.  */
9642
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9648
9649 #undef shl_load
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 /* The GNU C library defines this for functions which it implements
9659     to always fail with ENOSYS.  Some functions are actually named
9660     something starting with __ and the normal name is an alias.  */
9661 #if defined __stub_shl_load || defined __stub___shl_load
9662 choke me
9663 #endif
9664
9665 int
9666 main ()
9667 {
9668 return shl_load ();
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677   *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680   (eval "$ac_link") 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } && {
9687          test -z "$ac_c_werror_flag" ||
9688          test ! -s conftest.err
9689        } && test -s conftest$ac_exeext &&
9690        $as_test_x conftest$ac_exeext; then
9691   ac_cv_func_shl_load=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696         ac_cv_func_shl_load=no
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700       conftest$ac_exeext conftest.$ac_ext
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9703 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9704 if test $ac_cv_func_shl_load = yes; then
9705   lt_cv_dlopen="shl_load"
9706 else
9707   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9708 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   ac_check_lib_save_LIBS=$LIBS
9713 LIBS="-ldld  $LIBS"
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720
9721 /* Override any GCC internal prototype to avoid an error.
9722    Use char because int might match the return type of a GCC
9723    builtin and then its argument prototype would still apply.  */
9724 #ifdef __cplusplus
9725 extern "C"
9726 #endif
9727 char shl_load ();
9728 int
9729 main ()
9730 {
9731 return shl_load ();
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (ac_try="$ac_link"
9738 case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743   (eval "$ac_link") 2>conftest.er1
9744   ac_status=$?
9745   grep -v '^ *+' conftest.er1 >conftest.err
9746   rm -f conftest.er1
9747   cat conftest.err >&5
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } && {
9750          test -z "$ac_c_werror_flag" ||
9751          test ! -s conftest.err
9752        } && test -s conftest$ac_exeext &&
9753        $as_test_x conftest$ac_exeext; then
9754   ac_cv_lib_dld_shl_load=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_lib_dld_shl_load=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763       conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9768 if test $ac_cv_lib_dld_shl_load = yes; then
9769   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9770 else
9771   { echo "$as_me:$LINENO: checking for dlopen" >&5
9772 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9773 if test "${ac_cv_func_dlopen+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9784 #define dlopen innocuous_dlopen
9785
9786 /* System header to define __stub macros and hopefully few prototypes,
9787     which can conflict with char dlopen (); below.
9788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789     <limits.h> exists even on freestanding compilers.  */
9790
9791 #ifdef __STDC__
9792 # include <limits.h>
9793 #else
9794 # include <assert.h>
9795 #endif
9796
9797 #undef dlopen
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 /* The GNU C library defines this for functions which it implements
9807     to always fail with ENOSYS.  Some functions are actually named
9808     something starting with __ and the normal name is an alias.  */
9809 #if defined __stub_dlopen || defined __stub___dlopen
9810 choke me
9811 #endif
9812
9813 int
9814 main ()
9815 {
9816 return dlopen ();
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_link") 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } && {
9835          test -z "$ac_c_werror_flag" ||
9836          test ! -s conftest.err
9837        } && test -s conftest$ac_exeext &&
9838        $as_test_x conftest$ac_exeext; then
9839   ac_cv_func_dlopen=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844         ac_cv_func_dlopen=no
9845 fi
9846
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848       conftest$ac_exeext conftest.$ac_ext
9849 fi
9850 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9852 if test $ac_cv_func_dlopen = yes; then
9853   lt_cv_dlopen="dlopen"
9854 else
9855   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9856 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   ac_check_lib_save_LIBS=$LIBS
9861 LIBS="-ldl  $LIBS"
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h.  */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h.  */
9868
9869 /* Override any GCC internal prototype to avoid an error.
9870    Use char because int might match the return type of a GCC
9871    builtin and then its argument prototype would still apply.  */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char dlopen ();
9876 int
9877 main ()
9878 {
9879 return dlopen ();
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (ac_try="$ac_link"
9886 case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_link") 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } && {
9898          test -z "$ac_c_werror_flag" ||
9899          test ! -s conftest.err
9900        } && test -s conftest$ac_exeext &&
9901        $as_test_x conftest$ac_exeext; then
9902   ac_cv_lib_dl_dlopen=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907         ac_cv_lib_dl_dlopen=no
9908 fi
9909
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911       conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9913 fi
9914 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9915 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9916 if test $ac_cv_lib_dl_dlopen = yes; then
9917   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9918 else
9919   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9920 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-lsvld  $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934    Use char because int might match the return type of a GCC
9935    builtin and then its argument prototype would still apply.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char dlopen ();
9940 int
9941 main ()
9942 {
9943 return dlopen ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_link") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } && {
9962          test -z "$ac_c_werror_flag" ||
9963          test ! -s conftest.err
9964        } && test -s conftest$ac_exeext &&
9965        $as_test_x conftest$ac_exeext; then
9966   ac_cv_lib_svld_dlopen=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         ac_cv_lib_svld_dlopen=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975       conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9980 if test $ac_cv_lib_svld_dlopen = yes; then
9981   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9982 else
9983   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-ldld  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char dld_link ();
10004 int
10005 main ()
10006 {
10007 return dld_link ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } && {
10026          test -z "$ac_c_werror_flag" ||
10027          test ! -s conftest.err
10028        } && test -s conftest$ac_exeext &&
10029        $as_test_x conftest$ac_exeext; then
10030   ac_cv_lib_dld_dld_link=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035         ac_cv_lib_dld_dld_link=no
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039       conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10041 fi
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10044 if test $ac_cv_lib_dld_dld_link = yes; then
10045   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10046 fi
10047
10048
10049 fi
10050
10051
10052 fi
10053
10054
10055 fi
10056
10057
10058 fi
10059
10060
10061 fi
10062
10063     ;;
10064   esac
10065
10066   if test "x$lt_cv_dlopen" != xno; then
10067     enable_dlopen=yes
10068   else
10069     enable_dlopen=no
10070   fi
10071
10072   case $lt_cv_dlopen in
10073   dlopen)
10074     save_CPPFLAGS="$CPPFLAGS"
10075     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10076
10077     save_LDFLAGS="$LDFLAGS"
10078     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10079
10080     save_LIBS="$LIBS"
10081     LIBS="$lt_cv_dlopen_libs $LIBS"
10082
10083     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10084 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10085 if test "${lt_cv_dlopen_self+set}" = set; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088           if test "$cross_compiling" = yes; then :
10089   lt_cv_dlopen_self=cross
10090 else
10091   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10092   lt_status=$lt_dlunknown
10093   cat > conftest.$ac_ext <<EOF
10094 #line 10094 "configure"
10095 #include "confdefs.h"
10096
10097 #if HAVE_DLFCN_H
10098 #include <dlfcn.h>
10099 #endif
10100
10101 #include <stdio.h>
10102
10103 #ifdef RTLD_GLOBAL
10104 #  define LT_DLGLOBAL           RTLD_GLOBAL
10105 #else
10106 #  ifdef DL_GLOBAL
10107 #    define LT_DLGLOBAL         DL_GLOBAL
10108 #  else
10109 #    define LT_DLGLOBAL         0
10110 #  endif
10111 #endif
10112
10113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10114    find out it does not work in some platform. */
10115 #ifndef LT_DLLAZY_OR_NOW
10116 #  ifdef RTLD_LAZY
10117 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10118 #  else
10119 #    ifdef DL_LAZY
10120 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10121 #    else
10122 #      ifdef RTLD_NOW
10123 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10124 #      else
10125 #        ifdef DL_NOW
10126 #          define LT_DLLAZY_OR_NOW      DL_NOW
10127 #        else
10128 #          define LT_DLLAZY_OR_NOW      0
10129 #        endif
10130 #      endif
10131 #    endif
10132 #  endif
10133 #endif
10134
10135 #ifdef __cplusplus
10136 extern "C" void exit (int);
10137 #endif
10138
10139 void fnord() { int i=42;}
10140 int main ()
10141 {
10142   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10143   int status = $lt_dlunknown;
10144
10145   if (self)
10146     {
10147       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10148       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10149       /* dlclose (self); */
10150     }
10151   else
10152     puts (dlerror ());
10153
10154     exit (status);
10155 }
10156 EOF
10157   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158   (eval $ac_link) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10162     (./conftest; exit; ) >&5 2>/dev/null
10163     lt_status=$?
10164     case x$lt_status in
10165       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10166       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10167       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10168     esac
10169   else :
10170     # compilation failed
10171     lt_cv_dlopen_self=no
10172   fi
10173 fi
10174 rm -fr conftest*
10175
10176
10177 fi
10178 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10179 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10180
10181     if test "x$lt_cv_dlopen_self" = xyes; then
10182       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10183       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10184 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10185 if test "${lt_cv_dlopen_self_static+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188           if test "$cross_compiling" = yes; then :
10189   lt_cv_dlopen_self_static=cross
10190 else
10191   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10192   lt_status=$lt_dlunknown
10193   cat > conftest.$ac_ext <<EOF
10194 #line 10194 "configure"
10195 #include "confdefs.h"
10196
10197 #if HAVE_DLFCN_H
10198 #include <dlfcn.h>
10199 #endif
10200
10201 #include <stdio.h>
10202
10203 #ifdef RTLD_GLOBAL
10204 #  define LT_DLGLOBAL           RTLD_GLOBAL
10205 #else
10206 #  ifdef DL_GLOBAL
10207 #    define LT_DLGLOBAL         DL_GLOBAL
10208 #  else
10209 #    define LT_DLGLOBAL         0
10210 #  endif
10211 #endif
10212
10213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10214    find out it does not work in some platform. */
10215 #ifndef LT_DLLAZY_OR_NOW
10216 #  ifdef RTLD_LAZY
10217 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10218 #  else
10219 #    ifdef DL_LAZY
10220 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10221 #    else
10222 #      ifdef RTLD_NOW
10223 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10224 #      else
10225 #        ifdef DL_NOW
10226 #          define LT_DLLAZY_OR_NOW      DL_NOW
10227 #        else
10228 #          define LT_DLLAZY_OR_NOW      0
10229 #        endif
10230 #      endif
10231 #    endif
10232 #  endif
10233 #endif
10234
10235 #ifdef __cplusplus
10236 extern "C" void exit (int);
10237 #endif
10238
10239 void fnord() { int i=42;}
10240 int main ()
10241 {
10242   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10243   int status = $lt_dlunknown;
10244
10245   if (self)
10246     {
10247       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10248       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10249       /* dlclose (self); */
10250     }
10251   else
10252     puts (dlerror ());
10253
10254     exit (status);
10255 }
10256 EOF
10257   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258   (eval $ac_link) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10262     (./conftest; exit; ) >&5 2>/dev/null
10263     lt_status=$?
10264     case x$lt_status in
10265       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10266       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10267       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10268     esac
10269   else :
10270     # compilation failed
10271     lt_cv_dlopen_self_static=no
10272   fi
10273 fi
10274 rm -fr conftest*
10275
10276
10277 fi
10278 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10279 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10280     fi
10281
10282     CPPFLAGS="$save_CPPFLAGS"
10283     LDFLAGS="$save_LDFLAGS"
10284     LIBS="$save_LIBS"
10285     ;;
10286   esac
10287
10288   case $lt_cv_dlopen_self in
10289   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10290   *) enable_dlopen_self=unknown ;;
10291   esac
10292
10293   case $lt_cv_dlopen_self_static in
10294   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10295   *) enable_dlopen_self_static=unknown ;;
10296   esac
10297 fi
10298
10299
10300 # Report which library types will actually be built
10301 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10302 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10303 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10304 echo "${ECHO_T}$can_build_shared" >&6; }
10305
10306 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10307 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10308 test "$can_build_shared" = "no" && enable_shared=no
10309
10310 # On AIX, shared libraries and static libraries use the same namespace, and
10311 # are all built from PIC.
10312 case $host_os in
10313 aix3*)
10314   test "$enable_shared" = yes && enable_static=no
10315   if test -n "$RANLIB"; then
10316     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10317     postinstall_cmds='$RANLIB $lib'
10318   fi
10319   ;;
10320
10321 aix4* | aix5*)
10322   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10323     test "$enable_shared" = yes && enable_static=no
10324   fi
10325     ;;
10326 esac
10327 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10328 echo "${ECHO_T}$enable_shared" >&6; }
10329
10330 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10331 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10332 # Make sure either enable_shared or enable_static is yes.
10333 test "$enable_shared" = yes || enable_static=yes
10334 { echo "$as_me:$LINENO: result: $enable_static" >&5
10335 echo "${ECHO_T}$enable_static" >&6; }
10336
10337 # The else clause should only fire when bootstrapping the
10338 # libtool distribution, otherwise you forgot to ship ltmain.sh
10339 # with your package, and you will get complaints that there are
10340 # no rules to generate ltmain.sh.
10341 if test -f "$ltmain"; then
10342   # See if we are running on zsh, and set the options which allow our commands through
10343   # without removal of \ escapes.
10344   if test -n "${ZSH_VERSION+set}" ; then
10345     setopt NO_GLOB_SUBST
10346   fi
10347   # Now quote all the things that may contain metacharacters while being
10348   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10349   # variables and quote the copies for generation of the libtool script.
10350   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10351     SED SHELL STRIP \
10352     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10353     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10354     deplibs_check_method reload_flag reload_cmds need_locks \
10355     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10356     lt_cv_sys_global_symbol_to_c_name_address \
10357     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10358     old_postinstall_cmds old_postuninstall_cmds \
10359     compiler \
10360     CC \
10361     LD \
10362     lt_prog_compiler_wl \
10363     lt_prog_compiler_pic \
10364     lt_prog_compiler_static \
10365     lt_prog_compiler_no_builtin_flag \
10366     export_dynamic_flag_spec \
10367     thread_safe_flag_spec \
10368     whole_archive_flag_spec \
10369     enable_shared_with_static_runtimes \
10370     old_archive_cmds \
10371     old_archive_from_new_cmds \
10372     predep_objects \
10373     postdep_objects \
10374     predeps \
10375     postdeps \
10376     compiler_lib_search_path \
10377     archive_cmds \
10378     archive_expsym_cmds \
10379     postinstall_cmds \
10380     postuninstall_cmds \
10381     old_archive_from_expsyms_cmds \
10382     allow_undefined_flag \
10383     no_undefined_flag \
10384     export_symbols_cmds \
10385     hardcode_libdir_flag_spec \
10386     hardcode_libdir_flag_spec_ld \
10387     hardcode_libdir_separator \
10388     hardcode_automatic \
10389     module_cmds \
10390     module_expsym_cmds \
10391     lt_cv_prog_compiler_c_o \
10392     exclude_expsyms \
10393     include_expsyms; do
10394
10395     case $var in
10396     old_archive_cmds | \
10397     old_archive_from_new_cmds | \
10398     archive_cmds | \
10399     archive_expsym_cmds | \
10400     module_cmds | \
10401     module_expsym_cmds | \
10402     old_archive_from_expsyms_cmds | \
10403     export_symbols_cmds | \
10404     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10405     postinstall_cmds | postuninstall_cmds | \
10406     old_postinstall_cmds | old_postuninstall_cmds | \
10407     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10408       # Double-quote double-evaled strings.
10409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10410       ;;
10411     *)
10412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10413       ;;
10414     esac
10415   done
10416
10417   case $lt_echo in
10418   *'\$0 --fallback-echo"')
10419     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10420     ;;
10421   esac
10422
10423 cfgfile="${ofile}T"
10424   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10425   $rm -f "$cfgfile"
10426   { echo "$as_me:$LINENO: creating $ofile" >&5
10427 echo "$as_me: creating $ofile" >&6;}
10428
10429   cat <<__EOF__ >> "$cfgfile"
10430 #! $SHELL
10431
10432 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10433 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10434 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10435 #
10436 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10437 # Free Software Foundation, Inc.
10438 #
10439 # This file is part of GNU Libtool:
10440 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10441 #
10442 # This program is free software; you can redistribute it and/or modify
10443 # it under the terms of the GNU General Public License as published by
10444 # the Free Software Foundation; either version 2 of the License, or
10445 # (at your option) any later version.
10446 #
10447 # This program is distributed in the hope that it will be useful, but
10448 # WITHOUT ANY WARRANTY; without even the implied warranty of
10449 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10450 # General Public License for more details.
10451 #
10452 # You should have received a copy of the GNU General Public License
10453 # along with this program; if not, write to the Free Software
10454 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10455 #
10456 # As a special exception to the GNU General Public License, if you
10457 # distribute this file as part of a program that contains a
10458 # configuration script generated by Autoconf, you may include it under
10459 # the same distribution terms that you use for the rest of that program.
10460
10461 # A sed program that does not truncate output.
10462 SED=$lt_SED
10463
10464 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10465 Xsed="$SED -e 1s/^X//"
10466
10467 # The HP-UX ksh and POSIX shell print the target directory to stdout
10468 # if CDPATH is set.
10469 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10470
10471 # The names of the tagged configurations supported by this script.
10472 available_tags=
10473
10474 # ### BEGIN LIBTOOL CONFIG
10475
10476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10477
10478 # Shell to use when invoking shell scripts.
10479 SHELL=$lt_SHELL
10480
10481 # Whether or not to build shared libraries.
10482 build_libtool_libs=$enable_shared
10483
10484 # Whether or not to build static libraries.
10485 build_old_libs=$enable_static
10486
10487 # Whether or not to add -lc for building shared libraries.
10488 build_libtool_need_lc=$archive_cmds_need_lc
10489
10490 # Whether or not to disallow shared libs when runtime libs are static
10491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10492
10493 # Whether or not to optimize for fast installation.
10494 fast_install=$enable_fast_install
10495
10496 # The host system.
10497 host_alias=$host_alias
10498 host=$host
10499 host_os=$host_os
10500
10501 # The build system.
10502 build_alias=$build_alias
10503 build=$build
10504 build_os=$build_os
10505
10506 # An echo program that does not interpret backslashes.
10507 echo=$lt_echo
10508
10509 # The archiver.
10510 AR=$lt_AR
10511 AR_FLAGS=$lt_AR_FLAGS
10512
10513 # A C compiler.
10514 LTCC=$lt_LTCC
10515
10516 # LTCC compiler flags.
10517 LTCFLAGS=$lt_LTCFLAGS
10518
10519 # A language-specific compiler.
10520 CC=$lt_compiler
10521
10522 # Is the compiler the GNU C compiler?
10523 with_gcc=$GCC
10524
10525 # An ERE matcher.
10526 EGREP=$lt_EGREP
10527
10528 # The linker used to build libraries.
10529 LD=$lt_LD
10530
10531 # Whether we need hard or soft links.
10532 LN_S=$lt_LN_S
10533
10534 # A BSD-compatible nm program.
10535 NM=$lt_NM
10536
10537 # A symbol stripping program
10538 STRIP=$lt_STRIP
10539
10540 # Used to examine libraries when file_magic_cmd begins "file"
10541 MAGIC_CMD=$MAGIC_CMD
10542
10543 # Used on cygwin: DLL creation program.
10544 DLLTOOL="$DLLTOOL"
10545
10546 # Used on cygwin: object dumper.
10547 OBJDUMP="$OBJDUMP"
10548
10549 # Used on cygwin: assembler.
10550 AS="$AS"
10551
10552 # The name of the directory that contains temporary libtool files.
10553 objdir=$objdir
10554
10555 # How to create reloadable object files.
10556 reload_flag=$lt_reload_flag
10557 reload_cmds=$lt_reload_cmds
10558
10559 # How to pass a linker flag through the compiler.
10560 wl=$lt_lt_prog_compiler_wl
10561
10562 # Object file suffix (normally "o").
10563 objext="$ac_objext"
10564
10565 # Old archive suffix (normally "a").
10566 libext="$libext"
10567
10568 # Shared library suffix (normally ".so").
10569 shrext_cmds='$shrext_cmds'
10570
10571 # Executable file suffix (normally "").
10572 exeext="$exeext"
10573
10574 # Additional compiler flags for building library objects.
10575 pic_flag=$lt_lt_prog_compiler_pic
10576 pic_mode=$pic_mode
10577
10578 # What is the maximum length of a command?
10579 max_cmd_len=$lt_cv_sys_max_cmd_len
10580
10581 # Does compiler simultaneously support -c and -o options?
10582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10583
10584 # Must we lock files when doing compilation?
10585 need_locks=$lt_need_locks
10586
10587 # Do we need the lib prefix for modules?
10588 need_lib_prefix=$need_lib_prefix
10589
10590 # Do we need a version for libraries?
10591 need_version=$need_version
10592
10593 # Whether dlopen is supported.
10594 dlopen_support=$enable_dlopen
10595
10596 # Whether dlopen of programs is supported.
10597 dlopen_self=$enable_dlopen_self
10598
10599 # Whether dlopen of statically linked programs is supported.
10600 dlopen_self_static=$enable_dlopen_self_static
10601
10602 # Compiler flag to prevent dynamic linking.
10603 link_static_flag=$lt_lt_prog_compiler_static
10604
10605 # Compiler flag to turn off builtin functions.
10606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10607
10608 # Compiler flag to allow reflexive dlopens.
10609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10610
10611 # Compiler flag to generate shared objects directly from archives.
10612 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10613
10614 # Compiler flag to generate thread-safe objects.
10615 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10616
10617 # Library versioning type.
10618 version_type=$version_type
10619
10620 # Format of library name prefix.
10621 libname_spec=$lt_libname_spec
10622
10623 # List of archive names.  First name is the real one, the rest are links.
10624 # The last name is the one that the linker finds with -lNAME.
10625 library_names_spec=$lt_library_names_spec
10626
10627 # The coded name of the library, if different from the real name.
10628 soname_spec=$lt_soname_spec
10629
10630 # Commands used to build and install an old-style archive.
10631 RANLIB=$lt_RANLIB
10632 old_archive_cmds=$lt_old_archive_cmds
10633 old_postinstall_cmds=$lt_old_postinstall_cmds
10634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10635
10636 # Create an old-style archive from a shared archive.
10637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10638
10639 # Create a temporary old-style archive to link instead of a shared archive.
10640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10641
10642 # Commands used to build and install a shared archive.
10643 archive_cmds=$lt_archive_cmds
10644 archive_expsym_cmds=$lt_archive_expsym_cmds
10645 postinstall_cmds=$lt_postinstall_cmds
10646 postuninstall_cmds=$lt_postuninstall_cmds
10647
10648 # Commands used to build a loadable module (assumed same as above if empty)
10649 module_cmds=$lt_module_cmds
10650 module_expsym_cmds=$lt_module_expsym_cmds
10651
10652 # Commands to strip libraries.
10653 old_striplib=$lt_old_striplib
10654 striplib=$lt_striplib
10655
10656 # Dependencies to place before the objects being linked to create a
10657 # shared library.
10658 predep_objects=$lt_predep_objects
10659
10660 # Dependencies to place after the objects being linked to create a
10661 # shared library.
10662 postdep_objects=$lt_postdep_objects
10663
10664 # Dependencies to place before the objects being linked to create a
10665 # shared library.
10666 predeps=$lt_predeps
10667
10668 # Dependencies to place after the objects being linked to create a
10669 # shared library.
10670 postdeps=$lt_postdeps
10671
10672 # The library search path used internally by the compiler when linking
10673 # a shared library.
10674 compiler_lib_search_path=$lt_compiler_lib_search_path
10675
10676 # Method to check whether dependent libraries are shared objects.
10677 deplibs_check_method=$lt_deplibs_check_method
10678
10679 # Command to use when deplibs_check_method == file_magic.
10680 file_magic_cmd=$lt_file_magic_cmd
10681
10682 # Flag that allows shared libraries with undefined symbols to be built.
10683 allow_undefined_flag=$lt_allow_undefined_flag
10684
10685 # Flag that forces no undefined symbols.
10686 no_undefined_flag=$lt_no_undefined_flag
10687
10688 # Commands used to finish a libtool library installation in a directory.
10689 finish_cmds=$lt_finish_cmds
10690
10691 # Same as above, but a single script fragment to be evaled but not shown.
10692 finish_eval=$lt_finish_eval
10693
10694 # Take the output of nm and produce a listing of raw symbols and C names.
10695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10696
10697 # Transform the output of nm in a proper C declaration
10698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10699
10700 # Transform the output of nm in a C name address pair
10701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10702
10703 # This is the shared library runtime path variable.
10704 runpath_var=$runpath_var
10705
10706 # This is the shared library path variable.
10707 shlibpath_var=$shlibpath_var
10708
10709 # Is shlibpath searched before the hard-coded library search path?
10710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10711
10712 # How to hardcode a shared library path into an executable.
10713 hardcode_action=$hardcode_action
10714
10715 # Whether we should hardcode library paths into libraries.
10716 hardcode_into_libs=$hardcode_into_libs
10717
10718 # Flag to hardcode \$libdir into a binary during linking.
10719 # This must work even if \$libdir does not exist.
10720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10721
10722 # If ld is used when linking, flag to hardcode \$libdir into
10723 # a binary during linking. This must work even if \$libdir does
10724 # not exist.
10725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10726
10727 # Whether we need a single -rpath flag with a separated argument.
10728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10729
10730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10731 # resulting binary.
10732 hardcode_direct=$hardcode_direct
10733
10734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10735 # resulting binary.
10736 hardcode_minus_L=$hardcode_minus_L
10737
10738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10739 # the resulting binary.
10740 hardcode_shlibpath_var=$hardcode_shlibpath_var
10741
10742 # Set to yes if building a shared library automatically hardcodes DIR into the library
10743 # and all subsequent libraries and executables linked against it.
10744 hardcode_automatic=$hardcode_automatic
10745
10746 # Variables whose values should be saved in libtool wrapper scripts and
10747 # restored at relink time.
10748 variables_saved_for_relink="$variables_saved_for_relink"
10749
10750 # Whether libtool must link a program against all its dependency libraries.
10751 link_all_deplibs=$link_all_deplibs
10752
10753 # Compile-time system search path for libraries
10754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10755
10756 # Run-time system search path for libraries
10757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10758
10759 # Fix the shell variable \$srcfile for the compiler.
10760 fix_srcfile_path="$fix_srcfile_path"
10761
10762 # Set to yes if exported symbols are required.
10763 always_export_symbols=$always_export_symbols
10764
10765 # The commands to list exported symbols.
10766 export_symbols_cmds=$lt_export_symbols_cmds
10767
10768 # The commands to extract the exported symbol list from a shared archive.
10769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10770
10771 # Symbols that should not be listed in the preloaded symbols.
10772 exclude_expsyms=$lt_exclude_expsyms
10773
10774 # Symbols that must always be exported.
10775 include_expsyms=$lt_include_expsyms
10776
10777 # ### END LIBTOOL CONFIG
10778
10779 __EOF__
10780
10781
10782   case $host_os in
10783   aix3*)
10784     cat <<\EOF >> "$cfgfile"
10785
10786 # AIX sometimes has problems with the GCC collect2 program.  For some
10787 # reason, if we set the COLLECT_NAMES environment variable, the problems
10788 # vanish in a puff of smoke.
10789 if test "X${COLLECT_NAMES+set}" != Xset; then
10790   COLLECT_NAMES=
10791   export COLLECT_NAMES
10792 fi
10793 EOF
10794     ;;
10795   esac
10796
10797   # We use sed instead of cat because bash on DJGPP gets confused if
10798   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10799   # text mode, it properly converts lines to CR/LF.  This bash problem
10800   # is reportedly fixed, but why not run on old versions too?
10801   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10802
10803   mv -f "$cfgfile" "$ofile" || \
10804     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10805   chmod +x "$ofile"
10806
10807 else
10808   # If there is no Makefile yet, we rely on a make rule to execute
10809   # `config.status --recheck' to rerun these tests and create the
10810   # libtool script then.
10811   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10812   if test -f "$ltmain_in"; then
10813     test -f Makefile && make "$ltmain"
10814   fi
10815 fi
10816
10817
10818 ac_ext=c
10819 ac_cpp='$CPP $CPPFLAGS'
10820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10823
10824 CC="$lt_save_CC"
10825
10826
10827 # Check whether --with-tags was given.
10828 if test "${with_tags+set}" = set; then
10829   withval=$with_tags; tagnames="$withval"
10830 fi
10831
10832
10833 if test -f "$ltmain" && test -n "$tagnames"; then
10834   if test ! -f "${ofile}"; then
10835     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10836 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10837   fi
10838
10839   if test -z "$LTCC"; then
10840     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10841     if test -z "$LTCC"; then
10842       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10843 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10844     else
10845       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10846 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10847     fi
10848   fi
10849   if test -z "$LTCFLAGS"; then
10850     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10851   fi
10852
10853   # Extract list of available tagged configurations in $ofile.
10854   # Note that this assumes the entire list is on one line.
10855   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10856
10857   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10858   for tagname in $tagnames; do
10859     IFS="$lt_save_ifs"
10860     # Check whether tagname contains only valid characters
10861     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10862     "") ;;
10863     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10864 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10865    { (exit 1); exit 1; }; }
10866         ;;
10867     esac
10868
10869     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10870     then
10871       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10872 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10873    { (exit 1); exit 1; }; }
10874     fi
10875
10876     # Update the list of available tags.
10877     if test -n "$tagname"; then
10878       echo appending configuration tag \"$tagname\" to $ofile
10879
10880       case $tagname in
10881       CXX)
10882         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10883             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10884             (test "X$CXX" != "Xg++"))) ; then
10885           ac_ext=cpp
10886 ac_cpp='$CXXCPP $CPPFLAGS'
10887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10890
10891
10892
10893
10894 archive_cmds_need_lc_CXX=no
10895 allow_undefined_flag_CXX=
10896 always_export_symbols_CXX=no
10897 archive_expsym_cmds_CXX=
10898 export_dynamic_flag_spec_CXX=
10899 hardcode_direct_CXX=no
10900 hardcode_libdir_flag_spec_CXX=
10901 hardcode_libdir_flag_spec_ld_CXX=
10902 hardcode_libdir_separator_CXX=
10903 hardcode_minus_L_CXX=no
10904 hardcode_shlibpath_var_CXX=unsupported
10905 hardcode_automatic_CXX=no
10906 module_cmds_CXX=
10907 module_expsym_cmds_CXX=
10908 link_all_deplibs_CXX=unknown
10909 old_archive_cmds_CXX=$old_archive_cmds
10910 no_undefined_flag_CXX=
10911 whole_archive_flag_spec_CXX=
10912 enable_shared_with_static_runtimes_CXX=no
10913
10914 # Dependencies to place before and after the object being linked:
10915 predep_objects_CXX=
10916 postdep_objects_CXX=
10917 predeps_CXX=
10918 postdeps_CXX=
10919 compiler_lib_search_path_CXX=
10920
10921 # Source file extension for C++ test sources.
10922 ac_ext=cpp
10923
10924 # Object file extension for compiled C++ test sources.
10925 objext=o
10926 objext_CXX=$objext
10927
10928 # Code to be used in simple compile tests
10929 lt_simple_compile_test_code="int some_variable = 0;\n"
10930
10931 # Code to be used in simple link tests
10932 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10933
10934 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10935
10936 # If no C compiler was specified, use CC.
10937 LTCC=${LTCC-"$CC"}
10938
10939 # If no C compiler flags were specified, use CFLAGS.
10940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10941
10942 # Allow CC to be a program name with arguments.
10943 compiler=$CC
10944
10945
10946 # save warnings/boilerplate of simple test code
10947 ac_outfile=conftest.$ac_objext
10948 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10950 _lt_compiler_boilerplate=`cat conftest.err`
10951 $rm conftest*
10952
10953 ac_outfile=conftest.$ac_objext
10954 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10956 _lt_linker_boilerplate=`cat conftest.err`
10957 $rm conftest*
10958
10959
10960 # Allow CC to be a program name with arguments.
10961 lt_save_CC=$CC
10962 lt_save_LD=$LD
10963 lt_save_GCC=$GCC
10964 GCC=$GXX
10965 lt_save_with_gnu_ld=$with_gnu_ld
10966 lt_save_path_LD=$lt_cv_path_LD
10967 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10968   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10969 else
10970   $as_unset lt_cv_prog_gnu_ld
10971 fi
10972 if test -n "${lt_cv_path_LDCXX+set}"; then
10973   lt_cv_path_LD=$lt_cv_path_LDCXX
10974 else
10975   $as_unset lt_cv_path_LD
10976 fi
10977 test -z "${LDCXX+set}" || LD=$LDCXX
10978 CC=${CXX-"c++"}
10979 compiler=$CC
10980 compiler_CXX=$CC
10981 for cc_temp in $compiler""; do
10982   case $cc_temp in
10983     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10984     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10985     \-*) ;;
10986     *) break;;
10987   esac
10988 done
10989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10990
10991
10992 # We don't want -fno-exception wen compiling C++ code, so set the
10993 # no_builtin_flag separately
10994 if test "$GXX" = yes; then
10995   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10996 else
10997   lt_prog_compiler_no_builtin_flag_CXX=
10998 fi
10999
11000 if test "$GXX" = yes; then
11001   # Set up default GNU C++ configuration
11002
11003
11004 # Check whether --with-gnu-ld was given.
11005 if test "${with_gnu_ld+set}" = set; then
11006   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11007 else
11008   with_gnu_ld=no
11009 fi
11010
11011 ac_prog=ld
11012 if test "$GCC" = yes; then
11013   # Check if gcc -print-prog-name=ld gives a path.
11014   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11015 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11016   case $host in
11017   *-*-mingw*)
11018     # gcc leaves a trailing carriage return which upsets mingw
11019     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11020   *)
11021     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11022   esac
11023   case $ac_prog in
11024     # Accept absolute paths.
11025     [\\/]* | ?:[\\/]*)
11026       re_direlt='/[^/][^/]*/\.\./'
11027       # Canonicalize the pathname of ld
11028       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11029       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11030         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11031       done
11032       test -z "$LD" && LD="$ac_prog"
11033       ;;
11034   "")
11035     # If it fails, then pretend we aren't using GCC.
11036     ac_prog=ld
11037     ;;
11038   *)
11039     # If it is relative, then search for the first ld in PATH.
11040     with_gnu_ld=unknown
11041     ;;
11042   esac
11043 elif test "$with_gnu_ld" = yes; then
11044   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11046 else
11047   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11049 fi
11050 if test "${lt_cv_path_LD+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   if test -z "$LD"; then
11054   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11055   for ac_dir in $PATH; do
11056     IFS="$lt_save_ifs"
11057     test -z "$ac_dir" && ac_dir=.
11058     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11059       lt_cv_path_LD="$ac_dir/$ac_prog"
11060       # Check to see if the program is GNU ld.  I'd rather use --version,
11061       # but apparently some variants of GNU ld only accept -v.
11062       # Break only if it was the GNU/non-GNU ld that we prefer.
11063       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11064       *GNU* | *'with BFD'*)
11065         test "$with_gnu_ld" != no && break
11066         ;;
11067       *)
11068         test "$with_gnu_ld" != yes && break
11069         ;;
11070       esac
11071     fi
11072   done
11073   IFS="$lt_save_ifs"
11074 else
11075   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11076 fi
11077 fi
11078
11079 LD="$lt_cv_path_LD"
11080 if test -n "$LD"; then
11081   { echo "$as_me:$LINENO: result: $LD" >&5
11082 echo "${ECHO_T}$LD" >&6; }
11083 else
11084   { echo "$as_me:$LINENO: result: no" >&5
11085 echo "${ECHO_T}no" >&6; }
11086 fi
11087 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11088 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11089    { (exit 1); exit 1; }; }
11090 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11091 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11092 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11096 case `$LD -v 2>&1 </dev/null` in
11097 *GNU* | *'with BFD'*)
11098   lt_cv_prog_gnu_ld=yes
11099   ;;
11100 *)
11101   lt_cv_prog_gnu_ld=no
11102   ;;
11103 esac
11104 fi
11105 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11106 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11107 with_gnu_ld=$lt_cv_prog_gnu_ld
11108
11109
11110
11111   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11112   # archiving commands below assume that GNU ld is being used.
11113   if test "$with_gnu_ld" = yes; then
11114     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115     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'
11116
11117     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11118     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11119
11120     # If archive_cmds runs LD, not CC, wlarc should be empty
11121     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11122     #     investigate it a little bit more. (MM)
11123     wlarc='${wl}'
11124
11125     # ancient GNU ld didn't support --whole-archive et. al.
11126     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11127         grep 'no-whole-archive' > /dev/null; then
11128       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11129     else
11130       whole_archive_flag_spec_CXX=
11131     fi
11132   else
11133     with_gnu_ld=no
11134     wlarc=
11135
11136     # A generic and very simple default shared library creation
11137     # command for GNU C++ for the case where it uses the native
11138     # linker, instead of GNU ld.  If possible, this setting should
11139     # overridden to take advantage of the native linker features on
11140     # the platform it is being used on.
11141     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11142   fi
11143
11144   # Commands to make compiler produce verbose output that lists
11145   # what "hidden" libraries, object files and flags are used when
11146   # linking a shared library.
11147   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11148
11149 else
11150   GXX=no
11151   with_gnu_ld=no
11152   wlarc=
11153 fi
11154
11155 # PORTME: fill in a description of your system's C++ link characteristics
11156 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11157 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11158 ld_shlibs_CXX=yes
11159 case $host_os in
11160   aix3*)
11161     # FIXME: insert proper C++ library support
11162     ld_shlibs_CXX=no
11163     ;;
11164   aix4* | aix5*)
11165     if test "$host_cpu" = ia64; then
11166       # On IA64, the linker does run time linking by default, so we don't
11167       # have to do anything special.
11168       aix_use_runtimelinking=no
11169       exp_sym_flag='-Bexport'
11170       no_entry_flag=""
11171     else
11172       aix_use_runtimelinking=no
11173
11174       # Test if we are trying to use run time linking or normal
11175       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11176       # need to do runtime linking.
11177       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11178         for ld_flag in $LDFLAGS; do
11179           case $ld_flag in
11180           *-brtl*)
11181             aix_use_runtimelinking=yes
11182             break
11183             ;;
11184           esac
11185         done
11186         ;;
11187       esac
11188
11189       exp_sym_flag='-bexport'
11190       no_entry_flag='-bnoentry'
11191     fi
11192
11193     # When large executables or shared objects are built, AIX ld can
11194     # have problems creating the table of contents.  If linking a library
11195     # or program results in "error TOC overflow" add -mminimal-toc to
11196     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11197     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11198
11199     archive_cmds_CXX=''
11200     hardcode_direct_CXX=yes
11201     hardcode_libdir_separator_CXX=':'
11202     link_all_deplibs_CXX=yes
11203
11204     if test "$GXX" = yes; then
11205       case $host_os in aix4.[012]|aix4.[012].*)
11206       # We only want to do this on AIX 4.2 and lower, the check
11207       # below for broken collect2 doesn't work under 4.3+
11208         collect2name=`${CC} -print-prog-name=collect2`
11209         if test -f "$collect2name" && \
11210            strings "$collect2name" | grep resolve_lib_name >/dev/null
11211         then
11212           # We have reworked collect2
11213           hardcode_direct_CXX=yes
11214         else
11215           # We have old collect2
11216           hardcode_direct_CXX=unsupported
11217           # It fails to find uninstalled libraries when the uninstalled
11218           # path is not listed in the libpath.  Setting hardcode_minus_L
11219           # to unsupported forces relinking
11220           hardcode_minus_L_CXX=yes
11221           hardcode_libdir_flag_spec_CXX='-L$libdir'
11222           hardcode_libdir_separator_CXX=
11223         fi
11224         ;;
11225       esac
11226       shared_flag='-shared'
11227       if test "$aix_use_runtimelinking" = yes; then
11228         shared_flag="$shared_flag "'${wl}-G'
11229       fi
11230     else
11231       # not using gcc
11232       if test "$host_cpu" = ia64; then
11233         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11234         # chokes on -Wl,-G. The following line is correct:
11235         shared_flag='-G'
11236       else
11237         if test "$aix_use_runtimelinking" = yes; then
11238           shared_flag='${wl}-G'
11239         else
11240           shared_flag='${wl}-bM:SRE'
11241         fi
11242       fi
11243     fi
11244
11245     # It seems that -bexpall does not export symbols beginning with
11246     # underscore (_), so it is better to generate a list of symbols to export.
11247     always_export_symbols_CXX=yes
11248     if test "$aix_use_runtimelinking" = yes; then
11249       # Warning - without using the other runtime loading flags (-brtl),
11250       # -berok will link without error, but may produce a broken library.
11251       allow_undefined_flag_CXX='-berok'
11252       # Determine the default libpath from the value encoded in an empty executable.
11253       cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259
11260 int
11261 main ()
11262 {
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_link") 2>conftest.er1
11276   ac_status=$?
11277   grep -v '^ *+' conftest.er1 >conftest.err
11278   rm -f conftest.er1
11279   cat conftest.err >&5
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } && {
11282          test -z "$ac_cxx_werror_flag" ||
11283          test ! -s conftest.err
11284        } && test -s conftest$ac_exeext &&
11285        $as_test_x conftest$ac_exeext; then
11286
11287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11288 }'`
11289 # Check for a 64-bit object if we didn't find anything.
11290 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; }
11291 }'`; fi
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300       conftest$ac_exeext conftest.$ac_ext
11301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11302
11303       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11304
11305       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"
11306      else
11307       if test "$host_cpu" = ia64; then
11308         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11309         allow_undefined_flag_CXX="-z nodefs"
11310         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"
11311       else
11312         # Determine the default libpath from the value encoded in an empty executable.
11313         cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319
11320 int
11321 main ()
11322 {
11323
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (ac_try="$ac_link"
11330 case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_link") 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } && {
11342          test -z "$ac_cxx_werror_flag" ||
11343          test ! -s conftest.err
11344        } && test -s conftest$ac_exeext &&
11345        $as_test_x conftest$ac_exeext; then
11346
11347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11348 }'`
11349 # Check for a 64-bit object if we didn't find anything.
11350 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; }
11351 }'`; fi
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356
11357 fi
11358
11359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11360       conftest$ac_exeext conftest.$ac_ext
11361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11362
11363         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11364         # Warning - without using the other run time loading flags,
11365         # -berok will link without error, but may produce a broken library.
11366         no_undefined_flag_CXX=' ${wl}-bernotok'
11367         allow_undefined_flag_CXX=' ${wl}-berok'
11368         # Exported symbols can be pulled into shared objects from archives
11369         whole_archive_flag_spec_CXX='$convenience'
11370         archive_cmds_need_lc_CXX=yes
11371         # This is similar to how AIX traditionally builds its shared libraries.
11372         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'
11373       fi
11374     fi
11375     ;;
11376
11377   beos*)
11378     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11379       allow_undefined_flag_CXX=unsupported
11380       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11381       # support --undefined.  This deserves some investigation.  FIXME
11382       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11383     else
11384       ld_shlibs_CXX=no
11385     fi
11386     ;;
11387
11388   chorus*)
11389     case $cc_basename in
11390       *)
11391         # FIXME: insert proper C++ library support
11392         ld_shlibs_CXX=no
11393         ;;
11394     esac
11395     ;;
11396
11397   cygwin* | mingw* | pw32*)
11398     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11399     # as there is no search path for DLLs.
11400     hardcode_libdir_flag_spec_CXX='-L$libdir'
11401     allow_undefined_flag_CXX=unsupported
11402     always_export_symbols_CXX=no
11403     enable_shared_with_static_runtimes_CXX=yes
11404
11405     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11406       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'
11407       # If the export-symbols file already is a .def file (1st line
11408       # is EXPORTS), use it as is; otherwise, prepend...
11409       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11410         cp $export_symbols $output_objdir/$soname.def;
11411       else
11412         echo EXPORTS > $output_objdir/$soname.def;
11413         cat $export_symbols >> $output_objdir/$soname.def;
11414       fi~
11415       $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'
11416     else
11417       ld_shlibs_CXX=no
11418     fi
11419   ;;
11420       darwin* | rhapsody*)
11421         case $host_os in
11422         rhapsody* | darwin1.[012])
11423          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11424          ;;
11425        *) # Darwin 1.3 on
11426          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11427            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11428          else
11429            case ${MACOSX_DEPLOYMENT_TARGET} in
11430              10.[012])
11431                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11432                ;;
11433              10.*)
11434                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11435                ;;
11436            esac
11437          fi
11438          ;;
11439         esac
11440       archive_cmds_need_lc_CXX=no
11441       hardcode_direct_CXX=no
11442       hardcode_automatic_CXX=yes
11443       hardcode_shlibpath_var_CXX=unsupported
11444       whole_archive_flag_spec_CXX=''
11445       link_all_deplibs_CXX=yes
11446
11447     if test "$GXX" = yes ; then
11448       lt_int_apple_cc_single_mod=no
11449       output_verbose_link_cmd='echo'
11450       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11451        lt_int_apple_cc_single_mod=yes
11452       fi
11453       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11454        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11455       else
11456           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'
11457         fi
11458         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11459         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11460           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11461             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}'
11462           else
11463             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}'
11464           fi
11465             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}'
11466       else
11467       case $cc_basename in
11468         xlc*)
11469          output_verbose_link_cmd='echo'
11470           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'
11471           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11472           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11473           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}'
11474           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}'
11475           ;;
11476        *)
11477          ld_shlibs_CXX=no
11478           ;;
11479       esac
11480       fi
11481         ;;
11482
11483   dgux*)
11484     case $cc_basename in
11485       ec++*)
11486         # FIXME: insert proper C++ library support
11487         ld_shlibs_CXX=no
11488         ;;
11489       ghcx*)
11490         # Green Hills C++ Compiler
11491         # FIXME: insert proper C++ library support
11492         ld_shlibs_CXX=no
11493         ;;
11494       *)
11495         # FIXME: insert proper C++ library support
11496         ld_shlibs_CXX=no
11497         ;;
11498     esac
11499     ;;
11500   freebsd[12]*)
11501     # C++ shared libraries reported to be fairly broken before switch to ELF
11502     ld_shlibs_CXX=no
11503     ;;
11504   freebsd-elf*)
11505     archive_cmds_need_lc_CXX=no
11506     ;;
11507   freebsd* | dragonfly*)
11508     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11509     # conventions
11510     ld_shlibs_CXX=yes
11511     ;;
11512   gnu*)
11513     ;;
11514   hpux9*)
11515     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11516     hardcode_libdir_separator_CXX=:
11517     export_dynamic_flag_spec_CXX='${wl}-E'
11518     hardcode_direct_CXX=yes
11519     hardcode_minus_L_CXX=yes # Not in the search PATH,
11520                                 # but as the default
11521                                 # location of the library.
11522
11523     case $cc_basename in
11524     CC*)
11525       # FIXME: insert proper C++ library support
11526       ld_shlibs_CXX=no
11527       ;;
11528     aCC*)
11529       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'
11530       # Commands to make compiler produce verbose output that lists
11531       # what "hidden" libraries, object files and flags are used when
11532       # linking a shared library.
11533       #
11534       # There doesn't appear to be a way to prevent this compiler from
11535       # explicitly linking system object files so we need to strip them
11536       # from the output so that they don't get included in the library
11537       # dependencies.
11538       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'
11539       ;;
11540     *)
11541       if test "$GXX" = yes; then
11542         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'
11543       else
11544         # FIXME: insert proper C++ library support
11545         ld_shlibs_CXX=no
11546       fi
11547       ;;
11548     esac
11549     ;;
11550   hpux10*|hpux11*)
11551     if test $with_gnu_ld = no; then
11552       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11553       hardcode_libdir_separator_CXX=:
11554
11555       case $host_cpu in
11556       hppa*64*|ia64*)
11557         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11558         ;;
11559       *)
11560         export_dynamic_flag_spec_CXX='${wl}-E'
11561         ;;
11562       esac
11563     fi
11564     case $host_cpu in
11565     hppa*64*|ia64*)
11566       hardcode_direct_CXX=no
11567       hardcode_shlibpath_var_CXX=no
11568       ;;
11569     *)
11570       hardcode_direct_CXX=yes
11571       hardcode_minus_L_CXX=yes # Not in the search PATH,
11572                                               # but as the default
11573                                               # location of the library.
11574       ;;
11575     esac
11576
11577     case $cc_basename in
11578       CC*)
11579         # FIXME: insert proper C++ library support
11580         ld_shlibs_CXX=no
11581         ;;
11582       aCC*)
11583         case $host_cpu in
11584         hppa*64*)
11585           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11586           ;;
11587         ia64*)
11588           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11589           ;;
11590         *)
11591           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11592           ;;
11593         esac
11594         # Commands to make compiler produce verbose output that lists
11595         # what "hidden" libraries, object files and flags are used when
11596         # linking a shared library.
11597         #
11598         # There doesn't appear to be a way to prevent this compiler from
11599         # explicitly linking system object files so we need to strip them
11600         # from the output so that they don't get included in the library
11601         # dependencies.
11602         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'
11603         ;;
11604       *)
11605         if test "$GXX" = yes; then
11606           if test $with_gnu_ld = no; then
11607             case $host_cpu in
11608             hppa*64*)
11609               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11610               ;;
11611             ia64*)
11612               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11613               ;;
11614             *)
11615               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'
11616               ;;
11617             esac
11618           fi
11619         else
11620           # FIXME: insert proper C++ library support
11621           ld_shlibs_CXX=no
11622         fi
11623         ;;
11624     esac
11625     ;;
11626   interix3*)
11627     hardcode_direct_CXX=no
11628     hardcode_shlibpath_var_CXX=no
11629     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11630     export_dynamic_flag_spec_CXX='${wl}-E'
11631     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11632     # Instead, shared libraries are loaded at an image base (0x10000000 by
11633     # default) and relocated if they conflict, which is a slow very memory
11634     # consuming and fragmenting process.  To avoid this, we pick a random,
11635     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11636     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11637     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'
11638     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'
11639     ;;
11640   irix5* | irix6*)
11641     case $cc_basename in
11642       CC*)
11643         # SGI C++
11644         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'
11645
11646         # Archives containing C++ object files must be created using
11647         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11648         # necessary to make sure instantiated templates are included
11649         # in the archive.
11650         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11651         ;;
11652       *)
11653         if test "$GXX" = yes; then
11654           if test "$with_gnu_ld" = no; then
11655             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'
11656           else
11657             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'
11658           fi
11659         fi
11660         link_all_deplibs_CXX=yes
11661         ;;
11662     esac
11663     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664     hardcode_libdir_separator_CXX=:
11665     ;;
11666   linux* | k*bsd*-gnu)
11667     case $cc_basename in
11668       KCC*)
11669         # Kuck and Associates, Inc. (KAI) C++ Compiler
11670
11671         # KCC will only create a shared library if the output file
11672         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11673         # to its proper name (with version) after linking.
11674         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'
11675         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'
11676         # Commands to make compiler produce verbose output that lists
11677         # what "hidden" libraries, object files and flags are used when
11678         # linking a shared library.
11679         #
11680         # There doesn't appear to be a way to prevent this compiler from
11681         # explicitly linking system object files so we need to strip them
11682         # from the output so that they don't get included in the library
11683         # dependencies.
11684         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'
11685
11686         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11687         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11688
11689         # Archives containing C++ object files must be created using
11690         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11691         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11692         ;;
11693       icpc*)
11694         # Intel C++
11695         with_gnu_ld=yes
11696         # version 8.0 and above of icpc choke on multiply defined symbols
11697         # if we add $predep_objects and $postdep_objects, however 7.1 and
11698         # earlier do not add the objects themselves.
11699         case `$CC -V 2>&1` in
11700         *"Version 7."*)
11701           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702           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'
11703           ;;
11704         *)  # Version 8.0 or newer
11705           tmp_idyn=
11706           case $host_cpu in
11707             ia64*) tmp_idyn=' -i_dynamic';;
11708           esac
11709           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710           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'
11711           ;;
11712         esac
11713         archive_cmds_need_lc_CXX=no
11714         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11716         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11717         ;;
11718       pgCC*)
11719         # Portland Group C++ compiler
11720         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11721         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'
11722
11723         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11724         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11725         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'
11726         ;;
11727       cxx*)
11728         # Compaq C++
11729         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11730         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'
11731
11732         runpath_var=LD_RUN_PATH
11733         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11734         hardcode_libdir_separator_CXX=:
11735
11736         # Commands to make compiler produce verbose output that lists
11737         # what "hidden" libraries, object files and flags are used when
11738         # linking a shared library.
11739         #
11740         # There doesn't appear to be a way to prevent this compiler from
11741         # explicitly linking system object files so we need to strip them
11742         # from the output so that they don't get included in the library
11743         # dependencies.
11744         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'
11745         ;;
11746     esac
11747     ;;
11748   lynxos*)
11749     # FIXME: insert proper C++ library support
11750     ld_shlibs_CXX=no
11751     ;;
11752   m88k*)
11753     # FIXME: insert proper C++ library support
11754     ld_shlibs_CXX=no
11755     ;;
11756   mvs*)
11757     case $cc_basename in
11758       cxx*)
11759         # FIXME: insert proper C++ library support
11760         ld_shlibs_CXX=no
11761         ;;
11762       *)
11763         # FIXME: insert proper C++ library support
11764         ld_shlibs_CXX=no
11765         ;;
11766     esac
11767     ;;
11768   netbsd* | netbsdelf*-gnu)
11769     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11770       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11771       wlarc=
11772       hardcode_libdir_flag_spec_CXX='-R$libdir'
11773       hardcode_direct_CXX=yes
11774       hardcode_shlibpath_var_CXX=no
11775     fi
11776     # Workaround some broken pre-1.5 toolchains
11777     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11778     ;;
11779   openbsd2*)
11780     # C++ shared libraries are fairly broken
11781     ld_shlibs_CXX=no
11782     ;;
11783   openbsd*)
11784     hardcode_direct_CXX=yes
11785     hardcode_shlibpath_var_CXX=no
11786     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11787     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11788     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11790       export_dynamic_flag_spec_CXX='${wl}-E'
11791       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11792     fi
11793     output_verbose_link_cmd='echo'
11794     ;;
11795   osf3*)
11796     case $cc_basename in
11797       KCC*)
11798         # Kuck and Associates, Inc. (KAI) C++ Compiler
11799
11800         # KCC will only create a shared library if the output file
11801         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11802         # to its proper name (with version) after linking.
11803         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'
11804
11805         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806         hardcode_libdir_separator_CXX=:
11807
11808         # Archives containing C++ object files must be created using
11809         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11811
11812         ;;
11813       RCC*)
11814         # Rational C++ 2.4.1
11815         # FIXME: insert proper C++ library support
11816         ld_shlibs_CXX=no
11817         ;;
11818       cxx*)
11819         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820         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'
11821
11822         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823         hardcode_libdir_separator_CXX=:
11824
11825         # Commands to make compiler produce verbose output that lists
11826         # what "hidden" libraries, object files and flags are used when
11827         # linking a shared library.
11828         #
11829         # There doesn't appear to be a way to prevent this compiler from
11830         # explicitly linking system object files so we need to strip them
11831         # from the output so that they don't get included in the library
11832         # dependencies.
11833         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'
11834         ;;
11835       *)
11836         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11837           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838           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'
11839
11840           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841           hardcode_libdir_separator_CXX=:
11842
11843           # Commands to make compiler produce verbose output that lists
11844           # what "hidden" libraries, object files and flags are used when
11845           # linking a shared library.
11846           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11847
11848         else
11849           # FIXME: insert proper C++ library support
11850           ld_shlibs_CXX=no
11851         fi
11852         ;;
11853     esac
11854     ;;
11855   osf4* | osf5*)
11856     case $cc_basename in
11857       KCC*)
11858         # Kuck and Associates, Inc. (KAI) C++ Compiler
11859
11860         # KCC will only create a shared library if the output file
11861         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11862         # to its proper name (with version) after linking.
11863         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'
11864
11865         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866         hardcode_libdir_separator_CXX=:
11867
11868         # Archives containing C++ object files must be created using
11869         # the KAI C++ compiler.
11870         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11871         ;;
11872       RCC*)
11873         # Rational C++ 2.4.1
11874         # FIXME: insert proper C++ library support
11875         ld_shlibs_CXX=no
11876         ;;
11877       cxx*)
11878         allow_undefined_flag_CXX=' -expect_unresolved \*'
11879         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'
11880         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11881           echo "-hidden">> $lib.exp~
11882           $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~
11883           $rm $lib.exp'
11884
11885         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11886         hardcode_libdir_separator_CXX=:
11887
11888         # Commands to make compiler produce verbose output that lists
11889         # what "hidden" libraries, object files and flags are used when
11890         # linking a shared library.
11891         #
11892         # There doesn't appear to be a way to prevent this compiler from
11893         # explicitly linking system object files so we need to strip them
11894         # from the output so that they don't get included in the library
11895         # dependencies.
11896         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'
11897         ;;
11898       *)
11899         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11901          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'
11902
11903           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11904           hardcode_libdir_separator_CXX=:
11905
11906           # Commands to make compiler produce verbose output that lists
11907           # what "hidden" libraries, object files and flags are used when
11908           # linking a shared library.
11909           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11910
11911         else
11912           # FIXME: insert proper C++ library support
11913           ld_shlibs_CXX=no
11914         fi
11915         ;;
11916     esac
11917     ;;
11918   psos*)
11919     # FIXME: insert proper C++ library support
11920     ld_shlibs_CXX=no
11921     ;;
11922   sunos4*)
11923     case $cc_basename in
11924       CC*)
11925         # Sun C++ 4.x
11926         # FIXME: insert proper C++ library support
11927         ld_shlibs_CXX=no
11928         ;;
11929       lcc*)
11930         # Lucid
11931         # FIXME: insert proper C++ library support
11932         ld_shlibs_CXX=no
11933         ;;
11934       *)
11935         # FIXME: insert proper C++ library support
11936         ld_shlibs_CXX=no
11937         ;;
11938     esac
11939     ;;
11940   solaris*)
11941     case $cc_basename in
11942       CC*)
11943         # Sun C++ 4.2, 5.x and Centerline C++
11944         archive_cmds_need_lc_CXX=yes
11945         no_undefined_flag_CXX=' -zdefs'
11946         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11948         $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'
11949
11950         hardcode_libdir_flag_spec_CXX='-R$libdir'
11951         hardcode_shlibpath_var_CXX=no
11952         case $host_os in
11953           solaris2.[0-5] | solaris2.[0-5].*) ;;
11954           *)
11955             # The C++ compiler is used as linker so we must use $wl
11956             # flag to pass the commands to the underlying system
11957             # linker. We must also pass each convience library through
11958             # to the system linker between allextract/defaultextract.
11959             # The C++ compiler will combine linker options so we
11960             # cannot just pass the convience library names through
11961             # without $wl.
11962             # Supported since Solaris 2.6 (maybe 2.5.1?)
11963             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'
11964             ;;
11965         esac
11966         link_all_deplibs_CXX=yes
11967
11968         output_verbose_link_cmd='echo'
11969
11970         # Archives containing C++ object files must be created using
11971         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11972         # necessary to make sure instantiated templates are included
11973         # in the archive.
11974         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11975         ;;
11976       gcx*)
11977         # Green Hills C++ Compiler
11978         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11979
11980         # The C++ compiler must be used to create the archive.
11981         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11982         ;;
11983       *)
11984         # GNU C++ compiler with Solaris linker
11985         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11986           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11987           if $CC --version | grep -v '^2\.7' > /dev/null; then
11988             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11990                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11991
11992             # Commands to make compiler produce verbose output that lists
11993             # what "hidden" libraries, object files and flags are used when
11994             # linking a shared library.
11995             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11996           else
11997             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11998             # platform.
11999             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12000             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12001                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12002
12003             # Commands to make compiler produce verbose output that lists
12004             # what "hidden" libraries, object files and flags are used when
12005             # linking a shared library.
12006             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12007           fi
12008
12009           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12010         fi
12011         ;;
12012     esac
12013     ;;
12014   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12015     no_undefined_flag_CXX='${wl}-z,text'
12016     archive_cmds_need_lc_CXX=no
12017     hardcode_shlibpath_var_CXX=no
12018     runpath_var='LD_RUN_PATH'
12019
12020     case $cc_basename in
12021       CC*)
12022         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12023         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12024         ;;
12025       *)
12026         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12027         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12028         ;;
12029     esac
12030     ;;
12031   sysv5* | sco3.2v5* | sco5v6*)
12032     # Note: We can NOT use -z defs as we might desire, because we do not
12033     # link with -lc, and that would cause any symbols used from libc to
12034     # always be unresolved, which means just about no library would
12035     # ever link correctly.  If we're not using GNU ld we use -z text
12036     # though, which does catch some bad symbols but isn't as heavy-handed
12037     # as -z defs.
12038     # For security reasons, it is highly recommended that you always
12039     # use absolute paths for naming shared libraries, and exclude the
12040     # DT_RUNPATH tag from executables and libraries.  But doing so
12041     # requires that you compile everything twice, which is a pain.
12042     # So that behaviour is only enabled if SCOABSPATH is set to a
12043     # non-empty value in the environment.  Most likely only useful for
12044     # creating official distributions of packages.
12045     # This is a hack until libtool officially supports absolute path
12046     # names for shared libraries.
12047     no_undefined_flag_CXX='${wl}-z,text'
12048     allow_undefined_flag_CXX='${wl}-z,nodefs'
12049     archive_cmds_need_lc_CXX=no
12050     hardcode_shlibpath_var_CXX=no
12051     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12052     hardcode_libdir_separator_CXX=':'
12053     link_all_deplibs_CXX=yes
12054     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12055     runpath_var='LD_RUN_PATH'
12056
12057     case $cc_basename in
12058       CC*)
12059         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12060         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12061         ;;
12062       *)
12063         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12064         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12065         ;;
12066     esac
12067     ;;
12068   tandem*)
12069     case $cc_basename in
12070       NCC*)
12071         # NonStop-UX NCC 3.20
12072         # FIXME: insert proper C++ library support
12073         ld_shlibs_CXX=no
12074         ;;
12075       *)
12076         # FIXME: insert proper C++ library support
12077         ld_shlibs_CXX=no
12078         ;;
12079     esac
12080     ;;
12081   vxworks*)
12082     # FIXME: insert proper C++ library support
12083     ld_shlibs_CXX=no
12084     ;;
12085   *)
12086     # FIXME: insert proper C++ library support
12087     ld_shlibs_CXX=no
12088     ;;
12089 esac
12090 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12091 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12092 test "$ld_shlibs_CXX" = no && can_build_shared=no
12093
12094 GCC_CXX="$GXX"
12095 LD_CXX="$LD"
12096
12097
12098 cat > conftest.$ac_ext <<EOF
12099 class Foo
12100 {
12101 public:
12102   Foo (void) { a = 0; }
12103 private:
12104   int a;
12105 };
12106 EOF
12107
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109   (eval $ac_compile) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; then
12113   # Parse the compiler output and extract the necessary
12114   # objects, libraries and library flags.
12115
12116   # Sentinel used to keep track of whether or not we are before
12117   # the conftest object file.
12118   pre_test_object_deps_done=no
12119
12120   # The `*' in the case matches for architectures that use `case' in
12121   # $output_verbose_cmd can trigger glob expansion during the loop
12122   # eval without this substitution.
12123   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12124
12125   for p in `eval $output_verbose_link_cmd`; do
12126     case $p in
12127
12128     -L* | -R* | -l*)
12129        # Some compilers place space between "-{L,R}" and the path.
12130        # Remove the space.
12131        if test $p = "-L" \
12132           || test $p = "-R"; then
12133          prev=$p
12134          continue
12135        else
12136          prev=
12137        fi
12138
12139        if test "$pre_test_object_deps_done" = no; then
12140          case $p in
12141          -L* | -R*)
12142            # Internal compiler library paths should come after those
12143            # provided the user.  The postdeps already come after the
12144            # user supplied libs so there is no need to process them.
12145            if test -z "$compiler_lib_search_path_CXX"; then
12146              compiler_lib_search_path_CXX="${prev}${p}"
12147            else
12148              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12149            fi
12150            ;;
12151          # The "-l" case would never come before the object being
12152          # linked, so don't bother handling this case.
12153          esac
12154        else
12155          if test -z "$postdeps_CXX"; then
12156            postdeps_CXX="${prev}${p}"
12157          else
12158            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12159          fi
12160        fi
12161        ;;
12162
12163     *.$objext)
12164        # This assumes that the test object file only shows up
12165        # once in the compiler output.
12166        if test "$p" = "conftest.$objext"; then
12167          pre_test_object_deps_done=yes
12168          continue
12169        fi
12170
12171        if test "$pre_test_object_deps_done" = no; then
12172          if test -z "$predep_objects_CXX"; then
12173            predep_objects_CXX="$p"
12174          else
12175            predep_objects_CXX="$predep_objects_CXX $p"
12176          fi
12177        else
12178          if test -z "$postdep_objects_CXX"; then
12179            postdep_objects_CXX="$p"
12180          else
12181            postdep_objects_CXX="$postdep_objects_CXX $p"
12182          fi
12183        fi
12184        ;;
12185
12186     *) ;; # Ignore the rest.
12187
12188     esac
12189   done
12190
12191   # Clean up.
12192   rm -f a.out a.exe
12193 else
12194   echo "libtool.m4: error: problem compiling CXX test program"
12195 fi
12196
12197 $rm -f confest.$objext
12198
12199 # PORTME: override above test on systems where it is broken
12200 case $host_os in
12201 interix3*)
12202   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12203   # hack all around it, let's just trust "g++" to DTRT.
12204   predep_objects_CXX=
12205   postdep_objects_CXX=
12206   postdeps_CXX=
12207   ;;
12208
12209 solaris*)
12210   case $cc_basename in
12211   CC*)
12212     # Adding this requires a known-good setup of shared libraries for
12213     # Sun compiler versions before 5.6, else PIC objects from an old
12214     # archive will be linked into the output, leading to subtle bugs.
12215     postdeps_CXX='-lCstd -lCrun'
12216     ;;
12217   esac
12218   ;;
12219 esac
12220
12221
12222 case " $postdeps_CXX " in
12223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12224 esac
12225
12226 lt_prog_compiler_wl_CXX=
12227 lt_prog_compiler_pic_CXX=
12228 lt_prog_compiler_static_CXX=
12229
12230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12232
12233   # C++ specific cases for pic, static, wl, etc.
12234   if test "$GXX" = yes; then
12235     lt_prog_compiler_wl_CXX='-Wl,'
12236     lt_prog_compiler_static_CXX='-static'
12237
12238     case $host_os in
12239     aix*)
12240       # All AIX code is PIC.
12241       if test "$host_cpu" = ia64; then
12242         # AIX 5 now supports IA64 processor
12243         lt_prog_compiler_static_CXX='-Bstatic'
12244       fi
12245       ;;
12246     amigaos*)
12247       # FIXME: we need at least 68020 code to build shared libraries, but
12248       # adding the `-m68020' flag to GCC prevents building anything better,
12249       # like `-m68040'.
12250       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12251       ;;
12252     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12253       # PIC is the default for these OSes.
12254       ;;
12255     mingw* | os2* | pw32*)
12256       # This hack is so that the source file can tell whether it is being
12257       # built for inclusion in a dll (and should export symbols for example).
12258       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12259       ;;
12260     darwin* | rhapsody*)
12261       # PIC is the default on this platform
12262       # Common symbols not allowed in MH_DYLIB files
12263       lt_prog_compiler_pic_CXX='-fno-common'
12264       ;;
12265     *djgpp*)
12266       # DJGPP does not support shared libraries at all
12267       lt_prog_compiler_pic_CXX=
12268       ;;
12269     interix3*)
12270       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12271       # Instead, we relocate shared libraries at runtime.
12272       ;;
12273     sysv4*MP*)
12274       if test -d /usr/nec; then
12275         lt_prog_compiler_pic_CXX=-Kconform_pic
12276       fi
12277       ;;
12278     hpux*)
12279       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12280       # not for PA HP-UX.
12281       case $host_cpu in
12282       hppa*64*|ia64*)
12283         ;;
12284       *)
12285         lt_prog_compiler_pic_CXX='-fPIC'
12286         ;;
12287       esac
12288       ;;
12289     *)
12290       lt_prog_compiler_pic_CXX='-fPIC'
12291       ;;
12292     esac
12293   else
12294     case $host_os in
12295       aix4* | aix5*)
12296         # All AIX code is PIC.
12297         if test "$host_cpu" = ia64; then
12298           # AIX 5 now supports IA64 processor
12299           lt_prog_compiler_static_CXX='-Bstatic'
12300         else
12301           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12302         fi
12303         ;;
12304       chorus*)
12305         case $cc_basename in
12306         cxch68*)
12307           # Green Hills C++ Compiler
12308           # _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"
12309           ;;
12310         esac
12311         ;;
12312        darwin*)
12313          # PIC is the default on this platform
12314          # Common symbols not allowed in MH_DYLIB files
12315          case $cc_basename in
12316            xlc*)
12317            lt_prog_compiler_pic_CXX='-qnocommon'
12318            lt_prog_compiler_wl_CXX='-Wl,'
12319            ;;
12320          esac
12321        ;;
12322       dgux*)
12323         case $cc_basename in
12324           ec++*)
12325             lt_prog_compiler_pic_CXX='-KPIC'
12326             ;;
12327           ghcx*)
12328             # Green Hills C++ Compiler
12329             lt_prog_compiler_pic_CXX='-pic'
12330             ;;
12331           *)
12332             ;;
12333         esac
12334         ;;
12335       freebsd* | dragonfly*)
12336         # FreeBSD uses GNU C++
12337         ;;
12338       hpux9* | hpux10* | hpux11*)
12339         case $cc_basename in
12340           CC*)
12341             lt_prog_compiler_wl_CXX='-Wl,'
12342             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12343             if test "$host_cpu" != ia64; then
12344               lt_prog_compiler_pic_CXX='+Z'
12345             fi
12346             ;;
12347           aCC*)
12348             lt_prog_compiler_wl_CXX='-Wl,'
12349             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12350             case $host_cpu in
12351             hppa*64*|ia64*)
12352               # +Z the default
12353               ;;
12354             *)
12355               lt_prog_compiler_pic_CXX='+Z'
12356               ;;
12357             esac
12358             ;;
12359           *)
12360             ;;
12361         esac
12362         ;;
12363       interix*)
12364         # This is c89, which is MS Visual C++ (no shared libs)
12365         # Anyone wants to do a port?
12366         ;;
12367       irix5* | irix6* | nonstopux*)
12368         case $cc_basename in
12369           CC*)
12370             lt_prog_compiler_wl_CXX='-Wl,'
12371             lt_prog_compiler_static_CXX='-non_shared'
12372             # CC pic flag -KPIC is the default.
12373             ;;
12374           *)
12375             ;;
12376         esac
12377         ;;
12378       linux* | k*bsd*-gnu)
12379         case $cc_basename in
12380           KCC*)
12381             # KAI C++ Compiler
12382             lt_prog_compiler_wl_CXX='--backend -Wl,'
12383             lt_prog_compiler_pic_CXX='-fPIC'
12384             ;;
12385           icpc* | ecpc*)
12386             # Intel C++
12387             lt_prog_compiler_wl_CXX='-Wl,'
12388             lt_prog_compiler_pic_CXX='-KPIC'
12389             lt_prog_compiler_static_CXX='-static'
12390             ;;
12391           pgCC*)
12392             # Portland Group C++ compiler.
12393             lt_prog_compiler_wl_CXX='-Wl,'
12394             lt_prog_compiler_pic_CXX='-fpic'
12395             lt_prog_compiler_static_CXX='-Bstatic'
12396             ;;
12397           cxx*)
12398             # Compaq C++
12399             # Make sure the PIC flag is empty.  It appears that all Alpha
12400             # Linux and Compaq Tru64 Unix objects are PIC.
12401             lt_prog_compiler_pic_CXX=
12402             lt_prog_compiler_static_CXX='-non_shared'
12403             ;;
12404           *)
12405             ;;
12406         esac
12407         ;;
12408       lynxos*)
12409         ;;
12410       m88k*)
12411         ;;
12412       mvs*)
12413         case $cc_basename in
12414           cxx*)
12415             lt_prog_compiler_pic_CXX='-W c,exportall'
12416             ;;
12417           *)
12418             ;;
12419         esac
12420         ;;
12421       netbsd* | netbsdelf*-gnu)
12422         ;;
12423       osf3* | osf4* | osf5*)
12424         case $cc_basename in
12425           KCC*)
12426             lt_prog_compiler_wl_CXX='--backend -Wl,'
12427             ;;
12428           RCC*)
12429             # Rational C++ 2.4.1
12430             lt_prog_compiler_pic_CXX='-pic'
12431             ;;
12432           cxx*)
12433             # Digital/Compaq C++
12434             lt_prog_compiler_wl_CXX='-Wl,'
12435             # Make sure the PIC flag is empty.  It appears that all Alpha
12436             # Linux and Compaq Tru64 Unix objects are PIC.
12437             lt_prog_compiler_pic_CXX=
12438             lt_prog_compiler_static_CXX='-non_shared'
12439             ;;
12440           *)
12441             ;;
12442         esac
12443         ;;
12444       psos*)
12445         ;;
12446       solaris*)
12447         case $cc_basename in
12448           CC*)
12449             # Sun C++ 4.2, 5.x and Centerline C++
12450             lt_prog_compiler_pic_CXX='-KPIC'
12451             lt_prog_compiler_static_CXX='-Bstatic'
12452             lt_prog_compiler_wl_CXX='-Qoption ld '
12453             ;;
12454           gcx*)
12455             # Green Hills C++ Compiler
12456             lt_prog_compiler_pic_CXX='-PIC'
12457             ;;
12458           *)
12459             ;;
12460         esac
12461         ;;
12462       sunos4*)
12463         case $cc_basename in
12464           CC*)
12465             # Sun C++ 4.x
12466             lt_prog_compiler_pic_CXX='-pic'
12467             lt_prog_compiler_static_CXX='-Bstatic'
12468             ;;
12469           lcc*)
12470             # Lucid
12471             lt_prog_compiler_pic_CXX='-pic'
12472             ;;
12473           *)
12474             ;;
12475         esac
12476         ;;
12477       tandem*)
12478         case $cc_basename in
12479           NCC*)
12480             # NonStop-UX NCC 3.20
12481             lt_prog_compiler_pic_CXX='-KPIC'
12482             ;;
12483           *)
12484             ;;
12485         esac
12486         ;;
12487       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12488         case $cc_basename in
12489           CC*)
12490             lt_prog_compiler_wl_CXX='-Wl,'
12491             lt_prog_compiler_pic_CXX='-KPIC'
12492             lt_prog_compiler_static_CXX='-Bstatic'
12493             ;;
12494         esac
12495         ;;
12496       vxworks*)
12497         ;;
12498       *)
12499         lt_prog_compiler_can_build_shared_CXX=no
12500         ;;
12501     esac
12502   fi
12503
12504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12505 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12506
12507 #
12508 # Check to make sure the PIC flag actually works.
12509 #
12510 if test -n "$lt_prog_compiler_pic_CXX"; then
12511
12512 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12514 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517   lt_prog_compiler_pic_works_CXX=no
12518   ac_outfile=conftest.$ac_objext
12519    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12521    # Insert the option either (1) after the last *FLAGS variable, or
12522    # (2) before a word containing "conftest.", or (3) at the end.
12523    # Note that $ac_compile itself does not contain backslashes and begins
12524    # with a dollar sign (not a hyphen), so the echo should work correctly.
12525    # The option is referenced via a variable to avoid confusing sed.
12526    lt_compile=`echo "$ac_compile" | $SED \
12527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529    -e 's:$: $lt_compiler_flag:'`
12530    (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
12531    (eval "$lt_compile" 2>conftest.err)
12532    ac_status=$?
12533    cat conftest.err >&5
12534    echo "$as_me:12534: \$? = $ac_status" >&5
12535    if (exit $ac_status) && test -s "$ac_outfile"; then
12536      # The compiler can only warn and ignore the option if not recognized
12537      # So say no if there are warnings other than the usual output.
12538      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12541        lt_prog_compiler_pic_works_CXX=yes
12542      fi
12543    fi
12544    $rm conftest*
12545
12546 fi
12547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12548 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12549
12550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12551     case $lt_prog_compiler_pic_CXX in
12552      "" | " "*) ;;
12553      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12554      esac
12555 else
12556     lt_prog_compiler_pic_CXX=
12557      lt_prog_compiler_can_build_shared_CXX=no
12558 fi
12559
12560 fi
12561 case $host_os in
12562   # For platforms which do not support PIC, -DPIC is meaningless:
12563   *djgpp*)
12564     lt_prog_compiler_pic_CXX=
12565     ;;
12566   *)
12567     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12568     ;;
12569 esac
12570
12571 #
12572 # Check to make sure the static flag actually works.
12573 #
12574 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12575 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12576 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12577 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   lt_prog_compiler_static_works_CXX=no
12581    save_LDFLAGS="$LDFLAGS"
12582    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12583    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12584    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12585      # The linker can only warn and ignore the option if not recognized
12586      # So say no if there are warnings
12587      if test -s conftest.err; then
12588        # Append any errors to the config.log.
12589        cat conftest.err 1>&5
12590        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12591        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12592        if diff conftest.exp conftest.er2 >/dev/null; then
12593          lt_prog_compiler_static_works_CXX=yes
12594        fi
12595      else
12596        lt_prog_compiler_static_works_CXX=yes
12597      fi
12598    fi
12599    $rm conftest*
12600    LDFLAGS="$save_LDFLAGS"
12601
12602 fi
12603 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12604 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12605
12606 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12607     :
12608 else
12609     lt_prog_compiler_static_CXX=
12610 fi
12611
12612
12613 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12615 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12616   echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618   lt_cv_prog_compiler_c_o_CXX=no
12619    $rm -r conftest 2>/dev/null
12620    mkdir conftest
12621    cd conftest
12622    mkdir out
12623    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12624
12625    lt_compiler_flag="-o out/conftest2.$ac_objext"
12626    # Insert the option either (1) after the last *FLAGS variable, or
12627    # (2) before a word containing "conftest.", or (3) at the end.
12628    # Note that $ac_compile itself does not contain backslashes and begins
12629    # with a dollar sign (not a hyphen), so the echo should work correctly.
12630    lt_compile=`echo "$ac_compile" | $SED \
12631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633    -e 's:$: $lt_compiler_flag:'`
12634    (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635    (eval "$lt_compile" 2>out/conftest.err)
12636    ac_status=$?
12637    cat out/conftest.err >&5
12638    echo "$as_me:12638: \$? = $ac_status" >&5
12639    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12640    then
12641      # The compiler can only warn and ignore the option if not recognized
12642      # So say no if there are warnings
12643      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12644      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12645      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12646        lt_cv_prog_compiler_c_o_CXX=yes
12647      fi
12648    fi
12649    chmod u+w . 2>&5
12650    $rm conftest*
12651    # SGI C++ compiler will create directory out/ii_files/ for
12652    # template instantiation
12653    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12654    $rm out/* && rmdir out
12655    cd ..
12656    rmdir conftest
12657    $rm conftest*
12658
12659 fi
12660 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12661 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12662
12663
12664 hard_links="nottested"
12665 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12666   # do not overwrite the value of need_locks provided by the user
12667   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12668 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12669   hard_links=yes
12670   $rm conftest*
12671   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12672   touch conftest.a
12673   ln conftest.a conftest.b 2>&5 || hard_links=no
12674   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12675   { echo "$as_me:$LINENO: result: $hard_links" >&5
12676 echo "${ECHO_T}$hard_links" >&6; }
12677   if test "$hard_links" = no; then
12678     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12679 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12680     need_locks=warn
12681   fi
12682 else
12683   need_locks=no
12684 fi
12685
12686 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12687 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12688
12689   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12690   case $host_os in
12691   aix4* | aix5*)
12692     # If we're using GNU nm, then we don't want the "-C" option.
12693     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12694     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12695       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'
12696     else
12697       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'
12698     fi
12699     ;;
12700   pw32*)
12701     export_symbols_cmds_CXX="$ltdll_cmds"
12702   ;;
12703   cygwin* | mingw*)
12704     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'
12705   ;;
12706   linux* | k*bsd*-gnu)
12707     link_all_deplibs_CXX=no
12708   ;;
12709   *)
12710     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12711   ;;
12712   esac
12713
12714 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12715 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12716 test "$ld_shlibs_CXX" = no && can_build_shared=no
12717
12718 #
12719 # Do we need to explicitly link libc?
12720 #
12721 case "x$archive_cmds_need_lc_CXX" in
12722 x|xyes)
12723   # Assume -lc should be added
12724   archive_cmds_need_lc_CXX=yes
12725
12726   if test "$enable_shared" = yes && test "$GCC" = yes; then
12727     case $archive_cmds_CXX in
12728     *'~'*)
12729       # FIXME: we may have to deal with multi-command sequences.
12730       ;;
12731     '$CC '*)
12732       # Test whether the compiler implicitly links with -lc since on some
12733       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12734       # to ld, don't add -lc before -lgcc.
12735       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12736 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12737       $rm conftest*
12738       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12739
12740       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741   (eval $ac_compile) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } 2>conftest.err; then
12745         soname=conftest
12746         lib=conftest
12747         libobjs=conftest.$ac_objext
12748         deplibs=
12749         wl=$lt_prog_compiler_wl_CXX
12750         pic_flag=$lt_prog_compiler_pic_CXX
12751         compiler_flags=-v
12752         linker_flags=-v
12753         verstring=
12754         output_objdir=.
12755         libname=conftest
12756         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12757         allow_undefined_flag_CXX=
12758         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12759   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }
12763         then
12764           archive_cmds_need_lc_CXX=no
12765         else
12766           archive_cmds_need_lc_CXX=yes
12767         fi
12768         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12769       else
12770         cat conftest.err 1>&5
12771       fi
12772       $rm conftest*
12773       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12774 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12775       ;;
12776     esac
12777   fi
12778   ;;
12779 esac
12780
12781 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12783 library_names_spec=
12784 libname_spec='lib$name'
12785 soname_spec=
12786 shrext_cmds=".so"
12787 postinstall_cmds=
12788 postuninstall_cmds=
12789 finish_cmds=
12790 finish_eval=
12791 shlibpath_var=
12792 shlibpath_overrides_runpath=unknown
12793 version_type=none
12794 dynamic_linker="$host_os ld.so"
12795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12796 if test "$GCC" = yes; then
12797   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12798   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12799     # if the path contains ";" then we assume it to be the separator
12800     # otherwise default to the standard path separator (i.e. ":") - it is
12801     # assumed that no part of a normal pathname contains ";" but that should
12802     # okay in the real world where ";" in dirpaths is itself problematic.
12803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12804   else
12805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12806   fi
12807 else
12808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12809 fi
12810 need_lib_prefix=unknown
12811 hardcode_into_libs=no
12812
12813 # when you set need_version to no, make sure it does not cause -set_version
12814 # flags to be left without arguments
12815 need_version=unknown
12816
12817 case $host_os in
12818 aix3*)
12819   version_type=linux
12820   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12821   shlibpath_var=LIBPATH
12822
12823   # AIX 3 has no versioning support, so we append a major version to the name.
12824   soname_spec='${libname}${release}${shared_ext}$major'
12825   ;;
12826
12827 aix4* | aix5*)
12828   version_type=linux
12829   need_lib_prefix=no
12830   need_version=no
12831   hardcode_into_libs=yes
12832   if test "$host_cpu" = ia64; then
12833     # AIX 5 supports IA64
12834     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12835     shlibpath_var=LD_LIBRARY_PATH
12836   else
12837     # With GCC up to 2.95.x, collect2 would create an import file
12838     # for dependence libraries.  The import file would start with
12839     # the line `#! .'.  This would cause the generated library to
12840     # depend on `.', always an invalid library.  This was fixed in
12841     # development snapshots of GCC prior to 3.0.
12842     case $host_os in
12843       aix4 | aix4.[01] | aix4.[01].*)
12844       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12845            echo ' yes '
12846            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12847         :
12848       else
12849         can_build_shared=no
12850       fi
12851       ;;
12852     esac
12853     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12854     # soname into executable. Probably we can add versioning support to
12855     # collect2, so additional links can be useful in future.
12856     if test "$aix_use_runtimelinking" = yes; then
12857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12858       # instead of lib<name>.a to let people know that these are not
12859       # typical AIX shared libraries.
12860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12861     else
12862       # We preserve .a as extension for shared libraries through AIX4.2
12863       # and later when we are not doing run time linking.
12864       library_names_spec='${libname}${release}.a $libname.a'
12865       soname_spec='${libname}${release}${shared_ext}$major'
12866     fi
12867     shlibpath_var=LIBPATH
12868   fi
12869   ;;
12870
12871 amigaos*)
12872   library_names_spec='$libname.ixlibrary $libname.a'
12873   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12874   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'
12875   ;;
12876
12877 beos*)
12878   library_names_spec='${libname}${shared_ext}'
12879   dynamic_linker="$host_os ld.so"
12880   shlibpath_var=LIBRARY_PATH
12881   ;;
12882
12883 bsdi[45]*)
12884   version_type=linux
12885   need_version=no
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887   soname_spec='${libname}${release}${shared_ext}$major'
12888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12889   shlibpath_var=LD_LIBRARY_PATH
12890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12892   # the default ld.so.conf also contains /usr/contrib/lib and
12893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12894   # libtool to hard-code these into programs
12895   ;;
12896
12897 cygwin* | mingw* | pw32*)
12898   version_type=windows
12899   shrext_cmds=".dll"
12900   need_version=no
12901   need_lib_prefix=no
12902
12903   case $GCC,$host_os in
12904   yes,cygwin* | yes,mingw* | yes,pw32*)
12905     library_names_spec='$libname.dll.a'
12906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12907     postinstall_cmds='base_file=`basename \${file}`~
12908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12909       dldir=$destdir/`dirname \$dlpath`~
12910       test -d \$dldir || mkdir -p \$dldir~
12911       $install_prog $dir/$dlname \$dldir/$dlname~
12912       chmod a+x \$dldir/$dlname'
12913     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12914       dlpath=$dir/\$dldll~
12915        $rm \$dlpath'
12916     shlibpath_overrides_runpath=yes
12917
12918     case $host_os in
12919     cygwin*)
12920       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12921       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12922       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12923       ;;
12924     mingw*)
12925       # MinGW DLLs use traditional 'lib' prefix
12926       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12927       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12928       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12929         # It is most probably a Windows format PATH printed by
12930         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12931         # path with ; separators, and with drive letters. We can handle the
12932         # drive letters (cygwin fileutils understands them), so leave them,
12933         # especially as we might pass files found there to a mingw objdump,
12934         # which wouldn't understand a cygwinified path. Ahh.
12935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12936       else
12937         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12938       fi
12939       ;;
12940     pw32*)
12941       # pw32 DLLs use 'pw' prefix rather than 'lib'
12942       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12943       ;;
12944     esac
12945     ;;
12946
12947   *)
12948     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12949     ;;
12950   esac
12951   dynamic_linker='Win32 ld.exe'
12952   # FIXME: first we should search . and the directory the executable is in
12953   shlibpath_var=PATH
12954   ;;
12955
12956 darwin* | rhapsody*)
12957   dynamic_linker="$host_os dyld"
12958   version_type=darwin
12959   need_lib_prefix=no
12960   need_version=no
12961   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12962   soname_spec='${libname}${release}${major}$shared_ext'
12963   shlibpath_overrides_runpath=yes
12964   shlibpath_var=DYLD_LIBRARY_PATH
12965   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12966   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12967   if test "$GCC" = yes; then
12968     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"`
12969   else
12970     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12971   fi
12972   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12973   ;;
12974
12975 dgux*)
12976   version_type=linux
12977   need_lib_prefix=no
12978   need_version=no
12979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12980   soname_spec='${libname}${release}${shared_ext}$major'
12981   shlibpath_var=LD_LIBRARY_PATH
12982   ;;
12983
12984 freebsd1*)
12985   dynamic_linker=no
12986   ;;
12987
12988 freebsd* | dragonfly*)
12989   # DragonFly does not have aout.  When/if they implement a new
12990   # versioning mechanism, adjust this.
12991   if test -x /usr/bin/objformat; then
12992     objformat=`/usr/bin/objformat`
12993   else
12994     case $host_os in
12995     freebsd[123]*) objformat=aout ;;
12996     *) objformat=elf ;;
12997     esac
12998   fi
12999   version_type=freebsd-$objformat
13000   case $version_type in
13001     freebsd-elf*)
13002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13003       need_version=no
13004       need_lib_prefix=no
13005       ;;
13006     freebsd-*)
13007       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13008       need_version=yes
13009       ;;
13010   esac
13011   shlibpath_var=LD_LIBRARY_PATH
13012   case $host_os in
13013   freebsd2*)
13014     shlibpath_overrides_runpath=yes
13015     ;;
13016   freebsd3.[01]* | freebsdelf3.[01]*)
13017     shlibpath_overrides_runpath=yes
13018     hardcode_into_libs=yes
13019     ;;
13020   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13021   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13022     shlibpath_overrides_runpath=no
13023     hardcode_into_libs=yes
13024     ;;
13025   freebsd*) # from 4.6 on
13026     shlibpath_overrides_runpath=yes
13027     hardcode_into_libs=yes
13028     ;;
13029   esac
13030   ;;
13031
13032 gnu*)
13033   version_type=linux
13034   need_lib_prefix=no
13035   need_version=no
13036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13037   soname_spec='${libname}${release}${shared_ext}$major'
13038   shlibpath_var=LD_LIBRARY_PATH
13039   hardcode_into_libs=yes
13040   ;;
13041
13042 hpux9* | hpux10* | hpux11*)
13043   # Give a soname corresponding to the major version so that dld.sl refuses to
13044   # link against other versions.
13045   version_type=sunos
13046   need_lib_prefix=no
13047   need_version=no
13048   case $host_cpu in
13049   ia64*)
13050     shrext_cmds='.so'
13051     hardcode_into_libs=yes
13052     dynamic_linker="$host_os dld.so"
13053     shlibpath_var=LD_LIBRARY_PATH
13054     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056     soname_spec='${libname}${release}${shared_ext}$major'
13057     if test "X$HPUX_IA64_MODE" = X32; then
13058       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13059     else
13060       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13061     fi
13062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13063     ;;
13064    hppa*64*)
13065      shrext_cmds='.sl'
13066      hardcode_into_libs=yes
13067      dynamic_linker="$host_os dld.sl"
13068      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13069      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071      soname_spec='${libname}${release}${shared_ext}$major'
13072      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13073      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13074      ;;
13075    *)
13076     shrext_cmds='.sl'
13077     dynamic_linker="$host_os dld.sl"
13078     shlibpath_var=SHLIB_PATH
13079     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081     soname_spec='${libname}${release}${shared_ext}$major'
13082     ;;
13083   esac
13084   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13085   postinstall_cmds='chmod 555 $lib'
13086   ;;
13087
13088 interix3*)
13089   version_type=linux
13090   need_lib_prefix=no
13091   need_version=no
13092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13093   soname_spec='${libname}${release}${shared_ext}$major'
13094   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13095   shlibpath_var=LD_LIBRARY_PATH
13096   shlibpath_overrides_runpath=no
13097   hardcode_into_libs=yes
13098   ;;
13099
13100 irix5* | irix6* | nonstopux*)
13101   case $host_os in
13102     nonstopux*) version_type=nonstopux ;;
13103     *)
13104         if test "$lt_cv_prog_gnu_ld" = yes; then
13105                 version_type=linux
13106         else
13107                 version_type=irix
13108         fi ;;
13109   esac
13110   need_lib_prefix=no
13111   need_version=no
13112   soname_spec='${libname}${release}${shared_ext}$major'
13113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13114   case $host_os in
13115   irix5* | nonstopux*)
13116     libsuff= shlibsuff=
13117     ;;
13118   *)
13119     case $LD in # libtool.m4 will add one of these switches to LD
13120     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13121       libsuff= shlibsuff= libmagic=32-bit;;
13122     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13123       libsuff=32 shlibsuff=N32 libmagic=N32;;
13124     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13125       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13126     *) libsuff= shlibsuff= libmagic=never-match;;
13127     esac
13128     ;;
13129   esac
13130   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13131   shlibpath_overrides_runpath=no
13132   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13133   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13134   hardcode_into_libs=yes
13135   ;;
13136
13137 # No shared lib support for Linux oldld, aout, or coff.
13138 linux*oldld* | linux*aout* | linux*coff*)
13139   dynamic_linker=no
13140   ;;
13141
13142 # This must be Linux ELF.
13143 linux* | k*bsd*-gnu)
13144   version_type=linux
13145   need_lib_prefix=no
13146   need_version=no
13147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148   soname_spec='${libname}${release}${shared_ext}$major'
13149   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13150   shlibpath_var=LD_LIBRARY_PATH
13151   shlibpath_overrides_runpath=no
13152   # This implies no fast_install, which is unacceptable.
13153   # Some rework will be needed to allow for fast_install
13154   # before this can be enabled.
13155   hardcode_into_libs=yes
13156
13157   # Append ld.so.conf contents to the search path
13158   if test -f /etc/ld.so.conf; then
13159     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' ' '`
13160     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13161   fi
13162
13163   # We used to test for /lib/ld.so.1 and disable shared libraries on
13164   # powerpc, because MkLinux only supported shared libraries with the
13165   # GNU dynamic linker.  Since this was broken with cross compilers,
13166   # most powerpc-linux boxes support dynamic linking these days and
13167   # people can always --disable-shared, the test was removed, and we
13168   # assume the GNU/Linux dynamic linker is in use.
13169   dynamic_linker='GNU/Linux ld.so'
13170   ;;
13171
13172 netbsdelf*-gnu)
13173   version_type=linux
13174   need_lib_prefix=no
13175   need_version=no
13176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13177   soname_spec='${libname}${release}${shared_ext}$major'
13178   shlibpath_var=LD_LIBRARY_PATH
13179   shlibpath_overrides_runpath=no
13180   hardcode_into_libs=yes
13181   dynamic_linker='NetBSD ld.elf_so'
13182   ;;
13183
13184 netbsd*)
13185   version_type=sunos
13186   need_lib_prefix=no
13187   need_version=no
13188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13191     dynamic_linker='NetBSD (a.out) ld.so'
13192   else
13193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13194     soname_spec='${libname}${release}${shared_ext}$major'
13195     dynamic_linker='NetBSD ld.elf_so'
13196   fi
13197   shlibpath_var=LD_LIBRARY_PATH
13198   shlibpath_overrides_runpath=yes
13199   hardcode_into_libs=yes
13200   ;;
13201
13202 newsos6)
13203   version_type=linux
13204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205   shlibpath_var=LD_LIBRARY_PATH
13206   shlibpath_overrides_runpath=yes
13207   ;;
13208
13209 nto-qnx*)
13210   version_type=linux
13211   need_lib_prefix=no
13212   need_version=no
13213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214   soname_spec='${libname}${release}${shared_ext}$major'
13215   shlibpath_var=LD_LIBRARY_PATH
13216   shlibpath_overrides_runpath=yes
13217   ;;
13218
13219 openbsd*)
13220   version_type=sunos
13221   sys_lib_dlsearch_path_spec="/usr/lib"
13222   need_lib_prefix=no
13223   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13224   case $host_os in
13225     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13226     *)                         need_version=no  ;;
13227   esac
13228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13230   shlibpath_var=LD_LIBRARY_PATH
13231   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13232     case $host_os in
13233       openbsd2.[89] | openbsd2.[89].*)
13234         shlibpath_overrides_runpath=no
13235         ;;
13236       *)
13237         shlibpath_overrides_runpath=yes
13238         ;;
13239       esac
13240   else
13241     shlibpath_overrides_runpath=yes
13242   fi
13243   ;;
13244
13245 os2*)
13246   libname_spec='$name'
13247   shrext_cmds=".dll"
13248   need_lib_prefix=no
13249   library_names_spec='$libname${shared_ext} $libname.a'
13250   dynamic_linker='OS/2 ld.exe'
13251   shlibpath_var=LIBPATH
13252   ;;
13253
13254 osf3* | osf4* | osf5*)
13255   version_type=osf
13256   need_lib_prefix=no
13257   need_version=no
13258   soname_spec='${libname}${release}${shared_ext}$major'
13259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13260   shlibpath_var=LD_LIBRARY_PATH
13261   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13262   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13263   ;;
13264
13265 solaris*)
13266   version_type=linux
13267   need_lib_prefix=no
13268   need_version=no
13269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270   soname_spec='${libname}${release}${shared_ext}$major'
13271   shlibpath_var=LD_LIBRARY_PATH
13272   shlibpath_overrides_runpath=yes
13273   hardcode_into_libs=yes
13274   # ldd complains unless libraries are executable
13275   postinstall_cmds='chmod +x $lib'
13276   ;;
13277
13278 sunos4*)
13279   version_type=sunos
13280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13282   shlibpath_var=LD_LIBRARY_PATH
13283   shlibpath_overrides_runpath=yes
13284   if test "$with_gnu_ld" = yes; then
13285     need_lib_prefix=no
13286   fi
13287   need_version=yes
13288   ;;
13289
13290 sysv4 | sysv4.3*)
13291   version_type=linux
13292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293   soname_spec='${libname}${release}${shared_ext}$major'
13294   shlibpath_var=LD_LIBRARY_PATH
13295   case $host_vendor in
13296     sni)
13297       shlibpath_overrides_runpath=no
13298       need_lib_prefix=no
13299       export_dynamic_flag_spec='${wl}-Blargedynsym'
13300       runpath_var=LD_RUN_PATH
13301       ;;
13302     siemens)
13303       need_lib_prefix=no
13304       ;;
13305     motorola)
13306       need_lib_prefix=no
13307       need_version=no
13308       shlibpath_overrides_runpath=no
13309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13310       ;;
13311   esac
13312   ;;
13313
13314 sysv4*MP*)
13315   if test -d /usr/nec ;then
13316     version_type=linux
13317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13318     soname_spec='$libname${shared_ext}.$major'
13319     shlibpath_var=LD_LIBRARY_PATH
13320   fi
13321   ;;
13322
13323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13324   version_type=freebsd-elf
13325   need_lib_prefix=no
13326   need_version=no
13327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13328   soname_spec='${libname}${release}${shared_ext}$major'
13329   shlibpath_var=LD_LIBRARY_PATH
13330   hardcode_into_libs=yes
13331   if test "$with_gnu_ld" = yes; then
13332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13333     shlibpath_overrides_runpath=no
13334   else
13335     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13336     shlibpath_overrides_runpath=yes
13337     case $host_os in
13338       sco3.2v5*)
13339         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13340         ;;
13341     esac
13342   fi
13343   sys_lib_dlsearch_path_spec='/usr/lib'
13344   ;;
13345
13346 uts4*)
13347   version_type=linux
13348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349   soname_spec='${libname}${release}${shared_ext}$major'
13350   shlibpath_var=LD_LIBRARY_PATH
13351   ;;
13352
13353 *)
13354   dynamic_linker=no
13355   ;;
13356 esac
13357 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13358 echo "${ECHO_T}$dynamic_linker" >&6; }
13359 test "$dynamic_linker" = no && can_build_shared=no
13360
13361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13362 if test "$GCC" = yes; then
13363   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13364 fi
13365
13366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13368 hardcode_action_CXX=
13369 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13370    test -n "$runpath_var_CXX" || \
13371    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13372
13373   # We can hardcode non-existant directories.
13374   if test "$hardcode_direct_CXX" != no &&
13375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13376      # have to relink, otherwise we might link with an installed library
13377      # when we should be linking with a yet-to-be-installed one
13378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13379      test "$hardcode_minus_L_CXX" != no; then
13380     # Linking always hardcodes the temporary library directory.
13381     hardcode_action_CXX=relink
13382   else
13383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13384     hardcode_action_CXX=immediate
13385   fi
13386 else
13387   # We cannot hardcode anything, or else we can only hardcode existing
13388   # directories.
13389   hardcode_action_CXX=unsupported
13390 fi
13391 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13392 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13393
13394 if test "$hardcode_action_CXX" = relink; then
13395   # Fast installation is not supported
13396   enable_fast_install=no
13397 elif test "$shlibpath_overrides_runpath" = yes ||
13398      test "$enable_shared" = no; then
13399   # Fast installation is not necessary
13400   enable_fast_install=needless
13401 fi
13402
13403
13404 # The else clause should only fire when bootstrapping the
13405 # libtool distribution, otherwise you forgot to ship ltmain.sh
13406 # with your package, and you will get complaints that there are
13407 # no rules to generate ltmain.sh.
13408 if test -f "$ltmain"; then
13409   # See if we are running on zsh, and set the options which allow our commands through
13410   # without removal of \ escapes.
13411   if test -n "${ZSH_VERSION+set}" ; then
13412     setopt NO_GLOB_SUBST
13413   fi
13414   # Now quote all the things that may contain metacharacters while being
13415   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13416   # variables and quote the copies for generation of the libtool script.
13417   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13418     SED SHELL STRIP \
13419     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13420     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13421     deplibs_check_method reload_flag reload_cmds need_locks \
13422     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13423     lt_cv_sys_global_symbol_to_c_name_address \
13424     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13425     old_postinstall_cmds old_postuninstall_cmds \
13426     compiler_CXX \
13427     CC_CXX \
13428     LD_CXX \
13429     lt_prog_compiler_wl_CXX \
13430     lt_prog_compiler_pic_CXX \
13431     lt_prog_compiler_static_CXX \
13432     lt_prog_compiler_no_builtin_flag_CXX \
13433     export_dynamic_flag_spec_CXX \
13434     thread_safe_flag_spec_CXX \
13435     whole_archive_flag_spec_CXX \
13436     enable_shared_with_static_runtimes_CXX \
13437     old_archive_cmds_CXX \
13438     old_archive_from_new_cmds_CXX \
13439     predep_objects_CXX \
13440     postdep_objects_CXX \
13441     predeps_CXX \
13442     postdeps_CXX \
13443     compiler_lib_search_path_CXX \
13444     archive_cmds_CXX \
13445     archive_expsym_cmds_CXX \
13446     postinstall_cmds_CXX \
13447     postuninstall_cmds_CXX \
13448     old_archive_from_expsyms_cmds_CXX \
13449     allow_undefined_flag_CXX \
13450     no_undefined_flag_CXX \
13451     export_symbols_cmds_CXX \
13452     hardcode_libdir_flag_spec_CXX \
13453     hardcode_libdir_flag_spec_ld_CXX \
13454     hardcode_libdir_separator_CXX \
13455     hardcode_automatic_CXX \
13456     module_cmds_CXX \
13457     module_expsym_cmds_CXX \
13458     lt_cv_prog_compiler_c_o_CXX \
13459     exclude_expsyms_CXX \
13460     include_expsyms_CXX; do
13461
13462     case $var in
13463     old_archive_cmds_CXX | \
13464     old_archive_from_new_cmds_CXX | \
13465     archive_cmds_CXX | \
13466     archive_expsym_cmds_CXX | \
13467     module_cmds_CXX | \
13468     module_expsym_cmds_CXX | \
13469     old_archive_from_expsyms_cmds_CXX | \
13470     export_symbols_cmds_CXX | \
13471     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13472     postinstall_cmds | postuninstall_cmds | \
13473     old_postinstall_cmds | old_postuninstall_cmds | \
13474     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13475       # Double-quote double-evaled strings.
13476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13477       ;;
13478     *)
13479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13480       ;;
13481     esac
13482   done
13483
13484   case $lt_echo in
13485   *'\$0 --fallback-echo"')
13486     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13487     ;;
13488   esac
13489
13490 cfgfile="$ofile"
13491
13492   cat <<__EOF__ >> "$cfgfile"
13493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13494
13495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13496
13497 # Shell to use when invoking shell scripts.
13498 SHELL=$lt_SHELL
13499
13500 # Whether or not to build shared libraries.
13501 build_libtool_libs=$enable_shared
13502
13503 # Whether or not to build static libraries.
13504 build_old_libs=$enable_static
13505
13506 # Whether or not to add -lc for building shared libraries.
13507 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13508
13509 # Whether or not to disallow shared libs when runtime libs are static
13510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13511
13512 # Whether or not to optimize for fast installation.
13513 fast_install=$enable_fast_install
13514
13515 # The host system.
13516 host_alias=$host_alias
13517 host=$host
13518 host_os=$host_os
13519
13520 # The build system.
13521 build_alias=$build_alias
13522 build=$build
13523 build_os=$build_os
13524
13525 # An echo program that does not interpret backslashes.
13526 echo=$lt_echo
13527
13528 # The archiver.
13529 AR=$lt_AR
13530 AR_FLAGS=$lt_AR_FLAGS
13531
13532 # A C compiler.
13533 LTCC=$lt_LTCC
13534
13535 # LTCC compiler flags.
13536 LTCFLAGS=$lt_LTCFLAGS
13537
13538 # A language-specific compiler.
13539 CC=$lt_compiler_CXX
13540
13541 # Is the compiler the GNU C compiler?
13542 with_gcc=$GCC_CXX
13543
13544 # An ERE matcher.
13545 EGREP=$lt_EGREP
13546
13547 # The linker used to build libraries.
13548 LD=$lt_LD_CXX
13549
13550 # Whether we need hard or soft links.
13551 LN_S=$lt_LN_S
13552
13553 # A BSD-compatible nm program.
13554 NM=$lt_NM
13555
13556 # A symbol stripping program
13557 STRIP=$lt_STRIP
13558
13559 # Used to examine libraries when file_magic_cmd begins "file"
13560 MAGIC_CMD=$MAGIC_CMD
13561
13562 # Used on cygwin: DLL creation program.
13563 DLLTOOL="$DLLTOOL"
13564
13565 # Used on cygwin: object dumper.
13566 OBJDUMP="$OBJDUMP"
13567
13568 # Used on cygwin: assembler.
13569 AS="$AS"
13570
13571 # The name of the directory that contains temporary libtool files.
13572 objdir=$objdir
13573
13574 # How to create reloadable object files.
13575 reload_flag=$lt_reload_flag
13576 reload_cmds=$lt_reload_cmds
13577
13578 # How to pass a linker flag through the compiler.
13579 wl=$lt_lt_prog_compiler_wl_CXX
13580
13581 # Object file suffix (normally "o").
13582 objext="$ac_objext"
13583
13584 # Old archive suffix (normally "a").
13585 libext="$libext"
13586
13587 # Shared library suffix (normally ".so").
13588 shrext_cmds='$shrext_cmds'
13589
13590 # Executable file suffix (normally "").
13591 exeext="$exeext"
13592
13593 # Additional compiler flags for building library objects.
13594 pic_flag=$lt_lt_prog_compiler_pic_CXX
13595 pic_mode=$pic_mode
13596
13597 # What is the maximum length of a command?
13598 max_cmd_len=$lt_cv_sys_max_cmd_len
13599
13600 # Does compiler simultaneously support -c and -o options?
13601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13602
13603 # Must we lock files when doing compilation?
13604 need_locks=$lt_need_locks
13605
13606 # Do we need the lib prefix for modules?
13607 need_lib_prefix=$need_lib_prefix
13608
13609 # Do we need a version for libraries?
13610 need_version=$need_version
13611
13612 # Whether dlopen is supported.
13613 dlopen_support=$enable_dlopen
13614
13615 # Whether dlopen of programs is supported.
13616 dlopen_self=$enable_dlopen_self
13617
13618 # Whether dlopen of statically linked programs is supported.
13619 dlopen_self_static=$enable_dlopen_self_static
13620
13621 # Compiler flag to prevent dynamic linking.
13622 link_static_flag=$lt_lt_prog_compiler_static_CXX
13623
13624 # Compiler flag to turn off builtin functions.
13625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13626
13627 # Compiler flag to allow reflexive dlopens.
13628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13629
13630 # Compiler flag to generate shared objects directly from archives.
13631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13632
13633 # Compiler flag to generate thread-safe objects.
13634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13635
13636 # Library versioning type.
13637 version_type=$version_type
13638
13639 # Format of library name prefix.
13640 libname_spec=$lt_libname_spec
13641
13642 # List of archive names.  First name is the real one, the rest are links.
13643 # The last name is the one that the linker finds with -lNAME.
13644 library_names_spec=$lt_library_names_spec
13645
13646 # The coded name of the library, if different from the real name.
13647 soname_spec=$lt_soname_spec
13648
13649 # Commands used to build and install an old-style archive.
13650 RANLIB=$lt_RANLIB
13651 old_archive_cmds=$lt_old_archive_cmds_CXX
13652 old_postinstall_cmds=$lt_old_postinstall_cmds
13653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13654
13655 # Create an old-style archive from a shared archive.
13656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13657
13658 # Create a temporary old-style archive to link instead of a shared archive.
13659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13660
13661 # Commands used to build and install a shared archive.
13662 archive_cmds=$lt_archive_cmds_CXX
13663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13664 postinstall_cmds=$lt_postinstall_cmds
13665 postuninstall_cmds=$lt_postuninstall_cmds
13666
13667 # Commands used to build a loadable module (assumed same as above if empty)
13668 module_cmds=$lt_module_cmds_CXX
13669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13670
13671 # Commands to strip libraries.
13672 old_striplib=$lt_old_striplib
13673 striplib=$lt_striplib
13674
13675 # Dependencies to place before the objects being linked to create a
13676 # shared library.
13677 predep_objects=$lt_predep_objects_CXX
13678
13679 # Dependencies to place after the objects being linked to create a
13680 # shared library.
13681 postdep_objects=$lt_postdep_objects_CXX
13682
13683 # Dependencies to place before the objects being linked to create a
13684 # shared library.
13685 predeps=$lt_predeps_CXX
13686
13687 # Dependencies to place after the objects being linked to create a
13688 # shared library.
13689 postdeps=$lt_postdeps_CXX
13690
13691 # The library search path used internally by the compiler when linking
13692 # a shared library.
13693 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13694
13695 # Method to check whether dependent libraries are shared objects.
13696 deplibs_check_method=$lt_deplibs_check_method
13697
13698 # Command to use when deplibs_check_method == file_magic.
13699 file_magic_cmd=$lt_file_magic_cmd
13700
13701 # Flag that allows shared libraries with undefined symbols to be built.
13702 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13703
13704 # Flag that forces no undefined symbols.
13705 no_undefined_flag=$lt_no_undefined_flag_CXX
13706
13707 # Commands used to finish a libtool library installation in a directory.
13708 finish_cmds=$lt_finish_cmds
13709
13710 # Same as above, but a single script fragment to be evaled but not shown.
13711 finish_eval=$lt_finish_eval
13712
13713 # Take the output of nm and produce a listing of raw symbols and C names.
13714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13715
13716 # Transform the output of nm in a proper C declaration
13717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13718
13719 # Transform the output of nm in a C name address pair
13720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13721
13722 # This is the shared library runtime path variable.
13723 runpath_var=$runpath_var
13724
13725 # This is the shared library path variable.
13726 shlibpath_var=$shlibpath_var
13727
13728 # Is shlibpath searched before the hard-coded library search path?
13729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13730
13731 # How to hardcode a shared library path into an executable.
13732 hardcode_action=$hardcode_action_CXX
13733
13734 # Whether we should hardcode library paths into libraries.
13735 hardcode_into_libs=$hardcode_into_libs
13736
13737 # Flag to hardcode \$libdir into a binary during linking.
13738 # This must work even if \$libdir does not exist.
13739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13740
13741 # If ld is used when linking, flag to hardcode \$libdir into
13742 # a binary during linking. This must work even if \$libdir does
13743 # not exist.
13744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13745
13746 # Whether we need a single -rpath flag with a separated argument.
13747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13748
13749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13750 # resulting binary.
13751 hardcode_direct=$hardcode_direct_CXX
13752
13753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13754 # resulting binary.
13755 hardcode_minus_L=$hardcode_minus_L_CXX
13756
13757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13758 # the resulting binary.
13759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13760
13761 # Set to yes if building a shared library automatically hardcodes DIR into the library
13762 # and all subsequent libraries and executables linked against it.
13763 hardcode_automatic=$hardcode_automatic_CXX
13764
13765 # Variables whose values should be saved in libtool wrapper scripts and
13766 # restored at relink time.
13767 variables_saved_for_relink="$variables_saved_for_relink"
13768
13769 # Whether libtool must link a program against all its dependency libraries.
13770 link_all_deplibs=$link_all_deplibs_CXX
13771
13772 # Compile-time system search path for libraries
13773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13774
13775 # Run-time system search path for libraries
13776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13777
13778 # Fix the shell variable \$srcfile for the compiler.
13779 fix_srcfile_path="$fix_srcfile_path_CXX"
13780
13781 # Set to yes if exported symbols are required.
13782 always_export_symbols=$always_export_symbols_CXX
13783
13784 # The commands to list exported symbols.
13785 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13786
13787 # The commands to extract the exported symbol list from a shared archive.
13788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13789
13790 # Symbols that should not be listed in the preloaded symbols.
13791 exclude_expsyms=$lt_exclude_expsyms_CXX
13792
13793 # Symbols that must always be exported.
13794 include_expsyms=$lt_include_expsyms_CXX
13795
13796 # ### END LIBTOOL TAG CONFIG: $tagname
13797
13798 __EOF__
13799
13800
13801 else
13802   # If there is no Makefile yet, we rely on a make rule to execute
13803   # `config.status --recheck' to rerun these tests and create the
13804   # libtool script then.
13805   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13806   if test -f "$ltmain_in"; then
13807     test -f Makefile && make "$ltmain"
13808   fi
13809 fi
13810
13811
13812 ac_ext=c
13813 ac_cpp='$CPP $CPPFLAGS'
13814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13817
13818 CC=$lt_save_CC
13819 LDCXX=$LD
13820 LD=$lt_save_LD
13821 GCC=$lt_save_GCC
13822 with_gnu_ldcxx=$with_gnu_ld
13823 with_gnu_ld=$lt_save_with_gnu_ld
13824 lt_cv_path_LDCXX=$lt_cv_path_LD
13825 lt_cv_path_LD=$lt_save_path_LD
13826 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13827 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13828
13829         else
13830           tagname=""
13831         fi
13832         ;;
13833
13834       F77)
13835         if test -n "$F77" && test "X$F77" != "Xno"; then
13836
13837 ac_ext=f
13838 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13839 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13840 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13841
13842
13843 archive_cmds_need_lc_F77=no
13844 allow_undefined_flag_F77=
13845 always_export_symbols_F77=no
13846 archive_expsym_cmds_F77=
13847 export_dynamic_flag_spec_F77=
13848 hardcode_direct_F77=no
13849 hardcode_libdir_flag_spec_F77=
13850 hardcode_libdir_flag_spec_ld_F77=
13851 hardcode_libdir_separator_F77=
13852 hardcode_minus_L_F77=no
13853 hardcode_automatic_F77=no
13854 module_cmds_F77=
13855 module_expsym_cmds_F77=
13856 link_all_deplibs_F77=unknown
13857 old_archive_cmds_F77=$old_archive_cmds
13858 no_undefined_flag_F77=
13859 whole_archive_flag_spec_F77=
13860 enable_shared_with_static_runtimes_F77=no
13861
13862 # Source file extension for f77 test sources.
13863 ac_ext=f
13864
13865 # Object file extension for compiled f77 test sources.
13866 objext=o
13867 objext_F77=$objext
13868
13869 # Code to be used in simple compile tests
13870 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13871
13872 # Code to be used in simple link tests
13873 lt_simple_link_test_code="      program t\n      end\n"
13874
13875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13876
13877 # If no C compiler was specified, use CC.
13878 LTCC=${LTCC-"$CC"}
13879
13880 # If no C compiler flags were specified, use CFLAGS.
13881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13882
13883 # Allow CC to be a program name with arguments.
13884 compiler=$CC
13885
13886
13887 # save warnings/boilerplate of simple test code
13888 ac_outfile=conftest.$ac_objext
13889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13891 _lt_compiler_boilerplate=`cat conftest.err`
13892 $rm conftest*
13893
13894 ac_outfile=conftest.$ac_objext
13895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13897 _lt_linker_boilerplate=`cat conftest.err`
13898 $rm conftest*
13899
13900
13901 # Allow CC to be a program name with arguments.
13902 lt_save_CC="$CC"
13903 CC=${F77-"f77"}
13904 compiler=$CC
13905 compiler_F77=$CC
13906 for cc_temp in $compiler""; do
13907   case $cc_temp in
13908     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13909     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13910     \-*) ;;
13911     *) break;;
13912   esac
13913 done
13914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13915
13916
13917 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13918 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13919 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13920 echo "${ECHO_T}$can_build_shared" >&6; }
13921
13922 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13923 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13924 test "$can_build_shared" = "no" && enable_shared=no
13925
13926 # On AIX, shared libraries and static libraries use the same namespace, and
13927 # are all built from PIC.
13928 case $host_os in
13929 aix3*)
13930   test "$enable_shared" = yes && enable_static=no
13931   if test -n "$RANLIB"; then
13932     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933     postinstall_cmds='$RANLIB $lib'
13934   fi
13935   ;;
13936 aix4* | aix5*)
13937   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13938     test "$enable_shared" = yes && enable_static=no
13939   fi
13940   ;;
13941 esac
13942 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13943 echo "${ECHO_T}$enable_shared" >&6; }
13944
13945 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13946 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13947 # Make sure either enable_shared or enable_static is yes.
13948 test "$enable_shared" = yes || enable_static=yes
13949 { echo "$as_me:$LINENO: result: $enable_static" >&5
13950 echo "${ECHO_T}$enable_static" >&6; }
13951
13952 GCC_F77="$G77"
13953 LD_F77="$LD"
13954
13955 lt_prog_compiler_wl_F77=
13956 lt_prog_compiler_pic_F77=
13957 lt_prog_compiler_static_F77=
13958
13959 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13960 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13961
13962   if test "$GCC" = yes; then
13963     lt_prog_compiler_wl_F77='-Wl,'
13964     lt_prog_compiler_static_F77='-static'
13965
13966     case $host_os in
13967       aix*)
13968       # All AIX code is PIC.
13969       if test "$host_cpu" = ia64; then
13970         # AIX 5 now supports IA64 processor
13971         lt_prog_compiler_static_F77='-Bstatic'
13972       fi
13973       ;;
13974
13975     amigaos*)
13976       # FIXME: we need at least 68020 code to build shared libraries, but
13977       # adding the `-m68020' flag to GCC prevents building anything better,
13978       # like `-m68040'.
13979       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13980       ;;
13981
13982     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13983       # PIC is the default for these OSes.
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     darwin* | rhapsody*)
13993       # PIC is the default on this platform
13994       # Common symbols not allowed in MH_DYLIB files
13995       lt_prog_compiler_pic_F77='-fno-common'
13996       ;;
13997
13998     interix3*)
13999       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14000       # Instead, we relocate shared libraries at runtime.
14001       ;;
14002
14003     msdosdjgpp*)
14004       # Just because we use GCC doesn't mean we suddenly get shared libraries
14005       # on systems that don't support them.
14006       lt_prog_compiler_can_build_shared_F77=no
14007       enable_shared=no
14008       ;;
14009
14010     sysv4*MP*)
14011       if test -d /usr/nec; then
14012         lt_prog_compiler_pic_F77=-Kconform_pic
14013       fi
14014       ;;
14015
14016     hpux*)
14017       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14018       # not for PA HP-UX.
14019       case $host_cpu in
14020       hppa*64*|ia64*)
14021         # +Z the default
14022         ;;
14023       *)
14024         lt_prog_compiler_pic_F77='-fPIC'
14025         ;;
14026       esac
14027       ;;
14028
14029     *)
14030       lt_prog_compiler_pic_F77='-fPIC'
14031       ;;
14032     esac
14033   else
14034     # PORTME Check for flag to pass linker flags through the system compiler.
14035     case $host_os in
14036     aix*)
14037       lt_prog_compiler_wl_F77='-Wl,'
14038       if test "$host_cpu" = ia64; then
14039         # AIX 5 now supports IA64 processor
14040         lt_prog_compiler_static_F77='-Bstatic'
14041       else
14042         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14043       fi
14044       ;;
14045       darwin*)
14046         # PIC is the default on this platform
14047         # Common symbols not allowed in MH_DYLIB files
14048        case $cc_basename in
14049          xlc*)
14050          lt_prog_compiler_pic_F77='-qnocommon'
14051          lt_prog_compiler_wl_F77='-Wl,'
14052          ;;
14053        esac
14054        ;;
14055
14056     mingw* | pw32* | os2*)
14057       # This hack is so that the source file can tell whether it is being
14058       # built for inclusion in a dll (and should export symbols for example).
14059       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14060       ;;
14061
14062     hpux9* | hpux10* | hpux11*)
14063       lt_prog_compiler_wl_F77='-Wl,'
14064       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14065       # not for PA HP-UX.
14066       case $host_cpu in
14067       hppa*64*|ia64*)
14068         # +Z the default
14069         ;;
14070       *)
14071         lt_prog_compiler_pic_F77='+Z'
14072         ;;
14073       esac
14074       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14075       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14076       ;;
14077
14078     irix5* | irix6* | nonstopux*)
14079       lt_prog_compiler_wl_F77='-Wl,'
14080       # PIC (with -KPIC) is the default.
14081       lt_prog_compiler_static_F77='-non_shared'
14082       ;;
14083
14084     newsos6)
14085       lt_prog_compiler_pic_F77='-KPIC'
14086       lt_prog_compiler_static_F77='-Bstatic'
14087       ;;
14088
14089     linux* | k*bsd*-gnu)
14090       case $cc_basename in
14091       icc* | ecc*)
14092         lt_prog_compiler_wl_F77='-Wl,'
14093         lt_prog_compiler_pic_F77='-KPIC'
14094         lt_prog_compiler_static_F77='-static'
14095         ;;
14096       pgcc* | pgf77* | pgf90* | pgf95*)
14097         # Portland Group compilers (*not* the Pentium gcc compiler,
14098         # which looks to be a dead project)
14099         lt_prog_compiler_wl_F77='-Wl,'
14100         lt_prog_compiler_pic_F77='-fpic'
14101         lt_prog_compiler_static_F77='-Bstatic'
14102         ;;
14103       ccc*)
14104         lt_prog_compiler_wl_F77='-Wl,'
14105         # All Alpha code is PIC.
14106         lt_prog_compiler_static_F77='-non_shared'
14107         ;;
14108       esac
14109       ;;
14110
14111     osf3* | osf4* | osf5*)
14112       lt_prog_compiler_wl_F77='-Wl,'
14113       # All OSF/1 code is PIC.
14114       lt_prog_compiler_static_F77='-non_shared'
14115       ;;
14116
14117     solaris*)
14118       lt_prog_compiler_pic_F77='-KPIC'
14119       lt_prog_compiler_static_F77='-Bstatic'
14120       case $cc_basename in
14121       f77* | f90* | f95*)
14122         lt_prog_compiler_wl_F77='-Qoption ld ';;
14123       *)
14124         lt_prog_compiler_wl_F77='-Wl,';;
14125       esac
14126       ;;
14127
14128     sunos4*)
14129       lt_prog_compiler_wl_F77='-Qoption ld '
14130       lt_prog_compiler_pic_F77='-PIC'
14131       lt_prog_compiler_static_F77='-Bstatic'
14132       ;;
14133
14134     sysv4 | sysv4.2uw2* | sysv4.3*)
14135       lt_prog_compiler_wl_F77='-Wl,'
14136       lt_prog_compiler_pic_F77='-KPIC'
14137       lt_prog_compiler_static_F77='-Bstatic'
14138       ;;
14139
14140     sysv4*MP*)
14141       if test -d /usr/nec ;then
14142         lt_prog_compiler_pic_F77='-Kconform_pic'
14143         lt_prog_compiler_static_F77='-Bstatic'
14144       fi
14145       ;;
14146
14147     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14148       lt_prog_compiler_wl_F77='-Wl,'
14149       lt_prog_compiler_pic_F77='-KPIC'
14150       lt_prog_compiler_static_F77='-Bstatic'
14151       ;;
14152
14153     unicos*)
14154       lt_prog_compiler_wl_F77='-Wl,'
14155       lt_prog_compiler_can_build_shared_F77=no
14156       ;;
14157
14158     uts4*)
14159       lt_prog_compiler_pic_F77='-pic'
14160       lt_prog_compiler_static_F77='-Bstatic'
14161       ;;
14162
14163     *)
14164       lt_prog_compiler_can_build_shared_F77=no
14165       ;;
14166     esac
14167   fi
14168
14169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14170 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14171
14172 #
14173 # Check to make sure the PIC flag actually works.
14174 #
14175 if test -n "$lt_prog_compiler_pic_F77"; then
14176
14177 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14178 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14179 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   lt_prog_compiler_pic_works_F77=no
14183   ac_outfile=conftest.$ac_objext
14184    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14185    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14186    # Insert the option either (1) after the last *FLAGS variable, or
14187    # (2) before a word containing "conftest.", or (3) at the end.
14188    # Note that $ac_compile itself does not contain backslashes and begins
14189    # with a dollar sign (not a hyphen), so the echo should work correctly.
14190    # The option is referenced via a variable to avoid confusing sed.
14191    lt_compile=`echo "$ac_compile" | $SED \
14192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14194    -e 's:$: $lt_compiler_flag:'`
14195    (eval echo "\"\$as_me:14195: $lt_compile\"" >&5)
14196    (eval "$lt_compile" 2>conftest.err)
14197    ac_status=$?
14198    cat conftest.err >&5
14199    echo "$as_me:14199: \$? = $ac_status" >&5
14200    if (exit $ac_status) && test -s "$ac_outfile"; then
14201      # The compiler can only warn and ignore the option if not recognized
14202      # So say no if there are warnings other than the usual output.
14203      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14204      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14205      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14206        lt_prog_compiler_pic_works_F77=yes
14207      fi
14208    fi
14209    $rm conftest*
14210
14211 fi
14212 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14213 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14214
14215 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14216     case $lt_prog_compiler_pic_F77 in
14217      "" | " "*) ;;
14218      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14219      esac
14220 else
14221     lt_prog_compiler_pic_F77=
14222      lt_prog_compiler_can_build_shared_F77=no
14223 fi
14224
14225 fi
14226 case $host_os in
14227   # For platforms which do not support PIC, -DPIC is meaningless:
14228   *djgpp*)
14229     lt_prog_compiler_pic_F77=
14230     ;;
14231   *)
14232     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14233     ;;
14234 esac
14235
14236 #
14237 # Check to make sure the static flag actually works.
14238 #
14239 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14240 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14241 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14242 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   lt_prog_compiler_static_works_F77=no
14246    save_LDFLAGS="$LDFLAGS"
14247    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14248    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14249    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14250      # The linker can only warn and ignore the option if not recognized
14251      # So say no if there are warnings
14252      if test -s conftest.err; then
14253        # Append any errors to the config.log.
14254        cat conftest.err 1>&5
14255        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14256        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14257        if diff conftest.exp conftest.er2 >/dev/null; then
14258          lt_prog_compiler_static_works_F77=yes
14259        fi
14260      else
14261        lt_prog_compiler_static_works_F77=yes
14262      fi
14263    fi
14264    $rm conftest*
14265    LDFLAGS="$save_LDFLAGS"
14266
14267 fi
14268 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14269 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14270
14271 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14272     :
14273 else
14274     lt_prog_compiler_static_F77=
14275 fi
14276
14277
14278 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14280 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   lt_cv_prog_compiler_c_o_F77=no
14284    $rm -r conftest 2>/dev/null
14285    mkdir conftest
14286    cd conftest
14287    mkdir out
14288    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14289
14290    lt_compiler_flag="-o out/conftest2.$ac_objext"
14291    # Insert the option either (1) after the last *FLAGS variable, or
14292    # (2) before a word containing "conftest.", or (3) at the end.
14293    # Note that $ac_compile itself does not contain backslashes and begins
14294    # with a dollar sign (not a hyphen), so the echo should work correctly.
14295    lt_compile=`echo "$ac_compile" | $SED \
14296    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14298    -e 's:$: $lt_compiler_flag:'`
14299    (eval echo "\"\$as_me:14299: $lt_compile\"" >&5)
14300    (eval "$lt_compile" 2>out/conftest.err)
14301    ac_status=$?
14302    cat out/conftest.err >&5
14303    echo "$as_me:14303: \$? = $ac_status" >&5
14304    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14305    then
14306      # The compiler can only warn and ignore the option if not recognized
14307      # So say no if there are warnings
14308      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14309      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14310      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14311        lt_cv_prog_compiler_c_o_F77=yes
14312      fi
14313    fi
14314    chmod u+w . 2>&5
14315    $rm conftest*
14316    # SGI C++ compiler will create directory out/ii_files/ for
14317    # template instantiation
14318    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14319    $rm out/* && rmdir out
14320    cd ..
14321    rmdir conftest
14322    $rm conftest*
14323
14324 fi
14325 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14326 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14327
14328
14329 hard_links="nottested"
14330 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14331   # do not overwrite the value of need_locks provided by the user
14332   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14333 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14334   hard_links=yes
14335   $rm conftest*
14336   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14337   touch conftest.a
14338   ln conftest.a conftest.b 2>&5 || hard_links=no
14339   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14340   { echo "$as_me:$LINENO: result: $hard_links" >&5
14341 echo "${ECHO_T}$hard_links" >&6; }
14342   if test "$hard_links" = no; then
14343     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14344 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14345     need_locks=warn
14346   fi
14347 else
14348   need_locks=no
14349 fi
14350
14351 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14353
14354   runpath_var=
14355   allow_undefined_flag_F77=
14356   enable_shared_with_static_runtimes_F77=no
14357   archive_cmds_F77=
14358   archive_expsym_cmds_F77=
14359   old_archive_From_new_cmds_F77=
14360   old_archive_from_expsyms_cmds_F77=
14361   export_dynamic_flag_spec_F77=
14362   whole_archive_flag_spec_F77=
14363   thread_safe_flag_spec_F77=
14364   hardcode_libdir_flag_spec_F77=
14365   hardcode_libdir_flag_spec_ld_F77=
14366   hardcode_libdir_separator_F77=
14367   hardcode_direct_F77=no
14368   hardcode_minus_L_F77=no
14369   hardcode_shlibpath_var_F77=unsupported
14370   link_all_deplibs_F77=unknown
14371   hardcode_automatic_F77=no
14372   module_cmds_F77=
14373   module_expsym_cmds_F77=
14374   always_export_symbols_F77=no
14375   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14376   # include_expsyms should be a list of space-separated symbols to be *always*
14377   # included in the symbol list
14378   include_expsyms_F77=
14379   # exclude_expsyms can be an extended regexp of symbols to exclude
14380   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14381   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14382   # as well as any symbol that contains `d'.
14383   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14384   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14385   # platforms (ab)use it in PIC code, but their linkers get confused if
14386   # the symbol is explicitly referenced.  Since portable code cannot
14387   # rely on this symbol name, it's probably fine to never include it in
14388   # preloaded symbol tables.
14389   extract_expsyms_cmds=
14390   # Just being paranoid about ensuring that cc_basename is set.
14391   for cc_temp in $compiler""; do
14392   case $cc_temp in
14393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14395     \-*) ;;
14396     *) break;;
14397   esac
14398 done
14399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14400
14401   case $host_os in
14402   cygwin* | mingw* | pw32*)
14403     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14404     # When not using gcc, we currently assume that we are using
14405     # Microsoft Visual C++.
14406     if test "$GCC" != yes; then
14407       with_gnu_ld=no
14408     fi
14409     ;;
14410   interix*)
14411     # we just hope/assume this is gcc and not c89 (= MSVC++)
14412     with_gnu_ld=yes
14413     ;;
14414   openbsd*)
14415     with_gnu_ld=no
14416     ;;
14417   esac
14418
14419   ld_shlibs_F77=yes
14420   if test "$with_gnu_ld" = yes; then
14421     # If archive_cmds runs LD, not CC, wlarc should be empty
14422     wlarc='${wl}'
14423
14424     # Set some defaults for GNU ld with shared library support. These
14425     # are reset later if shared libraries are not supported. Putting them
14426     # here allows them to be overridden if necessary.
14427     runpath_var=LD_RUN_PATH
14428     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14429     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14430     # ancient GNU ld didn't support --whole-archive et. al.
14431     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14432         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14433       else
14434         whole_archive_flag_spec_F77=
14435     fi
14436     supports_anon_versioning=no
14437     case `$LD -v 2>/dev/null` in
14438       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14439       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14440       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14441       *\ 2.11.*) ;; # other 2.11 versions
14442       *) supports_anon_versioning=yes ;;
14443     esac
14444
14445     # See if GNU ld supports shared libraries.
14446     case $host_os in
14447     aix3* | aix4* | aix5*)
14448       # On AIX/PPC, the GNU linker is very broken
14449       if test "$host_cpu" != ia64; then
14450         ld_shlibs_F77=no
14451         cat <<EOF 1>&2
14452
14453 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14454 *** to be unable to reliably create shared libraries on AIX.
14455 *** Therefore, libtool is disabling shared libraries support.  If you
14456 *** really care for shared libraries, you may want to modify your PATH
14457 *** so that a non-GNU linker is found, and then restart.
14458
14459 EOF
14460       fi
14461       ;;
14462
14463     amigaos*)
14464       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)'
14465       hardcode_libdir_flag_spec_F77='-L$libdir'
14466       hardcode_minus_L_F77=yes
14467
14468       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14469       # that the semantics of dynamic libraries on AmigaOS, at least up
14470       # to version 4, is to share data among multiple programs linked
14471       # with the same dynamic library.  Since this doesn't match the
14472       # behavior of shared libraries on other platforms, we can't use
14473       # them.
14474       ld_shlibs_F77=no
14475       ;;
14476
14477     beos*)
14478       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14479         allow_undefined_flag_F77=unsupported
14480         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14481         # support --undefined.  This deserves some investigation.  FIXME
14482         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14483       else
14484         ld_shlibs_F77=no
14485       fi
14486       ;;
14487
14488     cygwin* | mingw* | pw32*)
14489       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14490       # as there is no search path for DLLs.
14491       hardcode_libdir_flag_spec_F77='-L$libdir'
14492       allow_undefined_flag_F77=unsupported
14493       always_export_symbols_F77=no
14494       enable_shared_with_static_runtimes_F77=yes
14495       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14496
14497       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14498         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14499         # If the export-symbols file already is a .def file (1st line
14500         # is EXPORTS), use it as is; otherwise, prepend...
14501         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14502           cp $export_symbols $output_objdir/$soname.def;
14503         else
14504           echo EXPORTS > $output_objdir/$soname.def;
14505           cat $export_symbols >> $output_objdir/$soname.def;
14506         fi~
14507         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14508       else
14509         ld_shlibs_F77=no
14510       fi
14511       ;;
14512
14513     interix3*)
14514       hardcode_direct_F77=no
14515       hardcode_shlibpath_var_F77=no
14516       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14517       export_dynamic_flag_spec_F77='${wl}-E'
14518       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14519       # Instead, shared libraries are loaded at an image base (0x10000000 by
14520       # default) and relocated if they conflict, which is a slow very memory
14521       # consuming and fragmenting process.  To avoid this, we pick a random,
14522       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14523       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14524       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'
14525       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'
14526       ;;
14527
14528     linux* | k*bsd*-gnu)
14529       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14530         tmp_addflag=
14531         case $cc_basename,$host_cpu in
14532         pgcc*)                          # Portland Group C compiler
14533           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'
14534           tmp_addflag=' $pic_flag'
14535           ;;
14536         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14537           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'
14538           tmp_addflag=' $pic_flag -Mnomain' ;;
14539         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14540           tmp_addflag=' -i_dynamic' ;;
14541         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14542           tmp_addflag=' -i_dynamic -nofor_main' ;;
14543         ifc* | ifort*)                  # Intel Fortran compiler
14544           tmp_addflag=' -nofor_main' ;;
14545         esac
14546         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14547
14548         if test $supports_anon_versioning = yes; then
14549           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14550   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14551   $echo "local: *; };" >> $output_objdir/$libname.ver~
14552           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14553         fi
14554         link_all_deplibs_F77=no
14555       else
14556         ld_shlibs_F77=no
14557       fi
14558       ;;
14559
14560     netbsd* | netbsdelf*-gnu)
14561       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14562         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14563         wlarc=
14564       else
14565         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14567       fi
14568       ;;
14569
14570     solaris*)
14571       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14572         ld_shlibs_F77=no
14573         cat <<EOF 1>&2
14574
14575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14576 *** create shared libraries on Solaris systems.  Therefore, libtool
14577 *** is disabling shared libraries support.  We urge you to upgrade GNU
14578 *** binutils to release 2.9.1 or newer.  Another option is to modify
14579 *** your PATH or compiler configuration so that the native linker is
14580 *** used, and then restart.
14581
14582 EOF
14583       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14584         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14585         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14586       else
14587         ld_shlibs_F77=no
14588       fi
14589       ;;
14590
14591     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14592       case `$LD -v 2>&1` in
14593         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14594         ld_shlibs_F77=no
14595         cat <<_LT_EOF 1>&2
14596
14597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14598 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14599 *** is disabling shared libraries support.  We urge you to upgrade GNU
14600 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14601 *** your PATH or compiler configuration so that the native linker is
14602 *** used, and then restart.
14603
14604 _LT_EOF
14605         ;;
14606         *)
14607           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14608             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14609             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14610             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14611           else
14612             ld_shlibs_F77=no
14613           fi
14614         ;;
14615       esac
14616       ;;
14617
14618     sunos4*)
14619       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14620       wlarc=
14621       hardcode_direct_F77=yes
14622       hardcode_shlibpath_var_F77=no
14623       ;;
14624
14625     *)
14626       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14627         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14628         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14629       else
14630         ld_shlibs_F77=no
14631       fi
14632       ;;
14633     esac
14634
14635     if test "$ld_shlibs_F77" = no; then
14636       runpath_var=
14637       hardcode_libdir_flag_spec_F77=
14638       export_dynamic_flag_spec_F77=
14639       whole_archive_flag_spec_F77=
14640     fi
14641   else
14642     # PORTME fill in a description of your system's linker (not GNU ld)
14643     case $host_os in
14644     aix3*)
14645       allow_undefined_flag_F77=unsupported
14646       always_export_symbols_F77=yes
14647       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'
14648       # Note: this linker hardcodes the directories in LIBPATH if there
14649       # are no directories specified by -L.
14650       hardcode_minus_L_F77=yes
14651       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14652         # Neither direct hardcoding nor static linking is supported with a
14653         # broken collect2.
14654         hardcode_direct_F77=unsupported
14655       fi
14656       ;;
14657
14658     aix4* | aix5*)
14659       if test "$host_cpu" = ia64; then
14660         # On IA64, the linker does run time linking by default, so we don't
14661         # have to do anything special.
14662         aix_use_runtimelinking=no
14663         exp_sym_flag='-Bexport'
14664         no_entry_flag=""
14665       else
14666         # If we're using GNU nm, then we don't want the "-C" option.
14667         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14668         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14669           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'
14670         else
14671           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'
14672         fi
14673         aix_use_runtimelinking=no
14674
14675         # Test if we are trying to use run time linking or normal
14676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14677         # need to do runtime linking.
14678         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14679           for ld_flag in $LDFLAGS; do
14680           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14681             aix_use_runtimelinking=yes
14682             break
14683           fi
14684           done
14685           ;;
14686         esac
14687
14688         exp_sym_flag='-bexport'
14689         no_entry_flag='-bnoentry'
14690       fi
14691
14692       # When large executables or shared objects are built, AIX ld can
14693       # have problems creating the table of contents.  If linking a library
14694       # or program results in "error TOC overflow" add -mminimal-toc to
14695       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14696       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14697
14698       archive_cmds_F77=''
14699       hardcode_direct_F77=yes
14700       hardcode_libdir_separator_F77=':'
14701       link_all_deplibs_F77=yes
14702
14703       if test "$GCC" = yes; then
14704         case $host_os in aix4.[012]|aix4.[012].*)
14705         # We only want to do this on AIX 4.2 and lower, the check
14706         # below for broken collect2 doesn't work under 4.3+
14707           collect2name=`${CC} -print-prog-name=collect2`
14708           if test -f "$collect2name" && \
14709            strings "$collect2name" | grep resolve_lib_name >/dev/null
14710           then
14711           # We have reworked collect2
14712           hardcode_direct_F77=yes
14713           else
14714           # We have old collect2
14715           hardcode_direct_F77=unsupported
14716           # It fails to find uninstalled libraries when the uninstalled
14717           # path is not listed in the libpath.  Setting hardcode_minus_L
14718           # to unsupported forces relinking
14719           hardcode_minus_L_F77=yes
14720           hardcode_libdir_flag_spec_F77='-L$libdir'
14721           hardcode_libdir_separator_F77=
14722           fi
14723           ;;
14724         esac
14725         shared_flag='-shared'
14726         if test "$aix_use_runtimelinking" = yes; then
14727           shared_flag="$shared_flag "'${wl}-G'
14728         fi
14729       else
14730         # not using gcc
14731         if test "$host_cpu" = ia64; then
14732         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14733         # chokes on -Wl,-G. The following line is correct:
14734           shared_flag='-G'
14735         else
14736           if test "$aix_use_runtimelinking" = yes; then
14737             shared_flag='${wl}-G'
14738           else
14739             shared_flag='${wl}-bM:SRE'
14740           fi
14741         fi
14742       fi
14743
14744       # It seems that -bexpall does not export symbols beginning with
14745       # underscore (_), so it is better to generate a list of symbols to export.
14746       always_export_symbols_F77=yes
14747       if test "$aix_use_runtimelinking" = yes; then
14748         # Warning - without using the other runtime loading flags (-brtl),
14749         # -berok will link without error, but may produce a broken library.
14750         allow_undefined_flag_F77='-berok'
14751        # Determine the default libpath from the value encoded in an empty executable.
14752        cat >conftest.$ac_ext <<_ACEOF
14753       program main
14754
14755       end
14756 _ACEOF
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761   *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764   (eval "$ac_link") 2>conftest.er1
14765   ac_status=$?
14766   grep -v '^ *+' conftest.er1 >conftest.err
14767   rm -f conftest.er1
14768   cat conftest.err >&5
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); } && {
14771          test -z "$ac_f77_werror_flag" ||
14772          test ! -s conftest.err
14773        } && test -s conftest$ac_exeext &&
14774        $as_test_x conftest$ac_exeext; then
14775
14776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14777 }'`
14778 # Check for a 64-bit object if we didn't find anything.
14779 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; }
14780 }'`; fi
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785
14786 fi
14787
14788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14789       conftest$ac_exeext conftest.$ac_ext
14790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14791
14792        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14793         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"
14794        else
14795         if test "$host_cpu" = ia64; then
14796           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14797           allow_undefined_flag_F77="-z nodefs"
14798           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"
14799         else
14800          # Determine the default libpath from the value encoded in an empty executable.
14801          cat >conftest.$ac_ext <<_ACEOF
14802       program main
14803
14804       end
14805 _ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810   *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813   (eval "$ac_link") 2>conftest.er1
14814   ac_status=$?
14815   grep -v '^ *+' conftest.er1 >conftest.err
14816   rm -f conftest.er1
14817   cat conftest.err >&5
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); } && {
14820          test -z "$ac_f77_werror_flag" ||
14821          test ! -s conftest.err
14822        } && test -s conftest$ac_exeext &&
14823        $as_test_x conftest$ac_exeext; then
14824
14825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14826 }'`
14827 # Check for a 64-bit object if we didn't find anything.
14828 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; }
14829 }'`; fi
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834
14835 fi
14836
14837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838       conftest$ac_exeext conftest.$ac_ext
14839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14840
14841          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14842           # Warning - without using the other run time loading flags,
14843           # -berok will link without error, but may produce a broken library.
14844           no_undefined_flag_F77=' ${wl}-bernotok'
14845           allow_undefined_flag_F77=' ${wl}-berok'
14846           # Exported symbols can be pulled into shared objects from archives
14847           whole_archive_flag_spec_F77='$convenience'
14848           archive_cmds_need_lc_F77=yes
14849           # This is similar to how AIX traditionally builds its shared libraries.
14850           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'
14851         fi
14852       fi
14853       ;;
14854
14855     amigaos*)
14856       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)'
14857       hardcode_libdir_flag_spec_F77='-L$libdir'
14858       hardcode_minus_L_F77=yes
14859       # see comment about different semantics on the GNU ld section
14860       ld_shlibs_F77=no
14861       ;;
14862
14863     bsdi[45]*)
14864       export_dynamic_flag_spec_F77=-rdynamic
14865       ;;
14866
14867     cygwin* | mingw* | pw32*)
14868       # When not using gcc, we currently assume that we are using
14869       # Microsoft Visual C++.
14870       # hardcode_libdir_flag_spec is actually meaningless, as there is
14871       # no search path for DLLs.
14872       hardcode_libdir_flag_spec_F77=' '
14873       allow_undefined_flag_F77=unsupported
14874       # Tell ltmain to make .lib files, not .a files.
14875       libext=lib
14876       # Tell ltmain to make .dll files, not .so files.
14877       shrext_cmds=".dll"
14878       # FIXME: Setting linknames here is a bad hack.
14879       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14880       # The linker will automatically build a .lib file if we build a DLL.
14881       old_archive_From_new_cmds_F77='true'
14882       # FIXME: Should let the user specify the lib program.
14883       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14884       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14885       enable_shared_with_static_runtimes_F77=yes
14886       ;;
14887
14888     darwin* | rhapsody*)
14889       case $host_os in
14890         rhapsody* | darwin1.[012])
14891          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14892          ;;
14893        *) # Darwin 1.3 on
14894          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14895            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14896          else
14897            case ${MACOSX_DEPLOYMENT_TARGET} in
14898              10.[012])
14899                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14900                ;;
14901              10.*)
14902                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14903                ;;
14904            esac
14905          fi
14906          ;;
14907       esac
14908       archive_cmds_need_lc_F77=no
14909       hardcode_direct_F77=no
14910       hardcode_automatic_F77=yes
14911       hardcode_shlibpath_var_F77=unsupported
14912       whole_archive_flag_spec_F77=''
14913       link_all_deplibs_F77=yes
14914     if test "$GCC" = yes ; then
14915         output_verbose_link_cmd='echo'
14916         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14917       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14918       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14919       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}'
14920       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}'
14921     else
14922       case $cc_basename in
14923         xlc*)
14924          output_verbose_link_cmd='echo'
14925          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14926          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14927           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14928          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}'
14929           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}'
14930           ;;
14931        *)
14932          ld_shlibs_F77=no
14933           ;;
14934       esac
14935     fi
14936       ;;
14937
14938     dgux*)
14939       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14940       hardcode_libdir_flag_spec_F77='-L$libdir'
14941       hardcode_shlibpath_var_F77=no
14942       ;;
14943
14944     freebsd1*)
14945       ld_shlibs_F77=no
14946       ;;
14947
14948     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14949     # support.  Future versions do this automatically, but an explicit c++rt0.o
14950     # does not break anything, and helps significantly (at the cost of a little
14951     # extra space).
14952     freebsd2.2*)
14953       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14954       hardcode_libdir_flag_spec_F77='-R$libdir'
14955       hardcode_direct_F77=yes
14956       hardcode_shlibpath_var_F77=no
14957       ;;
14958
14959     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14960     freebsd2*)
14961       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14962       hardcode_direct_F77=yes
14963       hardcode_minus_L_F77=yes
14964       hardcode_shlibpath_var_F77=no
14965       ;;
14966
14967     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14968     freebsd* | dragonfly*)
14969       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14970       hardcode_libdir_flag_spec_F77='-R$libdir'
14971       hardcode_direct_F77=yes
14972       hardcode_shlibpath_var_F77=no
14973       ;;
14974
14975     hpux9*)
14976       if test "$GCC" = yes; then
14977         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'
14978       else
14979         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'
14980       fi
14981       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14982       hardcode_libdir_separator_F77=:
14983       hardcode_direct_F77=yes
14984
14985       # hardcode_minus_L: Not really in the search PATH,
14986       # but as the default location of the library.
14987       hardcode_minus_L_F77=yes
14988       export_dynamic_flag_spec_F77='${wl}-E'
14989       ;;
14990
14991     hpux10*)
14992       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14993         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14994       else
14995         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14996       fi
14997       if test "$with_gnu_ld" = no; then
14998         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14999         hardcode_libdir_separator_F77=:
15000
15001         hardcode_direct_F77=yes
15002         export_dynamic_flag_spec_F77='${wl}-E'
15003
15004         # hardcode_minus_L: Not really in the search PATH,
15005         # but as the default location of the library.
15006         hardcode_minus_L_F77=yes
15007       fi
15008       ;;
15009
15010     hpux11*)
15011       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15012         case $host_cpu in
15013         hppa*64*)
15014           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15015           ;;
15016         ia64*)
15017           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15018           ;;
15019         *)
15020           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15021           ;;
15022         esac
15023       else
15024         case $host_cpu in
15025         hppa*64*)
15026           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15027           ;;
15028         ia64*)
15029           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15030           ;;
15031         *)
15032           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15033           ;;
15034         esac
15035       fi
15036       if test "$with_gnu_ld" = no; then
15037         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15038         hardcode_libdir_separator_F77=:
15039
15040         case $host_cpu in
15041         hppa*64*|ia64*)
15042           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15043           hardcode_direct_F77=no
15044           hardcode_shlibpath_var_F77=no
15045           ;;
15046         *)
15047           hardcode_direct_F77=yes
15048           export_dynamic_flag_spec_F77='${wl}-E'
15049
15050           # hardcode_minus_L: Not really in the search PATH,
15051           # but as the default location of the library.
15052           hardcode_minus_L_F77=yes
15053           ;;
15054         esac
15055       fi
15056       ;;
15057
15058     irix5* | irix6* | nonstopux*)
15059       if test "$GCC" = yes; then
15060         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'
15061       else
15062         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'
15063         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15064       fi
15065       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15066       hardcode_libdir_separator_F77=:
15067       link_all_deplibs_F77=yes
15068       ;;
15069
15070     netbsd* | netbsdelf*-gnu)
15071       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15072         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15073       else
15074         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15075       fi
15076       hardcode_libdir_flag_spec_F77='-R$libdir'
15077       hardcode_direct_F77=yes
15078       hardcode_shlibpath_var_F77=no
15079       ;;
15080
15081     newsos6)
15082       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083       hardcode_direct_F77=yes
15084       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15085       hardcode_libdir_separator_F77=:
15086       hardcode_shlibpath_var_F77=no
15087       ;;
15088
15089     openbsd*)
15090       hardcode_direct_F77=yes
15091       hardcode_shlibpath_var_F77=no
15092       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15093         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15094         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15095         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15096         export_dynamic_flag_spec_F77='${wl}-E'
15097       else
15098        case $host_os in
15099          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15100            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15101            hardcode_libdir_flag_spec_F77='-R$libdir'
15102            ;;
15103          *)
15104            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15105            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15106            ;;
15107        esac
15108       fi
15109       ;;
15110
15111     os2*)
15112       hardcode_libdir_flag_spec_F77='-L$libdir'
15113       hardcode_minus_L_F77=yes
15114       allow_undefined_flag_F77=unsupported
15115       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'
15116       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15117       ;;
15118
15119     osf3*)
15120       if test "$GCC" = yes; then
15121         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15122         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'
15123       else
15124         allow_undefined_flag_F77=' -expect_unresolved \*'
15125         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'
15126       fi
15127       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15128       hardcode_libdir_separator_F77=:
15129       ;;
15130
15131     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15132       if test "$GCC" = yes; then
15133         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15134         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'
15135         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15136       else
15137         allow_undefined_flag_F77=' -expect_unresolved \*'
15138         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'
15139         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~
15140         $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'
15141
15142         # Both c and cxx compiler support -rpath directly
15143         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15144       fi
15145       hardcode_libdir_separator_F77=:
15146       ;;
15147
15148     solaris*)
15149       no_undefined_flag_F77=' -z text'
15150       if test "$GCC" = yes; then
15151         wlarc='${wl}'
15152         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15154           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15155       else
15156         wlarc=''
15157         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15159         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15160       fi
15161       hardcode_libdir_flag_spec_F77='-R$libdir'
15162       hardcode_shlibpath_var_F77=no
15163       case $host_os in
15164       solaris2.[0-5] | solaris2.[0-5].*) ;;
15165       *)
15166         # The compiler driver will combine linker options so we
15167         # cannot just pass the convience library names through
15168         # without $wl, iff we do not link with $LD.
15169         # Luckily, gcc supports the same syntax we need for Sun Studio.
15170         # Supported since Solaris 2.6 (maybe 2.5.1?)
15171         case $wlarc in
15172         '')
15173           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15174         *)
15175           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' ;;
15176         esac ;;
15177       esac
15178       link_all_deplibs_F77=yes
15179       ;;
15180
15181     sunos4*)
15182       if test "x$host_vendor" = xsequent; then
15183         # Use $CC to link under sequent, because it throws in some extra .o
15184         # files that make .init and .fini sections work.
15185         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15186       else
15187         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15188       fi
15189       hardcode_libdir_flag_spec_F77='-L$libdir'
15190       hardcode_direct_F77=yes
15191       hardcode_minus_L_F77=yes
15192       hardcode_shlibpath_var_F77=no
15193       ;;
15194
15195     sysv4)
15196       case $host_vendor in
15197         sni)
15198           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199           hardcode_direct_F77=yes # is this really true???
15200         ;;
15201         siemens)
15202           ## LD is ld it makes a PLAMLIB
15203           ## CC just makes a GrossModule.
15204           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15205           reload_cmds_F77='$CC -r -o $output$reload_objs'
15206           hardcode_direct_F77=no
15207         ;;
15208         motorola)
15209           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15210           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15211         ;;
15212       esac
15213       runpath_var='LD_RUN_PATH'
15214       hardcode_shlibpath_var_F77=no
15215       ;;
15216
15217     sysv4.3*)
15218       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15219       hardcode_shlibpath_var_F77=no
15220       export_dynamic_flag_spec_F77='-Bexport'
15221       ;;
15222
15223     sysv4*MP*)
15224       if test -d /usr/nec; then
15225         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15226         hardcode_shlibpath_var_F77=no
15227         runpath_var=LD_RUN_PATH
15228         hardcode_runpath_var=yes
15229         ld_shlibs_F77=yes
15230       fi
15231       ;;
15232
15233     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15234       no_undefined_flag_F77='${wl}-z,text'
15235       archive_cmds_need_lc_F77=no
15236       hardcode_shlibpath_var_F77=no
15237       runpath_var='LD_RUN_PATH'
15238
15239       if test "$GCC" = yes; then
15240         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15242       else
15243         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15244         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15245       fi
15246       ;;
15247
15248     sysv5* | sco3.2v5* | sco5v6*)
15249       # Note: We can NOT use -z defs as we might desire, because we do not
15250       # link with -lc, and that would cause any symbols used from libc to
15251       # always be unresolved, which means just about no library would
15252       # ever link correctly.  If we're not using GNU ld we use -z text
15253       # though, which does catch some bad symbols but isn't as heavy-handed
15254       # as -z defs.
15255       no_undefined_flag_F77='${wl}-z,text'
15256       allow_undefined_flag_F77='${wl}-z,nodefs'
15257       archive_cmds_need_lc_F77=no
15258       hardcode_shlibpath_var_F77=no
15259       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15260       hardcode_libdir_separator_F77=':'
15261       link_all_deplibs_F77=yes
15262       export_dynamic_flag_spec_F77='${wl}-Bexport'
15263       runpath_var='LD_RUN_PATH'
15264
15265       if test "$GCC" = yes; then
15266         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15267         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15268       else
15269         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15271       fi
15272       ;;
15273
15274     uts4*)
15275       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15276       hardcode_libdir_flag_spec_F77='-L$libdir'
15277       hardcode_shlibpath_var_F77=no
15278       ;;
15279
15280     *)
15281       ld_shlibs_F77=no
15282       ;;
15283     esac
15284   fi
15285
15286 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15287 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15288 test "$ld_shlibs_F77" = no && can_build_shared=no
15289
15290 #
15291 # Do we need to explicitly link libc?
15292 #
15293 case "x$archive_cmds_need_lc_F77" in
15294 x|xyes)
15295   # Assume -lc should be added
15296   archive_cmds_need_lc_F77=yes
15297
15298   if test "$enable_shared" = yes && test "$GCC" = yes; then
15299     case $archive_cmds_F77 in
15300     *'~'*)
15301       # FIXME: we may have to deal with multi-command sequences.
15302       ;;
15303     '$CC '*)
15304       # Test whether the compiler implicitly links with -lc since on some
15305       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15306       # to ld, don't add -lc before -lgcc.
15307       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15308 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15309       $rm conftest*
15310       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15311
15312       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15313   (eval $ac_compile) 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } 2>conftest.err; then
15317         soname=conftest
15318         lib=conftest
15319         libobjs=conftest.$ac_objext
15320         deplibs=
15321         wl=$lt_prog_compiler_wl_F77
15322         pic_flag=$lt_prog_compiler_pic_F77
15323         compiler_flags=-v
15324         linker_flags=-v
15325         verstring=
15326         output_objdir=.
15327         libname=conftest
15328         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15329         allow_undefined_flag_F77=
15330         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15331   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }
15335         then
15336           archive_cmds_need_lc_F77=no
15337         else
15338           archive_cmds_need_lc_F77=yes
15339         fi
15340         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15341       else
15342         cat conftest.err 1>&5
15343       fi
15344       $rm conftest*
15345       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15346 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15347       ;;
15348     esac
15349   fi
15350   ;;
15351 esac
15352
15353 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15354 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15355 library_names_spec=
15356 libname_spec='lib$name'
15357 soname_spec=
15358 shrext_cmds=".so"
15359 postinstall_cmds=
15360 postuninstall_cmds=
15361 finish_cmds=
15362 finish_eval=
15363 shlibpath_var=
15364 shlibpath_overrides_runpath=unknown
15365 version_type=none
15366 dynamic_linker="$host_os ld.so"
15367 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15368 if test "$GCC" = yes; then
15369   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15370   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15371     # if the path contains ";" then we assume it to be the separator
15372     # otherwise default to the standard path separator (i.e. ":") - it is
15373     # assumed that no part of a normal pathname contains ";" but that should
15374     # okay in the real world where ";" in dirpaths is itself problematic.
15375     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15376   else
15377     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15378   fi
15379 else
15380   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15381 fi
15382 need_lib_prefix=unknown
15383 hardcode_into_libs=no
15384
15385 # when you set need_version to no, make sure it does not cause -set_version
15386 # flags to be left without arguments
15387 need_version=unknown
15388
15389 case $host_os in
15390 aix3*)
15391   version_type=linux
15392   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15393   shlibpath_var=LIBPATH
15394
15395   # AIX 3 has no versioning support, so we append a major version to the name.
15396   soname_spec='${libname}${release}${shared_ext}$major'
15397   ;;
15398
15399 aix4* | aix5*)
15400   version_type=linux
15401   need_lib_prefix=no
15402   need_version=no
15403   hardcode_into_libs=yes
15404   if test "$host_cpu" = ia64; then
15405     # AIX 5 supports IA64
15406     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15407     shlibpath_var=LD_LIBRARY_PATH
15408   else
15409     # With GCC up to 2.95.x, collect2 would create an import file
15410     # for dependence libraries.  The import file would start with
15411     # the line `#! .'.  This would cause the generated library to
15412     # depend on `.', always an invalid library.  This was fixed in
15413     # development snapshots of GCC prior to 3.0.
15414     case $host_os in
15415       aix4 | aix4.[01] | aix4.[01].*)
15416       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15417            echo ' yes '
15418            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15419         :
15420       else
15421         can_build_shared=no
15422       fi
15423       ;;
15424     esac
15425     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15426     # soname into executable. Probably we can add versioning support to
15427     # collect2, so additional links can be useful in future.
15428     if test "$aix_use_runtimelinking" = yes; then
15429       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15430       # instead of lib<name>.a to let people know that these are not
15431       # typical AIX shared libraries.
15432       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433     else
15434       # We preserve .a as extension for shared libraries through AIX4.2
15435       # and later when we are not doing run time linking.
15436       library_names_spec='${libname}${release}.a $libname.a'
15437       soname_spec='${libname}${release}${shared_ext}$major'
15438     fi
15439     shlibpath_var=LIBPATH
15440   fi
15441   ;;
15442
15443 amigaos*)
15444   library_names_spec='$libname.ixlibrary $libname.a'
15445   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15446   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'
15447   ;;
15448
15449 beos*)
15450   library_names_spec='${libname}${shared_ext}'
15451   dynamic_linker="$host_os ld.so"
15452   shlibpath_var=LIBRARY_PATH
15453   ;;
15454
15455 bsdi[45]*)
15456   version_type=linux
15457   need_version=no
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459   soname_spec='${libname}${release}${shared_ext}$major'
15460   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15461   shlibpath_var=LD_LIBRARY_PATH
15462   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15463   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15464   # the default ld.so.conf also contains /usr/contrib/lib and
15465   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15466   # libtool to hard-code these into programs
15467   ;;
15468
15469 cygwin* | mingw* | pw32*)
15470   version_type=windows
15471   shrext_cmds=".dll"
15472   need_version=no
15473   need_lib_prefix=no
15474
15475   case $GCC,$host_os in
15476   yes,cygwin* | yes,mingw* | yes,pw32*)
15477     library_names_spec='$libname.dll.a'
15478     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15479     postinstall_cmds='base_file=`basename \${file}`~
15480       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15481       dldir=$destdir/`dirname \$dlpath`~
15482       test -d \$dldir || mkdir -p \$dldir~
15483       $install_prog $dir/$dlname \$dldir/$dlname~
15484       chmod a+x \$dldir/$dlname'
15485     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15486       dlpath=$dir/\$dldll~
15487        $rm \$dlpath'
15488     shlibpath_overrides_runpath=yes
15489
15490     case $host_os in
15491     cygwin*)
15492       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15493       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15494       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15495       ;;
15496     mingw*)
15497       # MinGW DLLs use traditional 'lib' prefix
15498       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15499       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15500       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15501         # It is most probably a Windows format PATH printed by
15502         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15503         # path with ; separators, and with drive letters. We can handle the
15504         # drive letters (cygwin fileutils understands them), so leave them,
15505         # especially as we might pass files found there to a mingw objdump,
15506         # which wouldn't understand a cygwinified path. Ahh.
15507         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15508       else
15509         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15510       fi
15511       ;;
15512     pw32*)
15513       # pw32 DLLs use 'pw' prefix rather than 'lib'
15514       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15515       ;;
15516     esac
15517     ;;
15518
15519   *)
15520     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15521     ;;
15522   esac
15523   dynamic_linker='Win32 ld.exe'
15524   # FIXME: first we should search . and the directory the executable is in
15525   shlibpath_var=PATH
15526   ;;
15527
15528 darwin* | rhapsody*)
15529   dynamic_linker="$host_os dyld"
15530   version_type=darwin
15531   need_lib_prefix=no
15532   need_version=no
15533   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15534   soname_spec='${libname}${release}${major}$shared_ext'
15535   shlibpath_overrides_runpath=yes
15536   shlibpath_var=DYLD_LIBRARY_PATH
15537   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15538   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15539   if test "$GCC" = yes; then
15540     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"`
15541   else
15542     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15543   fi
15544   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15545   ;;
15546
15547 dgux*)
15548   version_type=linux
15549   need_lib_prefix=no
15550   need_version=no
15551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15552   soname_spec='${libname}${release}${shared_ext}$major'
15553   shlibpath_var=LD_LIBRARY_PATH
15554   ;;
15555
15556 freebsd1*)
15557   dynamic_linker=no
15558   ;;
15559
15560 freebsd* | dragonfly*)
15561   # DragonFly does not have aout.  When/if they implement a new
15562   # versioning mechanism, adjust this.
15563   if test -x /usr/bin/objformat; then
15564     objformat=`/usr/bin/objformat`
15565   else
15566     case $host_os in
15567     freebsd[123]*) objformat=aout ;;
15568     *) objformat=elf ;;
15569     esac
15570   fi
15571   version_type=freebsd-$objformat
15572   case $version_type in
15573     freebsd-elf*)
15574       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15575       need_version=no
15576       need_lib_prefix=no
15577       ;;
15578     freebsd-*)
15579       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15580       need_version=yes
15581       ;;
15582   esac
15583   shlibpath_var=LD_LIBRARY_PATH
15584   case $host_os in
15585   freebsd2*)
15586     shlibpath_overrides_runpath=yes
15587     ;;
15588   freebsd3.[01]* | freebsdelf3.[01]*)
15589     shlibpath_overrides_runpath=yes
15590     hardcode_into_libs=yes
15591     ;;
15592   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15593   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15594     shlibpath_overrides_runpath=no
15595     hardcode_into_libs=yes
15596     ;;
15597   freebsd*) # from 4.6 on
15598     shlibpath_overrides_runpath=yes
15599     hardcode_into_libs=yes
15600     ;;
15601   esac
15602   ;;
15603
15604 gnu*)
15605   version_type=linux
15606   need_lib_prefix=no
15607   need_version=no
15608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15609   soname_spec='${libname}${release}${shared_ext}$major'
15610   shlibpath_var=LD_LIBRARY_PATH
15611   hardcode_into_libs=yes
15612   ;;
15613
15614 hpux9* | hpux10* | hpux11*)
15615   # Give a soname corresponding to the major version so that dld.sl refuses to
15616   # link against other versions.
15617   version_type=sunos
15618   need_lib_prefix=no
15619   need_version=no
15620   case $host_cpu in
15621   ia64*)
15622     shrext_cmds='.so'
15623     hardcode_into_libs=yes
15624     dynamic_linker="$host_os dld.so"
15625     shlibpath_var=LD_LIBRARY_PATH
15626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628     soname_spec='${libname}${release}${shared_ext}$major'
15629     if test "X$HPUX_IA64_MODE" = X32; then
15630       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15631     else
15632       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15633     fi
15634     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15635     ;;
15636    hppa*64*)
15637      shrext_cmds='.sl'
15638      hardcode_into_libs=yes
15639      dynamic_linker="$host_os dld.sl"
15640      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15641      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15642      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643      soname_spec='${libname}${release}${shared_ext}$major'
15644      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15645      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15646      ;;
15647    *)
15648     shrext_cmds='.sl'
15649     dynamic_linker="$host_os dld.sl"
15650     shlibpath_var=SHLIB_PATH
15651     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653     soname_spec='${libname}${release}${shared_ext}$major'
15654     ;;
15655   esac
15656   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15657   postinstall_cmds='chmod 555 $lib'
15658   ;;
15659
15660 interix3*)
15661   version_type=linux
15662   need_lib_prefix=no
15663   need_version=no
15664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15667   shlibpath_var=LD_LIBRARY_PATH
15668   shlibpath_overrides_runpath=no
15669   hardcode_into_libs=yes
15670   ;;
15671
15672 irix5* | irix6* | nonstopux*)
15673   case $host_os in
15674     nonstopux*) version_type=nonstopux ;;
15675     *)
15676         if test "$lt_cv_prog_gnu_ld" = yes; then
15677                 version_type=linux
15678         else
15679                 version_type=irix
15680         fi ;;
15681   esac
15682   need_lib_prefix=no
15683   need_version=no
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15686   case $host_os in
15687   irix5* | nonstopux*)
15688     libsuff= shlibsuff=
15689     ;;
15690   *)
15691     case $LD in # libtool.m4 will add one of these switches to LD
15692     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15693       libsuff= shlibsuff= libmagic=32-bit;;
15694     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15695       libsuff=32 shlibsuff=N32 libmagic=N32;;
15696     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15697       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15698     *) libsuff= shlibsuff= libmagic=never-match;;
15699     esac
15700     ;;
15701   esac
15702   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15703   shlibpath_overrides_runpath=no
15704   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15705   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15706   hardcode_into_libs=yes
15707   ;;
15708
15709 # No shared lib support for Linux oldld, aout, or coff.
15710 linux*oldld* | linux*aout* | linux*coff*)
15711   dynamic_linker=no
15712   ;;
15713
15714 # This must be Linux ELF.
15715 linux* | k*bsd*-gnu)
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   soname_spec='${libname}${release}${shared_ext}$major'
15721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   shlibpath_overrides_runpath=no
15724   # This implies no fast_install, which is unacceptable.
15725   # Some rework will be needed to allow for fast_install
15726   # before this can be enabled.
15727   hardcode_into_libs=yes
15728
15729   # Append ld.so.conf contents to the search path
15730   if test -f /etc/ld.so.conf; then
15731     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' ' '`
15732     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15733   fi
15734
15735   # We used to test for /lib/ld.so.1 and disable shared libraries on
15736   # powerpc, because MkLinux only supported shared libraries with the
15737   # GNU dynamic linker.  Since this was broken with cross compilers,
15738   # most powerpc-linux boxes support dynamic linking these days and
15739   # people can always --disable-shared, the test was removed, and we
15740   # assume the GNU/Linux dynamic linker is in use.
15741   dynamic_linker='GNU/Linux ld.so'
15742   ;;
15743
15744 netbsdelf*-gnu)
15745   version_type=linux
15746   need_lib_prefix=no
15747   need_version=no
15748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15749   soname_spec='${libname}${release}${shared_ext}$major'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   shlibpath_overrides_runpath=no
15752   hardcode_into_libs=yes
15753   dynamic_linker='NetBSD ld.elf_so'
15754   ;;
15755
15756 netbsd*)
15757   version_type=sunos
15758   need_lib_prefix=no
15759   need_version=no
15760   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15762     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15763     dynamic_linker='NetBSD (a.out) ld.so'
15764   else
15765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15766     soname_spec='${libname}${release}${shared_ext}$major'
15767     dynamic_linker='NetBSD ld.elf_so'
15768   fi
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=yes
15771   hardcode_into_libs=yes
15772   ;;
15773
15774 newsos6)
15775   version_type=linux
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=yes
15779   ;;
15780
15781 nto-qnx*)
15782   version_type=linux
15783   need_lib_prefix=no
15784   need_version=no
15785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786   soname_spec='${libname}${release}${shared_ext}$major'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   shlibpath_overrides_runpath=yes
15789   ;;
15790
15791 openbsd*)
15792   version_type=sunos
15793   sys_lib_dlsearch_path_spec="/usr/lib"
15794   need_lib_prefix=no
15795   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15796   case $host_os in
15797     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15798     *)                         need_version=no  ;;
15799   esac
15800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15802   shlibpath_var=LD_LIBRARY_PATH
15803   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15804     case $host_os in
15805       openbsd2.[89] | openbsd2.[89].*)
15806         shlibpath_overrides_runpath=no
15807         ;;
15808       *)
15809         shlibpath_overrides_runpath=yes
15810         ;;
15811       esac
15812   else
15813     shlibpath_overrides_runpath=yes
15814   fi
15815   ;;
15816
15817 os2*)
15818   libname_spec='$name'
15819   shrext_cmds=".dll"
15820   need_lib_prefix=no
15821   library_names_spec='$libname${shared_ext} $libname.a'
15822   dynamic_linker='OS/2 ld.exe'
15823   shlibpath_var=LIBPATH
15824   ;;
15825
15826 osf3* | osf4* | osf5*)
15827   version_type=osf
15828   need_lib_prefix=no
15829   need_version=no
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832   shlibpath_var=LD_LIBRARY_PATH
15833   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15834   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15835   ;;
15836
15837 solaris*)
15838   version_type=linux
15839   need_lib_prefix=no
15840   need_version=no
15841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842   soname_spec='${libname}${release}${shared_ext}$major'
15843   shlibpath_var=LD_LIBRARY_PATH
15844   shlibpath_overrides_runpath=yes
15845   hardcode_into_libs=yes
15846   # ldd complains unless libraries are executable
15847   postinstall_cmds='chmod +x $lib'
15848   ;;
15849
15850 sunos4*)
15851   version_type=sunos
15852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15853   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15854   shlibpath_var=LD_LIBRARY_PATH
15855   shlibpath_overrides_runpath=yes
15856   if test "$with_gnu_ld" = yes; then
15857     need_lib_prefix=no
15858   fi
15859   need_version=yes
15860   ;;
15861
15862 sysv4 | sysv4.3*)
15863   version_type=linux
15864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865   soname_spec='${libname}${release}${shared_ext}$major'
15866   shlibpath_var=LD_LIBRARY_PATH
15867   case $host_vendor in
15868     sni)
15869       shlibpath_overrides_runpath=no
15870       need_lib_prefix=no
15871       export_dynamic_flag_spec='${wl}-Blargedynsym'
15872       runpath_var=LD_RUN_PATH
15873       ;;
15874     siemens)
15875       need_lib_prefix=no
15876       ;;
15877     motorola)
15878       need_lib_prefix=no
15879       need_version=no
15880       shlibpath_overrides_runpath=no
15881       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15882       ;;
15883   esac
15884   ;;
15885
15886 sysv4*MP*)
15887   if test -d /usr/nec ;then
15888     version_type=linux
15889     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15890     soname_spec='$libname${shared_ext}.$major'
15891     shlibpath_var=LD_LIBRARY_PATH
15892   fi
15893   ;;
15894
15895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15896   version_type=freebsd-elf
15897   need_lib_prefix=no
15898   need_version=no
15899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15900   soname_spec='${libname}${release}${shared_ext}$major'
15901   shlibpath_var=LD_LIBRARY_PATH
15902   hardcode_into_libs=yes
15903   if test "$with_gnu_ld" = yes; then
15904     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15905     shlibpath_overrides_runpath=no
15906   else
15907     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15908     shlibpath_overrides_runpath=yes
15909     case $host_os in
15910       sco3.2v5*)
15911         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15912         ;;
15913     esac
15914   fi
15915   sys_lib_dlsearch_path_spec='/usr/lib'
15916   ;;
15917
15918 uts4*)
15919   version_type=linux
15920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921   soname_spec='${libname}${release}${shared_ext}$major'
15922   shlibpath_var=LD_LIBRARY_PATH
15923   ;;
15924
15925 *)
15926   dynamic_linker=no
15927   ;;
15928 esac
15929 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15930 echo "${ECHO_T}$dynamic_linker" >&6; }
15931 test "$dynamic_linker" = no && can_build_shared=no
15932
15933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15934 if test "$GCC" = yes; then
15935   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15936 fi
15937
15938 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15939 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15940 hardcode_action_F77=
15941 if test -n "$hardcode_libdir_flag_spec_F77" || \
15942    test -n "$runpath_var_F77" || \
15943    test "X$hardcode_automatic_F77" = "Xyes" ; then
15944
15945   # We can hardcode non-existant directories.
15946   if test "$hardcode_direct_F77" != no &&
15947      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15948      # have to relink, otherwise we might link with an installed library
15949      # when we should be linking with a yet-to-be-installed one
15950      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15951      test "$hardcode_minus_L_F77" != no; then
15952     # Linking always hardcodes the temporary library directory.
15953     hardcode_action_F77=relink
15954   else
15955     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15956     hardcode_action_F77=immediate
15957   fi
15958 else
15959   # We cannot hardcode anything, or else we can only hardcode existing
15960   # directories.
15961   hardcode_action_F77=unsupported
15962 fi
15963 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15964 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15965
15966 if test "$hardcode_action_F77" = relink; then
15967   # Fast installation is not supported
15968   enable_fast_install=no
15969 elif test "$shlibpath_overrides_runpath" = yes ||
15970      test "$enable_shared" = no; then
15971   # Fast installation is not necessary
15972   enable_fast_install=needless
15973 fi
15974
15975
15976 # The else clause should only fire when bootstrapping the
15977 # libtool distribution, otherwise you forgot to ship ltmain.sh
15978 # with your package, and you will get complaints that there are
15979 # no rules to generate ltmain.sh.
15980 if test -f "$ltmain"; then
15981   # See if we are running on zsh, and set the options which allow our commands through
15982   # without removal of \ escapes.
15983   if test -n "${ZSH_VERSION+set}" ; then
15984     setopt NO_GLOB_SUBST
15985   fi
15986   # Now quote all the things that may contain metacharacters while being
15987   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15988   # variables and quote the copies for generation of the libtool script.
15989   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15990     SED SHELL STRIP \
15991     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15992     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15993     deplibs_check_method reload_flag reload_cmds need_locks \
15994     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15995     lt_cv_sys_global_symbol_to_c_name_address \
15996     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15997     old_postinstall_cmds old_postuninstall_cmds \
15998     compiler_F77 \
15999     CC_F77 \
16000     LD_F77 \
16001     lt_prog_compiler_wl_F77 \
16002     lt_prog_compiler_pic_F77 \
16003     lt_prog_compiler_static_F77 \
16004     lt_prog_compiler_no_builtin_flag_F77 \
16005     export_dynamic_flag_spec_F77 \
16006     thread_safe_flag_spec_F77 \
16007     whole_archive_flag_spec_F77 \
16008     enable_shared_with_static_runtimes_F77 \
16009     old_archive_cmds_F77 \
16010     old_archive_from_new_cmds_F77 \
16011     predep_objects_F77 \
16012     postdep_objects_F77 \
16013     predeps_F77 \
16014     postdeps_F77 \
16015     compiler_lib_search_path_F77 \
16016     archive_cmds_F77 \
16017     archive_expsym_cmds_F77 \
16018     postinstall_cmds_F77 \
16019     postuninstall_cmds_F77 \
16020     old_archive_from_expsyms_cmds_F77 \
16021     allow_undefined_flag_F77 \
16022     no_undefined_flag_F77 \
16023     export_symbols_cmds_F77 \
16024     hardcode_libdir_flag_spec_F77 \
16025     hardcode_libdir_flag_spec_ld_F77 \
16026     hardcode_libdir_separator_F77 \
16027     hardcode_automatic_F77 \
16028     module_cmds_F77 \
16029     module_expsym_cmds_F77 \
16030     lt_cv_prog_compiler_c_o_F77 \
16031     exclude_expsyms_F77 \
16032     include_expsyms_F77; do
16033
16034     case $var in
16035     old_archive_cmds_F77 | \
16036     old_archive_from_new_cmds_F77 | \
16037     archive_cmds_F77 | \
16038     archive_expsym_cmds_F77 | \
16039     module_cmds_F77 | \
16040     module_expsym_cmds_F77 | \
16041     old_archive_from_expsyms_cmds_F77 | \
16042     export_symbols_cmds_F77 | \
16043     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16044     postinstall_cmds | postuninstall_cmds | \
16045     old_postinstall_cmds | old_postuninstall_cmds | \
16046     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16047       # Double-quote double-evaled strings.
16048       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16049       ;;
16050     *)
16051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16052       ;;
16053     esac
16054   done
16055
16056   case $lt_echo in
16057   *'\$0 --fallback-echo"')
16058     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16059     ;;
16060   esac
16061
16062 cfgfile="$ofile"
16063
16064   cat <<__EOF__ >> "$cfgfile"
16065 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16066
16067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16068
16069 # Shell to use when invoking shell scripts.
16070 SHELL=$lt_SHELL
16071
16072 # Whether or not to build shared libraries.
16073 build_libtool_libs=$enable_shared
16074
16075 # Whether or not to build static libraries.
16076 build_old_libs=$enable_static
16077
16078 # Whether or not to add -lc for building shared libraries.
16079 build_libtool_need_lc=$archive_cmds_need_lc_F77
16080
16081 # Whether or not to disallow shared libs when runtime libs are static
16082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16083
16084 # Whether or not to optimize for fast installation.
16085 fast_install=$enable_fast_install
16086
16087 # The host system.
16088 host_alias=$host_alias
16089 host=$host
16090 host_os=$host_os
16091
16092 # The build system.
16093 build_alias=$build_alias
16094 build=$build
16095 build_os=$build_os
16096
16097 # An echo program that does not interpret backslashes.
16098 echo=$lt_echo
16099
16100 # The archiver.
16101 AR=$lt_AR
16102 AR_FLAGS=$lt_AR_FLAGS
16103
16104 # A C compiler.
16105 LTCC=$lt_LTCC
16106
16107 # LTCC compiler flags.
16108 LTCFLAGS=$lt_LTCFLAGS
16109
16110 # A language-specific compiler.
16111 CC=$lt_compiler_F77
16112
16113 # Is the compiler the GNU C compiler?
16114 with_gcc=$GCC_F77
16115
16116 # An ERE matcher.
16117 EGREP=$lt_EGREP
16118
16119 # The linker used to build libraries.
16120 LD=$lt_LD_F77
16121
16122 # Whether we need hard or soft links.
16123 LN_S=$lt_LN_S
16124
16125 # A BSD-compatible nm program.
16126 NM=$lt_NM
16127
16128 # A symbol stripping program
16129 STRIP=$lt_STRIP
16130
16131 # Used to examine libraries when file_magic_cmd begins "file"
16132 MAGIC_CMD=$MAGIC_CMD
16133
16134 # Used on cygwin: DLL creation program.
16135 DLLTOOL="$DLLTOOL"
16136
16137 # Used on cygwin: object dumper.
16138 OBJDUMP="$OBJDUMP"
16139
16140 # Used on cygwin: assembler.
16141 AS="$AS"
16142
16143 # The name of the directory that contains temporary libtool files.
16144 objdir=$objdir
16145
16146 # How to create reloadable object files.
16147 reload_flag=$lt_reload_flag
16148 reload_cmds=$lt_reload_cmds
16149
16150 # How to pass a linker flag through the compiler.
16151 wl=$lt_lt_prog_compiler_wl_F77
16152
16153 # Object file suffix (normally "o").
16154 objext="$ac_objext"
16155
16156 # Old archive suffix (normally "a").
16157 libext="$libext"
16158
16159 # Shared library suffix (normally ".so").
16160 shrext_cmds='$shrext_cmds'
16161
16162 # Executable file suffix (normally "").
16163 exeext="$exeext"
16164
16165 # Additional compiler flags for building library objects.
16166 pic_flag=$lt_lt_prog_compiler_pic_F77
16167 pic_mode=$pic_mode
16168
16169 # What is the maximum length of a command?
16170 max_cmd_len=$lt_cv_sys_max_cmd_len
16171
16172 # Does compiler simultaneously support -c and -o options?
16173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16174
16175 # Must we lock files when doing compilation?
16176 need_locks=$lt_need_locks
16177
16178 # Do we need the lib prefix for modules?
16179 need_lib_prefix=$need_lib_prefix
16180
16181 # Do we need a version for libraries?
16182 need_version=$need_version
16183
16184 # Whether dlopen is supported.
16185 dlopen_support=$enable_dlopen
16186
16187 # Whether dlopen of programs is supported.
16188 dlopen_self=$enable_dlopen_self
16189
16190 # Whether dlopen of statically linked programs is supported.
16191 dlopen_self_static=$enable_dlopen_self_static
16192
16193 # Compiler flag to prevent dynamic linking.
16194 link_static_flag=$lt_lt_prog_compiler_static_F77
16195
16196 # Compiler flag to turn off builtin functions.
16197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16198
16199 # Compiler flag to allow reflexive dlopens.
16200 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16201
16202 # Compiler flag to generate shared objects directly from archives.
16203 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16204
16205 # Compiler flag to generate thread-safe objects.
16206 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16207
16208 # Library versioning type.
16209 version_type=$version_type
16210
16211 # Format of library name prefix.
16212 libname_spec=$lt_libname_spec
16213
16214 # List of archive names.  First name is the real one, the rest are links.
16215 # The last name is the one that the linker finds with -lNAME.
16216 library_names_spec=$lt_library_names_spec
16217
16218 # The coded name of the library, if different from the real name.
16219 soname_spec=$lt_soname_spec
16220
16221 # Commands used to build and install an old-style archive.
16222 RANLIB=$lt_RANLIB
16223 old_archive_cmds=$lt_old_archive_cmds_F77
16224 old_postinstall_cmds=$lt_old_postinstall_cmds
16225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16226
16227 # Create an old-style archive from a shared archive.
16228 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16229
16230 # Create a temporary old-style archive to link instead of a shared archive.
16231 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16232
16233 # Commands used to build and install a shared archive.
16234 archive_cmds=$lt_archive_cmds_F77
16235 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16236 postinstall_cmds=$lt_postinstall_cmds
16237 postuninstall_cmds=$lt_postuninstall_cmds
16238
16239 # Commands used to build a loadable module (assumed same as above if empty)
16240 module_cmds=$lt_module_cmds_F77
16241 module_expsym_cmds=$lt_module_expsym_cmds_F77
16242
16243 # Commands to strip libraries.
16244 old_striplib=$lt_old_striplib
16245 striplib=$lt_striplib
16246
16247 # Dependencies to place before the objects being linked to create a
16248 # shared library.
16249 predep_objects=$lt_predep_objects_F77
16250
16251 # Dependencies to place after the objects being linked to create a
16252 # shared library.
16253 postdep_objects=$lt_postdep_objects_F77
16254
16255 # Dependencies to place before the objects being linked to create a
16256 # shared library.
16257 predeps=$lt_predeps_F77
16258
16259 # Dependencies to place after the objects being linked to create a
16260 # shared library.
16261 postdeps=$lt_postdeps_F77
16262
16263 # The library search path used internally by the compiler when linking
16264 # a shared library.
16265 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16266
16267 # Method to check whether dependent libraries are shared objects.
16268 deplibs_check_method=$lt_deplibs_check_method
16269
16270 # Command to use when deplibs_check_method == file_magic.
16271 file_magic_cmd=$lt_file_magic_cmd
16272
16273 # Flag that allows shared libraries with undefined symbols to be built.
16274 allow_undefined_flag=$lt_allow_undefined_flag_F77
16275
16276 # Flag that forces no undefined symbols.
16277 no_undefined_flag=$lt_no_undefined_flag_F77
16278
16279 # Commands used to finish a libtool library installation in a directory.
16280 finish_cmds=$lt_finish_cmds
16281
16282 # Same as above, but a single script fragment to be evaled but not shown.
16283 finish_eval=$lt_finish_eval
16284
16285 # Take the output of nm and produce a listing of raw symbols and C names.
16286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16287
16288 # Transform the output of nm in a proper C declaration
16289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16290
16291 # Transform the output of nm in a C name address pair
16292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16293
16294 # This is the shared library runtime path variable.
16295 runpath_var=$runpath_var
16296
16297 # This is the shared library path variable.
16298 shlibpath_var=$shlibpath_var
16299
16300 # Is shlibpath searched before the hard-coded library search path?
16301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16302
16303 # How to hardcode a shared library path into an executable.
16304 hardcode_action=$hardcode_action_F77
16305
16306 # Whether we should hardcode library paths into libraries.
16307 hardcode_into_libs=$hardcode_into_libs
16308
16309 # Flag to hardcode \$libdir into a binary during linking.
16310 # This must work even if \$libdir does not exist.
16311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16312
16313 # If ld is used when linking, flag to hardcode \$libdir into
16314 # a binary during linking. This must work even if \$libdir does
16315 # not exist.
16316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16317
16318 # Whether we need a single -rpath flag with a separated argument.
16319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16320
16321 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16322 # resulting binary.
16323 hardcode_direct=$hardcode_direct_F77
16324
16325 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16326 # resulting binary.
16327 hardcode_minus_L=$hardcode_minus_L_F77
16328
16329 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16330 # the resulting binary.
16331 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16332
16333 # Set to yes if building a shared library automatically hardcodes DIR into the library
16334 # and all subsequent libraries and executables linked against it.
16335 hardcode_automatic=$hardcode_automatic_F77
16336
16337 # Variables whose values should be saved in libtool wrapper scripts and
16338 # restored at relink time.
16339 variables_saved_for_relink="$variables_saved_for_relink"
16340
16341 # Whether libtool must link a program against all its dependency libraries.
16342 link_all_deplibs=$link_all_deplibs_F77
16343
16344 # Compile-time system search path for libraries
16345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16346
16347 # Run-time system search path for libraries
16348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16349
16350 # Fix the shell variable \$srcfile for the compiler.
16351 fix_srcfile_path="$fix_srcfile_path_F77"
16352
16353 # Set to yes if exported symbols are required.
16354 always_export_symbols=$always_export_symbols_F77
16355
16356 # The commands to list exported symbols.
16357 export_symbols_cmds=$lt_export_symbols_cmds_F77
16358
16359 # The commands to extract the exported symbol list from a shared archive.
16360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16361
16362 # Symbols that should not be listed in the preloaded symbols.
16363 exclude_expsyms=$lt_exclude_expsyms_F77
16364
16365 # Symbols that must always be exported.
16366 include_expsyms=$lt_include_expsyms_F77
16367
16368 # ### END LIBTOOL TAG CONFIG: $tagname
16369
16370 __EOF__
16371
16372
16373 else
16374   # If there is no Makefile yet, we rely on a make rule to execute
16375   # `config.status --recheck' to rerun these tests and create the
16376   # libtool script then.
16377   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16378   if test -f "$ltmain_in"; then
16379     test -f Makefile && make "$ltmain"
16380   fi
16381 fi
16382
16383
16384 ac_ext=c
16385 ac_cpp='$CPP $CPPFLAGS'
16386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16389
16390 CC="$lt_save_CC"
16391
16392         else
16393           tagname=""
16394         fi
16395         ;;
16396
16397       GCJ)
16398         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16399
16400
16401 # Source file extension for Java test sources.
16402 ac_ext=java
16403
16404 # Object file extension for compiled Java test sources.
16405 objext=o
16406 objext_GCJ=$objext
16407
16408 # Code to be used in simple compile tests
16409 lt_simple_compile_test_code="class foo {}\n"
16410
16411 # Code to be used in simple link tests
16412 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16413
16414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16415
16416 # If no C compiler was specified, use CC.
16417 LTCC=${LTCC-"$CC"}
16418
16419 # If no C compiler flags were specified, use CFLAGS.
16420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16421
16422 # Allow CC to be a program name with arguments.
16423 compiler=$CC
16424
16425
16426 # save warnings/boilerplate of simple test code
16427 ac_outfile=conftest.$ac_objext
16428 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16430 _lt_compiler_boilerplate=`cat conftest.err`
16431 $rm conftest*
16432
16433 ac_outfile=conftest.$ac_objext
16434 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16436 _lt_linker_boilerplate=`cat conftest.err`
16437 $rm conftest*
16438
16439
16440 # Allow CC to be a program name with arguments.
16441 lt_save_CC="$CC"
16442 CC=${GCJ-"gcj"}
16443 compiler=$CC
16444 compiler_GCJ=$CC
16445 for cc_temp in $compiler""; do
16446   case $cc_temp in
16447     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16448     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16449     \-*) ;;
16450     *) break;;
16451   esac
16452 done
16453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16454
16455
16456 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16457 archive_cmds_need_lc_GCJ=no
16458
16459 old_archive_cmds_GCJ=$old_archive_cmds
16460
16461
16462 lt_prog_compiler_no_builtin_flag_GCJ=
16463
16464 if test "$GCC" = yes; then
16465   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16466
16467
16468 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16469 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16470 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   lt_cv_prog_compiler_rtti_exceptions=no
16474   ac_outfile=conftest.$ac_objext
16475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16476    lt_compiler_flag="-fno-rtti -fno-exceptions"
16477    # Insert the option either (1) after the last *FLAGS variable, or
16478    # (2) before a word containing "conftest.", or (3) at the end.
16479    # Note that $ac_compile itself does not contain backslashes and begins
16480    # with a dollar sign (not a hyphen), so the echo should work correctly.
16481    # The option is referenced via a variable to avoid confusing sed.
16482    lt_compile=`echo "$ac_compile" | $SED \
16483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16485    -e 's:$: $lt_compiler_flag:'`
16486    (eval echo "\"\$as_me:16486: $lt_compile\"" >&5)
16487    (eval "$lt_compile" 2>conftest.err)
16488    ac_status=$?
16489    cat conftest.err >&5
16490    echo "$as_me:16490: \$? = $ac_status" >&5
16491    if (exit $ac_status) && test -s "$ac_outfile"; then
16492      # The compiler can only warn and ignore the option if not recognized
16493      # So say no if there are warnings other than the usual output.
16494      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16495      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16496      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16497        lt_cv_prog_compiler_rtti_exceptions=yes
16498      fi
16499    fi
16500    $rm conftest*
16501
16502 fi
16503 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16504 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16505
16506 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16507     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16508 else
16509     :
16510 fi
16511
16512 fi
16513
16514 lt_prog_compiler_wl_GCJ=
16515 lt_prog_compiler_pic_GCJ=
16516 lt_prog_compiler_static_GCJ=
16517
16518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16520
16521   if test "$GCC" = yes; then
16522     lt_prog_compiler_wl_GCJ='-Wl,'
16523     lt_prog_compiler_static_GCJ='-static'
16524
16525     case $host_os in
16526       aix*)
16527       # All AIX code is PIC.
16528       if test "$host_cpu" = ia64; then
16529         # AIX 5 now supports IA64 processor
16530         lt_prog_compiler_static_GCJ='-Bstatic'
16531       fi
16532       ;;
16533
16534     amigaos*)
16535       # FIXME: we need at least 68020 code to build shared libraries, but
16536       # adding the `-m68020' flag to GCC prevents building anything better,
16537       # like `-m68040'.
16538       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16539       ;;
16540
16541     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16542       # PIC is the default for these OSes.
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     darwin* | rhapsody*)
16552       # PIC is the default on this platform
16553       # Common symbols not allowed in MH_DYLIB files
16554       lt_prog_compiler_pic_GCJ='-fno-common'
16555       ;;
16556
16557     interix3*)
16558       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16559       # Instead, we relocate shared libraries at runtime.
16560       ;;
16561
16562     msdosdjgpp*)
16563       # Just because we use GCC doesn't mean we suddenly get shared libraries
16564       # on systems that don't support them.
16565       lt_prog_compiler_can_build_shared_GCJ=no
16566       enable_shared=no
16567       ;;
16568
16569     sysv4*MP*)
16570       if test -d /usr/nec; then
16571         lt_prog_compiler_pic_GCJ=-Kconform_pic
16572       fi
16573       ;;
16574
16575     hpux*)
16576       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16577       # not for PA HP-UX.
16578       case $host_cpu in
16579       hppa*64*|ia64*)
16580         # +Z the default
16581         ;;
16582       *)
16583         lt_prog_compiler_pic_GCJ='-fPIC'
16584         ;;
16585       esac
16586       ;;
16587
16588     *)
16589       lt_prog_compiler_pic_GCJ='-fPIC'
16590       ;;
16591     esac
16592   else
16593     # PORTME Check for flag to pass linker flags through the system compiler.
16594     case $host_os in
16595     aix*)
16596       lt_prog_compiler_wl_GCJ='-Wl,'
16597       if test "$host_cpu" = ia64; then
16598         # AIX 5 now supports IA64 processor
16599         lt_prog_compiler_static_GCJ='-Bstatic'
16600       else
16601         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16602       fi
16603       ;;
16604       darwin*)
16605         # PIC is the default on this platform
16606         # Common symbols not allowed in MH_DYLIB files
16607        case $cc_basename in
16608          xlc*)
16609          lt_prog_compiler_pic_GCJ='-qnocommon'
16610          lt_prog_compiler_wl_GCJ='-Wl,'
16611          ;;
16612        esac
16613        ;;
16614
16615     mingw* | pw32* | os2*)
16616       # This hack is so that the source file can tell whether it is being
16617       # built for inclusion in a dll (and should export symbols for example).
16618       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16619       ;;
16620
16621     hpux9* | hpux10* | hpux11*)
16622       lt_prog_compiler_wl_GCJ='-Wl,'
16623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16624       # not for PA HP-UX.
16625       case $host_cpu in
16626       hppa*64*|ia64*)
16627         # +Z the default
16628         ;;
16629       *)
16630         lt_prog_compiler_pic_GCJ='+Z'
16631         ;;
16632       esac
16633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16634       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16635       ;;
16636
16637     irix5* | irix6* | nonstopux*)
16638       lt_prog_compiler_wl_GCJ='-Wl,'
16639       # PIC (with -KPIC) is the default.
16640       lt_prog_compiler_static_GCJ='-non_shared'
16641       ;;
16642
16643     newsos6)
16644       lt_prog_compiler_pic_GCJ='-KPIC'
16645       lt_prog_compiler_static_GCJ='-Bstatic'
16646       ;;
16647
16648     linux* | k*bsd*-gnu)
16649       case $cc_basename in
16650       icc* | ecc*)
16651         lt_prog_compiler_wl_GCJ='-Wl,'
16652         lt_prog_compiler_pic_GCJ='-KPIC'
16653         lt_prog_compiler_static_GCJ='-static'
16654         ;;
16655       pgcc* | pgf77* | pgf90* | pgf95*)
16656         # Portland Group compilers (*not* the Pentium gcc compiler,
16657         # which looks to be a dead project)
16658         lt_prog_compiler_wl_GCJ='-Wl,'
16659         lt_prog_compiler_pic_GCJ='-fpic'
16660         lt_prog_compiler_static_GCJ='-Bstatic'
16661         ;;
16662       ccc*)
16663         lt_prog_compiler_wl_GCJ='-Wl,'
16664         # All Alpha code is PIC.
16665         lt_prog_compiler_static_GCJ='-non_shared'
16666         ;;
16667       esac
16668       ;;
16669
16670     osf3* | osf4* | osf5*)
16671       lt_prog_compiler_wl_GCJ='-Wl,'
16672       # All OSF/1 code is PIC.
16673       lt_prog_compiler_static_GCJ='-non_shared'
16674       ;;
16675
16676     solaris*)
16677       lt_prog_compiler_pic_GCJ='-KPIC'
16678       lt_prog_compiler_static_GCJ='-Bstatic'
16679       case $cc_basename in
16680       f77* | f90* | f95*)
16681         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16682       *)
16683         lt_prog_compiler_wl_GCJ='-Wl,';;
16684       esac
16685       ;;
16686
16687     sunos4*)
16688       lt_prog_compiler_wl_GCJ='-Qoption ld '
16689       lt_prog_compiler_pic_GCJ='-PIC'
16690       lt_prog_compiler_static_GCJ='-Bstatic'
16691       ;;
16692
16693     sysv4 | sysv4.2uw2* | sysv4.3*)
16694       lt_prog_compiler_wl_GCJ='-Wl,'
16695       lt_prog_compiler_pic_GCJ='-KPIC'
16696       lt_prog_compiler_static_GCJ='-Bstatic'
16697       ;;
16698
16699     sysv4*MP*)
16700       if test -d /usr/nec ;then
16701         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16702         lt_prog_compiler_static_GCJ='-Bstatic'
16703       fi
16704       ;;
16705
16706     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16707       lt_prog_compiler_wl_GCJ='-Wl,'
16708       lt_prog_compiler_pic_GCJ='-KPIC'
16709       lt_prog_compiler_static_GCJ='-Bstatic'
16710       ;;
16711
16712     unicos*)
16713       lt_prog_compiler_wl_GCJ='-Wl,'
16714       lt_prog_compiler_can_build_shared_GCJ=no
16715       ;;
16716
16717     uts4*)
16718       lt_prog_compiler_pic_GCJ='-pic'
16719       lt_prog_compiler_static_GCJ='-Bstatic'
16720       ;;
16721
16722     *)
16723       lt_prog_compiler_can_build_shared_GCJ=no
16724       ;;
16725     esac
16726   fi
16727
16728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16730
16731 #
16732 # Check to make sure the PIC flag actually works.
16733 #
16734 if test -n "$lt_prog_compiler_pic_GCJ"; then
16735
16736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16738 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   lt_prog_compiler_pic_works_GCJ=no
16742   ac_outfile=conftest.$ac_objext
16743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16745    # Insert the option either (1) after the last *FLAGS variable, or
16746    # (2) before a word containing "conftest.", or (3) at the end.
16747    # Note that $ac_compile itself does not contain backslashes and begins
16748    # with a dollar sign (not a hyphen), so the echo should work correctly.
16749    # The option is referenced via a variable to avoid confusing sed.
16750    lt_compile=`echo "$ac_compile" | $SED \
16751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753    -e 's:$: $lt_compiler_flag:'`
16754    (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755    (eval "$lt_compile" 2>conftest.err)
16756    ac_status=$?
16757    cat conftest.err >&5
16758    echo "$as_me:16758: \$? = $ac_status" >&5
16759    if (exit $ac_status) && test -s "$ac_outfile"; then
16760      # The compiler can only warn and ignore the option if not recognized
16761      # So say no if there are warnings other than the usual output.
16762      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16765        lt_prog_compiler_pic_works_GCJ=yes
16766      fi
16767    fi
16768    $rm conftest*
16769
16770 fi
16771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16772 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16773
16774 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16775     case $lt_prog_compiler_pic_GCJ in
16776      "" | " "*) ;;
16777      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16778      esac
16779 else
16780     lt_prog_compiler_pic_GCJ=
16781      lt_prog_compiler_can_build_shared_GCJ=no
16782 fi
16783
16784 fi
16785 case $host_os in
16786   # For platforms which do not support PIC, -DPIC is meaningless:
16787   *djgpp*)
16788     lt_prog_compiler_pic_GCJ=
16789     ;;
16790   *)
16791     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16792     ;;
16793 esac
16794
16795 #
16796 # Check to make sure the static flag actually works.
16797 #
16798 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16799 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16800 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16801 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804   lt_prog_compiler_static_works_GCJ=no
16805    save_LDFLAGS="$LDFLAGS"
16806    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16807    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16808    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16809      # The linker can only warn and ignore the option if not recognized
16810      # So say no if there are warnings
16811      if test -s conftest.err; then
16812        # Append any errors to the config.log.
16813        cat conftest.err 1>&5
16814        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16815        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16816        if diff conftest.exp conftest.er2 >/dev/null; then
16817          lt_prog_compiler_static_works_GCJ=yes
16818        fi
16819      else
16820        lt_prog_compiler_static_works_GCJ=yes
16821      fi
16822    fi
16823    $rm conftest*
16824    LDFLAGS="$save_LDFLAGS"
16825
16826 fi
16827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16828 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16829
16830 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16831     :
16832 else
16833     lt_prog_compiler_static_GCJ=
16834 fi
16835
16836
16837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16839 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   lt_cv_prog_compiler_c_o_GCJ=no
16843    $rm -r conftest 2>/dev/null
16844    mkdir conftest
16845    cd conftest
16846    mkdir out
16847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16848
16849    lt_compiler_flag="-o out/conftest2.$ac_objext"
16850    # Insert the option either (1) after the last *FLAGS variable, or
16851    # (2) before a word containing "conftest.", or (3) at the end.
16852    # Note that $ac_compile itself does not contain backslashes and begins
16853    # with a dollar sign (not a hyphen), so the echo should work correctly.
16854    lt_compile=`echo "$ac_compile" | $SED \
16855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16857    -e 's:$: $lt_compiler_flag:'`
16858    (eval echo "\"\$as_me:16858: $lt_compile\"" >&5)
16859    (eval "$lt_compile" 2>out/conftest.err)
16860    ac_status=$?
16861    cat out/conftest.err >&5
16862    echo "$as_me:16862: \$? = $ac_status" >&5
16863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16864    then
16865      # The compiler can only warn and ignore the option if not recognized
16866      # So say no if there are warnings
16867      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16868      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16869      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16870        lt_cv_prog_compiler_c_o_GCJ=yes
16871      fi
16872    fi
16873    chmod u+w . 2>&5
16874    $rm conftest*
16875    # SGI C++ compiler will create directory out/ii_files/ for
16876    # template instantiation
16877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16878    $rm out/* && rmdir out
16879    cd ..
16880    rmdir conftest
16881    $rm conftest*
16882
16883 fi
16884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16886
16887
16888 hard_links="nottested"
16889 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16890   # do not overwrite the value of need_locks provided by the user
16891   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16893   hard_links=yes
16894   $rm conftest*
16895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16896   touch conftest.a
16897   ln conftest.a conftest.b 2>&5 || hard_links=no
16898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899   { echo "$as_me:$LINENO: result: $hard_links" >&5
16900 echo "${ECHO_T}$hard_links" >&6; }
16901   if test "$hard_links" = no; then
16902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16904     need_locks=warn
16905   fi
16906 else
16907   need_locks=no
16908 fi
16909
16910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16912
16913   runpath_var=
16914   allow_undefined_flag_GCJ=
16915   enable_shared_with_static_runtimes_GCJ=no
16916   archive_cmds_GCJ=
16917   archive_expsym_cmds_GCJ=
16918   old_archive_From_new_cmds_GCJ=
16919   old_archive_from_expsyms_cmds_GCJ=
16920   export_dynamic_flag_spec_GCJ=
16921   whole_archive_flag_spec_GCJ=
16922   thread_safe_flag_spec_GCJ=
16923   hardcode_libdir_flag_spec_GCJ=
16924   hardcode_libdir_flag_spec_ld_GCJ=
16925   hardcode_libdir_separator_GCJ=
16926   hardcode_direct_GCJ=no
16927   hardcode_minus_L_GCJ=no
16928   hardcode_shlibpath_var_GCJ=unsupported
16929   link_all_deplibs_GCJ=unknown
16930   hardcode_automatic_GCJ=no
16931   module_cmds_GCJ=
16932   module_expsym_cmds_GCJ=
16933   always_export_symbols_GCJ=no
16934   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16935   # include_expsyms should be a list of space-separated symbols to be *always*
16936   # included in the symbol list
16937   include_expsyms_GCJ=
16938   # exclude_expsyms can be an extended regexp of symbols to exclude
16939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16941   # as well as any symbol that contains `d'.
16942   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16944   # platforms (ab)use it in PIC code, but their linkers get confused if
16945   # the symbol is explicitly referenced.  Since portable code cannot
16946   # rely on this symbol name, it's probably fine to never include it in
16947   # preloaded symbol tables.
16948   extract_expsyms_cmds=
16949   # Just being paranoid about ensuring that cc_basename is set.
16950   for cc_temp in $compiler""; do
16951   case $cc_temp in
16952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16954     \-*) ;;
16955     *) break;;
16956   esac
16957 done
16958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16959
16960   case $host_os in
16961   cygwin* | mingw* | pw32*)
16962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16963     # When not using gcc, we currently assume that we are using
16964     # Microsoft Visual C++.
16965     if test "$GCC" != yes; then
16966       with_gnu_ld=no
16967     fi
16968     ;;
16969   interix*)
16970     # we just hope/assume this is gcc and not c89 (= MSVC++)
16971     with_gnu_ld=yes
16972     ;;
16973   openbsd*)
16974     with_gnu_ld=no
16975     ;;
16976   esac
16977
16978   ld_shlibs_GCJ=yes
16979   if test "$with_gnu_ld" = yes; then
16980     # If archive_cmds runs LD, not CC, wlarc should be empty
16981     wlarc='${wl}'
16982
16983     # Set some defaults for GNU ld with shared library support. These
16984     # are reset later if shared libraries are not supported. Putting them
16985     # here allows them to be overridden if necessary.
16986     runpath_var=LD_RUN_PATH
16987     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16988     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16989     # ancient GNU ld didn't support --whole-archive et. al.
16990     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16991         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16992       else
16993         whole_archive_flag_spec_GCJ=
16994     fi
16995     supports_anon_versioning=no
16996     case `$LD -v 2>/dev/null` in
16997       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16998       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16999       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17000       *\ 2.11.*) ;; # other 2.11 versions
17001       *) supports_anon_versioning=yes ;;
17002     esac
17003
17004     # See if GNU ld supports shared libraries.
17005     case $host_os in
17006     aix3* | aix4* | aix5*)
17007       # On AIX/PPC, the GNU linker is very broken
17008       if test "$host_cpu" != ia64; then
17009         ld_shlibs_GCJ=no
17010         cat <<EOF 1>&2
17011
17012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17013 *** to be unable to reliably create shared libraries on AIX.
17014 *** Therefore, libtool is disabling shared libraries support.  If you
17015 *** really care for shared libraries, you may want to modify your PATH
17016 *** so that a non-GNU linker is found, and then restart.
17017
17018 EOF
17019       fi
17020       ;;
17021
17022     amigaos*)
17023       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)'
17024       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025       hardcode_minus_L_GCJ=yes
17026
17027       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17028       # that the semantics of dynamic libraries on AmigaOS, at least up
17029       # to version 4, is to share data among multiple programs linked
17030       # with the same dynamic library.  Since this doesn't match the
17031       # behavior of shared libraries on other platforms, we can't use
17032       # them.
17033       ld_shlibs_GCJ=no
17034       ;;
17035
17036     beos*)
17037       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17038         allow_undefined_flag_GCJ=unsupported
17039         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17040         # support --undefined.  This deserves some investigation.  FIXME
17041         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17042       else
17043         ld_shlibs_GCJ=no
17044       fi
17045       ;;
17046
17047     cygwin* | mingw* | pw32*)
17048       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17049       # as there is no search path for DLLs.
17050       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17051       allow_undefined_flag_GCJ=unsupported
17052       always_export_symbols_GCJ=no
17053       enable_shared_with_static_runtimes_GCJ=yes
17054       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17055
17056       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17057         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17058         # If the export-symbols file already is a .def file (1st line
17059         # is EXPORTS), use it as is; otherwise, prepend...
17060         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17061           cp $export_symbols $output_objdir/$soname.def;
17062         else
17063           echo EXPORTS > $output_objdir/$soname.def;
17064           cat $export_symbols >> $output_objdir/$soname.def;
17065         fi~
17066         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17067       else
17068         ld_shlibs_GCJ=no
17069       fi
17070       ;;
17071
17072     interix3*)
17073       hardcode_direct_GCJ=no
17074       hardcode_shlibpath_var_GCJ=no
17075       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17076       export_dynamic_flag_spec_GCJ='${wl}-E'
17077       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17078       # Instead, shared libraries are loaded at an image base (0x10000000 by
17079       # default) and relocated if they conflict, which is a slow very memory
17080       # consuming and fragmenting process.  To avoid this, we pick a random,
17081       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17082       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17083       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'
17084       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'
17085       ;;
17086
17087     linux* | k*bsd*-gnu)
17088       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17089         tmp_addflag=
17090         case $cc_basename,$host_cpu in
17091         pgcc*)                          # Portland Group C compiler
17092           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'
17093           tmp_addflag=' $pic_flag'
17094           ;;
17095         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17096           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'
17097           tmp_addflag=' $pic_flag -Mnomain' ;;
17098         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17099           tmp_addflag=' -i_dynamic' ;;
17100         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17101           tmp_addflag=' -i_dynamic -nofor_main' ;;
17102         ifc* | ifort*)                  # Intel Fortran compiler
17103           tmp_addflag=' -nofor_main' ;;
17104         esac
17105         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17106
17107         if test $supports_anon_versioning = yes; then
17108           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17109   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17110   $echo "local: *; };" >> $output_objdir/$libname.ver~
17111           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17112         fi
17113         link_all_deplibs_GCJ=no
17114       else
17115         ld_shlibs_GCJ=no
17116       fi
17117       ;;
17118
17119     netbsd* | netbsdelf*-gnu)
17120       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17121         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17122         wlarc=
17123       else
17124         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17125         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17126       fi
17127       ;;
17128
17129     solaris*)
17130       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17131         ld_shlibs_GCJ=no
17132         cat <<EOF 1>&2
17133
17134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17135 *** create shared libraries on Solaris systems.  Therefore, libtool
17136 *** is disabling shared libraries support.  We urge you to upgrade GNU
17137 *** binutils to release 2.9.1 or newer.  Another option is to modify
17138 *** your PATH or compiler configuration so that the native linker is
17139 *** used, and then restart.
17140
17141 EOF
17142       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17143         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17144         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17145       else
17146         ld_shlibs_GCJ=no
17147       fi
17148       ;;
17149
17150     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17151       case `$LD -v 2>&1` in
17152         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17153         ld_shlibs_GCJ=no
17154         cat <<_LT_EOF 1>&2
17155
17156 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17157 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17158 *** is disabling shared libraries support.  We urge you to upgrade GNU
17159 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17160 *** your PATH or compiler configuration so that the native linker is
17161 *** used, and then restart.
17162
17163 _LT_EOF
17164         ;;
17165         *)
17166           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17167             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17168             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17169             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17170           else
17171             ld_shlibs_GCJ=no
17172           fi
17173         ;;
17174       esac
17175       ;;
17176
17177     sunos4*)
17178       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17179       wlarc=
17180       hardcode_direct_GCJ=yes
17181       hardcode_shlibpath_var_GCJ=no
17182       ;;
17183
17184     *)
17185       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17186         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17187         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17188       else
17189         ld_shlibs_GCJ=no
17190       fi
17191       ;;
17192     esac
17193
17194     if test "$ld_shlibs_GCJ" = no; then
17195       runpath_var=
17196       hardcode_libdir_flag_spec_GCJ=
17197       export_dynamic_flag_spec_GCJ=
17198       whole_archive_flag_spec_GCJ=
17199     fi
17200   else
17201     # PORTME fill in a description of your system's linker (not GNU ld)
17202     case $host_os in
17203     aix3*)
17204       allow_undefined_flag_GCJ=unsupported
17205       always_export_symbols_GCJ=yes
17206       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'
17207       # Note: this linker hardcodes the directories in LIBPATH if there
17208       # are no directories specified by -L.
17209       hardcode_minus_L_GCJ=yes
17210       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17211         # Neither direct hardcoding nor static linking is supported with a
17212         # broken collect2.
17213         hardcode_direct_GCJ=unsupported
17214       fi
17215       ;;
17216
17217     aix4* | aix5*)
17218       if test "$host_cpu" = ia64; then
17219         # On IA64, the linker does run time linking by default, so we don't
17220         # have to do anything special.
17221         aix_use_runtimelinking=no
17222         exp_sym_flag='-Bexport'
17223         no_entry_flag=""
17224       else
17225         # If we're using GNU nm, then we don't want the "-C" option.
17226         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17227         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17228           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'
17229         else
17230           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'
17231         fi
17232         aix_use_runtimelinking=no
17233
17234         # Test if we are trying to use run time linking or normal
17235         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17236         # need to do runtime linking.
17237         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17238           for ld_flag in $LDFLAGS; do
17239           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17240             aix_use_runtimelinking=yes
17241             break
17242           fi
17243           done
17244           ;;
17245         esac
17246
17247         exp_sym_flag='-bexport'
17248         no_entry_flag='-bnoentry'
17249       fi
17250
17251       # When large executables or shared objects are built, AIX ld can
17252       # have problems creating the table of contents.  If linking a library
17253       # or program results in "error TOC overflow" add -mminimal-toc to
17254       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17255       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17256
17257       archive_cmds_GCJ=''
17258       hardcode_direct_GCJ=yes
17259       hardcode_libdir_separator_GCJ=':'
17260       link_all_deplibs_GCJ=yes
17261
17262       if test "$GCC" = yes; then
17263         case $host_os in aix4.[012]|aix4.[012].*)
17264         # We only want to do this on AIX 4.2 and lower, the check
17265         # below for broken collect2 doesn't work under 4.3+
17266           collect2name=`${CC} -print-prog-name=collect2`
17267           if test -f "$collect2name" && \
17268            strings "$collect2name" | grep resolve_lib_name >/dev/null
17269           then
17270           # We have reworked collect2
17271           hardcode_direct_GCJ=yes
17272           else
17273           # We have old collect2
17274           hardcode_direct_GCJ=unsupported
17275           # It fails to find uninstalled libraries when the uninstalled
17276           # path is not listed in the libpath.  Setting hardcode_minus_L
17277           # to unsupported forces relinking
17278           hardcode_minus_L_GCJ=yes
17279           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280           hardcode_libdir_separator_GCJ=
17281           fi
17282           ;;
17283         esac
17284         shared_flag='-shared'
17285         if test "$aix_use_runtimelinking" = yes; then
17286           shared_flag="$shared_flag "'${wl}-G'
17287         fi
17288       else
17289         # not using gcc
17290         if test "$host_cpu" = ia64; then
17291         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17292         # chokes on -Wl,-G. The following line is correct:
17293           shared_flag='-G'
17294         else
17295           if test "$aix_use_runtimelinking" = yes; then
17296             shared_flag='${wl}-G'
17297           else
17298             shared_flag='${wl}-bM:SRE'
17299           fi
17300         fi
17301       fi
17302
17303       # It seems that -bexpall does not export symbols beginning with
17304       # underscore (_), so it is better to generate a list of symbols to export.
17305       always_export_symbols_GCJ=yes
17306       if test "$aix_use_runtimelinking" = yes; then
17307         # Warning - without using the other runtime loading flags (-brtl),
17308         # -berok will link without error, but may produce a broken library.
17309         allow_undefined_flag_GCJ='-berok'
17310        # Determine the default libpath from the value encoded in an empty executable.
17311        cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 int
17319 main ()
17320 {
17321
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_link") 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } && {
17340          test -z "$ac_c_werror_flag" ||
17341          test ! -s conftest.err
17342        } && test -s conftest$ac_exeext &&
17343        $as_test_x conftest$ac_exeext; then
17344
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17346 }'`
17347 # Check for a 64-bit object if we didn't find anything.
17348 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; }
17349 }'`; fi
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354
17355 fi
17356
17357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17358       conftest$ac_exeext conftest.$ac_ext
17359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17360
17361        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17362         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"
17363        else
17364         if test "$host_cpu" = ia64; then
17365           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17366           allow_undefined_flag_GCJ="-z nodefs"
17367           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"
17368         else
17369          # Determine the default libpath from the value encoded in an empty executable.
17370          cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376
17377 int
17378 main ()
17379 {
17380
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_link") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } && {
17399          test -z "$ac_c_werror_flag" ||
17400          test ! -s conftest.err
17401        } && test -s conftest$ac_exeext &&
17402        $as_test_x conftest$ac_exeext; then
17403
17404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17405 }'`
17406 # Check for a 64-bit object if we didn't find anything.
17407 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; }
17408 }'`; fi
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413
17414 fi
17415
17416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17417       conftest$ac_exeext conftest.$ac_ext
17418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17419
17420          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17421           # Warning - without using the other run time loading flags,
17422           # -berok will link without error, but may produce a broken library.
17423           no_undefined_flag_GCJ=' ${wl}-bernotok'
17424           allow_undefined_flag_GCJ=' ${wl}-berok'
17425           # Exported symbols can be pulled into shared objects from archives
17426           whole_archive_flag_spec_GCJ='$convenience'
17427           archive_cmds_need_lc_GCJ=yes
17428           # This is similar to how AIX traditionally builds its shared libraries.
17429           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'
17430         fi
17431       fi
17432       ;;
17433
17434     amigaos*)
17435       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)'
17436       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17437       hardcode_minus_L_GCJ=yes
17438       # see comment about different semantics on the GNU ld section
17439       ld_shlibs_GCJ=no
17440       ;;
17441
17442     bsdi[45]*)
17443       export_dynamic_flag_spec_GCJ=-rdynamic
17444       ;;
17445
17446     cygwin* | mingw* | pw32*)
17447       # When not using gcc, we currently assume that we are using
17448       # Microsoft Visual C++.
17449       # hardcode_libdir_flag_spec is actually meaningless, as there is
17450       # no search path for DLLs.
17451       hardcode_libdir_flag_spec_GCJ=' '
17452       allow_undefined_flag_GCJ=unsupported
17453       # Tell ltmain to make .lib files, not .a files.
17454       libext=lib
17455       # Tell ltmain to make .dll files, not .so files.
17456       shrext_cmds=".dll"
17457       # FIXME: Setting linknames here is a bad hack.
17458       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17459       # The linker will automatically build a .lib file if we build a DLL.
17460       old_archive_From_new_cmds_GCJ='true'
17461       # FIXME: Should let the user specify the lib program.
17462       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17463       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17464       enable_shared_with_static_runtimes_GCJ=yes
17465       ;;
17466
17467     darwin* | rhapsody*)
17468       case $host_os in
17469         rhapsody* | darwin1.[012])
17470          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17471          ;;
17472        *) # Darwin 1.3 on
17473          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17474            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17475          else
17476            case ${MACOSX_DEPLOYMENT_TARGET} in
17477              10.[012])
17478                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17479                ;;
17480              10.*)
17481                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17482                ;;
17483            esac
17484          fi
17485          ;;
17486       esac
17487       archive_cmds_need_lc_GCJ=no
17488       hardcode_direct_GCJ=no
17489       hardcode_automatic_GCJ=yes
17490       hardcode_shlibpath_var_GCJ=unsupported
17491       whole_archive_flag_spec_GCJ=''
17492       link_all_deplibs_GCJ=yes
17493     if test "$GCC" = yes ; then
17494         output_verbose_link_cmd='echo'
17495         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17496       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17497       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17498       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}'
17499       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}'
17500     else
17501       case $cc_basename in
17502         xlc*)
17503          output_verbose_link_cmd='echo'
17504          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17505          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17506           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17507          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}'
17508           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}'
17509           ;;
17510        *)
17511          ld_shlibs_GCJ=no
17512           ;;
17513       esac
17514     fi
17515       ;;
17516
17517     dgux*)
17518       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17519       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520       hardcode_shlibpath_var_GCJ=no
17521       ;;
17522
17523     freebsd1*)
17524       ld_shlibs_GCJ=no
17525       ;;
17526
17527     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17528     # support.  Future versions do this automatically, but an explicit c++rt0.o
17529     # does not break anything, and helps significantly (at the cost of a little
17530     # extra space).
17531     freebsd2.2*)
17532       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17533       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17534       hardcode_direct_GCJ=yes
17535       hardcode_shlibpath_var_GCJ=no
17536       ;;
17537
17538     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17539     freebsd2*)
17540       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17541       hardcode_direct_GCJ=yes
17542       hardcode_minus_L_GCJ=yes
17543       hardcode_shlibpath_var_GCJ=no
17544       ;;
17545
17546     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17547     freebsd* | dragonfly*)
17548       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17549       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17550       hardcode_direct_GCJ=yes
17551       hardcode_shlibpath_var_GCJ=no
17552       ;;
17553
17554     hpux9*)
17555       if test "$GCC" = yes; then
17556         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'
17557       else
17558         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'
17559       fi
17560       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17561       hardcode_libdir_separator_GCJ=:
17562       hardcode_direct_GCJ=yes
17563
17564       # hardcode_minus_L: Not really in the search PATH,
17565       # but as the default location of the library.
17566       hardcode_minus_L_GCJ=yes
17567       export_dynamic_flag_spec_GCJ='${wl}-E'
17568       ;;
17569
17570     hpux10*)
17571       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17572         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17573       else
17574         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17575       fi
17576       if test "$with_gnu_ld" = no; then
17577         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17578         hardcode_libdir_separator_GCJ=:
17579
17580         hardcode_direct_GCJ=yes
17581         export_dynamic_flag_spec_GCJ='${wl}-E'
17582
17583         # hardcode_minus_L: Not really in the search PATH,
17584         # but as the default location of the library.
17585         hardcode_minus_L_GCJ=yes
17586       fi
17587       ;;
17588
17589     hpux11*)
17590       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17591         case $host_cpu in
17592         hppa*64*)
17593           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17594           ;;
17595         ia64*)
17596           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17597           ;;
17598         *)
17599           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17600           ;;
17601         esac
17602       else
17603         case $host_cpu in
17604         hppa*64*)
17605           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17606           ;;
17607         ia64*)
17608           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17609           ;;
17610         *)
17611           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17612           ;;
17613         esac
17614       fi
17615       if test "$with_gnu_ld" = no; then
17616         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17617         hardcode_libdir_separator_GCJ=:
17618
17619         case $host_cpu in
17620         hppa*64*|ia64*)
17621           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17622           hardcode_direct_GCJ=no
17623           hardcode_shlibpath_var_GCJ=no
17624           ;;
17625         *)
17626           hardcode_direct_GCJ=yes
17627           export_dynamic_flag_spec_GCJ='${wl}-E'
17628
17629           # hardcode_minus_L: Not really in the search PATH,
17630           # but as the default location of the library.
17631           hardcode_minus_L_GCJ=yes
17632           ;;
17633         esac
17634       fi
17635       ;;
17636
17637     irix5* | irix6* | nonstopux*)
17638       if test "$GCC" = yes; then
17639         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'
17640       else
17641         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'
17642         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17643       fi
17644       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645       hardcode_libdir_separator_GCJ=:
17646       link_all_deplibs_GCJ=yes
17647       ;;
17648
17649     netbsd* | netbsdelf*-gnu)
17650       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17651         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17652       else
17653         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17654       fi
17655       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17656       hardcode_direct_GCJ=yes
17657       hardcode_shlibpath_var_GCJ=no
17658       ;;
17659
17660     newsos6)
17661       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17662       hardcode_direct_GCJ=yes
17663       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17664       hardcode_libdir_separator_GCJ=:
17665       hardcode_shlibpath_var_GCJ=no
17666       ;;
17667
17668     openbsd*)
17669       hardcode_direct_GCJ=yes
17670       hardcode_shlibpath_var_GCJ=no
17671       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17672         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17673         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17674         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17675         export_dynamic_flag_spec_GCJ='${wl}-E'
17676       else
17677        case $host_os in
17678          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17679            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17680            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17681            ;;
17682          *)
17683            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17684            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17685            ;;
17686        esac
17687       fi
17688       ;;
17689
17690     os2*)
17691       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692       hardcode_minus_L_GCJ=yes
17693       allow_undefined_flag_GCJ=unsupported
17694       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'
17695       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17696       ;;
17697
17698     osf3*)
17699       if test "$GCC" = yes; then
17700         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17701         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'
17702       else
17703         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17704         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'
17705       fi
17706       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17707       hardcode_libdir_separator_GCJ=:
17708       ;;
17709
17710     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17711       if test "$GCC" = yes; then
17712         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17713         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'
17714         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17715       else
17716         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17717         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'
17718         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~
17719         $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'
17720
17721         # Both c and cxx compiler support -rpath directly
17722         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17723       fi
17724       hardcode_libdir_separator_GCJ=:
17725       ;;
17726
17727     solaris*)
17728       no_undefined_flag_GCJ=' -z text'
17729       if test "$GCC" = yes; then
17730         wlarc='${wl}'
17731         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17733           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17734       else
17735         wlarc=''
17736         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17738         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17739       fi
17740       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17741       hardcode_shlibpath_var_GCJ=no
17742       case $host_os in
17743       solaris2.[0-5] | solaris2.[0-5].*) ;;
17744       *)
17745         # The compiler driver will combine linker options so we
17746         # cannot just pass the convience library names through
17747         # without $wl, iff we do not link with $LD.
17748         # Luckily, gcc supports the same syntax we need for Sun Studio.
17749         # Supported since Solaris 2.6 (maybe 2.5.1?)
17750         case $wlarc in
17751         '')
17752           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17753         *)
17754           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' ;;
17755         esac ;;
17756       esac
17757       link_all_deplibs_GCJ=yes
17758       ;;
17759
17760     sunos4*)
17761       if test "x$host_vendor" = xsequent; then
17762         # Use $CC to link under sequent, because it throws in some extra .o
17763         # files that make .init and .fini sections work.
17764         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17765       else
17766         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17767       fi
17768       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17769       hardcode_direct_GCJ=yes
17770       hardcode_minus_L_GCJ=yes
17771       hardcode_shlibpath_var_GCJ=no
17772       ;;
17773
17774     sysv4)
17775       case $host_vendor in
17776         sni)
17777           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778           hardcode_direct_GCJ=yes # is this really true???
17779         ;;
17780         siemens)
17781           ## LD is ld it makes a PLAMLIB
17782           ## CC just makes a GrossModule.
17783           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17784           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17785           hardcode_direct_GCJ=no
17786         ;;
17787         motorola)
17788           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17789           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17790         ;;
17791       esac
17792       runpath_var='LD_RUN_PATH'
17793       hardcode_shlibpath_var_GCJ=no
17794       ;;
17795
17796     sysv4.3*)
17797       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17798       hardcode_shlibpath_var_GCJ=no
17799       export_dynamic_flag_spec_GCJ='-Bexport'
17800       ;;
17801
17802     sysv4*MP*)
17803       if test -d /usr/nec; then
17804         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805         hardcode_shlibpath_var_GCJ=no
17806         runpath_var=LD_RUN_PATH
17807         hardcode_runpath_var=yes
17808         ld_shlibs_GCJ=yes
17809       fi
17810       ;;
17811
17812     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17813       no_undefined_flag_GCJ='${wl}-z,text'
17814       archive_cmds_need_lc_GCJ=no
17815       hardcode_shlibpath_var_GCJ=no
17816       runpath_var='LD_RUN_PATH'
17817
17818       if test "$GCC" = yes; then
17819         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17820         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17821       else
17822         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17823         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17824       fi
17825       ;;
17826
17827     sysv5* | sco3.2v5* | sco5v6*)
17828       # Note: We can NOT use -z defs as we might desire, because we do not
17829       # link with -lc, and that would cause any symbols used from libc to
17830       # always be unresolved, which means just about no library would
17831       # ever link correctly.  If we're not using GNU ld we use -z text
17832       # though, which does catch some bad symbols but isn't as heavy-handed
17833       # as -z defs.
17834       no_undefined_flag_GCJ='${wl}-z,text'
17835       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17836       archive_cmds_need_lc_GCJ=no
17837       hardcode_shlibpath_var_GCJ=no
17838       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17839       hardcode_libdir_separator_GCJ=':'
17840       link_all_deplibs_GCJ=yes
17841       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17842       runpath_var='LD_RUN_PATH'
17843
17844       if test "$GCC" = yes; then
17845         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17846         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17847       else
17848         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17849         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17850       fi
17851       ;;
17852
17853     uts4*)
17854       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17855       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17856       hardcode_shlibpath_var_GCJ=no
17857       ;;
17858
17859     *)
17860       ld_shlibs_GCJ=no
17861       ;;
17862     esac
17863   fi
17864
17865 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17866 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17867 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17868
17869 #
17870 # Do we need to explicitly link libc?
17871 #
17872 case "x$archive_cmds_need_lc_GCJ" in
17873 x|xyes)
17874   # Assume -lc should be added
17875   archive_cmds_need_lc_GCJ=yes
17876
17877   if test "$enable_shared" = yes && test "$GCC" = yes; then
17878     case $archive_cmds_GCJ in
17879     *'~'*)
17880       # FIXME: we may have to deal with multi-command sequences.
17881       ;;
17882     '$CC '*)
17883       # Test whether the compiler implicitly links with -lc since on some
17884       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17885       # to ld, don't add -lc before -lgcc.
17886       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17887 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17888       $rm conftest*
17889       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17890
17891       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892   (eval $ac_compile) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } 2>conftest.err; then
17896         soname=conftest
17897         lib=conftest
17898         libobjs=conftest.$ac_objext
17899         deplibs=
17900         wl=$lt_prog_compiler_wl_GCJ
17901         pic_flag=$lt_prog_compiler_pic_GCJ
17902         compiler_flags=-v
17903         linker_flags=-v
17904         verstring=
17905         output_objdir=.
17906         libname=conftest
17907         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17908         allow_undefined_flag_GCJ=
17909         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17910   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }
17914         then
17915           archive_cmds_need_lc_GCJ=no
17916         else
17917           archive_cmds_need_lc_GCJ=yes
17918         fi
17919         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17920       else
17921         cat conftest.err 1>&5
17922       fi
17923       $rm conftest*
17924       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17925 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17926       ;;
17927     esac
17928   fi
17929   ;;
17930 esac
17931
17932 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17933 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17934 library_names_spec=
17935 libname_spec='lib$name'
17936 soname_spec=
17937 shrext_cmds=".so"
17938 postinstall_cmds=
17939 postuninstall_cmds=
17940 finish_cmds=
17941 finish_eval=
17942 shlibpath_var=
17943 shlibpath_overrides_runpath=unknown
17944 version_type=none
17945 dynamic_linker="$host_os ld.so"
17946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17947 if test "$GCC" = yes; then
17948   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17949   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17950     # if the path contains ";" then we assume it to be the separator
17951     # otherwise default to the standard path separator (i.e. ":") - it is
17952     # assumed that no part of a normal pathname contains ";" but that should
17953     # okay in the real world where ";" in dirpaths is itself problematic.
17954     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17955   else
17956     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17957   fi
17958 else
17959   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17960 fi
17961 need_lib_prefix=unknown
17962 hardcode_into_libs=no
17963
17964 # when you set need_version to no, make sure it does not cause -set_version
17965 # flags to be left without arguments
17966 need_version=unknown
17967
17968 case $host_os in
17969 aix3*)
17970   version_type=linux
17971   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17972   shlibpath_var=LIBPATH
17973
17974   # AIX 3 has no versioning support, so we append a major version to the name.
17975   soname_spec='${libname}${release}${shared_ext}$major'
17976   ;;
17977
17978 aix4* | aix5*)
17979   version_type=linux
17980   need_lib_prefix=no
17981   need_version=no
17982   hardcode_into_libs=yes
17983   if test "$host_cpu" = ia64; then
17984     # AIX 5 supports IA64
17985     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17986     shlibpath_var=LD_LIBRARY_PATH
17987   else
17988     # With GCC up to 2.95.x, collect2 would create an import file
17989     # for dependence libraries.  The import file would start with
17990     # the line `#! .'.  This would cause the generated library to
17991     # depend on `.', always an invalid library.  This was fixed in
17992     # development snapshots of GCC prior to 3.0.
17993     case $host_os in
17994       aix4 | aix4.[01] | aix4.[01].*)
17995       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17996            echo ' yes '
17997            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17998         :
17999       else
18000         can_build_shared=no
18001       fi
18002       ;;
18003     esac
18004     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18005     # soname into executable. Probably we can add versioning support to
18006     # collect2, so additional links can be useful in future.
18007     if test "$aix_use_runtimelinking" = yes; then
18008       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18009       # instead of lib<name>.a to let people know that these are not
18010       # typical AIX shared libraries.
18011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012     else
18013       # We preserve .a as extension for shared libraries through AIX4.2
18014       # and later when we are not doing run time linking.
18015       library_names_spec='${libname}${release}.a $libname.a'
18016       soname_spec='${libname}${release}${shared_ext}$major'
18017     fi
18018     shlibpath_var=LIBPATH
18019   fi
18020   ;;
18021
18022 amigaos*)
18023   library_names_spec='$libname.ixlibrary $libname.a'
18024   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18025   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'
18026   ;;
18027
18028 beos*)
18029   library_names_spec='${libname}${shared_ext}'
18030   dynamic_linker="$host_os ld.so"
18031   shlibpath_var=LIBRARY_PATH
18032   ;;
18033
18034 bsdi[45]*)
18035   version_type=linux
18036   need_version=no
18037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038   soname_spec='${libname}${release}${shared_ext}$major'
18039   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18040   shlibpath_var=LD_LIBRARY_PATH
18041   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18042   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18043   # the default ld.so.conf also contains /usr/contrib/lib and
18044   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18045   # libtool to hard-code these into programs
18046   ;;
18047
18048 cygwin* | mingw* | pw32*)
18049   version_type=windows
18050   shrext_cmds=".dll"
18051   need_version=no
18052   need_lib_prefix=no
18053
18054   case $GCC,$host_os in
18055   yes,cygwin* | yes,mingw* | yes,pw32*)
18056     library_names_spec='$libname.dll.a'
18057     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18058     postinstall_cmds='base_file=`basename \${file}`~
18059       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18060       dldir=$destdir/`dirname \$dlpath`~
18061       test -d \$dldir || mkdir -p \$dldir~
18062       $install_prog $dir/$dlname \$dldir/$dlname~
18063       chmod a+x \$dldir/$dlname'
18064     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18065       dlpath=$dir/\$dldll~
18066        $rm \$dlpath'
18067     shlibpath_overrides_runpath=yes
18068
18069     case $host_os in
18070     cygwin*)
18071       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18072       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18073       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18074       ;;
18075     mingw*)
18076       # MinGW DLLs use traditional 'lib' prefix
18077       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18078       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18079       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18080         # It is most probably a Windows format PATH printed by
18081         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18082         # path with ; separators, and with drive letters. We can handle the
18083         # drive letters (cygwin fileutils understands them), so leave them,
18084         # especially as we might pass files found there to a mingw objdump,
18085         # which wouldn't understand a cygwinified path. Ahh.
18086         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18087       else
18088         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18089       fi
18090       ;;
18091     pw32*)
18092       # pw32 DLLs use 'pw' prefix rather than 'lib'
18093       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18094       ;;
18095     esac
18096     ;;
18097
18098   *)
18099     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18100     ;;
18101   esac
18102   dynamic_linker='Win32 ld.exe'
18103   # FIXME: first we should search . and the directory the executable is in
18104   shlibpath_var=PATH
18105   ;;
18106
18107 darwin* | rhapsody*)
18108   dynamic_linker="$host_os dyld"
18109   version_type=darwin
18110   need_lib_prefix=no
18111   need_version=no
18112   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18113   soname_spec='${libname}${release}${major}$shared_ext'
18114   shlibpath_overrides_runpath=yes
18115   shlibpath_var=DYLD_LIBRARY_PATH
18116   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18117   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18118   if test "$GCC" = yes; then
18119     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"`
18120   else
18121     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18122   fi
18123   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18124   ;;
18125
18126 dgux*)
18127   version_type=linux
18128   need_lib_prefix=no
18129   need_version=no
18130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18131   soname_spec='${libname}${release}${shared_ext}$major'
18132   shlibpath_var=LD_LIBRARY_PATH
18133   ;;
18134
18135 freebsd1*)
18136   dynamic_linker=no
18137   ;;
18138
18139 freebsd* | dragonfly*)
18140   # DragonFly does not have aout.  When/if they implement a new
18141   # versioning mechanism, adjust this.
18142   if test -x /usr/bin/objformat; then
18143     objformat=`/usr/bin/objformat`
18144   else
18145     case $host_os in
18146     freebsd[123]*) objformat=aout ;;
18147     *) objformat=elf ;;
18148     esac
18149   fi
18150   version_type=freebsd-$objformat
18151   case $version_type in
18152     freebsd-elf*)
18153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18154       need_version=no
18155       need_lib_prefix=no
18156       ;;
18157     freebsd-*)
18158       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18159       need_version=yes
18160       ;;
18161   esac
18162   shlibpath_var=LD_LIBRARY_PATH
18163   case $host_os in
18164   freebsd2*)
18165     shlibpath_overrides_runpath=yes
18166     ;;
18167   freebsd3.[01]* | freebsdelf3.[01]*)
18168     shlibpath_overrides_runpath=yes
18169     hardcode_into_libs=yes
18170     ;;
18171   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18172   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18173     shlibpath_overrides_runpath=no
18174     hardcode_into_libs=yes
18175     ;;
18176   freebsd*) # from 4.6 on
18177     shlibpath_overrides_runpath=yes
18178     hardcode_into_libs=yes
18179     ;;
18180   esac
18181   ;;
18182
18183 gnu*)
18184   version_type=linux
18185   need_lib_prefix=no
18186   need_version=no
18187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18188   soname_spec='${libname}${release}${shared_ext}$major'
18189   shlibpath_var=LD_LIBRARY_PATH
18190   hardcode_into_libs=yes
18191   ;;
18192
18193 hpux9* | hpux10* | hpux11*)
18194   # Give a soname corresponding to the major version so that dld.sl refuses to
18195   # link against other versions.
18196   version_type=sunos
18197   need_lib_prefix=no
18198   need_version=no
18199   case $host_cpu in
18200   ia64*)
18201     shrext_cmds='.so'
18202     hardcode_into_libs=yes
18203     dynamic_linker="$host_os dld.so"
18204     shlibpath_var=LD_LIBRARY_PATH
18205     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207     soname_spec='${libname}${release}${shared_ext}$major'
18208     if test "X$HPUX_IA64_MODE" = X32; then
18209       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18210     else
18211       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18212     fi
18213     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18214     ;;
18215    hppa*64*)
18216      shrext_cmds='.sl'
18217      hardcode_into_libs=yes
18218      dynamic_linker="$host_os dld.sl"
18219      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18220      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18221      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222      soname_spec='${libname}${release}${shared_ext}$major'
18223      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18224      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18225      ;;
18226    *)
18227     shrext_cmds='.sl'
18228     dynamic_linker="$host_os dld.sl"
18229     shlibpath_var=SHLIB_PATH
18230     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232     soname_spec='${libname}${release}${shared_ext}$major'
18233     ;;
18234   esac
18235   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18236   postinstall_cmds='chmod 555 $lib'
18237   ;;
18238
18239 interix3*)
18240   version_type=linux
18241   need_lib_prefix=no
18242   need_version=no
18243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18244   soname_spec='${libname}${release}${shared_ext}$major'
18245   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18246   shlibpath_var=LD_LIBRARY_PATH
18247   shlibpath_overrides_runpath=no
18248   hardcode_into_libs=yes
18249   ;;
18250
18251 irix5* | irix6* | nonstopux*)
18252   case $host_os in
18253     nonstopux*) version_type=nonstopux ;;
18254     *)
18255         if test "$lt_cv_prog_gnu_ld" = yes; then
18256                 version_type=linux
18257         else
18258                 version_type=irix
18259         fi ;;
18260   esac
18261   need_lib_prefix=no
18262   need_version=no
18263   soname_spec='${libname}${release}${shared_ext}$major'
18264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18265   case $host_os in
18266   irix5* | nonstopux*)
18267     libsuff= shlibsuff=
18268     ;;
18269   *)
18270     case $LD in # libtool.m4 will add one of these switches to LD
18271     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18272       libsuff= shlibsuff= libmagic=32-bit;;
18273     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18274       libsuff=32 shlibsuff=N32 libmagic=N32;;
18275     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18276       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18277     *) libsuff= shlibsuff= libmagic=never-match;;
18278     esac
18279     ;;
18280   esac
18281   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18282   shlibpath_overrides_runpath=no
18283   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18284   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18285   hardcode_into_libs=yes
18286   ;;
18287
18288 # No shared lib support for Linux oldld, aout, or coff.
18289 linux*oldld* | linux*aout* | linux*coff*)
18290   dynamic_linker=no
18291   ;;
18292
18293 # This must be Linux ELF.
18294 linux* | k*bsd*-gnu)
18295   version_type=linux
18296   need_lib_prefix=no
18297   need_version=no
18298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299   soname_spec='${libname}${release}${shared_ext}$major'
18300   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18301   shlibpath_var=LD_LIBRARY_PATH
18302   shlibpath_overrides_runpath=no
18303   # This implies no fast_install, which is unacceptable.
18304   # Some rework will be needed to allow for fast_install
18305   # before this can be enabled.
18306   hardcode_into_libs=yes
18307
18308   # Append ld.so.conf contents to the search path
18309   if test -f /etc/ld.so.conf; then
18310     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' ' '`
18311     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18312   fi
18313
18314   # We used to test for /lib/ld.so.1 and disable shared libraries on
18315   # powerpc, because MkLinux only supported shared libraries with the
18316   # GNU dynamic linker.  Since this was broken with cross compilers,
18317   # most powerpc-linux boxes support dynamic linking these days and
18318   # people can always --disable-shared, the test was removed, and we
18319   # assume the GNU/Linux dynamic linker is in use.
18320   dynamic_linker='GNU/Linux ld.so'
18321   ;;
18322
18323 netbsdelf*-gnu)
18324   version_type=linux
18325   need_lib_prefix=no
18326   need_version=no
18327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18328   soname_spec='${libname}${release}${shared_ext}$major'
18329   shlibpath_var=LD_LIBRARY_PATH
18330   shlibpath_overrides_runpath=no
18331   hardcode_into_libs=yes
18332   dynamic_linker='NetBSD ld.elf_so'
18333   ;;
18334
18335 netbsd*)
18336   version_type=sunos
18337   need_lib_prefix=no
18338   need_version=no
18339   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18341     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18342     dynamic_linker='NetBSD (a.out) ld.so'
18343   else
18344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18345     soname_spec='${libname}${release}${shared_ext}$major'
18346     dynamic_linker='NetBSD ld.elf_so'
18347   fi
18348   shlibpath_var=LD_LIBRARY_PATH
18349   shlibpath_overrides_runpath=yes
18350   hardcode_into_libs=yes
18351   ;;
18352
18353 newsos6)
18354   version_type=linux
18355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356   shlibpath_var=LD_LIBRARY_PATH
18357   shlibpath_overrides_runpath=yes
18358   ;;
18359
18360 nto-qnx*)
18361   version_type=linux
18362   need_lib_prefix=no
18363   need_version=no
18364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365   soname_spec='${libname}${release}${shared_ext}$major'
18366   shlibpath_var=LD_LIBRARY_PATH
18367   shlibpath_overrides_runpath=yes
18368   ;;
18369
18370 openbsd*)
18371   version_type=sunos
18372   sys_lib_dlsearch_path_spec="/usr/lib"
18373   need_lib_prefix=no
18374   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18375   case $host_os in
18376     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18377     *)                         need_version=no  ;;
18378   esac
18379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18380   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18381   shlibpath_var=LD_LIBRARY_PATH
18382   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18383     case $host_os in
18384       openbsd2.[89] | openbsd2.[89].*)
18385         shlibpath_overrides_runpath=no
18386         ;;
18387       *)
18388         shlibpath_overrides_runpath=yes
18389         ;;
18390       esac
18391   else
18392     shlibpath_overrides_runpath=yes
18393   fi
18394   ;;
18395
18396 os2*)
18397   libname_spec='$name'
18398   shrext_cmds=".dll"
18399   need_lib_prefix=no
18400   library_names_spec='$libname${shared_ext} $libname.a'
18401   dynamic_linker='OS/2 ld.exe'
18402   shlibpath_var=LIBPATH
18403   ;;
18404
18405 osf3* | osf4* | osf5*)
18406   version_type=osf
18407   need_lib_prefix=no
18408   need_version=no
18409   soname_spec='${libname}${release}${shared_ext}$major'
18410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411   shlibpath_var=LD_LIBRARY_PATH
18412   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18413   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18414   ;;
18415
18416 solaris*)
18417   version_type=linux
18418   need_lib_prefix=no
18419   need_version=no
18420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421   soname_spec='${libname}${release}${shared_ext}$major'
18422   shlibpath_var=LD_LIBRARY_PATH
18423   shlibpath_overrides_runpath=yes
18424   hardcode_into_libs=yes
18425   # ldd complains unless libraries are executable
18426   postinstall_cmds='chmod +x $lib'
18427   ;;
18428
18429 sunos4*)
18430   version_type=sunos
18431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18432   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18433   shlibpath_var=LD_LIBRARY_PATH
18434   shlibpath_overrides_runpath=yes
18435   if test "$with_gnu_ld" = yes; then
18436     need_lib_prefix=no
18437   fi
18438   need_version=yes
18439   ;;
18440
18441 sysv4 | sysv4.3*)
18442   version_type=linux
18443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444   soname_spec='${libname}${release}${shared_ext}$major'
18445   shlibpath_var=LD_LIBRARY_PATH
18446   case $host_vendor in
18447     sni)
18448       shlibpath_overrides_runpath=no
18449       need_lib_prefix=no
18450       export_dynamic_flag_spec='${wl}-Blargedynsym'
18451       runpath_var=LD_RUN_PATH
18452       ;;
18453     siemens)
18454       need_lib_prefix=no
18455       ;;
18456     motorola)
18457       need_lib_prefix=no
18458       need_version=no
18459       shlibpath_overrides_runpath=no
18460       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18461       ;;
18462   esac
18463   ;;
18464
18465 sysv4*MP*)
18466   if test -d /usr/nec ;then
18467     version_type=linux
18468     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18469     soname_spec='$libname${shared_ext}.$major'
18470     shlibpath_var=LD_LIBRARY_PATH
18471   fi
18472   ;;
18473
18474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18475   version_type=freebsd-elf
18476   need_lib_prefix=no
18477   need_version=no
18478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18479   soname_spec='${libname}${release}${shared_ext}$major'
18480   shlibpath_var=LD_LIBRARY_PATH
18481   hardcode_into_libs=yes
18482   if test "$with_gnu_ld" = yes; then
18483     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18484     shlibpath_overrides_runpath=no
18485   else
18486     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18487     shlibpath_overrides_runpath=yes
18488     case $host_os in
18489       sco3.2v5*)
18490         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18491         ;;
18492     esac
18493   fi
18494   sys_lib_dlsearch_path_spec='/usr/lib'
18495   ;;
18496
18497 uts4*)
18498   version_type=linux
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500   soname_spec='${libname}${release}${shared_ext}$major'
18501   shlibpath_var=LD_LIBRARY_PATH
18502   ;;
18503
18504 *)
18505   dynamic_linker=no
18506   ;;
18507 esac
18508 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18509 echo "${ECHO_T}$dynamic_linker" >&6; }
18510 test "$dynamic_linker" = no && can_build_shared=no
18511
18512 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18513 if test "$GCC" = yes; then
18514   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18515 fi
18516
18517 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18518 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18519 hardcode_action_GCJ=
18520 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18521    test -n "$runpath_var_GCJ" || \
18522    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18523
18524   # We can hardcode non-existant directories.
18525   if test "$hardcode_direct_GCJ" != no &&
18526      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18527      # have to relink, otherwise we might link with an installed library
18528      # when we should be linking with a yet-to-be-installed one
18529      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18530      test "$hardcode_minus_L_GCJ" != no; then
18531     # Linking always hardcodes the temporary library directory.
18532     hardcode_action_GCJ=relink
18533   else
18534     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18535     hardcode_action_GCJ=immediate
18536   fi
18537 else
18538   # We cannot hardcode anything, or else we can only hardcode existing
18539   # directories.
18540   hardcode_action_GCJ=unsupported
18541 fi
18542 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18543 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18544
18545 if test "$hardcode_action_GCJ" = relink; then
18546   # Fast installation is not supported
18547   enable_fast_install=no
18548 elif test "$shlibpath_overrides_runpath" = yes ||
18549      test "$enable_shared" = no; then
18550   # Fast installation is not necessary
18551   enable_fast_install=needless
18552 fi
18553
18554
18555 # The else clause should only fire when bootstrapping the
18556 # libtool distribution, otherwise you forgot to ship ltmain.sh
18557 # with your package, and you will get complaints that there are
18558 # no rules to generate ltmain.sh.
18559 if test -f "$ltmain"; then
18560   # See if we are running on zsh, and set the options which allow our commands through
18561   # without removal of \ escapes.
18562   if test -n "${ZSH_VERSION+set}" ; then
18563     setopt NO_GLOB_SUBST
18564   fi
18565   # Now quote all the things that may contain metacharacters while being
18566   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18567   # variables and quote the copies for generation of the libtool script.
18568   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18569     SED SHELL STRIP \
18570     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18571     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18572     deplibs_check_method reload_flag reload_cmds need_locks \
18573     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18574     lt_cv_sys_global_symbol_to_c_name_address \
18575     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18576     old_postinstall_cmds old_postuninstall_cmds \
18577     compiler_GCJ \
18578     CC_GCJ \
18579     LD_GCJ \
18580     lt_prog_compiler_wl_GCJ \
18581     lt_prog_compiler_pic_GCJ \
18582     lt_prog_compiler_static_GCJ \
18583     lt_prog_compiler_no_builtin_flag_GCJ \
18584     export_dynamic_flag_spec_GCJ \
18585     thread_safe_flag_spec_GCJ \
18586     whole_archive_flag_spec_GCJ \
18587     enable_shared_with_static_runtimes_GCJ \
18588     old_archive_cmds_GCJ \
18589     old_archive_from_new_cmds_GCJ \
18590     predep_objects_GCJ \
18591     postdep_objects_GCJ \
18592     predeps_GCJ \
18593     postdeps_GCJ \
18594     compiler_lib_search_path_GCJ \
18595     archive_cmds_GCJ \
18596     archive_expsym_cmds_GCJ \
18597     postinstall_cmds_GCJ \
18598     postuninstall_cmds_GCJ \
18599     old_archive_from_expsyms_cmds_GCJ \
18600     allow_undefined_flag_GCJ \
18601     no_undefined_flag_GCJ \
18602     export_symbols_cmds_GCJ \
18603     hardcode_libdir_flag_spec_GCJ \
18604     hardcode_libdir_flag_spec_ld_GCJ \
18605     hardcode_libdir_separator_GCJ \
18606     hardcode_automatic_GCJ \
18607     module_cmds_GCJ \
18608     module_expsym_cmds_GCJ \
18609     lt_cv_prog_compiler_c_o_GCJ \
18610     exclude_expsyms_GCJ \
18611     include_expsyms_GCJ; do
18612
18613     case $var in
18614     old_archive_cmds_GCJ | \
18615     old_archive_from_new_cmds_GCJ | \
18616     archive_cmds_GCJ | \
18617     archive_expsym_cmds_GCJ | \
18618     module_cmds_GCJ | \
18619     module_expsym_cmds_GCJ | \
18620     old_archive_from_expsyms_cmds_GCJ | \
18621     export_symbols_cmds_GCJ | \
18622     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18623     postinstall_cmds | postuninstall_cmds | \
18624     old_postinstall_cmds | old_postuninstall_cmds | \
18625     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18626       # Double-quote double-evaled strings.
18627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18628       ;;
18629     *)
18630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18631       ;;
18632     esac
18633   done
18634
18635   case $lt_echo in
18636   *'\$0 --fallback-echo"')
18637     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18638     ;;
18639   esac
18640
18641 cfgfile="$ofile"
18642
18643   cat <<__EOF__ >> "$cfgfile"
18644 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18645
18646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18647
18648 # Shell to use when invoking shell scripts.
18649 SHELL=$lt_SHELL
18650
18651 # Whether or not to build shared libraries.
18652 build_libtool_libs=$enable_shared
18653
18654 # Whether or not to build static libraries.
18655 build_old_libs=$enable_static
18656
18657 # Whether or not to add -lc for building shared libraries.
18658 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18659
18660 # Whether or not to disallow shared libs when runtime libs are static
18661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18662
18663 # Whether or not to optimize for fast installation.
18664 fast_install=$enable_fast_install
18665
18666 # The host system.
18667 host_alias=$host_alias
18668 host=$host
18669 host_os=$host_os
18670
18671 # The build system.
18672 build_alias=$build_alias
18673 build=$build
18674 build_os=$build_os
18675
18676 # An echo program that does not interpret backslashes.
18677 echo=$lt_echo
18678
18679 # The archiver.
18680 AR=$lt_AR
18681 AR_FLAGS=$lt_AR_FLAGS
18682
18683 # A C compiler.
18684 LTCC=$lt_LTCC
18685
18686 # LTCC compiler flags.
18687 LTCFLAGS=$lt_LTCFLAGS
18688
18689 # A language-specific compiler.
18690 CC=$lt_compiler_GCJ
18691
18692 # Is the compiler the GNU C compiler?
18693 with_gcc=$GCC_GCJ
18694
18695 # An ERE matcher.
18696 EGREP=$lt_EGREP
18697
18698 # The linker used to build libraries.
18699 LD=$lt_LD_GCJ
18700
18701 # Whether we need hard or soft links.
18702 LN_S=$lt_LN_S
18703
18704 # A BSD-compatible nm program.
18705 NM=$lt_NM
18706
18707 # A symbol stripping program
18708 STRIP=$lt_STRIP
18709
18710 # Used to examine libraries when file_magic_cmd begins "file"
18711 MAGIC_CMD=$MAGIC_CMD
18712
18713 # Used on cygwin: DLL creation program.
18714 DLLTOOL="$DLLTOOL"
18715
18716 # Used on cygwin: object dumper.
18717 OBJDUMP="$OBJDUMP"
18718
18719 # Used on cygwin: assembler.
18720 AS="$AS"
18721
18722 # The name of the directory that contains temporary libtool files.
18723 objdir=$objdir
18724
18725 # How to create reloadable object files.
18726 reload_flag=$lt_reload_flag
18727 reload_cmds=$lt_reload_cmds
18728
18729 # How to pass a linker flag through the compiler.
18730 wl=$lt_lt_prog_compiler_wl_GCJ
18731
18732 # Object file suffix (normally "o").
18733 objext="$ac_objext"
18734
18735 # Old archive suffix (normally "a").
18736 libext="$libext"
18737
18738 # Shared library suffix (normally ".so").
18739 shrext_cmds='$shrext_cmds'
18740
18741 # Executable file suffix (normally "").
18742 exeext="$exeext"
18743
18744 # Additional compiler flags for building library objects.
18745 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18746 pic_mode=$pic_mode
18747
18748 # What is the maximum length of a command?
18749 max_cmd_len=$lt_cv_sys_max_cmd_len
18750
18751 # Does compiler simultaneously support -c and -o options?
18752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18753
18754 # Must we lock files when doing compilation?
18755 need_locks=$lt_need_locks
18756
18757 # Do we need the lib prefix for modules?
18758 need_lib_prefix=$need_lib_prefix
18759
18760 # Do we need a version for libraries?
18761 need_version=$need_version
18762
18763 # Whether dlopen is supported.
18764 dlopen_support=$enable_dlopen
18765
18766 # Whether dlopen of programs is supported.
18767 dlopen_self=$enable_dlopen_self
18768
18769 # Whether dlopen of statically linked programs is supported.
18770 dlopen_self_static=$enable_dlopen_self_static
18771
18772 # Compiler flag to prevent dynamic linking.
18773 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18774
18775 # Compiler flag to turn off builtin functions.
18776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18777
18778 # Compiler flag to allow reflexive dlopens.
18779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18780
18781 # Compiler flag to generate shared objects directly from archives.
18782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18783
18784 # Compiler flag to generate thread-safe objects.
18785 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18786
18787 # Library versioning type.
18788 version_type=$version_type
18789
18790 # Format of library name prefix.
18791 libname_spec=$lt_libname_spec
18792
18793 # List of archive names.  First name is the real one, the rest are links.
18794 # The last name is the one that the linker finds with -lNAME.
18795 library_names_spec=$lt_library_names_spec
18796
18797 # The coded name of the library, if different from the real name.
18798 soname_spec=$lt_soname_spec
18799
18800 # Commands used to build and install an old-style archive.
18801 RANLIB=$lt_RANLIB
18802 old_archive_cmds=$lt_old_archive_cmds_GCJ
18803 old_postinstall_cmds=$lt_old_postinstall_cmds
18804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18805
18806 # Create an old-style archive from a shared archive.
18807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18808
18809 # Create a temporary old-style archive to link instead of a shared archive.
18810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18811
18812 # Commands used to build and install a shared archive.
18813 archive_cmds=$lt_archive_cmds_GCJ
18814 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18815 postinstall_cmds=$lt_postinstall_cmds
18816 postuninstall_cmds=$lt_postuninstall_cmds
18817
18818 # Commands used to build a loadable module (assumed same as above if empty)
18819 module_cmds=$lt_module_cmds_GCJ
18820 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18821
18822 # Commands to strip libraries.
18823 old_striplib=$lt_old_striplib
18824 striplib=$lt_striplib
18825
18826 # Dependencies to place before the objects being linked to create a
18827 # shared library.
18828 predep_objects=$lt_predep_objects_GCJ
18829
18830 # Dependencies to place after the objects being linked to create a
18831 # shared library.
18832 postdep_objects=$lt_postdep_objects_GCJ
18833
18834 # Dependencies to place before the objects being linked to create a
18835 # shared library.
18836 predeps=$lt_predeps_GCJ
18837
18838 # Dependencies to place after the objects being linked to create a
18839 # shared library.
18840 postdeps=$lt_postdeps_GCJ
18841
18842 # The library search path used internally by the compiler when linking
18843 # a shared library.
18844 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18845
18846 # Method to check whether dependent libraries are shared objects.
18847 deplibs_check_method=$lt_deplibs_check_method
18848
18849 # Command to use when deplibs_check_method == file_magic.
18850 file_magic_cmd=$lt_file_magic_cmd
18851
18852 # Flag that allows shared libraries with undefined symbols to be built.
18853 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18854
18855 # Flag that forces no undefined symbols.
18856 no_undefined_flag=$lt_no_undefined_flag_GCJ
18857
18858 # Commands used to finish a libtool library installation in a directory.
18859 finish_cmds=$lt_finish_cmds
18860
18861 # Same as above, but a single script fragment to be evaled but not shown.
18862 finish_eval=$lt_finish_eval
18863
18864 # Take the output of nm and produce a listing of raw symbols and C names.
18865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18866
18867 # Transform the output of nm in a proper C declaration
18868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18869
18870 # Transform the output of nm in a C name address pair
18871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18872
18873 # This is the shared library runtime path variable.
18874 runpath_var=$runpath_var
18875
18876 # This is the shared library path variable.
18877 shlibpath_var=$shlibpath_var
18878
18879 # Is shlibpath searched before the hard-coded library search path?
18880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18881
18882 # How to hardcode a shared library path into an executable.
18883 hardcode_action=$hardcode_action_GCJ
18884
18885 # Whether we should hardcode library paths into libraries.
18886 hardcode_into_libs=$hardcode_into_libs
18887
18888 # Flag to hardcode \$libdir into a binary during linking.
18889 # This must work even if \$libdir does not exist.
18890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18891
18892 # If ld is used when linking, flag to hardcode \$libdir into
18893 # a binary during linking. This must work even if \$libdir does
18894 # not exist.
18895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18896
18897 # Whether we need a single -rpath flag with a separated argument.
18898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18899
18900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18901 # resulting binary.
18902 hardcode_direct=$hardcode_direct_GCJ
18903
18904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18905 # resulting binary.
18906 hardcode_minus_L=$hardcode_minus_L_GCJ
18907
18908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18909 # the resulting binary.
18910 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18911
18912 # Set to yes if building a shared library automatically hardcodes DIR into the library
18913 # and all subsequent libraries and executables linked against it.
18914 hardcode_automatic=$hardcode_automatic_GCJ
18915
18916 # Variables whose values should be saved in libtool wrapper scripts and
18917 # restored at relink time.
18918 variables_saved_for_relink="$variables_saved_for_relink"
18919
18920 # Whether libtool must link a program against all its dependency libraries.
18921 link_all_deplibs=$link_all_deplibs_GCJ
18922
18923 # Compile-time system search path for libraries
18924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18925
18926 # Run-time system search path for libraries
18927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18928
18929 # Fix the shell variable \$srcfile for the compiler.
18930 fix_srcfile_path="$fix_srcfile_path_GCJ"
18931
18932 # Set to yes if exported symbols are required.
18933 always_export_symbols=$always_export_symbols_GCJ
18934
18935 # The commands to list exported symbols.
18936 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18937
18938 # The commands to extract the exported symbol list from a shared archive.
18939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18940
18941 # Symbols that should not be listed in the preloaded symbols.
18942 exclude_expsyms=$lt_exclude_expsyms_GCJ
18943
18944 # Symbols that must always be exported.
18945 include_expsyms=$lt_include_expsyms_GCJ
18946
18947 # ### END LIBTOOL TAG CONFIG: $tagname
18948
18949 __EOF__
18950
18951
18952 else
18953   # If there is no Makefile yet, we rely on a make rule to execute
18954   # `config.status --recheck' to rerun these tests and create the
18955   # libtool script then.
18956   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18957   if test -f "$ltmain_in"; then
18958     test -f Makefile && make "$ltmain"
18959   fi
18960 fi
18961
18962
18963 ac_ext=c
18964 ac_cpp='$CPP $CPPFLAGS'
18965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18968
18969 CC="$lt_save_CC"
18970
18971         else
18972           tagname=""
18973         fi
18974         ;;
18975
18976       RC)
18977
18978
18979 # Source file extension for RC test sources.
18980 ac_ext=rc
18981
18982 # Object file extension for compiled RC test sources.
18983 objext=o
18984 objext_RC=$objext
18985
18986 # Code to be used in simple compile tests
18987 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18988
18989 # Code to be used in simple link tests
18990 lt_simple_link_test_code="$lt_simple_compile_test_code"
18991
18992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18993
18994 # If no C compiler was specified, use CC.
18995 LTCC=${LTCC-"$CC"}
18996
18997 # If no C compiler flags were specified, use CFLAGS.
18998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18999
19000 # Allow CC to be a program name with arguments.
19001 compiler=$CC
19002
19003
19004 # save warnings/boilerplate of simple test code
19005 ac_outfile=conftest.$ac_objext
19006 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19008 _lt_compiler_boilerplate=`cat conftest.err`
19009 $rm conftest*
19010
19011 ac_outfile=conftest.$ac_objext
19012 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19014 _lt_linker_boilerplate=`cat conftest.err`
19015 $rm conftest*
19016
19017
19018 # Allow CC to be a program name with arguments.
19019 lt_save_CC="$CC"
19020 CC=${RC-"windres"}
19021 compiler=$CC
19022 compiler_RC=$CC
19023 for cc_temp in $compiler""; do
19024   case $cc_temp in
19025     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19026     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19027     \-*) ;;
19028     *) break;;
19029   esac
19030 done
19031 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19032
19033 lt_cv_prog_compiler_c_o_RC=yes
19034
19035 # The else clause should only fire when bootstrapping the
19036 # libtool distribution, otherwise you forgot to ship ltmain.sh
19037 # with your package, and you will get complaints that there are
19038 # no rules to generate ltmain.sh.
19039 if test -f "$ltmain"; then
19040   # See if we are running on zsh, and set the options which allow our commands through
19041   # without removal of \ escapes.
19042   if test -n "${ZSH_VERSION+set}" ; then
19043     setopt NO_GLOB_SUBST
19044   fi
19045   # Now quote all the things that may contain metacharacters while being
19046   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19047   # variables and quote the copies for generation of the libtool script.
19048   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19049     SED SHELL STRIP \
19050     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19051     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19052     deplibs_check_method reload_flag reload_cmds need_locks \
19053     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19054     lt_cv_sys_global_symbol_to_c_name_address \
19055     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19056     old_postinstall_cmds old_postuninstall_cmds \
19057     compiler_RC \
19058     CC_RC \
19059     LD_RC \
19060     lt_prog_compiler_wl_RC \
19061     lt_prog_compiler_pic_RC \
19062     lt_prog_compiler_static_RC \
19063     lt_prog_compiler_no_builtin_flag_RC \
19064     export_dynamic_flag_spec_RC \
19065     thread_safe_flag_spec_RC \
19066     whole_archive_flag_spec_RC \
19067     enable_shared_with_static_runtimes_RC \
19068     old_archive_cmds_RC \
19069     old_archive_from_new_cmds_RC \
19070     predep_objects_RC \
19071     postdep_objects_RC \
19072     predeps_RC \
19073     postdeps_RC \
19074     compiler_lib_search_path_RC \
19075     archive_cmds_RC \
19076     archive_expsym_cmds_RC \
19077     postinstall_cmds_RC \
19078     postuninstall_cmds_RC \
19079     old_archive_from_expsyms_cmds_RC \
19080     allow_undefined_flag_RC \
19081     no_undefined_flag_RC \
19082     export_symbols_cmds_RC \
19083     hardcode_libdir_flag_spec_RC \
19084     hardcode_libdir_flag_spec_ld_RC \
19085     hardcode_libdir_separator_RC \
19086     hardcode_automatic_RC \
19087     module_cmds_RC \
19088     module_expsym_cmds_RC \
19089     lt_cv_prog_compiler_c_o_RC \
19090     exclude_expsyms_RC \
19091     include_expsyms_RC; do
19092
19093     case $var in
19094     old_archive_cmds_RC | \
19095     old_archive_from_new_cmds_RC | \
19096     archive_cmds_RC | \
19097     archive_expsym_cmds_RC | \
19098     module_cmds_RC | \
19099     module_expsym_cmds_RC | \
19100     old_archive_from_expsyms_cmds_RC | \
19101     export_symbols_cmds_RC | \
19102     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19103     postinstall_cmds | postuninstall_cmds | \
19104     old_postinstall_cmds | old_postuninstall_cmds | \
19105     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19106       # Double-quote double-evaled strings.
19107       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19108       ;;
19109     *)
19110       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19111       ;;
19112     esac
19113   done
19114
19115   case $lt_echo in
19116   *'\$0 --fallback-echo"')
19117     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19118     ;;
19119   esac
19120
19121 cfgfile="$ofile"
19122
19123   cat <<__EOF__ >> "$cfgfile"
19124 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19125
19126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19127
19128 # Shell to use when invoking shell scripts.
19129 SHELL=$lt_SHELL
19130
19131 # Whether or not to build shared libraries.
19132 build_libtool_libs=$enable_shared
19133
19134 # Whether or not to build static libraries.
19135 build_old_libs=$enable_static
19136
19137 # Whether or not to add -lc for building shared libraries.
19138 build_libtool_need_lc=$archive_cmds_need_lc_RC
19139
19140 # Whether or not to disallow shared libs when runtime libs are static
19141 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19142
19143 # Whether or not to optimize for fast installation.
19144 fast_install=$enable_fast_install
19145
19146 # The host system.
19147 host_alias=$host_alias
19148 host=$host
19149 host_os=$host_os
19150
19151 # The build system.
19152 build_alias=$build_alias
19153 build=$build
19154 build_os=$build_os
19155
19156 # An echo program that does not interpret backslashes.
19157 echo=$lt_echo
19158
19159 # The archiver.
19160 AR=$lt_AR
19161 AR_FLAGS=$lt_AR_FLAGS
19162
19163 # A C compiler.
19164 LTCC=$lt_LTCC
19165
19166 # LTCC compiler flags.
19167 LTCFLAGS=$lt_LTCFLAGS
19168
19169 # A language-specific compiler.
19170 CC=$lt_compiler_RC
19171
19172 # Is the compiler the GNU C compiler?
19173 with_gcc=$GCC_RC
19174
19175 # An ERE matcher.
19176 EGREP=$lt_EGREP
19177
19178 # The linker used to build libraries.
19179 LD=$lt_LD_RC
19180
19181 # Whether we need hard or soft links.
19182 LN_S=$lt_LN_S
19183
19184 # A BSD-compatible nm program.
19185 NM=$lt_NM
19186
19187 # A symbol stripping program
19188 STRIP=$lt_STRIP
19189
19190 # Used to examine libraries when file_magic_cmd begins "file"
19191 MAGIC_CMD=$MAGIC_CMD
19192
19193 # Used on cygwin: DLL creation program.
19194 DLLTOOL="$DLLTOOL"
19195
19196 # Used on cygwin: object dumper.
19197 OBJDUMP="$OBJDUMP"
19198
19199 # Used on cygwin: assembler.
19200 AS="$AS"
19201
19202 # The name of the directory that contains temporary libtool files.
19203 objdir=$objdir
19204
19205 # How to create reloadable object files.
19206 reload_flag=$lt_reload_flag
19207 reload_cmds=$lt_reload_cmds
19208
19209 # How to pass a linker flag through the compiler.
19210 wl=$lt_lt_prog_compiler_wl_RC
19211
19212 # Object file suffix (normally "o").
19213 objext="$ac_objext"
19214
19215 # Old archive suffix (normally "a").
19216 libext="$libext"
19217
19218 # Shared library suffix (normally ".so").
19219 shrext_cmds='$shrext_cmds'
19220
19221 # Executable file suffix (normally "").
19222 exeext="$exeext"
19223
19224 # Additional compiler flags for building library objects.
19225 pic_flag=$lt_lt_prog_compiler_pic_RC
19226 pic_mode=$pic_mode
19227
19228 # What is the maximum length of a command?
19229 max_cmd_len=$lt_cv_sys_max_cmd_len
19230
19231 # Does compiler simultaneously support -c and -o options?
19232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19233
19234 # Must we lock files when doing compilation?
19235 need_locks=$lt_need_locks
19236
19237 # Do we need the lib prefix for modules?
19238 need_lib_prefix=$need_lib_prefix
19239
19240 # Do we need a version for libraries?
19241 need_version=$need_version
19242
19243 # Whether dlopen is supported.
19244 dlopen_support=$enable_dlopen
19245
19246 # Whether dlopen of programs is supported.
19247 dlopen_self=$enable_dlopen_self
19248
19249 # Whether dlopen of statically linked programs is supported.
19250 dlopen_self_static=$enable_dlopen_self_static
19251
19252 # Compiler flag to prevent dynamic linking.
19253 link_static_flag=$lt_lt_prog_compiler_static_RC
19254
19255 # Compiler flag to turn off builtin functions.
19256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19257
19258 # Compiler flag to allow reflexive dlopens.
19259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19260
19261 # Compiler flag to generate shared objects directly from archives.
19262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19263
19264 # Compiler flag to generate thread-safe objects.
19265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19266
19267 # Library versioning type.
19268 version_type=$version_type
19269
19270 # Format of library name prefix.
19271 libname_spec=$lt_libname_spec
19272
19273 # List of archive names.  First name is the real one, the rest are links.
19274 # The last name is the one that the linker finds with -lNAME.
19275 library_names_spec=$lt_library_names_spec
19276
19277 # The coded name of the library, if different from the real name.
19278 soname_spec=$lt_soname_spec
19279
19280 # Commands used to build and install an old-style archive.
19281 RANLIB=$lt_RANLIB
19282 old_archive_cmds=$lt_old_archive_cmds_RC
19283 old_postinstall_cmds=$lt_old_postinstall_cmds
19284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19285
19286 # Create an old-style archive from a shared archive.
19287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19288
19289 # Create a temporary old-style archive to link instead of a shared archive.
19290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19291
19292 # Commands used to build and install a shared archive.
19293 archive_cmds=$lt_archive_cmds_RC
19294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19295 postinstall_cmds=$lt_postinstall_cmds
19296 postuninstall_cmds=$lt_postuninstall_cmds
19297
19298 # Commands used to build a loadable module (assumed same as above if empty)
19299 module_cmds=$lt_module_cmds_RC
19300 module_expsym_cmds=$lt_module_expsym_cmds_RC
19301
19302 # Commands to strip libraries.
19303 old_striplib=$lt_old_striplib
19304 striplib=$lt_striplib
19305
19306 # Dependencies to place before the objects being linked to create a
19307 # shared library.
19308 predep_objects=$lt_predep_objects_RC
19309
19310 # Dependencies to place after the objects being linked to create a
19311 # shared library.
19312 postdep_objects=$lt_postdep_objects_RC
19313
19314 # Dependencies to place before the objects being linked to create a
19315 # shared library.
19316 predeps=$lt_predeps_RC
19317
19318 # Dependencies to place after the objects being linked to create a
19319 # shared library.
19320 postdeps=$lt_postdeps_RC
19321
19322 # The library search path used internally by the compiler when linking
19323 # a shared library.
19324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19325
19326 # Method to check whether dependent libraries are shared objects.
19327 deplibs_check_method=$lt_deplibs_check_method
19328
19329 # Command to use when deplibs_check_method == file_magic.
19330 file_magic_cmd=$lt_file_magic_cmd
19331
19332 # Flag that allows shared libraries with undefined symbols to be built.
19333 allow_undefined_flag=$lt_allow_undefined_flag_RC
19334
19335 # Flag that forces no undefined symbols.
19336 no_undefined_flag=$lt_no_undefined_flag_RC
19337
19338 # Commands used to finish a libtool library installation in a directory.
19339 finish_cmds=$lt_finish_cmds
19340
19341 # Same as above, but a single script fragment to be evaled but not shown.
19342 finish_eval=$lt_finish_eval
19343
19344 # Take the output of nm and produce a listing of raw symbols and C names.
19345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19346
19347 # Transform the output of nm in a proper C declaration
19348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19349
19350 # Transform the output of nm in a C name address pair
19351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19352
19353 # This is the shared library runtime path variable.
19354 runpath_var=$runpath_var
19355
19356 # This is the shared library path variable.
19357 shlibpath_var=$shlibpath_var
19358
19359 # Is shlibpath searched before the hard-coded library search path?
19360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19361
19362 # How to hardcode a shared library path into an executable.
19363 hardcode_action=$hardcode_action_RC
19364
19365 # Whether we should hardcode library paths into libraries.
19366 hardcode_into_libs=$hardcode_into_libs
19367
19368 # Flag to hardcode \$libdir into a binary during linking.
19369 # This must work even if \$libdir does not exist.
19370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19371
19372 # If ld is used when linking, flag to hardcode \$libdir into
19373 # a binary during linking. This must work even if \$libdir does
19374 # not exist.
19375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19376
19377 # Whether we need a single -rpath flag with a separated argument.
19378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19379
19380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19381 # resulting binary.
19382 hardcode_direct=$hardcode_direct_RC
19383
19384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19385 # resulting binary.
19386 hardcode_minus_L=$hardcode_minus_L_RC
19387
19388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19389 # the resulting binary.
19390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19391
19392 # Set to yes if building a shared library automatically hardcodes DIR into the library
19393 # and all subsequent libraries and executables linked against it.
19394 hardcode_automatic=$hardcode_automatic_RC
19395
19396 # Variables whose values should be saved in libtool wrapper scripts and
19397 # restored at relink time.
19398 variables_saved_for_relink="$variables_saved_for_relink"
19399
19400 # Whether libtool must link a program against all its dependency libraries.
19401 link_all_deplibs=$link_all_deplibs_RC
19402
19403 # Compile-time system search path for libraries
19404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19405
19406 # Run-time system search path for libraries
19407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19408
19409 # Fix the shell variable \$srcfile for the compiler.
19410 fix_srcfile_path="$fix_srcfile_path_RC"
19411
19412 # Set to yes if exported symbols are required.
19413 always_export_symbols=$always_export_symbols_RC
19414
19415 # The commands to list exported symbols.
19416 export_symbols_cmds=$lt_export_symbols_cmds_RC
19417
19418 # The commands to extract the exported symbol list from a shared archive.
19419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19420
19421 # Symbols that should not be listed in the preloaded symbols.
19422 exclude_expsyms=$lt_exclude_expsyms_RC
19423
19424 # Symbols that must always be exported.
19425 include_expsyms=$lt_include_expsyms_RC
19426
19427 # ### END LIBTOOL TAG CONFIG: $tagname
19428
19429 __EOF__
19430
19431
19432 else
19433   # If there is no Makefile yet, we rely on a make rule to execute
19434   # `config.status --recheck' to rerun these tests and create the
19435   # libtool script then.
19436   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19437   if test -f "$ltmain_in"; then
19438     test -f Makefile && make "$ltmain"
19439   fi
19440 fi
19441
19442
19443 ac_ext=c
19444 ac_cpp='$CPP $CPPFLAGS'
19445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448
19449 CC="$lt_save_CC"
19450
19451         ;;
19452
19453       *)
19454         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19455 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19456    { (exit 1); exit 1; }; }
19457         ;;
19458       esac
19459
19460       # Append the new tag name to the list of available tags.
19461       if test -n "$tagname" ; then
19462       available_tags="$available_tags $tagname"
19463     fi
19464     fi
19465   done
19466   IFS="$lt_save_ifs"
19467
19468   # Now substitute the updated list of available tags.
19469   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19470     mv "${ofile}T" "$ofile"
19471     chmod +x "$ofile"
19472   else
19473     rm -f "${ofile}T"
19474     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19475 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19476    { (exit 1); exit 1; }; }
19477   fi
19478 fi
19479
19480
19481
19482 # This can be used to rebuild libtool when needed
19483 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19484
19485 # Always use our own libtool.
19486 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19487
19488 # Prevent multiple expansion
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510 ###############
19511 ## System checks
19512 ##
19513
19514   { echo "$as_me:$LINENO: result: " >&5
19515 echo "${ECHO_T}" >&6; }
19516   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19517 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19518
19519 ac_ext=c
19520 ac_cpp='$CPP $CPPFLAGS'
19521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19524 if test -n "$ac_tool_prefix"; then
19525   for ac_prog in xlC gcc cc
19526   do
19527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19531 if test "${ac_cv_prog_CC+set}" = set; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   if test -n "$CC"; then
19535   ac_cv_prog_CC="$CC" # Let the user override the test.
19536 else
19537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19539 do
19540   IFS=$as_save_IFS
19541   test -z "$as_dir" && as_dir=.
19542   for ac_exec_ext in '' $ac_executable_extensions; do
19543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19544     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19546     break 2
19547   fi
19548 done
19549 done
19550 IFS=$as_save_IFS
19551
19552 fi
19553 fi
19554 CC=$ac_cv_prog_CC
19555 if test -n "$CC"; then
19556   { echo "$as_me:$LINENO: result: $CC" >&5
19557 echo "${ECHO_T}$CC" >&6; }
19558 else
19559   { echo "$as_me:$LINENO: result: no" >&5
19560 echo "${ECHO_T}no" >&6; }
19561 fi
19562
19563
19564     test -n "$CC" && break
19565   done
19566 fi
19567 if test -z "$CC"; then
19568   ac_ct_CC=$CC
19569   for ac_prog in xlC gcc cc
19570 do
19571   # Extract the first word of "$ac_prog", so it can be a program name with args.
19572 set dummy $ac_prog; ac_word=$2
19573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   if test -n "$ac_ct_CC"; then
19579   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19580 else
19581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19582 for as_dir in $PATH
19583 do
19584   IFS=$as_save_IFS
19585   test -z "$as_dir" && as_dir=.
19586   for ac_exec_ext in '' $ac_executable_extensions; do
19587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19588     ac_cv_prog_ac_ct_CC="$ac_prog"
19589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19590     break 2
19591   fi
19592 done
19593 done
19594 IFS=$as_save_IFS
19595
19596 fi
19597 fi
19598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19599 if test -n "$ac_ct_CC"; then
19600   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19601 echo "${ECHO_T}$ac_ct_CC" >&6; }
19602 else
19603   { echo "$as_me:$LINENO: result: no" >&5
19604 echo "${ECHO_T}no" >&6; }
19605 fi
19606
19607
19608   test -n "$ac_ct_CC" && break
19609 done
19610
19611   if test "x$ac_ct_CC" = x; then
19612     CC=""
19613   else
19614     case $cross_compiling:$ac_tool_warned in
19615 yes:)
19616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19617 whose name does not start with the host triplet.  If you think this
19618 configuration is useful to you, please write to autoconf@gnu.org." >&5
19619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19620 whose name does not start with the host triplet.  If you think this
19621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19622 ac_tool_warned=yes ;;
19623 esac
19624     CC=$ac_ct_CC
19625   fi
19626 fi
19627
19628
19629 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19630 See \`config.log' for more details." >&5
19631 echo "$as_me: error: no acceptable C compiler found in \$PATH
19632 See \`config.log' for more details." >&2;}
19633    { (exit 1); exit 1; }; }
19634
19635 # Provide some information about the compiler.
19636 echo "$as_me:$LINENO: checking for C compiler version" >&5
19637 ac_compiler=`set X $ac_compile; echo $2`
19638 { (ac_try="$ac_compiler --version >&5"
19639 case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_compiler --version >&5") 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }
19648 { (ac_try="$ac_compiler -v >&5"
19649 case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_compiler -v >&5") 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }
19658 { (ac_try="$ac_compiler -V >&5"
19659 case "(($ac_try" in
19660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661   *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664   (eval "$ac_compiler -V >&5") 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }
19668
19669 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19672   echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674   cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680
19681 int
19682 main ()
19683 {
19684 #ifndef __GNUC__
19685        choke me
19686 #endif
19687
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_compile") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } && {
19706          test -z "$ac_c_werror_flag" ||
19707          test ! -s conftest.err
19708        } && test -s conftest.$ac_objext; then
19709   ac_compiler_gnu=yes
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714         ac_compiler_gnu=no
19715 fi
19716
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19719
19720 fi
19721 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19722 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19723 GCC=`test $ac_compiler_gnu = yes && echo yes`
19724 ac_test_CFLAGS=${CFLAGS+set}
19725 ac_save_CFLAGS=$CFLAGS
19726 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19727 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19728 if test "${ac_cv_prog_cc_g+set}" = set; then
19729   echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731   ac_save_c_werror_flag=$ac_c_werror_flag
19732    ac_c_werror_flag=yes
19733    ac_cv_prog_cc_g=no
19734    CFLAGS="-g"
19735    cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741
19742 int
19743 main ()
19744 {
19745
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754   *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757   (eval "$ac_compile") 2>conftest.er1
19758   ac_status=$?
19759   grep -v '^ *+' conftest.er1 >conftest.err
19760   rm -f conftest.er1
19761   cat conftest.err >&5
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); } && {
19764          test -z "$ac_c_werror_flag" ||
19765          test ! -s conftest.err
19766        } && test -s conftest.$ac_objext; then
19767   ac_cv_prog_cc_g=yes
19768 else
19769   echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772         CFLAGS=""
19773       cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779
19780 int
19781 main ()
19782 {
19783
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_compile") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } && {
19802          test -z "$ac_c_werror_flag" ||
19803          test ! -s conftest.err
19804        } && test -s conftest.$ac_objext; then
19805   :
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810         ac_c_werror_flag=$ac_save_c_werror_flag
19811          CFLAGS="-g"
19812          cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818
19819 int
19820 main ()
19821 {
19822
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext
19828 if { (ac_try="$ac_compile"
19829 case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_compile") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } && {
19841          test -z "$ac_c_werror_flag" ||
19842          test ! -s conftest.err
19843        } && test -s conftest.$ac_objext; then
19844   ac_cv_prog_cc_g=yes
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849
19850 fi
19851
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853 fi
19854
19855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19856 fi
19857
19858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19859    ac_c_werror_flag=$ac_save_c_werror_flag
19860 fi
19861 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19862 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19863 if test "$ac_test_CFLAGS" = set; then
19864   CFLAGS=$ac_save_CFLAGS
19865 elif test $ac_cv_prog_cc_g = yes; then
19866   if test "$GCC" = yes; then
19867     CFLAGS="-g -O2"
19868   else
19869     CFLAGS="-g"
19870   fi
19871 else
19872   if test "$GCC" = yes; then
19873     CFLAGS="-O2"
19874   else
19875     CFLAGS=
19876   fi
19877 fi
19878 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19879 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19880 if test "${ac_cv_prog_cc_c89+set}" = set; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883   ac_cv_prog_cc_c89=no
19884 ac_save_CC=$CC
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 #include <stdarg.h>
19892 #include <stdio.h>
19893 #include <sys/types.h>
19894 #include <sys/stat.h>
19895 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19896 struct buf { int x; };
19897 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19898 static char *e (p, i)
19899      char **p;
19900      int i;
19901 {
19902   return p[i];
19903 }
19904 static char *f (char * (*g) (char **, int), char **p, ...)
19905 {
19906   char *s;
19907   va_list v;
19908   va_start (v,p);
19909   s = g (p, va_arg (v,int));
19910   va_end (v);
19911   return s;
19912 }
19913
19914 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19915    function prototypes and stuff, but not '\xHH' hex character constants.
19916    These don't provoke an error unfortunately, instead are silently treated
19917    as 'x'.  The following induces an error, until -std is added to get
19918    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19919    array size at least.  It's necessary to write '\x00'==0 to get something
19920    that's true only with -std.  */
19921 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19922
19923 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19924    inside strings and character constants.  */
19925 #define FOO(x) 'x'
19926 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19927
19928 int test (int i, double x);
19929 struct s1 {int (*f) (int a);};
19930 struct s2 {int (*f) (double a);};
19931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19932 int argc;
19933 char **argv;
19934 int
19935 main ()
19936 {
19937 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19943         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19944 do
19945   CC="$ac_save_CC $ac_arg"
19946   rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_compile") 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } && {
19960          test -z "$ac_c_werror_flag" ||
19961          test ! -s conftest.err
19962        } && test -s conftest.$ac_objext; then
19963   ac_cv_prog_cc_c89=$ac_arg
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968
19969 fi
19970
19971 rm -f core conftest.err conftest.$ac_objext
19972   test "x$ac_cv_prog_cc_c89" != "xno" && break
19973 done
19974 rm -f conftest.$ac_ext
19975 CC=$ac_save_CC
19976
19977 fi
19978 # AC_CACHE_VAL
19979 case "x$ac_cv_prog_cc_c89" in
19980   x)
19981     { echo "$as_me:$LINENO: result: none needed" >&5
19982 echo "${ECHO_T}none needed" >&6; } ;;
19983   xno)
19984     { echo "$as_me:$LINENO: result: unsupported" >&5
19985 echo "${ECHO_T}unsupported" >&6; } ;;
19986   *)
19987     CC="$CC $ac_cv_prog_cc_c89"
19988     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19989 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19990 esac
19991
19992
19993 ac_ext=c
19994 ac_cpp='$CPP $CPPFLAGS'
19995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19998
19999 depcc="$CC"   am_compiler_list=
20000
20001 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20002 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20007   # We make a subdir and do the tests there.  Otherwise we can end up
20008   # making bogus files that we don't know about and never remove.  For
20009   # instance it was reported that on HP-UX the gcc test will end up
20010   # making a dummy file named `D' -- because `-MD' means `put the output
20011   # in D'.
20012   mkdir conftest.dir
20013   # Copy depcomp to subdir because otherwise we won't find it if we're
20014   # using a relative directory.
20015   cp "$am_depcomp" conftest.dir
20016   cd conftest.dir
20017   # We will build objects and dependencies in a subdirectory because
20018   # it helps to detect inapplicable dependency modes.  For instance
20019   # both Tru64's cc and ICC support -MD to output dependencies as a
20020   # side effect of compilation, but ICC will put the dependencies in
20021   # the current directory while Tru64 will put them in the object
20022   # directory.
20023   mkdir sub
20024
20025   am_cv_CC_dependencies_compiler_type=none
20026   if test "$am_compiler_list" = ""; then
20027      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20028   fi
20029   for depmode in $am_compiler_list; do
20030     # Setup a source with many dependencies, because some compilers
20031     # like to wrap large dependency lists on column 80 (with \), and
20032     # we should not choose a depcomp mode which is confused by this.
20033     #
20034     # We need to recreate these files for each test, as the compiler may
20035     # overwrite some of them when testing with obscure command lines.
20036     # This happens at least with the AIX C compiler.
20037     : > sub/conftest.c
20038     for i in 1 2 3 4 5 6; do
20039       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20040       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20041       # Solaris 8's {/usr,}/bin/sh.
20042       touch sub/conftst$i.h
20043     done
20044     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20045
20046     case $depmode in
20047     nosideeffect)
20048       # after this tag, mechanisms are not by side-effect, so they'll
20049       # only be used when explicitly requested
20050       if test "x$enable_dependency_tracking" = xyes; then
20051         continue
20052       else
20053         break
20054       fi
20055       ;;
20056     none) break ;;
20057     esac
20058     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20059     # mode.  It turns out that the SunPro C++ compiler does not properly
20060     # handle `-M -o', and we need to detect this.
20061     if depmode=$depmode \
20062        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20063        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20064        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20065          >/dev/null 2>conftest.err &&
20066        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20067        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20068        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20069       # icc doesn't choke on unknown options, it will just issue warnings
20070       # or remarks (even with -Werror).  So we grep stderr for any message
20071       # that says an option was ignored or not supported.
20072       # When given -MP, icc 7.0 and 7.1 complain thusly:
20073       #   icc: Command line warning: ignoring option '-M'; no argument required
20074       # The diagnosis changed in icc 8.0:
20075       #   icc: Command line remark: option '-MP' not supported
20076       if (grep 'ignoring option' conftest.err ||
20077           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20078         am_cv_CC_dependencies_compiler_type=$depmode
20079         break
20080       fi
20081     fi
20082   done
20083
20084   cd ..
20085   rm -rf conftest.dir
20086 else
20087   am_cv_CC_dependencies_compiler_type=none
20088 fi
20089
20090 fi
20091 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20092 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20094
20095
20096
20097 if
20098   test "x$enable_dependency_tracking" != xno \
20099   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20100   am__fastdepCC_TRUE=
20101   am__fastdepCC_FALSE='#'
20102 else
20103   am__fastdepCC_TRUE='#'
20104   am__fastdepCC_FALSE=
20105 fi
20106
20107
20108 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20109 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20110 # Just in case
20111 sleep 1
20112 echo timestamp > conftest.file
20113 # Do `set' in a subshell so we don't clobber the current shell's
20114 # arguments.  Must try -L first in case configure is actually a
20115 # symlink; some systems play weird games with the mod time of symlinks
20116 # (eg FreeBSD returns the mod time of the symlink's containing
20117 # directory).
20118 if (
20119    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20120    if test "$*" = "X"; then
20121       # -L didn't work.
20122       set X `ls -t $srcdir/configure conftest.file`
20123    fi
20124    rm -f conftest.file
20125    if test "$*" != "X $srcdir/configure conftest.file" \
20126       && test "$*" != "X conftest.file $srcdir/configure"; then
20127
20128       # If neither matched, then we have a broken ls.  This can happen
20129       # if, for instance, CONFIG_SHELL is bash and it inherits a
20130       # broken ls alias from the environment.  This has actually
20131       # happened.  Such a system could not be considered "sane".
20132       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20133 alias in your environment" >&5
20134 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20135 alias in your environment" >&2;}
20136    { (exit 1); exit 1; }; }
20137    fi
20138
20139    test "$2" = conftest.file
20140    )
20141 then
20142    # Ok.
20143    :
20144 else
20145    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20146 Check your system clock" >&5
20147 echo "$as_me: error: newly created file is older than distributed files!
20148 Check your system clock" >&2;}
20149    { (exit 1); exit 1; }; }
20150 fi
20151 { echo "$as_me:$LINENO: result: yes" >&5
20152 echo "${ECHO_T}yes" >&6; }
20153 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20154 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20155 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20156 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   cat >conftest.make <<\_ACEOF
20160 SHELL = /bin/sh
20161 all:
20162         @echo '@@@%%%=$(MAKE)=@@@%%%'
20163 _ACEOF
20164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20166   *@@@%%%=?*=@@@%%%*)
20167     eval ac_cv_prog_make_${ac_make}_set=yes;;
20168   *)
20169     eval ac_cv_prog_make_${ac_make}_set=no;;
20170 esac
20171 rm -f conftest.make
20172 fi
20173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20174   { echo "$as_me:$LINENO: result: yes" >&5
20175 echo "${ECHO_T}yes" >&6; }
20176   SET_MAKE=
20177 else
20178   { echo "$as_me:$LINENO: result: no" >&5
20179 echo "${ECHO_T}no" >&6; }
20180   SET_MAKE="MAKE=${MAKE-make}"
20181 fi
20182
20183
20184 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20185 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20186 if test "$cross_compiling" = yes; then
20187   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20188 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20189 else
20190   cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196 #include <stdio.h>
20197 int
20198 main ()
20199 {
20200 printf("%s",NULL);
20201   ;
20202   return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_link") 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20216   { (case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_try") 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225
20226 cat >>confdefs.h <<\_ACEOF
20227 #define PRINTF_NULL_WORKING 1
20228 _ACEOF
20229
20230               { echo "$as_me:$LINENO: result: yes" >&5
20231 echo "${ECHO_T}yes" >&6; }
20232 else
20233   echo "$as_me: program exited with status $ac_status" >&5
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20236
20237 ( exit $ac_status )
20238 { echo "$as_me:$LINENO: result: no" >&5
20239 echo "${ECHO_T}no" >&6; }
20240 fi
20241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20242 fi
20243
20244
20245
20246
20247     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20248 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20249     if test "${ac_cv_va_copy+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252
20253     ac_cv_va_copy=""
20254
20255
20256
20257     if test ".$ac_cv_va_copy" = .; then
20258         if test "$cross_compiling" = yes; then
20259   ac_cv_va_copy="C99"
20260 else
20261   cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267
20268 #include <stdlib.h>
20269 #include <stdarg.h>
20270 #include <string.h>
20271 #define DO_VA_COPY(d, s) va_copy((d), (s))
20272 void test(char *str, ...)
20273 {
20274     va_list ap, ap2;
20275     int i;
20276     va_start(ap, str);
20277     DO_VA_COPY(ap2, ap);
20278     for (i = 1; i <= 9; i++) {
20279         int k = (int)va_arg(ap, int);
20280         if (k != i)
20281             abort();
20282     }
20283     DO_VA_COPY(ap, ap2);
20284     for (i = 1; i <= 9; i++) {
20285         int k = (int)va_arg(ap, int);
20286         if (k != i)
20287             abort();
20288     }
20289     va_end(ap);
20290 }
20291 int main(int argc, char *argv[])
20292 {
20293     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20294     exit(0);
20295 }
20296
20297 _ACEOF
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302   *) ac_try_echo=$ac_try;;
20303 esac
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305   (eval "$ac_link") 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   ac_cv_va_copy="C99"
20319 else
20320   echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 fi
20325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 fi
20327
20328
20329             fi
20330
20331
20332
20333
20334     if test ".$ac_cv_va_copy" = .; then
20335         if test "$cross_compiling" = yes; then
20336   ac_cv_va_copy="GCM"
20337 else
20338   cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344
20345 #include <stdlib.h>
20346 #include <stdarg.h>
20347 #include <string.h>
20348 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20349 void test(char *str, ...)
20350 {
20351     va_list ap, ap2;
20352     int i;
20353     va_start(ap, str);
20354     DO_VA_COPY(ap2, ap);
20355     for (i = 1; i <= 9; i++) {
20356         int k = (int)va_arg(ap, int);
20357         if (k != i)
20358             abort();
20359     }
20360     DO_VA_COPY(ap, ap2);
20361     for (i = 1; i <= 9; i++) {
20362         int k = (int)va_arg(ap, int);
20363         if (k != i)
20364             abort();
20365     }
20366     va_end(ap);
20367 }
20368 int main(int argc, char *argv[])
20369 {
20370     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20371     exit(0);
20372 }
20373
20374 _ACEOF
20375 rm -f conftest$ac_exeext
20376 if { (ac_try="$ac_link"
20377 case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_link") 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; }; then
20395   ac_cv_va_copy="GCM"
20396 else
20397   echo "$as_me: program exited with status $ac_status" >&5
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 fi
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 fi
20404
20405
20406             fi
20407
20408
20409
20410
20411     if test ".$ac_cv_va_copy" = .; then
20412         if test "$cross_compiling" = yes; then
20413   ac_cv_va_copy="GCH"
20414 else
20415   cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20421
20422 #include <stdlib.h>
20423 #include <stdarg.h>
20424 #include <string.h>
20425 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20426 void test(char *str, ...)
20427 {
20428     va_list ap, ap2;
20429     int i;
20430     va_start(ap, str);
20431     DO_VA_COPY(ap2, ap);
20432     for (i = 1; i <= 9; i++) {
20433         int k = (int)va_arg(ap, int);
20434         if (k != i)
20435             abort();
20436     }
20437     DO_VA_COPY(ap, ap2);
20438     for (i = 1; i <= 9; i++) {
20439         int k = (int)va_arg(ap, int);
20440         if (k != i)
20441             abort();
20442     }
20443     va_end(ap);
20444 }
20445 int main(int argc, char *argv[])
20446 {
20447     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20448     exit(0);
20449 }
20450
20451 _ACEOF
20452 rm -f conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456   *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459   (eval "$ac_link") 2>&5
20460   ac_status=$?
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; }; then
20472   ac_cv_va_copy="GCH"
20473 else
20474   echo "$as_me: program exited with status $ac_status" >&5
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 fi
20479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20480 fi
20481
20482
20483             fi
20484
20485
20486
20487
20488     if test ".$ac_cv_va_copy" = .; then
20489         if test "$cross_compiling" = yes; then
20490   ac_cv_va_copy="GCB"
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498
20499 #include <stdlib.h>
20500 #include <stdarg.h>
20501 #include <string.h>
20502 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20503 void test(char *str, ...)
20504 {
20505     va_list ap, ap2;
20506     int i;
20507     va_start(ap, str);
20508     DO_VA_COPY(ap2, ap);
20509     for (i = 1; i <= 9; i++) {
20510         int k = (int)va_arg(ap, int);
20511         if (k != i)
20512             abort();
20513     }
20514     DO_VA_COPY(ap, ap2);
20515     for (i = 1; i <= 9; i++) {
20516         int k = (int)va_arg(ap, int);
20517         if (k != i)
20518             abort();
20519     }
20520     va_end(ap);
20521 }
20522 int main(int argc, char *argv[])
20523 {
20524     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20525     exit(0);
20526 }
20527
20528 _ACEOF
20529 rm -f conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_link") 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; }; then
20549   ac_cv_va_copy="GCB"
20550 else
20551   echo "$as_me: program exited with status $ac_status" >&5
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 fi
20556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20557 fi
20558
20559
20560             fi
20561
20562
20563
20564
20565     if test ".$ac_cv_va_copy" = .; then
20566         if test "$cross_compiling" = yes; then
20567   ac_cv_va_copy="ASS"
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575
20576 #include <stdlib.h>
20577 #include <stdarg.h>
20578 #include <string.h>
20579 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20580 void test(char *str, ...)
20581 {
20582     va_list ap, ap2;
20583     int i;
20584     va_start(ap, str);
20585     DO_VA_COPY(ap2, ap);
20586     for (i = 1; i <= 9; i++) {
20587         int k = (int)va_arg(ap, int);
20588         if (k != i)
20589             abort();
20590     }
20591     DO_VA_COPY(ap, ap2);
20592     for (i = 1; i <= 9; i++) {
20593         int k = (int)va_arg(ap, int);
20594         if (k != i)
20595             abort();
20596     }
20597     va_end(ap);
20598 }
20599 int main(int argc, char *argv[])
20600 {
20601     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20602     exit(0);
20603 }
20604
20605 _ACEOF
20606 rm -f conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613   (eval "$ac_link") 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); }; }; then
20626   ac_cv_va_copy="ASS"
20627 else
20628   echo "$as_me: program exited with status $ac_status" >&5
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 fi
20633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20634 fi
20635
20636
20637             fi
20638
20639
20640
20641
20642     if test ".$ac_cv_va_copy" = .; then
20643         if test "$cross_compiling" = yes; then
20644   ac_cv_va_copy="ASP"
20645 else
20646   cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652
20653 #include <stdlib.h>
20654 #include <stdarg.h>
20655 #include <string.h>
20656 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20657 void test(char *str, ...)
20658 {
20659     va_list ap, ap2;
20660     int i;
20661     va_start(ap, str);
20662     DO_VA_COPY(ap2, ap);
20663     for (i = 1; i <= 9; i++) {
20664         int k = (int)va_arg(ap, int);
20665         if (k != i)
20666             abort();
20667     }
20668     DO_VA_COPY(ap, ap2);
20669     for (i = 1; i <= 9; i++) {
20670         int k = (int)va_arg(ap, int);
20671         if (k != i)
20672             abort();
20673     }
20674     va_end(ap);
20675 }
20676 int main(int argc, char *argv[])
20677 {
20678     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20679     exit(0);
20680 }
20681
20682 _ACEOF
20683 rm -f conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687   *) ac_try_echo=$ac_try;;
20688 esac
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690   (eval "$ac_link") 2>&5
20691   ac_status=$?
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; }; then
20703   ac_cv_va_copy="ASP"
20704 else
20705   echo "$as_me: program exited with status $ac_status" >&5
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 fi
20710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20711 fi
20712
20713
20714             fi
20715
20716
20717
20718
20719     if test ".$ac_cv_va_copy" = .; then
20720         if test "$cross_compiling" = yes; then
20721   ac_cv_va_copy="CPS"
20722 else
20723   cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729
20730 #include <stdlib.h>
20731 #include <stdarg.h>
20732 #include <string.h>
20733 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20734 void test(char *str, ...)
20735 {
20736     va_list ap, ap2;
20737     int i;
20738     va_start(ap, str);
20739     DO_VA_COPY(ap2, ap);
20740     for (i = 1; i <= 9; i++) {
20741         int k = (int)va_arg(ap, int);
20742         if (k != i)
20743             abort();
20744     }
20745     DO_VA_COPY(ap, ap2);
20746     for (i = 1; i <= 9; i++) {
20747         int k = (int)va_arg(ap, int);
20748         if (k != i)
20749             abort();
20750     }
20751     va_end(ap);
20752 }
20753 int main(int argc, char *argv[])
20754 {
20755     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20756     exit(0);
20757 }
20758
20759 _ACEOF
20760 rm -f conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_link") 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20777   ac_status=$?
20778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779   (exit $ac_status); }; }; then
20780   ac_cv_va_copy="CPS"
20781 else
20782   echo "$as_me: program exited with status $ac_status" >&5
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786 fi
20787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20788 fi
20789
20790
20791             fi
20792
20793
20794
20795
20796     if test ".$ac_cv_va_copy" = .; then
20797         if test "$cross_compiling" = yes; then
20798   ac_cv_va_copy="CPP"
20799 else
20800   cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806
20807 #include <stdlib.h>
20808 #include <stdarg.h>
20809 #include <string.h>
20810 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20811 void test(char *str, ...)
20812 {
20813     va_list ap, ap2;
20814     int i;
20815     va_start(ap, str);
20816     DO_VA_COPY(ap2, ap);
20817     for (i = 1; i <= 9; i++) {
20818         int k = (int)va_arg(ap, int);
20819         if (k != i)
20820             abort();
20821     }
20822     DO_VA_COPY(ap, ap2);
20823     for (i = 1; i <= 9; i++) {
20824         int k = (int)va_arg(ap, int);
20825         if (k != i)
20826             abort();
20827     }
20828     va_end(ap);
20829 }
20830 int main(int argc, char *argv[])
20831 {
20832     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20833     exit(0);
20834 }
20835
20836 _ACEOF
20837 rm -f conftest$ac_exeext
20838 if { (ac_try="$ac_link"
20839 case "(($ac_try" in
20840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841   *) ac_try_echo=$ac_try;;
20842 esac
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844   (eval "$ac_link") 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20848   { (case "(($ac_try" in
20849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850   *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853   (eval "$ac_try") 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; }; then
20857   ac_cv_va_copy="CPP"
20858 else
20859   echo "$as_me: program exited with status $ac_status" >&5
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 fi
20864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20865 fi
20866
20867
20868             fi
20869
20870     if test ".$ac_cv_va_copy" = .; then
20871         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20872 echo "$as_me: error: no working implementation found" >&2;}
20873    { (exit 1); exit 1; }; }
20874     fi
20875
20876 fi
20877
20878     if test ".$ac_cv_va_copy" = ".C99"; then
20879
20880 cat >>confdefs.h <<\_ACEOF
20881 #define HAVE_VA_COPY 1
20882 _ACEOF
20883
20884   fi
20885
20886 cat >>confdefs.h <<_ACEOF
20887 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20888 _ACEOF
20889
20890
20891
20892     if test ".$ac_cv_va_copy" = ".C99"; then
20893       { echo "$as_me:$LINENO: result: yes" >&5
20894 echo "${ECHO_T}yes" >&6; }
20895   else
20896       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20897 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20898   fi
20899
20900
20901 # Checks for header files.
20902 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20904 if test "${ac_cv_header_stdc+set}" = set; then
20905   echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907   cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 #include <stdlib.h>
20914 #include <stdarg.h>
20915 #include <string.h>
20916 #include <float.h>
20917
20918 int
20919 main ()
20920 {
20921
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 rm -f conftest.$ac_objext
20927 if { (ac_try="$ac_compile"
20928 case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933   (eval "$ac_compile") 2>conftest.er1
20934   ac_status=$?
20935   grep -v '^ *+' conftest.er1 >conftest.err
20936   rm -f conftest.er1
20937   cat conftest.err >&5
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); } && {
20940          test -z "$ac_c_werror_flag" ||
20941          test ! -s conftest.err
20942        } && test -s conftest.$ac_objext; then
20943   ac_cv_header_stdc=yes
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948         ac_cv_header_stdc=no
20949 fi
20950
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952
20953 if test $ac_cv_header_stdc = yes; then
20954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20955   cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 #include <string.h>
20962
20963 _ACEOF
20964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20965   $EGREP "memchr" >/dev/null 2>&1; then
20966   :
20967 else
20968   ac_cv_header_stdc=no
20969 fi
20970 rm -f conftest*
20971
20972 fi
20973
20974 if test $ac_cv_header_stdc = yes; then
20975   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20976   cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 #include <stdlib.h>
20983
20984 _ACEOF
20985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20986   $EGREP "free" >/dev/null 2>&1; then
20987   :
20988 else
20989   ac_cv_header_stdc=no
20990 fi
20991 rm -f conftest*
20992
20993 fi
20994
20995 if test $ac_cv_header_stdc = yes; then
20996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20997   if test "$cross_compiling" = yes; then
20998   :
20999 else
21000   cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006 #include <ctype.h>
21007 #include <stdlib.h>
21008 #if ((' ' & 0x0FF) == 0x020)
21009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21011 #else
21012 # define ISLOWER(c) \
21013                    (('a' <= (c) && (c) <= 'i') \
21014                      || ('j' <= (c) && (c) <= 'r') \
21015                      || ('s' <= (c) && (c) <= 'z'))
21016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21017 #endif
21018
21019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21020 int
21021 main ()
21022 {
21023   int i;
21024   for (i = 0; i < 256; i++)
21025     if (XOR (islower (i), ISLOWER (i))
21026         || toupper (i) != TOUPPER (i))
21027       return 2;
21028   return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035   *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038   (eval "$ac_link") 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21042   { (case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_try") 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; }; then
21051   :
21052 else
21053   echo "$as_me: program exited with status $ac_status" >&5
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21056
21057 ( exit $ac_status )
21058 ac_cv_header_stdc=no
21059 fi
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21061 fi
21062
21063
21064 fi
21065 fi
21066 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21067 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21068 if test $ac_cv_header_stdc = yes; then
21069
21070 cat >>confdefs.h <<\_ACEOF
21071 #define STDC_HEADERS 1
21072 _ACEOF
21073
21074 fi
21075
21076 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21077 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21078 if test "${ac_cv_header_time+set}" = set; then
21079   echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081   cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 #include <sys/types.h>
21088 #include <sys/time.h>
21089 #include <time.h>
21090
21091 int
21092 main ()
21093 {
21094 if ((struct tm *) 0)
21095 return 0;
21096   ;
21097   return 0;
21098 }
21099 _ACEOF
21100 rm -f conftest.$ac_objext
21101 if { (ac_try="$ac_compile"
21102 case "(($ac_try" in
21103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104   *) ac_try_echo=$ac_try;;
21105 esac
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107   (eval "$ac_compile") 2>conftest.er1
21108   ac_status=$?
21109   grep -v '^ *+' conftest.er1 >conftest.err
21110   rm -f conftest.er1
21111   cat conftest.err >&5
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } && {
21114          test -z "$ac_c_werror_flag" ||
21115          test ! -s conftest.err
21116        } && test -s conftest.$ac_objext; then
21117   ac_cv_header_time=yes
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122         ac_cv_header_time=no
21123 fi
21124
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 fi
21127 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21128 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21129 if test $ac_cv_header_time = yes; then
21130
21131 cat >>confdefs.h <<\_ACEOF
21132 #define TIME_WITH_SYS_TIME 1
21133 _ACEOF
21134
21135 fi
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147 for ac_header in sys/socket.h \
21148                   sys/stat.h \
21149                   windows.h winsock.h winsock2.h \
21150                   sys/time.h \
21151                   errno.h unistd.h \
21152                   execinfo.h\
21153                   signal.h
21154 do
21155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21160   echo $ECHO_N "(cached) $ECHO_C" >&6
21161 fi
21162 ac_res=`eval echo '${'$as_ac_Header'}'`
21163                { echo "$as_me:$LINENO: result: $ac_res" >&5
21164 echo "${ECHO_T}$ac_res" >&6; }
21165 else
21166   # Is the header compilable?
21167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175 $ac_includes_default
21176 #include <$ac_header>
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_header_compiler=yes
21196 else
21197   echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200         ac_header_compiler=no
21201 fi
21202
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21205 echo "${ECHO_T}$ac_header_compiler" >&6; }
21206
21207 # Is the header present?
21208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21210 cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 #include <$ac_header>
21217 _ACEOF
21218 if { (ac_try="$ac_cpp conftest.$ac_ext"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } >/dev/null && {
21231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        }; then
21234   ac_header_preproc=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239   ac_header_preproc=no
21240 fi
21241
21242 rm -f conftest.err conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21244 echo "${ECHO_T}$ac_header_preproc" >&6; }
21245
21246 # So?  What about this header?
21247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21248   yes:no: )
21249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21253     ac_header_preproc=yes
21254     ;;
21255   no:yes:* )
21256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21258     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21259 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21260     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21262     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21263 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21266     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21268     ( cat <<\_ASBOX
21269 ## -------------------------------------------------- ##
21270 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21271 ## -------------------------------------------------- ##
21272 _ASBOX
21273      ) | sed "s/^/$as_me: WARNING:     /" >&2
21274     ;;
21275 esac
21276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279   echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281   eval "$as_ac_Header=\$ac_header_preproc"
21282 fi
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284                { echo "$as_me:$LINENO: result: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21286
21287 fi
21288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21289   cat >>confdefs.h <<_ACEOF
21290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21291 _ACEOF
21292
21293 fi
21294
21295 done
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305 for ac_func in gettimeofday usleep \
21306                 getdtablesize \
21307                 sysconf\
21308                 readv\
21309                 popen\
21310                 signal\
21311                 getline
21312 do
21313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21317   echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319   cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21327 #define $ac_func innocuous_$ac_func
21328
21329 /* System header to define __stub macros and hopefully few prototypes,
21330     which can conflict with char $ac_func (); below.
21331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21332     <limits.h> exists even on freestanding compilers.  */
21333
21334 #ifdef __STDC__
21335 # include <limits.h>
21336 #else
21337 # include <assert.h>
21338 #endif
21339
21340 #undef $ac_func
21341
21342 /* Override any GCC internal prototype to avoid an error.
21343    Use char because int might match the return type of a GCC
21344    builtin and then its argument prototype would still apply.  */
21345 #ifdef __cplusplus
21346 extern "C"
21347 #endif
21348 char $ac_func ();
21349 /* The GNU C library defines this for functions which it implements
21350     to always fail with ENOSYS.  Some functions are actually named
21351     something starting with __ and the normal name is an alias.  */
21352 #if defined __stub_$ac_func || defined __stub___$ac_func
21353 choke me
21354 #endif
21355
21356 int
21357 main ()
21358 {
21359 return $ac_func ();
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (ac_try="$ac_link"
21366 case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_link") 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && {
21378          test -z "$ac_c_werror_flag" ||
21379          test ! -s conftest.err
21380        } && test -s conftest$ac_exeext &&
21381        $as_test_x conftest$ac_exeext; then
21382   eval "$as_ac_var=yes"
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387         eval "$as_ac_var=no"
21388 fi
21389
21390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21391       conftest$ac_exeext conftest.$ac_ext
21392 fi
21393 ac_res=`eval echo '${'$as_ac_var'}'`
21394                { echo "$as_me:$LINENO: result: $ac_res" >&5
21395 echo "${ECHO_T}$ac_res" >&6; }
21396 if test `eval echo '${'$as_ac_var'}'` = yes; then
21397   cat >>confdefs.h <<_ACEOF
21398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21399 _ACEOF
21400
21401 fi
21402 done
21403
21404
21405 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21406
21407
21408 for ac_func in snprintf vsnprintf
21409 do
21410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21414   echo $ECHO_N "(cached) $ECHO_C" >&6
21415 else
21416   cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21424 #define $ac_func innocuous_$ac_func
21425
21426 /* System header to define __stub macros and hopefully few prototypes,
21427     which can conflict with char $ac_func (); below.
21428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21429     <limits.h> exists even on freestanding compilers.  */
21430
21431 #ifdef __STDC__
21432 # include <limits.h>
21433 #else
21434 # include <assert.h>
21435 #endif
21436
21437 #undef $ac_func
21438
21439 /* Override any GCC internal prototype to avoid an error.
21440    Use char because int might match the return type of a GCC
21441    builtin and then its argument prototype would still apply.  */
21442 #ifdef __cplusplus
21443 extern "C"
21444 #endif
21445 char $ac_func ();
21446 /* The GNU C library defines this for functions which it implements
21447     to always fail with ENOSYS.  Some functions are actually named
21448     something starting with __ and the normal name is an alias.  */
21449 #if defined __stub_$ac_func || defined __stub___$ac_func
21450 choke me
21451 #endif
21452
21453 int
21454 main ()
21455 {
21456 return $ac_func ();
21457   ;
21458   return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465   *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468   (eval "$ac_link") 2>conftest.er1
21469   ac_status=$?
21470   grep -v '^ *+' conftest.er1 >conftest.err
21471   rm -f conftest.er1
21472   cat conftest.err >&5
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } && {
21475          test -z "$ac_c_werror_flag" ||
21476          test ! -s conftest.err
21477        } && test -s conftest$ac_exeext &&
21478        $as_test_x conftest$ac_exeext; then
21479   eval "$as_ac_var=yes"
21480 else
21481   echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484         eval "$as_ac_var=no"
21485 fi
21486
21487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21488       conftest$ac_exeext conftest.$ac_ext
21489 fi
21490 ac_res=`eval echo '${'$as_ac_var'}'`
21491                { echo "$as_me:$LINENO: result: $ac_res" >&5
21492 echo "${ECHO_T}$ac_res" >&6; }
21493 if test `eval echo '${'$as_ac_var'}'` = yes; then
21494   cat >>confdefs.h <<_ACEOF
21495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21496 _ACEOF
21497
21498 fi
21499 done
21500
21501 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21502 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21503 if test "${ac_cv_have_working_snprintf+set}" = set; then
21504   echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506   if test "$cross_compiling" = yes; then
21507   ac_cv_have_working_snprintf=cross
21508 else
21509   cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h.  */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h.  */
21515 #include <stdio.h>
21516
21517 int main(void)
21518 {
21519     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21520     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21521     int i;
21522     i = snprintf (bufs, 2, "%s", "111");
21523     if (strcmp (bufs, "1")) exit (1);
21524     if (i != 3) exit (1);
21525     i = snprintf (bufd, 2, "%d", 111);
21526     if (strcmp (bufd, "1")) exit (1);
21527     if (i != 3) exit (1);
21528     exit(0);
21529 }
21530 _ACEOF
21531 rm -f conftest$ac_exeext
21532 if { (ac_try="$ac_link"
21533 case "(($ac_try" in
21534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535   *) ac_try_echo=$ac_try;;
21536 esac
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538   (eval "$ac_link") 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21542   { (case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547   (eval "$ac_try") 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; }; then
21551   ac_cv_have_working_snprintf=yes
21552 else
21553   echo "$as_me: program exited with status $ac_status" >&5
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557 ( exit $ac_status )
21558 ac_cv_have_working_snprintf=no
21559 fi
21560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21561 fi
21562
21563
21564 fi
21565
21566 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21567 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21568 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21569 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21570 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21571   echo $ECHO_N "(cached) $ECHO_C" >&6
21572 else
21573   if test "$cross_compiling" = yes; then
21574   ac_cv_have_working_vsnprintf=cross
21575 else
21576   cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582 #include <stdio.h>
21583 #include <stdarg.h>
21584
21585 int my_vsnprintf (char *buf, const char *tmpl, ...)
21586 {
21587     int i;
21588     va_list args;
21589     va_start (args, tmpl);
21590     i = vsnprintf (buf, 2, tmpl, args);
21591     va_end (args);
21592     return i;
21593 }
21594
21595 int main(void)
21596 {
21597     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21598     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21599     int i;
21600     i = my_vsnprintf (bufs, "%s", "111");
21601     if (strcmp (bufs, "1")) exit (1);
21602     if (i != 3) exit (1);
21603     i = my_vsnprintf (bufd, "%d", 111);
21604     if (strcmp (bufd, "1")) exit (1);
21605     if (i != 3) exit (1);
21606     exit(0);
21607 }
21608 _ACEOF
21609 rm -f conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_link") 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21620   { (case "(($ac_try" in
21621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622   *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625   (eval "$ac_try") 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); }; }; then
21629   ac_cv_have_working_vsnprintf=yes
21630 else
21631   echo "$as_me: program exited with status $ac_status" >&5
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635 ( exit $ac_status )
21636 ac_cv_have_working_vsnprintf=no
21637 fi
21638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21639 fi
21640
21641
21642 fi
21643
21644 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21645 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21646 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21647   case " $LIBOBJS " in
21648   *" snprintf.$ac_objext "* ) ;;
21649   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21650  ;;
21651 esac
21652
21653   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21654 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define PREFER_PORTABLE_SNPRINTF 1
21658 _ACEOF
21659
21660 fi
21661 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21662 { echo "$as_me:$LINENO: checking for asprintf" >&5
21663 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21664 if test "${ac_cv_func_asprintf+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h.  */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h.  */
21673 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21675 #define asprintf innocuous_asprintf
21676
21677 /* System header to define __stub macros and hopefully few prototypes,
21678     which can conflict with char asprintf (); below.
21679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21680     <limits.h> exists even on freestanding compilers.  */
21681
21682 #ifdef __STDC__
21683 # include <limits.h>
21684 #else
21685 # include <assert.h>
21686 #endif
21687
21688 #undef asprintf
21689
21690 /* Override any GCC internal prototype to avoid an error.
21691    Use char because int might match the return type of a GCC
21692    builtin and then its argument prototype would still apply.  */
21693 #ifdef __cplusplus
21694 extern "C"
21695 #endif
21696 char asprintf ();
21697 /* The GNU C library defines this for functions which it implements
21698     to always fail with ENOSYS.  Some functions are actually named
21699     something starting with __ and the normal name is an alias.  */
21700 #if defined __stub_asprintf || defined __stub___asprintf
21701 choke me
21702 #endif
21703
21704 int
21705 main ()
21706 {
21707 return asprintf ();
21708   ;
21709   return 0;
21710 }
21711 _ACEOF
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716   *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719   (eval "$ac_link") 2>conftest.er1
21720   ac_status=$?
21721   grep -v '^ *+' conftest.er1 >conftest.err
21722   rm -f conftest.er1
21723   cat conftest.err >&5
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); } && {
21726          test -z "$ac_c_werror_flag" ||
21727          test ! -s conftest.err
21728        } && test -s conftest$ac_exeext &&
21729        $as_test_x conftest$ac_exeext; then
21730   ac_cv_func_asprintf=yes
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735         ac_cv_func_asprintf=no
21736 fi
21737
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739       conftest$ac_exeext conftest.$ac_ext
21740 fi
21741 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21742 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21743 if test $ac_cv_func_asprintf = yes; then
21744   :
21745 else
21746
21747 cat >>confdefs.h <<\_ACEOF
21748 #define NEED_ASPRINTF 1
21749 _ACEOF
21750
21751 fi
21752
21753 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21754 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21755 if test "${ac_cv_func_vasprintf+set}" = set; then
21756   echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758   cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21766 #define vasprintf innocuous_vasprintf
21767
21768 /* System header to define __stub macros and hopefully few prototypes,
21769     which can conflict with char vasprintf (); below.
21770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771     <limits.h> exists even on freestanding compilers.  */
21772
21773 #ifdef __STDC__
21774 # include <limits.h>
21775 #else
21776 # include <assert.h>
21777 #endif
21778
21779 #undef vasprintf
21780
21781 /* Override any GCC internal prototype to avoid an error.
21782    Use char because int might match the return type of a GCC
21783    builtin and then its argument prototype would still apply.  */
21784 #ifdef __cplusplus
21785 extern "C"
21786 #endif
21787 char vasprintf ();
21788 /* The GNU C library defines this for functions which it implements
21789     to always fail with ENOSYS.  Some functions are actually named
21790     something starting with __ and the normal name is an alias.  */
21791 #if defined __stub_vasprintf || defined __stub___vasprintf
21792 choke me
21793 #endif
21794
21795 int
21796 main ()
21797 {
21798 return vasprintf ();
21799   ;
21800   return 0;
21801 }
21802 _ACEOF
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_link") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } && {
21817          test -z "$ac_c_werror_flag" ||
21818          test ! -s conftest.err
21819        } && test -s conftest$ac_exeext &&
21820        $as_test_x conftest$ac_exeext; then
21821   ac_cv_func_vasprintf=yes
21822 else
21823   echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21825
21826         ac_cv_func_vasprintf=no
21827 fi
21828
21829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830       conftest$ac_exeext conftest.$ac_ext
21831 fi
21832 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21833 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21834 if test $ac_cv_func_vasprintf = yes; then
21835   :
21836 else
21837
21838 cat >>confdefs.h <<\_ACEOF
21839 #define NEED_VASPRINTF 1
21840 _ACEOF
21841
21842 fi
21843
21844
21845 # Checks for typedefs, structures, and compiler characteristics.
21846 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21847 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21848 if test "${ac_cv_c_const+set}" = set; then
21849   echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851   cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857
21858 int
21859 main ()
21860 {
21861 /* FIXME: Include the comments suggested by Paul. */
21862 #ifndef __cplusplus
21863   /* Ultrix mips cc rejects this.  */
21864   typedef int charset[2];
21865   const charset cs;
21866   /* SunOS 4.1.1 cc rejects this.  */
21867   char const *const *pcpcc;
21868   char **ppc;
21869   /* NEC SVR4.0.2 mips cc rejects this.  */
21870   struct point {int x, y;};
21871   static struct point const zero = {0,0};
21872   /* AIX XL C 1.02.0.0 rejects this.
21873      It does not let you subtract one const X* pointer from another in
21874      an arm of an if-expression whose if-part is not a constant
21875      expression */
21876   const char *g = "string";
21877   pcpcc = &g + (g ? g-g : 0);
21878   /* HPUX 7.0 cc rejects these. */
21879   ++pcpcc;
21880   ppc = (char**) pcpcc;
21881   pcpcc = (char const *const *) ppc;
21882   { /* SCO 3.2v4 cc rejects this.  */
21883     char *t;
21884     char const *s = 0 ? (char *) 0 : (char const *) 0;
21885
21886     *t++ = 0;
21887     if (s) return 0;
21888   }
21889   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21890     int x[] = {25, 17};
21891     const int *foo = &x[0];
21892     ++foo;
21893   }
21894   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21895     typedef const int *iptr;
21896     iptr p = 0;
21897     ++p;
21898   }
21899   { /* AIX XL C 1.02.0.0 rejects this saying
21900        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21901     struct s { int j; const int *ap[3]; };
21902     struct s *b; b->j = 5;
21903   }
21904   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21905     const int foo = 10;
21906     if (!foo) return 0;
21907   }
21908   return !cs[0] && !zero.x;
21909 #endif
21910
21911   ;
21912   return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest.$ac_objext
21916 if { (ac_try="$ac_compile"
21917 case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_compile") 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } && {
21929          test -z "$ac_c_werror_flag" ||
21930          test ! -s conftest.err
21931        } && test -s conftest.$ac_objext; then
21932   ac_cv_c_const=yes
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937         ac_cv_c_const=no
21938 fi
21939
21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 fi
21942 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21943 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21944 if test $ac_cv_c_const = no; then
21945
21946 cat >>confdefs.h <<\_ACEOF
21947 #define const
21948 _ACEOF
21949
21950 fi
21951
21952 { echo "$as_me:$LINENO: checking for inline" >&5
21953 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21954 if test "${ac_cv_c_inline+set}" = set; then
21955   echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957   ac_cv_c_inline=no
21958 for ac_kw in inline __inline__ __inline; do
21959   cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h.  */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h.  */
21965 #ifndef __cplusplus
21966 typedef int foo_t;
21967 static $ac_kw foo_t static_foo () {return 0; }
21968 $ac_kw foo_t foo () {return 0; }
21969 #endif
21970
21971 _ACEOF
21972 rm -f conftest.$ac_objext
21973 if { (ac_try="$ac_compile"
21974 case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_compile") 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } && {
21986          test -z "$ac_c_werror_flag" ||
21987          test ! -s conftest.err
21988        } && test -s conftest.$ac_objext; then
21989   ac_cv_c_inline=$ac_kw
21990 else
21991   echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994
21995 fi
21996
21997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21998   test "$ac_cv_c_inline" != no && break
21999 done
22000
22001 fi
22002 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22003 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22004
22005
22006 case $ac_cv_c_inline in
22007   inline | yes) ;;
22008   *)
22009     case $ac_cv_c_inline in
22010       no) ac_val=;;
22011       *) ac_val=$ac_cv_c_inline;;
22012     esac
22013     cat >>confdefs.h <<_ACEOF
22014 #ifndef __cplusplus
22015 #define inline $ac_val
22016 #endif
22017 _ACEOF
22018     ;;
22019 esac
22020
22021 { echo "$as_me:$LINENO: checking for size_t" >&5
22022 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22023 if test "${ac_cv_type_size_t+set}" = set; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026   cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h.  */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h.  */
22032 $ac_includes_default
22033 typedef size_t ac__type_new_;
22034 int
22035 main ()
22036 {
22037 if ((ac__type_new_ *) 0)
22038   return 0;
22039 if (sizeof (ac__type_new_))
22040   return 0;
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext
22046 if { (ac_try="$ac_compile"
22047 case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_compile") 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } && {
22059          test -z "$ac_c_werror_flag" ||
22060          test ! -s conftest.err
22061        } && test -s conftest.$ac_objext; then
22062   ac_cv_type_size_t=yes
22063 else
22064   echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22066
22067         ac_cv_type_size_t=no
22068 fi
22069
22070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 fi
22072 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22073 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22074 if test $ac_cv_type_size_t = yes; then
22075   :
22076 else
22077
22078 cat >>confdefs.h <<_ACEOF
22079 #define size_t unsigned int
22080 _ACEOF
22081
22082 fi
22083
22084
22085 ###################################
22086 ## SimGrid and GRAS specific checks
22087 ##
22088
22089
22090   { echo "$as_me:$LINENO: result: " >&5
22091 echo "${ECHO_T}" >&6; }
22092   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22093 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22094
22095 # Check architecture signature begin
22096
22097 # Check for the architecture
22098 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22099 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22100 if test "${ac_cv_c_bigendian+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   # See if sys/param.h defines the BYTE_ORDER macro.
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 #include <sys/types.h>
22111 #include <sys/param.h>
22112
22113 int
22114 main ()
22115 {
22116 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22117         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22118  bogus endian macros
22119 #endif
22120
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129   *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132   (eval "$ac_compile") 2>conftest.er1
22133   ac_status=$?
22134   grep -v '^ *+' conftest.er1 >conftest.err
22135   rm -f conftest.er1
22136   cat conftest.err >&5
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } && {
22139          test -z "$ac_c_werror_flag" ||
22140          test ! -s conftest.err
22141        } && test -s conftest.$ac_objext; then
22142   # It does; now see whether it defined to BIG_ENDIAN or not.
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 #include <sys/types.h>
22150 #include <sys/param.h>
22151
22152 int
22153 main ()
22154 {
22155 #if BYTE_ORDER != BIG_ENDIAN
22156  not big endian
22157 #endif
22158
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 rm -f conftest.$ac_objext
22164 if { (ac_try="$ac_compile"
22165 case "(($ac_try" in
22166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167   *) ac_try_echo=$ac_try;;
22168 esac
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170   (eval "$ac_compile") 2>conftest.er1
22171   ac_status=$?
22172   grep -v '^ *+' conftest.er1 >conftest.err
22173   rm -f conftest.er1
22174   cat conftest.err >&5
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); } && {
22177          test -z "$ac_c_werror_flag" ||
22178          test ! -s conftest.err
22179        } && test -s conftest.$ac_objext; then
22180   ac_cv_c_bigendian=yes
22181 else
22182   echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185         ac_cv_c_bigendian=no
22186 fi
22187
22188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189 else
22190   echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193         # It does not; compile a test program.
22194 if test "$cross_compiling" = yes; then
22195   # try to guess the endianness by grepping values into an object file
22196   ac_cv_c_bigendian=unknown
22197   cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22204 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22205 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22206 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22207 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22208 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22209 int
22210 main ()
22211 {
22212  _ascii (); _ebcdic ();
22213   ;
22214   return 0;
22215 }
22216 _ACEOF
22217 rm -f conftest.$ac_objext
22218 if { (ac_try="$ac_compile"
22219 case "(($ac_try" in
22220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221   *) ac_try_echo=$ac_try;;
22222 esac
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224   (eval "$ac_compile") 2>conftest.er1
22225   ac_status=$?
22226   grep -v '^ *+' conftest.er1 >conftest.err
22227   rm -f conftest.er1
22228   cat conftest.err >&5
22229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230   (exit $ac_status); } && {
22231          test -z "$ac_c_werror_flag" ||
22232          test ! -s conftest.err
22233        } && test -s conftest.$ac_objext; then
22234   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22235   ac_cv_c_bigendian=yes
22236 fi
22237 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22238   if test "$ac_cv_c_bigendian" = unknown; then
22239     ac_cv_c_bigendian=no
22240   else
22241     # finding both strings is unlikely to happen, but who knows?
22242     ac_cv_c_bigendian=unknown
22243   fi
22244 fi
22245 else
22246   echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22248
22249
22250 fi
22251
22252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 else
22254   cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 $ac_includes_default
22261 int
22262 main ()
22263 {
22264
22265   /* Are we little or big endian?  From Harbison&Steele.  */
22266   union
22267   {
22268     long int l;
22269     char c[sizeof (long int)];
22270   } u;
22271   u.l = 1;
22272   return u.c[sizeof (long int) - 1] == 1;
22273
22274   ;
22275   return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285   (eval "$ac_link") 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22289   { (case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_try") 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); }; }; then
22298   ac_cv_c_bigendian=no
22299 else
22300   echo "$as_me: program exited with status $ac_status" >&5
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ( exit $ac_status )
22305 ac_cv_c_bigendian=yes
22306 fi
22307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308 fi
22309
22310
22311 fi
22312
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 fi
22315 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22316 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22317 case $ac_cv_c_bigendian in
22318   yes)
22319     endian=1 ;;
22320   no)
22321     endian=0 ;;
22322   *)
22323     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22324 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22325    { (exit 1); exit 1; }; } ;;
22326 esac
22327
22328
22329 cat >>confdefs.h <<_ACEOF
22330 #define GRAS_BIGENDIAN $endian
22331 _ACEOF
22332
22333
22334 { echo "$as_me:$LINENO: checking size of char" >&5
22335 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22336     if test "${ac_cv_sizeof_char+set}" = set; then
22337   echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22340    cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h.  */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h.  */
22346 #include "confdefs.h"
22347    #include <sys/types.h>
22348
22349
22350 int
22351 main ()
22352 {
22353 switch (0) case 0: case (sizeof (char) == $ac_size):;
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 rm -f conftest.$ac_objext
22359 if { (ac_try="$ac_compile"
22360 case "(($ac_try" in
22361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362   *) ac_try_echo=$ac_try;;
22363 esac
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365   (eval "$ac_compile") 2>conftest.er1
22366   ac_status=$?
22367   grep -v '^ *+' conftest.er1 >conftest.err
22368   rm -f conftest.er1
22369   cat conftest.err >&5
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } && {
22372          test -z "$ac_c_werror_flag" ||
22373          test ! -s conftest.err
22374        } && test -s conftest.$ac_objext; then
22375   ac_cv_sizeof_char=$ac_size
22376 else
22377   echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380
22381 fi
22382
22383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384    if test x$ac_cv_sizeof_char != x ; then break; fi
22385   done
22386
22387 fi
22388
22389
22390 unspecif=$ac_cv_sizeof_char
22391 if test x$unspecif = x ; then
22392   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22393 echo "$as_me: error: cannot determine a size for char" >&2;}
22394    { (exit 1); exit 1; }; }
22395 fi
22396
22397     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22401    cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407 #include "confdefs.h"
22408    #include <sys/types.h>
22409
22410
22411 int
22412 main ()
22413 {
22414 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423   *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426   (eval "$ac_compile") 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } && {
22433          test -z "$ac_c_werror_flag" ||
22434          test ! -s conftest.err
22435        } && test -s conftest.$ac_objext; then
22436   ac_cv_sizeof_signed_char=$ac_size
22437 else
22438   echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441
22442 fi
22443
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22446   done
22447
22448 fi
22449
22450
22451 signed=$ac_cv_sizeof_signed_char
22452 if test x$signed = x ; then
22453   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22454 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22455    { (exit 1); exit 1; }; }
22456 fi
22457 if test x$unspecif != x$signed ; then
22458   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22459 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22460    { (exit 1); exit 1; }; }
22461 fi
22462
22463     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22467    cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473 #include "confdefs.h"
22474    #include <sys/types.h>
22475
22476
22477 int
22478 main ()
22479 {
22480 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492   (eval "$ac_compile") 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && {
22499          test -z "$ac_c_werror_flag" ||
22500          test ! -s conftest.err
22501        } && test -s conftest.$ac_objext; then
22502   ac_cv_sizeof_unsigned_char=$ac_size
22503 else
22504   echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22506
22507
22508 fi
22509
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22512   done
22513
22514 fi
22515
22516
22517 unsigned=$ac_cv_sizeof_unsigned_char
22518 if test x$unsigned = x ; then
22519   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22520 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22521    { (exit 1); exit 1; }; }
22522 fi
22523 if test x$unsigned != x$signed ; then
22524   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22525 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22526    { (exit 1); exit 1; }; }
22527 fi
22528
22529 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22530 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22531                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22532 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22533
22534  if test "${ac_cv_struct_boundary_char+set}" = set; then
22535   echo $ECHO_N "(cached) $ECHO_C" >&6
22536 else
22537   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22538    cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h.  */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h.  */
22544 #include "confdefs.h"
22545      #include <sys/types.h>
22546      struct s { char c; char i; };
22547
22548 int
22549 main ()
22550 {
22551 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22552   ;
22553   return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560   *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563   (eval "$ac_compile") 2>conftest.er1
22564   ac_status=$?
22565   grep -v '^ *+' conftest.er1 >conftest.err
22566   rm -f conftest.er1
22567   cat conftest.err >&5
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } && {
22570          test -z "$ac_c_werror_flag" ||
22571          test ! -s conftest.err
22572        } && test -s conftest.$ac_objext; then
22573   ac_cv_struct_boundary_char=$ac_size
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578
22579 fi
22580
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22583   done
22584
22585 fi
22586
22587  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22588 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22589  if test x$ac_cv_struct_boundary_char = x ; then
22590    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22591 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22592    { (exit 1); exit 1; }; }
22593  fi
22594
22595 { echo "$as_me:$LINENO: checking size of short int" >&5
22596 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22597     if test "${ac_cv_sizeof_short_int+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22601    cat >conftest.$ac_ext <<_ACEOF
22602 /* confdefs.h.  */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h.  */
22607 #include "confdefs.h"
22608    #include <sys/types.h>
22609
22610
22611 int
22612 main ()
22613 {
22614 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623   *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626   (eval "$ac_compile") 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } && {
22633          test -z "$ac_c_werror_flag" ||
22634          test ! -s conftest.err
22635        } && test -s conftest.$ac_objext; then
22636   ac_cv_sizeof_short_int=$ac_size
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641
22642 fi
22643
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22646   done
22647
22648 fi
22649
22650
22651 unspecif=$ac_cv_sizeof_short_int
22652 if test x$unspecif = x ; then
22653   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22654 echo "$as_me: error: cannot determine a size for short int" >&2;}
22655    { (exit 1); exit 1; }; }
22656 fi
22657
22658     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22659   echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22661   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22662    cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668 #include "confdefs.h"
22669    #include <sys/types.h>
22670
22671
22672 int
22673 main ()
22674 {
22675 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22676   ;
22677   return 0;
22678 }
22679 _ACEOF
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684   *) ac_try_echo=$ac_try;;
22685 esac
22686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687   (eval "$ac_compile") 2>conftest.er1
22688   ac_status=$?
22689   grep -v '^ *+' conftest.er1 >conftest.err
22690   rm -f conftest.er1
22691   cat conftest.err >&5
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); } && {
22694          test -z "$ac_c_werror_flag" ||
22695          test ! -s conftest.err
22696        } && test -s conftest.$ac_objext; then
22697   ac_cv_sizeof_signed_short_int=$ac_size
22698 else
22699   echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702
22703 fi
22704
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22707   done
22708
22709 fi
22710
22711
22712 signed=$ac_cv_sizeof_signed_short_int
22713 if test x$signed = x ; then
22714   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22715 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22716    { (exit 1); exit 1; }; }
22717 fi
22718 if test x$unspecif != x$signed ; then
22719   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22720 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22721    { (exit 1); exit 1; }; }
22722 fi
22723
22724     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22725   echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22727   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22728    cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734 #include "confdefs.h"
22735    #include <sys/types.h>
22736
22737
22738 int
22739 main ()
22740 {
22741 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_compile") 2>conftest.er1
22754   ac_status=$?
22755   grep -v '^ *+' conftest.er1 >conftest.err
22756   rm -f conftest.er1
22757   cat conftest.err >&5
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); } && {
22760          test -z "$ac_c_werror_flag" ||
22761          test ! -s conftest.err
22762        } && test -s conftest.$ac_objext; then
22763   ac_cv_sizeof_unsigned_short_int=$ac_size
22764 else
22765   echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768
22769 fi
22770
22771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22773   done
22774
22775 fi
22776
22777
22778 unsigned=$ac_cv_sizeof_unsigned_short_int
22779 if test x$unsigned = x ; then
22780   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22781 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22782    { (exit 1); exit 1; }; }
22783 fi
22784 if test x$unsigned != x$signed ; then
22785   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22786 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22787    { (exit 1); exit 1; }; }
22788 fi
22789
22790 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22791 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22792              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22793 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22794
22795  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22796   echo $ECHO_N "(cached) $ECHO_C" >&6
22797 else
22798   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22799    cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h.  */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h.  */
22805 #include "confdefs.h"
22806      #include <sys/types.h>
22807      struct s { char c; short int i; };
22808
22809 int
22810 main ()
22811 {
22812 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22813   ;
22814   return 0;
22815 }
22816 _ACEOF
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821   *) ac_try_echo=$ac_try;;
22822 esac
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824   (eval "$ac_compile") 2>conftest.er1
22825   ac_status=$?
22826   grep -v '^ *+' conftest.er1 >conftest.err
22827   rm -f conftest.er1
22828   cat conftest.err >&5
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); } && {
22831          test -z "$ac_c_werror_flag" ||
22832          test ! -s conftest.err
22833        } && test -s conftest.$ac_objext; then
22834   ac_cv_struct_boundary_short_int=$ac_size
22835 else
22836   echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22838
22839
22840 fi
22841
22842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22844   done
22845
22846 fi
22847
22848  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22849 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22850  if test x$ac_cv_struct_boundary_short_int = x ; then
22851    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22852 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22853    { (exit 1); exit 1; }; }
22854  fi
22855
22856 { echo "$as_me:$LINENO: checking size of int" >&5
22857 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22858     if test "${ac_cv_sizeof_int+set}" = set; then
22859   echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22862    cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 #include "confdefs.h"
22869    #include <sys/types.h>
22870
22871
22872 int
22873 main ()
22874 {
22875 switch (0) case 0: case (sizeof (int) == $ac_size):;
22876   ;
22877   return 0;
22878 }
22879 _ACEOF
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884   *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887   (eval "$ac_compile") 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && {
22894          test -z "$ac_c_werror_flag" ||
22895          test ! -s conftest.err
22896        } && test -s conftest.$ac_objext; then
22897   ac_cv_sizeof_int=$ac_size
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906    if test x$ac_cv_sizeof_int != x ; then break; fi
22907   done
22908
22909 fi
22910
22911
22912 unspecif=$ac_cv_sizeof_int
22913 if test x$unspecif = x ; then
22914   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22915 echo "$as_me: error: cannot determine a size for int" >&2;}
22916    { (exit 1); exit 1; }; }
22917 fi
22918
22919     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22920   echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22923    cat >conftest.$ac_ext <<_ACEOF
22924 /* confdefs.h.  */
22925 _ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h.  */
22929 #include "confdefs.h"
22930    #include <sys/types.h>
22931
22932
22933 int
22934 main ()
22935 {
22936 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22937   ;
22938   return 0;
22939 }
22940 _ACEOF
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945   *) ac_try_echo=$ac_try;;
22946 esac
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948   (eval "$ac_compile") 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } && {
22955          test -z "$ac_c_werror_flag" ||
22956          test ! -s conftest.err
22957        } && test -s conftest.$ac_objext; then
22958   ac_cv_sizeof_signed_int=$ac_size
22959 else
22960   echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963
22964 fi
22965
22966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22968   done
22969
22970 fi
22971
22972
22973 signed=$ac_cv_sizeof_signed_int
22974 if test x$signed = x ; then
22975   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22976 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22977    { (exit 1); exit 1; }; }
22978 fi
22979 if test x$unspecif != x$signed ; then
22980   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22981 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22982    { (exit 1); exit 1; }; }
22983 fi
22984
22985     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22989    cat >conftest.$ac_ext <<_ACEOF
22990 /* confdefs.h.  */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h.  */
22995 #include "confdefs.h"
22996    #include <sys/types.h>
22997
22998
22999 int
23000 main ()
23001 {
23002 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23003   ;
23004   return 0;
23005 }
23006 _ACEOF
23007 rm -f conftest.$ac_objext
23008 if { (ac_try="$ac_compile"
23009 case "(($ac_try" in
23010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011   *) ac_try_echo=$ac_try;;
23012 esac
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014   (eval "$ac_compile") 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } && {
23021          test -z "$ac_c_werror_flag" ||
23022          test ! -s conftest.err
23023        } && test -s conftest.$ac_objext; then
23024   ac_cv_sizeof_unsigned_int=$ac_size
23025 else
23026   echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029
23030 fi
23031
23032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23033    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23034   done
23035
23036 fi
23037
23038
23039 unsigned=$ac_cv_sizeof_unsigned_int
23040 if test x$unsigned = x ; then
23041   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23042 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23043    { (exit 1); exit 1; }; }
23044 fi
23045 if test x$unsigned != x$signed ; then
23046   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23047 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23048    { (exit 1); exit 1; }; }
23049 fi
23050
23051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23052 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23053                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23054 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23055
23056  if test "${ac_cv_struct_boundary_int+set}" = set; then
23057   echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23060    cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 #include "confdefs.h"
23067      #include <sys/types.h>
23068      struct s { char c; int i; };
23069
23070 int
23071 main ()
23072 {
23073 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082   *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085   (eval "$ac_compile") 2>conftest.er1
23086   ac_status=$?
23087   grep -v '^ *+' conftest.er1 >conftest.err
23088   rm -f conftest.er1
23089   cat conftest.err >&5
23090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091   (exit $ac_status); } && {
23092          test -z "$ac_c_werror_flag" ||
23093          test ! -s conftest.err
23094        } && test -s conftest.$ac_objext; then
23095   ac_cv_struct_boundary_int=$ac_size
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23105   done
23106
23107 fi
23108
23109  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23110 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23111  if test x$ac_cv_struct_boundary_int = x ; then
23112    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23113 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23114    { (exit 1); exit 1; }; }
23115  fi
23116
23117 { echo "$as_me:$LINENO: checking size of long int" >&5
23118 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23119     if test "${ac_cv_sizeof_long_int+set}" = set; then
23120   echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23123    cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include "confdefs.h"
23130    #include <sys/types.h>
23131
23132
23133 int
23134 main ()
23135 {
23136 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23137   ;
23138   return 0;
23139 }
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145   *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148   (eval "$ac_compile") 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && {
23155          test -z "$ac_c_werror_flag" ||
23156          test ! -s conftest.err
23157        } && test -s conftest.$ac_objext; then
23158   ac_cv_sizeof_long_int=$ac_size
23159 else
23160   echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23162
23163
23164 fi
23165
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23168   done
23169
23170 fi
23171
23172
23173 unspecif=$ac_cv_sizeof_long_int
23174 if test x$unspecif = x ; then
23175   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23176 echo "$as_me: error: cannot determine a size for long int" >&2;}
23177    { (exit 1); exit 1; }; }
23178 fi
23179
23180     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23181   echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23184    cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h.  */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h.  */
23190 #include "confdefs.h"
23191    #include <sys/types.h>
23192
23193
23194 int
23195 main ()
23196 {
23197 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext
23203 if { (ac_try="$ac_compile"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_compile") 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } && {
23216          test -z "$ac_c_werror_flag" ||
23217          test ! -s conftest.err
23218        } && test -s conftest.$ac_objext; then
23219   ac_cv_sizeof_signed_long_int=$ac_size
23220 else
23221   echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23223
23224
23225 fi
23226
23227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23229   done
23230
23231 fi
23232
23233
23234 signed=$ac_cv_sizeof_signed_long_int
23235 if test x$signed = x ; then
23236   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23237 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23238    { (exit 1); exit 1; }; }
23239 fi
23240 if test x$unspecif != x$signed ; then
23241   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23242 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23243    { (exit 1); exit 1; }; }
23244 fi
23245
23246     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23250    cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256 #include "confdefs.h"
23257    #include <sys/types.h>
23258
23259
23260 int
23261 main ()
23262 {
23263 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest.$ac_objext
23269 if { (ac_try="$ac_compile"
23270 case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275   (eval "$ac_compile") 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } && {
23282          test -z "$ac_c_werror_flag" ||
23283          test ! -s conftest.err
23284        } && test -s conftest.$ac_objext; then
23285   ac_cv_sizeof_unsigned_long_int=$ac_size
23286 else
23287   echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290
23291 fi
23292
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23295   done
23296
23297 fi
23298
23299
23300 unsigned=$ac_cv_sizeof_unsigned_long_int
23301 if test x$unsigned = x ; then
23302   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23303 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23304    { (exit 1); exit 1; }; }
23305 fi
23306 if test x$unsigned != x$signed ; then
23307   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23308 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23309    { (exit 1); exit 1; }; }
23310 fi
23311
23312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23313 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23314               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23315 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23316
23317  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23318   echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23320   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23321    cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h.  */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h.  */
23327 #include "confdefs.h"
23328      #include <sys/types.h>
23329      struct s { char c; long int i; };
23330
23331 int
23332 main ()
23333 {
23334 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23335   ;
23336   return 0;
23337 }
23338 _ACEOF
23339 rm -f conftest.$ac_objext
23340 if { (ac_try="$ac_compile"
23341 case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_compile") 2>conftest.er1
23347   ac_status=$?
23348   grep -v '^ *+' conftest.er1 >conftest.err
23349   rm -f conftest.er1
23350   cat conftest.err >&5
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); } && {
23353          test -z "$ac_c_werror_flag" ||
23354          test ! -s conftest.err
23355        } && test -s conftest.$ac_objext; then
23356   ac_cv_struct_boundary_long_int=$ac_size
23357 else
23358   echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23360
23361
23362 fi
23363
23364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23366   done
23367
23368 fi
23369
23370  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23371 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23372  if test x$ac_cv_struct_boundary_long_int = x ; then
23373    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23374 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23375    { (exit 1); exit 1; }; }
23376  fi
23377
23378 { echo "$as_me:$LINENO: checking size of long long int" >&5
23379 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23380     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23384    cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h.  */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h.  */
23390 #include "confdefs.h"
23391    #include <sys/types.h>
23392
23393
23394 int
23395 main ()
23396 {
23397 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406   *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409   (eval "$ac_compile") 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } && {
23416          test -z "$ac_c_werror_flag" ||
23417          test ! -s conftest.err
23418        } && test -s conftest.$ac_objext; then
23419   ac_cv_sizeof_long_long_int=$ac_size
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23429   done
23430
23431 fi
23432
23433
23434 unspecif=$ac_cv_sizeof_long_long_int
23435 if test x$unspecif = x ; then
23436   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23437 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23438    { (exit 1); exit 1; }; }
23439 fi
23440
23441     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23442   echo $ECHO_N "(cached) $ECHO_C" >&6
23443 else
23444   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23445    cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h.  */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h.  */
23451 #include "confdefs.h"
23452    #include <sys/types.h>
23453
23454
23455 int
23456 main ()
23457 {
23458 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467   *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470   (eval "$ac_compile") 2>conftest.er1
23471   ac_status=$?
23472   grep -v '^ *+' conftest.er1 >conftest.err
23473   rm -f conftest.er1
23474   cat conftest.err >&5
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); } && {
23477          test -z "$ac_c_werror_flag" ||
23478          test ! -s conftest.err
23479        } && test -s conftest.$ac_objext; then
23480   ac_cv_sizeof_signed_long_long_int=$ac_size
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485
23486 fi
23487
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23490   done
23491
23492 fi
23493
23494
23495 signed=$ac_cv_sizeof_signed_long_long_int
23496 if test x$signed = x ; then
23497   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23498 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23499    { (exit 1); exit 1; }; }
23500 fi
23501 if test x$unspecif != x$signed ; then
23502   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23503 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23504    { (exit 1); exit 1; }; }
23505 fi
23506
23507     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23508   echo $ECHO_N "(cached) $ECHO_C" >&6
23509 else
23510   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23511    cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h.  */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h.  */
23517 #include "confdefs.h"
23518    #include <sys/types.h>
23519
23520
23521 int
23522 main ()
23523 {
23524 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533   *) ac_try_echo=$ac_try;;
23534 esac
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536   (eval "$ac_compile") 2>conftest.er1
23537   ac_status=$?
23538   grep -v '^ *+' conftest.er1 >conftest.err
23539   rm -f conftest.er1
23540   cat conftest.err >&5
23541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); } && {
23543          test -z "$ac_c_werror_flag" ||
23544          test ! -s conftest.err
23545        } && test -s conftest.$ac_objext; then
23546   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23547 else
23548   echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23550
23551
23552 fi
23553
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23556   done
23557
23558 fi
23559
23560
23561 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23562 if test x$unsigned = x ; then
23563   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23564 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23565    { (exit 1); exit 1; }; }
23566 fi
23567 if test x$unsigned != x$signed ; then
23568   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23569 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23570    { (exit 1); exit 1; }; }
23571 fi
23572
23573 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23574 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23575          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23576 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23577
23578  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23579   echo $ECHO_N "(cached) $ECHO_C" >&6
23580 else
23581   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23582    cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588 #include "confdefs.h"
23589      #include <sys/types.h>
23590      struct s { char c; long long int i; };
23591
23592 int
23593 main ()
23594 {
23595 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23596   ;
23597   return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext
23601 if { (ac_try="$ac_compile"
23602 case "(($ac_try" in
23603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604   *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607   (eval "$ac_compile") 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && {
23614          test -z "$ac_c_werror_flag" ||
23615          test ! -s conftest.err
23616        } && test -s conftest.$ac_objext; then
23617   ac_cv_struct_boundary_long_long_int=$ac_size
23618 else
23619   echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622
23623 fi
23624
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23627   done
23628
23629 fi
23630
23631  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23632 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23633  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23634    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23635 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23636    { (exit 1); exit 1; }; }
23637  fi
23638
23639
23640     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23641 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23642
23643  if test "${ac_cv_struct_boundary_float+set}" = set; then
23644   echo $ECHO_N "(cached) $ECHO_C" >&6
23645 else
23646   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23647    cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 #include "confdefs.h"
23654      #include <sys/types.h>
23655      struct s { char c; float i; };
23656
23657 int
23658 main ()
23659 {
23660 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 rm -f conftest.$ac_objext
23666 if { (ac_try="$ac_compile"
23667 case "(($ac_try" in
23668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669   *) ac_try_echo=$ac_try;;
23670 esac
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672   (eval "$ac_compile") 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } && {
23679          test -z "$ac_c_werror_flag" ||
23680          test ! -s conftest.err
23681        } && test -s conftest.$ac_objext; then
23682   ac_cv_struct_boundary_float=$ac_size
23683 else
23684   echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687
23688 fi
23689
23690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23691    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23692   done
23693
23694 fi
23695
23696  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23697 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23698  if test x$ac_cv_struct_boundary_float = x ; then
23699    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23700 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23701    { (exit 1); exit 1; }; }
23702  fi
23703                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23704 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23705
23706  if test "${ac_cv_struct_boundary_double+set}" = set; then
23707   echo $ECHO_N "(cached) $ECHO_C" >&6
23708 else
23709   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23710    cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716 #include "confdefs.h"
23717      #include <sys/types.h>
23718      struct s { char c; double i; };
23719
23720 int
23721 main ()
23722 {
23723 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext
23729 if { (ac_try="$ac_compile"
23730 case "(($ac_try" in
23731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732   *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735   (eval "$ac_compile") 2>conftest.er1
23736   ac_status=$?
23737   grep -v '^ *+' conftest.er1 >conftest.err
23738   rm -f conftest.er1
23739   cat conftest.err >&5
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); } && {
23742          test -z "$ac_c_werror_flag" ||
23743          test ! -s conftest.err
23744        } && test -s conftest.$ac_objext; then
23745   ac_cv_struct_boundary_double=$ac_size
23746 else
23747   echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750
23751 fi
23752
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23755   done
23756
23757 fi
23758
23759  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23760 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23761  if test x$ac_cv_struct_boundary_double = x ; then
23762    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23763 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23764    { (exit 1); exit 1; }; }
23765  fi
23766
23767
23768 { echo "$as_me:$LINENO: checking size of void *" >&5
23769 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23770     if test "${ac_cv_sizeof_void_p+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23774    cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780 #include "confdefs.h"
23781    #include <sys/types.h>
23782
23783
23784 int
23785 main ()
23786 {
23787 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23788   ;
23789   return 0;
23790 }
23791 _ACEOF
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799   (eval "$ac_compile") 2>conftest.er1
23800   ac_status=$?
23801   grep -v '^ *+' conftest.er1 >conftest.err
23802   rm -f conftest.er1
23803   cat conftest.err >&5
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); } && {
23806          test -z "$ac_c_werror_flag" ||
23807          test ! -s conftest.err
23808        } && test -s conftest.$ac_objext; then
23809   ac_cv_sizeof_void_p=$ac_size
23810 else
23811   echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814
23815 fi
23816
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23819   done
23820
23821 fi
23822
23823
23824 if test x$ac_cv_sizeof_void_p = x ; then
23825   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23826 echo "$as_me: error: cannot determine a size for void *" >&2;}
23827    { (exit 1); exit 1; }; }
23828 fi
23829 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23830 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23831                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23832 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23833
23834  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23838    cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844 #include "confdefs.h"
23845      #include <sys/types.h>
23846      struct s { char c; void * i; };
23847
23848 int
23849 main ()
23850 {
23851 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 rm -f conftest.$ac_objext
23857 if { (ac_try="$ac_compile"
23858 case "(($ac_try" in
23859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860   *) ac_try_echo=$ac_try;;
23861 esac
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863   (eval "$ac_compile") 2>conftest.er1
23864   ac_status=$?
23865   grep -v '^ *+' conftest.er1 >conftest.err
23866   rm -f conftest.er1
23867   cat conftest.err >&5
23868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869   (exit $ac_status); } && {
23870          test -z "$ac_c_werror_flag" ||
23871          test ! -s conftest.err
23872        } && test -s conftest.$ac_objext; then
23873   ac_cv_struct_boundary_void_p=$ac_size
23874 else
23875   echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23877
23878
23879 fi
23880
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23882    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23883   done
23884
23885 fi
23886
23887  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23888 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23889  if test x$ac_cv_struct_boundary_void_p = x ; then
23890    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23891 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23892    { (exit 1); exit 1; }; }
23893  fi
23894
23895 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23896 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23897     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23901    cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h.  */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h.  */
23907 #include "confdefs.h"
23908    #include <sys/types.h>
23909
23910
23911 int
23912 main ()
23913 {
23914 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext
23920 if { (ac_try="$ac_compile"
23921 case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_compile") 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } && {
23933          test -z "$ac_c_werror_flag" ||
23934          test ! -s conftest.err
23935        } && test -s conftest.$ac_objext; then
23936   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23937 else
23938   echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23940
23941
23942 fi
23943
23944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23946   done
23947
23948 fi
23949
23950
23951 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23952   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23953 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23954    { (exit 1); exit 1; }; }
23955 fi
23956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23957 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23958
23959
23960
23961 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23962 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23963 if test x$endian = x1 ; then
23964   trace_endian=B
23965 else
23966   trace_endian=l
23967 fi
23968 gras_arch=unknown
23969 trace="$trace_endian"
23970
23971 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23972
23973 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23974 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23975 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23976 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23977
23978 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23979 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23980
23981 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23982
23983 # sizeof float/double are not tested since IEEE 754 is assumed.
23984 # Check README.IEEE for rational.
23985
23986 # The numbers after the _ in the arch name are the maximal packing boundary.
23987 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23988 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23989 case $trace in
23990   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_arch_name=little32_1;;
23991   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_arch_name=little32_2;;
23992   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_arch_name=little32_4;;
23993   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_arch_name=little32_8;;
23994
23995   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_arch_name=little64;;
23996
23997   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_arch_name=big32;;
23998   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_arch_name=big32_8_4;;
23999   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_arch_name=big32_4;;
24000   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_arch_name=big32_2;;
24001
24002   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_arch_name=big64;;
24003   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_arch_name=big64_8_4;;
24004 esac
24005 if test x$gras_arch = xunknown ; then
24006   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24007 echo "${ECHO_T}damnit ($trace)" >&6; }
24008   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24009 Please report this architecture trace ($trace) and what it corresponds to." >&5
24010 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24011 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24012    { (exit 1); exit 1; }; }
24013 fi
24014 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24015
24016 cat >>confdefs.h <<_ACEOF
24017 #define GRAS_THISARCH $gras_arch
24018 _ACEOF
24019
24020 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24021 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24022
24023 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24024 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24025 ac_cv_sizeof_max=0
24026 for s in $ac_cv_sizeof_char \
24027          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24028          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24029          4 8; do
24030
24031   if test $ac_cv_sizeof_max -lt $s ; then
24032     ac_cv_sizeof_max=$s
24033   fi
24034 done
24035 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24036 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24037
24038 cat >>confdefs.h <<_ACEOF
24039 #define SIZEOF_MAX $ac_cv_sizeof_max
24040 _ACEOF
24041
24042
24043
24044 # Check architecture signature end
24045   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24046 echo $ECHO_N "checking whether the struct gets packed... $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 {char c; double d;};
24057
24058 int
24059 main ()
24060 {
24061 switch (0)
24062         case 0:
24063         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
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_packed=yes
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091         gras_struct_packed=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_packed" >&5
24097 echo "${ECHO_T}$gras_struct_packed" >&6; }
24098    if test x$gras_struct_packed = "xyes" ; then
24099      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24100 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24101    { (exit 1); exit 1; }; }
24102    fi
24103
24104    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24105 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24106    cat >conftest.$ac_ext <<_ACEOF
24107 /* confdefs.h.  */
24108 _ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h.  */
24112 #include "confdefs.h"
24113         #include <sys/types.h>
24114         #include <stddef.h> /* offsetof() */
24115         struct s {double d; int i; char c;};
24116
24117 int
24118 main ()
24119 {
24120 switch (0)
24121         case 0:
24122         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24123
24124   ;
24125   return 0;
24126 }
24127 _ACEOF
24128 rm -f conftest.$ac_objext
24129 if { (ac_try="$ac_compile"
24130 case "(($ac_try" in
24131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132   *) ac_try_echo=$ac_try;;
24133 esac
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135   (eval "$ac_compile") 2>conftest.er1
24136   ac_status=$?
24137   grep -v '^ *+' conftest.er1 >conftest.err
24138   rm -f conftest.er1
24139   cat conftest.err >&5
24140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141   (exit $ac_status); } && {
24142          test -z "$ac_c_werror_flag" ||
24143          test ! -s conftest.err
24144        } && test -s conftest.$ac_objext; then
24145   gras_struct_compact=yes
24146 else
24147   echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24149
24150         gras_struct_compact=no
24151 fi
24152
24153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24154
24155    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24156 echo "${ECHO_T}$gras_struct_compact" >&6; }
24157
24158    if test x$gras_struct_compact != xyes ; then
24159      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24160 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24161    { (exit 1); exit 1; }; }
24162    fi
24163
24164 cat >>confdefs.h <<_ACEOF
24165 #define GRAS_STRUCT_COMPACT 1
24166 _ACEOF
24167
24168    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24169 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24170
24171    cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h.  */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h.  */
24177 #include "confdefs.h"
24178       #include <sys/types.h>
24179         #include <stddef.h> /* offsetof() */
24180         struct s { double d; int i; char c[6]; };
24181
24182 int
24183 main ()
24184 {
24185 switch (0)
24186       case 0:
24187       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24188
24189   ;
24190   return 0;
24191 }
24192 _ACEOF
24193 rm -f conftest.$ac_objext
24194 if { (ac_try="$ac_compile"
24195 case "(($ac_try" in
24196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24197   *) ac_try_echo=$ac_try;;
24198 esac
24199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24200   (eval "$ac_compile") 2>conftest.er1
24201   ac_status=$?
24202   grep -v '^ *+' conftest.er1 >conftest.err
24203   rm -f conftest.er1
24204   cat conftest.err >&5
24205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206   (exit $ac_status); } && {
24207          test -z "$ac_c_werror_flag" ||
24208          test ! -s conftest.err
24209        } && test -s conftest.$ac_objext; then
24210   gras_array_straddle_struct=yes
24211 else
24212   echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24214
24215         gras_array_straddle_struct=no
24216 fi
24217
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219
24220    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24221 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24222
24223    if test x$gras_array_straddle_struct = xyes ; then
24224
24225 cat >>confdefs.h <<_ACEOF
24226 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24227 _ACEOF
24228
24229    else
24230      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24231 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24232    { (exit 1); exit 1; }; }
24233    fi
24234
24235
24236
24237
24238
24239   { echo "$as_me:$LINENO: result: " >&5
24240 echo "${ECHO_T}" >&6; }
24241   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24242 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24243
24244
24245
24246
24247 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24248 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24249 if test "${ac_cv_check_mcsc+set}" = set; then
24250   echo $ECHO_N "(cached) $ECHO_C" >&6
24251 else
24252
24253 if test "$cross_compiling" = yes; then
24254   ac_cv_check_mcsc=no
24255
24256 else
24257   cat >conftest.$ac_ext <<_ACEOF
24258 /* confdefs.h.  */
24259 _ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h.  */
24263
24264
24265 #include <stdio.h>
24266 #include <stdlib.h>
24267 #include <ucontext.h>
24268
24269 ucontext_t uc_child;
24270 ucontext_t uc_main;
24271
24272 void child(void *arg)
24273 {
24274     if (arg != (void *)12345)
24275         exit(1);
24276     if (swapcontext(&uc_child, &uc_main) != 0)
24277         exit(2);
24278 }
24279
24280 int main(int argc, char *argv[])
24281 {
24282     FILE *fp;
24283     void *stack;
24284
24285     /* the default is that it fails */
24286     if ((fp = fopen("conftestval", "w")) == NULL)
24287         exit(3);
24288     fprintf(fp, "no\n");
24289     fclose(fp);
24290
24291     /* configure a child user-space context */
24292     if ((stack = malloc(64*1024)) == NULL)
24293         exit(4);
24294     if (getcontext(&uc_child) != 0)
24295         exit(5);
24296     uc_child.uc_link = NULL;
24297     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24298     uc_child.uc_stack.ss_size = 32*1024;
24299     uc_child.uc_stack.ss_flags = 0;
24300     makecontext(&uc_child, child, 2, (void *)12345);
24301
24302     /* switch into the user context */
24303     if (swapcontext(&uc_main, &uc_child) != 0)
24304         exit(6);
24305
24306     /* Fine, child came home */
24307     if ((fp = fopen("conftestval", "w")) == NULL)
24308         exit(7);
24309     fprintf(fp, "yes\n");
24310     fclose(fp);
24311
24312     /* die successfully */
24313     exit(0);
24314 }
24315
24316 _ACEOF
24317 rm -f conftest$ac_exeext
24318 if { (ac_try="$ac_link"
24319 case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324   (eval "$ac_link") 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24328   { (case "(($ac_try" in
24329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330   *) ac_try_echo=$ac_try;;
24331 esac
24332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24333   (eval "$ac_try") 2>&5
24334   ac_status=$?
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); }; }; then
24337   ac_cv_check_mcsc=`cat conftestval`
24338 else
24339   echo "$as_me: program exited with status $ac_status" >&5
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24342
24343 ( exit $ac_status )
24344 ac_cv_check_mcsc=no
24345 fi
24346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24347 fi
24348
24349
24350 fi
24351 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24352 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24353 if test ".$ac_cv_check_mcsc" = .yes; then
24354     mcsc=yes
24355 else
24356     mcsc=no
24357 fi
24358
24359
24360
24361 for ac_header in pthread.h
24362 do
24363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24365   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24368   echo $ECHO_N "(cached) $ECHO_C" >&6
24369 fi
24370 ac_res=`eval echo '${'$as_ac_Header'}'`
24371                { echo "$as_me:$LINENO: result: $ac_res" >&5
24372 echo "${ECHO_T}$ac_res" >&6; }
24373 else
24374   # Is the header compilable?
24375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24377 cat >conftest.$ac_ext <<_ACEOF
24378 /* confdefs.h.  */
24379 _ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h.  */
24383 $ac_includes_default
24384 #include <$ac_header>
24385 _ACEOF
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390   *) ac_try_echo=$ac_try;;
24391 esac
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393   (eval "$ac_compile") 2>conftest.er1
24394   ac_status=$?
24395   grep -v '^ *+' conftest.er1 >conftest.err
24396   rm -f conftest.er1
24397   cat conftest.err >&5
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); } && {
24400          test -z "$ac_c_werror_flag" ||
24401          test ! -s conftest.err
24402        } && test -s conftest.$ac_objext; then
24403   ac_header_compiler=yes
24404 else
24405   echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24407
24408         ac_header_compiler=no
24409 fi
24410
24411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24413 echo "${ECHO_T}$ac_header_compiler" >&6; }
24414
24415 # Is the header present?
24416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24418 cat >conftest.$ac_ext <<_ACEOF
24419 /* confdefs.h.  */
24420 _ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h.  */
24424 #include <$ac_header>
24425 _ACEOF
24426 if { (ac_try="$ac_cpp conftest.$ac_ext"
24427 case "(($ac_try" in
24428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429   *) ac_try_echo=$ac_try;;
24430 esac
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } >/dev/null && {
24439          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24440          test ! -s conftest.err
24441        }; then
24442   ac_header_preproc=yes
24443 else
24444   echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447   ac_header_preproc=no
24448 fi
24449
24450 rm -f conftest.err conftest.$ac_ext
24451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24452 echo "${ECHO_T}$ac_header_preproc" >&6; }
24453
24454 # So?  What about this header?
24455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24456   yes:no: )
24457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24461     ac_header_preproc=yes
24462     ;;
24463   no:yes:* )
24464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24466     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24467 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24468     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24470     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24471 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24474     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24476     ( cat <<\_ASBOX
24477 ## -------------------------------------------------- ##
24478 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24479 ## -------------------------------------------------- ##
24480 _ASBOX
24481      ) | sed "s/^/$as_me: WARNING:     /" >&2
24482     ;;
24483 esac
24484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24487   echo $ECHO_N "(cached) $ECHO_C" >&6
24488 else
24489   eval "$as_ac_Header=\$ac_header_preproc"
24490 fi
24491 ac_res=`eval echo '${'$as_ac_Header'}'`
24492                { echo "$as_me:$LINENO: result: $ac_res" >&5
24493 echo "${ECHO_T}$ac_res" >&6; }
24494
24495 fi
24496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24497   cat >>confdefs.h <<_ACEOF
24498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24499 _ACEOF
24500
24501 fi
24502
24503 done
24504
24505 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24506 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24507 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24508   echo $ECHO_N "(cached) $ECHO_C" >&6
24509 else
24510   ac_check_lib_save_LIBS=$LIBS
24511 LIBS="-lpthread  $LIBS"
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518
24519 /* Override any GCC internal prototype to avoid an error.
24520    Use char because int might match the return type of a GCC
24521    builtin and then its argument prototype would still apply.  */
24522 #ifdef __cplusplus
24523 extern "C"
24524 #endif
24525 char pthread_create ();
24526 int
24527 main ()
24528 {
24529 return pthread_create ();
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (ac_try="$ac_link"
24536 case "(($ac_try" in
24537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538   *) ac_try_echo=$ac_try;;
24539 esac
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541   (eval "$ac_link") 2>conftest.er1
24542   ac_status=$?
24543   grep -v '^ *+' conftest.er1 >conftest.err
24544   rm -f conftest.er1
24545   cat conftest.err >&5
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); } && {
24548          test -z "$ac_c_werror_flag" ||
24549          test ! -s conftest.err
24550        } && test -s conftest$ac_exeext &&
24551        $as_test_x conftest$ac_exeext; then
24552   ac_cv_lib_pthread_pthread_create=yes
24553 else
24554   echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24556
24557         ac_cv_lib_pthread_pthread_create=no
24558 fi
24559
24560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24561       conftest$ac_exeext conftest.$ac_ext
24562 LIBS=$ac_check_lib_save_LIBS
24563 fi
24564 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24565 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24566 if test $ac_cv_lib_pthread_pthread_create = yes; then
24567   pthread=yes
24568 else
24569   pthread=no
24570 fi
24571
24572
24573
24574 if test ".$mcsc" = .yes; then
24575    mcsc=yes
24576 elif test ".$pthread" = .yes; then
24577    pthread=yes
24578 else
24579     ac_header=windows.h
24580     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24581     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24582       windows_context=yes
24583     else
24584       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24585 echo "$as_me: error: no appropriate backend found" >&2;}
24586    { (exit 1); exit 1; }; }
24587     fi
24588 fi
24589
24590
24591 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24592 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24593
24594
24595 # Check whether --with-pthread was given.
24596 if test "${with_pthread+set}" = set; then
24597   withval=$with_pthread; with_context=pthread
24598 fi
24599
24600
24601 # Check whether --with-pthread was given.
24602 if test "${with_pthread+set}" = set; then
24603   withval=$with_pthread; with_context=pthread
24604 fi
24605
24606
24607
24608 # Check whether --with-context was given.
24609 if test "${with_context+set}" = set; then
24610   withval=$with_context;
24611 else
24612   with_context=auto
24613 fi
24614
24615
24616 if test "x$with_context$mcsc" = "xucontextno" ; then
24617   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24618 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24619    { (exit 77); exit 77; }; }
24620 fi
24621
24622 case $with_context in
24623  ucontext) ;;
24624  pthread) ;;
24625  pthreads) ;;
24626  windows) ;;
24627  auto) with_context=ucontext;;
24628  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24629 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24630    { (exit 1); exit 1; }; } ;;
24631 esac
24632
24633 if test "x$with_context" = "xucontext" ; then
24634   if test ".$mcsc" = .yes; then
24635     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24636 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24637
24638 cat >>confdefs.h <<\_ACEOF
24639 #define CONTEXT_UCONTEXT 1
24640 _ACEOF
24641
24642   else
24643     if test ".$windows_context" = .yes ; then
24644       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24645 echo "${ECHO_T}use windows context portability layer." >&6; }
24646       with_context=windows
24647     else
24648       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24649 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24650       with_context=pthread
24651     fi
24652   fi
24653 fi
24654
24655 if test "x$with_context" = "xpthreads"; then
24656   with_context=pthread
24657 fi
24658 if test "x$with_context" = "xpthread"; then
24659
24660 for ac_header in pthread.h
24661 do
24662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24664   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24667   echo $ECHO_N "(cached) $ECHO_C" >&6
24668 fi
24669 ac_res=`eval echo '${'$as_ac_Header'}'`
24670                { echo "$as_me:$LINENO: result: $ac_res" >&5
24671 echo "${ECHO_T}$ac_res" >&6; }
24672 else
24673   # Is the header compilable?
24674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24676 cat >conftest.$ac_ext <<_ACEOF
24677 /* confdefs.h.  */
24678 _ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h.  */
24682 $ac_includes_default
24683 #include <$ac_header>
24684 _ACEOF
24685 rm -f conftest.$ac_objext
24686 if { (ac_try="$ac_compile"
24687 case "(($ac_try" in
24688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689   *) ac_try_echo=$ac_try;;
24690 esac
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692   (eval "$ac_compile") 2>conftest.er1
24693   ac_status=$?
24694   grep -v '^ *+' conftest.er1 >conftest.err
24695   rm -f conftest.er1
24696   cat conftest.err >&5
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); } && {
24699          test -z "$ac_c_werror_flag" ||
24700          test ! -s conftest.err
24701        } && test -s conftest.$ac_objext; then
24702   ac_header_compiler=yes
24703 else
24704   echo "$as_me: failed program was:" >&5
24705 sed 's/^/| /' conftest.$ac_ext >&5
24706
24707         ac_header_compiler=no
24708 fi
24709
24710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24712 echo "${ECHO_T}$ac_header_compiler" >&6; }
24713
24714 # Is the header present?
24715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24717 cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723 #include <$ac_header>
24724 _ACEOF
24725 if { (ac_try="$ac_cpp conftest.$ac_ext"
24726 case "(($ac_try" in
24727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728   *) ac_try_echo=$ac_try;;
24729 esac
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24732   ac_status=$?
24733   grep -v '^ *+' conftest.er1 >conftest.err
24734   rm -f conftest.er1
24735   cat conftest.err >&5
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); } >/dev/null && {
24738          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24739          test ! -s conftest.err
24740        }; then
24741   ac_header_preproc=yes
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746   ac_header_preproc=no
24747 fi
24748
24749 rm -f conftest.err conftest.$ac_ext
24750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24751 echo "${ECHO_T}$ac_header_preproc" >&6; }
24752
24753 # So?  What about this header?
24754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24755   yes:no: )
24756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24760     ac_header_preproc=yes
24761     ;;
24762   no:yes:* )
24763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24775     ( cat <<\_ASBOX
24776 ## -------------------------------------------------- ##
24777 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24778 ## -------------------------------------------------- ##
24779 _ASBOX
24780      ) | sed "s/^/$as_me: WARNING:     /" >&2
24781     ;;
24782 esac
24783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24786   echo $ECHO_N "(cached) $ECHO_C" >&6
24787 else
24788   eval "$as_ac_Header=\$ac_header_preproc"
24789 fi
24790 ac_res=`eval echo '${'$as_ac_Header'}'`
24791                { echo "$as_me:$LINENO: result: $ac_res" >&5
24792 echo "${ECHO_T}$ac_res" >&6; }
24793
24794 fi
24795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24796   cat >>confdefs.h <<_ACEOF
24797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24798 _ACEOF
24799
24800 fi
24801
24802 done
24803
24804
24805 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24806 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24807 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24808   echo $ECHO_N "(cached) $ECHO_C" >&6
24809 else
24810   ac_check_lib_save_LIBS=$LIBS
24811 LIBS="-lpthread  $LIBS"
24812 cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818
24819 /* Override any GCC internal prototype to avoid an error.
24820    Use char because int might match the return type of a GCC
24821    builtin and then its argument prototype would still apply.  */
24822 #ifdef __cplusplus
24823 extern "C"
24824 #endif
24825 char pthread_create ();
24826 int
24827 main ()
24828 {
24829 return pthread_create ();
24830   ;
24831   return 0;
24832 }
24833 _ACEOF
24834 rm -f conftest.$ac_objext conftest$ac_exeext
24835 if { (ac_try="$ac_link"
24836 case "(($ac_try" in
24837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838   *) ac_try_echo=$ac_try;;
24839 esac
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841   (eval "$ac_link") 2>conftest.er1
24842   ac_status=$?
24843   grep -v '^ *+' conftest.er1 >conftest.err
24844   rm -f conftest.er1
24845   cat conftest.err >&5
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); } && {
24848          test -z "$ac_c_werror_flag" ||
24849          test ! -s conftest.err
24850        } && test -s conftest$ac_exeext &&
24851        $as_test_x conftest$ac_exeext; then
24852   ac_cv_lib_pthread_pthread_create=yes
24853 else
24854   echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24856
24857         ac_cv_lib_pthread_pthread_create=no
24858 fi
24859
24860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24861       conftest$ac_exeext conftest.$ac_ext
24862 LIBS=$ac_check_lib_save_LIBS
24863 fi
24864 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24865 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24866 if test $ac_cv_lib_pthread_pthread_create = yes; then
24867   cat >>confdefs.h <<_ACEOF
24868 #define HAVE_LIBPTHREAD 1
24869 _ACEOF
24870
24871   LIBS="-lpthread $LIBS"
24872
24873 else
24874   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24875 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24876    { (exit 1); exit 1; }; }
24877 fi
24878
24879
24880 cat >>confdefs.h <<\_ACEOF
24881 #define CONTEXT_THREADS 1
24882 _ACEOF
24883
24884   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24885 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24886 fi
24887
24888
24889 if test "x$with_context" = "xucontext" ; then
24890   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24891 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24892 if test "${ac_cv_check_stackgrowth+set}" = set; then
24893   echo $ECHO_N "(cached) $ECHO_C" >&6
24894 else
24895
24896 cross_compiling=no
24897 if test "$cross_compiling" = yes; then
24898   ac_cv_check_stackgrowth=down
24899
24900 else
24901   cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h.  */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h.  */
24907
24908 #include <stdio.h>
24909 #include <stdlib.h>
24910 static int iterate = 10;
24911 static int growsdown(int *x)
24912 {
24913     auto int y;
24914     y = (x > &y);
24915     if (--iterate > 0)
24916         y = growsdown(&y);
24917     if (y != (x > &y))
24918         exit(1);
24919     return y;
24920 }
24921 int main(int argc, char *argv[])
24922 {
24923     FILE *f;
24924     auto int x;
24925     if ((f = fopen("conftestval", "w")) == NULL)
24926         exit(1);
24927     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24928     fclose(f);
24929     exit(0);
24930 }
24931
24932
24933 _ACEOF
24934 rm -f conftest$ac_exeext
24935 if { (ac_try="$ac_link"
24936 case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941   (eval "$ac_link") 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24945   { (case "(($ac_try" in
24946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947   *) ac_try_echo=$ac_try;;
24948 esac
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950   (eval "$ac_try") 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; }; then
24954   ac_cv_check_stackgrowth=`cat conftestval`
24955 else
24956   echo "$as_me: program exited with status $ac_status" >&5
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960 ( exit $ac_status )
24961 ac_cv_check_stackgrowth=down
24962 fi
24963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24964 fi
24965
24966
24967 fi
24968 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24969 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24970 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24971     val="-1"
24972 else
24973     val="+1"
24974 fi
24975
24976 cat >>confdefs.h <<_ACEOF
24977 #define PTH_STACKGROWTH $val
24978 _ACEOF
24979
24980
24981   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24982       PTH_STACK_GROWTH="down"
24983   else
24984       PTH_STACK_GROWTH="up"
24985   fi
24986
24987
24988
24989
24990
24991
24992 for ac_func in makecontext
24993 do
24994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24998   echo $ECHO_N "(cached) $ECHO_C" >&6
24999 else
25000   cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h.  */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h.  */
25006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25008 #define $ac_func innocuous_$ac_func
25009
25010 /* System header to define __stub macros and hopefully few prototypes,
25011     which can conflict with char $ac_func (); below.
25012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25013     <limits.h> exists even on freestanding compilers.  */
25014
25015 #ifdef __STDC__
25016 # include <limits.h>
25017 #else
25018 # include <assert.h>
25019 #endif
25020
25021 #undef $ac_func
25022
25023 /* Override any GCC internal prototype to avoid an error.
25024    Use char because int might match the return type of a GCC
25025    builtin and then its argument prototype would still apply.  */
25026 #ifdef __cplusplus
25027 extern "C"
25028 #endif
25029 char $ac_func ();
25030 /* The GNU C library defines this for functions which it implements
25031     to always fail with ENOSYS.  Some functions are actually named
25032     something starting with __ and the normal name is an alias.  */
25033 #if defined __stub_$ac_func || defined __stub___$ac_func
25034 choke me
25035 #endif
25036
25037 int
25038 main ()
25039 {
25040 return $ac_func ();
25041   ;
25042   return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_link") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } && {
25059          test -z "$ac_c_werror_flag" ||
25060          test ! -s conftest.err
25061        } && test -s conftest$ac_exeext &&
25062        $as_test_x conftest$ac_exeext; then
25063   eval "$as_ac_var=yes"
25064 else
25065   echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25067
25068         eval "$as_ac_var=no"
25069 fi
25070
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072       conftest$ac_exeext conftest.$ac_ext
25073 fi
25074 ac_res=`eval echo '${'$as_ac_var'}'`
25075                { echo "$as_me:$LINENO: result: $ac_res" >&5
25076 echo "${ECHO_T}$ac_res" >&6; }
25077 if test `eval echo '${'$as_ac_var'}'` = yes; then
25078   cat >>confdefs.h <<_ACEOF
25079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25080 _ACEOF
25081
25082 fi
25083 done
25084
25085
25086 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25087 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25088 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091
25092 if test ".$ac_cv_func_makecontext" = .no; then
25093         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25094 else
25095         OCFLAGS="$CFLAGS"
25096     CFLAGS="$CFLAGS -DTEST_makecontext"
25097     cross_compiling=no
25098         if test "$cross_compiling" = yes; then
25099
25100 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25101
25102 else
25103   cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h.  */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h.  */
25109
25110 #include <stdio.h>
25111 #include <stdlib.h>
25112 #include <string.h>
25113 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25114 #include <sys/types.h>
25115 #include <signal.h>
25116 #include <unistd.h>
25117 #endif
25118 #if defined(TEST_makecontext)
25119 #include <ucontext.h>
25120 #endif
25121 union alltypes {
25122     long   l;
25123     double d;
25124     void  *vp;
25125     void (*fp)(void);
25126     char  *cp;
25127 };
25128 static volatile char *handler_addr = (char *)0xDEAD;
25129 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25130 static volatile int handler_done = 0;
25131 void handler(int sig)
25132 {
25133     char garbage[1024];
25134     int i;
25135     auto int dummy;
25136     for (i = 0; i < 1024; i++)
25137         garbage[i] = 'X';
25138     handler_addr = (char *)&dummy;
25139     handler_done = 1;
25140     return;
25141 }
25142 #endif
25143 #if defined(TEST_makecontext)
25144 static ucontext_t uc_handler;
25145 static ucontext_t uc_main;
25146 void handler(void)
25147 {
25148     char garbage[1024];
25149     int i;
25150     auto int dummy;
25151     for (i = 0; i < 1024; i++)
25152         garbage[i] = 'X';
25153     handler_addr = (char *)&dummy;
25154     swapcontext(&uc_handler, &uc_main);
25155     return;
25156 }
25157 #endif
25158 int main(int argc, char *argv[])
25159 {
25160     FILE *f;
25161     char *skaddr;
25162     char *skbuf;
25163     int sksize;
25164     char result[1024];
25165     int i;
25166     sksize = 32768;
25167     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25168     if (skbuf == NULL)
25169         exit(1);
25170     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25171         skbuf[i] = 'A';
25172     skaddr = skbuf+sizeof(union alltypes);
25173 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25174     {
25175         struct sigaction sa;
25176 #if defined(TEST_sigstack)
25177         struct sigstack ss;
25178 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25179         stack_t ss;
25180 #else
25181         struct sigaltstack ss;
25182 #endif
25183 #if defined(TEST_sigstack)
25184         ss.ss_sp      = (void *)(skaddr + sksize);
25185         ss.ss_onstack = 0;
25186         if (sigstack(&ss, NULL) < 0)
25187             exit(1);
25188 #elif defined(TEST_sigaltstack)
25189         ss.ss_sp    = (void *)(skaddr + sksize);
25190         ss.ss_size  = sksize;
25191         ss.ss_flags = 0;
25192         if (sigaltstack(&ss, NULL) < 0)
25193             exit(1);
25194 #endif
25195         memset((void *)&sa, 0, sizeof(struct sigaction));
25196         sa.sa_handler = handler;
25197         sa.sa_flags = SA_ONSTACK;
25198         sigemptyset(&sa.sa_mask);
25199         sigaction(SIGUSR1, &sa, NULL);
25200         kill(getpid(), SIGUSR1);
25201         while (!handler_done)
25202             /*nop*/;
25203     }
25204 #endif
25205 #if defined(TEST_makecontext)
25206     {
25207         if (getcontext(&uc_handler) != 0)
25208             exit(1);
25209         uc_handler.uc_link = NULL;
25210         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25211         uc_handler.uc_stack.ss_size  = sksize;
25212         uc_handler.uc_stack.ss_flags = 0;
25213         makecontext(&uc_handler, handler, 1);
25214         swapcontext(&uc_main, &uc_handler);
25215     }
25216 #endif
25217     if (handler_addr == (char *)0xDEAD)
25218         exit(1);
25219     if (handler_addr < skaddr+sksize) {
25220         /* stack was placed into lower area */
25221         if (*(skaddr+sksize) != 'A')
25222              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25223                      sizeof(union alltypes), sizeof(union alltypes));
25224         else
25225              strcpy(result, "(skaddr)+(sksize),(sksize)");
25226     }
25227     else {
25228         /* stack was placed into higher area */
25229         if (*(skaddr+sksize*2) != 'A')
25230             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25231         else
25232             strcpy(result, "(skaddr),(sksize)");
25233     }
25234     if ((f = fopen("conftestval", "w")) == NULL)
25235         exit(1);
25236     fprintf(f, "%s\n", result);
25237     fclose(f);
25238     exit(0);
25239 }
25240
25241 _ACEOF
25242 rm -f conftest$ac_exeext
25243 if { (ac_try="$ac_link"
25244 case "(($ac_try" in
25245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246   *) ac_try_echo=$ac_try;;
25247 esac
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249   (eval "$ac_link") 2>&5
25250   ac_status=$?
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25253   { (case "(($ac_try" in
25254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255   *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258   (eval "$ac_try") 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; }; then
25262
25263 ac_cv_stacksetup_makecontext=`cat conftestval`
25264 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25265
25266 else
25267   echo "$as_me: program exited with status $ac_status" >&5
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271 ( exit $ac_status )
25272
25273 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25274
25275 fi
25276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25277 fi
25278
25279
25280 CFLAGS="$OCFLAGS"
25281
25282 fi
25283 fi
25284 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25285 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25286 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25287 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25288 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25289 { echo "$as_me:$LINENO: result: $type" >&5
25290 echo "${ECHO_T}$type" >&6; }
25291 if test ".$verbose" = .yes; then
25292     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25293 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25294 fi
25295
25296 if test ".$verbose" = .yes; then
25297     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25298 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25299 fi
25300
25301
25302 fi
25303
25304
25305 #########################################
25306 ## Build optional modules (simix)
25307 ##
25308
25309   { echo "$as_me:$LINENO: result: " >&5
25310 echo "${ECHO_T}" >&6; }
25311   { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25312 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25313
25314 # Check whether --enable-simix was given.
25315 if test "${enable_simix+set}" = set; then
25316   enableval=$enable_simix; enable_simix=$enableval
25317 else
25318   enable_simix=no
25319 fi
25320
25321 if test "x$enable_simix" = "xyes" ; then
25322   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&5
25323 echo "${ECHO_T}***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&6; }
25324
25325 cat >>confdefs.h <<\_ACEOF
25326 #define USE_SIMIX 1
25327 _ACEOF
25328
25329 else
25330   { echo "$as_me:$LINENO: result: Eventually you will come to SimIX." >&5
25331 echo "${ECHO_T}Eventually you will come to SimIX." >&6; }
25332 fi
25333
25334
25335 if test x$enable_simix != xno; then
25336   USE_SIMIX_TRUE=
25337   USE_SIMIX_FALSE='#'
25338 else
25339   USE_SIMIX_TRUE='#'
25340   USE_SIMIX_FALSE=
25341 fi
25342
25343
25344 #########################################
25345 ## Build optional modules (gtnets)
25346 ##
25347
25348 # Check whether --with-gtnets was given.
25349 if test "${with_gtnets+set}" = set; then
25350   withval=$with_gtnets; gtnets_path="$withval"
25351 else
25352   gtnets_path="NO"
25353 fi
25354
25355 if test "x$gtnets_path" = "xNO" ; then
25356   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS. $gtnets_path" >&5
25357 echo "${ECHO_T}Eventually you will come to GTNetS. $gtnets_path" >&6; }
25358 else
25359   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25360 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25361
25362 cat >>confdefs.h <<\_ACEOF
25363 #define USE_GTNETS 1
25364 _ACEOF
25365
25366   if ! test -e $gtnets_path ; then
25367     { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25368 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25369    { (exit 1); exit 1; }; }
25370   fi
25371   GTNETS_CFLAGS=-I$gtnets_path/include
25372
25373   GTNETS_LDFLAGS=-L$gtnets_path/lib
25374
25375 fi
25376
25377
25378 if test "x$gtnets_path" != xNO; then
25379   USE_GTNETS_TRUE=
25380   USE_GTNETS_FALSE='#'
25381 else
25382   USE_GTNETS_TRUE='#'
25383   USE_GTNETS_FALSE=
25384 fi
25385
25386
25387 #########################################
25388 ## Check for libraries extra-dependencies
25389 ##
25390
25391
25392   { echo "$as_me:$LINENO: result: " >&5
25393 echo "${ECHO_T}" >&6; }
25394   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25395 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25396
25397
25398 SIMGRID_DEP=""
25399 GRAS_DEP=""
25400 if test xpthread=xyes ; then
25401   # if the pthreads are usable
25402   if test "x$with_context" = "xpthread" ; then
25403     # if we use them to implement the xbt_context
25404     SIMGRID_DEP="-lpthread"
25405   fi
25406   # we need them in any case for the gras lib (which is multithreaded)
25407   GRAS_DEP="-lpthread"
25408 fi
25409
25410 { echo "$as_me:$LINENO: checking for csdp" >&5
25411 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25412 sdp=no
25413 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25414 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25415 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25416   echo $ECHO_N "(cached) $ECHO_C" >&6
25417 else
25418   ac_check_lib_save_LIBS=$LIBS
25419 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25420 cat >conftest.$ac_ext <<_ACEOF
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426
25427 /* Override any GCC internal prototype to avoid an error.
25428    Use char because int might match the return type of a GCC
25429    builtin and then its argument prototype would still apply.  */
25430 #ifdef __cplusplus
25431 extern "C"
25432 #endif
25433 char sdp ();
25434 int
25435 main ()
25436 {
25437 return sdp ();
25438   ;
25439   return 0;
25440 }
25441 _ACEOF
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (ac_try="$ac_link"
25444 case "(($ac_try" in
25445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446   *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449   (eval "$ac_link") 2>conftest.er1
25450   ac_status=$?
25451   grep -v '^ *+' conftest.er1 >conftest.err
25452   rm -f conftest.er1
25453   cat conftest.err >&5
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); } && {
25456          test -z "$ac_c_werror_flag" ||
25457          test ! -s conftest.err
25458        } && test -s conftest$ac_exeext &&
25459        $as_test_x conftest$ac_exeext; then
25460   ac_cv_lib_sdp_sdp=yes
25461 else
25462   echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465         ac_cv_lib_sdp_sdp=no
25466 fi
25467
25468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25469       conftest$ac_exeext conftest.$ac_ext
25470 LIBS=$ac_check_lib_save_LIBS
25471 fi
25472 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25473 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25474 if test $ac_cv_lib_sdp_sdp = yes; then
25475   csdp=yes
25476 else
25477   csdp=no
25478 fi
25479
25480 if test "x$csdp" = xyes; then
25481   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25482   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25483 echo "${ECHO_T}Found working sdp library." >&6; }
25484
25485 cat >>confdefs.h <<\_ACEOF
25486 #define HAVE_SDP 1
25487 _ACEOF
25488
25489 else
25490   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25491 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25492 fi;
25493
25494
25495 if test x$csdp != xno; then
25496   HAVE_SDP_TRUE=
25497   HAVE_SDP_FALSE='#'
25498 else
25499   HAVE_SDP_TRUE='#'
25500   HAVE_SDP_FALSE=
25501 fi
25502
25503
25504
25505
25506 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25507 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25508 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25509   echo $ECHO_N "(cached) $ECHO_C" >&6
25510 else
25511   ac_check_lib_save_LIBS=$LIBS
25512 LIBS="-lnsl  $LIBS"
25513 cat >conftest.$ac_ext <<_ACEOF
25514 /* confdefs.h.  */
25515 _ACEOF
25516 cat confdefs.h >>conftest.$ac_ext
25517 cat >>conftest.$ac_ext <<_ACEOF
25518 /* end confdefs.h.  */
25519
25520 /* Override any GCC internal prototype to avoid an error.
25521    Use char because int might match the return type of a GCC
25522    builtin and then its argument prototype would still apply.  */
25523 #ifdef __cplusplus
25524 extern "C"
25525 #endif
25526 char gethostbyname ();
25527 int
25528 main ()
25529 {
25530 return gethostbyname ();
25531   ;
25532   return 0;
25533 }
25534 _ACEOF
25535 rm -f conftest.$ac_objext conftest$ac_exeext
25536 if { (ac_try="$ac_link"
25537 case "(($ac_try" in
25538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539   *) ac_try_echo=$ac_try;;
25540 esac
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542   (eval "$ac_link") 2>conftest.er1
25543   ac_status=$?
25544   grep -v '^ *+' conftest.er1 >conftest.err
25545   rm -f conftest.er1
25546   cat conftest.err >&5
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); } && {
25549          test -z "$ac_c_werror_flag" ||
25550          test ! -s conftest.err
25551        } && test -s conftest$ac_exeext &&
25552        $as_test_x conftest$ac_exeext; then
25553   ac_cv_lib_nsl_gethostbyname=yes
25554 else
25555   echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25557
25558         ac_cv_lib_nsl_gethostbyname=no
25559 fi
25560
25561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25562       conftest$ac_exeext conftest.$ac_ext
25563 LIBS=$ac_check_lib_save_LIBS
25564 fi
25565 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25566 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25567 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25568   GRAS_DEP="$GRAS_DEP -lnsl"
25569 fi
25570
25571 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25572 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25573 if test "${ac_cv_lib_socket_connect+set}" = set; then
25574   echo $ECHO_N "(cached) $ECHO_C" >&6
25575 else
25576   ac_check_lib_save_LIBS=$LIBS
25577 LIBS="-lsocket  $LIBS"
25578 cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584
25585 /* Override any GCC internal prototype to avoid an error.
25586    Use char because int might match the return type of a GCC
25587    builtin and then its argument prototype would still apply.  */
25588 #ifdef __cplusplus
25589 extern "C"
25590 #endif
25591 char connect ();
25592 int
25593 main ()
25594 {
25595 return connect ();
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (ac_try="$ac_link"
25602 case "(($ac_try" in
25603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604   *) ac_try_echo=$ac_try;;
25605 esac
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607   (eval "$ac_link") 2>conftest.er1
25608   ac_status=$?
25609   grep -v '^ *+' conftest.er1 >conftest.err
25610   rm -f conftest.er1
25611   cat conftest.err >&5
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); } && {
25614          test -z "$ac_c_werror_flag" ||
25615          test ! -s conftest.err
25616        } && test -s conftest$ac_exeext &&
25617        $as_test_x conftest$ac_exeext; then
25618   ac_cv_lib_socket_connect=yes
25619 else
25620   echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623         ac_cv_lib_socket_connect=no
25624 fi
25625
25626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25627       conftest$ac_exeext conftest.$ac_ext
25628 LIBS=$ac_check_lib_save_LIBS
25629 fi
25630 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25631 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25632 if test $ac_cv_lib_socket_connect = yes; then
25633   GRAS_DEP="$GRAS_DEP -lsocket"
25634 fi
25635
25636
25637 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25638 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25639 case $host_os in
25640   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25641             AM_CFLAGS=-DDLL_EXPORT
25642
25643             cat >>confdefs.h <<\_ACEOF
25644 #define CONTEXT_THREADS 1
25645 _ACEOF
25646 ;;
25647 esac
25648
25649 if test "x$GRAS_DEP" = x; then
25650    { echo "$as_me:$LINENO: result: none" >&5
25651 echo "${ECHO_T}none" >&6; }
25652 else
25653    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25654 echo "${ECHO_T}$GRAS_DEP" >&6; }
25655 fi
25656
25657
25658
25659 ##############################################
25660 ## Enhance maintainer mode and SUBST variables
25661 ## (must be placed after any compilation tests since our overprotective flags
25662 ##  let some tests fail)
25663
25664 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25665 # Next line is modified by sed when building gramine source tree
25666 gramine_mode=no
25667 if test x$gramine_mode = xyes
25668 then
25669   USE_MAINTAINER_MODE=no
25670 fi
25671
25672
25673 if test x$gramine_mode != xno; then
25674   GRAMINE_MODE_TRUE=
25675   GRAMINE_MODE_FALSE='#'
25676 else
25677   GRAMINE_MODE_TRUE='#'
25678   GRAMINE_MODE_FALSE=
25679 fi
25680
25681
25682
25683 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25684 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25685     # Check whether --enable-maintainer-mode was given.
25686 if test "${enable_maintainer_mode+set}" = set; then
25687   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25688 else
25689   USE_MAINTAINER_MODE=no
25690 fi
25691
25692   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25693 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25694
25695
25696 if test $USE_MAINTAINER_MODE = yes; then
25697   MAINTAINER_MODE_TRUE=
25698   MAINTAINER_MODE_FALSE='#'
25699 else
25700   MAINTAINER_MODE_TRUE='#'
25701   MAINTAINER_MODE_FALSE=
25702 fi
25703
25704   MAINT=$MAINTAINER_MODE_TRUE
25705
25706
25707 if test x$USE_MAINTAINER_MODE = xyes
25708 then
25709    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25710    enable_compile_warnings=yes
25711 fi
25712
25713   # Check whether --enable-compile-warnings was given.
25714 if test "${enable_compile_warnings+set}" = set; then
25715   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25716 else
25717   enable_compile_warnings=no
25718 fi
25719
25720
25721   # Check whether --enable-compile-optimizations was given.
25722 if test "${enable_compile_optimizations+set}" = set; then
25723   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25724 else
25725   enable_compile_optimizations=auto
25726 fi
25727
25728
25729   if test "x$cflags_set" != "xyes" ; then
25730     # if user didn't specify CFLAGS explicitely
25731
25732     # AC PROG CC tests whether -g is accepted.
25733     # Cool, but it also tries to set -O2. I don't want it with gcc
25734     saveCFLAGS="$CFLAGS"
25735     CFLAGS=
25736     case " $saveCFLAGS " in
25737     *-g*) CFLAGS="-g" ;;
25738     esac
25739     case " $saveCFLAGS " in
25740     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25741     esac
25742
25743     # damn AC PROG CC, why did you set -O??
25744     CFLAGS="-g"
25745   fi
25746
25747   if test "x$enable_compile_warnings" = "xyes" ; then
25748     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25749 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25750     warnCFLAGS=
25751     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25752       case " $CFLAGS " in
25753       *-Wall*) ;;
25754       *) warnCFLAGS="-Wall -Wunused" ;;
25755       esac
25756
25757       ## -W is not all that useful.  And it cannot be controlled
25758       ## with individual -Wno-xxx flags, unlike -Wall
25759
25760       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25761       ## -Wshadow chokes on try{ try{} } constructs
25762       if test "x$enable_compile_warnings" = "xyes"; then
25763         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25764         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25765         -Wno-unused-function  \
25766         -Werror \
25767         | sed 's/ +/ /g'`
25768         # -Wno-unused-variable  -Wno-unused-label
25769       fi
25770     fi
25771     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25772 echo "${ECHO_T}$warnCFLAGS" >&6; }
25773     # placed before since gcc remembers the last one on conflict
25774     CFLAGS="$warnCFLAGS $CFLAGS"
25775   fi
25776
25777   if test "x$enable_compile_optimizations" = "xyes" ||
25778      test "x$enable_compile_optimizations" = "xauto" ; then
25779     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25780 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25781     optCFLAGS=
25782     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25783         case " $CFLAGS " in
25784         *-O*) ;;
25785         *) optCFLAGS="$optCFLAGS -O3" ;;
25786         esac
25787         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25788
25789         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25790         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25791         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25792           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25793           # isn't propagated enough to desserve an extra check
25794
25795           # Note that the flag didn't exist before gcc 3.0
25796           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25797         fi
25798             fi
25799     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25800 echo "${ECHO_T}$optCFLAGS" >&6; }
25801     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25802     if test "x$cflags_set" != "xyes" ; then
25803       CFLAGS="$optCFLAGS $CFLAGS"
25804     fi
25805   fi
25806
25807   if test x$lt_cv_prog_gnu_ld = xyes ; then
25808     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25809   else
25810     LD_DYNAMIC_FLAGS=
25811   fi
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824 #####################
25825 ## Check for programs
25826 ##
25827
25828
25829   { echo "$as_me:$LINENO: result: " >&5
25830 echo "${ECHO_T}" >&6; }
25831   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25832 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25833
25834 # Extract the first word of "bash", so it can be a program name with args.
25835 set dummy bash; ac_word=$2
25836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25838 if test "${ac_cv_prog_BASH+set}" = set; then
25839   echo $ECHO_N "(cached) $ECHO_C" >&6
25840 else
25841   if test -n "$BASH"; then
25842   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25843 else
25844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25845 for as_dir in $PATH
25846 do
25847   IFS=$as_save_IFS
25848   test -z "$as_dir" && as_dir=.
25849   for ac_exec_ext in '' $ac_executable_extensions; do
25850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25851     ac_cv_prog_BASH="`which bash`"
25852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25853     break 2
25854   fi
25855 done
25856 done
25857 IFS=$as_save_IFS
25858
25859   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25860 fi
25861 fi
25862 BASH=$ac_cv_prog_BASH
25863 if test -n "$BASH"; then
25864   { echo "$as_me:$LINENO: result: $BASH" >&5
25865 echo "${ECHO_T}$BASH" >&6; }
25866 else
25867   { echo "$as_me:$LINENO: result: no" >&5
25868 echo "${ECHO_T}no" >&6; }
25869 fi
25870
25871
25872 WARNING="This file is generated, do not edit"
25873
25874
25875
25876 # Can we rebuild the parsers?
25877 # We really want flex and refuse other lex. So, the parser is portable and
25878 # does not induce extra lib dependency
25879 for ac_prog in flex lex
25880 do
25881   # Extract the first word of "$ac_prog", so it can be a program name with args.
25882 set dummy $ac_prog; ac_word=$2
25883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25885 if test "${ac_cv_prog_LEX+set}" = set; then
25886   echo $ECHO_N "(cached) $ECHO_C" >&6
25887 else
25888   if test -n "$LEX"; then
25889   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25890 else
25891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25892 for as_dir in $PATH
25893 do
25894   IFS=$as_save_IFS
25895   test -z "$as_dir" && as_dir=.
25896   for ac_exec_ext in '' $ac_executable_extensions; do
25897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25898     ac_cv_prog_LEX="$ac_prog"
25899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25900     break 2
25901   fi
25902 done
25903 done
25904 IFS=$as_save_IFS
25905
25906 fi
25907 fi
25908 LEX=$ac_cv_prog_LEX
25909 if test -n "$LEX"; then
25910   { echo "$as_me:$LINENO: result: $LEX" >&5
25911 echo "${ECHO_T}$LEX" >&6; }
25912 else
25913   { echo "$as_me:$LINENO: result: no" >&5
25914 echo "${ECHO_T}no" >&6; }
25915 fi
25916
25917
25918   test -n "$LEX" && break
25919 done
25920 test -n "$LEX" || LEX=":"
25921
25922 if test "x$LEX" != "x:"; then
25923   cat >conftest.l <<_ACEOF
25924 %%
25925 a { ECHO; }
25926 b { REJECT; }
25927 c { yymore (); }
25928 d { yyless (1); }
25929 e { yyless (input () != 0); }
25930 f { unput (yytext[0]); }
25931 . { BEGIN INITIAL; }
25932 %%
25933 #ifdef YYTEXT_POINTER
25934 extern char *yytext;
25935 #endif
25936 int
25937 main (void)
25938 {
25939   return ! yylex () + ! yywrap ();
25940 }
25941 _ACEOF
25942 { (ac_try="$LEX conftest.l"
25943 case "(($ac_try" in
25944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945   *) ac_try_echo=$ac_try;;
25946 esac
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948   (eval "$LEX conftest.l") 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }
25952 { echo "$as_me:$LINENO: checking lex output file root" >&5
25953 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25954 if test "${ac_cv_prog_lex_root+set}" = set; then
25955   echo $ECHO_N "(cached) $ECHO_C" >&6
25956 else
25957
25958 if test -f lex.yy.c; then
25959   ac_cv_prog_lex_root=lex.yy
25960 elif test -f lexyy.c; then
25961   ac_cv_prog_lex_root=lexyy
25962 else
25963   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25964 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25965    { (exit 1); exit 1; }; }
25966 fi
25967 fi
25968 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25969 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25970 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25971
25972 if test -z "${LEXLIB+set}"; then
25973   { echo "$as_me:$LINENO: checking lex library" >&5
25974 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25975 if test "${ac_cv_lib_lex+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978
25979     ac_save_LIBS=$LIBS
25980     ac_cv_lib_lex='none needed'
25981     for ac_lib in '' -lfl -ll; do
25982       LIBS="$ac_lib $ac_save_LIBS"
25983       cat >conftest.$ac_ext <<_ACEOF
25984 `cat $LEX_OUTPUT_ROOT.c`
25985 _ACEOF
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (ac_try="$ac_link"
25988 case "(($ac_try" in
25989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990   *) ac_try_echo=$ac_try;;
25991 esac
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993   (eval "$ac_link") 2>conftest.er1
25994   ac_status=$?
25995   grep -v '^ *+' conftest.er1 >conftest.err
25996   rm -f conftest.er1
25997   cat conftest.err >&5
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); } && {
26000          test -z "$ac_c_werror_flag" ||
26001          test ! -s conftest.err
26002        } && test -s conftest$ac_exeext &&
26003        $as_test_x conftest$ac_exeext; then
26004   ac_cv_lib_lex=$ac_lib
26005 else
26006   echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009
26010 fi
26011
26012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26013       conftest$ac_exeext conftest.$ac_ext
26014       test "$ac_cv_lib_lex" != 'none needed' && break
26015     done
26016     LIBS=$ac_save_LIBS
26017
26018 fi
26019 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26020 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26021   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26022 fi
26023
26024
26025 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26026 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26027 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26028   echo $ECHO_N "(cached) $ECHO_C" >&6
26029 else
26030   # POSIX says lex can declare yytext either as a pointer or an array; the
26031 # default is implementation-dependent.  Figure out which it is, since
26032 # not all implementations provide the %pointer and %array declarations.
26033 ac_cv_prog_lex_yytext_pointer=no
26034 ac_save_LIBS=$LIBS
26035 LIBS="$LEXLIB $ac_save_LIBS"
26036 cat >conftest.$ac_ext <<_ACEOF
26037 #define YYTEXT_POINTER 1
26038 `cat $LEX_OUTPUT_ROOT.c`
26039 _ACEOF
26040 rm -f conftest.$ac_objext conftest$ac_exeext
26041 if { (ac_try="$ac_link"
26042 case "(($ac_try" in
26043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044   *) ac_try_echo=$ac_try;;
26045 esac
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047   (eval "$ac_link") 2>conftest.er1
26048   ac_status=$?
26049   grep -v '^ *+' conftest.er1 >conftest.err
26050   rm -f conftest.er1
26051   cat conftest.err >&5
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); } && {
26054          test -z "$ac_c_werror_flag" ||
26055          test ! -s conftest.err
26056        } && test -s conftest$ac_exeext &&
26057        $as_test_x conftest$ac_exeext; then
26058   ac_cv_prog_lex_yytext_pointer=yes
26059 else
26060   echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063
26064 fi
26065
26066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26067       conftest$ac_exeext conftest.$ac_ext
26068 LIBS=$ac_save_LIBS
26069
26070 fi
26071 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26072 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26073 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26074
26075 cat >>confdefs.h <<\_ACEOF
26076 #define YYTEXT_POINTER 1
26077 _ACEOF
26078
26079 fi
26080 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26081
26082 fi
26083
26084   if test "$LEX" != flex; then
26085     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26086 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26087     LEX=${am_missing_run}flex
26088     LEXLIB=''
26089
26090   else
26091     if test "x2.5.30" != "x" ; then
26092                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26093
26094       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26095       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26096       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26097
26098       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26099       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26100       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26101
26102       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26103          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26104          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26105       then
26106         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26107 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26108         LEX=${am_missing_run}flex
26109         LEXLIB=''
26110
26111       else
26112         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26113 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26114       fi
26115     fi
26116   fi
26117
26118
26119 # Can we rebuild the xml-lexers from the XML specification?
26120 # if not, simply touch the flex source files (which are distributed in
26121 #  tarballs even if generated by flexml) and hope for the best.
26122 # Extract the first word of "flexml", so it can be a program name with args.
26123 set dummy flexml; ac_word=$2
26124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26126 if test "${ac_cv_prog_FLEXML+set}" = set; then
26127   echo $ECHO_N "(cached) $ECHO_C" >&6
26128 else
26129   if test -n "$FLEXML"; then
26130   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26131 else
26132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26133 for as_dir in $PATH
26134 do
26135   IFS=$as_save_IFS
26136   test -z "$as_dir" && as_dir=.
26137   for ac_exec_ext in '' $ac_executable_extensions; do
26138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26139     ac_cv_prog_FLEXML="`which flexml`"
26140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26141     break 2
26142   fi
26143 done
26144 done
26145 IFS=$as_save_IFS
26146
26147   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26148 fi
26149 fi
26150 FLEXML=$ac_cv_prog_FLEXML
26151 if test -n "$FLEXML"; then
26152   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26153 echo "${ECHO_T}$FLEXML" >&6; }
26154 else
26155   { echo "$as_me:$LINENO: result: no" >&5
26156 echo "${ECHO_T}no" >&6; }
26157 fi
26158
26159
26160
26161
26162 if test x$FLEXML != xNOTFOUND; then
26163   HAVE_FLEXML_TRUE=
26164   HAVE_FLEXML_FALSE='#'
26165 else
26166   HAVE_FLEXML_TRUE='#'
26167   HAVE_FLEXML_FALSE=
26168 fi
26169
26170
26171 if test x$USE_MAINTAINER_MODE = xyes
26172 then
26173    # Check for doxygen when in maintainer mode since dist* targets fail
26174    # without it
26175    # Extract the first word of "doxygen", so it can be a program name with args.
26176 set dummy doxygen; ac_word=$2
26177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26179 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26180   echo $ECHO_N "(cached) $ECHO_C" >&6
26181 else
26182   case $DOXYGEN in
26183   [\\/]* | ?:[\\/]*)
26184   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26185   ;;
26186   *)
26187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26188 for as_dir in $PATH
26189 do
26190   IFS=$as_save_IFS
26191   test -z "$as_dir" && as_dir=.
26192   for ac_exec_ext in '' $ac_executable_extensions; do
26193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26194     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26196     break 2
26197   fi
26198 done
26199 done
26200 IFS=$as_save_IFS
26201
26202   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26203   ;;
26204 esac
26205 fi
26206 DOXYGEN=$ac_cv_path_DOXYGEN
26207 if test -n "$DOXYGEN"; then
26208   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26209 echo "${ECHO_T}$DOXYGEN" >&6; }
26210 else
26211   { echo "$as_me:$LINENO: result: no" >&5
26212 echo "${ECHO_T}no" >&6; }
26213 fi
26214
26215
26216    if test x$DOXYGEN = x ; then
26217      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26218 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26219    { (exit 1); exit 1; }; }
26220    fi
26221 fi
26222
26223 # Can we extract really usable backtraces? (also need the popen function)
26224 # Extract the first word of "addr2line", so it can be a program name with args.
26225 set dummy addr2line; ac_word=$2
26226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26228 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26229   echo $ECHO_N "(cached) $ECHO_C" >&6
26230 else
26231   case $ADDR2LINE in
26232   [\\/]* | ?:[\\/]*)
26233   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26234   ;;
26235   *)
26236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26237 for as_dir in $PATH
26238 do
26239   IFS=$as_save_IFS
26240   test -z "$as_dir" && as_dir=.
26241   for ac_exec_ext in '' $ac_executable_extensions; do
26242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26243     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26245     break 2
26246   fi
26247 done
26248 done
26249 IFS=$as_save_IFS
26250
26251   ;;
26252 esac
26253 fi
26254 ADDR2LINE=$ac_cv_path_ADDR2LINE
26255 if test -n "$ADDR2LINE"; then
26256   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26257 echo "${ECHO_T}$ADDR2LINE" >&6; }
26258 else
26259   { echo "$as_me:$LINENO: result: no" >&5
26260 echo "${ECHO_T}no" >&6; }
26261 fi
26262
26263
26264 if test x$ADDR2LINE != x ; then
26265
26266 cat >>confdefs.h <<_ACEOF
26267 #define ADDR2LINE "$ADDR2LINE"
26268 _ACEOF
26269
26270 fi
26271
26272
26273 # Can we make status line about the compilation result?
26274 # Extract the first word of "md5sum", so it can be a program name with args.
26275 set dummy md5sum; ac_word=$2
26276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26278 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26279   echo $ECHO_N "(cached) $ECHO_C" >&6
26280 else
26281   if test -n "$MD5SUM"; then
26282   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26283 else
26284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26285 for as_dir in $PATH
26286 do
26287   IFS=$as_save_IFS
26288   test -z "$as_dir" && as_dir=.
26289   for ac_exec_ext in '' $ac_executable_extensions; do
26290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26291     ac_cv_prog_MD5SUM="`which md5sum`"
26292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26293     break 2
26294   fi
26295 done
26296 done
26297 IFS=$as_save_IFS
26298
26299 fi
26300 fi
26301 MD5SUM=$ac_cv_prog_MD5SUM
26302 if test -n "$MD5SUM"; then
26303   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26304 echo "${ECHO_T}$MD5SUM" >&6; }
26305 else
26306   { echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6; }
26308 fi
26309
26310
26311 if test x$MD5SUM != xno ; then
26312   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26313                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26314 else
26315   build_version="no_md5sum_binary"
26316 fi
26317 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26318
26319
26320 ###################
26321 ## Makes the output
26322 ##
26323
26324
26325 #
26326 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26327 #  src/amok/Makefile
26328
26329
26330   { echo "$as_me:$LINENO: result: " >&5
26331 echo "${ECHO_T}" >&6; }
26332   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26333 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26334
26335
26336 # Core of the libraries
26337
26338 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26339
26340
26341 # Tools being embeeded in gramine (stub generator)
26342 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26343
26344
26345
26346 # GRAMINE_CUT_BEGIN
26347
26348 # Tools NOT being embeeded in gramine
26349 ac_config_files="$ac_config_files tools/graspe-slave"
26350
26351
26352 # Testsuite
26353
26354 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26355
26356
26357 # Documentation
26358 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26359
26360
26361 # Examples
26362
26363 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/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl 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"
26364
26365
26366 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
26367 #    examples/gras/pastry/test_sg
26368
26369
26370
26371 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
26372 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
26373
26374
26375 # GRAMINE_CUT_END
26376
26377 cat >confcache <<\_ACEOF
26378 # This file is a shell script that caches the results of configure
26379 # tests run on this system so they can be shared between configure
26380 # scripts and configure runs, see configure's option --config-cache.
26381 # It is not useful on other systems.  If it contains results you don't
26382 # want to keep, you may remove or edit it.
26383 #
26384 # config.status only pays attention to the cache file if you give it
26385 # the --recheck option to rerun configure.
26386 #
26387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26389 # following values.
26390
26391 _ACEOF
26392
26393 # The following way of writing the cache mishandles newlines in values,
26394 # but we know of no workaround that is simple, portable, and efficient.
26395 # So, we kill variables containing newlines.
26396 # Ultrix sh set writes to stderr and can't be redirected directly,
26397 # and sets the high bit in the cache file unless we assign to the vars.
26398 (
26399   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26400     eval ac_val=\$$ac_var
26401     case $ac_val in #(
26402     *${as_nl}*)
26403       case $ac_var in #(
26404       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26405 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26406       esac
26407       case $ac_var in #(
26408       _ | IFS | as_nl) ;; #(
26409       *) $as_unset $ac_var ;;
26410       esac ;;
26411     esac
26412   done
26413
26414   (set) 2>&1 |
26415     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26416     *${as_nl}ac_space=\ *)
26417       # `set' does not quote correctly, so add quotes (double-quote
26418       # substitution turns \\\\ into \\, and sed turns \\ into \).
26419       sed -n \
26420         "s/'/'\\\\''/g;
26421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26422       ;; #(
26423     *)
26424       # `set' quotes correctly as required by POSIX, so do not add quotes.
26425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26426       ;;
26427     esac |
26428     sort
26429 ) |
26430   sed '
26431      /^ac_cv_env_/b end
26432      t clear
26433      :clear
26434      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26435      t end
26436      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26437      :end' >>confcache
26438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26439   if test -w "$cache_file"; then
26440     test "x$cache_file" != "x/dev/null" &&
26441       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26442 echo "$as_me: updating cache $cache_file" >&6;}
26443     cat confcache >$cache_file
26444   else
26445     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26446 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26447   fi
26448 fi
26449 rm -f confcache
26450
26451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26452 # Let make expand exec_prefix.
26453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26454
26455 DEFS=-DHAVE_CONFIG_H
26456
26457 ac_libobjs=
26458 ac_ltlibobjs=
26459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26460   # 1. Remove the extension, and $U if already installed.
26461   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26462   ac_i=`echo "$ac_i" | sed "$ac_script"`
26463   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26464   #    will be set to the directory where LIBOBJS objects are built.
26465   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26466   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26467 done
26468 LIBOBJS=$ac_libobjs
26469
26470 LTLIBOBJS=$ac_ltlibobjs
26471
26472
26473 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26474   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26475 Usually this means the macro was only invoked conditionally." >&5
26476 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26477 Usually this means the macro was only invoked conditionally." >&2;}
26478    { (exit 1); exit 1; }; }
26479 fi
26480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26481   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26482 Usually this means the macro was only invoked conditionally." >&5
26483 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26484 Usually this means the macro was only invoked conditionally." >&2;}
26485    { (exit 1); exit 1; }; }
26486 fi
26487 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26488   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26489 Usually this means the macro was only invoked conditionally." >&5
26490 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26491 Usually this means the macro was only invoked conditionally." >&2;}
26492    { (exit 1); exit 1; }; }
26493 fi
26494 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26495   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26496 Usually this means the macro was only invoked conditionally." >&5
26497 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26498 Usually this means the macro was only invoked conditionally." >&2;}
26499    { (exit 1); exit 1; }; }
26500 fi
26501 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26502   { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26503 Usually this means the macro was only invoked conditionally." >&5
26504 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26505 Usually this means the macro was only invoked conditionally." >&2;}
26506    { (exit 1); exit 1; }; }
26507 fi
26508 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26509   { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26510 Usually this means the macro was only invoked conditionally." >&5
26511 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26512 Usually this means the macro was only invoked conditionally." >&2;}
26513    { (exit 1); exit 1; }; }
26514 fi
26515 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26516   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26517 Usually this means the macro was only invoked conditionally." >&5
26518 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26519 Usually this means the macro was only invoked conditionally." >&2;}
26520    { (exit 1); exit 1; }; }
26521 fi
26522 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26523   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26524 Usually this means the macro was only invoked conditionally." >&5
26525 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26526 Usually this means the macro was only invoked conditionally." >&2;}
26527    { (exit 1); exit 1; }; }
26528 fi
26529 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26530   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26531 Usually this means the macro was only invoked conditionally." >&5
26532 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26533 Usually this means the macro was only invoked conditionally." >&2;}
26534    { (exit 1); exit 1; }; }
26535 fi
26536 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26537   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26538 Usually this means the macro was only invoked conditionally." >&5
26539 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26540 Usually this means the macro was only invoked conditionally." >&2;}
26541    { (exit 1); exit 1; }; }
26542 fi
26543
26544 : ${CONFIG_STATUS=./config.status}
26545 ac_clean_files_save=$ac_clean_files
26546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26549 cat >$CONFIG_STATUS <<_ACEOF
26550 #! $SHELL
26551 # Generated by $as_me.
26552 # Run this file to recreate the current configuration.
26553 # Compiler output produced by configure, useful for debugging
26554 # configure, is in config.log if it exists.
26555
26556 debug=false
26557 ac_cs_recheck=false
26558 ac_cs_silent=false
26559 SHELL=\${CONFIG_SHELL-$SHELL}
26560 _ACEOF
26561
26562 cat >>$CONFIG_STATUS <<\_ACEOF
26563 ## --------------------- ##
26564 ## M4sh Initialization.  ##
26565 ## --------------------- ##
26566
26567 # Be more Bourne compatible
26568 DUALCASE=1; export DUALCASE # for MKS sh
26569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26570   emulate sh
26571   NULLCMD=:
26572   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26573   # is contrary to our usage.  Disable this feature.
26574   alias -g '${1+"$@"}'='"$@"'
26575   setopt NO_GLOB_SUBST
26576 else
26577   case `(set -o) 2>/dev/null` in
26578   *posix*) set -o posix ;;
26579 esac
26580
26581 fi
26582
26583
26584
26585
26586 # PATH needs CR
26587 # Avoid depending upon Character Ranges.
26588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26591 as_cr_digits='0123456789'
26592 as_cr_alnum=$as_cr_Letters$as_cr_digits
26593
26594 # The user is always right.
26595 if test "${PATH_SEPARATOR+set}" != set; then
26596   echo "#! /bin/sh" >conf$$.sh
26597   echo  "exit 0"   >>conf$$.sh
26598   chmod +x conf$$.sh
26599   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26600     PATH_SEPARATOR=';'
26601   else
26602     PATH_SEPARATOR=:
26603   fi
26604   rm -f conf$$.sh
26605 fi
26606
26607 # Support unset when possible.
26608 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26609   as_unset=unset
26610 else
26611   as_unset=false
26612 fi
26613
26614
26615 # IFS
26616 # We need space, tab and new line, in precisely that order.  Quoting is
26617 # there to prevent editors from complaining about space-tab.
26618 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26619 # splitting by setting IFS to empty value.)
26620 as_nl='
26621 '
26622 IFS=" ""        $as_nl"
26623
26624 # Find who we are.  Look in the path if we contain no directory separator.
26625 case $0 in
26626   *[\\/]* ) as_myself=$0 ;;
26627   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26628 for as_dir in $PATH
26629 do
26630   IFS=$as_save_IFS
26631   test -z "$as_dir" && as_dir=.
26632   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26633 done
26634 IFS=$as_save_IFS
26635
26636      ;;
26637 esac
26638 # We did not find ourselves, most probably we were run as `sh COMMAND'
26639 # in which case we are not to be found in the path.
26640 if test "x$as_myself" = x; then
26641   as_myself=$0
26642 fi
26643 if test ! -f "$as_myself"; then
26644   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26645   { (exit 1); exit 1; }
26646 fi
26647
26648 # Work around bugs in pre-3.0 UWIN ksh.
26649 for as_var in ENV MAIL MAILPATH
26650 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26651 done
26652 PS1='$ '
26653 PS2='> '
26654 PS4='+ '
26655
26656 # NLS nuisances.
26657 for as_var in \
26658   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26659   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26660   LC_TELEPHONE LC_TIME
26661 do
26662   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26663     eval $as_var=C; export $as_var
26664   else
26665     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26666   fi
26667 done
26668
26669 # Required to use basename.
26670 if expr a : '\(a\)' >/dev/null 2>&1 &&
26671    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26672   as_expr=expr
26673 else
26674   as_expr=false
26675 fi
26676
26677 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26678   as_basename=basename
26679 else
26680   as_basename=false
26681 fi
26682
26683
26684 # Name of the executable.
26685 as_me=`$as_basename -- "$0" ||
26686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26687          X"$0" : 'X\(//\)$' \| \
26688          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26689 echo X/"$0" |
26690     sed '/^.*\/\([^/][^/]*\)\/*$/{
26691             s//\1/
26692             q
26693           }
26694           /^X\/\(\/\/\)$/{
26695             s//\1/
26696             q
26697           }
26698           /^X\/\(\/\).*/{
26699             s//\1/
26700             q
26701           }
26702           s/.*/./; q'`
26703
26704 # CDPATH.
26705 $as_unset CDPATH
26706
26707
26708
26709   as_lineno_1=$LINENO
26710   as_lineno_2=$LINENO
26711   test "x$as_lineno_1" != "x$as_lineno_2" &&
26712   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26713
26714   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26715   # uniformly replaced by the line number.  The first 'sed' inserts a
26716   # line-number line after each line using $LINENO; the second 'sed'
26717   # does the real work.  The second script uses 'N' to pair each
26718   # line-number line with the line containing $LINENO, and appends
26719   # trailing '-' during substitution so that $LINENO is not a special
26720   # case at line end.
26721   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26722   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26723   # E. McMahon (1931-1989) for sed's syntax.  :-)
26724   sed -n '
26725     p
26726     /[$]LINENO/=
26727   ' <$as_myself |
26728     sed '
26729       s/[$]LINENO.*/&-/
26730       t lineno
26731       b
26732       :lineno
26733       N
26734       :loop
26735       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26736       t loop
26737       s/-\n.*//
26738     ' >$as_me.lineno &&
26739   chmod +x "$as_me.lineno" ||
26740     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26741    { (exit 1); exit 1; }; }
26742
26743   # Don't try to exec as it changes $[0], causing all sort of problems
26744   # (the dirname of $[0] is not the place where we might find the
26745   # original and so on.  Autoconf is especially sensitive to this).
26746   . "./$as_me.lineno"
26747   # Exit status is that of the last command.
26748   exit
26749 }
26750
26751
26752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26753   as_dirname=dirname
26754 else
26755   as_dirname=false
26756 fi
26757
26758 ECHO_C= ECHO_N= ECHO_T=
26759 case `echo -n x` in
26760 -n*)
26761   case `echo 'x\c'` in
26762   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26763   *)   ECHO_C='\c';;
26764   esac;;
26765 *)
26766   ECHO_N='-n';;
26767 esac
26768
26769 if expr a : '\(a\)' >/dev/null 2>&1 &&
26770    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26771   as_expr=expr
26772 else
26773   as_expr=false
26774 fi
26775
26776 rm -f conf$$ conf$$.exe conf$$.file
26777 if test -d conf$$.dir; then
26778   rm -f conf$$.dir/conf$$.file
26779 else
26780   rm -f conf$$.dir
26781   mkdir conf$$.dir
26782 fi
26783 echo >conf$$.file
26784 if ln -s conf$$.file conf$$ 2>/dev/null; then
26785   as_ln_s='ln -s'
26786   # ... but there are two gotchas:
26787   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26788   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26789   # In both cases, we have to default to `cp -p'.
26790   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26791     as_ln_s='cp -p'
26792 elif ln conf$$.file conf$$ 2>/dev/null; then
26793   as_ln_s=ln
26794 else
26795   as_ln_s='cp -p'
26796 fi
26797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26798 rmdir conf$$.dir 2>/dev/null
26799
26800 if mkdir -p . 2>/dev/null; then
26801   as_mkdir_p=:
26802 else
26803   test -d ./-p && rmdir ./-p
26804   as_mkdir_p=false
26805 fi
26806
26807 if test -x / >/dev/null 2>&1; then
26808   as_test_x='test -x'
26809 else
26810   if ls -dL / >/dev/null 2>&1; then
26811     as_ls_L_option=L
26812   else
26813     as_ls_L_option=
26814   fi
26815   as_test_x='
26816     eval sh -c '\''
26817       if test -d "$1"; then
26818         test -d "$1/.";
26819       else
26820         case $1 in
26821         -*)set "./$1";;
26822         esac;
26823         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26824         ???[sx]*):;;*)false;;esac;fi
26825     '\'' sh
26826   '
26827 fi
26828 as_executable_p=$as_test_x
26829
26830 # Sed expression to map a string onto a valid CPP name.
26831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26832
26833 # Sed expression to map a string onto a valid variable name.
26834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26835
26836
26837 exec 6>&1
26838
26839 # Save the log message, to keep $[0] and so on meaningful, and to
26840 # report actual input values of CONFIG_FILES etc. instead of their
26841 # values after options handling.
26842 ac_log="
26843 This file was extended by simgrid $as_me 3.3-cvs, which was
26844 generated by GNU Autoconf 2.61.  Invocation command line was
26845
26846   CONFIG_FILES    = $CONFIG_FILES
26847   CONFIG_HEADERS  = $CONFIG_HEADERS
26848   CONFIG_LINKS    = $CONFIG_LINKS
26849   CONFIG_COMMANDS = $CONFIG_COMMANDS
26850   $ $0 $@
26851
26852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26853 "
26854
26855 _ACEOF
26856
26857 cat >>$CONFIG_STATUS <<_ACEOF
26858 # Files that config.status was made for.
26859 config_files="$ac_config_files"
26860 config_headers="$ac_config_headers"
26861 config_commands="$ac_config_commands"
26862
26863 _ACEOF
26864
26865 cat >>$CONFIG_STATUS <<\_ACEOF
26866 ac_cs_usage="\
26867 \`$as_me' instantiates files from templates according to the
26868 current configuration.
26869
26870 Usage: $0 [OPTIONS] [FILE]...
26871
26872   -h, --help       print this help, then exit
26873   -V, --version    print version number and configuration settings, then exit
26874   -q, --quiet      do not print progress messages
26875   -d, --debug      don't remove temporary files
26876       --recheck    update $as_me by reconfiguring in the same conditions
26877   --file=FILE[:TEMPLATE]
26878                    instantiate the configuration file FILE
26879   --header=FILE[:TEMPLATE]
26880                    instantiate the configuration header FILE
26881
26882 Configuration files:
26883 $config_files
26884
26885 Configuration headers:
26886 $config_headers
26887
26888 Configuration commands:
26889 $config_commands
26890
26891 Report bugs to <bug-autoconf@gnu.org>."
26892
26893 _ACEOF
26894 cat >>$CONFIG_STATUS <<_ACEOF
26895 ac_cs_version="\\
26896 simgrid config.status 3.3-cvs
26897 configured by $0, generated by GNU Autoconf 2.61,
26898   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26899
26900 Copyright (C) 2006 Free Software Foundation, Inc.
26901 This config.status script is free software; the Free Software Foundation
26902 gives unlimited permission to copy, distribute and modify it."
26903
26904 ac_pwd='$ac_pwd'
26905 srcdir='$srcdir'
26906 INSTALL='$INSTALL'
26907 _ACEOF
26908
26909 cat >>$CONFIG_STATUS <<\_ACEOF
26910 # If no file are specified by the user, then we need to provide default
26911 # value.  By we need to know if files were specified by the user.
26912 ac_need_defaults=:
26913 while test $# != 0
26914 do
26915   case $1 in
26916   --*=*)
26917     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26918     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26919     ac_shift=:
26920     ;;
26921   *)
26922     ac_option=$1
26923     ac_optarg=$2
26924     ac_shift=shift
26925     ;;
26926   esac
26927
26928   case $ac_option in
26929   # Handling of the options.
26930   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26931     ac_cs_recheck=: ;;
26932   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26933     echo "$ac_cs_version"; exit ;;
26934   --debug | --debu | --deb | --de | --d | -d )
26935     debug=: ;;
26936   --file | --fil | --fi | --f )
26937     $ac_shift
26938     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26939     ac_need_defaults=false;;
26940   --header | --heade | --head | --hea )
26941     $ac_shift
26942     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26943     ac_need_defaults=false;;
26944   --he | --h)
26945     # Conflict between --help and --header
26946     { echo "$as_me: error: ambiguous option: $1
26947 Try \`$0 --help' for more information." >&2
26948    { (exit 1); exit 1; }; };;
26949   --help | --hel | -h )
26950     echo "$ac_cs_usage"; exit ;;
26951   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26952   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26953     ac_cs_silent=: ;;
26954
26955   # This is an error.
26956   -*) { echo "$as_me: error: unrecognized option: $1
26957 Try \`$0 --help' for more information." >&2
26958    { (exit 1); exit 1; }; } ;;
26959
26960   *) ac_config_targets="$ac_config_targets $1"
26961      ac_need_defaults=false ;;
26962
26963   esac
26964   shift
26965 done
26966
26967 ac_configure_extra_args=
26968
26969 if $ac_cs_silent; then
26970   exec 6>/dev/null
26971   ac_configure_extra_args="$ac_configure_extra_args --silent"
26972 fi
26973
26974 _ACEOF
26975 cat >>$CONFIG_STATUS <<_ACEOF
26976 if \$ac_cs_recheck; then
26977   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26978   CONFIG_SHELL=$SHELL
26979   export CONFIG_SHELL
26980   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26981 fi
26982
26983 _ACEOF
26984 cat >>$CONFIG_STATUS <<\_ACEOF
26985 exec 5>>config.log
26986 {
26987   echo
26988   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26989 ## Running $as_me. ##
26990 _ASBOX
26991   echo "$ac_log"
26992 } >&5
26993
26994 _ACEOF
26995 cat >>$CONFIG_STATUS <<_ACEOF
26996 #
26997 # INIT-COMMANDS
26998 #
26999 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27000
27001 _ACEOF
27002
27003 cat >>$CONFIG_STATUS <<\_ACEOF
27004
27005 # Handling of arguments.
27006 for ac_config_target in $ac_config_targets
27007 do
27008   case $ac_config_target in
27009     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27010     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27011     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27012     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27013     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27014     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27015     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27016     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27017     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27018     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27019     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27020     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27021     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27022     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27023     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27024     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27025     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27026     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27027     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27028     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27029     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27030     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27031     "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
27032     "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
27033     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27034     "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
27035     "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
27036     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27037     "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
27038     "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
27039     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27040     "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
27041     "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
27042     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27043     "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
27044     "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
27045     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27046     "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
27047     "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
27048     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27049     "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
27050     "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
27051     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27052     "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
27053     "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
27054     "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
27055     "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
27056     "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
27057     "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
27058     "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
27059     "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
27060     "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
27061     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27062     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27063     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27064     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27065     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27066     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27067     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27068
27069   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27070 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27071    { (exit 1); exit 1; }; };;
27072   esac
27073 done
27074
27075
27076 # If the user did not use the arguments to specify the items to instantiate,
27077 # then the envvar interface is used.  Set only those that are not.
27078 # We use the long form for the default assignment because of an extremely
27079 # bizarre bug on SunOS 4.1.3.
27080 if $ac_need_defaults; then
27081   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27082   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27083   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27084 fi
27085
27086 # Have a temporary directory for convenience.  Make it in the build tree
27087 # simply because there is no reason against having it here, and in addition,
27088 # creating and moving files from /tmp can sometimes cause problems.
27089 # Hook for its removal unless debugging.
27090 # Note that there is a small window in which the directory will not be cleaned:
27091 # after its creation but before its name has been assigned to `$tmp'.
27092 $debug ||
27093 {
27094   tmp=
27095   trap 'exit_status=$?
27096   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27097 ' 0
27098   trap '{ (exit 1); exit 1; }' 1 2 13 15
27099 }
27100 # Create a (secure) tmp directory for tmp files.
27101
27102 {
27103   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27104   test -n "$tmp" && test -d "$tmp"
27105 }  ||
27106 {
27107   tmp=./conf$$-$RANDOM
27108   (umask 077 && mkdir "$tmp")
27109 } ||
27110 {
27111    echo "$me: cannot create a temporary directory in ." >&2
27112    { (exit 1); exit 1; }
27113 }
27114
27115 #
27116 # Set up the sed scripts for CONFIG_FILES section.
27117 #
27118
27119 # No need to generate the scripts if there are no CONFIG_FILES.
27120 # This happens for instance when ./config.status config.h
27121 if test -n "$CONFIG_FILES"; then
27122
27123 _ACEOF
27124
27125
27126
27127 ac_delim='%!_!# '
27128 for ac_last_try in false false false false false :; do
27129   cat >conf$$subs.sed <<_ACEOF
27130 SHELL!$SHELL$ac_delim
27131 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27132 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27133 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27134 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27135 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27136 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27137 exec_prefix!$exec_prefix$ac_delim
27138 prefix!$prefix$ac_delim
27139 program_transform_name!$program_transform_name$ac_delim
27140 bindir!$bindir$ac_delim
27141 sbindir!$sbindir$ac_delim
27142 libexecdir!$libexecdir$ac_delim
27143 datarootdir!$datarootdir$ac_delim
27144 datadir!$datadir$ac_delim
27145 sysconfdir!$sysconfdir$ac_delim
27146 sharedstatedir!$sharedstatedir$ac_delim
27147 localstatedir!$localstatedir$ac_delim
27148 includedir!$includedir$ac_delim
27149 oldincludedir!$oldincludedir$ac_delim
27150 docdir!$docdir$ac_delim
27151 infodir!$infodir$ac_delim
27152 htmldir!$htmldir$ac_delim
27153 dvidir!$dvidir$ac_delim
27154 pdfdir!$pdfdir$ac_delim
27155 psdir!$psdir$ac_delim
27156 libdir!$libdir$ac_delim
27157 localedir!$localedir$ac_delim
27158 mandir!$mandir$ac_delim
27159 DEFS!$DEFS$ac_delim
27160 ECHO_C!$ECHO_C$ac_delim
27161 ECHO_N!$ECHO_N$ac_delim
27162 ECHO_T!$ECHO_T$ac_delim
27163 LIBS!$LIBS$ac_delim
27164 build_alias!$build_alias$ac_delim
27165 host_alias!$host_alias$ac_delim
27166 target_alias!$target_alias$ac_delim
27167 build!$build$ac_delim
27168 build_cpu!$build_cpu$ac_delim
27169 build_vendor!$build_vendor$ac_delim
27170 build_os!$build_os$ac_delim
27171 host!$host$ac_delim
27172 host_cpu!$host_cpu$ac_delim
27173 host_vendor!$host_vendor$ac_delim
27174 host_os!$host_os$ac_delim
27175 target!$target$ac_delim
27176 target_cpu!$target_cpu$ac_delim
27177 target_vendor!$target_vendor$ac_delim
27178 target_os!$target_os$ac_delim
27179 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27180 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27181 INSTALL_DATA!$INSTALL_DATA$ac_delim
27182 CYGPATH_W!$CYGPATH_W$ac_delim
27183 PACKAGE!$PACKAGE$ac_delim
27184 VERSION!$VERSION$ac_delim
27185 ACLOCAL!$ACLOCAL$ac_delim
27186 AUTOCONF!$AUTOCONF$ac_delim
27187 AUTOMAKE!$AUTOMAKE$ac_delim
27188 AUTOHEADER!$AUTOHEADER$ac_delim
27189 MAKEINFO!$MAKEINFO$ac_delim
27190 install_sh!$install_sh$ac_delim
27191 STRIP!$STRIP$ac_delim
27192 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27193 mkdir_p!$mkdir_p$ac_delim
27194 AWK!$AWK$ac_delim
27195 SET_MAKE!$SET_MAKE$ac_delim
27196 am__leading_dot!$am__leading_dot$ac_delim
27197 AMTAR!$AMTAR$ac_delim
27198 am__tar!$am__tar$ac_delim
27199 am__untar!$am__untar$ac_delim
27200 CC!$CC$ac_delim
27201 CFLAGS!$CFLAGS$ac_delim
27202 LDFLAGS!$LDFLAGS$ac_delim
27203 CPPFLAGS!$CPPFLAGS$ac_delim
27204 ac_ct_CC!$ac_ct_CC$ac_delim
27205 EXEEXT!$EXEEXT$ac_delim
27206 OBJEXT!$OBJEXT$ac_delim
27207 DEPDIR!$DEPDIR$ac_delim
27208 am__include!$am__include$ac_delim
27209 am__quote!$am__quote$ac_delim
27210 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27211 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27212 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27213 CCDEPMODE!$CCDEPMODE$ac_delim
27214 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27215 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27216 GREP!$GREP$ac_delim
27217 EGREP!$EGREP$ac_delim
27218 LN_S!$LN_S$ac_delim
27219 ECHO!$ECHO$ac_delim
27220 AR!$AR$ac_delim
27221 RANLIB!$RANLIB$ac_delim
27222 DLLTOOL!$DLLTOOL$ac_delim
27223 AS!$AS$ac_delim
27224 OBJDUMP!$OBJDUMP$ac_delim
27225 CPP!$CPP$ac_delim
27226 CXX!$CXX$ac_delim
27227 _ACEOF
27228
27229   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27230     break
27231   elif $ac_last_try; then
27232     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27233 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27234    { (exit 1); exit 1; }; }
27235   else
27236     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27237   fi
27238 done
27239
27240 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27241 if test -n "$ac_eof"; then
27242   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27243   ac_eof=`expr $ac_eof + 1`
27244 fi
27245
27246 cat >>$CONFIG_STATUS <<_ACEOF
27247 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27249 _ACEOF
27250 sed '
27251 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27252 s/^/s,@/; s/!/@,|#_!!_#|/
27253 :n
27254 t n
27255 s/'"$ac_delim"'$/,g/; t
27256 s/$/\\/; p
27257 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27258 ' >>$CONFIG_STATUS <conf$$subs.sed
27259 rm -f conf$$subs.sed
27260 cat >>$CONFIG_STATUS <<_ACEOF
27261 CEOF$ac_eof
27262 _ACEOF
27263
27264
27265 ac_delim='%!_!# '
27266 for ac_last_try in false false false false false :; do
27267   cat >conf$$subs.sed <<_ACEOF
27268 CXXFLAGS!$CXXFLAGS$ac_delim
27269 ac_ct_CXX!$ac_ct_CXX$ac_delim
27270 CXXDEPMODE!$CXXDEPMODE$ac_delim
27271 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27272 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27273 CXXCPP!$CXXCPP$ac_delim
27274 F77!$F77$ac_delim
27275 FFLAGS!$FFLAGS$ac_delim
27276 ac_ct_F77!$ac_ct_F77$ac_delim
27277 LIBTOOL!$LIBTOOL$ac_delim
27278 LIBOBJS!$LIBOBJS$ac_delim
27279 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27280 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27281 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27282 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27283 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27284 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27285 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27286 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27287 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27288 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27289 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27290 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27291 AM_CFLAGS!$AM_CFLAGS$ac_delim
27292 GRAS_DEP!$GRAS_DEP$ac_delim
27293 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27294 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27295 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27296 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27297 MAINT!$MAINT$ac_delim
27298 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27299 abs_builddir!$abs_builddir$ac_delim
27300 abs_srcdir!$abs_srcdir$ac_delim
27301 abs_top_builddir!$abs_top_builddir$ac_delim
27302 abs_top_srcdir!$abs_top_srcdir$ac_delim
27303 BASH!$BASH$ac_delim
27304 WARNING!$WARNING$ac_delim
27305 LEX!$LEX$ac_delim
27306 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27307 LEXLIB!$LEXLIB$ac_delim
27308 FLEXML!$FLEXML$ac_delim
27309 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27310 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27311 DOXYGEN!$DOXYGEN$ac_delim
27312 ADDR2LINE!$ADDR2LINE$ac_delim
27313 ac_configure_args!$ac_configure_args$ac_delim
27314 MD5SUM!$MD5SUM$ac_delim
27315 build_id!$build_id$ac_delim
27316 LTLIBOBJS!$LTLIBOBJS$ac_delim
27317 _ACEOF
27318
27319   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
27320     break
27321   elif $ac_last_try; then
27322     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27323 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27324    { (exit 1); exit 1; }; }
27325   else
27326     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27327   fi
27328 done
27329
27330 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27331 if test -n "$ac_eof"; then
27332   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27333   ac_eof=`expr $ac_eof + 1`
27334 fi
27335
27336 cat >>$CONFIG_STATUS <<_ACEOF
27337 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27339 _ACEOF
27340 sed '
27341 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27342 s/^/s,@/; s/!/@,|#_!!_#|/
27343 :n
27344 t n
27345 s/'"$ac_delim"'$/,g/; t
27346 s/$/\\/; p
27347 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27348 ' >>$CONFIG_STATUS <conf$$subs.sed
27349 rm -f conf$$subs.sed
27350 cat >>$CONFIG_STATUS <<_ACEOF
27351 :end
27352 s/|#_!!_#|//g
27353 CEOF$ac_eof
27354 _ACEOF
27355
27356
27357 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27358 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27359 # trailing colons and then remove the whole line if VPATH becomes empty
27360 # (actually we leave an empty line to preserve line numbers).
27361 if test "x$srcdir" = x.; then
27362   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27363 s/:*\$(srcdir):*/:/
27364 s/:*\${srcdir}:*/:/
27365 s/:*@srcdir@:*/:/
27366 s/^\([^=]*=[     ]*\):*/\1/
27367 s/:*$//
27368 s/^[^=]*=[       ]*$//
27369 }'
27370 fi
27371
27372 cat >>$CONFIG_STATUS <<\_ACEOF
27373 fi # test -n "$CONFIG_FILES"
27374
27375
27376 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27377 do
27378   case $ac_tag in
27379   :[FHLC]) ac_mode=$ac_tag; continue;;
27380   esac
27381   case $ac_mode$ac_tag in
27382   :[FHL]*:*);;
27383   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27384 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27385    { (exit 1); exit 1; }; };;
27386   :[FH]-) ac_tag=-:-;;
27387   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27388   esac
27389   ac_save_IFS=$IFS
27390   IFS=:
27391   set x $ac_tag
27392   IFS=$ac_save_IFS
27393   shift
27394   ac_file=$1
27395   shift
27396
27397   case $ac_mode in
27398   :L) ac_source=$1;;
27399   :[FH])
27400     ac_file_inputs=
27401     for ac_f
27402     do
27403       case $ac_f in
27404       -) ac_f="$tmp/stdin";;
27405       *) # Look for the file first in the build tree, then in the source tree
27406          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27407          # because $ac_f cannot contain `:'.
27408          test -f "$ac_f" ||
27409            case $ac_f in
27410            [\\/$]*) false;;
27411            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27412            esac ||
27413            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27414 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27415    { (exit 1); exit 1; }; };;
27416       esac
27417       ac_file_inputs="$ac_file_inputs $ac_f"
27418     done
27419
27420     # Let's still pretend it is `configure' which instantiates (i.e., don't
27421     # use $as_me), people would be surprised to read:
27422     #    /* config.h.  Generated by config.status.  */
27423     configure_input="Generated from "`IFS=:
27424           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27425     if test x"$ac_file" != x-; then
27426       configure_input="$ac_file.  $configure_input"
27427       { echo "$as_me:$LINENO: creating $ac_file" >&5
27428 echo "$as_me: creating $ac_file" >&6;}
27429     fi
27430
27431     case $ac_tag in
27432     *:-:* | *:-) cat >"$tmp/stdin";;
27433     esac
27434     ;;
27435   esac
27436
27437   ac_dir=`$as_dirname -- "$ac_file" ||
27438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27439          X"$ac_file" : 'X\(//\)[^/]' \| \
27440          X"$ac_file" : 'X\(//\)$' \| \
27441          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27442 echo X"$ac_file" |
27443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27444             s//\1/
27445             q
27446           }
27447           /^X\(\/\/\)[^/].*/{
27448             s//\1/
27449             q
27450           }
27451           /^X\(\/\/\)$/{
27452             s//\1/
27453             q
27454           }
27455           /^X\(\/\).*/{
27456             s//\1/
27457             q
27458           }
27459           s/.*/./; q'`
27460   { as_dir="$ac_dir"
27461   case $as_dir in #(
27462   -*) as_dir=./$as_dir;;
27463   esac
27464   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27465     as_dirs=
27466     while :; do
27467       case $as_dir in #(
27468       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27469       *) as_qdir=$as_dir;;
27470       esac
27471       as_dirs="'$as_qdir' $as_dirs"
27472       as_dir=`$as_dirname -- "$as_dir" ||
27473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27474          X"$as_dir" : 'X\(//\)[^/]' \| \
27475          X"$as_dir" : 'X\(//\)$' \| \
27476          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27477 echo X"$as_dir" |
27478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27479             s//\1/
27480             q
27481           }
27482           /^X\(\/\/\)[^/].*/{
27483             s//\1/
27484             q
27485           }
27486           /^X\(\/\/\)$/{
27487             s//\1/
27488             q
27489           }
27490           /^X\(\/\).*/{
27491             s//\1/
27492             q
27493           }
27494           s/.*/./; q'`
27495       test -d "$as_dir" && break
27496     done
27497     test -z "$as_dirs" || eval "mkdir $as_dirs"
27498   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27499 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27500    { (exit 1); exit 1; }; }; }
27501   ac_builddir=.
27502
27503 case "$ac_dir" in
27504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27505 *)
27506   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27507   # A ".." for each directory in $ac_dir_suffix.
27508   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27509   case $ac_top_builddir_sub in
27510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27512   esac ;;
27513 esac
27514 ac_abs_top_builddir=$ac_pwd
27515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27516 # for backward compatibility:
27517 ac_top_builddir=$ac_top_build_prefix
27518
27519 case $srcdir in
27520   .)  # We are building in place.
27521     ac_srcdir=.
27522     ac_top_srcdir=$ac_top_builddir_sub
27523     ac_abs_top_srcdir=$ac_pwd ;;
27524   [\\/]* | ?:[\\/]* )  # Absolute name.
27525     ac_srcdir=$srcdir$ac_dir_suffix;
27526     ac_top_srcdir=$srcdir
27527     ac_abs_top_srcdir=$srcdir ;;
27528   *) # Relative name.
27529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27530     ac_top_srcdir=$ac_top_build_prefix$srcdir
27531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27532 esac
27533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27534
27535
27536   case $ac_mode in
27537   :F)
27538   #
27539   # CONFIG_FILE
27540   #
27541
27542   case $INSTALL in
27543   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27544   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27545   esac
27546 _ACEOF
27547
27548 cat >>$CONFIG_STATUS <<\_ACEOF
27549 # If the template does not know about datarootdir, expand it.
27550 # FIXME: This hack should be removed a few years after 2.60.
27551 ac_datarootdir_hack=; ac_datarootdir_seen=
27552
27553 case `sed -n '/datarootdir/ {
27554   p
27555   q
27556 }
27557 /@datadir@/p
27558 /@docdir@/p
27559 /@infodir@/p
27560 /@localedir@/p
27561 /@mandir@/p
27562 ' $ac_file_inputs` in
27563 *datarootdir*) ac_datarootdir_seen=yes;;
27564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27565   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27566 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27567 _ACEOF
27568 cat >>$CONFIG_STATUS <<_ACEOF
27569   ac_datarootdir_hack='
27570   s&@datadir@&$datadir&g
27571   s&@docdir@&$docdir&g
27572   s&@infodir@&$infodir&g
27573   s&@localedir@&$localedir&g
27574   s&@mandir@&$mandir&g
27575     s&\\\${datarootdir}&$datarootdir&g' ;;
27576 esac
27577 _ACEOF
27578
27579 # Neutralize VPATH when `$srcdir' = `.'.
27580 # Shell code in configure.ac might set extrasub.
27581 # FIXME: do we really want to maintain this feature?
27582 cat >>$CONFIG_STATUS <<_ACEOF
27583   sed "$ac_vpsub
27584 $extrasub
27585 _ACEOF
27586 cat >>$CONFIG_STATUS <<\_ACEOF
27587 :t
27588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27589 s&@configure_input@&$configure_input&;t t
27590 s&@top_builddir@&$ac_top_builddir_sub&;t t
27591 s&@srcdir@&$ac_srcdir&;t t
27592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27593 s&@top_srcdir@&$ac_top_srcdir&;t t
27594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27595 s&@builddir@&$ac_builddir&;t t
27596 s&@abs_builddir@&$ac_abs_builddir&;t t
27597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27598 s&@INSTALL@&$ac_INSTALL&;t t
27599 $ac_datarootdir_hack
27600 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27601
27602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27603   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27604   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27605   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27606 which seems to be undefined.  Please make sure it is defined." >&5
27607 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27608 which seems to be undefined.  Please make sure it is defined." >&2;}
27609
27610   rm -f "$tmp/stdin"
27611   case $ac_file in
27612   -) cat "$tmp/out"; rm -f "$tmp/out";;
27613   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27614   esac
27615  ;;
27616   :H)
27617   #
27618   # CONFIG_HEADER
27619   #
27620 _ACEOF
27621
27622 # Transform confdefs.h into a sed script `conftest.defines', that
27623 # substitutes the proper values into config.h.in to produce config.h.
27624 rm -f conftest.defines conftest.tail
27625 # First, append a space to every undef/define line, to ease matching.
27626 echo 's/$/ /' >conftest.defines
27627 # Then, protect against being on the right side of a sed subst, or in
27628 # an unquoted here document, in config.status.  If some macros were
27629 # called several times there might be several #defines for the same
27630 # symbol, which is useless.  But do not sort them, since the last
27631 # AC_DEFINE must be honored.
27632 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27633 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27634 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27635 # PARAMS is the parameter list in the macro definition--in most cases, it's
27636 # just an empty string.
27637 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27638 ac_dB='\\)[      (].*,\\1define\\2'
27639 ac_dC=' '
27640 ac_dD=' ,'
27641
27642 uniq confdefs.h |
27643   sed -n '
27644         t rset
27645         :rset
27646         s/^[     ]*#[    ]*define[       ][      ]*//
27647         t ok
27648         d
27649         :ok
27650         s/[\\&,]/\\&/g
27651         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27652         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27653   ' >>conftest.defines
27654
27655 # Remove the space that was appended to ease matching.
27656 # Then replace #undef with comments.  This is necessary, for
27657 # example, in the case of _POSIX_SOURCE, which is predefined and required
27658 # on some systems where configure will not decide to define it.
27659 # (The regexp can be short, since the line contains either #define or #undef.)
27660 echo 's/ $//
27661 s,^[     #]*u.*,/* & */,' >>conftest.defines
27662
27663 # Break up conftest.defines:
27664 ac_max_sed_lines=50
27665
27666 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27667 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27668 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27669 # et cetera.
27670 ac_in='$ac_file_inputs'
27671 ac_out='"$tmp/out1"'
27672 ac_nxt='"$tmp/out2"'
27673
27674 while :
27675 do
27676   # Write a here document:
27677     cat >>$CONFIG_STATUS <<_ACEOF
27678     # First, check the format of the line:
27679     cat >"\$tmp/defines.sed" <<\\CEOF
27680 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27681 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27682 b
27683 :def
27684 _ACEOF
27685   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27686   echo 'CEOF
27687     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27688   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27689   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27690   grep . conftest.tail >/dev/null || break
27691   rm -f conftest.defines
27692   mv conftest.tail conftest.defines
27693 done
27694 rm -f conftest.defines conftest.tail
27695
27696 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27697 cat >>$CONFIG_STATUS <<\_ACEOF
27698   if test x"$ac_file" != x-; then
27699     echo "/* $configure_input  */" >"$tmp/config.h"
27700     cat "$ac_result" >>"$tmp/config.h"
27701     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27702       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27703 echo "$as_me: $ac_file is unchanged" >&6;}
27704     else
27705       rm -f $ac_file
27706       mv "$tmp/config.h" $ac_file
27707     fi
27708   else
27709     echo "/* $configure_input  */"
27710     cat "$ac_result"
27711   fi
27712   rm -f "$tmp/out12"
27713 # Compute $ac_file's index in $config_headers.
27714 _am_stamp_count=1
27715 for _am_header in $config_headers :; do
27716   case $_am_header in
27717     $ac_file | $ac_file:* )
27718       break ;;
27719     * )
27720       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27721   esac
27722 done
27723 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27724 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27725          X$ac_file : 'X\(//\)[^/]' \| \
27726          X$ac_file : 'X\(//\)$' \| \
27727          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27728 echo X$ac_file |
27729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27730             s//\1/
27731             q
27732           }
27733           /^X\(\/\/\)[^/].*/{
27734             s//\1/
27735             q
27736           }
27737           /^X\(\/\/\)$/{
27738             s//\1/
27739             q
27740           }
27741           /^X\(\/\).*/{
27742             s//\1/
27743             q
27744           }
27745           s/.*/./; q'`/stamp-h$_am_stamp_count
27746  ;;
27747
27748   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27749 echo "$as_me: executing $ac_file commands" >&6;}
27750  ;;
27751   esac
27752
27753
27754   case $ac_file$ac_mode in
27755     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27756   # Strip MF so we end up with the name of the file.
27757   mf=`echo "$mf" | sed -e 's/:.*$//'`
27758   # Check whether this is an Automake generated Makefile or not.
27759   # We used to match only the files named `Makefile.in', but
27760   # some people rename them; so instead we look at the file content.
27761   # Grep'ing the first line is not enough: some people post-process
27762   # each Makefile.in and add a new line on top of each file to say so.
27763   # So let's grep whole file.
27764   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27765     dirpart=`$as_dirname -- "$mf" ||
27766 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27767          X"$mf" : 'X\(//\)[^/]' \| \
27768          X"$mf" : 'X\(//\)$' \| \
27769          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27770 echo X"$mf" |
27771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27772             s//\1/
27773             q
27774           }
27775           /^X\(\/\/\)[^/].*/{
27776             s//\1/
27777             q
27778           }
27779           /^X\(\/\/\)$/{
27780             s//\1/
27781             q
27782           }
27783           /^X\(\/\).*/{
27784             s//\1/
27785             q
27786           }
27787           s/.*/./; q'`
27788   else
27789     continue
27790   fi
27791   # Extract the definition of DEPDIR, am__include, and am__quote
27792   # from the Makefile without running `make'.
27793   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27794   test -z "$DEPDIR" && continue
27795   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27796   test -z "am__include" && continue
27797   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27798   # When using ansi2knr, U may be empty or an underscore; expand it
27799   U=`sed -n 's/^U = //p' < "$mf"`
27800   # Find all dependency output files, they are included files with
27801   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27802   # simplest approach to changing $(DEPDIR) to its actual value in the
27803   # expansion.
27804   for file in `sed -n "
27805     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27806        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27807     # Make sure the directory exists.
27808     test -f "$dirpart/$file" && continue
27809     fdir=`$as_dirname -- "$file" ||
27810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27811          X"$file" : 'X\(//\)[^/]' \| \
27812          X"$file" : 'X\(//\)$' \| \
27813          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27814 echo X"$file" |
27815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27816             s//\1/
27817             q
27818           }
27819           /^X\(\/\/\)[^/].*/{
27820             s//\1/
27821             q
27822           }
27823           /^X\(\/\/\)$/{
27824             s//\1/
27825             q
27826           }
27827           /^X\(\/\).*/{
27828             s//\1/
27829             q
27830           }
27831           s/.*/./; q'`
27832     { as_dir=$dirpart/$fdir
27833   case $as_dir in #(
27834   -*) as_dir=./$as_dir;;
27835   esac
27836   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27837     as_dirs=
27838     while :; do
27839       case $as_dir in #(
27840       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27841       *) as_qdir=$as_dir;;
27842       esac
27843       as_dirs="'$as_qdir' $as_dirs"
27844       as_dir=`$as_dirname -- "$as_dir" ||
27845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27846          X"$as_dir" : 'X\(//\)[^/]' \| \
27847          X"$as_dir" : 'X\(//\)$' \| \
27848          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27849 echo X"$as_dir" |
27850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27851             s//\1/
27852             q
27853           }
27854           /^X\(\/\/\)[^/].*/{
27855             s//\1/
27856             q
27857           }
27858           /^X\(\/\/\)$/{
27859             s//\1/
27860             q
27861           }
27862           /^X\(\/\).*/{
27863             s//\1/
27864             q
27865           }
27866           s/.*/./; q'`
27867       test -d "$as_dir" && break
27868     done
27869     test -z "$as_dirs" || eval "mkdir $as_dirs"
27870   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27871 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27872    { (exit 1); exit 1; }; }; }
27873     # echo "creating $dirpart/$file"
27874     echo '# dummy' > "$dirpart/$file"
27875   done
27876 done
27877  ;;
27878     "tools/graspe-slave":F)
27879     for file in                                                 \
27880      tools/graspe-slave           tools/graspe-master           \
27881     ; do                                                        \
27882       test -e $file && chmod +x $file;                          \
27883     done
27884  ;;
27885     "testsuite/Makefile":F)
27886     for file in                                                 \
27887      testsuite/run_tests                                        \
27888      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27889     ; do                                                        \
27890       test -e $file && chmod +x $file;                          \
27891     done
27892  ;;
27893     "testsuite/run_tests":F)
27894     for file in                                                 \
27895      testsuite/run_tests                                        \
27896      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27897     ; do                                                        \
27898       test -e $file && chmod +x $file;                          \
27899     done
27900  ;;
27901     "testsuite/gras/trp_tcp_usage":F)
27902     for file in                                                 \
27903      testsuite/run_tests                                        \
27904      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27905     ; do                                                        \
27906       test -e $file && chmod +x $file;                          \
27907     done
27908  ;;
27909     "testsuite/gras/trp_file_usage":F)
27910     for file in                                                 \
27911      testsuite/run_tests                                        \
27912      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27913     ; do                                                        \
27914       test -e $file && chmod +x $file;                          \
27915     done
27916  ;;
27917     "examples/Makefile":F)
27918     for file in                                                 \
27919      \
27920      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27921      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27922      \
27923      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27924      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27925      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27926      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27927      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27928      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27929      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27930      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27931      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27932      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27933      examples/msg/run_msg_test                                  \
27934      examples/simdag/test_simdag                                \
27935     ; do                                                        \
27936       test -e $file && chmod +x $file;                          \
27937     done
27938  ;;
27939     "examples/msg/Makefile":F)
27940     for file in                                                 \
27941      \
27942      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27943      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27944      \
27945      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27946      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27947      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27948      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27949      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27950      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27951      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27952      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27953      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27954      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27955      examples/msg/run_msg_test                                  \
27956      examples/simdag/test_simdag                                \
27957     ; do                                                        \
27958       test -e $file && chmod +x $file;                          \
27959     done
27960  ;;
27961     "examples/simdag/Makefile":F)
27962     for file in                                                 \
27963      \
27964      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27965      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27966      \
27967      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27968      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27969      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27970      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27971      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27972      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27973      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27974      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27975      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27976      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27977      examples/msg/run_msg_test                                  \
27978      examples/simdag/test_simdag                                \
27979     ; do                                                        \
27980       test -e $file && chmod +x $file;                          \
27981     done
27982  ;;
27983     "examples/simdag/test_simdag":F)
27984     for file in                                                 \
27985      \
27986      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27987      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27988      \
27989      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27990      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27991      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27992      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27993      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27994      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27995      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27996      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27997      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27998      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27999      examples/msg/run_msg_test                                  \
28000      examples/simdag/test_simdag                                \
28001     ; do                                                        \
28002       test -e $file && chmod +x $file;                          \
28003     done
28004  ;;
28005     "examples/gras/Makefile":F)
28006     for file in                                                 \
28007      \
28008      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28009      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28010      \
28011      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28012      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28013      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28014      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28015      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28016      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28017      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28018      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28019      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28020      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28021      examples/msg/run_msg_test                                  \
28022      examples/simdag/test_simdag                                \
28023     ; do                                                        \
28024       test -e $file && chmod +x $file;                          \
28025     done
28026  ;;
28027     "examples/gras/ping/Makefile":F)
28028     for file in                                                 \
28029      \
28030      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28031      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28032      \
28033      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28034      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28035      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28036      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28037      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28038      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28039      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28040      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28041      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28042      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28043      examples/msg/run_msg_test                                  \
28044      examples/simdag/test_simdag                                \
28045     ; do                                                        \
28046       test -e $file && chmod +x $file;                          \
28047     done
28048  ;;
28049     "examples/gras/ping/test_sg":F)
28050     for file in                                                 \
28051      \
28052      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28053      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28054      \
28055      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28056      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28057      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28058      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28059      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28060      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28061      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28062      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28063      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28064      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28065      examples/msg/run_msg_test                                  \
28066      examples/simdag/test_simdag                                \
28067     ; do                                                        \
28068       test -e $file && chmod +x $file;                          \
28069     done
28070  ;;
28071     "examples/gras/ping/test_rl":F)
28072     for file in                                                 \
28073      \
28074      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28075      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28076      \
28077      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28078      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28079      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28080      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28081      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28082      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28083      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28084      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28085      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28086      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28087      examples/msg/run_msg_test                                  \
28088      examples/simdag/test_simdag                                \
28089     ; do                                                        \
28090       test -e $file && chmod +x $file;                          \
28091     done
28092  ;;
28093     "examples/gras/rpc/Makefile":F)
28094     for file in                                                 \
28095      \
28096      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28097      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28098      \
28099      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28100      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28101      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28102      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28103      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28104      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28105      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28106      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28107      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28108      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28109      examples/msg/run_msg_test                                  \
28110      examples/simdag/test_simdag                                \
28111     ; do                                                        \
28112       test -e $file && chmod +x $file;                          \
28113     done
28114  ;;
28115     "examples/gras/rpc/test_sg":F)
28116     for file in                                                 \
28117      \
28118      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28119      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28120      \
28121      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28122      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28123      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28124      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28125      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28126      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28127      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28128      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28129      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28130      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28131      examples/msg/run_msg_test                                  \
28132      examples/simdag/test_simdag                                \
28133     ; do                                                        \
28134       test -e $file && chmod +x $file;                          \
28135     done
28136  ;;
28137     "examples/gras/rpc/test_rl":F)
28138     for file in                                                 \
28139      \
28140      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28141      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28142      \
28143      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28144      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28145      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28146      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28147      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28148      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28149      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28150      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28151      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28152      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28153      examples/msg/run_msg_test                                  \
28154      examples/simdag/test_simdag                                \
28155     ; do                                                        \
28156       test -e $file && chmod +x $file;                          \
28157     done
28158  ;;
28159     "examples/gras/timer/Makefile":F)
28160     for file in                                                 \
28161      \
28162      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28163      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28164      \
28165      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28166      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28167      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28168      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28169      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28170      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28171      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28172      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28173      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28174      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28175      examples/msg/run_msg_test                                  \
28176      examples/simdag/test_simdag                                \
28177     ; do                                                        \
28178       test -e $file && chmod +x $file;                          \
28179     done
28180  ;;
28181     "examples/gras/timer/test_sg":F)
28182     for file in                                                 \
28183      \
28184      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28185      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28186      \
28187      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28188      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28189      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28190      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28191      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28192      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28193      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28194      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28195      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28196      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28197      examples/msg/run_msg_test                                  \
28198      examples/simdag/test_simdag                                \
28199     ; do                                                        \
28200       test -e $file && chmod +x $file;                          \
28201     done
28202  ;;
28203     "examples/gras/timer/test_rl":F)
28204     for file in                                                 \
28205      \
28206      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28207      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28208      \
28209      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28210      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28211      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28212      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28213      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28214      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28215      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28216      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28217      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28218      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28219      examples/msg/run_msg_test                                  \
28220      examples/simdag/test_simdag                                \
28221     ; do                                                        \
28222       test -e $file && chmod +x $file;                          \
28223     done
28224  ;;
28225     "examples/gras/chrono/Makefile":F)
28226     for file in                                                 \
28227      \
28228      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28229      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28230      \
28231      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28232      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28233      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28234      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28235      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28236      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28237      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28238      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28239      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28240      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28241      examples/msg/run_msg_test                                  \
28242      examples/simdag/test_simdag                                \
28243     ; do                                                        \
28244       test -e $file && chmod +x $file;                          \
28245     done
28246  ;;
28247     "examples/gras/chrono/test_sg":F)
28248     for file in                                                 \
28249      \
28250      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28251      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28252      \
28253      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28254      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28255      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28256      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28257      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28258      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28259      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28260      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28261      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28262      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28263      examples/msg/run_msg_test                                  \
28264      examples/simdag/test_simdag                                \
28265     ; do                                                        \
28266       test -e $file && chmod +x $file;                          \
28267     done
28268  ;;
28269     "examples/gras/chrono/test_rl":F)
28270     for file in                                                 \
28271      \
28272      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28273      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28274      \
28275      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28276      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28277      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28278      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28279      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28280      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28281      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28282      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28283      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28284      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28285      examples/msg/run_msg_test                                  \
28286      examples/simdag/test_simdag                                \
28287     ; do                                                        \
28288       test -e $file && chmod +x $file;                          \
28289     done
28290  ;;
28291     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28292     for file in                                                 \
28293      \
28294      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28295      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28296      \
28297      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28298      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28299      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28300      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28301      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28302      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28303      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28304      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28305      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28306      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28307      examples/msg/run_msg_test                                  \
28308      examples/simdag/test_simdag                                \
28309     ; do                                                        \
28310       test -e $file && chmod +x $file;                          \
28311     done
28312  ;;
28313     "examples/gras/mutual_exclusion/simple_token/test_sg":F)
28314     for file in                                                 \
28315      \
28316      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28317      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28318      \
28319      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28320      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28321      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28322      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28323      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28324      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28325      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28326      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28327      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28328      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28329      examples/msg/run_msg_test                                  \
28330      examples/simdag/test_simdag                                \
28331     ; do                                                        \
28332       test -e $file && chmod +x $file;                          \
28333     done
28334  ;;
28335     "examples/gras/mutual_exclusion/simple_token/test_rl":F)
28336     for file in                                                 \
28337      \
28338      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28339      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28340      \
28341      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28342      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28343      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28344      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28345      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28346      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28347      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28348      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28349      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28350      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28351      examples/msg/run_msg_test                                  \
28352      examples/simdag/test_simdag                                \
28353     ; do                                                        \
28354       test -e $file && chmod +x $file;                          \
28355     done
28356  ;;
28357     "examples/gras/mmrpc/Makefile":F)
28358     for file in                                                 \
28359      \
28360      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28361      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28362      \
28363      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28364      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28365      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28366      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28367      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28368      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28369      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28370      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28371      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28372      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28373      examples/msg/run_msg_test                                  \
28374      examples/simdag/test_simdag                                \
28375     ; do                                                        \
28376       test -e $file && chmod +x $file;                          \
28377     done
28378  ;;
28379     "examples/gras/mmrpc/test_sg":F)
28380     for file in                                                 \
28381      \
28382      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28383      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28384      \
28385      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28386      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28387      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28388      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28389      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28390      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28391      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28392      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28393      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28394      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28395      examples/msg/run_msg_test                                  \
28396      examples/simdag/test_simdag                                \
28397     ; do                                                        \
28398       test -e $file && chmod +x $file;                          \
28399     done
28400  ;;
28401     "examples/gras/mmrpc/test_rl":F)
28402     for file in                                                 \
28403      \
28404      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28405      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28406      \
28407      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28408      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28409      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28410      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28411      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28412      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28413      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28414      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28415      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28416      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28417      examples/msg/run_msg_test                                  \
28418      examples/simdag/test_simdag                                \
28419     ; do                                                        \
28420       test -e $file && chmod +x $file;                          \
28421     done
28422  ;;
28423     "examples/gras/pmm/Makefile":F)
28424     for file in                                                 \
28425      \
28426      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28427      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28428      \
28429      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28430      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28431      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28432      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28433      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28434      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28435      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28436      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28437      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28438      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28439      examples/msg/run_msg_test                                  \
28440      examples/simdag/test_simdag                                \
28441     ; do                                                        \
28442       test -e $file && chmod +x $file;                          \
28443     done
28444  ;;
28445     "examples/gras/pmm/test_sg":F)
28446     for file in                                                 \
28447      \
28448      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28449      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28450      \
28451      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28452      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28453      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28454      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28455      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28456      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28457      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28458      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28459      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28460      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28461      examples/msg/run_msg_test                                  \
28462      examples/simdag/test_simdag                                \
28463     ; do                                                        \
28464       test -e $file && chmod +x $file;                          \
28465     done
28466  ;;
28467     "examples/gras/pmm/test_rl":F)
28468     for file in                                                 \
28469      \
28470      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28471      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28472      \
28473      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28474      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28475      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28476      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28477      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28478      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28479      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28480      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28481      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28482      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28483      examples/msg/run_msg_test                                  \
28484      examples/simdag/test_simdag                                \
28485     ; do                                                        \
28486       test -e $file && chmod +x $file;                          \
28487     done
28488  ;;
28489     "examples/gras/all2all/Makefile":F)
28490     for file in                                                 \
28491      \
28492      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28493      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28494      \
28495      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28496      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28497      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28498      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28499      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28500      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28501      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28502      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28503      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28504      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28505      examples/msg/run_msg_test                                  \
28506      examples/simdag/test_simdag                                \
28507     ; do                                                        \
28508       test -e $file && chmod +x $file;                          \
28509     done
28510  ;;
28511     "examples/gras/all2all/test_sg":F)
28512     for file in                                                 \
28513      \
28514      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28515      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28516      \
28517      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28518      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28519      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28520      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28521      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28522      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28523      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28524      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28525      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28526      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28527      examples/msg/run_msg_test                                  \
28528      examples/simdag/test_simdag                                \
28529     ; do                                                        \
28530       test -e $file && chmod +x $file;                          \
28531     done
28532  ;;
28533     "examples/gras/all2all/test_rl":F)
28534     for file in                                                 \
28535      \
28536      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28537      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28538      \
28539      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28540      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28541      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28542      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28543      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28544      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28545      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28546      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28547      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28548      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28549      examples/msg/run_msg_test                                  \
28550      examples/simdag/test_simdag                                \
28551     ; do                                                        \
28552       test -e $file && chmod +x $file;                          \
28553     done
28554  ;;
28555     "examples/gras/p2p/Makefile":F)
28556     for file in                                                 \
28557      \
28558      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28559      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28560      \
28561      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28562      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28563      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28564      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28565      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28566      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28567      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28568      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28569      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28570      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28571      examples/msg/run_msg_test                                  \
28572      examples/simdag/test_simdag                                \
28573     ; do                                                        \
28574       test -e $file && chmod +x $file;                          \
28575     done
28576  ;;
28577     "examples/gras/p2p/chord/Makefile":F)
28578     for file in                                                 \
28579      \
28580      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28581      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28582      \
28583      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28584      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28585      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28586      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28587      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28588      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28589      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28590      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28591      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28592      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28593      examples/msg/run_msg_test                                  \
28594      examples/simdag/test_simdag                                \
28595     ; do                                                        \
28596       test -e $file && chmod +x $file;                          \
28597     done
28598  ;;
28599     "examples/gras/p2p/chord/test_sg":F)
28600     for file in                                                 \
28601      \
28602      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28603      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28604      \
28605      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28606      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28607      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28608      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28609      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28610      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28611      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28612      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28613      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28614      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28615      examples/msg/run_msg_test                                  \
28616      examples/simdag/test_simdag                                \
28617     ; do                                                        \
28618       test -e $file && chmod +x $file;                          \
28619     done
28620  ;;
28621     "examples/gras/p2p/chord/test_rl":F)
28622     for file in                                                 \
28623      \
28624      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28625      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28626      \
28627      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28628      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28629      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28630      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28631      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28632      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28633      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28634      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28635      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28636      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28637      examples/msg/run_msg_test                                  \
28638      examples/simdag/test_simdag                                \
28639     ; do                                                        \
28640       test -e $file && chmod +x $file;                          \
28641     done
28642  ;;
28643     "examples/gras/p2p/can/Makefile":F)
28644     for file in                                                 \
28645      \
28646      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28647      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28648      \
28649      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28650      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28651      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28652      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28653      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28654      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28655      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28656      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28657      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28658      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28659      examples/msg/run_msg_test                                  \
28660      examples/simdag/test_simdag                                \
28661     ; do                                                        \
28662       test -e $file && chmod +x $file;                          \
28663     done
28664  ;;
28665     "examples/gras/p2p/can/test_sg":F)
28666     for file in                                                 \
28667      \
28668      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28669      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28670      \
28671      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28672      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28673      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28674      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28675      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28676      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28677      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28678      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28679      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28680      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28681      examples/msg/run_msg_test                                  \
28682      examples/simdag/test_simdag                                \
28683     ; do                                                        \
28684       test -e $file && chmod +x $file;                          \
28685     done
28686  ;;
28687     "examples/gras/p2p/can/test_rl":F)
28688     for file in                                                 \
28689      \
28690      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28691      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28692      \
28693      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28694      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28695      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28696      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28697      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28698      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28699      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28700      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28701      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28702      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28703      examples/msg/run_msg_test                                  \
28704      examples/simdag/test_simdag                                \
28705     ; do                                                        \
28706       test -e $file && chmod +x $file;                          \
28707     done
28708  ;;
28709     "examples/amok/Makefile":F)
28710     for file in                                                 \
28711      \
28712      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28713      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28714      \
28715      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28716      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28717      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28718      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28719      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28720      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28721      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28722      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28723      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28724      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28725      examples/msg/run_msg_test                                  \
28726      examples/simdag/test_simdag                                \
28727     ; do                                                        \
28728       test -e $file && chmod +x $file;                          \
28729     done
28730  ;;
28731     "examples/amok/bandwidth/Makefile":F)
28732     for file in                                                 \
28733      \
28734      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28735      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28736      \
28737      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28738      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28739      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28740      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28741      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28742      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28743      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28744      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28745      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28746      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28747      examples/msg/run_msg_test                                  \
28748      examples/simdag/test_simdag                                \
28749     ; do                                                        \
28750       test -e $file && chmod +x $file;                          \
28751     done
28752  ;;
28753     "examples/amok/bandwidth/test_sg":F)
28754     for file in                                                 \
28755      \
28756      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28757      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28758      \
28759      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28760      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28761      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28762      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28763      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28764      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28765      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28766      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28767      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28768      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28769      examples/msg/run_msg_test                                  \
28770      examples/simdag/test_simdag                                \
28771     ; do                                                        \
28772       test -e $file && chmod +x $file;                          \
28773     done
28774  ;;
28775     "examples/amok/bandwidth/test_rl":F)
28776     for file in                                                 \
28777      \
28778      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28779      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28780      \
28781      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28782      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28783      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28784      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28785      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28786      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28787      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28788      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28789      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28790      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28791      examples/msg/run_msg_test                                  \
28792      examples/simdag/test_simdag                                \
28793     ; do                                                        \
28794       test -e $file && chmod +x $file;                          \
28795     done
28796  ;;
28797     "examples/amok/saturate/Makefile":F)
28798     for file in                                                 \
28799      \
28800      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28801      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28802      \
28803      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28804      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28805      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28806      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28807      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28808      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28809      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28810      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28811      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28812      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28813      examples/msg/run_msg_test                                  \
28814      examples/simdag/test_simdag                                \
28815     ; do                                                        \
28816       test -e $file && chmod +x $file;                          \
28817     done
28818  ;;
28819     "examples/amok/saturate/test_sg":F)
28820     for file in                                                 \
28821      \
28822      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28823      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28824      \
28825      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28826      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28827      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28828      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28829      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28830      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28831      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28832      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28833      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28834      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28835      examples/msg/run_msg_test                                  \
28836      examples/simdag/test_simdag                                \
28837     ; do                                                        \
28838       test -e $file && chmod +x $file;                          \
28839     done
28840  ;;
28841     "examples/amok/saturate/test_rl":F)
28842     for file in                                                 \
28843      \
28844      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28845      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28846      \
28847      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28848      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28849      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28850      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28851      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28852      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28853      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28854      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28855      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28856      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28857      examples/msg/run_msg_test                                  \
28858      examples/simdag/test_simdag                                \
28859     ; do                                                        \
28860       test -e $file && chmod +x $file;                          \
28861     done
28862  ;;
28863
28864   esac
28865 done # for ac_tag
28866
28867
28868 { (exit 0); exit 0; }
28869 _ACEOF
28870 chmod +x $CONFIG_STATUS
28871 ac_clean_files=$ac_clean_files_save
28872
28873
28874 # configure is writing to config.log, and then calls config.status.
28875 # config.status does its own redirection, appending to config.log.
28876 # Unfortunately, on DOS this fails, as config.log is still kept open
28877 # by configure, so config.status won't be able to write to it; its
28878 # output is simply discarded.  So we exec the FD to /dev/null,
28879 # effectively closing config.log, so it can be properly (re)opened and
28880 # appended to by config.status.  When coming back to configure, we
28881 # need to make the FD available again.
28882 if test "$no_create" != yes; then
28883   ac_cs_success=:
28884   ac_config_status_args=
28885   test "$silent" = yes &&
28886     ac_config_status_args="$ac_config_status_args --quiet"
28887   exec 5>/dev/null
28888   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28889   exec 5>>config.log
28890   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28891   # would make configure fail if this is the last instruction.
28892   $ac_cs_success || { (exit 1); exit 1; }
28893 fi
28894
28895
28896 echo "
28897
28898 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28899
28900         Compiler:        ${CC} (version: ${GCC_VERSION})
28901
28902         CFlags:          ${CFLAGS}
28903         CPPFlags:        ${CPPFLAGS}
28904         LDFlags:         ${LDFLAGS}
28905
28906         Context backend: ${with_context}
28907 "
28908
28909 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28910   echo "WARNING:"
28911   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28912   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28913   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28914   echo "WARNING:"
28915   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28916   echo "WARNING:"
28917 fi
28918 echo $build_id > stamp.configure
28919
28920 exit 0;