Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Allow to cross-compile with gcc again
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.140 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.1.1-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.1.1-cvs'
733 PACKAGE_STRING='simgrid 3.1.1-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 HAVE_SDP_TRUE
887 HAVE_SDP_FALSE
888 SIMGRID_DEP
889 GRAS_DEP
890 GRAMINE_MODE_TRUE
891 GRAMINE_MODE_FALSE
892 MAINTAINER_MODE_TRUE
893 MAINTAINER_MODE_FALSE
894 MAINT
895 LD_DYNAMIC_FLAGS
896 abs_builddir
897 abs_srcdir
898 abs_top_builddir
899 abs_top_srcdir
900 BASH
901 WARNING
902 LEX
903 LEX_OUTPUT_ROOT
904 LEXLIB
905 FLEXML
906 HAVE_FLEXML_TRUE
907 HAVE_FLEXML_FALSE
908 DOXYGEN
909 ADDR2LINE
910 ac_configure_args
911 MD5SUM
912 build_id
913 LTLIBOBJS'
914 ac_subst_files=''
915       ac_precious_vars='build_alias
916 host_alias
917 target_alias
918 CC
919 CFLAGS
920 LDFLAGS
921 LIBS
922 CPPFLAGS
923 CPP
924 CXX
925 CXXFLAGS
926 CCC
927 CXXCPP
928 F77
929 FFLAGS'
930
931
932 # Initialize some variables set by options.
933 ac_init_help=
934 ac_init_version=false
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *)    ac_optarg=yes ;;
992   esac
993
994   # Accept the important Cygnus configure options, so we can diagnose typos.
995
996   case $ac_dashdash$ac_option in
997   --)
998     ac_dashdash=yes ;;
999
1000   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001     ac_prev=bindir ;;
1002   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003     bindir=$ac_optarg ;;
1004
1005   -build | --build | --buil | --bui | --bu)
1006     ac_prev=build_alias ;;
1007   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008     build_alias=$ac_optarg ;;
1009
1010   -cache-file | --cache-file | --cache-fil | --cache-fi \
1011   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012     ac_prev=cache_file ;;
1013   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015     cache_file=$ac_optarg ;;
1016
1017   --config-cache | -C)
1018     cache_file=config.cache ;;
1019
1020   -datadir | --datadir | --datadi | --datad)
1021     ac_prev=datadir ;;
1022   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023     datadir=$ac_optarg ;;
1024
1025   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026   | --dataroo | --dataro | --datar)
1027     ac_prev=datarootdir ;;
1028   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030     datarootdir=$ac_optarg ;;
1031
1032   -disable-* | --disable-*)
1033     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039     eval enable_$ac_feature=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=\$ac_optarg ;;
1059
1060   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062   | --exec | --exe | --ex)
1063     ac_prev=exec_prefix ;;
1064   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066   | --exec=* | --exe=* | --ex=*)
1067     exec_prefix=$ac_optarg ;;
1068
1069   -gas | --gas | --ga | --g)
1070     # Obsolete; use --with-gas.
1071     with_gas=yes ;;
1072
1073   -help | --help | --hel | --he | -h)
1074     ac_init_help=long ;;
1075   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076     ac_init_help=recursive ;;
1077   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078     ac_init_help=short ;;
1079
1080   -host | --host | --hos | --ho)
1081     ac_prev=host_alias ;;
1082   -host=* | --host=* | --hos=* | --ho=*)
1083     host_alias=$ac_optarg ;;
1084
1085   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086     ac_prev=htmldir ;;
1087   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088   | --ht=*)
1089     htmldir=$ac_optarg ;;
1090
1091   -includedir | --includedir | --includedi | --included | --include \
1092   | --includ | --inclu | --incl | --inc)
1093     ac_prev=includedir ;;
1094   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095   | --includ=* | --inclu=* | --incl=* | --inc=*)
1096     includedir=$ac_optarg ;;
1097
1098   -infodir | --infodir | --infodi | --infod | --info | --inf)
1099     ac_prev=infodir ;;
1100   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101     infodir=$ac_optarg ;;
1102
1103   -libdir | --libdir | --libdi | --libd)
1104     ac_prev=libdir ;;
1105   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106     libdir=$ac_optarg ;;
1107
1108   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109   | --libexe | --libex | --libe)
1110     ac_prev=libexecdir ;;
1111   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112   | --libexe=* | --libex=* | --libe=*)
1113     libexecdir=$ac_optarg ;;
1114
1115   -localedir | --localedir | --localedi | --localed | --locale)
1116     ac_prev=localedir ;;
1117   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118     localedir=$ac_optarg ;;
1119
1120   -localstatedir | --localstatedir | --localstatedi | --localstated \
1121   | --localstate | --localstat | --localsta | --localst | --locals)
1122     ac_prev=localstatedir ;;
1123   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125     localstatedir=$ac_optarg ;;
1126
1127   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128     ac_prev=mandir ;;
1129   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130     mandir=$ac_optarg ;;
1131
1132   -nfp | --nfp | --nf)
1133     # Obsolete; use --without-fp.
1134     with_fp=no ;;
1135
1136   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137   | --no-cr | --no-c | -n)
1138     no_create=yes ;;
1139
1140   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142     no_recursion=yes ;;
1143
1144   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146   | --oldin | --oldi | --old | --ol | --o)
1147     ac_prev=oldincludedir ;;
1148   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151     oldincludedir=$ac_optarg ;;
1152
1153   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154     ac_prev=prefix ;;
1155   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156     prefix=$ac_optarg ;;
1157
1158   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159   | --program-pre | --program-pr | --program-p)
1160     ac_prev=program_prefix ;;
1161   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163     program_prefix=$ac_optarg ;;
1164
1165   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166   | --program-suf | --program-su | --program-s)
1167     ac_prev=program_suffix ;;
1168   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170     program_suffix=$ac_optarg ;;
1171
1172   -program-transform-name | --program-transform-name \
1173   | --program-transform-nam | --program-transform-na \
1174   | --program-transform-n | --program-transform- \
1175   | --program-transform | --program-transfor \
1176   | --program-transfo | --program-transf \
1177   | --program-trans | --program-tran \
1178   | --progr-tra | --program-tr | --program-t)
1179     ac_prev=program_transform_name ;;
1180   -program-transform-name=* | --program-transform-name=* \
1181   | --program-transform-nam=* | --program-transform-na=* \
1182   | --program-transform-n=* | --program-transform-=* \
1183   | --program-transform=* | --program-transfor=* \
1184   | --program-transfo=* | --program-transf=* \
1185   | --program-trans=* | --program-tran=* \
1186   | --progr-tra=* | --program-tr=* | --program-t=*)
1187     program_transform_name=$ac_optarg ;;
1188
1189   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190     ac_prev=pdfdir ;;
1191   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192     pdfdir=$ac_optarg ;;
1193
1194   -psdir | --psdir | --psdi | --psd | --ps)
1195     ac_prev=psdir ;;
1196   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197     psdir=$ac_optarg ;;
1198
1199   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200   | -silent | --silent | --silen | --sile | --sil)
1201     silent=yes ;;
1202
1203   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204     ac_prev=sbindir ;;
1205   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206   | --sbi=* | --sb=*)
1207     sbindir=$ac_optarg ;;
1208
1209   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211   | --sharedst | --shareds | --shared | --share | --shar \
1212   | --sha | --sh)
1213     ac_prev=sharedstatedir ;;
1214   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217   | --sha=* | --sh=*)
1218     sharedstatedir=$ac_optarg ;;
1219
1220   -site | --site | --sit)
1221     ac_prev=site ;;
1222   -site=* | --site=* | --sit=*)
1223     site=$ac_optarg ;;
1224
1225   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226     ac_prev=srcdir ;;
1227   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228     srcdir=$ac_optarg ;;
1229
1230   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231   | --syscon | --sysco | --sysc | --sys | --sy)
1232     ac_prev=sysconfdir ;;
1233   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235     sysconfdir=$ac_optarg ;;
1236
1237   -target | --target | --targe | --targ | --tar | --ta | --t)
1238     ac_prev=target_alias ;;
1239   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240     target_alias=$ac_optarg ;;
1241
1242   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243     verbose=yes ;;
1244
1245   -version | --version | --versio | --versi | --vers | -V)
1246     ac_init_version=: ;;
1247
1248   -with-* | --with-*)
1249     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid package name: $ac_package" >&2
1253    { (exit 1); exit 1; }; }
1254     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255     eval with_$ac_package=\$ac_optarg ;;
1256
1257   -without-* | --without-*)
1258     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       { echo "$as_me: error: invalid package name: $ac_package" >&2
1262    { (exit 1); exit 1; }; }
1263     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264     eval with_$ac_package=no ;;
1265
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1269
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1276
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1283
1284   -*) { echo "$as_me: error: unrecognized option: $ac_option
1285 Try \`$0 --help' for more information." >&2
1286    { (exit 1); exit 1; }; }
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1294    { (exit 1); exit 1; }; }
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1297
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304     ;;
1305
1306   esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   { echo "$as_me: error: missing argument to $ac_option" >&2
1312    { (exit 1); exit 1; }; }
1313 fi
1314
1315 # Be sure to have absolute directory names.
1316 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317                 datadir sysconfdir sharedstatedir localstatedir includedir \
1318                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319                 libdir localedir mandir
1320 do
1321   eval ac_val=\$$ac_var
1322   case $ac_val in
1323     [\\/$]* | ?:[\\/]* )  continue;;
1324     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325   esac
1326   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327    { (exit 1); exit 1; }; }
1328 done
1329
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1336
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339   if test "x$build_alias" = x; then
1340     cross_compiling=maybe
1341     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342     If a cross compiler is detected then cross compile mode will be used." >&2
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   { echo "$as_me: error: Working directory cannot be determined" >&2
1358    { (exit 1); exit 1; }; }
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360   { echo "$as_me: error: pwd does not report name of working directory" >&2
1361    { (exit 1); exit 1; }; }
1362
1363
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366   ac_srcdir_defaulted=yes
1367   # Try the directory containing this script, then the parent directory.
1368   ac_confdir=`$as_dirname -- "$0" ||
1369 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370          X"$0" : 'X\(//\)[^/]' \| \
1371          X"$0" : 'X\(//\)$' \| \
1372          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1373 echo X"$0" |
1374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)[^/].*/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)$/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\).*/{
1387             s//\1/
1388             q
1389           }
1390           s/.*/./; q'`
1391   srcdir=$ac_confdir
1392   if test ! -r "$srcdir/$ac_unique_file"; then
1393     srcdir=..
1394   fi
1395 else
1396   ac_srcdir_defaulted=no
1397 fi
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401    { (exit 1); exit 1; }; }
1402 fi
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1406    { (exit 1); exit 1; }; }
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures simgrid 3.1.1-cvs to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           [$ac_default_prefix]
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466   --bindir=DIR           user executables [EPREFIX/bin]
1467   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR       program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1470   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR           object code libraries [EPREFIX/lib]
1473   --includedir=DIR       C header files [PREFIX/include]
1474   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR          info documentation [DATAROOTDIR/info]
1478   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR           man documentation [DATAROOTDIR/man]
1480   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1481   --htmldir=DIR          html documentation [DOCDIR]
1482   --dvidir=DIR           dvi documentation [DOCDIR]
1483   --pdfdir=DIR           pdf documentation [DOCDIR]
1484   --psdir=DIR            ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497   --target=TARGET   configure for building compilers for TARGET [HOST]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502   case $ac_init_help in
1503      short | recursive ) echo "Configuration of simgrid 3.1.1-cvs:";;
1504    esac
1505   cat <<\_ACEOF
1506
1507 Optional Features:
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --enable-shared[=PKGS]  build shared libraries [default=yes]
1511   --enable-static[=PKGS]  build static libraries [default=yes]
1512   --enable-fast-install[=PKGS]
1513                           optimize for fast installation [default=yes]
1514   --disable-dependency-tracking  speeds up one-time build
1515   --enable-dependency-tracking   do not reject slow dependency extractors
1516   --disable-libtool-lock  avoid locking (might break parallel builds)
1517   --enable-simix          Use the new SimIX module (default=no)
1518   --enable-maintainer-mode  enable make rules and dependencies not useful
1519                           (and sometimes confusing) to the casual installer
1520   --enable-compile-warnings
1521                           use compiler warnings (default=no, unless in
1522                           maintainer mode)
1523   --disable-compile-optimizations
1524                           use compiler optimizations (default=yes, unless if
1525                           CFLAGS is explicitly set)
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1531   --with-pic              try to use only PIC/non-PIC objects [default=use
1532                           both]
1533   --with-tags[=TAGS]      include additional configurations [automatic]
1534   --with-pthread   Use pthread instead of ucontext.
1535   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CPP         C preprocessor
1546   CXX         C++ compiler command
1547   CXXFLAGS    C++ compiler flags
1548   CXXCPP      C++ preprocessor
1549   F77         Fortran 77 compiler command
1550   FFLAGS      Fortran 77 compiler flags
1551
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1554
1555 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" || continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 simgrid configure 3.1.1-cvs
1617 generated by GNU Autoconf 2.61
1618
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1629
1630 It was created by simgrid $as_me 3.1.1-cvs, which was
1631 generated by GNU Autoconf 2.61.  Invocation command line was
1632
1633   $ $0 $@
1634
1635 _ACEOF
1636 exec 5>>config.log
1637 {
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1642
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1651
1652 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1653 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1656 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1657 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1658 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1659
1660 _ASUNAME
1661
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1670
1671 } >&5
1672
1673 cat >&5 <<_ACEOF
1674
1675
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1679
1680 _ACEOF
1681
1682
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1693 do
1694   for ac_arg
1695   do
1696     case $ac_arg in
1697     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699     | -silent | --silent | --silen | --sile | --sil)
1700       continue ;;
1701     *\'*)
1702       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703     esac
1704     case $ac_pass in
1705     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706     2)
1707       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708       if test $ac_must_keep_next = true; then
1709         ac_must_keep_next=false # Got value, back to normal.
1710       else
1711         case $ac_arg in
1712           *=* | --config-cache | -C | -disable-* | --disable-* \
1713           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715           | -with-* | --with-* | -without-* | --without-* | --x)
1716             case "$ac_configure_args0 " in
1717               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718             esac
1719             ;;
1720           -* ) ac_must_keep_next=true ;;
1721         esac
1722       fi
1723       ac_configure_args="$ac_configure_args '$ac_arg'"
1724       ;;
1725     esac
1726   done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log.  We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737   # Save into config.log some information that might help in debugging.
1738   {
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746     echo
1747     # The following way of writing the cache mishandles newlines in values,
1748 (
1749   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750     eval ac_val=\$$ac_var
1751     case $ac_val in #(
1752     *${as_nl}*)
1753       case $ac_var in #(
1754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756       esac
1757       case $ac_var in #(
1758       _ | IFS | as_nl) ;; #(
1759       *) $as_unset $ac_var ;;
1760       esac ;;
1761     esac
1762   done
1763   (set) 2>&1 |
1764     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765     *${as_nl}ac_space=\ *)
1766       sed -n \
1767         "s/'\''/'\''\\\\'\'''\''/g;
1768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769       ;; #(
1770     *)
1771       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772       ;;
1773     esac |
1774     sort
1775 )
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783     echo
1784     for ac_var in $ac_subst_vars
1785     do
1786       eval ac_val=\$$ac_var
1787       case $ac_val in
1788       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789       esac
1790       echo "$ac_var='\''$ac_val'\''"
1791     done | sort
1792     echo
1793
1794     if test -n "$ac_subst_files"; then
1795       cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800       echo
1801       for ac_var in $ac_subst_files
1802       do
1803         eval ac_val=\$$ac_var
1804         case $ac_val in
1805         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806         esac
1807         echo "$ac_var='\''$ac_val'\''"
1808       done | sort
1809       echo
1810     fi
1811
1812     if test -s confdefs.h; then
1813       cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818       echo
1819       cat confdefs.h
1820       echo
1821     fi
1822     test "$ac_signal" != 0 &&
1823       echo "$as_me: caught signal $ac_signal"
1824     echo "$as_me: exit $exit_status"
1825   } >&5
1826   rm -f core *.core core.conftest.* &&
1827     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828     exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1863
1864
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868   set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 else
1872   set x "$ac_default_prefix/share/config.site" \
1873         "$ac_default_prefix/etc/config.site"
1874 fi
1875 shift
1876 for ac_site_file
1877 do
1878   if test -r "$ac_site_file"; then
1879     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881     sed 's/^/| /' "$ac_site_file" >&5
1882     . "$ac_site_file"
1883   fi
1884 done
1885
1886 if test -r "$cache_file"; then
1887   # Some versions of bash will fail to source /dev/null (special
1888   # files actually), so we avoid doing that.
1889   if test -f "$cache_file"; then
1890     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1892     case $cache_file in
1893       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894       *)                      . "./$cache_file";;
1895     esac
1896   fi
1897 else
1898   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1900   >$cache_file
1901 fi
1902
1903 # Check that the precious variables saved in the cache have kept the same
1904 # value.
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908   eval ac_new_set=\$ac_env_${ac_var}_set
1909   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910   eval ac_new_val=\$ac_env_${ac_var}_value
1911   case $ac_old_set,$ac_new_set in
1912     set,)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,set)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,);;
1921     *)
1922       if test "x$ac_old_val" != "x$ac_new_val"; then
1923         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1926 echo "$as_me:   former value:  $ac_old_val" >&2;}
1927         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1928 echo "$as_me:   current value: $ac_new_val" >&2;}
1929         ac_cache_corrupted=:
1930       fi;;
1931   esac
1932   # Pass precious variables to config.status.
1933   if test "$ac_new_set" = set; then
1934     case $ac_new_val in
1935     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936     *) ac_arg=$ac_var=$ac_new_val ;;
1937     esac
1938     case " $ac_configure_args " in
1939       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1940       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941     esac
1942   fi
1943 done
1944 if $ac_cache_corrupted; then
1945   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981
1982
1983
1984 ac_config_headers="$ac_config_headers src/gras_config.h"
1985
1986 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1987
1988
1989 ac_aux_dir=
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991   if test -f "$ac_dir/install-sh"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/install-sh -c"
1994     break
1995   elif test -f "$ac_dir/install.sh"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/install.sh -c"
1998     break
1999   elif test -f "$ac_dir/shtool"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/shtool install -c"
2002     break
2003   fi
2004 done
2005 if test -z "$ac_aux_dir"; then
2006   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2018
2019
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037    { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041    { (exit 1); exit 1; }; }
2042
2043 fi
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2047 *-*-*) ;;
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050    { (exit 1); exit 1; }; };;
2051 esac
2052 build=$ac_cv_build
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_build
2055 shift
2056 build_cpu=$1
2057 build_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 build_os=$*
2062 IFS=$ac_save_IFS
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2064
2065
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   if test "x$host_alias" = x; then
2072   ac_cv_host=$ac_cv_build
2073 else
2074   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 fi
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2083 case $ac_cv_host in
2084 *-*-*) ;;
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087    { (exit 1); exit 1; }; };;
2088 esac
2089 host=$ac_cv_host
2090 ac_save_IFS=$IFS; IFS='-'
2091 set x $ac_cv_host
2092 shift
2093 host_cpu=$1
2094 host_vendor=$2
2095 shift; shift
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2098 host_os=$*
2099 IFS=$ac_save_IFS
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2101
2102
2103 { echo "$as_me:$LINENO: checking target system type" >&5
2104 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test "x$target_alias" = x; then
2109   ac_cv_target=$ac_cv_host
2110 else
2111   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2112     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2114    { (exit 1); exit 1; }; }
2115 fi
2116
2117 fi
2118 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2119 echo "${ECHO_T}$ac_cv_target" >&6; }
2120 case $ac_cv_target in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2123 echo "$as_me: error: invalid value of canonical target" >&2;}
2124    { (exit 1); exit 1; }; };;
2125 esac
2126 target=$ac_cv_target
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_target
2129 shift
2130 target_cpu=$1
2131 target_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 target_os=$*
2136 IFS=$ac_save_IFS
2137 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2138
2139
2140 # The aliases save the names the user supplied, while $host etc.
2141 # will get canonicalized.
2142 test -n "$target_alias" &&
2143   test "$program_prefix$program_suffix$program_transform_name" = \
2144     NONENONEs,x,x, &&
2145   program_prefix=${target_alias}-
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151
2152
2153 am__api_version="1.9"
2154 # Find a good install program.  We prefer a C program (faster),
2155 # so one script is as good as another.  But avoid the broken or
2156 # incompatible versions:
2157 # SysV /etc/install, /usr/sbin/install
2158 # SunOS /usr/etc/install
2159 # IRIX /sbin/install
2160 # AIX /bin/install
2161 # AmigaOS /C/install, which installs bootblocks on floppy discs
2162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2165 # OS/2's system install, which has a completely different semantic
2166 # ./install, which can be erroneously created by make from ./install.sh.
2167 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2168 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2169 if test -z "$INSTALL"; then
2170 if test "${ac_cv_path_install+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2175 do
2176   IFS=$as_save_IFS
2177   test -z "$as_dir" && as_dir=.
2178   # Account for people who put trailing slashes in PATH elements.
2179 case $as_dir/ in
2180   ./ | .// | /cC/* | \
2181   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2182   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2183   /usr/ucb/* ) ;;
2184   *)
2185     # OSF1 and SCO ODT 3.0 have their own names for install.
2186     # Don't use installbsd from OSF since it installs stuff as root
2187     # by default.
2188     for ac_prog in ginstall scoinst install; do
2189       for ac_exec_ext in '' $ac_executable_extensions; do
2190         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2191           if test $ac_prog = install &&
2192             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193             # AIX install.  It has an incompatible calling convention.
2194             :
2195           elif test $ac_prog = install &&
2196             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197             # program-specific install script used by HP pwplus--don't use.
2198             :
2199           else
2200             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2201             break 3
2202           fi
2203         fi
2204       done
2205     done
2206     ;;
2207 esac
2208 done
2209 IFS=$as_save_IFS
2210
2211
2212 fi
2213   if test "${ac_cv_path_install+set}" = set; then
2214     INSTALL=$ac_cv_path_install
2215   else
2216     # As a last resort, use the slow shell script.  Don't cache a
2217     # value for INSTALL within a source directory, because that will
2218     # break other packages using the cache if that directory is
2219     # removed, or if the value is a relative name.
2220     INSTALL=$ac_install_sh
2221   fi
2222 fi
2223 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2224 echo "${ECHO_T}$INSTALL" >&6; }
2225
2226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2227 # It thinks the first close brace ends the variable substitution.
2228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2229
2230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2231
2232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2233
2234 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2235 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2236 # Just in case
2237 sleep 1
2238 echo timestamp > conftest.file
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments.  Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2243 # directory).
2244 if (
2245    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2246    if test "$*" = "X"; then
2247       # -L didn't work.
2248       set X `ls -t $srcdir/configure conftest.file`
2249    fi
2250    rm -f conftest.file
2251    if test "$*" != "X $srcdir/configure conftest.file" \
2252       && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254       # If neither matched, then we have a broken ls.  This can happen
2255       # if, for instance, CONFIG_SHELL is bash and it inherits a
2256       # broken ls alias from the environment.  This has actually
2257       # happened.  Such a system could not be considered "sane".
2258       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2259 alias in your environment" >&5
2260 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2261 alias in your environment" >&2;}
2262    { (exit 1); exit 1; }; }
2263    fi
2264
2265    test "$2" = conftest.file
2266    )
2267 then
2268    # Ok.
2269    :
2270 else
2271    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2272 Check your system clock" >&5
2273 echo "$as_me: error: newly created file is older than distributed files!
2274 Check your system clock" >&2;}
2275    { (exit 1); exit 1; }; }
2276 fi
2277 { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2279 test "$program_prefix" != NONE &&
2280   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $.  echo might interpret backslashes.
2285 # By default was `s,x,x', remove it if useless.
2286 cat <<\_ACEOF >conftest.sed
2287 s/[\\$]/&&/g;s/;s,x,x,$//
2288 _ACEOF
2289 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2290 rm -f conftest.sed
2291
2292 # expand $ac_aux_dir to an absolute path
2293 am_aux_dir=`cd $ac_aux_dir && pwd`
2294
2295 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2296 # Use eval to expand $SHELL
2297 if eval "$MISSING --run true"; then
2298   am_missing_run="$MISSING --run "
2299 else
2300   am_missing_run=
2301   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2302 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2303 fi
2304
2305 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2306   # We used to keeping the `.' as first argument, in order to
2307   # allow $(mkdir_p) to be used without argument.  As in
2308   #   $(mkdir_p) $(somedir)
2309   # where $(somedir) is conditionally defined.  However this is wrong
2310   # for two reasons:
2311   #  1. if the package is installed by a user who cannot write `.'
2312   #     make install will fail,
2313   #  2. the above comment should most certainly read
2314   #     $(mkdir_p) $(DESTDIR)$(somedir)
2315   #     so it does not work when $(somedir) is undefined and
2316   #     $(DESTDIR) is not.
2317   #  To support the latter case, we have to write
2318   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2319   #  so the `.' trick is pointless.
2320   mkdir_p='mkdir -p --'
2321 else
2322   # On NextStep and OpenStep, the `mkdir' command does not
2323   # recognize any option.  It will interpret all options as
2324   # directories to create, and then abort because `.' already
2325   # exists.
2326   for d in ./-p ./--version;
2327   do
2328     test -d $d && rmdir $d
2329   done
2330   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2331   if test -f "$ac_aux_dir/mkinstalldirs"; then
2332     mkdir_p='$(mkinstalldirs)'
2333   else
2334     mkdir_p='$(install_sh) -d'
2335   fi
2336 fi
2337
2338 for ac_prog in gawk mawk nawk awk
2339 do
2340   # Extract the first word of "$ac_prog", so it can be a program name with args.
2341 set dummy $ac_prog; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_AWK+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   if test -n "$AWK"; then
2348   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2349 else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355   for ac_exec_ext in '' $ac_executable_extensions; do
2356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357     ac_cv_prog_AWK="$ac_prog"
2358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359     break 2
2360   fi
2361 done
2362 done
2363 IFS=$as_save_IFS
2364
2365 fi
2366 fi
2367 AWK=$ac_cv_prog_AWK
2368 if test -n "$AWK"; then
2369   { echo "$as_me:$LINENO: result: $AWK" >&5
2370 echo "${ECHO_T}$AWK" >&6; }
2371 else
2372   { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374 fi
2375
2376
2377   test -n "$AWK" && break
2378 done
2379
2380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   cat >conftest.make <<\_ACEOF
2387 SHELL = /bin/sh
2388 all:
2389         @echo '@@@%%%=$(MAKE)=@@@%%%'
2390 _ACEOF
2391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2393   *@@@%%%=?*=@@@%%%*)
2394     eval ac_cv_prog_make_${ac_make}_set=yes;;
2395   *)
2396     eval ac_cv_prog_make_${ac_make}_set=no;;
2397 esac
2398 rm -f conftest.make
2399 fi
2400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2401   { echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6; }
2403   SET_MAKE=
2404 else
2405   { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2407   SET_MAKE="MAKE=${MAKE-make}"
2408 fi
2409
2410 rm -rf .tst 2>/dev/null
2411 mkdir .tst 2>/dev/null
2412 if test -d .tst; then
2413   am__leading_dot=.
2414 else
2415   am__leading_dot=_
2416 fi
2417 rmdir .tst 2>/dev/null
2418
2419 # test to see if srcdir already configured
2420 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2421    test -f $srcdir/config.status; then
2422   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2423 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 # test whether we have cygpath
2428 if test -z "$CYGPATH_W"; then
2429   if (cygpath --version) >/dev/null 2>/dev/null; then
2430     CYGPATH_W='cygpath -w'
2431   else
2432     CYGPATH_W=echo
2433   fi
2434 fi
2435
2436
2437 # Define the identity of the package.
2438  PACKAGE='simgrid'
2439  VERSION='3.1.1-cvs'
2440
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE "$PACKAGE"
2444 _ACEOF
2445
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define VERSION "$VERSION"
2449 _ACEOF
2450
2451 # Some tools Automake needs.
2452
2453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2454
2455
2456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2457
2458
2459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2460
2461
2462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2463
2464
2465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2466
2467 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2468
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'.  However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474   if test -n "$ac_tool_prefix"; then
2475   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$STRIP"; then
2483   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504   { echo "$as_me:$LINENO: result: $STRIP" >&5
2505 echo "${ECHO_T}$STRIP" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_STRIP"; then
2514   ac_ct_STRIP=$STRIP
2515   # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   if test -n "$ac_ct_STRIP"; then
2523   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532     ac_cv_prog_ac_ct_STRIP="strip"
2533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2546 else
2547   { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2549 fi
2550
2551   if test "x$ac_ct_STRIP" = x; then
2552     STRIP=":"
2553   else
2554     case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet.  If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&5
2559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet.  If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564     STRIP=$ac_ct_STRIP
2565   fi
2566 else
2567   STRIP="$ac_cv_prog_STRIP"
2568 fi
2569
2570 fi
2571 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2572
2573 # We need awk for the "check" target.  The system "awk" is bad on
2574 # some platforms.
2575 # Always define AMTAR for backward compatibility.
2576
2577 AMTAR=${AMTAR-"${am_missing_run}tar"}
2578
2579 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2580
2581
2582
2583
2584
2585
2586 ACLOCAL="$ACLOCAL -I acmacro"
2587
2588
2589 # Check whether --enable-shared was given.
2590 if test "${enable_shared+set}" = set; then
2591   enableval=$enable_shared; p=${PACKAGE-default}
2592     case $enableval in
2593     yes) enable_shared=yes ;;
2594     no) enable_shared=no ;;
2595     *)
2596       enable_shared=no
2597       # Look at the argument we got.  We use all the common list separators.
2598       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2599       for pkg in $enableval; do
2600         IFS="$lt_save_ifs"
2601         if test "X$pkg" = "X$p"; then
2602           enable_shared=yes
2603         fi
2604       done
2605       IFS="$lt_save_ifs"
2606       ;;
2607     esac
2608 else
2609   enable_shared=yes
2610 fi
2611
2612
2613 # Check whether --enable-static was given.
2614 if test "${enable_static+set}" = set; then
2615   enableval=$enable_static; p=${PACKAGE-default}
2616     case $enableval in
2617     yes) enable_static=yes ;;
2618     no) enable_static=no ;;
2619     *)
2620      enable_static=no
2621       # Look at the argument we got.  We use all the common list separators.
2622       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2623       for pkg in $enableval; do
2624         IFS="$lt_save_ifs"
2625         if test "X$pkg" = "X$p"; then
2626           enable_static=yes
2627         fi
2628       done
2629       IFS="$lt_save_ifs"
2630       ;;
2631     esac
2632 else
2633   enable_static=yes
2634 fi
2635
2636
2637 # Check whether --enable-fast-install was given.
2638 if test "${enable_fast_install+set}" = set; then
2639   enableval=$enable_fast_install; p=${PACKAGE-default}
2640     case $enableval in
2641     yes) enable_fast_install=yes ;;
2642     no) enable_fast_install=no ;;
2643     *)
2644       enable_fast_install=no
2645       # Look at the argument we got.  We use all the common list separators.
2646       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2647       for pkg in $enableval; do
2648         IFS="$lt_save_ifs"
2649         if test "X$pkg" = "X$p"; then
2650           enable_fast_install=yes
2651         fi
2652       done
2653       IFS="$lt_save_ifs"
2654       ;;
2655     esac
2656 else
2657   enable_fast_install=yes
2658 fi
2659
2660
2661 DEPDIR="${am__leading_dot}deps"
2662
2663 ac_config_commands="$ac_config_commands depfiles"
2664
2665
2666 am_make=${MAKE-make}
2667 cat > confinc << 'END'
2668 am__doit:
2669         @echo done
2670 .PHONY: am__doit
2671 END
2672 # If we don't find an include directive, just comment out the code.
2673 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2674 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2675 am__include="#"
2676 am__quote=
2677 _am_result=none
2678 # First try GNU make style include.
2679 echo "include confinc" > confmf
2680 # We grep out `Entering directory' and `Leaving directory'
2681 # messages which can occur if `w' ends up in MAKEFLAGS.
2682 # In particular we don't look at `^make:' because GNU make might
2683 # be invoked under some other name (usually "gmake"), in which
2684 # case it prints its new name instead of `make'.
2685 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2686    am__include=include
2687    am__quote=
2688    _am_result=GNU
2689 fi
2690 # Now try BSD make style include.
2691 if test "$am__include" = "#"; then
2692    echo '.include "confinc"' > confmf
2693    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2694       am__include=.include
2695       am__quote="\""
2696       _am_result=BSD
2697    fi
2698 fi
2699
2700
2701 { echo "$as_me:$LINENO: result: $_am_result" >&5
2702 echo "${ECHO_T}$_am_result" >&6; }
2703 rm -f confinc confmf
2704
2705 # Check whether --enable-dependency-tracking was given.
2706 if test "${enable_dependency_tracking+set}" = set; then
2707   enableval=$enable_dependency_tracking;
2708 fi
2709
2710 if test "x$enable_dependency_tracking" != xno; then
2711   am_depcomp="$ac_aux_dir/depcomp"
2712   AMDEPBACKSLASH='\'
2713 fi
2714
2715
2716 if test "x$enable_dependency_tracking" != xno; then
2717   AMDEP_TRUE=
2718   AMDEP_FALSE='#'
2719 else
2720   AMDEP_TRUE='#'
2721   AMDEP_FALSE=
2722 fi
2723
2724
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test -n "$ac_tool_prefix"; then
2732   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737   echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739   if test -n "$CC"; then
2740   ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747   for ac_exec_ext in '' $ac_executable_extensions; do
2748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761   { echo "$as_me:$LINENO: result: $CC" >&5
2762 echo "${ECHO_T}$CC" >&6; }
2763 else
2764   { echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if test -z "$ac_cv_prog_CC"; then
2771   ac_ct_CC=$CC
2772   # Extract the first word of "gcc", so it can be a program name with args.
2773 set dummy gcc; ac_word=$2
2774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   if test -n "$ac_ct_CC"; then
2780   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787   for ac_exec_ext in '' $ac_executable_extensions; do
2788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789     ac_cv_prog_ac_ct_CC="gcc"
2790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2802 echo "${ECHO_T}$ac_ct_CC" >&6; }
2803 else
2804   { echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6; }
2806 fi
2807
2808   if test "x$ac_ct_CC" = x; then
2809     CC=""
2810   else
2811     case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet.  If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&5
2816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet.  If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2819 ac_tool_warned=yes ;;
2820 esac
2821     CC=$ac_ct_CC
2822   fi
2823 else
2824   CC="$ac_cv_prog_CC"
2825 fi
2826
2827 if test -z "$CC"; then
2828           if test -n "$ac_tool_prefix"; then
2829     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}cc; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$CC"; then
2837   ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_CC="${ac_tool_prefix}cc"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858   { echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866   fi
2867 fi
2868 if test -z "$CC"; then
2869   # Extract the first word of "cc", so it can be a program name with args.
2870 set dummy cc; ac_word=$2
2871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   if test -n "$CC"; then
2877   ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879   ac_prog_rejected=no
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885   for ac_exec_ext in '' $ac_executable_extensions; do
2886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2888        ac_prog_rejected=yes
2889        continue
2890      fi
2891     ac_cv_prog_CC="cc"
2892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 if test $ac_prog_rejected = yes; then
2900   # We found a bogon in the path, so make sure we never use it.
2901   set dummy $ac_cv_prog_CC
2902   shift
2903   if test $# != 0; then
2904     # We chose a different compiler from the bogus one.
2905     # However, it has the same basename, so the bogon will be chosen
2906     # first if we set CC to just the basename; use the full file name.
2907     shift
2908     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2909   fi
2910 fi
2911 fi
2912 fi
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915   { echo "$as_me:$LINENO: result: $CC" >&5
2916 echo "${ECHO_T}$CC" >&6; }
2917 else
2918   { echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6; }
2920 fi
2921
2922
2923 fi
2924 if test -z "$CC"; then
2925   if test -n "$ac_tool_prefix"; then
2926   for ac_prog in cl.exe
2927   do
2928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933   echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935   if test -n "$CC"; then
2936   ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943   for ac_exec_ext in '' $ac_executable_extensions; do
2944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957   { echo "$as_me:$LINENO: result: $CC" >&5
2958 echo "${ECHO_T}$CC" >&6; }
2959 else
2960   { echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6; }
2962 fi
2963
2964
2965     test -n "$CC" && break
2966   done
2967 fi
2968 if test -z "$CC"; then
2969   ac_ct_CC=$CC
2970   for ac_prog in cl.exe
2971 do
2972   # Extract the first word of "$ac_prog", so it can be a program name with args.
2973 set dummy $ac_prog; ac_word=$2
2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$ac_ct_CC"; then
2980   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     ac_cv_prog_ac_ct_CC="$ac_prog"
2990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3002 echo "${ECHO_T}$ac_ct_CC" >&6; }
3003 else
3004   { echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6; }
3006 fi
3007
3008
3009   test -n "$ac_ct_CC" && break
3010 done
3011
3012   if test "x$ac_ct_CC" = x; then
3013     CC=""
3014   else
3015     case $cross_compiling:$ac_tool_warned in
3016 yes:)
3017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3018 whose name does not start with the host triplet.  If you think this
3019 configuration is useful to you, please write to autoconf@gnu.org." >&5
3020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3021 whose name does not start with the host triplet.  If you think this
3022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025     CC=$ac_ct_CC
3026   fi
3027 fi
3028
3029 fi
3030
3031
3032 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." >&2;}
3036    { (exit 1); exit 1; }; }
3037
3038 # Provide some information about the compiler.
3039 echo "$as_me:$LINENO: checking for C compiler version" >&5
3040 ac_compiler=`set X $ac_compile; echo $2`
3041 { (ac_try="$ac_compiler --version >&5"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compiler --version >&5") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }
3051 { (ac_try="$ac_compiler -v >&5"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_compiler -v >&5") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }
3061 { (ac_try="$ac_compiler -V >&5"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compiler -V >&5") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }
3071
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 ac_clean_files_save=$ac_clean_files
3088 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3089 # Try to create an executable without -o first, disregard a.out.
3090 # It will help us diagnose broken compilers, and finding out an intuition
3091 # of exeext.
3092 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3093 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3094 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 #
3096 # List of possible output files, starting from the most likely.
3097 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3098 # only as a last resort.  b.out is created by i960 compilers.
3099 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3100 #
3101 # The IRIX 6 linker writes into existing files which may not be
3102 # executable, retaining their permissions.  Remove them first so a
3103 # subsequent execution test works.
3104 ac_rmfiles=
3105 for ac_file in $ac_files
3106 do
3107   case $ac_file in
3108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3109     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3110   esac
3111 done
3112 rm -f $ac_rmfiles
3113
3114 if { (ac_try="$ac_link_default"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_link_default") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; then
3124   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3127 # so that the user can short-circuit this test for compilers unknown to
3128 # Autoconf.
3129 for ac_file in $ac_files ''
3130 do
3131   test -f "$ac_file" || continue
3132   case $ac_file in
3133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3134         ;;
3135     [ab].out )
3136         # We found the default executable, but exeext='' is most
3137         # certainly right.
3138         break;;
3139     *.* )
3140         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3141         then :; else
3142            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143         fi
3144         # We set ac_cv_exeext here because the later test for it is not
3145         # safe: cross compilers may not add the suffix if given an `-o'
3146         # argument, so we may need to know it at that point already.
3147         # Even if this section looks crufty: it has the advantage of
3148         # actually working.
3149         break;;
3150     * )
3151         break;;
3152   esac
3153 done
3154 test "$ac_cv_exeext" = no && ac_cv_exeext=
3155
3156 else
3157   ac_file=''
3158 fi
3159
3160 { echo "$as_me:$LINENO: result: $ac_file" >&5
3161 echo "${ECHO_T}$ac_file" >&6; }
3162 if test -z "$ac_file"; then
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C compiler cannot create executables
3169 See \`config.log' for more details." >&2;}
3170    { (exit 77); exit 77; }; }
3171 fi
3172
3173 ac_exeext=$ac_cv_exeext
3174
3175 # Check that the compiler produces executables we can run.  If not, either
3176 # the compiler is broken, or we cross compile.
3177 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3178 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3179 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3180 # If not cross compiling, check that we can run a simple program.
3181 if test "$cross_compiling" != yes; then
3182   if { ac_try='./$ac_file'
3183   { (case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_try") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192     cross_compiling=no
3193   else
3194     if test "$cross_compiling" = maybe; then
3195         cross_compiling=yes
3196     else
3197         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: cannot run C compiled programs.
3201 If you meant to cross compile, use \`--host'.
3202 See \`config.log' for more details." >&2;}
3203    { (exit 1); exit 1; }; }
3204     fi
3205   fi
3206 fi
3207 { echo "$as_me:$LINENO: result: yes" >&5
3208 echo "${ECHO_T}yes" >&6; }
3209
3210 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 # Check that the compiler produces executables we can run.  If not, either
3213 # the compiler is broken, or we cross compile.
3214 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3215 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3216 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3217 echo "${ECHO_T}$cross_compiling" >&6; }
3218
3219 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3220 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3221 if { (ac_try="$ac_link"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_link") 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; then
3231   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3233 # work properly (i.e., refer to `conftest.exe'), while it won't with
3234 # `rm'.
3235 for ac_file in conftest.exe conftest conftest.*; do
3236   test -f "$ac_file" || continue
3237   case $ac_file in
3238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3239     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240           break;;
3241     * ) break;;
3242   esac
3243 done
3244 else
3245   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3248 See \`config.log' for more details." >&2;}
3249    { (exit 1); exit 1; }; }
3250 fi
3251
3252 rm -f conftest$ac_cv_exeext
3253 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3254 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3255
3256 rm -f conftest.$ac_ext
3257 EXEEXT=$ac_cv_exeext
3258 ac_exeext=$EXEEXT
3259 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3260 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3261 if test "${ac_cv_objext+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.o conftest.obj
3280 if { (ac_try="$ac_compile"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286   (eval "$ac_compile") 2>&5
3287   ac_status=$?
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); }; then
3290   for ac_file in conftest.o conftest.obj conftest.*; do
3291   test -f "$ac_file" || continue;
3292   case $ac_file in
3293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3294     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3295        break;;
3296   esac
3297 done
3298 else
3299   echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3305 See \`config.log' for more details." >&2;}
3306    { (exit 1); exit 1; }; }
3307 fi
3308
3309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310 fi
3311 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3312 echo "${ECHO_T}$ac_cv_objext" >&6; }
3313 OBJEXT=$ac_cv_objext
3314 ac_objext=$OBJEXT
3315 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3316 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3317 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326
3327 int
3328 main ()
3329 {
3330 #ifndef __GNUC__
3331        choke me
3332 #endif
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3340 case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345   (eval "$ac_compile") 2>conftest.er1
3346   ac_status=$?
3347   grep -v '^ *+' conftest.er1 >conftest.err
3348   rm -f conftest.er1
3349   cat conftest.err >&5
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } && {
3352          test -z "$ac_c_werror_flag" ||
3353          test ! -s conftest.err
3354        } && test -s conftest.$ac_objext; then
3355   ac_compiler_gnu=yes
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360         ac_compiler_gnu=no
3361 fi
3362
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3365
3366 fi
3367 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3368 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3369 GCC=`test $ac_compiler_gnu = yes && echo yes`
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3373 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_cc_g+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   ac_save_c_werror_flag=$ac_c_werror_flag
3378    ac_c_werror_flag=yes
3379    ac_cv_prog_cc_g=no
3380    CFLAGS="-g"
3381    cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387
3388 int
3389 main ()
3390 {
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } && {
3410          test -z "$ac_c_werror_flag" ||
3411          test ! -s conftest.err
3412        } && test -s conftest.$ac_objext; then
3413   ac_cv_prog_cc_g=yes
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418         CFLAGS=""
3419       cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441   (eval "$ac_compile") 2>conftest.er1
3442   ac_status=$?
3443   grep -v '^ *+' conftest.er1 >conftest.err
3444   rm -f conftest.er1
3445   cat conftest.err >&5
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } && {
3448          test -z "$ac_c_werror_flag" ||
3449          test ! -s conftest.err
3450        } && test -s conftest.$ac_objext; then
3451   :
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456         ac_c_werror_flag=$ac_save_c_werror_flag
3457          CFLAGS="-g"
3458          cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_compile") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && {
3487          test -z "$ac_c_werror_flag" ||
3488          test ! -s conftest.err
3489        } && test -s conftest.$ac_objext; then
3490   ac_cv_prog_cc_g=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 fi
3503
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505    ac_c_werror_flag=$ac_save_c_werror_flag
3506 fi
3507 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3508 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510   CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512   if test "$GCC" = yes; then
3513     CFLAGS="-g -O2"
3514   else
3515     CFLAGS="-g"
3516   fi
3517 else
3518   if test "$GCC" = yes; then
3519     CFLAGS="-O2"
3520   else
3521     CFLAGS=
3522   fi
3523 fi
3524 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3525 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3526 if test "${ac_cv_prog_cc_c89+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   ac_cv_prog_cc_c89=no
3530 ac_save_CC=$CC
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537 #include <stdarg.h>
3538 #include <stdio.h>
3539 #include <sys/types.h>
3540 #include <sys/stat.h>
3541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3542 struct buf { int x; };
3543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3544 static char *e (p, i)
3545      char **p;
3546      int i;
3547 {
3548   return p[i];
3549 }
3550 static char *f (char * (*g) (char **, int), char **p, ...)
3551 {
3552   char *s;
3553   va_list v;
3554   va_start (v,p);
3555   s = g (p, va_arg (v,int));
3556   va_end (v);
3557   return s;
3558 }
3559
3560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3561    function prototypes and stuff, but not '\xHH' hex character constants.
3562    These don't provoke an error unfortunately, instead are silently treated
3563    as 'x'.  The following induces an error, until -std is added to get
3564    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3565    array size at least.  It's necessary to write '\x00'==0 to get something
3566    that's true only with -std.  */
3567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3568
3569 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3570    inside strings and character constants.  */
3571 #define FOO(x) 'x'
3572 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3573
3574 int test (int i, double x);
3575 struct s1 {int (*f) (int a);};
3576 struct s2 {int (*f) (double a);};
3577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3578 int argc;
3579 char **argv;
3580 int
3581 main ()
3582 {
3583 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3589         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 do
3591   CC="$ac_save_CC $ac_arg"
3592   rm -f conftest.$ac_objext
3593 if { (ac_try="$ac_compile"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_compile") 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } && {
3606          test -z "$ac_c_werror_flag" ||
3607          test ! -s conftest.err
3608        } && test -s conftest.$ac_objext; then
3609   ac_cv_prog_cc_c89=$ac_arg
3610 else
3611   echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614
3615 fi
3616
3617 rm -f core conftest.err conftest.$ac_objext
3618   test "x$ac_cv_prog_cc_c89" != "xno" && break
3619 done
3620 rm -f conftest.$ac_ext
3621 CC=$ac_save_CC
3622
3623 fi
3624 # AC_CACHE_VAL
3625 case "x$ac_cv_prog_cc_c89" in
3626   x)
3627     { echo "$as_me:$LINENO: result: none needed" >&5
3628 echo "${ECHO_T}none needed" >&6; } ;;
3629   xno)
3630     { echo "$as_me:$LINENO: result: unsupported" >&5
3631 echo "${ECHO_T}unsupported" >&6; } ;;
3632   *)
3633     CC="$CC $ac_cv_prog_cc_c89"
3634     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3635 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3636 esac
3637
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645 depcc="$CC"   am_compiler_list=
3646
3647 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3648 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3653   # We make a subdir and do the tests there.  Otherwise we can end up
3654   # making bogus files that we don't know about and never remove.  For
3655   # instance it was reported that on HP-UX the gcc test will end up
3656   # making a dummy file named `D' -- because `-MD' means `put the output
3657   # in D'.
3658   mkdir conftest.dir
3659   # Copy depcomp to subdir because otherwise we won't find it if we're
3660   # using a relative directory.
3661   cp "$am_depcomp" conftest.dir
3662   cd conftest.dir
3663   # We will build objects and dependencies in a subdirectory because
3664   # it helps to detect inapplicable dependency modes.  For instance
3665   # both Tru64's cc and ICC support -MD to output dependencies as a
3666   # side effect of compilation, but ICC will put the dependencies in
3667   # the current directory while Tru64 will put them in the object
3668   # directory.
3669   mkdir sub
3670
3671   am_cv_CC_dependencies_compiler_type=none
3672   if test "$am_compiler_list" = ""; then
3673      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674   fi
3675   for depmode in $am_compiler_list; do
3676     # Setup a source with many dependencies, because some compilers
3677     # like to wrap large dependency lists on column 80 (with \), and
3678     # we should not choose a depcomp mode which is confused by this.
3679     #
3680     # We need to recreate these files for each test, as the compiler may
3681     # overwrite some of them when testing with obscure command lines.
3682     # This happens at least with the AIX C compiler.
3683     : > sub/conftest.c
3684     for i in 1 2 3 4 5 6; do
3685       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3686       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3687       # Solaris 8's {/usr,}/bin/sh.
3688       touch sub/conftst$i.h
3689     done
3690     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3691
3692     case $depmode in
3693     nosideeffect)
3694       # after this tag, mechanisms are not by side-effect, so they'll
3695       # only be used when explicitly requested
3696       if test "x$enable_dependency_tracking" = xyes; then
3697         continue
3698       else
3699         break
3700       fi
3701       ;;
3702     none) break ;;
3703     esac
3704     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705     # mode.  It turns out that the SunPro C++ compiler does not properly
3706     # handle `-M -o', and we need to detect this.
3707     if depmode=$depmode \
3708        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3709        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3711          >/dev/null 2>conftest.err &&
3712        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3713        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3714        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3715       # icc doesn't choke on unknown options, it will just issue warnings
3716       # or remarks (even with -Werror).  So we grep stderr for any message
3717       # that says an option was ignored or not supported.
3718       # When given -MP, icc 7.0 and 7.1 complain thusly:
3719       #   icc: Command line warning: ignoring option '-M'; no argument required
3720       # The diagnosis changed in icc 8.0:
3721       #   icc: Command line remark: option '-MP' not supported
3722       if (grep 'ignoring option' conftest.err ||
3723           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3724         am_cv_CC_dependencies_compiler_type=$depmode
3725         break
3726       fi
3727     fi
3728   done
3729
3730   cd ..
3731   rm -rf conftest.dir
3732 else
3733   am_cv_CC_dependencies_compiler_type=none
3734 fi
3735
3736 fi
3737 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3738 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3739 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3740
3741
3742
3743 if
3744   test "x$enable_dependency_tracking" != xno \
3745   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3746   am__fastdepCC_TRUE=
3747   am__fastdepCC_FALSE='#'
3748 else
3749   am__fastdepCC_TRUE='#'
3750   am__fastdepCC_FALSE=
3751 fi
3752
3753
3754 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3755 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3756 if test "${lt_cv_path_SED+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   # Loop through the user's path and test for sed and gsed.
3760 # Then use that list of sed's as ones to test for truncation.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for lt_ac_prog in sed gsed; do
3767     for ac_exec_ext in '' $ac_executable_extensions; do
3768       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3769         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3770       fi
3771     done
3772   done
3773 done
3774 lt_ac_max=0
3775 lt_ac_count=0
3776 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3777 # along with /bin/sed that truncates output.
3778 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3779   test ! -f $lt_ac_sed && continue
3780   cat /dev/null > conftest.in
3781   lt_ac_count=0
3782   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3783   # Check for GNU sed and select it if it is found.
3784   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3785     lt_cv_path_SED=$lt_ac_sed
3786     break
3787   fi
3788   while true; do
3789     cat conftest.in conftest.in >conftest.tmp
3790     mv conftest.tmp conftest.in
3791     cp conftest.in conftest.nl
3792     echo >>conftest.nl
3793     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3794     cmp -s conftest.out conftest.nl || break
3795     # 10000 chars as input seems more than enough
3796     test $lt_ac_count -gt 10 && break
3797     lt_ac_count=`expr $lt_ac_count + 1`
3798     if test $lt_ac_count -gt $lt_ac_max; then
3799       lt_ac_max=$lt_ac_count
3800       lt_cv_path_SED=$lt_ac_sed
3801     fi
3802   done
3803 done
3804
3805 fi
3806
3807 SED=$lt_cv_path_SED
3808 { echo "$as_me:$LINENO: result: $SED" >&5
3809 echo "${ECHO_T}$SED" >&6; }
3810
3811 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3812 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3813 if test "${ac_cv_path_GREP+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   # Extract the first word of "grep ggrep" to use in msg output
3817 if test -z "$GREP"; then
3818 set dummy grep ggrep; ac_prog_name=$2
3819 if test "${ac_cv_path_GREP+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   ac_path_GREP_found=false
3823 # Loop through the user's path and test for each of PROGNAME-LIST
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3826 do
3827   IFS=$as_save_IFS
3828   test -z "$as_dir" && as_dir=.
3829   for ac_prog in grep ggrep; do
3830   for ac_exec_ext in '' $ac_executable_extensions; do
3831     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3832     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3833     # Check for GNU ac_path_GREP and select it if it is found.
3834   # Check for GNU $ac_path_GREP
3835 case `"$ac_path_GREP" --version 2>&1` in
3836 *GNU*)
3837   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3838 *)
3839   ac_count=0
3840   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3841   while :
3842   do
3843     cat "conftest.in" "conftest.in" >"conftest.tmp"
3844     mv "conftest.tmp" "conftest.in"
3845     cp "conftest.in" "conftest.nl"
3846     echo 'GREP' >> "conftest.nl"
3847     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3848     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3849     ac_count=`expr $ac_count + 1`
3850     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3851       # Best one so far, save it but keep looking for a better one
3852       ac_cv_path_GREP="$ac_path_GREP"
3853       ac_path_GREP_max=$ac_count
3854     fi
3855     # 10*(2^10) chars as input seems more than enough
3856     test $ac_count -gt 10 && break
3857   done
3858   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3859 esac
3860
3861
3862     $ac_path_GREP_found && break 3
3863   done
3864 done
3865
3866 done
3867 IFS=$as_save_IFS
3868
3869
3870 fi
3871
3872 GREP="$ac_cv_path_GREP"
3873 if test -z "$GREP"; then
3874   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3875 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3876    { (exit 1); exit 1; }; }
3877 fi
3878
3879 else
3880   ac_cv_path_GREP=$GREP
3881 fi
3882
3883
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3886 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3887  GREP="$ac_cv_path_GREP"
3888
3889
3890 { echo "$as_me:$LINENO: checking for egrep" >&5
3891 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3892 if test "${ac_cv_path_EGREP+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3896    then ac_cv_path_EGREP="$GREP -E"
3897    else
3898      # Extract the first word of "egrep" to use in msg output
3899 if test -z "$EGREP"; then
3900 set dummy egrep; ac_prog_name=$2
3901 if test "${ac_cv_path_EGREP+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   ac_path_EGREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_prog in egrep; do
3912   for ac_exec_ext in '' $ac_executable_extensions; do
3913     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915     # Check for GNU ac_path_EGREP and select it if it is found.
3916   # Check for GNU $ac_path_EGREP
3917 case `"$ac_path_EGREP" --version 2>&1` in
3918 *GNU*)
3919   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 *)
3921   ac_count=0
3922   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3923   while :
3924   do
3925     cat "conftest.in" "conftest.in" >"conftest.tmp"
3926     mv "conftest.tmp" "conftest.in"
3927     cp "conftest.in" "conftest.nl"
3928     echo 'EGREP' >> "conftest.nl"
3929     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931     ac_count=`expr $ac_count + 1`
3932     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933       # Best one so far, save it but keep looking for a better one
3934       ac_cv_path_EGREP="$ac_path_EGREP"
3935       ac_path_EGREP_max=$ac_count
3936     fi
3937     # 10*(2^10) chars as input seems more than enough
3938     test $ac_count -gt 10 && break
3939   done
3940   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 esac
3942
3943
3944     $ac_path_EGREP_found && break 3
3945   done
3946 done
3947
3948 done
3949 IFS=$as_save_IFS
3950
3951
3952 fi
3953
3954 EGREP="$ac_cv_path_EGREP"
3955 if test -z "$EGREP"; then
3956   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958    { (exit 1); exit 1; }; }
3959 fi
3960
3961 else
3962   ac_cv_path_EGREP=$EGREP
3963 fi
3964
3965
3966    fi
3967 fi
3968 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3969 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3970  EGREP="$ac_cv_path_EGREP"
3971
3972
3973
3974 # Check whether --with-gnu-ld was given.
3975 if test "${with_gnu_ld+set}" = set; then
3976   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3977 else
3978   with_gnu_ld=no
3979 fi
3980
3981 ac_prog=ld
3982 if test "$GCC" = yes; then
3983   # Check if gcc -print-prog-name=ld gives a path.
3984   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3986   case $host in
3987   *-*-mingw*)
3988     # gcc leaves a trailing carriage return which upsets mingw
3989     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3990   *)
3991     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3992   esac
3993   case $ac_prog in
3994     # Accept absolute paths.
3995     [\\/]* | ?:[\\/]*)
3996       re_direlt='/[^/][^/]*/\.\./'
3997       # Canonicalize the pathname of ld
3998       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3999       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4000         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4001       done
4002       test -z "$LD" && LD="$ac_prog"
4003       ;;
4004   "")
4005     # If it fails, then pretend we aren't using GCC.
4006     ac_prog=ld
4007     ;;
4008   *)
4009     # If it is relative, then search for the first ld in PATH.
4010     with_gnu_ld=unknown
4011     ;;
4012   esac
4013 elif test "$with_gnu_ld" = yes; then
4014   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4016 else
4017   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4019 fi
4020 if test "${lt_cv_path_LD+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   if test -z "$LD"; then
4024   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4025   for ac_dir in $PATH; do
4026     IFS="$lt_save_ifs"
4027     test -z "$ac_dir" && ac_dir=.
4028     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4029       lt_cv_path_LD="$ac_dir/$ac_prog"
4030       # Check to see if the program is GNU ld.  I'd rather use --version,
4031       # but apparently some variants of GNU ld only accept -v.
4032       # Break only if it was the GNU/non-GNU ld that we prefer.
4033       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4034       *GNU* | *'with BFD'*)
4035         test "$with_gnu_ld" != no && break
4036         ;;
4037       *)
4038         test "$with_gnu_ld" != yes && break
4039         ;;
4040       esac
4041     fi
4042   done
4043   IFS="$lt_save_ifs"
4044 else
4045   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4046 fi
4047 fi
4048
4049 LD="$lt_cv_path_LD"
4050 if test -n "$LD"; then
4051   { echo "$as_me:$LINENO: result: $LD" >&5
4052 echo "${ECHO_T}$LD" >&6; }
4053 else
4054   { echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6; }
4056 fi
4057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4059    { (exit 1); exit 1; }; }
4060 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4066 case `$LD -v 2>&1 </dev/null` in
4067 *GNU* | *'with BFD'*)
4068   lt_cv_prog_gnu_ld=yes
4069   ;;
4070 *)
4071   lt_cv_prog_gnu_ld=no
4072   ;;
4073 esac
4074 fi
4075 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4077 with_gnu_ld=$lt_cv_prog_gnu_ld
4078
4079
4080 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4081 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4082 if test "${lt_cv_ld_reload_flag+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   lt_cv_ld_reload_flag='-r'
4086 fi
4087 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4088 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4089 reload_flag=$lt_cv_ld_reload_flag
4090 case $reload_flag in
4091 "" | " "*) ;;
4092 *) reload_flag=" $reload_flag" ;;
4093 esac
4094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4095 case $host_os in
4096   darwin*)
4097     if test "$GCC" = yes; then
4098       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4099     else
4100       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4101     fi
4102     ;;
4103 esac
4104
4105 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4106 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4107 if test "${lt_cv_path_NM+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   if test -n "$NM"; then
4111   # Let the user override the test.
4112   lt_cv_path_NM="$NM"
4113 else
4114   lt_nm_to_check="${ac_tool_prefix}nm"
4115   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4116     lt_nm_to_check="$lt_nm_to_check nm"
4117   fi
4118   for lt_tmp_nm in $lt_nm_to_check; do
4119     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4121       IFS="$lt_save_ifs"
4122       test -z "$ac_dir" && ac_dir=.
4123       tmp_nm="$ac_dir/$lt_tmp_nm"
4124       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4125         # Check to see if the nm accepts a BSD-compat flag.
4126         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4127         #   nm: unknown option "B" ignored
4128         # Tru64's nm complains that /dev/null is an invalid object file
4129         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4130         */dev/null* | *'Invalid file or object type'*)
4131           lt_cv_path_NM="$tmp_nm -B"
4132           break
4133           ;;
4134         *)
4135           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4136           */dev/null*)
4137             lt_cv_path_NM="$tmp_nm -p"
4138             break
4139             ;;
4140           *)
4141             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4142             continue # so that we can try to find one that supports BSD flags
4143             ;;
4144           esac
4145           ;;
4146         esac
4147       fi
4148     done
4149     IFS="$lt_save_ifs"
4150   done
4151   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4152 fi
4153 fi
4154 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4155 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4156 NM="$lt_cv_path_NM"
4157
4158 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4159 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4160 LN_S=$as_ln_s
4161 if test "$LN_S" = "ln -s"; then
4162   { echo "$as_me:$LINENO: result: yes" >&5
4163 echo "${ECHO_T}yes" >&6; }
4164 else
4165   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4166 echo "${ECHO_T}no, using $LN_S" >&6; }
4167 fi
4168
4169 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4170 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4171 if test "${lt_cv_deplibs_check_method+set}" = set; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174   lt_cv_file_magic_cmd='$MAGIC_CMD'
4175 lt_cv_file_magic_test_file=
4176 lt_cv_deplibs_check_method='unknown'
4177 # Need to set the preceding variable on all platforms that support
4178 # interlibrary dependencies.
4179 # 'none' -- dependencies not supported.
4180 # `unknown' -- same as none, but documents that we really don't know.
4181 # 'pass_all' -- all dependencies passed with no checks.
4182 # 'test_compile' -- check by making test program.
4183 # 'file_magic [[regex]]' -- check by looking for files in library path
4184 # which responds to the $file_magic_cmd with a given extended regex.
4185 # If you have `file' or equivalent on your system and you're not sure
4186 # whether `pass_all' will *always* work, you probably want this one.
4187
4188 case $host_os in
4189 aix4* | aix5*)
4190   lt_cv_deplibs_check_method=pass_all
4191   ;;
4192
4193 beos*)
4194   lt_cv_deplibs_check_method=pass_all
4195   ;;
4196
4197 bsdi[45]*)
4198   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4199   lt_cv_file_magic_cmd='/usr/bin/file -L'
4200   lt_cv_file_magic_test_file=/shlib/libc.so
4201   ;;
4202
4203 cygwin*)
4204   # func_win32_libid is a shell function defined in ltmain.sh
4205   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4206   lt_cv_file_magic_cmd='func_win32_libid'
4207   ;;
4208
4209 mingw* | pw32*)
4210   # Base MSYS/MinGW do not provide the 'file' command needed by
4211   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4212   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4213   lt_cv_file_magic_cmd='$OBJDUMP -f'
4214   ;;
4215
4216 darwin* | rhapsody*)
4217   lt_cv_deplibs_check_method=pass_all
4218   ;;
4219
4220 freebsd* | dragonfly*)
4221   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222     case $host_cpu in
4223     i*86 )
4224       # Not sure whether the presence of OpenBSD here was a mistake.
4225       # Let's accept both of them until this is cleared up.
4226       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4227       lt_cv_file_magic_cmd=/usr/bin/file
4228       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4229       ;;
4230     esac
4231   else
4232     lt_cv_deplibs_check_method=pass_all
4233   fi
4234   ;;
4235
4236 gnu*)
4237   lt_cv_deplibs_check_method=pass_all
4238   ;;
4239
4240 hpux10.20* | hpux11*)
4241   lt_cv_file_magic_cmd=/usr/bin/file
4242   case $host_cpu in
4243   ia64*)
4244     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4245     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4246     ;;
4247   hppa*64*)
4248     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]'
4249     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4250     ;;
4251   *)
4252     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4253     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4254     ;;
4255   esac
4256   ;;
4257
4258 interix3*)
4259   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4260   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4261   ;;
4262
4263 irix5* | irix6* | nonstopux*)
4264   case $LD in
4265   *-32|*"-32 ") libmagic=32-bit;;
4266   *-n32|*"-n32 ") libmagic=N32;;
4267   *-64|*"-64 ") libmagic=64-bit;;
4268   *) libmagic=never-match;;
4269   esac
4270   lt_cv_deplibs_check_method=pass_all
4271   ;;
4272
4273 # This must be Linux ELF.
4274 linux* | k*bsd*-gnu)
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 netbsd* | netbsdelf*-gnu)
4279   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4280     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4281   else
4282     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4283   fi
4284   ;;
4285
4286 newos6*)
4287   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4288   lt_cv_file_magic_cmd=/usr/bin/file
4289   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4290   ;;
4291
4292 nto-qnx*)
4293   lt_cv_deplibs_check_method=unknown
4294   ;;
4295
4296 openbsd*)
4297   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4298     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4299   else
4300     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4301   fi
4302   ;;
4303
4304 osf3* | osf4* | osf5*)
4305   lt_cv_deplibs_check_method=pass_all
4306   ;;
4307
4308 solaris*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 sysv4 | sysv4.3*)
4313   case $host_vendor in
4314   motorola)
4315     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]'
4316     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4317     ;;
4318   ncr)
4319     lt_cv_deplibs_check_method=pass_all
4320     ;;
4321   sequent)
4322     lt_cv_file_magic_cmd='/bin/file'
4323     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4324     ;;
4325   sni)
4326     lt_cv_file_magic_cmd='/bin/file'
4327     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4328     lt_cv_file_magic_test_file=/lib/libc.so
4329     ;;
4330   siemens)
4331     lt_cv_deplibs_check_method=pass_all
4332     ;;
4333   pc)
4334     lt_cv_deplibs_check_method=pass_all
4335     ;;
4336   esac
4337   ;;
4338
4339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4340   lt_cv_deplibs_check_method=pass_all
4341   ;;
4342 esac
4343
4344 fi
4345 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4346 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4347 file_magic_cmd=$lt_cv_file_magic_cmd
4348 deplibs_check_method=$lt_cv_deplibs_check_method
4349 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4350
4351
4352
4353
4354 # If no C compiler was specified, use CC.
4355 LTCC=${LTCC-"$CC"}
4356
4357 # If no C compiler flags were specified, use CFLAGS.
4358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4359
4360 # Allow CC to be a program name with arguments.
4361 compiler=$CC
4362
4363
4364 # Check whether --enable-libtool-lock was given.
4365 if test "${enable_libtool_lock+set}" = set; then
4366   enableval=$enable_libtool_lock;
4367 fi
4368
4369 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4370
4371 # Some flags need to be propagated to the compiler or linker for good
4372 # libtool support.
4373 case $host in
4374 ia64-*-hpux*)
4375   # Find out which ABI we are using.
4376   echo 'int i;' > conftest.$ac_ext
4377   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378   (eval $ac_compile) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; then
4382     case `/usr/bin/file conftest.$ac_objext` in
4383     *ELF-32*)
4384       HPUX_IA64_MODE="32"
4385       ;;
4386     *ELF-64*)
4387       HPUX_IA64_MODE="64"
4388       ;;
4389     esac
4390   fi
4391   rm -rf conftest*
4392   ;;
4393 *-*-irix6*)
4394   # Find out which ABI we are using.
4395   echo '#line 4395 "configure"' > conftest.$ac_ext
4396   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397   (eval $ac_compile) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; then
4401    if test "$lt_cv_prog_gnu_ld" = yes; then
4402     case `/usr/bin/file conftest.$ac_objext` in
4403     *32-bit*)
4404       LD="${LD-ld} -melf32bsmip"
4405       ;;
4406     *N32*)
4407       LD="${LD-ld} -melf32bmipn32"
4408       ;;
4409     *64-bit*)
4410       LD="${LD-ld} -melf64bmip"
4411       ;;
4412     esac
4413    else
4414     case `/usr/bin/file conftest.$ac_objext` in
4415     *32-bit*)
4416       LD="${LD-ld} -32"
4417       ;;
4418     *N32*)
4419       LD="${LD-ld} -n32"
4420       ;;
4421     *64-bit*)
4422       LD="${LD-ld} -64"
4423       ;;
4424     esac
4425    fi
4426   fi
4427   rm -rf conftest*
4428   ;;
4429
4430 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4431   # Find out which ABI we are using.
4432   echo 'int i;' > conftest.$ac_ext
4433   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434   (eval $ac_compile) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; then
4438     case `/usr/bin/file conftest.o` in
4439     *32-bit*)
4440       case $host in
4441         x86_64-*linux*)
4442           LD="${LD-ld} -m elf_i386"
4443           ;;
4444         ppc64-*linux*|powerpc64-*linux*)
4445           LD="${LD-ld} -m elf32ppclinux"
4446           ;;
4447         s390x-*linux*)
4448           LD="${LD-ld} -m elf_s390"
4449           ;;
4450         sparc64-*linux*)
4451           LD="${LD-ld} -m elf32_sparc"
4452           ;;
4453       esac
4454       ;;
4455     *64-bit*)
4456       case $host in
4457         x86_64-*linux*)
4458           LD="${LD-ld} -m elf_x86_64"
4459           ;;
4460         ppc*-*linux*|powerpc*-*linux*)
4461           LD="${LD-ld} -m elf64ppc"
4462           ;;
4463         s390*-*linux*)
4464           LD="${LD-ld} -m elf64_s390"
4465           ;;
4466         sparc*-*linux*)
4467           LD="${LD-ld} -m elf64_sparc"
4468           ;;
4469       esac
4470       ;;
4471     esac
4472   fi
4473   rm -rf conftest*
4474   ;;
4475
4476 *-*-sco3.2v5*)
4477   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4478   SAVE_CFLAGS="$CFLAGS"
4479   CFLAGS="$CFLAGS -belf"
4480   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4481 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4482 if test "${lt_cv_cc_needs_belf+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491      cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (ac_try="$ac_link"
4508 case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513   (eval "$ac_link") 2>conftest.er1
4514   ac_status=$?
4515   grep -v '^ *+' conftest.er1 >conftest.err
4516   rm -f conftest.er1
4517   cat conftest.err >&5
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } && {
4520          test -z "$ac_c_werror_flag" ||
4521          test ! -s conftest.err
4522        } && test -s conftest$ac_exeext &&
4523        $as_test_x conftest$ac_exeext; then
4524   lt_cv_cc_needs_belf=yes
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529         lt_cv_cc_needs_belf=no
4530 fi
4531
4532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4533       conftest$ac_exeext conftest.$ac_ext
4534      ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
4540 fi
4541 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4542 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4543   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4544     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4545     CFLAGS="$SAVE_CFLAGS"
4546   fi
4547   ;;
4548 sparc*-*solaris*)
4549   # Find out which ABI we are using.
4550   echo 'int i;' > conftest.$ac_ext
4551   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552   (eval $ac_compile) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; then
4556     case `/usr/bin/file conftest.o` in
4557     *64-bit*)
4558       case $lt_cv_prog_gnu_ld in
4559       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4560       *)    LD="${LD-ld} -64" ;;
4561       esac
4562       ;;
4563     esac
4564   fi
4565   rm -rf conftest*
4566   ;;
4567
4568 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4569   if test -n "$ac_tool_prefix"; then
4570   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4571 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -n "$DLLTOOL"; then
4578   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 DLLTOOL=$ac_cv_prog_DLLTOOL
4598 if test -n "$DLLTOOL"; then
4599   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4600 echo "${ECHO_T}$DLLTOOL" >&6; }
4601 else
4602   { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4604 fi
4605
4606
4607 fi
4608 if test -z "$ac_cv_prog_DLLTOOL"; then
4609   ac_ct_DLLTOOL=$DLLTOOL
4610   # Extract the first word of "dlltool", so it can be a program name with args.
4611 set dummy dlltool; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test -n "$ac_ct_DLLTOOL"; then
4618   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 fi
4636 fi
4637 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4638 if test -n "$ac_ct_DLLTOOL"; then
4639   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4640 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4641 else
4642   { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4644 fi
4645
4646   if test "x$ac_ct_DLLTOOL" = x; then
4647     DLLTOOL="false"
4648   else
4649     case $cross_compiling:$ac_tool_warned in
4650 yes:)
4651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4652 whose name does not start with the host triplet.  If you think this
4653 configuration is useful to you, please write to autoconf@gnu.org." >&5
4654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4655 whose name does not start with the host triplet.  If you think this
4656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4657 ac_tool_warned=yes ;;
4658 esac
4659     DLLTOOL=$ac_ct_DLLTOOL
4660   fi
4661 else
4662   DLLTOOL="$ac_cv_prog_DLLTOOL"
4663 fi
4664
4665   if test -n "$ac_tool_prefix"; then
4666   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}as; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_AS+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   if test -n "$AS"; then
4674   ac_cv_prog_AS="$AS" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_prog_AS="${ac_tool_prefix}as"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 AS=$ac_cv_prog_AS
4694 if test -n "$AS"; then
4695   { echo "$as_me:$LINENO: result: $AS" >&5
4696 echo "${ECHO_T}$AS" >&6; }
4697 else
4698   { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 fi
4701
4702
4703 fi
4704 if test -z "$ac_cv_prog_AS"; then
4705   ac_ct_AS=$AS
4706   # Extract the first word of "as", so it can be a program name with args.
4707 set dummy as; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   if test -n "$ac_ct_AS"; then
4714   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723     ac_cv_prog_ac_ct_AS="as"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4734 if test -n "$ac_ct_AS"; then
4735   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4736 echo "${ECHO_T}$ac_ct_AS" >&6; }
4737 else
4738   { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4740 fi
4741
4742   if test "x$ac_ct_AS" = x; then
4743     AS="false"
4744   else
4745     case $cross_compiling:$ac_tool_warned in
4746 yes:)
4747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4748 whose name does not start with the host triplet.  If you think this
4749 configuration is useful to you, please write to autoconf@gnu.org." >&5
4750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet.  If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4753 ac_tool_warned=yes ;;
4754 esac
4755     AS=$ac_ct_AS
4756   fi
4757 else
4758   AS="$ac_cv_prog_AS"
4759 fi
4760
4761   if test -n "$ac_tool_prefix"; then
4762   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4763 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   if test -n "$OBJDUMP"; then
4770   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 OBJDUMP=$ac_cv_prog_OBJDUMP
4790 if test -n "$OBJDUMP"; then
4791   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4792 echo "${ECHO_T}$OBJDUMP" >&6; }
4793 else
4794   { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 fi
4797
4798
4799 fi
4800 if test -z "$ac_cv_prog_OBJDUMP"; then
4801   ac_ct_OBJDUMP=$OBJDUMP
4802   # Extract the first word of "objdump", so it can be a program name with args.
4803 set dummy objdump; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   if test -n "$ac_ct_OBJDUMP"; then
4810   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817   for ac_exec_ext in '' $ac_executable_extensions; do
4818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821     break 2
4822   fi
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4830 if test -n "$ac_ct_OBJDUMP"; then
4831   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4832 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4833 else
4834   { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4836 fi
4837
4838   if test "x$ac_ct_OBJDUMP" = x; then
4839     OBJDUMP="false"
4840   else
4841     case $cross_compiling:$ac_tool_warned in
4842 yes:)
4843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4844 whose name does not start with the host triplet.  If you think this
4845 configuration is useful to you, please write to autoconf@gnu.org." >&5
4846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4847 whose name does not start with the host triplet.  If you think this
4848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4849 ac_tool_warned=yes ;;
4850 esac
4851     OBJDUMP=$ac_ct_OBJDUMP
4852   fi
4853 else
4854   OBJDUMP="$ac_cv_prog_OBJDUMP"
4855 fi
4856
4857   ;;
4858
4859 esac
4860
4861 need_locks="$enable_libtool_lock"
4862
4863
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4870 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4873   CPP=
4874 fi
4875 if test -z "$CPP"; then
4876   if test "${ac_cv_prog_CPP+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879       # Double quotes because CPP needs to be expanded
4880     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4881     do
4882       ac_preproc_ok=false
4883 for ac_c_preproc_warn_flag in '' yes
4884 do
4885   # Use a header file that comes with gcc, so configuring glibc
4886   # with a fresh cross-compiler works.
4887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888   # <limits.h> exists even on freestanding compilers.
4889   # On the NeXT, cc -E runs the code through the compiler's parser,
4890   # not just through cpp. "Syntax error" is here to catch this case.
4891   cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 #ifdef __STDC__
4898 # include <limits.h>
4899 #else
4900 # include <assert.h>
4901 #endif
4902                      Syntax error
4903 _ACEOF
4904 if { (ac_try="$ac_cpp conftest.$ac_ext"
4905 case "(($ac_try" in
4906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907   *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } >/dev/null && {
4917          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4918          test ! -s conftest.err
4919        }; then
4920   :
4921 else
4922   echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925   # Broken: fails on valid input.
4926 continue
4927 fi
4928
4929 rm -f conftest.err conftest.$ac_ext
4930
4931   # OK, works on sane cases.  Now check whether nonexistent headers
4932   # can be detected and how.
4933   cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939 #include <ac_nonexistent.h>
4940 _ACEOF
4941 if { (ac_try="$ac_cpp conftest.$ac_ext"
4942 case "(($ac_try" in
4943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944   *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } >/dev/null && {
4954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955          test ! -s conftest.err
4956        }; then
4957   # Broken: success on invalid input.
4958 continue
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963   # Passes both tests.
4964 ac_preproc_ok=:
4965 break
4966 fi
4967
4968 rm -f conftest.err conftest.$ac_ext
4969
4970 done
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.err conftest.$ac_ext
4973 if $ac_preproc_ok; then
4974   break
4975 fi
4976
4977     done
4978     ac_cv_prog_CPP=$CPP
4979
4980 fi
4981   CPP=$ac_cv_prog_CPP
4982 else
4983   ac_cv_prog_CPP=$CPP
4984 fi
4985 { echo "$as_me:$LINENO: result: $CPP" >&5
4986 echo "${ECHO_T}$CPP" >&6; }
4987 ac_preproc_ok=false
4988 for ac_c_preproc_warn_flag in '' yes
4989 do
4990   # Use a header file that comes with gcc, so configuring glibc
4991   # with a fresh cross-compiler works.
4992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993   # <limits.h> exists even on freestanding compilers.
4994   # On the NeXT, cc -E runs the code through the compiler's parser,
4995   # not just through cpp. "Syntax error" is here to catch this case.
4996   cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #ifdef __STDC__
5003 # include <limits.h>
5004 #else
5005 # include <assert.h>
5006 #endif
5007                      Syntax error
5008 _ACEOF
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5010 case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } >/dev/null && {
5022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023          test ! -s conftest.err
5024        }; then
5025   :
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030   # Broken: fails on valid input.
5031 continue
5032 fi
5033
5034 rm -f conftest.err conftest.$ac_ext
5035
5036   # OK, works on sane cases.  Now check whether nonexistent headers
5037   # can be detected and how.
5038   cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 #include <ac_nonexistent.h>
5045 _ACEOF
5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
5047 case "(($ac_try" in
5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049   *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } >/dev/null && {
5059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5060          test ! -s conftest.err
5061        }; then
5062   # Broken: success on invalid input.
5063 continue
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068   # Passes both tests.
5069 ac_preproc_ok=:
5070 break
5071 fi
5072
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 done
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then
5079   :
5080 else
5081   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5082 See \`config.log' for more details." >&5
5083 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5084 See \`config.log' for more details." >&2;}
5085    { (exit 1); exit 1; }; }
5086 fi
5087
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094
5095 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5097 if test "${ac_cv_header_stdc+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 #include <stdlib.h>
5107 #include <stdarg.h>
5108 #include <string.h>
5109 #include <float.h>
5110
5111 int
5112 main ()
5113 {
5114
5115   ;
5116   return 0;
5117 }
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_compile") 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } && {
5133          test -z "$ac_c_werror_flag" ||
5134          test ! -s conftest.err
5135        } && test -s conftest.$ac_objext; then
5136   ac_cv_header_stdc=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141         ac_cv_header_stdc=no
5142 fi
5143
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146 if test $ac_cv_header_stdc = yes; then
5147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148   cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 #include <string.h>
5155
5156 _ACEOF
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158   $EGREP "memchr" >/dev/null 2>&1; then
5159   :
5160 else
5161   ac_cv_header_stdc=no
5162 fi
5163 rm -f conftest*
5164
5165 fi
5166
5167 if test $ac_cv_header_stdc = yes; then
5168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169   cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175 #include <stdlib.h>
5176
5177 _ACEOF
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179   $EGREP "free" >/dev/null 2>&1; then
5180   :
5181 else
5182   ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest*
5185
5186 fi
5187
5188 if test $ac_cv_header_stdc = yes; then
5189   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5190   if test "$cross_compiling" = yes; then
5191   :
5192 else
5193   cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199 #include <ctype.h>
5200 #include <stdlib.h>
5201 #if ((' ' & 0x0FF) == 0x020)
5202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204 #else
5205 # define ISLOWER(c) \
5206                    (('a' <= (c) && (c) <= 'i') \
5207                      || ('j' <= (c) && (c) <= 'r') \
5208                      || ('s' <= (c) && (c) <= 'z'))
5209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5210 #endif
5211
5212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213 int
5214 main ()
5215 {
5216   int i;
5217   for (i = 0; i < 256; i++)
5218     if (XOR (islower (i), ISLOWER (i))
5219         || toupper (i) != TOUPPER (i))
5220       return 2;
5221   return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest$ac_exeext
5225 if { (ac_try="$ac_link"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_link") 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5235   { (case "(($ac_try" in
5236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237   *) ac_try_echo=$ac_try;;
5238 esac
5239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240   (eval "$ac_try") 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   :
5245 else
5246   echo "$as_me: program exited with status $ac_status" >&5
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ( exit $ac_status )
5251 ac_cv_header_stdc=no
5252 fi
5253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5254 fi
5255
5256
5257 fi
5258 fi
5259 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5260 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5261 if test $ac_cv_header_stdc = yes; then
5262
5263 cat >>confdefs.h <<\_ACEOF
5264 #define STDC_HEADERS 1
5265 _ACEOF
5266
5267 fi
5268
5269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5280                   inttypes.h stdint.h unistd.h
5281 do
5282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294 $ac_includes_default
5295
5296 #include <$ac_header>
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5300 case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305   (eval "$ac_compile") 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } && {
5312          test -z "$ac_c_werror_flag" ||
5313          test ! -s conftest.err
5314        } && test -s conftest.$ac_objext; then
5315   eval "$as_ac_Header=yes"
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320         eval "$as_ac_Header=no"
5321 fi
5322
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 ac_res=`eval echo '${'$as_ac_Header'}'`
5326                { echo "$as_me:$LINENO: result: $ac_res" >&5
5327 echo "${ECHO_T}$ac_res" >&6; }
5328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5329   cat >>confdefs.h <<_ACEOF
5330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5331 _ACEOF
5332
5333 fi
5334
5335 done
5336
5337
5338
5339 for ac_header in dlfcn.h
5340 do
5341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 fi
5348 ac_res=`eval echo '${'$as_ac_Header'}'`
5349                { echo "$as_me:$LINENO: result: $ac_res" >&5
5350 echo "${ECHO_T}$ac_res" >&6; }
5351 else
5352   # Is the header compilable?
5353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h.  */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h.  */
5361 $ac_includes_default
5362 #include <$ac_header>
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5366 case "(($ac_try" in
5367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368   *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371   (eval "$ac_compile") 2>conftest.er1
5372   ac_status=$?
5373   grep -v '^ *+' conftest.er1 >conftest.err
5374   rm -f conftest.er1
5375   cat conftest.err >&5
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } && {
5378          test -z "$ac_c_werror_flag" ||
5379          test ! -s conftest.err
5380        } && test -s conftest.$ac_objext; then
5381   ac_header_compiler=yes
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386         ac_header_compiler=no
5387 fi
5388
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5391 echo "${ECHO_T}$ac_header_compiler" >&6; }
5392
5393 # Is the header present?
5394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 #include <$ac_header>
5403 _ACEOF
5404 if { (ac_try="$ac_cpp conftest.$ac_ext"
5405 case "(($ac_try" in
5406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407   *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } >/dev/null && {
5417          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5418          test ! -s conftest.err
5419        }; then
5420   ac_header_preproc=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425   ac_header_preproc=no
5426 fi
5427
5428 rm -f conftest.err conftest.$ac_ext
5429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430 echo "${ECHO_T}$ac_header_preproc" >&6; }
5431
5432 # So?  What about this header?
5433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5434   yes:no: )
5435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5439     ac_header_preproc=yes
5440     ;;
5441   no:yes:* )
5442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5454     ( cat <<\_ASBOX
5455 ## -------------------------------------------------- ##
5456 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5457 ## -------------------------------------------------- ##
5458 _ASBOX
5459      ) | sed "s/^/$as_me: WARNING:     /" >&2
5460     ;;
5461 esac
5462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   eval "$as_ac_Header=\$ac_header_preproc"
5468 fi
5469 ac_res=`eval echo '${'$as_ac_Header'}'`
5470                { echo "$as_me:$LINENO: result: $ac_res" >&5
5471 echo "${ECHO_T}$ac_res" >&6; }
5472
5473 fi
5474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5475   cat >>confdefs.h <<_ACEOF
5476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5478
5479 fi
5480
5481 done
5482
5483 ac_ext=cpp
5484 ac_cpp='$CXXCPP $CPPFLAGS'
5485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488 if test -z "$CXX"; then
5489   if test -n "$CCC"; then
5490     CXX=$CCC
5491   else
5492     if test -n "$ac_tool_prefix"; then
5493   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5494   do
5495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_CXX+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   if test -n "$CXX"; then
5503   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510   for ac_exec_ext in '' $ac_executable_extensions; do
5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 CXX=$ac_cv_prog_CXX
5523 if test -n "$CXX"; then
5524   { echo "$as_me:$LINENO: result: $CXX" >&5
5525 echo "${ECHO_T}$CXX" >&6; }
5526 else
5527   { echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6; }
5529 fi
5530
5531
5532     test -n "$CXX" && break
5533   done
5534 fi
5535 if test -z "$CXX"; then
5536   ac_ct_CXX=$CXX
5537   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5538 do
5539   # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   if test -n "$ac_ct_CXX"; then
5547   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556     ac_cv_prog_ac_ct_CXX="$ac_prog"
5557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5567 if test -n "$ac_ct_CXX"; then
5568   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5569 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5570 else
5571   { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5573 fi
5574
5575
5576   test -n "$ac_ct_CXX" && break
5577 done
5578
5579   if test "x$ac_ct_CXX" = x; then
5580     CXX="g++"
5581   else
5582     case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5585 whose name does not start with the host triplet.  If you think this
5586 configuration is useful to you, please write to autoconf@gnu.org." >&5
5587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5588 whose name does not start with the host triplet.  If you think this
5589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592     CXX=$ac_ct_CXX
5593   fi
5594 fi
5595
5596   fi
5597 fi
5598 # Provide some information about the compiler.
5599 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5600 ac_compiler=`set X $ac_compile; echo $2`
5601 { (ac_try="$ac_compiler --version >&5"
5602 case "(($ac_try" in
5603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604   *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607   (eval "$ac_compiler --version >&5") 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }
5611 { (ac_try="$ac_compiler -v >&5"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617   (eval "$ac_compiler -v >&5") 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }
5621 { (ac_try="$ac_compiler -V >&5"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_compiler -V >&5") 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); }
5631
5632 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647 #ifndef __GNUC__
5648        choke me
5649 #endif
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_compile") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && {
5669          test -z "$ac_cxx_werror_flag" ||
5670          test ! -s conftest.err
5671        } && test -s conftest.$ac_objext; then
5672   ac_compiler_gnu=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677         ac_compiler_gnu=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5682
5683 fi
5684 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5686 GXX=`test $ac_compiler_gnu = yes && echo yes`
5687 ac_test_CXXFLAGS=${CXXFLAGS+set}
5688 ac_save_CXXFLAGS=$CXXFLAGS
5689 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5690 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5691 if test "${ac_cv_prog_cxx_g+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5695    ac_cxx_werror_flag=yes
5696    ac_cv_prog_cxx_g=no
5697    CXXFLAGS="-g"
5698    cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704
5705 int
5706 main ()
5707 {
5708
5709   ;
5710   return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_compile") 2>conftest.er1
5721   ac_status=$?
5722   grep -v '^ *+' conftest.er1 >conftest.err
5723   rm -f conftest.er1
5724   cat conftest.err >&5
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } && {
5727          test -z "$ac_cxx_werror_flag" ||
5728          test ! -s conftest.err
5729        } && test -s conftest.$ac_objext; then
5730   ac_cv_prog_cxx_g=yes
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735         CXXFLAGS=""
5736       cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742
5743 int
5744 main ()
5745 {
5746
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } && {
5765          test -z "$ac_cxx_werror_flag" ||
5766          test ! -s conftest.err
5767        } && test -s conftest.$ac_objext; then
5768   :
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5774          CXXFLAGS="-g"
5775          cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781
5782 int
5783 main ()
5784 {
5785
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794   *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797   (eval "$ac_compile") 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } && {
5804          test -z "$ac_cxx_werror_flag" ||
5805          test ! -s conftest.err
5806        } && test -s conftest.$ac_objext; then
5807   ac_cv_prog_cxx_g=yes
5808 else
5809   echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812
5813 fi
5814
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 fi
5817
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5823 fi
5824 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5826 if test "$ac_test_CXXFLAGS" = set; then
5827   CXXFLAGS=$ac_save_CXXFLAGS
5828 elif test $ac_cv_prog_cxx_g = yes; then
5829   if test "$GXX" = yes; then
5830     CXXFLAGS="-g -O2"
5831   else
5832     CXXFLAGS="-g"
5833   fi
5834 else
5835   if test "$GXX" = yes; then
5836     CXXFLAGS="-O2"
5837   else
5838     CXXFLAGS=
5839   fi
5840 fi
5841 ac_ext=cpp
5842 ac_cpp='$CXXCPP $CPPFLAGS'
5843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5846
5847 depcc="$CXX"  am_compiler_list=
5848
5849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5851 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5855   # We make a subdir and do the tests there.  Otherwise we can end up
5856   # making bogus files that we don't know about and never remove.  For
5857   # instance it was reported that on HP-UX the gcc test will end up
5858   # making a dummy file named `D' -- because `-MD' means `put the output
5859   # in D'.
5860   mkdir conftest.dir
5861   # Copy depcomp to subdir because otherwise we won't find it if we're
5862   # using a relative directory.
5863   cp "$am_depcomp" conftest.dir
5864   cd conftest.dir
5865   # We will build objects and dependencies in a subdirectory because
5866   # it helps to detect inapplicable dependency modes.  For instance
5867   # both Tru64's cc and ICC support -MD to output dependencies as a
5868   # side effect of compilation, but ICC will put the dependencies in
5869   # the current directory while Tru64 will put them in the object
5870   # directory.
5871   mkdir sub
5872
5873   am_cv_CXX_dependencies_compiler_type=none
5874   if test "$am_compiler_list" = ""; then
5875      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5876   fi
5877   for depmode in $am_compiler_list; do
5878     # Setup a source with many dependencies, because some compilers
5879     # like to wrap large dependency lists on column 80 (with \), and
5880     # we should not choose a depcomp mode which is confused by this.
5881     #
5882     # We need to recreate these files for each test, as the compiler may
5883     # overwrite some of them when testing with obscure command lines.
5884     # This happens at least with the AIX C compiler.
5885     : > sub/conftest.c
5886     for i in 1 2 3 4 5 6; do
5887       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5888       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5889       # Solaris 8's {/usr,}/bin/sh.
5890       touch sub/conftst$i.h
5891     done
5892     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5893
5894     case $depmode in
5895     nosideeffect)
5896       # after this tag, mechanisms are not by side-effect, so they'll
5897       # only be used when explicitly requested
5898       if test "x$enable_dependency_tracking" = xyes; then
5899         continue
5900       else
5901         break
5902       fi
5903       ;;
5904     none) break ;;
5905     esac
5906     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5907     # mode.  It turns out that the SunPro C++ compiler does not properly
5908     # handle `-M -o', and we need to detect this.
5909     if depmode=$depmode \
5910        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5911        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5912        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5913          >/dev/null 2>conftest.err &&
5914        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5915        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5916        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5917       # icc doesn't choke on unknown options, it will just issue warnings
5918       # or remarks (even with -Werror).  So we grep stderr for any message
5919       # that says an option was ignored or not supported.
5920       # When given -MP, icc 7.0 and 7.1 complain thusly:
5921       #   icc: Command line warning: ignoring option '-M'; no argument required
5922       # The diagnosis changed in icc 8.0:
5923       #   icc: Command line remark: option '-MP' not supported
5924       if (grep 'ignoring option' conftest.err ||
5925           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5926         am_cv_CXX_dependencies_compiler_type=$depmode
5927         break
5928       fi
5929     fi
5930   done
5931
5932   cd ..
5933   rm -rf conftest.dir
5934 else
5935   am_cv_CXX_dependencies_compiler_type=none
5936 fi
5937
5938 fi
5939 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5940 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5941 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5942
5943
5944
5945 if
5946   test "x$enable_dependency_tracking" != xno \
5947   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5948   am__fastdepCXX_TRUE=
5949   am__fastdepCXX_FALSE='#'
5950 else
5951   am__fastdepCXX_TRUE='#'
5952   am__fastdepCXX_FALSE=
5953 fi
5954
5955
5956
5957
5958 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5959     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5960     (test "X$CXX" != "Xg++"))) ; then
5961   ac_ext=cpp
5962 ac_cpp='$CXXCPP $CPPFLAGS'
5963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5966 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5967 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5968 if test -z "$CXXCPP"; then
5969   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972       # Double quotes because CXXCPP needs to be expanded
5973     for CXXCPP in "$CXX -E" "/lib/cpp"
5974     do
5975       ac_preproc_ok=false
5976 for ac_cxx_preproc_warn_flag in '' yes
5977 do
5978   # Use a header file that comes with gcc, so configuring glibc
5979   # with a fresh cross-compiler works.
5980   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5981   # <limits.h> exists even on freestanding compilers.
5982   # On the NeXT, cc -E runs the code through the compiler's parser,
5983   # not just through cpp. "Syntax error" is here to catch this case.
5984   cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h.  */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h.  */
5990 #ifdef __STDC__
5991 # include <limits.h>
5992 #else
5993 # include <assert.h>
5994 #endif
5995                      Syntax error
5996 _ACEOF
5997 if { (ac_try="$ac_cpp conftest.$ac_ext"
5998 case "(($ac_try" in
5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000   *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6004   ac_status=$?
6005   grep -v '^ *+' conftest.er1 >conftest.err
6006   rm -f conftest.er1
6007   cat conftest.err >&5
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); } >/dev/null && {
6010          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6011          test ! -s conftest.err
6012        }; then
6013   :
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018   # Broken: fails on valid input.
6019 continue
6020 fi
6021
6022 rm -f conftest.err conftest.$ac_ext
6023
6024   # OK, works on sane cases.  Now check whether nonexistent headers
6025   # can be detected and how.
6026   cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 #include <ac_nonexistent.h>
6033 _ACEOF
6034 if { (ac_try="$ac_cpp conftest.$ac_ext"
6035 case "(($ac_try" in
6036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037   *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } >/dev/null && {
6047          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6048          test ! -s conftest.err
6049        }; then
6050   # Broken: success on invalid input.
6051 continue
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056   # Passes both tests.
6057 ac_preproc_ok=:
6058 break
6059 fi
6060
6061 rm -f conftest.err conftest.$ac_ext
6062
6063 done
6064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065 rm -f conftest.err conftest.$ac_ext
6066 if $ac_preproc_ok; then
6067   break
6068 fi
6069
6070     done
6071     ac_cv_prog_CXXCPP=$CXXCPP
6072
6073 fi
6074   CXXCPP=$ac_cv_prog_CXXCPP
6075 else
6076   ac_cv_prog_CXXCPP=$CXXCPP
6077 fi
6078 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6079 echo "${ECHO_T}$CXXCPP" >&6; }
6080 ac_preproc_ok=false
6081 for ac_cxx_preproc_warn_flag in '' yes
6082 do
6083   # Use a header file that comes with gcc, so configuring glibc
6084   # with a fresh cross-compiler works.
6085   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086   # <limits.h> exists even on freestanding compilers.
6087   # On the NeXT, cc -E runs the code through the compiler's parser,
6088   # not just through cpp. "Syntax error" is here to catch this case.
6089   cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h.  */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h.  */
6095 #ifdef __STDC__
6096 # include <limits.h>
6097 #else
6098 # include <assert.h>
6099 #endif
6100                      Syntax error
6101 _ACEOF
6102 if { (ac_try="$ac_cpp conftest.$ac_ext"
6103 case "(($ac_try" in
6104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105   *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null && {
6115          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6116          test ! -s conftest.err
6117        }; then
6118   :
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123   # Broken: fails on valid input.
6124 continue
6125 fi
6126
6127 rm -f conftest.err conftest.$ac_ext
6128
6129   # OK, works on sane cases.  Now check whether nonexistent headers
6130   # can be detected and how.
6131   cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h.  */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h.  */
6137 #include <ac_nonexistent.h>
6138 _ACEOF
6139 if { (ac_try="$ac_cpp conftest.$ac_ext"
6140 case "(($ac_try" in
6141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142   *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } >/dev/null && {
6152          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6153          test ! -s conftest.err
6154        }; then
6155   # Broken: success on invalid input.
6156 continue
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161   # Passes both tests.
6162 ac_preproc_ok=:
6163 break
6164 fi
6165
6166 rm -f conftest.err conftest.$ac_ext
6167
6168 done
6169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6170 rm -f conftest.err conftest.$ac_ext
6171 if $ac_preproc_ok; then
6172   :
6173 else
6174   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6177 See \`config.log' for more details." >&2;}
6178    { (exit 1); exit 1; }; }
6179 fi
6180
6181 ac_ext=cpp
6182 ac_cpp='$CXXCPP $CPPFLAGS'
6183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6186
6187 fi
6188
6189
6190 ac_ext=f
6191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6194 if test -n "$ac_tool_prefix"; then
6195   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
6196   do
6197     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_F77+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   if test -n "$F77"; then
6205   ac_cv_prog_F77="$F77" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212   for ac_exec_ext in '' $ac_executable_extensions; do
6213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 F77=$ac_cv_prog_F77
6225 if test -n "$F77"; then
6226   { echo "$as_me:$LINENO: result: $F77" >&5
6227 echo "${ECHO_T}$F77" >&6; }
6228 else
6229   { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6231 fi
6232
6233
6234     test -n "$F77" && break
6235   done
6236 fi
6237 if test -z "$F77"; then
6238   ac_ct_F77=$F77
6239   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
6240 do
6241   # Extract the first word of "$ac_prog", so it can be a program name with args.
6242 set dummy $ac_prog; ac_word=$2
6243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   if test -n "$ac_ct_F77"; then
6249   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256   for ac_exec_ext in '' $ac_executable_extensions; do
6257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258     ac_cv_prog_ac_ct_F77="$ac_prog"
6259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6269 if test -n "$ac_ct_F77"; then
6270   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6271 echo "${ECHO_T}$ac_ct_F77" >&6; }
6272 else
6273   { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6275 fi
6276
6277
6278   test -n "$ac_ct_F77" && break
6279 done
6280
6281   if test "x$ac_ct_F77" = x; then
6282     F77=""
6283   else
6284     case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287 whose name does not start with the host triplet.  If you think this
6288 configuration is useful to you, please write to autoconf@gnu.org." >&5
6289 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet.  If you think this
6291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294     F77=$ac_ct_F77
6295   fi
6296 fi
6297
6298
6299 # Provide some information about the compiler.
6300 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6301 ac_compiler=`set X $ac_compile; echo $2`
6302 { (ac_try="$ac_compiler --version >&5"
6303 case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$ac_compiler --version >&5") 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }
6312 { (ac_try="$ac_compiler -v >&5"
6313 case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318   (eval "$ac_compiler -v >&5") 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }
6322 { (ac_try="$ac_compiler -V >&5"
6323 case "(($ac_try" in
6324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325   *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328   (eval "$ac_compiler -V >&5") 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); }
6332 rm -f a.out
6333
6334 # If we don't use `.F' as extension, the preprocessor is not run on the
6335 # input file.  (Note that this only needs to work for GNU compilers.)
6336 ac_save_ext=$ac_ext
6337 ac_ext=F
6338 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6339 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6340 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   cat >conftest.$ac_ext <<_ACEOF
6344       program main
6345 #ifndef __GNUC__
6346        choke me
6347 #endif
6348
6349       end
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_compile") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_f77_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest.$ac_objext; then
6368   ac_compiler_gnu=yes
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373         ac_compiler_gnu=no
6374 fi
6375
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6378
6379 fi
6380 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6381 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6382 ac_ext=$ac_save_ext
6383 ac_test_FFLAGS=${FFLAGS+set}
6384 ac_save_FFLAGS=$FFLAGS
6385 FFLAGS=
6386 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6387 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_f77_g+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   FFLAGS=-g
6392 cat >conftest.$ac_ext <<_ACEOF
6393       program main
6394
6395       end
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6399 case "(($ac_try" in
6400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401   *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404   (eval "$ac_compile") 2>conftest.er1
6405   ac_status=$?
6406   grep -v '^ *+' conftest.er1 >conftest.err
6407   rm -f conftest.er1
6408   cat conftest.err >&5
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } && {
6411          test -z "$ac_f77_werror_flag" ||
6412          test ! -s conftest.err
6413        } && test -s conftest.$ac_objext; then
6414   ac_cv_prog_f77_g=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419         ac_cv_prog_f77_g=no
6420 fi
6421
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
6424 fi
6425 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6426 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6427 if test "$ac_test_FFLAGS" = set; then
6428   FFLAGS=$ac_save_FFLAGS
6429 elif test $ac_cv_prog_f77_g = yes; then
6430   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6431     FFLAGS="-g -O2"
6432   else
6433     FFLAGS="-g"
6434   fi
6435 else
6436   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6437     FFLAGS="-O2"
6438   else
6439     FFLAGS=
6440   fi
6441 fi
6442
6443 G77=`test $ac_compiler_gnu = yes && echo yes`
6444 ac_ext=c
6445 ac_cpp='$CPP $CPPFLAGS'
6446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449
6450
6451
6452 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6453
6454 # find the maximum length of command line arguments
6455 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6456 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460     i=0
6461   teststring="ABCD"
6462
6463   case $build_os in
6464   msdosdjgpp*)
6465     # On DJGPP, this test can blow up pretty badly due to problems in libc
6466     # (any single argument exceeding 2000 bytes causes a buffer overrun
6467     # during glob expansion).  Even if it were fixed, the result of this
6468     # check would be larger than it should be.
6469     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6470     ;;
6471
6472   gnu*)
6473     # Under GNU Hurd, this test is not required because there is
6474     # no limit to the length of command line arguments.
6475     # Libtool will interpret -1 as no limit whatsoever
6476     lt_cv_sys_max_cmd_len=-1;
6477     ;;
6478
6479   cygwin* | mingw*)
6480     # On Win9x/ME, this test blows up -- it succeeds, but takes
6481     # about 5 minutes as the teststring grows exponentially.
6482     # Worse, since 9x/ME are not pre-emptively multitasking,
6483     # you end up with a "frozen" computer, even though with patience
6484     # the test eventually succeeds (with a max line length of 256k).
6485     # Instead, let's just punt: use the minimum linelength reported by
6486     # all of the supported platforms: 8192 (on NT/2K/XP).
6487     lt_cv_sys_max_cmd_len=8192;
6488     ;;
6489
6490   amigaos*)
6491     # On AmigaOS with pdksh, this test takes hours, literally.
6492     # So we just punt and use a minimum line length of 8192.
6493     lt_cv_sys_max_cmd_len=8192;
6494     ;;
6495
6496   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6497     # This has been around since 386BSD, at least.  Likely further.
6498     if test -x /sbin/sysctl; then
6499       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6500     elif test -x /usr/sbin/sysctl; then
6501       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6502     else
6503       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6504     fi
6505     # And add a safety zone
6506     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6507     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6508     ;;
6509
6510   interix*)
6511     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6512     lt_cv_sys_max_cmd_len=196608
6513     ;;
6514
6515   osf*)
6516     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6517     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6518     # nice to cause kernel panics so lets avoid the loop below.
6519     # First set a reasonable default.
6520     lt_cv_sys_max_cmd_len=16384
6521     #
6522     if test -x /sbin/sysconfig; then
6523       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6524         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6525       esac
6526     fi
6527     ;;
6528   sco3.2v5*)
6529     lt_cv_sys_max_cmd_len=102400
6530     ;;
6531   sysv5* | sco5v6* | sysv4.2uw2*)
6532     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6533     if test -n "$kargmax"; then
6534       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6535     else
6536       lt_cv_sys_max_cmd_len=32768
6537     fi
6538     ;;
6539   *)
6540     # If test is not a shell built-in, we'll probably end up computing a
6541     # maximum length that is only half of the actual maximum length, but
6542     # we can't tell.
6543     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6544     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6545                = "XX$teststring") >/dev/null 2>&1 &&
6546             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6547             lt_cv_sys_max_cmd_len=$new_result &&
6548             test $i != 17 # 1/2 MB should be enough
6549     do
6550       i=`expr $i + 1`
6551       teststring=$teststring$teststring
6552     done
6553     teststring=
6554     # Add a significant safety factor because C++ compilers can tack on massive
6555     # amounts of additional arguments before passing them to the linker.
6556     # It appears as though 1/2 is a usable value.
6557     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6558     ;;
6559   esac
6560
6561 fi
6562
6563 if test -n $lt_cv_sys_max_cmd_len ; then
6564   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6565 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6566 else
6567   { echo "$as_me:$LINENO: result: none" >&5
6568 echo "${ECHO_T}none" >&6; }
6569 fi
6570
6571
6572
6573
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6576 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6577 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6583
6584 # Character class describing NM global symbol codes.
6585 symcode='[BCDEGRST]'
6586
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6589
6590 # Transform an extracted symbol line into a proper C declaration
6591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6592
6593 # Transform an extracted symbol line into symbol name and symbol address
6594 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'"
6595
6596 # Define system-specific variables.
6597 case $host_os in
6598 aix*)
6599   symcode='[BCDT]'
6600   ;;
6601 cygwin* | mingw* | pw32*)
6602   symcode='[ABCDGISTW]'
6603   ;;
6604 hpux*) # Its linker distinguishes data from code symbols
6605   if test "$host_cpu" = ia64; then
6606     symcode='[ABCDEGRST]'
6607   fi
6608   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6609   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'"
6610   ;;
6611 linux* | k*bsd*-gnu)
6612   if test "$host_cpu" = ia64; then
6613     symcode='[ABCDGIRSTW]'
6614     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6615     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'"
6616   fi
6617   ;;
6618 irix* | nonstopux*)
6619   symcode='[BCDEGRST]'
6620   ;;
6621 osf*)
6622   symcode='[BCDEGQRST]'
6623   ;;
6624 solaris*)
6625   symcode='[BDRT]'
6626   ;;
6627 sco3.2v5*)
6628   symcode='[DT]'
6629   ;;
6630 sysv4.2uw2*)
6631   symcode='[DT]'
6632   ;;
6633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6634   symcode='[ABDT]'
6635   ;;
6636 sysv4)
6637   symcode='[DFNSTU]'
6638   ;;
6639 esac
6640
6641 # Handle CRLF in mingw tool chain
6642 opt_cr=
6643 case $build_os in
6644 mingw*)
6645   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6646   ;;
6647 esac
6648
6649 # If we're using GNU nm, then use its standard symbol codes.
6650 case `$NM -V 2>&1` in
6651 *GNU* | *'with BFD'*)
6652   symcode='[ABCDGIRSTW]' ;;
6653 esac
6654
6655 # Try without a prefix undercore, then with it.
6656 for ac_symprfx in "" "_"; do
6657
6658   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6659   symxfrm="\\1 $ac_symprfx\\2 \\2"
6660
6661   # Write the raw and C identifiers.
6662   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6663
6664   # Check to see that the pipe works correctly.
6665   pipe_works=no
6666
6667   rm -f conftest*
6668   cat > conftest.$ac_ext <<EOF
6669 #ifdef __cplusplus
6670 extern "C" {
6671 #endif
6672 char nm_test_var;
6673 void nm_test_func(){}
6674 #ifdef __cplusplus
6675 }
6676 #endif
6677 int main(){nm_test_var='a';nm_test_func();return(0);}
6678 EOF
6679
6680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681   (eval $ac_compile) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; then
6685     # Now try to grab the symbols.
6686     nlist=conftest.nm
6687     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6688   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6689   ac_status=$?
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } && test -s "$nlist"; then
6692       # Try sorting and uniquifying the output.
6693       if sort "$nlist" | uniq > "$nlist"T; then
6694         mv -f "$nlist"T "$nlist"
6695       else
6696         rm -f "$nlist"T
6697       fi
6698
6699       # Make sure that we snagged all the symbols we need.
6700       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6701         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6702           cat <<EOF > conftest.$ac_ext
6703 #ifdef __cplusplus
6704 extern "C" {
6705 #endif
6706
6707 EOF
6708           # Now generate the symbol file.
6709           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6710
6711           cat <<EOF >> conftest.$ac_ext
6712 #if defined (__STDC__) && __STDC__
6713 # define lt_ptr_t void *
6714 #else
6715 # define lt_ptr_t char *
6716 # define const
6717 #endif
6718
6719 /* The mapping between symbol names and symbols. */
6720 const struct {
6721   const char *name;
6722   lt_ptr_t address;
6723 }
6724 lt_preloaded_symbols[] =
6725 {
6726 EOF
6727           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6728           cat <<\EOF >> conftest.$ac_ext
6729   {0, (lt_ptr_t) 0}
6730 };
6731
6732 #ifdef __cplusplus
6733 }
6734 #endif
6735 EOF
6736           # Now try linking the two files.
6737           mv conftest.$ac_objext conftstm.$ac_objext
6738           lt_save_LIBS="$LIBS"
6739           lt_save_CFLAGS="$CFLAGS"
6740           LIBS="conftstm.$ac_objext"
6741           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6742           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743   (eval $ac_link) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6747             pipe_works=yes
6748           fi
6749           LIBS="$lt_save_LIBS"
6750           CFLAGS="$lt_save_CFLAGS"
6751         else
6752           echo "cannot find nm_test_func in $nlist" >&5
6753         fi
6754       else
6755         echo "cannot find nm_test_var in $nlist" >&5
6756       fi
6757     else
6758       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6759     fi
6760   else
6761     echo "$progname: failed program was:" >&5
6762     cat conftest.$ac_ext >&5
6763   fi
6764   rm -f conftest* conftst*
6765
6766   # Do not use the global_symbol_pipe unless it works.
6767   if test "$pipe_works" = yes; then
6768     break
6769   else
6770     lt_cv_sys_global_symbol_pipe=
6771   fi
6772 done
6773
6774 fi
6775
6776 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6777   lt_cv_sys_global_symbol_to_cdecl=
6778 fi
6779 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6780   { echo "$as_me:$LINENO: result: failed" >&5
6781 echo "${ECHO_T}failed" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: ok" >&5
6784 echo "${ECHO_T}ok" >&6; }
6785 fi
6786
6787 { echo "$as_me:$LINENO: checking for objdir" >&5
6788 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6789 if test "${lt_cv_objdir+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   rm -f .libs 2>/dev/null
6793 mkdir .libs 2>/dev/null
6794 if test -d .libs; then
6795   lt_cv_objdir=.libs
6796 else
6797   # MS-DOS does not allow filenames that begin with a dot.
6798   lt_cv_objdir=_libs
6799 fi
6800 rmdir .libs 2>/dev/null
6801 fi
6802 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6803 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6804 objdir=$lt_cv_objdir
6805
6806
6807
6808
6809
6810 case $host_os in
6811 aix3*)
6812   # AIX sometimes has problems with the GCC collect2 program.  For some
6813   # reason, if we set the COLLECT_NAMES environment variable, the problems
6814   # vanish in a puff of smoke.
6815   if test "X${COLLECT_NAMES+set}" != Xset; then
6816     COLLECT_NAMES=
6817     export COLLECT_NAMES
6818   fi
6819   ;;
6820 esac
6821
6822 # Sed substitution that helps us do robust quoting.  It backslashifies
6823 # metacharacters that are still active within double-quoted strings.
6824 Xsed='sed -e 1s/^X//'
6825 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6826
6827 # Same as above, but do not quote variable references.
6828 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6829
6830 # Sed substitution to delay expansion of an escaped shell variable in a
6831 # double_quote_subst'ed string.
6832 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6833
6834 # Sed substitution to avoid accidental globbing in evaled expressions
6835 no_glob_subst='s/\*/\\\*/g'
6836
6837 # Constants:
6838 rm="rm -f"
6839
6840 # Global variables:
6841 default_ofile=libtool
6842 can_build_shared=yes
6843
6844 # All known linkers require a `.a' archive for static linking (except MSVC,
6845 # which needs '.lib').
6846 libext=a
6847 ltmain="$ac_aux_dir/ltmain.sh"
6848 ofile="$default_ofile"
6849 with_gnu_ld="$lt_cv_prog_gnu_ld"
6850
6851 if test -n "$ac_tool_prefix"; then
6852   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ar; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_AR+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$AR"; then
6860   ac_cv_prog_AR="$AR" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_AR="${ac_tool_prefix}ar"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 AR=$ac_cv_prog_AR
6880 if test -n "$AR"; then
6881   { echo "$as_me:$LINENO: result: $AR" >&5
6882 echo "${ECHO_T}$AR" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 fi
6890 if test -z "$ac_cv_prog_AR"; then
6891   ac_ct_AR=$AR
6892   # Extract the first word of "ar", so it can be a program name with args.
6893 set dummy ar; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   if test -n "$ac_ct_AR"; then
6900   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907   for ac_exec_ext in '' $ac_executable_extensions; do
6908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909     ac_cv_prog_ac_ct_AR="ar"
6910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6920 if test -n "$ac_ct_AR"; then
6921   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6922 echo "${ECHO_T}$ac_ct_AR" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928   if test "x$ac_ct_AR" = x; then
6929     AR="false"
6930   else
6931     case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6934 whose name does not start with the host triplet.  If you think this
6935 configuration is useful to you, please write to autoconf@gnu.org." >&5
6936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet.  If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941     AR=$ac_ct_AR
6942   fi
6943 else
6944   AR="$ac_cv_prog_AR"
6945 fi
6946
6947 if test -n "$ac_tool_prefix"; then
6948   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_RANLIB+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   if test -n "$RANLIB"; then
6956   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 RANLIB=$ac_cv_prog_RANLIB
6976 if test -n "$RANLIB"; then
6977   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6978 echo "${ECHO_T}$RANLIB" >&6; }
6979 else
6980   { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6982 fi
6983
6984
6985 fi
6986 if test -z "$ac_cv_prog_RANLIB"; then
6987   ac_ct_RANLIB=$RANLIB
6988   # Extract the first word of "ranlib", so it can be a program name with args.
6989 set dummy ranlib; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test -n "$ac_ct_RANLIB"; then
6996   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_ac_ct_RANLIB="ranlib"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7016 if test -n "$ac_ct_RANLIB"; then
7017   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7018 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024   if test "x$ac_ct_RANLIB" = x; then
7025     RANLIB=":"
7026   else
7027     case $cross_compiling:$ac_tool_warned in
7028 yes:)
7029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet.  If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&5
7032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet.  If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037     RANLIB=$ac_ct_RANLIB
7038   fi
7039 else
7040   RANLIB="$ac_cv_prog_RANLIB"
7041 fi
7042
7043 if test -n "$ac_tool_prefix"; then
7044   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7045 set dummy ${ac_tool_prefix}strip; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_prog_STRIP+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   if test -n "$STRIP"; then
7052   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 STRIP=$ac_cv_prog_STRIP
7072 if test -n "$STRIP"; then
7073   { echo "$as_me:$LINENO: result: $STRIP" >&5
7074 echo "${ECHO_T}$STRIP" >&6; }
7075 else
7076   { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7078 fi
7079
7080
7081 fi
7082 if test -z "$ac_cv_prog_STRIP"; then
7083   ac_ct_STRIP=$STRIP
7084   # Extract the first word of "strip", so it can be a program name with args.
7085 set dummy strip; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   if test -n "$ac_ct_STRIP"; then
7092   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_prog_ac_ct_STRIP="strip"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7112 if test -n "$ac_ct_STRIP"; then
7113   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7114 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7115 else
7116   { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120   if test "x$ac_ct_STRIP" = x; then
7121     STRIP=":"
7122   else
7123     case $cross_compiling:$ac_tool_warned in
7124 yes:)
7125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7126 whose name does not start with the host triplet.  If you think this
7127 configuration is useful to you, please write to autoconf@gnu.org." >&5
7128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7129 whose name does not start with the host triplet.  If you think this
7130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133     STRIP=$ac_ct_STRIP
7134   fi
7135 else
7136   STRIP="$ac_cv_prog_STRIP"
7137 fi
7138
7139
7140 old_CC="$CC"
7141 old_CFLAGS="$CFLAGS"
7142
7143 # Set sane defaults for various variables
7144 test -z "$AR" && AR=ar
7145 test -z "$AR_FLAGS" && AR_FLAGS=cru
7146 test -z "$AS" && AS=as
7147 test -z "$CC" && CC=cc
7148 test -z "$LTCC" && LTCC=$CC
7149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7150 test -z "$DLLTOOL" && DLLTOOL=dlltool
7151 test -z "$LD" && LD=ld
7152 test -z "$LN_S" && LN_S="ln -s"
7153 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7154 test -z "$NM" && NM=nm
7155 test -z "$SED" && SED=sed
7156 test -z "$OBJDUMP" && OBJDUMP=objdump
7157 test -z "$RANLIB" && RANLIB=:
7158 test -z "$STRIP" && STRIP=:
7159 test -z "$ac_objext" && ac_objext=o
7160
7161 # Determine commands to create old-style static archives.
7162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7163 old_postinstall_cmds='chmod 644 $oldlib'
7164 old_postuninstall_cmds=
7165
7166 if test -n "$RANLIB"; then
7167   case $host_os in
7168   openbsd*)
7169     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7170     ;;
7171   *)
7172     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7173     ;;
7174   esac
7175   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7176 fi
7177
7178 for cc_temp in $compiler""; do
7179   case $cc_temp in
7180     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7181     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7182     \-*) ;;
7183     *) break;;
7184   esac
7185 done
7186 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7187
7188
7189 # Only perform the check for file, if the check method requires it
7190 case $deplibs_check_method in
7191 file_magic*)
7192   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7193     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7194 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   case $MAGIC_CMD in
7199 [\\/*] |  ?:[\\/]*)
7200   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7201   ;;
7202 *)
7203   lt_save_MAGIC_CMD="$MAGIC_CMD"
7204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7205   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7206   for ac_dir in $ac_dummy; do
7207     IFS="$lt_save_ifs"
7208     test -z "$ac_dir" && ac_dir=.
7209     if test -f $ac_dir/${ac_tool_prefix}file; then
7210       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7211       if test -n "$file_magic_test_file"; then
7212         case $deplibs_check_method in
7213         "file_magic "*)
7214           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7215           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7217             $EGREP "$file_magic_regex" > /dev/null; then
7218             :
7219           else
7220             cat <<EOF 1>&2
7221
7222 *** Warning: the command libtool uses to detect shared libraries,
7223 *** $file_magic_cmd, produces output that libtool cannot recognize.
7224 *** The result is that libtool may fail to recognize shared libraries
7225 *** as such.  This will affect the creation of libtool libraries that
7226 *** depend on shared libraries, but programs linked with such libtool
7227 *** libraries will work regardless of this problem.  Nevertheless, you
7228 *** may want to report the problem to your system manager and/or to
7229 *** bug-libtool@gnu.org
7230
7231 EOF
7232           fi ;;
7233         esac
7234       fi
7235       break
7236     fi
7237   done
7238   IFS="$lt_save_ifs"
7239   MAGIC_CMD="$lt_save_MAGIC_CMD"
7240   ;;
7241 esac
7242 fi
7243
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if test -n "$MAGIC_CMD"; then
7246   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7247 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7248 else
7249   { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7251 fi
7252
7253 if test -z "$lt_cv_path_MAGIC_CMD"; then
7254   if test -n "$ac_tool_prefix"; then
7255     { echo "$as_me:$LINENO: checking for file" >&5
7256 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   case $MAGIC_CMD in
7261 [\\/*] |  ?:[\\/]*)
7262   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7263   ;;
7264 *)
7265   lt_save_MAGIC_CMD="$MAGIC_CMD"
7266   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7267   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7268   for ac_dir in $ac_dummy; do
7269     IFS="$lt_save_ifs"
7270     test -z "$ac_dir" && ac_dir=.
7271     if test -f $ac_dir/file; then
7272       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7273       if test -n "$file_magic_test_file"; then
7274         case $deplibs_check_method in
7275         "file_magic "*)
7276           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7277           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7278           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7279             $EGREP "$file_magic_regex" > /dev/null; then
7280             :
7281           else
7282             cat <<EOF 1>&2
7283
7284 *** Warning: the command libtool uses to detect shared libraries,
7285 *** $file_magic_cmd, produces output that libtool cannot recognize.
7286 *** The result is that libtool may fail to recognize shared libraries
7287 *** as such.  This will affect the creation of libtool libraries that
7288 *** depend on shared libraries, but programs linked with such libtool
7289 *** libraries will work regardless of this problem.  Nevertheless, you
7290 *** may want to report the problem to your system manager and/or to
7291 *** bug-libtool@gnu.org
7292
7293 EOF
7294           fi ;;
7295         esac
7296       fi
7297       break
7298     fi
7299   done
7300   IFS="$lt_save_ifs"
7301   MAGIC_CMD="$lt_save_MAGIC_CMD"
7302   ;;
7303 esac
7304 fi
7305
7306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7307 if test -n "$MAGIC_CMD"; then
7308   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7309 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7310 else
7311   { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7313 fi
7314
7315   else
7316     MAGIC_CMD=:
7317   fi
7318 fi
7319
7320   fi
7321   ;;
7322 esac
7323
7324 enable_dlopen=no
7325 enable_win32_dll=yes
7326
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then
7329   enableval=$enable_libtool_lock;
7330 fi
7331
7332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7333
7334
7335 # Check whether --with-pic was given.
7336 if test "${with_pic+set}" = set; then
7337   withval=$with_pic; pic_mode="$withval"
7338 else
7339   pic_mode=default
7340 fi
7341
7342 test -z "$pic_mode" && pic_mode=default
7343
7344 # Use C for the default configuration in the libtool script
7345 tagname=
7346 lt_save_CC="$CC"
7347 ac_ext=c
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352
7353
7354 # Source file extension for C test sources.
7355 ac_ext=c
7356
7357 # Object file extension for compiled C test sources.
7358 objext=o
7359 objext=$objext
7360
7361 # Code to be used in simple compile tests
7362 lt_simple_compile_test_code="int some_variable = 0;\n"
7363
7364 # Code to be used in simple link tests
7365 lt_simple_link_test_code='int main(){return(0);}\n'
7366
7367
7368 # If no C compiler was specified, use CC.
7369 LTCC=${LTCC-"$CC"}
7370
7371 # If no C compiler flags were specified, use CFLAGS.
7372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7373
7374 # Allow CC to be a program name with arguments.
7375 compiler=$CC
7376
7377
7378 # save warnings/boilerplate of simple test code
7379 ac_outfile=conftest.$ac_objext
7380 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7382 _lt_compiler_boilerplate=`cat conftest.err`
7383 $rm conftest*
7384
7385 ac_outfile=conftest.$ac_objext
7386 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7388 _lt_linker_boilerplate=`cat conftest.err`
7389 $rm conftest*
7390
7391
7392
7393 lt_prog_compiler_no_builtin_flag=
7394
7395 if test "$GCC" = yes; then
7396   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7397
7398
7399 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   lt_cv_prog_compiler_rtti_exceptions=no
7405   ac_outfile=conftest.$ac_objext
7406    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7407    lt_compiler_flag="-fno-rtti -fno-exceptions"
7408    # Insert the option either (1) after the last *FLAGS variable, or
7409    # (2) before a word containing "conftest.", or (3) at the end.
7410    # Note that $ac_compile itself does not contain backslashes and begins
7411    # with a dollar sign (not a hyphen), so the echo should work correctly.
7412    # The option is referenced via a variable to avoid confusing sed.
7413    lt_compile=`echo "$ac_compile" | $SED \
7414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7416    -e 's:$: $lt_compiler_flag:'`
7417    (eval echo "\"\$as_me:7417: $lt_compile\"" >&5)
7418    (eval "$lt_compile" 2>conftest.err)
7419    ac_status=$?
7420    cat conftest.err >&5
7421    echo "$as_me:7421: \$? = $ac_status" >&5
7422    if (exit $ac_status) && test -s "$ac_outfile"; then
7423      # The compiler can only warn and ignore the option if not recognized
7424      # So say no if there are warnings other than the usual output.
7425      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7426      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7428        lt_cv_prog_compiler_rtti_exceptions=yes
7429      fi
7430    fi
7431    $rm conftest*
7432
7433 fi
7434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7436
7437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7438     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7439 else
7440     :
7441 fi
7442
7443 fi
7444
7445 lt_prog_compiler_wl=
7446 lt_prog_compiler_pic=
7447 lt_prog_compiler_static=
7448
7449 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7451
7452   if test "$GCC" = yes; then
7453     lt_prog_compiler_wl='-Wl,'
7454     lt_prog_compiler_static='-static'
7455
7456     case $host_os in
7457       aix*)
7458       # All AIX code is PIC.
7459       if test "$host_cpu" = ia64; then
7460         # AIX 5 now supports IA64 processor
7461         lt_prog_compiler_static='-Bstatic'
7462       fi
7463       ;;
7464
7465     amigaos*)
7466       # FIXME: we need at least 68020 code to build shared libraries, but
7467       # adding the `-m68020' flag to GCC prevents building anything better,
7468       # like `-m68040'.
7469       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7470       ;;
7471
7472     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7473       # PIC is the default for these OSes.
7474       ;;
7475
7476     mingw* | pw32* | os2*)
7477       # This hack is so that the source file can tell whether it is being
7478       # built for inclusion in a dll (and should export symbols for example).
7479       lt_prog_compiler_pic='-DDLL_EXPORT'
7480       ;;
7481
7482     darwin* | rhapsody*)
7483       # PIC is the default on this platform
7484       # Common symbols not allowed in MH_DYLIB files
7485       lt_prog_compiler_pic='-fno-common'
7486       ;;
7487
7488     interix3*)
7489       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7490       # Instead, we relocate shared libraries at runtime.
7491       ;;
7492
7493     msdosdjgpp*)
7494       # Just because we use GCC doesn't mean we suddenly get shared libraries
7495       # on systems that don't support them.
7496       lt_prog_compiler_can_build_shared=no
7497       enable_shared=no
7498       ;;
7499
7500     sysv4*MP*)
7501       if test -d /usr/nec; then
7502         lt_prog_compiler_pic=-Kconform_pic
7503       fi
7504       ;;
7505
7506     hpux*)
7507       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7508       # not for PA HP-UX.
7509       case $host_cpu in
7510       hppa*64*|ia64*)
7511         # +Z the default
7512         ;;
7513       *)
7514         lt_prog_compiler_pic='-fPIC'
7515         ;;
7516       esac
7517       ;;
7518
7519     *)
7520       lt_prog_compiler_pic='-fPIC'
7521       ;;
7522     esac
7523   else
7524     # PORTME Check for flag to pass linker flags through the system compiler.
7525     case $host_os in
7526     aix*)
7527       lt_prog_compiler_wl='-Wl,'
7528       if test "$host_cpu" = ia64; then
7529         # AIX 5 now supports IA64 processor
7530         lt_prog_compiler_static='-Bstatic'
7531       else
7532         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7533       fi
7534       ;;
7535       darwin*)
7536         # PIC is the default on this platform
7537         # Common symbols not allowed in MH_DYLIB files
7538        case $cc_basename in
7539          xlc*)
7540          lt_prog_compiler_pic='-qnocommon'
7541          lt_prog_compiler_wl='-Wl,'
7542          ;;
7543        esac
7544        ;;
7545
7546     mingw* | pw32* | os2*)
7547       # This hack is so that the source file can tell whether it is being
7548       # built for inclusion in a dll (and should export symbols for example).
7549       lt_prog_compiler_pic='-DDLL_EXPORT'
7550       ;;
7551
7552     hpux9* | hpux10* | hpux11*)
7553       lt_prog_compiler_wl='-Wl,'
7554       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7555       # not for PA HP-UX.
7556       case $host_cpu in
7557       hppa*64*|ia64*)
7558         # +Z the default
7559         ;;
7560       *)
7561         lt_prog_compiler_pic='+Z'
7562         ;;
7563       esac
7564       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7565       lt_prog_compiler_static='${wl}-a ${wl}archive'
7566       ;;
7567
7568     irix5* | irix6* | nonstopux*)
7569       lt_prog_compiler_wl='-Wl,'
7570       # PIC (with -KPIC) is the default.
7571       lt_prog_compiler_static='-non_shared'
7572       ;;
7573
7574     newsos6)
7575       lt_prog_compiler_pic='-KPIC'
7576       lt_prog_compiler_static='-Bstatic'
7577       ;;
7578
7579     linux* | k*bsd*-gnu)
7580       case $cc_basename in
7581       icc* | ecc*)
7582         lt_prog_compiler_wl='-Wl,'
7583         lt_prog_compiler_pic='-KPIC'
7584         lt_prog_compiler_static='-static'
7585         ;;
7586       pgcc* | pgf77* | pgf90* | pgf95*)
7587         # Portland Group compilers (*not* the Pentium gcc compiler,
7588         # which looks to be a dead project)
7589         lt_prog_compiler_wl='-Wl,'
7590         lt_prog_compiler_pic='-fpic'
7591         lt_prog_compiler_static='-Bstatic'
7592         ;;
7593       ccc*)
7594         lt_prog_compiler_wl='-Wl,'
7595         # All Alpha code is PIC.
7596         lt_prog_compiler_static='-non_shared'
7597         ;;
7598       esac
7599       ;;
7600
7601     osf3* | osf4* | osf5*)
7602       lt_prog_compiler_wl='-Wl,'
7603       # All OSF/1 code is PIC.
7604       lt_prog_compiler_static='-non_shared'
7605       ;;
7606
7607     solaris*)
7608       lt_prog_compiler_pic='-KPIC'
7609       lt_prog_compiler_static='-Bstatic'
7610       case $cc_basename in
7611       f77* | f90* | f95*)
7612         lt_prog_compiler_wl='-Qoption ld ';;
7613       *)
7614         lt_prog_compiler_wl='-Wl,';;
7615       esac
7616       ;;
7617
7618     sunos4*)
7619       lt_prog_compiler_wl='-Qoption ld '
7620       lt_prog_compiler_pic='-PIC'
7621       lt_prog_compiler_static='-Bstatic'
7622       ;;
7623
7624     sysv4 | sysv4.2uw2* | sysv4.3*)
7625       lt_prog_compiler_wl='-Wl,'
7626       lt_prog_compiler_pic='-KPIC'
7627       lt_prog_compiler_static='-Bstatic'
7628       ;;
7629
7630     sysv4*MP*)
7631       if test -d /usr/nec ;then
7632         lt_prog_compiler_pic='-Kconform_pic'
7633         lt_prog_compiler_static='-Bstatic'
7634       fi
7635       ;;
7636
7637     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7638       lt_prog_compiler_wl='-Wl,'
7639       lt_prog_compiler_pic='-KPIC'
7640       lt_prog_compiler_static='-Bstatic'
7641       ;;
7642
7643     unicos*)
7644       lt_prog_compiler_wl='-Wl,'
7645       lt_prog_compiler_can_build_shared=no
7646       ;;
7647
7648     uts4*)
7649       lt_prog_compiler_pic='-pic'
7650       lt_prog_compiler_static='-Bstatic'
7651       ;;
7652
7653     *)
7654       lt_prog_compiler_can_build_shared=no
7655       ;;
7656     esac
7657   fi
7658
7659 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7660 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7661
7662 #
7663 # Check to make sure the PIC flag actually works.
7664 #
7665 if test -n "$lt_prog_compiler_pic"; then
7666
7667 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7669 if test "${lt_prog_compiler_pic_works+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   lt_prog_compiler_pic_works=no
7673   ac_outfile=conftest.$ac_objext
7674    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7675    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7676    # Insert the option either (1) after the last *FLAGS variable, or
7677    # (2) before a word containing "conftest.", or (3) at the end.
7678    # Note that $ac_compile itself does not contain backslashes and begins
7679    # with a dollar sign (not a hyphen), so the echo should work correctly.
7680    # The option is referenced via a variable to avoid confusing sed.
7681    lt_compile=`echo "$ac_compile" | $SED \
7682    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7684    -e 's:$: $lt_compiler_flag:'`
7685    (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
7686    (eval "$lt_compile" 2>conftest.err)
7687    ac_status=$?
7688    cat conftest.err >&5
7689    echo "$as_me:7689: \$? = $ac_status" >&5
7690    if (exit $ac_status) && test -s "$ac_outfile"; then
7691      # The compiler can only warn and ignore the option if not recognized
7692      # So say no if there are warnings other than the usual output.
7693      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7694      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7695      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7696        lt_prog_compiler_pic_works=yes
7697      fi
7698    fi
7699    $rm conftest*
7700
7701 fi
7702 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7703 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7704
7705 if test x"$lt_prog_compiler_pic_works" = xyes; then
7706     case $lt_prog_compiler_pic in
7707      "" | " "*) ;;
7708      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7709      esac
7710 else
7711     lt_prog_compiler_pic=
7712      lt_prog_compiler_can_build_shared=no
7713 fi
7714
7715 fi
7716 case $host_os in
7717   # For platforms which do not support PIC, -DPIC is meaningless:
7718   *djgpp*)
7719     lt_prog_compiler_pic=
7720     ;;
7721   *)
7722     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7723     ;;
7724 esac
7725
7726 #
7727 # Check to make sure the static flag actually works.
7728 #
7729 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7730 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7731 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7732 if test "${lt_prog_compiler_static_works+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   lt_prog_compiler_static_works=no
7736    save_LDFLAGS="$LDFLAGS"
7737    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7738    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7739    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7740      # The linker can only warn and ignore the option if not recognized
7741      # So say no if there are warnings
7742      if test -s conftest.err; then
7743        # Append any errors to the config.log.
7744        cat conftest.err 1>&5
7745        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7746        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747        if diff conftest.exp conftest.er2 >/dev/null; then
7748          lt_prog_compiler_static_works=yes
7749        fi
7750      else
7751        lt_prog_compiler_static_works=yes
7752      fi
7753    fi
7754    $rm conftest*
7755    LDFLAGS="$save_LDFLAGS"
7756
7757 fi
7758 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7759 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7760
7761 if test x"$lt_prog_compiler_static_works" = xyes; then
7762     :
7763 else
7764     lt_prog_compiler_static=
7765 fi
7766
7767
7768 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7770 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   lt_cv_prog_compiler_c_o=no
7774    $rm -r conftest 2>/dev/null
7775    mkdir conftest
7776    cd conftest
7777    mkdir out
7778    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7779
7780    lt_compiler_flag="-o out/conftest2.$ac_objext"
7781    # Insert the option either (1) after the last *FLAGS variable, or
7782    # (2) before a word containing "conftest.", or (3) at the end.
7783    # Note that $ac_compile itself does not contain backslashes and begins
7784    # with a dollar sign (not a hyphen), so the echo should work correctly.
7785    lt_compile=`echo "$ac_compile" | $SED \
7786    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7788    -e 's:$: $lt_compiler_flag:'`
7789    (eval echo "\"\$as_me:7789: $lt_compile\"" >&5)
7790    (eval "$lt_compile" 2>out/conftest.err)
7791    ac_status=$?
7792    cat out/conftest.err >&5
7793    echo "$as_me:7793: \$? = $ac_status" >&5
7794    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7795    then
7796      # The compiler can only warn and ignore the option if not recognized
7797      # So say no if there are warnings
7798      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7799      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7800      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7801        lt_cv_prog_compiler_c_o=yes
7802      fi
7803    fi
7804    chmod u+w . 2>&5
7805    $rm conftest*
7806    # SGI C++ compiler will create directory out/ii_files/ for
7807    # template instantiation
7808    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7809    $rm out/* && rmdir out
7810    cd ..
7811    rmdir conftest
7812    $rm conftest*
7813
7814 fi
7815 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7817
7818
7819 hard_links="nottested"
7820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7821   # do not overwrite the value of need_locks provided by the user
7822   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7823 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7824   hard_links=yes
7825   $rm conftest*
7826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7827   touch conftest.a
7828   ln conftest.a conftest.b 2>&5 || hard_links=no
7829   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7830   { echo "$as_me:$LINENO: result: $hard_links" >&5
7831 echo "${ECHO_T}$hard_links" >&6; }
7832   if test "$hard_links" = no; then
7833     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7834 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7835     need_locks=warn
7836   fi
7837 else
7838   need_locks=no
7839 fi
7840
7841 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7843
7844   runpath_var=
7845   allow_undefined_flag=
7846   enable_shared_with_static_runtimes=no
7847   archive_cmds=
7848   archive_expsym_cmds=
7849   old_archive_From_new_cmds=
7850   old_archive_from_expsyms_cmds=
7851   export_dynamic_flag_spec=
7852   whole_archive_flag_spec=
7853   thread_safe_flag_spec=
7854   hardcode_libdir_flag_spec=
7855   hardcode_libdir_flag_spec_ld=
7856   hardcode_libdir_separator=
7857   hardcode_direct=no
7858   hardcode_minus_L=no
7859   hardcode_shlibpath_var=unsupported
7860   link_all_deplibs=unknown
7861   hardcode_automatic=no
7862   module_cmds=
7863   module_expsym_cmds=
7864   always_export_symbols=no
7865   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7866   # include_expsyms should be a list of space-separated symbols to be *always*
7867   # included in the symbol list
7868   include_expsyms=
7869   # exclude_expsyms can be an extended regexp of symbols to exclude
7870   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7871   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7872   # as well as any symbol that contains `d'.
7873   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7874   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7875   # platforms (ab)use it in PIC code, but their linkers get confused if
7876   # the symbol is explicitly referenced.  Since portable code cannot
7877   # rely on this symbol name, it's probably fine to never include it in
7878   # preloaded symbol tables.
7879   extract_expsyms_cmds=
7880   # Just being paranoid about ensuring that cc_basename is set.
7881   for cc_temp in $compiler""; do
7882   case $cc_temp in
7883     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7884     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7885     \-*) ;;
7886     *) break;;
7887   esac
7888 done
7889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7890
7891   case $host_os in
7892   cygwin* | mingw* | pw32*)
7893     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7894     # When not using gcc, we currently assume that we are using
7895     # Microsoft Visual C++.
7896     if test "$GCC" != yes; then
7897       with_gnu_ld=no
7898     fi
7899     ;;
7900   interix*)
7901     # we just hope/assume this is gcc and not c89 (= MSVC++)
7902     with_gnu_ld=yes
7903     ;;
7904   openbsd*)
7905     with_gnu_ld=no
7906     ;;
7907   esac
7908
7909   ld_shlibs=yes
7910   if test "$with_gnu_ld" = yes; then
7911     # If archive_cmds runs LD, not CC, wlarc should be empty
7912     wlarc='${wl}'
7913
7914     # Set some defaults for GNU ld with shared library support. These
7915     # are reset later if shared libraries are not supported. Putting them
7916     # here allows them to be overridden if necessary.
7917     runpath_var=LD_RUN_PATH
7918     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7919     export_dynamic_flag_spec='${wl}--export-dynamic'
7920     # ancient GNU ld didn't support --whole-archive et. al.
7921     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7922         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7923       else
7924         whole_archive_flag_spec=
7925     fi
7926     supports_anon_versioning=no
7927     case `$LD -v 2>/dev/null` in
7928       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7929       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7930       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7931       *\ 2.11.*) ;; # other 2.11 versions
7932       *) supports_anon_versioning=yes ;;
7933     esac
7934
7935     # See if GNU ld supports shared libraries.
7936     case $host_os in
7937     aix3* | aix4* | aix5*)
7938       # On AIX/PPC, the GNU linker is very broken
7939       if test "$host_cpu" != ia64; then
7940         ld_shlibs=no
7941         cat <<EOF 1>&2
7942
7943 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7944 *** to be unable to reliably create shared libraries on AIX.
7945 *** Therefore, libtool is disabling shared libraries support.  If you
7946 *** really care for shared libraries, you may want to modify your PATH
7947 *** so that a non-GNU linker is found, and then restart.
7948
7949 EOF
7950       fi
7951       ;;
7952
7953     amigaos*)
7954       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)'
7955       hardcode_libdir_flag_spec='-L$libdir'
7956       hardcode_minus_L=yes
7957
7958       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7959       # that the semantics of dynamic libraries on AmigaOS, at least up
7960       # to version 4, is to share data among multiple programs linked
7961       # with the same dynamic library.  Since this doesn't match the
7962       # behavior of shared libraries on other platforms, we can't use
7963       # them.
7964       ld_shlibs=no
7965       ;;
7966
7967     beos*)
7968       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7969         allow_undefined_flag=unsupported
7970         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7971         # support --undefined.  This deserves some investigation.  FIXME
7972         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973       else
7974         ld_shlibs=no
7975       fi
7976       ;;
7977
7978     cygwin* | mingw* | pw32*)
7979       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7980       # as there is no search path for DLLs.
7981       hardcode_libdir_flag_spec='-L$libdir'
7982       allow_undefined_flag=unsupported
7983       always_export_symbols=no
7984       enable_shared_with_static_runtimes=yes
7985       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7986
7987       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7988         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7989         # If the export-symbols file already is a .def file (1st line
7990         # is EXPORTS), use it as is; otherwise, prepend...
7991         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7992           cp $export_symbols $output_objdir/$soname.def;
7993         else
7994           echo EXPORTS > $output_objdir/$soname.def;
7995           cat $export_symbols >> $output_objdir/$soname.def;
7996         fi~
7997         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7998       else
7999         ld_shlibs=no
8000       fi
8001       ;;
8002
8003     interix3*)
8004       hardcode_direct=no
8005       hardcode_shlibpath_var=no
8006       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8007       export_dynamic_flag_spec='${wl}-E'
8008       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8009       # Instead, shared libraries are loaded at an image base (0x10000000 by
8010       # default) and relocated if they conflict, which is a slow very memory
8011       # consuming and fragmenting process.  To avoid this, we pick a random,
8012       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8013       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8014       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8015       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'
8016       ;;
8017
8018     linux* | k*bsd*-gnu)
8019       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8020         tmp_addflag=
8021         case $cc_basename,$host_cpu in
8022         pgcc*)                          # Portland Group C compiler
8023           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'
8024           tmp_addflag=' $pic_flag'
8025           ;;
8026         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8027           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'
8028           tmp_addflag=' $pic_flag -Mnomain' ;;
8029         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8030           tmp_addflag=' -i_dynamic' ;;
8031         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8032           tmp_addflag=' -i_dynamic -nofor_main' ;;
8033         ifc* | ifort*)                  # Intel Fortran compiler
8034           tmp_addflag=' -nofor_main' ;;
8035         esac
8036         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8037
8038         if test $supports_anon_versioning = yes; then
8039           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8040   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8041   $echo "local: *; };" >> $output_objdir/$libname.ver~
8042           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8043         fi
8044         link_all_deplibs=no
8045       else
8046         ld_shlibs=no
8047       fi
8048       ;;
8049
8050     netbsd* | netbsdelf*-gnu)
8051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8052         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8053         wlarc=
8054       else
8055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8056         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8057       fi
8058       ;;
8059
8060     solaris*)
8061       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8062         ld_shlibs=no
8063         cat <<EOF 1>&2
8064
8065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8066 *** create shared libraries on Solaris systems.  Therefore, libtool
8067 *** is disabling shared libraries support.  We urge you to upgrade GNU
8068 *** binutils to release 2.9.1 or newer.  Another option is to modify
8069 *** your PATH or compiler configuration so that the native linker is
8070 *** used, and then restart.
8071
8072 EOF
8073       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8074         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076       else
8077         ld_shlibs=no
8078       fi
8079       ;;
8080
8081     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8082       case `$LD -v 2>&1` in
8083         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8084         ld_shlibs=no
8085         cat <<_LT_EOF 1>&2
8086
8087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8088 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8089 *** is disabling shared libraries support.  We urge you to upgrade GNU
8090 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8091 *** your PATH or compiler configuration so that the native linker is
8092 *** used, and then restart.
8093
8094 _LT_EOF
8095         ;;
8096         *)
8097           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8099             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8100             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8101           else
8102             ld_shlibs=no
8103           fi
8104         ;;
8105       esac
8106       ;;
8107
8108     sunos4*)
8109       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8110       wlarc=
8111       hardcode_direct=yes
8112       hardcode_shlibpath_var=no
8113       ;;
8114
8115     *)
8116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8117         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8119       else
8120         ld_shlibs=no
8121       fi
8122       ;;
8123     esac
8124
8125     if test "$ld_shlibs" = no; then
8126       runpath_var=
8127       hardcode_libdir_flag_spec=
8128       export_dynamic_flag_spec=
8129       whole_archive_flag_spec=
8130     fi
8131   else
8132     # PORTME fill in a description of your system's linker (not GNU ld)
8133     case $host_os in
8134     aix3*)
8135       allow_undefined_flag=unsupported
8136       always_export_symbols=yes
8137       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'
8138       # Note: this linker hardcodes the directories in LIBPATH if there
8139       # are no directories specified by -L.
8140       hardcode_minus_L=yes
8141       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8142         # Neither direct hardcoding nor static linking is supported with a
8143         # broken collect2.
8144         hardcode_direct=unsupported
8145       fi
8146       ;;
8147
8148     aix4* | aix5*)
8149       if test "$host_cpu" = ia64; then
8150         # On IA64, the linker does run time linking by default, so we don't
8151         # have to do anything special.
8152         aix_use_runtimelinking=no
8153         exp_sym_flag='-Bexport'
8154         no_entry_flag=""
8155       else
8156         # If we're using GNU nm, then we don't want the "-C" option.
8157         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8158         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8159           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'
8160         else
8161           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'
8162         fi
8163         aix_use_runtimelinking=no
8164
8165         # Test if we are trying to use run time linking or normal
8166         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8167         # need to do runtime linking.
8168         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8169           for ld_flag in $LDFLAGS; do
8170           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8171             aix_use_runtimelinking=yes
8172             break
8173           fi
8174           done
8175           ;;
8176         esac
8177
8178         exp_sym_flag='-bexport'
8179         no_entry_flag='-bnoentry'
8180       fi
8181
8182       # When large executables or shared objects are built, AIX ld can
8183       # have problems creating the table of contents.  If linking a library
8184       # or program results in "error TOC overflow" add -mminimal-toc to
8185       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8186       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8187
8188       archive_cmds=''
8189       hardcode_direct=yes
8190       hardcode_libdir_separator=':'
8191       link_all_deplibs=yes
8192
8193       if test "$GCC" = yes; then
8194         case $host_os in aix4.[012]|aix4.[012].*)
8195         # We only want to do this on AIX 4.2 and lower, the check
8196         # below for broken collect2 doesn't work under 4.3+
8197           collect2name=`${CC} -print-prog-name=collect2`
8198           if test -f "$collect2name" && \
8199            strings "$collect2name" | grep resolve_lib_name >/dev/null
8200           then
8201           # We have reworked collect2
8202           hardcode_direct=yes
8203           else
8204           # We have old collect2
8205           hardcode_direct=unsupported
8206           # It fails to find uninstalled libraries when the uninstalled
8207           # path is not listed in the libpath.  Setting hardcode_minus_L
8208           # to unsupported forces relinking
8209           hardcode_minus_L=yes
8210           hardcode_libdir_flag_spec='-L$libdir'
8211           hardcode_libdir_separator=
8212           fi
8213           ;;
8214         esac
8215         shared_flag='-shared'
8216         if test "$aix_use_runtimelinking" = yes; then
8217           shared_flag="$shared_flag "'${wl}-G'
8218         fi
8219       else
8220         # not using gcc
8221         if test "$host_cpu" = ia64; then
8222         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8223         # chokes on -Wl,-G. The following line is correct:
8224           shared_flag='-G'
8225         else
8226           if test "$aix_use_runtimelinking" = yes; then
8227             shared_flag='${wl}-G'
8228           else
8229             shared_flag='${wl}-bM:SRE'
8230           fi
8231         fi
8232       fi
8233
8234       # It seems that -bexpall does not export symbols beginning with
8235       # underscore (_), so it is better to generate a list of symbols to export.
8236       always_export_symbols=yes
8237       if test "$aix_use_runtimelinking" = yes; then
8238         # Warning - without using the other runtime loading flags (-brtl),
8239         # -berok will link without error, but may produce a broken library.
8240         allow_undefined_flag='-berok'
8241        # Determine the default libpath from the value encoded in an empty executable.
8242        cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248
8249 int
8250 main ()
8251 {
8252
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8259 case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_link") 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } && {
8271          test -z "$ac_c_werror_flag" ||
8272          test ! -s conftest.err
8273        } && test -s conftest$ac_exeext &&
8274        $as_test_x conftest$ac_exeext; then
8275
8276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8277 }'`
8278 # Check for a 64-bit object if we didn't find anything.
8279 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; }
8280 }'`; fi
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289       conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8291
8292        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293         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"
8294        else
8295         if test "$host_cpu" = ia64; then
8296           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8297           allow_undefined_flag="-z nodefs"
8298           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"
8299         else
8300          # Determine the default libpath from the value encoded in an empty executable.
8301          cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307
8308 int
8309 main ()
8310 {
8311
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_link") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } && {
8330          test -z "$ac_c_werror_flag" ||
8331          test ! -s conftest.err
8332        } && test -s conftest$ac_exeext &&
8333        $as_test_x conftest$ac_exeext; then
8334
8335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8336 }'`
8337 # Check for a 64-bit object if we didn't find anything.
8338 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; }
8339 }'`; fi
8340 else
8341   echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344
8345 fi
8346
8347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8348       conftest$ac_exeext conftest.$ac_ext
8349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8350
8351          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8352           # Warning - without using the other run time loading flags,
8353           # -berok will link without error, but may produce a broken library.
8354           no_undefined_flag=' ${wl}-bernotok'
8355           allow_undefined_flag=' ${wl}-berok'
8356           # Exported symbols can be pulled into shared objects from archives
8357           whole_archive_flag_spec='$convenience'
8358           archive_cmds_need_lc=yes
8359           # This is similar to how AIX traditionally builds its shared libraries.
8360           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'
8361         fi
8362       fi
8363       ;;
8364
8365     amigaos*)
8366       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)'
8367       hardcode_libdir_flag_spec='-L$libdir'
8368       hardcode_minus_L=yes
8369       # see comment about different semantics on the GNU ld section
8370       ld_shlibs=no
8371       ;;
8372
8373     bsdi[45]*)
8374       export_dynamic_flag_spec=-rdynamic
8375       ;;
8376
8377     cygwin* | mingw* | pw32*)
8378       # When not using gcc, we currently assume that we are using
8379       # Microsoft Visual C++.
8380       # hardcode_libdir_flag_spec is actually meaningless, as there is
8381       # no search path for DLLs.
8382       hardcode_libdir_flag_spec=' '
8383       allow_undefined_flag=unsupported
8384       # Tell ltmain to make .lib files, not .a files.
8385       libext=lib
8386       # Tell ltmain to make .dll files, not .so files.
8387       shrext_cmds=".dll"
8388       # FIXME: Setting linknames here is a bad hack.
8389       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8390       # The linker will automatically build a .lib file if we build a DLL.
8391       old_archive_From_new_cmds='true'
8392       # FIXME: Should let the user specify the lib program.
8393       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8394       fix_srcfile_path='`cygpath -w "$srcfile"`'
8395       enable_shared_with_static_runtimes=yes
8396       ;;
8397
8398     darwin* | rhapsody*)
8399       case $host_os in
8400         rhapsody* | darwin1.[012])
8401          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8402          ;;
8403        *) # Darwin 1.3 on
8404          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8405            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8406          else
8407            case ${MACOSX_DEPLOYMENT_TARGET} in
8408              10.[012])
8409                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8410                ;;
8411              10.*)
8412                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8413                ;;
8414            esac
8415          fi
8416          ;;
8417       esac
8418       archive_cmds_need_lc=no
8419       hardcode_direct=no
8420       hardcode_automatic=yes
8421       hardcode_shlibpath_var=unsupported
8422       whole_archive_flag_spec=''
8423       link_all_deplibs=yes
8424     if test "$GCC" = yes ; then
8425         output_verbose_link_cmd='echo'
8426         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8427       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8428       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8429       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}'
8430       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}'
8431     else
8432       case $cc_basename in
8433         xlc*)
8434          output_verbose_link_cmd='echo'
8435          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8436          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8437           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8438          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}'
8439           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}'
8440           ;;
8441        *)
8442          ld_shlibs=no
8443           ;;
8444       esac
8445     fi
8446       ;;
8447
8448     dgux*)
8449       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8450       hardcode_libdir_flag_spec='-L$libdir'
8451       hardcode_shlibpath_var=no
8452       ;;
8453
8454     freebsd1*)
8455       ld_shlibs=no
8456       ;;
8457
8458     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8459     # support.  Future versions do this automatically, but an explicit c++rt0.o
8460     # does not break anything, and helps significantly (at the cost of a little
8461     # extra space).
8462     freebsd2.2*)
8463       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8464       hardcode_libdir_flag_spec='-R$libdir'
8465       hardcode_direct=yes
8466       hardcode_shlibpath_var=no
8467       ;;
8468
8469     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8470     freebsd2*)
8471       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8472       hardcode_direct=yes
8473       hardcode_minus_L=yes
8474       hardcode_shlibpath_var=no
8475       ;;
8476
8477     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8478     freebsd* | dragonfly*)
8479       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8480       hardcode_libdir_flag_spec='-R$libdir'
8481       hardcode_direct=yes
8482       hardcode_shlibpath_var=no
8483       ;;
8484
8485     hpux9*)
8486       if test "$GCC" = yes; then
8487         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'
8488       else
8489         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'
8490       fi
8491       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8492       hardcode_libdir_separator=:
8493       hardcode_direct=yes
8494
8495       # hardcode_minus_L: Not really in the search PATH,
8496       # but as the default location of the library.
8497       hardcode_minus_L=yes
8498       export_dynamic_flag_spec='${wl}-E'
8499       ;;
8500
8501     hpux10*)
8502       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8503         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8504       else
8505         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8506       fi
8507       if test "$with_gnu_ld" = no; then
8508         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8509         hardcode_libdir_separator=:
8510
8511         hardcode_direct=yes
8512         export_dynamic_flag_spec='${wl}-E'
8513
8514         # hardcode_minus_L: Not really in the search PATH,
8515         # but as the default location of the library.
8516         hardcode_minus_L=yes
8517       fi
8518       ;;
8519
8520     hpux11*)
8521       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8522         case $host_cpu in
8523         hppa*64*)
8524           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525           ;;
8526         ia64*)
8527           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8528           ;;
8529         *)
8530           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8531           ;;
8532         esac
8533       else
8534         case $host_cpu in
8535         hppa*64*)
8536           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8537           ;;
8538         ia64*)
8539           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8540           ;;
8541         *)
8542           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8543           ;;
8544         esac
8545       fi
8546       if test "$with_gnu_ld" = no; then
8547         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8548         hardcode_libdir_separator=:
8549
8550         case $host_cpu in
8551         hppa*64*|ia64*)
8552           hardcode_libdir_flag_spec_ld='+b $libdir'
8553           hardcode_direct=no
8554           hardcode_shlibpath_var=no
8555           ;;
8556         *)
8557           hardcode_direct=yes
8558           export_dynamic_flag_spec='${wl}-E'
8559
8560           # hardcode_minus_L: Not really in the search PATH,
8561           # but as the default location of the library.
8562           hardcode_minus_L=yes
8563           ;;
8564         esac
8565       fi
8566       ;;
8567
8568     irix5* | irix6* | nonstopux*)
8569       if test "$GCC" = yes; then
8570         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'
8571       else
8572         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'
8573         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8574       fi
8575       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576       hardcode_libdir_separator=:
8577       link_all_deplibs=yes
8578       ;;
8579
8580     netbsd* | netbsdelf*-gnu)
8581       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8582         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8583       else
8584         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8585       fi
8586       hardcode_libdir_flag_spec='-R$libdir'
8587       hardcode_direct=yes
8588       hardcode_shlibpath_var=no
8589       ;;
8590
8591     newsos6)
8592       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8593       hardcode_direct=yes
8594       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595       hardcode_libdir_separator=:
8596       hardcode_shlibpath_var=no
8597       ;;
8598
8599     openbsd*)
8600       hardcode_direct=yes
8601       hardcode_shlibpath_var=no
8602       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8603         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8604         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8605         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606         export_dynamic_flag_spec='${wl}-E'
8607       else
8608        case $host_os in
8609          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8610            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8611            hardcode_libdir_flag_spec='-R$libdir'
8612            ;;
8613          *)
8614            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8615            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616            ;;
8617        esac
8618       fi
8619       ;;
8620
8621     os2*)
8622       hardcode_libdir_flag_spec='-L$libdir'
8623       hardcode_minus_L=yes
8624       allow_undefined_flag=unsupported
8625       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'
8626       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8627       ;;
8628
8629     osf3*)
8630       if test "$GCC" = yes; then
8631         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8632         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'
8633       else
8634         allow_undefined_flag=' -expect_unresolved \*'
8635         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'
8636       fi
8637       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638       hardcode_libdir_separator=:
8639       ;;
8640
8641     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8642       if test "$GCC" = yes; then
8643         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8644         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'
8645         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646       else
8647         allow_undefined_flag=' -expect_unresolved \*'
8648         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'
8649         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8650         $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'
8651
8652         # Both c and cxx compiler support -rpath directly
8653         hardcode_libdir_flag_spec='-rpath $libdir'
8654       fi
8655       hardcode_libdir_separator=:
8656       ;;
8657
8658     solaris*)
8659       no_undefined_flag=' -z text'
8660       if test "$GCC" = yes; then
8661         wlarc='${wl}'
8662         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8663         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8664           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8665       else
8666         wlarc=''
8667         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8669         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8670       fi
8671       hardcode_libdir_flag_spec='-R$libdir'
8672       hardcode_shlibpath_var=no
8673       case $host_os in
8674       solaris2.[0-5] | solaris2.[0-5].*) ;;
8675       *)
8676         # The compiler driver will combine linker options so we
8677         # cannot just pass the convience library names through
8678         # without $wl, iff we do not link with $LD.
8679         # Luckily, gcc supports the same syntax we need for Sun Studio.
8680         # Supported since Solaris 2.6 (maybe 2.5.1?)
8681         case $wlarc in
8682         '')
8683           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8684         *)
8685           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' ;;
8686         esac ;;
8687       esac
8688       link_all_deplibs=yes
8689       ;;
8690
8691     sunos4*)
8692       if test "x$host_vendor" = xsequent; then
8693         # Use $CC to link under sequent, because it throws in some extra .o
8694         # files that make .init and .fini sections work.
8695         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8696       else
8697         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8698       fi
8699       hardcode_libdir_flag_spec='-L$libdir'
8700       hardcode_direct=yes
8701       hardcode_minus_L=yes
8702       hardcode_shlibpath_var=no
8703       ;;
8704
8705     sysv4)
8706       case $host_vendor in
8707         sni)
8708           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709           hardcode_direct=yes # is this really true???
8710         ;;
8711         siemens)
8712           ## LD is ld it makes a PLAMLIB
8713           ## CC just makes a GrossModule.
8714           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8715           reload_cmds='$CC -r -o $output$reload_objs'
8716           hardcode_direct=no
8717         ;;
8718         motorola)
8719           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8721         ;;
8722       esac
8723       runpath_var='LD_RUN_PATH'
8724       hardcode_shlibpath_var=no
8725       ;;
8726
8727     sysv4.3*)
8728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729       hardcode_shlibpath_var=no
8730       export_dynamic_flag_spec='-Bexport'
8731       ;;
8732
8733     sysv4*MP*)
8734       if test -d /usr/nec; then
8735         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736         hardcode_shlibpath_var=no
8737         runpath_var=LD_RUN_PATH
8738         hardcode_runpath_var=yes
8739         ld_shlibs=yes
8740       fi
8741       ;;
8742
8743     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8744       no_undefined_flag='${wl}-z,text'
8745       archive_cmds_need_lc=no
8746       hardcode_shlibpath_var=no
8747       runpath_var='LD_RUN_PATH'
8748
8749       if test "$GCC" = yes; then
8750         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752       else
8753         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8755       fi
8756       ;;
8757
8758     sysv5* | sco3.2v5* | sco5v6*)
8759       # Note: We can NOT use -z defs as we might desire, because we do not
8760       # link with -lc, and that would cause any symbols used from libc to
8761       # always be unresolved, which means just about no library would
8762       # ever link correctly.  If we're not using GNU ld we use -z text
8763       # though, which does catch some bad symbols but isn't as heavy-handed
8764       # as -z defs.
8765       no_undefined_flag='${wl}-z,text'
8766       allow_undefined_flag='${wl}-z,nodefs'
8767       archive_cmds_need_lc=no
8768       hardcode_shlibpath_var=no
8769       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8770       hardcode_libdir_separator=':'
8771       link_all_deplibs=yes
8772       export_dynamic_flag_spec='${wl}-Bexport'
8773       runpath_var='LD_RUN_PATH'
8774
8775       if test "$GCC" = yes; then
8776         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778       else
8779         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8781       fi
8782       ;;
8783
8784     uts4*)
8785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786       hardcode_libdir_flag_spec='-L$libdir'
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     *)
8791       ld_shlibs=no
8792       ;;
8793     esac
8794   fi
8795
8796 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8797 echo "${ECHO_T}$ld_shlibs" >&6; }
8798 test "$ld_shlibs" = no && can_build_shared=no
8799
8800 #
8801 # Do we need to explicitly link libc?
8802 #
8803 case "x$archive_cmds_need_lc" in
8804 x|xyes)
8805   # Assume -lc should be added
8806   archive_cmds_need_lc=yes
8807
8808   if test "$enable_shared" = yes && test "$GCC" = yes; then
8809     case $archive_cmds in
8810     *'~'*)
8811       # FIXME: we may have to deal with multi-command sequences.
8812       ;;
8813     '$CC '*)
8814       # Test whether the compiler implicitly links with -lc since on some
8815       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8816       # to ld, don't add -lc before -lgcc.
8817       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8818 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8819       $rm conftest*
8820       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8821
8822       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823   (eval $ac_compile) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } 2>conftest.err; then
8827         soname=conftest
8828         lib=conftest
8829         libobjs=conftest.$ac_objext
8830         deplibs=
8831         wl=$lt_prog_compiler_wl
8832         pic_flag=$lt_prog_compiler_pic
8833         compiler_flags=-v
8834         linker_flags=-v
8835         verstring=
8836         output_objdir=.
8837         libname=conftest
8838         lt_save_allow_undefined_flag=$allow_undefined_flag
8839         allow_undefined_flag=
8840         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8841   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }
8845         then
8846           archive_cmds_need_lc=no
8847         else
8848           archive_cmds_need_lc=yes
8849         fi
8850         allow_undefined_flag=$lt_save_allow_undefined_flag
8851       else
8852         cat conftest.err 1>&5
8853       fi
8854       $rm conftest*
8855       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8856 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8857       ;;
8858     esac
8859   fi
8860   ;;
8861 esac
8862
8863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8865 library_names_spec=
8866 libname_spec='lib$name'
8867 soname_spec=
8868 shrext_cmds=".so"
8869 postinstall_cmds=
8870 postuninstall_cmds=
8871 finish_cmds=
8872 finish_eval=
8873 shlibpath_var=
8874 shlibpath_overrides_runpath=unknown
8875 version_type=none
8876 dynamic_linker="$host_os ld.so"
8877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8878 if test "$GCC" = yes; then
8879   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8880   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8881     # if the path contains ";" then we assume it to be the separator
8882     # otherwise default to the standard path separator (i.e. ":") - it is
8883     # assumed that no part of a normal pathname contains ";" but that should
8884     # okay in the real world where ";" in dirpaths is itself problematic.
8885     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8886   else
8887     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8888   fi
8889 else
8890   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8891 fi
8892 need_lib_prefix=unknown
8893 hardcode_into_libs=no
8894
8895 # when you set need_version to no, make sure it does not cause -set_version
8896 # flags to be left without arguments
8897 need_version=unknown
8898
8899 case $host_os in
8900 aix3*)
8901   version_type=linux
8902   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8903   shlibpath_var=LIBPATH
8904
8905   # AIX 3 has no versioning support, so we append a major version to the name.
8906   soname_spec='${libname}${release}${shared_ext}$major'
8907   ;;
8908
8909 aix4* | aix5*)
8910   version_type=linux
8911   need_lib_prefix=no
8912   need_version=no
8913   hardcode_into_libs=yes
8914   if test "$host_cpu" = ia64; then
8915     # AIX 5 supports IA64
8916     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8917     shlibpath_var=LD_LIBRARY_PATH
8918   else
8919     # With GCC up to 2.95.x, collect2 would create an import file
8920     # for dependence libraries.  The import file would start with
8921     # the line `#! .'.  This would cause the generated library to
8922     # depend on `.', always an invalid library.  This was fixed in
8923     # development snapshots of GCC prior to 3.0.
8924     case $host_os in
8925       aix4 | aix4.[01] | aix4.[01].*)
8926       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8927            echo ' yes '
8928            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8929         :
8930       else
8931         can_build_shared=no
8932       fi
8933       ;;
8934     esac
8935     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8936     # soname into executable. Probably we can add versioning support to
8937     # collect2, so additional links can be useful in future.
8938     if test "$aix_use_runtimelinking" = yes; then
8939       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8940       # instead of lib<name>.a to let people know that these are not
8941       # typical AIX shared libraries.
8942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943     else
8944       # We preserve .a as extension for shared libraries through AIX4.2
8945       # and later when we are not doing run time linking.
8946       library_names_spec='${libname}${release}.a $libname.a'
8947       soname_spec='${libname}${release}${shared_ext}$major'
8948     fi
8949     shlibpath_var=LIBPATH
8950   fi
8951   ;;
8952
8953 amigaos*)
8954   library_names_spec='$libname.ixlibrary $libname.a'
8955   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8956   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'
8957   ;;
8958
8959 beos*)
8960   library_names_spec='${libname}${shared_ext}'
8961   dynamic_linker="$host_os ld.so"
8962   shlibpath_var=LIBRARY_PATH
8963   ;;
8964
8965 bsdi[45]*)
8966   version_type=linux
8967   need_version=no
8968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969   soname_spec='${libname}${release}${shared_ext}$major'
8970   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8973   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8974   # the default ld.so.conf also contains /usr/contrib/lib and
8975   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8976   # libtool to hard-code these into programs
8977   ;;
8978
8979 cygwin* | mingw* | pw32*)
8980   version_type=windows
8981   shrext_cmds=".dll"
8982   need_version=no
8983   need_lib_prefix=no
8984
8985   case $GCC,$host_os in
8986   yes,cygwin* | yes,mingw* | yes,pw32*)
8987     library_names_spec='$libname.dll.a'
8988     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8989     postinstall_cmds='base_file=`basename \${file}`~
8990       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8991       dldir=$destdir/`dirname \$dlpath`~
8992       test -d \$dldir || mkdir -p \$dldir~
8993       $install_prog $dir/$dlname \$dldir/$dlname~
8994       chmod a+x \$dldir/$dlname'
8995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8996       dlpath=$dir/\$dldll~
8997        $rm \$dlpath'
8998     shlibpath_overrides_runpath=yes
8999
9000     case $host_os in
9001     cygwin*)
9002       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9003       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9004       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9005       ;;
9006     mingw*)
9007       # MinGW DLLs use traditional 'lib' prefix
9008       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9009       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9010       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9011         # It is most probably a Windows format PATH printed by
9012         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9013         # path with ; separators, and with drive letters. We can handle the
9014         # drive letters (cygwin fileutils understands them), so leave them,
9015         # especially as we might pass files found there to a mingw objdump,
9016         # which wouldn't understand a cygwinified path. Ahh.
9017         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9018       else
9019         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9020       fi
9021       ;;
9022     pw32*)
9023       # pw32 DLLs use 'pw' prefix rather than 'lib'
9024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9025       ;;
9026     esac
9027     ;;
9028
9029   *)
9030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9031     ;;
9032   esac
9033   dynamic_linker='Win32 ld.exe'
9034   # FIXME: first we should search . and the directory the executable is in
9035   shlibpath_var=PATH
9036   ;;
9037
9038 darwin* | rhapsody*)
9039   dynamic_linker="$host_os dyld"
9040   version_type=darwin
9041   need_lib_prefix=no
9042   need_version=no
9043   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9044   soname_spec='${libname}${release}${major}$shared_ext'
9045   shlibpath_overrides_runpath=yes
9046   shlibpath_var=DYLD_LIBRARY_PATH
9047   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9048   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9049   if test "$GCC" = yes; then
9050     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"`
9051   else
9052     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9053   fi
9054   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9055   ;;
9056
9057 dgux*)
9058   version_type=linux
9059   need_lib_prefix=no
9060   need_version=no
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9062   soname_spec='${libname}${release}${shared_ext}$major'
9063   shlibpath_var=LD_LIBRARY_PATH
9064   ;;
9065
9066 freebsd1*)
9067   dynamic_linker=no
9068   ;;
9069
9070 freebsd* | dragonfly*)
9071   # DragonFly does not have aout.  When/if they implement a new
9072   # versioning mechanism, adjust this.
9073   if test -x /usr/bin/objformat; then
9074     objformat=`/usr/bin/objformat`
9075   else
9076     case $host_os in
9077     freebsd[123]*) objformat=aout ;;
9078     *) objformat=elf ;;
9079     esac
9080   fi
9081   version_type=freebsd-$objformat
9082   case $version_type in
9083     freebsd-elf*)
9084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9085       need_version=no
9086       need_lib_prefix=no
9087       ;;
9088     freebsd-*)
9089       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9090       need_version=yes
9091       ;;
9092   esac
9093   shlibpath_var=LD_LIBRARY_PATH
9094   case $host_os in
9095   freebsd2*)
9096     shlibpath_overrides_runpath=yes
9097     ;;
9098   freebsd3.[01]* | freebsdelf3.[01]*)
9099     shlibpath_overrides_runpath=yes
9100     hardcode_into_libs=yes
9101     ;;
9102   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9103   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9104     shlibpath_overrides_runpath=no
9105     hardcode_into_libs=yes
9106     ;;
9107   freebsd*) # from 4.6 on
9108     shlibpath_overrides_runpath=yes
9109     hardcode_into_libs=yes
9110     ;;
9111   esac
9112   ;;
9113
9114 gnu*)
9115   version_type=linux
9116   need_lib_prefix=no
9117   need_version=no
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   hardcode_into_libs=yes
9122   ;;
9123
9124 hpux9* | hpux10* | hpux11*)
9125   # Give a soname corresponding to the major version so that dld.sl refuses to
9126   # link against other versions.
9127   version_type=sunos
9128   need_lib_prefix=no
9129   need_version=no
9130   case $host_cpu in
9131   ia64*)
9132     shrext_cmds='.so'
9133     hardcode_into_libs=yes
9134     dynamic_linker="$host_os dld.so"
9135     shlibpath_var=LD_LIBRARY_PATH
9136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138     soname_spec='${libname}${release}${shared_ext}$major'
9139     if test "X$HPUX_IA64_MODE" = X32; then
9140       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9141     else
9142       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9143     fi
9144     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9145     ;;
9146    hppa*64*)
9147      shrext_cmds='.sl'
9148      hardcode_into_libs=yes
9149      dynamic_linker="$host_os dld.sl"
9150      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9151      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9152      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153      soname_spec='${libname}${release}${shared_ext}$major'
9154      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9155      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9156      ;;
9157    *)
9158     shrext_cmds='.sl'
9159     dynamic_linker="$host_os dld.sl"
9160     shlibpath_var=SHLIB_PATH
9161     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163     soname_spec='${libname}${release}${shared_ext}$major'
9164     ;;
9165   esac
9166   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9167   postinstall_cmds='chmod 555 $lib'
9168   ;;
9169
9170 interix3*)
9171   version_type=linux
9172   need_lib_prefix=no
9173   need_version=no
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9175   soname_spec='${libname}${release}${shared_ext}$major'
9176   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9177   shlibpath_var=LD_LIBRARY_PATH
9178   shlibpath_overrides_runpath=no
9179   hardcode_into_libs=yes
9180   ;;
9181
9182 irix5* | irix6* | nonstopux*)
9183   case $host_os in
9184     nonstopux*) version_type=nonstopux ;;
9185     *)
9186         if test "$lt_cv_prog_gnu_ld" = yes; then
9187                 version_type=linux
9188         else
9189                 version_type=irix
9190         fi ;;
9191   esac
9192   need_lib_prefix=no
9193   need_version=no
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9196   case $host_os in
9197   irix5* | nonstopux*)
9198     libsuff= shlibsuff=
9199     ;;
9200   *)
9201     case $LD in # libtool.m4 will add one of these switches to LD
9202     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9203       libsuff= shlibsuff= libmagic=32-bit;;
9204     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9205       libsuff=32 shlibsuff=N32 libmagic=N32;;
9206     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9207       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9208     *) libsuff= shlibsuff= libmagic=never-match;;
9209     esac
9210     ;;
9211   esac
9212   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9213   shlibpath_overrides_runpath=no
9214   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9215   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9216   hardcode_into_libs=yes
9217   ;;
9218
9219 # No shared lib support for Linux oldld, aout, or coff.
9220 linux*oldld* | linux*aout* | linux*coff*)
9221   dynamic_linker=no
9222   ;;
9223
9224 # This must be Linux ELF.
9225 linux* | k*bsd*-gnu)
9226   version_type=linux
9227   need_lib_prefix=no
9228   need_version=no
9229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230   soname_spec='${libname}${release}${shared_ext}$major'
9231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   shlibpath_overrides_runpath=no
9234   # This implies no fast_install, which is unacceptable.
9235   # Some rework will be needed to allow for fast_install
9236   # before this can be enabled.
9237   hardcode_into_libs=yes
9238
9239   # Append ld.so.conf contents to the search path
9240   if test -f /etc/ld.so.conf; then
9241     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' ' '`
9242     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9243   fi
9244
9245   # We used to test for /lib/ld.so.1 and disable shared libraries on
9246   # powerpc, because MkLinux only supported shared libraries with the
9247   # GNU dynamic linker.  Since this was broken with cross compilers,
9248   # most powerpc-linux boxes support dynamic linking these days and
9249   # people can always --disable-shared, the test was removed, and we
9250   # assume the GNU/Linux dynamic linker is in use.
9251   dynamic_linker='GNU/Linux ld.so'
9252   ;;
9253
9254 netbsdelf*-gnu)
9255   version_type=linux
9256   need_lib_prefix=no
9257   need_version=no
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   shlibpath_overrides_runpath=no
9262   hardcode_into_libs=yes
9263   dynamic_linker='NetBSD ld.elf_so'
9264   ;;
9265
9266 netbsd*)
9267   version_type=sunos
9268   need_lib_prefix=no
9269   need_version=no
9270   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9272     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9273     dynamic_linker='NetBSD (a.out) ld.so'
9274   else
9275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9276     soname_spec='${libname}${release}${shared_ext}$major'
9277     dynamic_linker='NetBSD ld.elf_so'
9278   fi
9279   shlibpath_var=LD_LIBRARY_PATH
9280   shlibpath_overrides_runpath=yes
9281   hardcode_into_libs=yes
9282   ;;
9283
9284 newsos6)
9285   version_type=linux
9286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=yes
9289   ;;
9290
9291 nto-qnx*)
9292   version_type=linux
9293   need_lib_prefix=no
9294   need_version=no
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296   soname_spec='${libname}${release}${shared_ext}$major'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   shlibpath_overrides_runpath=yes
9299   ;;
9300
9301 openbsd*)
9302   version_type=sunos
9303   sys_lib_dlsearch_path_spec="/usr/lib"
9304   need_lib_prefix=no
9305   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9306   case $host_os in
9307     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9308     *)                         need_version=no  ;;
9309   esac
9310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9311   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9312   shlibpath_var=LD_LIBRARY_PATH
9313   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9314     case $host_os in
9315       openbsd2.[89] | openbsd2.[89].*)
9316         shlibpath_overrides_runpath=no
9317         ;;
9318       *)
9319         shlibpath_overrides_runpath=yes
9320         ;;
9321       esac
9322   else
9323     shlibpath_overrides_runpath=yes
9324   fi
9325   ;;
9326
9327 os2*)
9328   libname_spec='$name'
9329   shrext_cmds=".dll"
9330   need_lib_prefix=no
9331   library_names_spec='$libname${shared_ext} $libname.a'
9332   dynamic_linker='OS/2 ld.exe'
9333   shlibpath_var=LIBPATH
9334   ;;
9335
9336 osf3* | osf4* | osf5*)
9337   version_type=osf
9338   need_lib_prefix=no
9339   need_version=no
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9344   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9345   ;;
9346
9347 solaris*)
9348   version_type=linux
9349   need_lib_prefix=no
9350   need_version=no
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352   soname_spec='${libname}${release}${shared_ext}$major'
9353   shlibpath_var=LD_LIBRARY_PATH
9354   shlibpath_overrides_runpath=yes
9355   hardcode_into_libs=yes
9356   # ldd complains unless libraries are executable
9357   postinstall_cmds='chmod +x $lib'
9358   ;;
9359
9360 sunos4*)
9361   version_type=sunos
9362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9363   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   shlibpath_overrides_runpath=yes
9366   if test "$with_gnu_ld" = yes; then
9367     need_lib_prefix=no
9368   fi
9369   need_version=yes
9370   ;;
9371
9372 sysv4 | sysv4.3*)
9373   version_type=linux
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375   soname_spec='${libname}${release}${shared_ext}$major'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   case $host_vendor in
9378     sni)
9379       shlibpath_overrides_runpath=no
9380       need_lib_prefix=no
9381       export_dynamic_flag_spec='${wl}-Blargedynsym'
9382       runpath_var=LD_RUN_PATH
9383       ;;
9384     siemens)
9385       need_lib_prefix=no
9386       ;;
9387     motorola)
9388       need_lib_prefix=no
9389       need_version=no
9390       shlibpath_overrides_runpath=no
9391       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9392       ;;
9393   esac
9394   ;;
9395
9396 sysv4*MP*)
9397   if test -d /usr/nec ;then
9398     version_type=linux
9399     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9400     soname_spec='$libname${shared_ext}.$major'
9401     shlibpath_var=LD_LIBRARY_PATH
9402   fi
9403   ;;
9404
9405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9406   version_type=freebsd-elf
9407   need_lib_prefix=no
9408   need_version=no
9409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9410   soname_spec='${libname}${release}${shared_ext}$major'
9411   shlibpath_var=LD_LIBRARY_PATH
9412   hardcode_into_libs=yes
9413   if test "$with_gnu_ld" = yes; then
9414     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9415     shlibpath_overrides_runpath=no
9416   else
9417     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9418     shlibpath_overrides_runpath=yes
9419     case $host_os in
9420       sco3.2v5*)
9421         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9422         ;;
9423     esac
9424   fi
9425   sys_lib_dlsearch_path_spec='/usr/lib'
9426   ;;
9427
9428 uts4*)
9429   version_type=linux
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431   soname_spec='${libname}${release}${shared_ext}$major'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   ;;
9434
9435 *)
9436   dynamic_linker=no
9437   ;;
9438 esac
9439 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9440 echo "${ECHO_T}$dynamic_linker" >&6; }
9441 test "$dynamic_linker" = no && can_build_shared=no
9442
9443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9444 if test "$GCC" = yes; then
9445   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9446 fi
9447
9448 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9450 hardcode_action=
9451 if test -n "$hardcode_libdir_flag_spec" || \
9452    test -n "$runpath_var" || \
9453    test "X$hardcode_automatic" = "Xyes" ; then
9454
9455   # We can hardcode non-existant directories.
9456   if test "$hardcode_direct" != no &&
9457      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9458      # have to relink, otherwise we might link with an installed library
9459      # when we should be linking with a yet-to-be-installed one
9460      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9461      test "$hardcode_minus_L" != no; then
9462     # Linking always hardcodes the temporary library directory.
9463     hardcode_action=relink
9464   else
9465     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9466     hardcode_action=immediate
9467   fi
9468 else
9469   # We cannot hardcode anything, or else we can only hardcode existing
9470   # directories.
9471   hardcode_action=unsupported
9472 fi
9473 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9474 echo "${ECHO_T}$hardcode_action" >&6; }
9475
9476 if test "$hardcode_action" = relink; then
9477   # Fast installation is not supported
9478   enable_fast_install=no
9479 elif test "$shlibpath_overrides_runpath" = yes ||
9480      test "$enable_shared" = no; then
9481   # Fast installation is not necessary
9482   enable_fast_install=needless
9483 fi
9484
9485 striplib=
9486 old_striplib=
9487 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9490   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9491   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9492   { echo "$as_me:$LINENO: result: yes" >&5
9493 echo "${ECHO_T}yes" >&6; }
9494 else
9495 # FIXME - insert some real tests, host_os isn't really good enough
9496   case $host_os in
9497    darwin*)
9498        if test -n "$STRIP" ; then
9499          striplib="$STRIP -x"
9500          { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9502        else
9503   { echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6; }
9505 fi
9506        ;;
9507    *)
9508   { echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6; }
9510     ;;
9511   esac
9512 fi
9513
9514 if test "x$enable_dlopen" != xyes; then
9515   enable_dlopen=unknown
9516   enable_dlopen_self=unknown
9517   enable_dlopen_self_static=unknown
9518 else
9519   lt_cv_dlopen=no
9520   lt_cv_dlopen_libs=
9521
9522   case $host_os in
9523   beos*)
9524     lt_cv_dlopen="load_add_on"
9525     lt_cv_dlopen_libs=
9526     lt_cv_dlopen_self=yes
9527     ;;
9528
9529   mingw* | pw32*)
9530     lt_cv_dlopen="LoadLibrary"
9531     lt_cv_dlopen_libs=
9532    ;;
9533
9534   cygwin*)
9535     lt_cv_dlopen="dlopen"
9536     lt_cv_dlopen_libs=
9537    ;;
9538
9539   darwin*)
9540   # if libdl is installed we need to link against it
9541     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-ldl  $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554
9555 /* Override any GCC internal prototype to avoid an error.
9556    Use char because int might match the return type of a GCC
9557    builtin and then its argument prototype would still apply.  */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char dlopen ();
9562 int
9563 main ()
9564 {
9565 return dlopen ();
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9572 case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577   (eval "$ac_link") 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && {
9584          test -z "$ac_c_werror_flag" ||
9585          test ! -s conftest.err
9586        } && test -s conftest$ac_exeext &&
9587        $as_test_x conftest$ac_exeext; then
9588   ac_cv_lib_dl_dlopen=yes
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593         ac_cv_lib_dl_dlopen=no
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597       conftest$ac_exeext conftest.$ac_ext
9598 LIBS=$ac_check_lib_save_LIBS
9599 fi
9600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9602 if test $ac_cv_lib_dl_dlopen = yes; then
9603   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9604 else
9605
9606     lt_cv_dlopen="dyld"
9607     lt_cv_dlopen_libs=
9608     lt_cv_dlopen_self=yes
9609
9610 fi
9611
9612    ;;
9613
9614   *)
9615     { echo "$as_me:$LINENO: checking for shl_load" >&5
9616 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9617 if test "${ac_cv_func_shl_load+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9628 #define shl_load innocuous_shl_load
9629
9630 /* System header to define __stub macros and hopefully few prototypes,
9631     which can conflict with char shl_load (); below.
9632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633     <limits.h> exists even on freestanding compilers.  */
9634
9635 #ifdef __STDC__
9636 # include <limits.h>
9637 #else
9638 # include <assert.h>
9639 #endif
9640
9641 #undef shl_load
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644    Use char because int might match the return type of a GCC
9645    builtin and then its argument prototype would still apply.  */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char shl_load ();
9650 /* The GNU C library defines this for functions which it implements
9651     to always fail with ENOSYS.  Some functions are actually named
9652     something starting with __ and the normal name is an alias.  */
9653 #if defined __stub_shl_load || defined __stub___shl_load
9654 choke me
9655 #endif
9656
9657 int
9658 main ()
9659 {
9660 return shl_load ();
9661   ;
9662   return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672   (eval "$ac_link") 2>conftest.er1
9673   ac_status=$?
9674   grep -v '^ *+' conftest.er1 >conftest.err
9675   rm -f conftest.er1
9676   cat conftest.err >&5
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } && {
9679          test -z "$ac_c_werror_flag" ||
9680          test ! -s conftest.err
9681        } && test -s conftest$ac_exeext &&
9682        $as_test_x conftest$ac_exeext; then
9683   ac_cv_func_shl_load=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688         ac_cv_func_shl_load=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692       conftest$ac_exeext conftest.$ac_ext
9693 fi
9694 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9695 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9696 if test $ac_cv_func_shl_load = yes; then
9697   lt_cv_dlopen="shl_load"
9698 else
9699   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-ldld  $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char shl_load ();
9720 int
9721 main ()
9722 {
9723 return shl_load ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_link") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } && {
9742          test -z "$ac_c_werror_flag" ||
9743          test ! -s conftest.err
9744        } && test -s conftest$ac_exeext &&
9745        $as_test_x conftest$ac_exeext; then
9746   ac_cv_lib_dld_shl_load=yes
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751         ac_cv_lib_dld_shl_load=no
9752 fi
9753
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755       conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9757 fi
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9760 if test $ac_cv_lib_dld_shl_load = yes; then
9761   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9762 else
9763   { echo "$as_me:$LINENO: checking for dlopen" >&5
9764 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9765 if test "${ac_cv_func_dlopen+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h.  */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h.  */
9774 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9776 #define dlopen innocuous_dlopen
9777
9778 /* System header to define __stub macros and hopefully few prototypes,
9779     which can conflict with char dlopen (); below.
9780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9781     <limits.h> exists even on freestanding compilers.  */
9782
9783 #ifdef __STDC__
9784 # include <limits.h>
9785 #else
9786 # include <assert.h>
9787 #endif
9788
9789 #undef dlopen
9790
9791 /* Override any GCC internal prototype to avoid an error.
9792    Use char because int might match the return type of a GCC
9793    builtin and then its argument prototype would still apply.  */
9794 #ifdef __cplusplus
9795 extern "C"
9796 #endif
9797 char dlopen ();
9798 /* The GNU C library defines this for functions which it implements
9799     to always fail with ENOSYS.  Some functions are actually named
9800     something starting with __ and the normal name is an alias.  */
9801 #if defined __stub_dlopen || defined __stub___dlopen
9802 choke me
9803 #endif
9804
9805 int
9806 main ()
9807 {
9808 return dlopen ();
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9815 case "(($ac_try" in
9816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817   *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820   (eval "$ac_link") 2>conftest.er1
9821   ac_status=$?
9822   grep -v '^ *+' conftest.er1 >conftest.err
9823   rm -f conftest.er1
9824   cat conftest.err >&5
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } && {
9827          test -z "$ac_c_werror_flag" ||
9828          test ! -s conftest.err
9829        } && test -s conftest$ac_exeext &&
9830        $as_test_x conftest$ac_exeext; then
9831   ac_cv_func_dlopen=yes
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836         ac_cv_func_dlopen=no
9837 fi
9838
9839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9840       conftest$ac_exeext conftest.$ac_ext
9841 fi
9842 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9843 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9844 if test $ac_cv_func_dlopen = yes; then
9845   lt_cv_dlopen="dlopen"
9846 else
9847   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9848 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-ldl  $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862    Use char because int might match the return type of a GCC
9863    builtin and then its argument prototype would still apply.  */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char dlopen ();
9868 int
9869 main ()
9870 {
9871 return dlopen ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_link") 2>conftest.er1
9884   ac_status=$?
9885   grep -v '^ *+' conftest.er1 >conftest.err
9886   rm -f conftest.er1
9887   cat conftest.err >&5
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); } && {
9890          test -z "$ac_c_werror_flag" ||
9891          test ! -s conftest.err
9892        } && test -s conftest$ac_exeext &&
9893        $as_test_x conftest$ac_exeext; then
9894   ac_cv_lib_dl_dlopen=yes
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899         ac_cv_lib_dl_dlopen=no
9900 fi
9901
9902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9903       conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9905 fi
9906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9908 if test $ac_cv_lib_dl_dlopen = yes; then
9909   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9910 else
9911   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   ac_check_lib_save_LIBS=$LIBS
9917 LIBS="-lsvld  $LIBS"
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924
9925 /* Override any GCC internal prototype to avoid an error.
9926    Use char because int might match the return type of a GCC
9927    builtin and then its argument prototype would still apply.  */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 char dlopen ();
9932 int
9933 main ()
9934 {
9935 return dlopen ();
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9942 case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_link") 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } && {
9954          test -z "$ac_c_werror_flag" ||
9955          test ! -s conftest.err
9956        } && test -s conftest$ac_exeext &&
9957        $as_test_x conftest$ac_exeext; then
9958   ac_cv_lib_svld_dlopen=yes
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963         ac_cv_lib_svld_dlopen=no
9964 fi
9965
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967       conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9972 if test $ac_cv_lib_svld_dlopen = yes; then
9973   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9974 else
9975   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   ac_check_lib_save_LIBS=$LIBS
9981 LIBS="-ldld  $LIBS"
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988
9989 /* Override any GCC internal prototype to avoid an error.
9990    Use char because int might match the return type of a GCC
9991    builtin and then its argument prototype would still apply.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 char dld_link ();
9996 int
9997 main ()
9998 {
9999 return dld_link ();
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008   *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011   (eval "$ac_link") 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } && {
10018          test -z "$ac_c_werror_flag" ||
10019          test ! -s conftest.err
10020        } && test -s conftest$ac_exeext &&
10021        $as_test_x conftest$ac_exeext; then
10022   ac_cv_lib_dld_dld_link=yes
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027         ac_cv_lib_dld_dld_link=no
10028 fi
10029
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031       conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10033 fi
10034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10036 if test $ac_cv_lib_dld_dld_link = yes; then
10037   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10038 fi
10039
10040
10041 fi
10042
10043
10044 fi
10045
10046
10047 fi
10048
10049
10050 fi
10051
10052
10053 fi
10054
10055     ;;
10056   esac
10057
10058   if test "x$lt_cv_dlopen" != xno; then
10059     enable_dlopen=yes
10060   else
10061     enable_dlopen=no
10062   fi
10063
10064   case $lt_cv_dlopen in
10065   dlopen)
10066     save_CPPFLAGS="$CPPFLAGS"
10067     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10068
10069     save_LDFLAGS="$LDFLAGS"
10070     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10071
10072     save_LIBS="$LIBS"
10073     LIBS="$lt_cv_dlopen_libs $LIBS"
10074
10075     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10076 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10077 if test "${lt_cv_dlopen_self+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080           if test "$cross_compiling" = yes; then :
10081   lt_cv_dlopen_self=cross
10082 else
10083   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10084   lt_status=$lt_dlunknown
10085   cat > conftest.$ac_ext <<EOF
10086 #line 10086 "configure"
10087 #include "confdefs.h"
10088
10089 #if HAVE_DLFCN_H
10090 #include <dlfcn.h>
10091 #endif
10092
10093 #include <stdio.h>
10094
10095 #ifdef RTLD_GLOBAL
10096 #  define LT_DLGLOBAL           RTLD_GLOBAL
10097 #else
10098 #  ifdef DL_GLOBAL
10099 #    define LT_DLGLOBAL         DL_GLOBAL
10100 #  else
10101 #    define LT_DLGLOBAL         0
10102 #  endif
10103 #endif
10104
10105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10106    find out it does not work in some platform. */
10107 #ifndef LT_DLLAZY_OR_NOW
10108 #  ifdef RTLD_LAZY
10109 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10110 #  else
10111 #    ifdef DL_LAZY
10112 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10113 #    else
10114 #      ifdef RTLD_NOW
10115 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10116 #      else
10117 #        ifdef DL_NOW
10118 #          define LT_DLLAZY_OR_NOW      DL_NOW
10119 #        else
10120 #          define LT_DLLAZY_OR_NOW      0
10121 #        endif
10122 #      endif
10123 #    endif
10124 #  endif
10125 #endif
10126
10127 #ifdef __cplusplus
10128 extern "C" void exit (int);
10129 #endif
10130
10131 void fnord() { int i=42;}
10132 int main ()
10133 {
10134   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10135   int status = $lt_dlunknown;
10136
10137   if (self)
10138     {
10139       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10140       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10141       /* dlclose (self); */
10142     }
10143   else
10144     puts (dlerror ());
10145
10146     exit (status);
10147 }
10148 EOF
10149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150   (eval $ac_link) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10154     (./conftest; exit; ) >&5 2>/dev/null
10155     lt_status=$?
10156     case x$lt_status in
10157       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10158       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10159       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10160     esac
10161   else :
10162     # compilation failed
10163     lt_cv_dlopen_self=no
10164   fi
10165 fi
10166 rm -fr conftest*
10167
10168
10169 fi
10170 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10171 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10172
10173     if test "x$lt_cv_dlopen_self" = xyes; then
10174       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10175       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10176 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10177 if test "${lt_cv_dlopen_self_static+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180           if test "$cross_compiling" = yes; then :
10181   lt_cv_dlopen_self_static=cross
10182 else
10183   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10184   lt_status=$lt_dlunknown
10185   cat > conftest.$ac_ext <<EOF
10186 #line 10186 "configure"
10187 #include "confdefs.h"
10188
10189 #if HAVE_DLFCN_H
10190 #include <dlfcn.h>
10191 #endif
10192
10193 #include <stdio.h>
10194
10195 #ifdef RTLD_GLOBAL
10196 #  define LT_DLGLOBAL           RTLD_GLOBAL
10197 #else
10198 #  ifdef DL_GLOBAL
10199 #    define LT_DLGLOBAL         DL_GLOBAL
10200 #  else
10201 #    define LT_DLGLOBAL         0
10202 #  endif
10203 #endif
10204
10205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10206    find out it does not work in some platform. */
10207 #ifndef LT_DLLAZY_OR_NOW
10208 #  ifdef RTLD_LAZY
10209 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10210 #  else
10211 #    ifdef DL_LAZY
10212 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10213 #    else
10214 #      ifdef RTLD_NOW
10215 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10216 #      else
10217 #        ifdef DL_NOW
10218 #          define LT_DLLAZY_OR_NOW      DL_NOW
10219 #        else
10220 #          define LT_DLLAZY_OR_NOW      0
10221 #        endif
10222 #      endif
10223 #    endif
10224 #  endif
10225 #endif
10226
10227 #ifdef __cplusplus
10228 extern "C" void exit (int);
10229 #endif
10230
10231 void fnord() { int i=42;}
10232 int main ()
10233 {
10234   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10235   int status = $lt_dlunknown;
10236
10237   if (self)
10238     {
10239       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10240       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10241       /* dlclose (self); */
10242     }
10243   else
10244     puts (dlerror ());
10245
10246     exit (status);
10247 }
10248 EOF
10249   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250   (eval $ac_link) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10254     (./conftest; exit; ) >&5 2>/dev/null
10255     lt_status=$?
10256     case x$lt_status in
10257       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10258       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10259       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10260     esac
10261   else :
10262     # compilation failed
10263     lt_cv_dlopen_self_static=no
10264   fi
10265 fi
10266 rm -fr conftest*
10267
10268
10269 fi
10270 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10271 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10272     fi
10273
10274     CPPFLAGS="$save_CPPFLAGS"
10275     LDFLAGS="$save_LDFLAGS"
10276     LIBS="$save_LIBS"
10277     ;;
10278   esac
10279
10280   case $lt_cv_dlopen_self in
10281   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10282   *) enable_dlopen_self=unknown ;;
10283   esac
10284
10285   case $lt_cv_dlopen_self_static in
10286   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10287   *) enable_dlopen_self_static=unknown ;;
10288   esac
10289 fi
10290
10291
10292 # Report which library types will actually be built
10293 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10294 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10295 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10296 echo "${ECHO_T}$can_build_shared" >&6; }
10297
10298 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10299 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10300 test "$can_build_shared" = "no" && enable_shared=no
10301
10302 # On AIX, shared libraries and static libraries use the same namespace, and
10303 # are all built from PIC.
10304 case $host_os in
10305 aix3*)
10306   test "$enable_shared" = yes && enable_static=no
10307   if test -n "$RANLIB"; then
10308     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10309     postinstall_cmds='$RANLIB $lib'
10310   fi
10311   ;;
10312
10313 aix4* | aix5*)
10314   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10315     test "$enable_shared" = yes && enable_static=no
10316   fi
10317     ;;
10318 esac
10319 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10320 echo "${ECHO_T}$enable_shared" >&6; }
10321
10322 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10323 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10324 # Make sure either enable_shared or enable_static is yes.
10325 test "$enable_shared" = yes || enable_static=yes
10326 { echo "$as_me:$LINENO: result: $enable_static" >&5
10327 echo "${ECHO_T}$enable_static" >&6; }
10328
10329 # The else clause should only fire when bootstrapping the
10330 # libtool distribution, otherwise you forgot to ship ltmain.sh
10331 # with your package, and you will get complaints that there are
10332 # no rules to generate ltmain.sh.
10333 if test -f "$ltmain"; then
10334   # See if we are running on zsh, and set the options which allow our commands through
10335   # without removal of \ escapes.
10336   if test -n "${ZSH_VERSION+set}" ; then
10337     setopt NO_GLOB_SUBST
10338   fi
10339   # Now quote all the things that may contain metacharacters while being
10340   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10341   # variables and quote the copies for generation of the libtool script.
10342   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10343     SED SHELL STRIP \
10344     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10345     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10346     deplibs_check_method reload_flag reload_cmds need_locks \
10347     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10348     lt_cv_sys_global_symbol_to_c_name_address \
10349     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10350     old_postinstall_cmds old_postuninstall_cmds \
10351     compiler \
10352     CC \
10353     LD \
10354     lt_prog_compiler_wl \
10355     lt_prog_compiler_pic \
10356     lt_prog_compiler_static \
10357     lt_prog_compiler_no_builtin_flag \
10358     export_dynamic_flag_spec \
10359     thread_safe_flag_spec \
10360     whole_archive_flag_spec \
10361     enable_shared_with_static_runtimes \
10362     old_archive_cmds \
10363     old_archive_from_new_cmds \
10364     predep_objects \
10365     postdep_objects \
10366     predeps \
10367     postdeps \
10368     compiler_lib_search_path \
10369     archive_cmds \
10370     archive_expsym_cmds \
10371     postinstall_cmds \
10372     postuninstall_cmds \
10373     old_archive_from_expsyms_cmds \
10374     allow_undefined_flag \
10375     no_undefined_flag \
10376     export_symbols_cmds \
10377     hardcode_libdir_flag_spec \
10378     hardcode_libdir_flag_spec_ld \
10379     hardcode_libdir_separator \
10380     hardcode_automatic \
10381     module_cmds \
10382     module_expsym_cmds \
10383     lt_cv_prog_compiler_c_o \
10384     exclude_expsyms \
10385     include_expsyms; do
10386
10387     case $var in
10388     old_archive_cmds | \
10389     old_archive_from_new_cmds | \
10390     archive_cmds | \
10391     archive_expsym_cmds | \
10392     module_cmds | \
10393     module_expsym_cmds | \
10394     old_archive_from_expsyms_cmds | \
10395     export_symbols_cmds | \
10396     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10397     postinstall_cmds | postuninstall_cmds | \
10398     old_postinstall_cmds | old_postuninstall_cmds | \
10399     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10400       # Double-quote double-evaled strings.
10401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10402       ;;
10403     *)
10404       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10405       ;;
10406     esac
10407   done
10408
10409   case $lt_echo in
10410   *'\$0 --fallback-echo"')
10411     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10412     ;;
10413   esac
10414
10415 cfgfile="${ofile}T"
10416   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10417   $rm -f "$cfgfile"
10418   { echo "$as_me:$LINENO: creating $ofile" >&5
10419 echo "$as_me: creating $ofile" >&6;}
10420
10421   cat <<__EOF__ >> "$cfgfile"
10422 #! $SHELL
10423
10424 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10425 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10426 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10427 #
10428 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10429 # Free Software Foundation, Inc.
10430 #
10431 # This file is part of GNU Libtool:
10432 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10433 #
10434 # This program is free software; you can redistribute it and/or modify
10435 # it under the terms of the GNU General Public License as published by
10436 # the Free Software Foundation; either version 2 of the License, or
10437 # (at your option) any later version.
10438 #
10439 # This program is distributed in the hope that it will be useful, but
10440 # WITHOUT ANY WARRANTY; without even the implied warranty of
10441 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10442 # General Public License for more details.
10443 #
10444 # You should have received a copy of the GNU General Public License
10445 # along with this program; if not, write to the Free Software
10446 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10447 #
10448 # As a special exception to the GNU General Public License, if you
10449 # distribute this file as part of a program that contains a
10450 # configuration script generated by Autoconf, you may include it under
10451 # the same distribution terms that you use for the rest of that program.
10452
10453 # A sed program that does not truncate output.
10454 SED=$lt_SED
10455
10456 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10457 Xsed="$SED -e 1s/^X//"
10458
10459 # The HP-UX ksh and POSIX shell print the target directory to stdout
10460 # if CDPATH is set.
10461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10462
10463 # The names of the tagged configurations supported by this script.
10464 available_tags=
10465
10466 # ### BEGIN LIBTOOL CONFIG
10467
10468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10469
10470 # Shell to use when invoking shell scripts.
10471 SHELL=$lt_SHELL
10472
10473 # Whether or not to build shared libraries.
10474 build_libtool_libs=$enable_shared
10475
10476 # Whether or not to build static libraries.
10477 build_old_libs=$enable_static
10478
10479 # Whether or not to add -lc for building shared libraries.
10480 build_libtool_need_lc=$archive_cmds_need_lc
10481
10482 # Whether or not to disallow shared libs when runtime libs are static
10483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10484
10485 # Whether or not to optimize for fast installation.
10486 fast_install=$enable_fast_install
10487
10488 # The host system.
10489 host_alias=$host_alias
10490 host=$host
10491 host_os=$host_os
10492
10493 # The build system.
10494 build_alias=$build_alias
10495 build=$build
10496 build_os=$build_os
10497
10498 # An echo program that does not interpret backslashes.
10499 echo=$lt_echo
10500
10501 # The archiver.
10502 AR=$lt_AR
10503 AR_FLAGS=$lt_AR_FLAGS
10504
10505 # A C compiler.
10506 LTCC=$lt_LTCC
10507
10508 # LTCC compiler flags.
10509 LTCFLAGS=$lt_LTCFLAGS
10510
10511 # A language-specific compiler.
10512 CC=$lt_compiler
10513
10514 # Is the compiler the GNU C compiler?
10515 with_gcc=$GCC
10516
10517 # An ERE matcher.
10518 EGREP=$lt_EGREP
10519
10520 # The linker used to build libraries.
10521 LD=$lt_LD
10522
10523 # Whether we need hard or soft links.
10524 LN_S=$lt_LN_S
10525
10526 # A BSD-compatible nm program.
10527 NM=$lt_NM
10528
10529 # A symbol stripping program
10530 STRIP=$lt_STRIP
10531
10532 # Used to examine libraries when file_magic_cmd begins "file"
10533 MAGIC_CMD=$MAGIC_CMD
10534
10535 # Used on cygwin: DLL creation program.
10536 DLLTOOL="$DLLTOOL"
10537
10538 # Used on cygwin: object dumper.
10539 OBJDUMP="$OBJDUMP"
10540
10541 # Used on cygwin: assembler.
10542 AS="$AS"
10543
10544 # The name of the directory that contains temporary libtool files.
10545 objdir=$objdir
10546
10547 # How to create reloadable object files.
10548 reload_flag=$lt_reload_flag
10549 reload_cmds=$lt_reload_cmds
10550
10551 # How to pass a linker flag through the compiler.
10552 wl=$lt_lt_prog_compiler_wl
10553
10554 # Object file suffix (normally "o").
10555 objext="$ac_objext"
10556
10557 # Old archive suffix (normally "a").
10558 libext="$libext"
10559
10560 # Shared library suffix (normally ".so").
10561 shrext_cmds='$shrext_cmds'
10562
10563 # Executable file suffix (normally "").
10564 exeext="$exeext"
10565
10566 # Additional compiler flags for building library objects.
10567 pic_flag=$lt_lt_prog_compiler_pic
10568 pic_mode=$pic_mode
10569
10570 # What is the maximum length of a command?
10571 max_cmd_len=$lt_cv_sys_max_cmd_len
10572
10573 # Does compiler simultaneously support -c and -o options?
10574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10575
10576 # Must we lock files when doing compilation?
10577 need_locks=$lt_need_locks
10578
10579 # Do we need the lib prefix for modules?
10580 need_lib_prefix=$need_lib_prefix
10581
10582 # Do we need a version for libraries?
10583 need_version=$need_version
10584
10585 # Whether dlopen is supported.
10586 dlopen_support=$enable_dlopen
10587
10588 # Whether dlopen of programs is supported.
10589 dlopen_self=$enable_dlopen_self
10590
10591 # Whether dlopen of statically linked programs is supported.
10592 dlopen_self_static=$enable_dlopen_self_static
10593
10594 # Compiler flag to prevent dynamic linking.
10595 link_static_flag=$lt_lt_prog_compiler_static
10596
10597 # Compiler flag to turn off builtin functions.
10598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10599
10600 # Compiler flag to allow reflexive dlopens.
10601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10602
10603 # Compiler flag to generate shared objects directly from archives.
10604 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10605
10606 # Compiler flag to generate thread-safe objects.
10607 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10608
10609 # Library versioning type.
10610 version_type=$version_type
10611
10612 # Format of library name prefix.
10613 libname_spec=$lt_libname_spec
10614
10615 # List of archive names.  First name is the real one, the rest are links.
10616 # The last name is the one that the linker finds with -lNAME.
10617 library_names_spec=$lt_library_names_spec
10618
10619 # The coded name of the library, if different from the real name.
10620 soname_spec=$lt_soname_spec
10621
10622 # Commands used to build and install an old-style archive.
10623 RANLIB=$lt_RANLIB
10624 old_archive_cmds=$lt_old_archive_cmds
10625 old_postinstall_cmds=$lt_old_postinstall_cmds
10626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10627
10628 # Create an old-style archive from a shared archive.
10629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10630
10631 # Create a temporary old-style archive to link instead of a shared archive.
10632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10633
10634 # Commands used to build and install a shared archive.
10635 archive_cmds=$lt_archive_cmds
10636 archive_expsym_cmds=$lt_archive_expsym_cmds
10637 postinstall_cmds=$lt_postinstall_cmds
10638 postuninstall_cmds=$lt_postuninstall_cmds
10639
10640 # Commands used to build a loadable module (assumed same as above if empty)
10641 module_cmds=$lt_module_cmds
10642 module_expsym_cmds=$lt_module_expsym_cmds
10643
10644 # Commands to strip libraries.
10645 old_striplib=$lt_old_striplib
10646 striplib=$lt_striplib
10647
10648 # Dependencies to place before the objects being linked to create a
10649 # shared library.
10650 predep_objects=$lt_predep_objects
10651
10652 # Dependencies to place after the objects being linked to create a
10653 # shared library.
10654 postdep_objects=$lt_postdep_objects
10655
10656 # Dependencies to place before the objects being linked to create a
10657 # shared library.
10658 predeps=$lt_predeps
10659
10660 # Dependencies to place after the objects being linked to create a
10661 # shared library.
10662 postdeps=$lt_postdeps
10663
10664 # The library search path used internally by the compiler when linking
10665 # a shared library.
10666 compiler_lib_search_path=$lt_compiler_lib_search_path
10667
10668 # Method to check whether dependent libraries are shared objects.
10669 deplibs_check_method=$lt_deplibs_check_method
10670
10671 # Command to use when deplibs_check_method == file_magic.
10672 file_magic_cmd=$lt_file_magic_cmd
10673
10674 # Flag that allows shared libraries with undefined symbols to be built.
10675 allow_undefined_flag=$lt_allow_undefined_flag
10676
10677 # Flag that forces no undefined symbols.
10678 no_undefined_flag=$lt_no_undefined_flag
10679
10680 # Commands used to finish a libtool library installation in a directory.
10681 finish_cmds=$lt_finish_cmds
10682
10683 # Same as above, but a single script fragment to be evaled but not shown.
10684 finish_eval=$lt_finish_eval
10685
10686 # Take the output of nm and produce a listing of raw symbols and C names.
10687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10688
10689 # Transform the output of nm in a proper C declaration
10690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10691
10692 # Transform the output of nm in a C name address pair
10693 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10694
10695 # This is the shared library runtime path variable.
10696 runpath_var=$runpath_var
10697
10698 # This is the shared library path variable.
10699 shlibpath_var=$shlibpath_var
10700
10701 # Is shlibpath searched before the hard-coded library search path?
10702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10703
10704 # How to hardcode a shared library path into an executable.
10705 hardcode_action=$hardcode_action
10706
10707 # Whether we should hardcode library paths into libraries.
10708 hardcode_into_libs=$hardcode_into_libs
10709
10710 # Flag to hardcode \$libdir into a binary during linking.
10711 # This must work even if \$libdir does not exist.
10712 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10713
10714 # If ld is used when linking, flag to hardcode \$libdir into
10715 # a binary during linking. This must work even if \$libdir does
10716 # not exist.
10717 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10718
10719 # Whether we need a single -rpath flag with a separated argument.
10720 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10721
10722 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10723 # resulting binary.
10724 hardcode_direct=$hardcode_direct
10725
10726 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10727 # resulting binary.
10728 hardcode_minus_L=$hardcode_minus_L
10729
10730 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10731 # the resulting binary.
10732 hardcode_shlibpath_var=$hardcode_shlibpath_var
10733
10734 # Set to yes if building a shared library automatically hardcodes DIR into the library
10735 # and all subsequent libraries and executables linked against it.
10736 hardcode_automatic=$hardcode_automatic
10737
10738 # Variables whose values should be saved in libtool wrapper scripts and
10739 # restored at relink time.
10740 variables_saved_for_relink="$variables_saved_for_relink"
10741
10742 # Whether libtool must link a program against all its dependency libraries.
10743 link_all_deplibs=$link_all_deplibs
10744
10745 # Compile-time system search path for libraries
10746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10747
10748 # Run-time system search path for libraries
10749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10750
10751 # Fix the shell variable \$srcfile for the compiler.
10752 fix_srcfile_path="$fix_srcfile_path"
10753
10754 # Set to yes if exported symbols are required.
10755 always_export_symbols=$always_export_symbols
10756
10757 # The commands to list exported symbols.
10758 export_symbols_cmds=$lt_export_symbols_cmds
10759
10760 # The commands to extract the exported symbol list from a shared archive.
10761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10762
10763 # Symbols that should not be listed in the preloaded symbols.
10764 exclude_expsyms=$lt_exclude_expsyms
10765
10766 # Symbols that must always be exported.
10767 include_expsyms=$lt_include_expsyms
10768
10769 # ### END LIBTOOL CONFIG
10770
10771 __EOF__
10772
10773
10774   case $host_os in
10775   aix3*)
10776     cat <<\EOF >> "$cfgfile"
10777
10778 # AIX sometimes has problems with the GCC collect2 program.  For some
10779 # reason, if we set the COLLECT_NAMES environment variable, the problems
10780 # vanish in a puff of smoke.
10781 if test "X${COLLECT_NAMES+set}" != Xset; then
10782   COLLECT_NAMES=
10783   export COLLECT_NAMES
10784 fi
10785 EOF
10786     ;;
10787   esac
10788
10789   # We use sed instead of cat because bash on DJGPP gets confused if
10790   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10791   # text mode, it properly converts lines to CR/LF.  This bash problem
10792   # is reportedly fixed, but why not run on old versions too?
10793   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10794
10795   mv -f "$cfgfile" "$ofile" || \
10796     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10797   chmod +x "$ofile"
10798
10799 else
10800   # If there is no Makefile yet, we rely on a make rule to execute
10801   # `config.status --recheck' to rerun these tests and create the
10802   # libtool script then.
10803   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10804   if test -f "$ltmain_in"; then
10805     test -f Makefile && make "$ltmain"
10806   fi
10807 fi
10808
10809
10810 ac_ext=c
10811 ac_cpp='$CPP $CPPFLAGS'
10812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10815
10816 CC="$lt_save_CC"
10817
10818
10819 # Check whether --with-tags was given.
10820 if test "${with_tags+set}" = set; then
10821   withval=$with_tags; tagnames="$withval"
10822 fi
10823
10824
10825 if test -f "$ltmain" && test -n "$tagnames"; then
10826   if test ! -f "${ofile}"; then
10827     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10828 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10829   fi
10830
10831   if test -z "$LTCC"; then
10832     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10833     if test -z "$LTCC"; then
10834       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10835 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10836     else
10837       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10838 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10839     fi
10840   fi
10841   if test -z "$LTCFLAGS"; then
10842     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10843   fi
10844
10845   # Extract list of available tagged configurations in $ofile.
10846   # Note that this assumes the entire list is on one line.
10847   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10848
10849   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10850   for tagname in $tagnames; do
10851     IFS="$lt_save_ifs"
10852     # Check whether tagname contains only valid characters
10853     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10854     "") ;;
10855     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10856 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10857    { (exit 1); exit 1; }; }
10858         ;;
10859     esac
10860
10861     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10862     then
10863       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10864 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10865    { (exit 1); exit 1; }; }
10866     fi
10867
10868     # Update the list of available tags.
10869     if test -n "$tagname"; then
10870       echo appending configuration tag \"$tagname\" to $ofile
10871
10872       case $tagname in
10873       CXX)
10874         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10875             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10876             (test "X$CXX" != "Xg++"))) ; then
10877           ac_ext=cpp
10878 ac_cpp='$CXXCPP $CPPFLAGS'
10879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10882
10883
10884
10885
10886 archive_cmds_need_lc_CXX=no
10887 allow_undefined_flag_CXX=
10888 always_export_symbols_CXX=no
10889 archive_expsym_cmds_CXX=
10890 export_dynamic_flag_spec_CXX=
10891 hardcode_direct_CXX=no
10892 hardcode_libdir_flag_spec_CXX=
10893 hardcode_libdir_flag_spec_ld_CXX=
10894 hardcode_libdir_separator_CXX=
10895 hardcode_minus_L_CXX=no
10896 hardcode_shlibpath_var_CXX=unsupported
10897 hardcode_automatic_CXX=no
10898 module_cmds_CXX=
10899 module_expsym_cmds_CXX=
10900 link_all_deplibs_CXX=unknown
10901 old_archive_cmds_CXX=$old_archive_cmds
10902 no_undefined_flag_CXX=
10903 whole_archive_flag_spec_CXX=
10904 enable_shared_with_static_runtimes_CXX=no
10905
10906 # Dependencies to place before and after the object being linked:
10907 predep_objects_CXX=
10908 postdep_objects_CXX=
10909 predeps_CXX=
10910 postdeps_CXX=
10911 compiler_lib_search_path_CXX=
10912
10913 # Source file extension for C++ test sources.
10914 ac_ext=cpp
10915
10916 # Object file extension for compiled C++ test sources.
10917 objext=o
10918 objext_CXX=$objext
10919
10920 # Code to be used in simple compile tests
10921 lt_simple_compile_test_code="int some_variable = 0;\n"
10922
10923 # Code to be used in simple link tests
10924 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10925
10926 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10927
10928 # If no C compiler was specified, use CC.
10929 LTCC=${LTCC-"$CC"}
10930
10931 # If no C compiler flags were specified, use CFLAGS.
10932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10933
10934 # Allow CC to be a program name with arguments.
10935 compiler=$CC
10936
10937
10938 # save warnings/boilerplate of simple test code
10939 ac_outfile=conftest.$ac_objext
10940 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10942 _lt_compiler_boilerplate=`cat conftest.err`
10943 $rm conftest*
10944
10945 ac_outfile=conftest.$ac_objext
10946 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10948 _lt_linker_boilerplate=`cat conftest.err`
10949 $rm conftest*
10950
10951
10952 # Allow CC to be a program name with arguments.
10953 lt_save_CC=$CC
10954 lt_save_LD=$LD
10955 lt_save_GCC=$GCC
10956 GCC=$GXX
10957 lt_save_with_gnu_ld=$with_gnu_ld
10958 lt_save_path_LD=$lt_cv_path_LD
10959 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10960   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10961 else
10962   $as_unset lt_cv_prog_gnu_ld
10963 fi
10964 if test -n "${lt_cv_path_LDCXX+set}"; then
10965   lt_cv_path_LD=$lt_cv_path_LDCXX
10966 else
10967   $as_unset lt_cv_path_LD
10968 fi
10969 test -z "${LDCXX+set}" || LD=$LDCXX
10970 CC=${CXX-"c++"}
10971 compiler=$CC
10972 compiler_CXX=$CC
10973 for cc_temp in $compiler""; do
10974   case $cc_temp in
10975     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10976     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10977     \-*) ;;
10978     *) break;;
10979   esac
10980 done
10981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10982
10983
10984 # We don't want -fno-exception wen compiling C++ code, so set the
10985 # no_builtin_flag separately
10986 if test "$GXX" = yes; then
10987   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10988 else
10989   lt_prog_compiler_no_builtin_flag_CXX=
10990 fi
10991
10992 if test "$GXX" = yes; then
10993   # Set up default GNU C++ configuration
10994
10995
10996 # Check whether --with-gnu-ld was given.
10997 if test "${with_gnu_ld+set}" = set; then
10998   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10999 else
11000   with_gnu_ld=no
11001 fi
11002
11003 ac_prog=ld
11004 if test "$GCC" = yes; then
11005   # Check if gcc -print-prog-name=ld gives a path.
11006   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11007 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11008   case $host in
11009   *-*-mingw*)
11010     # gcc leaves a trailing carriage return which upsets mingw
11011     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11012   *)
11013     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11014   esac
11015   case $ac_prog in
11016     # Accept absolute paths.
11017     [\\/]* | ?:[\\/]*)
11018       re_direlt='/[^/][^/]*/\.\./'
11019       # Canonicalize the pathname of ld
11020       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11021       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11022         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11023       done
11024       test -z "$LD" && LD="$ac_prog"
11025       ;;
11026   "")
11027     # If it fails, then pretend we aren't using GCC.
11028     ac_prog=ld
11029     ;;
11030   *)
11031     # If it is relative, then search for the first ld in PATH.
11032     with_gnu_ld=unknown
11033     ;;
11034   esac
11035 elif test "$with_gnu_ld" = yes; then
11036   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11037 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11038 else
11039   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11040 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11041 fi
11042 if test "${lt_cv_path_LD+set}" = set; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   if test -z "$LD"; then
11046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11047   for ac_dir in $PATH; do
11048     IFS="$lt_save_ifs"
11049     test -z "$ac_dir" && ac_dir=.
11050     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11051       lt_cv_path_LD="$ac_dir/$ac_prog"
11052       # Check to see if the program is GNU ld.  I'd rather use --version,
11053       # but apparently some variants of GNU ld only accept -v.
11054       # Break only if it was the GNU/non-GNU ld that we prefer.
11055       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11056       *GNU* | *'with BFD'*)
11057         test "$with_gnu_ld" != no && break
11058         ;;
11059       *)
11060         test "$with_gnu_ld" != yes && break
11061         ;;
11062       esac
11063     fi
11064   done
11065   IFS="$lt_save_ifs"
11066 else
11067   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11068 fi
11069 fi
11070
11071 LD="$lt_cv_path_LD"
11072 if test -n "$LD"; then
11073   { echo "$as_me:$LINENO: result: $LD" >&5
11074 echo "${ECHO_T}$LD" >&6; }
11075 else
11076   { echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6; }
11078 fi
11079 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11080 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11081    { (exit 1); exit 1; }; }
11082 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11083 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11084 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11088 case `$LD -v 2>&1 </dev/null` in
11089 *GNU* | *'with BFD'*)
11090   lt_cv_prog_gnu_ld=yes
11091   ;;
11092 *)
11093   lt_cv_prog_gnu_ld=no
11094   ;;
11095 esac
11096 fi
11097 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11098 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11099 with_gnu_ld=$lt_cv_prog_gnu_ld
11100
11101
11102
11103   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11104   # archiving commands below assume that GNU ld is being used.
11105   if test "$with_gnu_ld" = yes; then
11106     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107     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'
11108
11109     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11110     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11111
11112     # If archive_cmds runs LD, not CC, wlarc should be empty
11113     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11114     #     investigate it a little bit more. (MM)
11115     wlarc='${wl}'
11116
11117     # ancient GNU ld didn't support --whole-archive et. al.
11118     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11119         grep 'no-whole-archive' > /dev/null; then
11120       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11121     else
11122       whole_archive_flag_spec_CXX=
11123     fi
11124   else
11125     with_gnu_ld=no
11126     wlarc=
11127
11128     # A generic and very simple default shared library creation
11129     # command for GNU C++ for the case where it uses the native
11130     # linker, instead of GNU ld.  If possible, this setting should
11131     # overridden to take advantage of the native linker features on
11132     # the platform it is being used on.
11133     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11134   fi
11135
11136   # Commands to make compiler produce verbose output that lists
11137   # what "hidden" libraries, object files and flags are used when
11138   # linking a shared library.
11139   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11140
11141 else
11142   GXX=no
11143   with_gnu_ld=no
11144   wlarc=
11145 fi
11146
11147 # PORTME: fill in a description of your system's C++ link characteristics
11148 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11149 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11150 ld_shlibs_CXX=yes
11151 case $host_os in
11152   aix3*)
11153     # FIXME: insert proper C++ library support
11154     ld_shlibs_CXX=no
11155     ;;
11156   aix4* | aix5*)
11157     if test "$host_cpu" = ia64; then
11158       # On IA64, the linker does run time linking by default, so we don't
11159       # have to do anything special.
11160       aix_use_runtimelinking=no
11161       exp_sym_flag='-Bexport'
11162       no_entry_flag=""
11163     else
11164       aix_use_runtimelinking=no
11165
11166       # Test if we are trying to use run time linking or normal
11167       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11168       # need to do runtime linking.
11169       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11170         for ld_flag in $LDFLAGS; do
11171           case $ld_flag in
11172           *-brtl*)
11173             aix_use_runtimelinking=yes
11174             break
11175             ;;
11176           esac
11177         done
11178         ;;
11179       esac
11180
11181       exp_sym_flag='-bexport'
11182       no_entry_flag='-bnoentry'
11183     fi
11184
11185     # When large executables or shared objects are built, AIX ld can
11186     # have problems creating the table of contents.  If linking a library
11187     # or program results in "error TOC overflow" add -mminimal-toc to
11188     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11189     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11190
11191     archive_cmds_CXX=''
11192     hardcode_direct_CXX=yes
11193     hardcode_libdir_separator_CXX=':'
11194     link_all_deplibs_CXX=yes
11195
11196     if test "$GXX" = yes; then
11197       case $host_os in aix4.[012]|aix4.[012].*)
11198       # We only want to do this on AIX 4.2 and lower, the check
11199       # below for broken collect2 doesn't work under 4.3+
11200         collect2name=`${CC} -print-prog-name=collect2`
11201         if test -f "$collect2name" && \
11202            strings "$collect2name" | grep resolve_lib_name >/dev/null
11203         then
11204           # We have reworked collect2
11205           hardcode_direct_CXX=yes
11206         else
11207           # We have old collect2
11208           hardcode_direct_CXX=unsupported
11209           # It fails to find uninstalled libraries when the uninstalled
11210           # path is not listed in the libpath.  Setting hardcode_minus_L
11211           # to unsupported forces relinking
11212           hardcode_minus_L_CXX=yes
11213           hardcode_libdir_flag_spec_CXX='-L$libdir'
11214           hardcode_libdir_separator_CXX=
11215         fi
11216         ;;
11217       esac
11218       shared_flag='-shared'
11219       if test "$aix_use_runtimelinking" = yes; then
11220         shared_flag="$shared_flag "'${wl}-G'
11221       fi
11222     else
11223       # not using gcc
11224       if test "$host_cpu" = ia64; then
11225         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11226         # chokes on -Wl,-G. The following line is correct:
11227         shared_flag='-G'
11228       else
11229         if test "$aix_use_runtimelinking" = yes; then
11230           shared_flag='${wl}-G'
11231         else
11232           shared_flag='${wl}-bM:SRE'
11233         fi
11234       fi
11235     fi
11236
11237     # It seems that -bexpall does not export symbols beginning with
11238     # underscore (_), so it is better to generate a list of symbols to export.
11239     always_export_symbols_CXX=yes
11240     if test "$aix_use_runtimelinking" = yes; then
11241       # Warning - without using the other runtime loading flags (-brtl),
11242       # -berok will link without error, but may produce a broken library.
11243       allow_undefined_flag_CXX='-berok'
11244       # Determine the default libpath from the value encoded in an empty executable.
11245       cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251
11252 int
11253 main ()
11254 {
11255
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_link") 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } && {
11274          test -z "$ac_cxx_werror_flag" ||
11275          test ! -s conftest.err
11276        } && test -s conftest$ac_exeext &&
11277        $as_test_x conftest$ac_exeext; then
11278
11279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11280 }'`
11281 # Check for a 64-bit object if we didn't find anything.
11282 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; }
11283 }'`; fi
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11292       conftest$ac_exeext conftest.$ac_ext
11293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11294
11295       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11296
11297       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"
11298      else
11299       if test "$host_cpu" = ia64; then
11300         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11301         allow_undefined_flag_CXX="-z nodefs"
11302         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"
11303       else
11304         # Determine the default libpath from the value encoded in an empty executable.
11305         cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h.  */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h.  */
11311
11312 int
11313 main ()
11314 {
11315
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324   *) ac_try_echo=$ac_try;;
11325 esac
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327   (eval "$ac_link") 2>conftest.er1
11328   ac_status=$?
11329   grep -v '^ *+' conftest.er1 >conftest.err
11330   rm -f conftest.er1
11331   cat conftest.err >&5
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); } && {
11334          test -z "$ac_cxx_werror_flag" ||
11335          test ! -s conftest.err
11336        } && test -s conftest$ac_exeext &&
11337        $as_test_x conftest$ac_exeext; then
11338
11339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11340 }'`
11341 # Check for a 64-bit object if we didn't find anything.
11342 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; }
11343 }'`; fi
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348
11349 fi
11350
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352       conftest$ac_exeext conftest.$ac_ext
11353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11354
11355         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11356         # Warning - without using the other run time loading flags,
11357         # -berok will link without error, but may produce a broken library.
11358         no_undefined_flag_CXX=' ${wl}-bernotok'
11359         allow_undefined_flag_CXX=' ${wl}-berok'
11360         # Exported symbols can be pulled into shared objects from archives
11361         whole_archive_flag_spec_CXX='$convenience'
11362         archive_cmds_need_lc_CXX=yes
11363         # This is similar to how AIX traditionally builds its shared libraries.
11364         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'
11365       fi
11366     fi
11367     ;;
11368
11369   beos*)
11370     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11371       allow_undefined_flag_CXX=unsupported
11372       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11373       # support --undefined.  This deserves some investigation.  FIXME
11374       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11375     else
11376       ld_shlibs_CXX=no
11377     fi
11378     ;;
11379
11380   chorus*)
11381     case $cc_basename in
11382       *)
11383         # FIXME: insert proper C++ library support
11384         ld_shlibs_CXX=no
11385         ;;
11386     esac
11387     ;;
11388
11389   cygwin* | mingw* | pw32*)
11390     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11391     # as there is no search path for DLLs.
11392     hardcode_libdir_flag_spec_CXX='-L$libdir'
11393     allow_undefined_flag_CXX=unsupported
11394     always_export_symbols_CXX=no
11395     enable_shared_with_static_runtimes_CXX=yes
11396
11397     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11398       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'
11399       # If the export-symbols file already is a .def file (1st line
11400       # is EXPORTS), use it as is; otherwise, prepend...
11401       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11402         cp $export_symbols $output_objdir/$soname.def;
11403       else
11404         echo EXPORTS > $output_objdir/$soname.def;
11405         cat $export_symbols >> $output_objdir/$soname.def;
11406       fi~
11407       $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'
11408     else
11409       ld_shlibs_CXX=no
11410     fi
11411   ;;
11412       darwin* | rhapsody*)
11413         case $host_os in
11414         rhapsody* | darwin1.[012])
11415          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11416          ;;
11417        *) # Darwin 1.3 on
11418          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11419            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11420          else
11421            case ${MACOSX_DEPLOYMENT_TARGET} in
11422              10.[012])
11423                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11424                ;;
11425              10.*)
11426                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11427                ;;
11428            esac
11429          fi
11430          ;;
11431         esac
11432       archive_cmds_need_lc_CXX=no
11433       hardcode_direct_CXX=no
11434       hardcode_automatic_CXX=yes
11435       hardcode_shlibpath_var_CXX=unsupported
11436       whole_archive_flag_spec_CXX=''
11437       link_all_deplibs_CXX=yes
11438
11439     if test "$GXX" = yes ; then
11440       lt_int_apple_cc_single_mod=no
11441       output_verbose_link_cmd='echo'
11442       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11443        lt_int_apple_cc_single_mod=yes
11444       fi
11445       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11446        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11447       else
11448           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'
11449         fi
11450         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11451         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11452           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11453             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}'
11454           else
11455             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}'
11456           fi
11457             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}'
11458       else
11459       case $cc_basename in
11460         xlc*)
11461          output_verbose_link_cmd='echo'
11462           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'
11463           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11464           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11465           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}'
11466           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}'
11467           ;;
11468        *)
11469          ld_shlibs_CXX=no
11470           ;;
11471       esac
11472       fi
11473         ;;
11474
11475   dgux*)
11476     case $cc_basename in
11477       ec++*)
11478         # FIXME: insert proper C++ library support
11479         ld_shlibs_CXX=no
11480         ;;
11481       ghcx*)
11482         # Green Hills C++ Compiler
11483         # FIXME: insert proper C++ library support
11484         ld_shlibs_CXX=no
11485         ;;
11486       *)
11487         # FIXME: insert proper C++ library support
11488         ld_shlibs_CXX=no
11489         ;;
11490     esac
11491     ;;
11492   freebsd[12]*)
11493     # C++ shared libraries reported to be fairly broken before switch to ELF
11494     ld_shlibs_CXX=no
11495     ;;
11496   freebsd-elf*)
11497     archive_cmds_need_lc_CXX=no
11498     ;;
11499   freebsd* | dragonfly*)
11500     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11501     # conventions
11502     ld_shlibs_CXX=yes
11503     ;;
11504   gnu*)
11505     ;;
11506   hpux9*)
11507     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11508     hardcode_libdir_separator_CXX=:
11509     export_dynamic_flag_spec_CXX='${wl}-E'
11510     hardcode_direct_CXX=yes
11511     hardcode_minus_L_CXX=yes # Not in the search PATH,
11512                                 # but as the default
11513                                 # location of the library.
11514
11515     case $cc_basename in
11516     CC*)
11517       # FIXME: insert proper C++ library support
11518       ld_shlibs_CXX=no
11519       ;;
11520     aCC*)
11521       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'
11522       # Commands to make compiler produce verbose output that lists
11523       # what "hidden" libraries, object files and flags are used when
11524       # linking a shared library.
11525       #
11526       # There doesn't appear to be a way to prevent this compiler from
11527       # explicitly linking system object files so we need to strip them
11528       # from the output so that they don't get included in the library
11529       # dependencies.
11530       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'
11531       ;;
11532     *)
11533       if test "$GXX" = yes; then
11534         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'
11535       else
11536         # FIXME: insert proper C++ library support
11537         ld_shlibs_CXX=no
11538       fi
11539       ;;
11540     esac
11541     ;;
11542   hpux10*|hpux11*)
11543     if test $with_gnu_ld = no; then
11544       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11545       hardcode_libdir_separator_CXX=:
11546
11547       case $host_cpu in
11548       hppa*64*|ia64*)
11549         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11550         ;;
11551       *)
11552         export_dynamic_flag_spec_CXX='${wl}-E'
11553         ;;
11554       esac
11555     fi
11556     case $host_cpu in
11557     hppa*64*|ia64*)
11558       hardcode_direct_CXX=no
11559       hardcode_shlibpath_var_CXX=no
11560       ;;
11561     *)
11562       hardcode_direct_CXX=yes
11563       hardcode_minus_L_CXX=yes # Not in the search PATH,
11564                                               # but as the default
11565                                               # location of the library.
11566       ;;
11567     esac
11568
11569     case $cc_basename in
11570       CC*)
11571         # FIXME: insert proper C++ library support
11572         ld_shlibs_CXX=no
11573         ;;
11574       aCC*)
11575         case $host_cpu in
11576         hppa*64*)
11577           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11578           ;;
11579         ia64*)
11580           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11581           ;;
11582         *)
11583           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11584           ;;
11585         esac
11586         # Commands to make compiler produce verbose output that lists
11587         # what "hidden" libraries, object files and flags are used when
11588         # linking a shared library.
11589         #
11590         # There doesn't appear to be a way to prevent this compiler from
11591         # explicitly linking system object files so we need to strip them
11592         # from the output so that they don't get included in the library
11593         # dependencies.
11594         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'
11595         ;;
11596       *)
11597         if test "$GXX" = yes; then
11598           if test $with_gnu_ld = no; then
11599             case $host_cpu in
11600             hppa*64*)
11601               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11602               ;;
11603             ia64*)
11604               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11605               ;;
11606             *)
11607               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'
11608               ;;
11609             esac
11610           fi
11611         else
11612           # FIXME: insert proper C++ library support
11613           ld_shlibs_CXX=no
11614         fi
11615         ;;
11616     esac
11617     ;;
11618   interix3*)
11619     hardcode_direct_CXX=no
11620     hardcode_shlibpath_var_CXX=no
11621     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622     export_dynamic_flag_spec_CXX='${wl}-E'
11623     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11624     # Instead, shared libraries are loaded at an image base (0x10000000 by
11625     # default) and relocated if they conflict, which is a slow very memory
11626     # consuming and fragmenting process.  To avoid this, we pick a random,
11627     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11628     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11629     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'
11630     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'
11631     ;;
11632   irix5* | irix6*)
11633     case $cc_basename in
11634       CC*)
11635         # SGI C++
11636         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'
11637
11638         # Archives containing C++ object files must be created using
11639         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11640         # necessary to make sure instantiated templates are included
11641         # in the archive.
11642         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11643         ;;
11644       *)
11645         if test "$GXX" = yes; then
11646           if test "$with_gnu_ld" = no; then
11647             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'
11648           else
11649             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'
11650           fi
11651         fi
11652         link_all_deplibs_CXX=yes
11653         ;;
11654     esac
11655     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656     hardcode_libdir_separator_CXX=:
11657     ;;
11658   linux* | k*bsd*-gnu)
11659     case $cc_basename in
11660       KCC*)
11661         # Kuck and Associates, Inc. (KAI) C++ Compiler
11662
11663         # KCC will only create a shared library if the output file
11664         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11665         # to its proper name (with version) after linking.
11666         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'
11667         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'
11668         # Commands to make compiler produce verbose output that lists
11669         # what "hidden" libraries, object files and flags are used when
11670         # linking a shared library.
11671         #
11672         # There doesn't appear to be a way to prevent this compiler from
11673         # explicitly linking system object files so we need to strip them
11674         # from the output so that they don't get included in the library
11675         # dependencies.
11676         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'
11677
11678         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11679         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11680
11681         # Archives containing C++ object files must be created using
11682         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11683         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11684         ;;
11685       icpc*)
11686         # Intel C++
11687         with_gnu_ld=yes
11688         # version 8.0 and above of icpc choke on multiply defined symbols
11689         # if we add $predep_objects and $postdep_objects, however 7.1 and
11690         # earlier do not add the objects themselves.
11691         case `$CC -V 2>&1` in
11692         *"Version 7."*)
11693           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11694           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'
11695           ;;
11696         *)  # Version 8.0 or newer
11697           tmp_idyn=
11698           case $host_cpu in
11699             ia64*) tmp_idyn=' -i_dynamic';;
11700           esac
11701           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702           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'
11703           ;;
11704         esac
11705         archive_cmds_need_lc_CXX=no
11706         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11707         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11708         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11709         ;;
11710       pgCC*)
11711         # Portland Group C++ compiler
11712         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11713         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'
11714
11715         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11716         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11717         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'
11718         ;;
11719       cxx*)
11720         # Compaq C++
11721         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11722         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'
11723
11724         runpath_var=LD_RUN_PATH
11725         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11726         hardcode_libdir_separator_CXX=:
11727
11728         # Commands to make compiler produce verbose output that lists
11729         # what "hidden" libraries, object files and flags are used when
11730         # linking a shared library.
11731         #
11732         # There doesn't appear to be a way to prevent this compiler from
11733         # explicitly linking system object files so we need to strip them
11734         # from the output so that they don't get included in the library
11735         # dependencies.
11736         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'
11737         ;;
11738     esac
11739     ;;
11740   lynxos*)
11741     # FIXME: insert proper C++ library support
11742     ld_shlibs_CXX=no
11743     ;;
11744   m88k*)
11745     # FIXME: insert proper C++ library support
11746     ld_shlibs_CXX=no
11747     ;;
11748   mvs*)
11749     case $cc_basename in
11750       cxx*)
11751         # FIXME: insert proper C++ library support
11752         ld_shlibs_CXX=no
11753         ;;
11754       *)
11755         # FIXME: insert proper C++ library support
11756         ld_shlibs_CXX=no
11757         ;;
11758     esac
11759     ;;
11760   netbsd* | netbsdelf*-gnu)
11761     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11762       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11763       wlarc=
11764       hardcode_libdir_flag_spec_CXX='-R$libdir'
11765       hardcode_direct_CXX=yes
11766       hardcode_shlibpath_var_CXX=no
11767     fi
11768     # Workaround some broken pre-1.5 toolchains
11769     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11770     ;;
11771   openbsd2*)
11772     # C++ shared libraries are fairly broken
11773     ld_shlibs_CXX=no
11774     ;;
11775   openbsd*)
11776     hardcode_direct_CXX=yes
11777     hardcode_shlibpath_var_CXX=no
11778     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11779     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11780     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11781       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11782       export_dynamic_flag_spec_CXX='${wl}-E'
11783       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11784     fi
11785     output_verbose_link_cmd='echo'
11786     ;;
11787   osf3*)
11788     case $cc_basename in
11789       KCC*)
11790         # Kuck and Associates, Inc. (KAI) C++ Compiler
11791
11792         # KCC will only create a shared library if the output file
11793         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11794         # to its proper name (with version) after linking.
11795         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'
11796
11797         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11798         hardcode_libdir_separator_CXX=:
11799
11800         # Archives containing C++ object files must be created using
11801         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11802         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11803
11804         ;;
11805       RCC*)
11806         # Rational C++ 2.4.1
11807         # FIXME: insert proper C++ library support
11808         ld_shlibs_CXX=no
11809         ;;
11810       cxx*)
11811         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11812         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'
11813
11814         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11815         hardcode_libdir_separator_CXX=:
11816
11817         # Commands to make compiler produce verbose output that lists
11818         # what "hidden" libraries, object files and flags are used when
11819         # linking a shared library.
11820         #
11821         # There doesn't appear to be a way to prevent this compiler from
11822         # explicitly linking system object files so we need to strip them
11823         # from the output so that they don't get included in the library
11824         # dependencies.
11825         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'
11826         ;;
11827       *)
11828         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11829           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11830           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'
11831
11832           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11833           hardcode_libdir_separator_CXX=:
11834
11835           # Commands to make compiler produce verbose output that lists
11836           # what "hidden" libraries, object files and flags are used when
11837           # linking a shared library.
11838           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11839
11840         else
11841           # FIXME: insert proper C++ library support
11842           ld_shlibs_CXX=no
11843         fi
11844         ;;
11845     esac
11846     ;;
11847   osf4* | osf5*)
11848     case $cc_basename in
11849       KCC*)
11850         # Kuck and Associates, Inc. (KAI) C++ Compiler
11851
11852         # KCC will only create a shared library if the output file
11853         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11854         # to its proper name (with version) after linking.
11855         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'
11856
11857         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11858         hardcode_libdir_separator_CXX=:
11859
11860         # Archives containing C++ object files must be created using
11861         # the KAI C++ compiler.
11862         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11863         ;;
11864       RCC*)
11865         # Rational C++ 2.4.1
11866         # FIXME: insert proper C++ library support
11867         ld_shlibs_CXX=no
11868         ;;
11869       cxx*)
11870         allow_undefined_flag_CXX=' -expect_unresolved \*'
11871         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'
11872         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11873           echo "-hidden">> $lib.exp~
11874           $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~
11875           $rm $lib.exp'
11876
11877         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11878         hardcode_libdir_separator_CXX=:
11879
11880         # Commands to make compiler produce verbose output that lists
11881         # what "hidden" libraries, object files and flags are used when
11882         # linking a shared library.
11883         #
11884         # There doesn't appear to be a way to prevent this compiler from
11885         # explicitly linking system object files so we need to strip them
11886         # from the output so that they don't get included in the library
11887         # dependencies.
11888         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'
11889         ;;
11890       *)
11891         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11892           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11893          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'
11894
11895           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11896           hardcode_libdir_separator_CXX=:
11897
11898           # Commands to make compiler produce verbose output that lists
11899           # what "hidden" libraries, object files and flags are used when
11900           # linking a shared library.
11901           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11902
11903         else
11904           # FIXME: insert proper C++ library support
11905           ld_shlibs_CXX=no
11906         fi
11907         ;;
11908     esac
11909     ;;
11910   psos*)
11911     # FIXME: insert proper C++ library support
11912     ld_shlibs_CXX=no
11913     ;;
11914   sunos4*)
11915     case $cc_basename in
11916       CC*)
11917         # Sun C++ 4.x
11918         # FIXME: insert proper C++ library support
11919         ld_shlibs_CXX=no
11920         ;;
11921       lcc*)
11922         # Lucid
11923         # FIXME: insert proper C++ library support
11924         ld_shlibs_CXX=no
11925         ;;
11926       *)
11927         # FIXME: insert proper C++ library support
11928         ld_shlibs_CXX=no
11929         ;;
11930     esac
11931     ;;
11932   solaris*)
11933     case $cc_basename in
11934       CC*)
11935         # Sun C++ 4.2, 5.x and Centerline C++
11936         archive_cmds_need_lc_CXX=yes
11937         no_undefined_flag_CXX=' -zdefs'
11938         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11940         $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'
11941
11942         hardcode_libdir_flag_spec_CXX='-R$libdir'
11943         hardcode_shlibpath_var_CXX=no
11944         case $host_os in
11945           solaris2.[0-5] | solaris2.[0-5].*) ;;
11946           *)
11947             # The C++ compiler is used as linker so we must use $wl
11948             # flag to pass the commands to the underlying system
11949             # linker. We must also pass each convience library through
11950             # to the system linker between allextract/defaultextract.
11951             # The C++ compiler will combine linker options so we
11952             # cannot just pass the convience library names through
11953             # without $wl.
11954             # Supported since Solaris 2.6 (maybe 2.5.1?)
11955             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'
11956             ;;
11957         esac
11958         link_all_deplibs_CXX=yes
11959
11960         output_verbose_link_cmd='echo'
11961
11962         # Archives containing C++ object files must be created using
11963         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11964         # necessary to make sure instantiated templates are included
11965         # in the archive.
11966         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11967         ;;
11968       gcx*)
11969         # Green Hills C++ Compiler
11970         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11971
11972         # The C++ compiler must be used to create the archive.
11973         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11974         ;;
11975       *)
11976         # GNU C++ compiler with Solaris linker
11977         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11978           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11979           if $CC --version | grep -v '^2\.7' > /dev/null; then
11980             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11981             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11982                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11983
11984             # Commands to make compiler produce verbose output that lists
11985             # what "hidden" libraries, object files and flags are used when
11986             # linking a shared library.
11987             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11988           else
11989             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11990             # platform.
11991             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11992             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11993                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11994
11995             # Commands to make compiler produce verbose output that lists
11996             # what "hidden" libraries, object files and flags are used when
11997             # linking a shared library.
11998             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11999           fi
12000
12001           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12002         fi
12003         ;;
12004     esac
12005     ;;
12006   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12007     no_undefined_flag_CXX='${wl}-z,text'
12008     archive_cmds_need_lc_CXX=no
12009     hardcode_shlibpath_var_CXX=no
12010     runpath_var='LD_RUN_PATH'
12011
12012     case $cc_basename in
12013       CC*)
12014         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12015         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12016         ;;
12017       *)
12018         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12019         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12020         ;;
12021     esac
12022     ;;
12023   sysv5* | sco3.2v5* | sco5v6*)
12024     # Note: We can NOT use -z defs as we might desire, because we do not
12025     # link with -lc, and that would cause any symbols used from libc to
12026     # always be unresolved, which means just about no library would
12027     # ever link correctly.  If we're not using GNU ld we use -z text
12028     # though, which does catch some bad symbols but isn't as heavy-handed
12029     # as -z defs.
12030     # For security reasons, it is highly recommended that you always
12031     # use absolute paths for naming shared libraries, and exclude the
12032     # DT_RUNPATH tag from executables and libraries.  But doing so
12033     # requires that you compile everything twice, which is a pain.
12034     # So that behaviour is only enabled if SCOABSPATH is set to a
12035     # non-empty value in the environment.  Most likely only useful for
12036     # creating official distributions of packages.
12037     # This is a hack until libtool officially supports absolute path
12038     # names for shared libraries.
12039     no_undefined_flag_CXX='${wl}-z,text'
12040     allow_undefined_flag_CXX='${wl}-z,nodefs'
12041     archive_cmds_need_lc_CXX=no
12042     hardcode_shlibpath_var_CXX=no
12043     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12044     hardcode_libdir_separator_CXX=':'
12045     link_all_deplibs_CXX=yes
12046     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12047     runpath_var='LD_RUN_PATH'
12048
12049     case $cc_basename in
12050       CC*)
12051         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12053         ;;
12054       *)
12055         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12056         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12057         ;;
12058     esac
12059     ;;
12060   tandem*)
12061     case $cc_basename in
12062       NCC*)
12063         # NonStop-UX NCC 3.20
12064         # FIXME: insert proper C++ library support
12065         ld_shlibs_CXX=no
12066         ;;
12067       *)
12068         # FIXME: insert proper C++ library support
12069         ld_shlibs_CXX=no
12070         ;;
12071     esac
12072     ;;
12073   vxworks*)
12074     # FIXME: insert proper C++ library support
12075     ld_shlibs_CXX=no
12076     ;;
12077   *)
12078     # FIXME: insert proper C++ library support
12079     ld_shlibs_CXX=no
12080     ;;
12081 esac
12082 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12083 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12084 test "$ld_shlibs_CXX" = no && can_build_shared=no
12085
12086 GCC_CXX="$GXX"
12087 LD_CXX="$LD"
12088
12089
12090 cat > conftest.$ac_ext <<EOF
12091 class Foo
12092 {
12093 public:
12094   Foo (void) { a = 0; }
12095 private:
12096   int a;
12097 };
12098 EOF
12099
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101   (eval $ac_compile) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; then
12105   # Parse the compiler output and extract the necessary
12106   # objects, libraries and library flags.
12107
12108   # Sentinel used to keep track of whether or not we are before
12109   # the conftest object file.
12110   pre_test_object_deps_done=no
12111
12112   # The `*' in the case matches for architectures that use `case' in
12113   # $output_verbose_cmd can trigger glob expansion during the loop
12114   # eval without this substitution.
12115   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12116
12117   for p in `eval $output_verbose_link_cmd`; do
12118     case $p in
12119
12120     -L* | -R* | -l*)
12121        # Some compilers place space between "-{L,R}" and the path.
12122        # Remove the space.
12123        if test $p = "-L" \
12124           || test $p = "-R"; then
12125          prev=$p
12126          continue
12127        else
12128          prev=
12129        fi
12130
12131        if test "$pre_test_object_deps_done" = no; then
12132          case $p in
12133          -L* | -R*)
12134            # Internal compiler library paths should come after those
12135            # provided the user.  The postdeps already come after the
12136            # user supplied libs so there is no need to process them.
12137            if test -z "$compiler_lib_search_path_CXX"; then
12138              compiler_lib_search_path_CXX="${prev}${p}"
12139            else
12140              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12141            fi
12142            ;;
12143          # The "-l" case would never come before the object being
12144          # linked, so don't bother handling this case.
12145          esac
12146        else
12147          if test -z "$postdeps_CXX"; then
12148            postdeps_CXX="${prev}${p}"
12149          else
12150            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12151          fi
12152        fi
12153        ;;
12154
12155     *.$objext)
12156        # This assumes that the test object file only shows up
12157        # once in the compiler output.
12158        if test "$p" = "conftest.$objext"; then
12159          pre_test_object_deps_done=yes
12160          continue
12161        fi
12162
12163        if test "$pre_test_object_deps_done" = no; then
12164          if test -z "$predep_objects_CXX"; then
12165            predep_objects_CXX="$p"
12166          else
12167            predep_objects_CXX="$predep_objects_CXX $p"
12168          fi
12169        else
12170          if test -z "$postdep_objects_CXX"; then
12171            postdep_objects_CXX="$p"
12172          else
12173            postdep_objects_CXX="$postdep_objects_CXX $p"
12174          fi
12175        fi
12176        ;;
12177
12178     *) ;; # Ignore the rest.
12179
12180     esac
12181   done
12182
12183   # Clean up.
12184   rm -f a.out a.exe
12185 else
12186   echo "libtool.m4: error: problem compiling CXX test program"
12187 fi
12188
12189 $rm -f confest.$objext
12190
12191 # PORTME: override above test on systems where it is broken
12192 case $host_os in
12193 interix3*)
12194   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12195   # hack all around it, let's just trust "g++" to DTRT.
12196   predep_objects_CXX=
12197   postdep_objects_CXX=
12198   postdeps_CXX=
12199   ;;
12200
12201 solaris*)
12202   case $cc_basename in
12203   CC*)
12204     # Adding this requires a known-good setup of shared libraries for
12205     # Sun compiler versions before 5.6, else PIC objects from an old
12206     # archive will be linked into the output, leading to subtle bugs.
12207     postdeps_CXX='-lCstd -lCrun'
12208     ;;
12209   esac
12210   ;;
12211 esac
12212
12213
12214 case " $postdeps_CXX " in
12215 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12216 esac
12217
12218 lt_prog_compiler_wl_CXX=
12219 lt_prog_compiler_pic_CXX=
12220 lt_prog_compiler_static_CXX=
12221
12222 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12224
12225   # C++ specific cases for pic, static, wl, etc.
12226   if test "$GXX" = yes; then
12227     lt_prog_compiler_wl_CXX='-Wl,'
12228     lt_prog_compiler_static_CXX='-static'
12229
12230     case $host_os in
12231     aix*)
12232       # All AIX code is PIC.
12233       if test "$host_cpu" = ia64; then
12234         # AIX 5 now supports IA64 processor
12235         lt_prog_compiler_static_CXX='-Bstatic'
12236       fi
12237       ;;
12238     amigaos*)
12239       # FIXME: we need at least 68020 code to build shared libraries, but
12240       # adding the `-m68020' flag to GCC prevents building anything better,
12241       # like `-m68040'.
12242       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12243       ;;
12244     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12245       # PIC is the default for these OSes.
12246       ;;
12247     mingw* | os2* | pw32*)
12248       # This hack is so that the source file can tell whether it is being
12249       # built for inclusion in a dll (and should export symbols for example).
12250       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12251       ;;
12252     darwin* | rhapsody*)
12253       # PIC is the default on this platform
12254       # Common symbols not allowed in MH_DYLIB files
12255       lt_prog_compiler_pic_CXX='-fno-common'
12256       ;;
12257     *djgpp*)
12258       # DJGPP does not support shared libraries at all
12259       lt_prog_compiler_pic_CXX=
12260       ;;
12261     interix3*)
12262       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12263       # Instead, we relocate shared libraries at runtime.
12264       ;;
12265     sysv4*MP*)
12266       if test -d /usr/nec; then
12267         lt_prog_compiler_pic_CXX=-Kconform_pic
12268       fi
12269       ;;
12270     hpux*)
12271       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12272       # not for PA HP-UX.
12273       case $host_cpu in
12274       hppa*64*|ia64*)
12275         ;;
12276       *)
12277         lt_prog_compiler_pic_CXX='-fPIC'
12278         ;;
12279       esac
12280       ;;
12281     *)
12282       lt_prog_compiler_pic_CXX='-fPIC'
12283       ;;
12284     esac
12285   else
12286     case $host_os in
12287       aix4* | aix5*)
12288         # All AIX code is PIC.
12289         if test "$host_cpu" = ia64; then
12290           # AIX 5 now supports IA64 processor
12291           lt_prog_compiler_static_CXX='-Bstatic'
12292         else
12293           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12294         fi
12295         ;;
12296       chorus*)
12297         case $cc_basename in
12298         cxch68*)
12299           # Green Hills C++ Compiler
12300           # _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"
12301           ;;
12302         esac
12303         ;;
12304        darwin*)
12305          # PIC is the default on this platform
12306          # Common symbols not allowed in MH_DYLIB files
12307          case $cc_basename in
12308            xlc*)
12309            lt_prog_compiler_pic_CXX='-qnocommon'
12310            lt_prog_compiler_wl_CXX='-Wl,'
12311            ;;
12312          esac
12313        ;;
12314       dgux*)
12315         case $cc_basename in
12316           ec++*)
12317             lt_prog_compiler_pic_CXX='-KPIC'
12318             ;;
12319           ghcx*)
12320             # Green Hills C++ Compiler
12321             lt_prog_compiler_pic_CXX='-pic'
12322             ;;
12323           *)
12324             ;;
12325         esac
12326         ;;
12327       freebsd* | dragonfly*)
12328         # FreeBSD uses GNU C++
12329         ;;
12330       hpux9* | hpux10* | hpux11*)
12331         case $cc_basename in
12332           CC*)
12333             lt_prog_compiler_wl_CXX='-Wl,'
12334             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12335             if test "$host_cpu" != ia64; then
12336               lt_prog_compiler_pic_CXX='+Z'
12337             fi
12338             ;;
12339           aCC*)
12340             lt_prog_compiler_wl_CXX='-Wl,'
12341             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12342             case $host_cpu in
12343             hppa*64*|ia64*)
12344               # +Z the default
12345               ;;
12346             *)
12347               lt_prog_compiler_pic_CXX='+Z'
12348               ;;
12349             esac
12350             ;;
12351           *)
12352             ;;
12353         esac
12354         ;;
12355       interix*)
12356         # This is c89, which is MS Visual C++ (no shared libs)
12357         # Anyone wants to do a port?
12358         ;;
12359       irix5* | irix6* | nonstopux*)
12360         case $cc_basename in
12361           CC*)
12362             lt_prog_compiler_wl_CXX='-Wl,'
12363             lt_prog_compiler_static_CXX='-non_shared'
12364             # CC pic flag -KPIC is the default.
12365             ;;
12366           *)
12367             ;;
12368         esac
12369         ;;
12370       linux* | k*bsd*-gnu)
12371         case $cc_basename in
12372           KCC*)
12373             # KAI C++ Compiler
12374             lt_prog_compiler_wl_CXX='--backend -Wl,'
12375             lt_prog_compiler_pic_CXX='-fPIC'
12376             ;;
12377           icpc* | ecpc*)
12378             # Intel C++
12379             lt_prog_compiler_wl_CXX='-Wl,'
12380             lt_prog_compiler_pic_CXX='-KPIC'
12381             lt_prog_compiler_static_CXX='-static'
12382             ;;
12383           pgCC*)
12384             # Portland Group C++ compiler.
12385             lt_prog_compiler_wl_CXX='-Wl,'
12386             lt_prog_compiler_pic_CXX='-fpic'
12387             lt_prog_compiler_static_CXX='-Bstatic'
12388             ;;
12389           cxx*)
12390             # Compaq C++
12391             # Make sure the PIC flag is empty.  It appears that all Alpha
12392             # Linux and Compaq Tru64 Unix objects are PIC.
12393             lt_prog_compiler_pic_CXX=
12394             lt_prog_compiler_static_CXX='-non_shared'
12395             ;;
12396           *)
12397             ;;
12398         esac
12399         ;;
12400       lynxos*)
12401         ;;
12402       m88k*)
12403         ;;
12404       mvs*)
12405         case $cc_basename in
12406           cxx*)
12407             lt_prog_compiler_pic_CXX='-W c,exportall'
12408             ;;
12409           *)
12410             ;;
12411         esac
12412         ;;
12413       netbsd* | netbsdelf*-gnu)
12414         ;;
12415       osf3* | osf4* | osf5*)
12416         case $cc_basename in
12417           KCC*)
12418             lt_prog_compiler_wl_CXX='--backend -Wl,'
12419             ;;
12420           RCC*)
12421             # Rational C++ 2.4.1
12422             lt_prog_compiler_pic_CXX='-pic'
12423             ;;
12424           cxx*)
12425             # Digital/Compaq C++
12426             lt_prog_compiler_wl_CXX='-Wl,'
12427             # Make sure the PIC flag is empty.  It appears that all Alpha
12428             # Linux and Compaq Tru64 Unix objects are PIC.
12429             lt_prog_compiler_pic_CXX=
12430             lt_prog_compiler_static_CXX='-non_shared'
12431             ;;
12432           *)
12433             ;;
12434         esac
12435         ;;
12436       psos*)
12437         ;;
12438       solaris*)
12439         case $cc_basename in
12440           CC*)
12441             # Sun C++ 4.2, 5.x and Centerline C++
12442             lt_prog_compiler_pic_CXX='-KPIC'
12443             lt_prog_compiler_static_CXX='-Bstatic'
12444             lt_prog_compiler_wl_CXX='-Qoption ld '
12445             ;;
12446           gcx*)
12447             # Green Hills C++ Compiler
12448             lt_prog_compiler_pic_CXX='-PIC'
12449             ;;
12450           *)
12451             ;;
12452         esac
12453         ;;
12454       sunos4*)
12455         case $cc_basename in
12456           CC*)
12457             # Sun C++ 4.x
12458             lt_prog_compiler_pic_CXX='-pic'
12459             lt_prog_compiler_static_CXX='-Bstatic'
12460             ;;
12461           lcc*)
12462             # Lucid
12463             lt_prog_compiler_pic_CXX='-pic'
12464             ;;
12465           *)
12466             ;;
12467         esac
12468         ;;
12469       tandem*)
12470         case $cc_basename in
12471           NCC*)
12472             # NonStop-UX NCC 3.20
12473             lt_prog_compiler_pic_CXX='-KPIC'
12474             ;;
12475           *)
12476             ;;
12477         esac
12478         ;;
12479       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12480         case $cc_basename in
12481           CC*)
12482             lt_prog_compiler_wl_CXX='-Wl,'
12483             lt_prog_compiler_pic_CXX='-KPIC'
12484             lt_prog_compiler_static_CXX='-Bstatic'
12485             ;;
12486         esac
12487         ;;
12488       vxworks*)
12489         ;;
12490       *)
12491         lt_prog_compiler_can_build_shared_CXX=no
12492         ;;
12493     esac
12494   fi
12495
12496 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12497 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12498
12499 #
12500 # Check to make sure the PIC flag actually works.
12501 #
12502 if test -n "$lt_prog_compiler_pic_CXX"; then
12503
12504 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12505 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12506 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12507   echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509   lt_prog_compiler_pic_works_CXX=no
12510   ac_outfile=conftest.$ac_objext
12511    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12512    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12513    # Insert the option either (1) after the last *FLAGS variable, or
12514    # (2) before a word containing "conftest.", or (3) at the end.
12515    # Note that $ac_compile itself does not contain backslashes and begins
12516    # with a dollar sign (not a hyphen), so the echo should work correctly.
12517    # The option is referenced via a variable to avoid confusing sed.
12518    lt_compile=`echo "$ac_compile" | $SED \
12519    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12521    -e 's:$: $lt_compiler_flag:'`
12522    (eval echo "\"\$as_me:12522: $lt_compile\"" >&5)
12523    (eval "$lt_compile" 2>conftest.err)
12524    ac_status=$?
12525    cat conftest.err >&5
12526    echo "$as_me:12526: \$? = $ac_status" >&5
12527    if (exit $ac_status) && test -s "$ac_outfile"; then
12528      # The compiler can only warn and ignore the option if not recognized
12529      # So say no if there are warnings other than the usual output.
12530      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12531      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12532      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12533        lt_prog_compiler_pic_works_CXX=yes
12534      fi
12535    fi
12536    $rm conftest*
12537
12538 fi
12539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12540 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12541
12542 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12543     case $lt_prog_compiler_pic_CXX in
12544      "" | " "*) ;;
12545      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12546      esac
12547 else
12548     lt_prog_compiler_pic_CXX=
12549      lt_prog_compiler_can_build_shared_CXX=no
12550 fi
12551
12552 fi
12553 case $host_os in
12554   # For platforms which do not support PIC, -DPIC is meaningless:
12555   *djgpp*)
12556     lt_prog_compiler_pic_CXX=
12557     ;;
12558   *)
12559     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12560     ;;
12561 esac
12562
12563 #
12564 # Check to make sure the static flag actually works.
12565 #
12566 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12567 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12568 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12569 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12570   echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572   lt_prog_compiler_static_works_CXX=no
12573    save_LDFLAGS="$LDFLAGS"
12574    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12575    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12576    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12577      # The linker can only warn and ignore the option if not recognized
12578      # So say no if there are warnings
12579      if test -s conftest.err; then
12580        # Append any errors to the config.log.
12581        cat conftest.err 1>&5
12582        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12583        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12584        if diff conftest.exp conftest.er2 >/dev/null; then
12585          lt_prog_compiler_static_works_CXX=yes
12586        fi
12587      else
12588        lt_prog_compiler_static_works_CXX=yes
12589      fi
12590    fi
12591    $rm conftest*
12592    LDFLAGS="$save_LDFLAGS"
12593
12594 fi
12595 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12596 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12597
12598 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12599     :
12600 else
12601     lt_prog_compiler_static_CXX=
12602 fi
12603
12604
12605 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12606 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12607 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12608   echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610   lt_cv_prog_compiler_c_o_CXX=no
12611    $rm -r conftest 2>/dev/null
12612    mkdir conftest
12613    cd conftest
12614    mkdir out
12615    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12616
12617    lt_compiler_flag="-o out/conftest2.$ac_objext"
12618    # Insert the option either (1) after the last *FLAGS variable, or
12619    # (2) before a word containing "conftest.", or (3) at the end.
12620    # Note that $ac_compile itself does not contain backslashes and begins
12621    # with a dollar sign (not a hyphen), so the echo should work correctly.
12622    lt_compile=`echo "$ac_compile" | $SED \
12623    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12624    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12625    -e 's:$: $lt_compiler_flag:'`
12626    (eval echo "\"\$as_me:12626: $lt_compile\"" >&5)
12627    (eval "$lt_compile" 2>out/conftest.err)
12628    ac_status=$?
12629    cat out/conftest.err >&5
12630    echo "$as_me:12630: \$? = $ac_status" >&5
12631    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12632    then
12633      # The compiler can only warn and ignore the option if not recognized
12634      # So say no if there are warnings
12635      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12636      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12637      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12638        lt_cv_prog_compiler_c_o_CXX=yes
12639      fi
12640    fi
12641    chmod u+w . 2>&5
12642    $rm conftest*
12643    # SGI C++ compiler will create directory out/ii_files/ for
12644    # template instantiation
12645    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12646    $rm out/* && rmdir out
12647    cd ..
12648    rmdir conftest
12649    $rm conftest*
12650
12651 fi
12652 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12653 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12654
12655
12656 hard_links="nottested"
12657 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12658   # do not overwrite the value of need_locks provided by the user
12659   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12661   hard_links=yes
12662   $rm conftest*
12663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12664   touch conftest.a
12665   ln conftest.a conftest.b 2>&5 || hard_links=no
12666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12667   { echo "$as_me:$LINENO: result: $hard_links" >&5
12668 echo "${ECHO_T}$hard_links" >&6; }
12669   if test "$hard_links" = no; then
12670     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12672     need_locks=warn
12673   fi
12674 else
12675   need_locks=no
12676 fi
12677
12678 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12680
12681   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12682   case $host_os in
12683   aix4* | aix5*)
12684     # If we're using GNU nm, then we don't want the "-C" option.
12685     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12686     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12687       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'
12688     else
12689       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'
12690     fi
12691     ;;
12692   pw32*)
12693     export_symbols_cmds_CXX="$ltdll_cmds"
12694   ;;
12695   cygwin* | mingw*)
12696     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'
12697   ;;
12698   linux* | k*bsd*-gnu)
12699     link_all_deplibs_CXX=no
12700   ;;
12701   *)
12702     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12703   ;;
12704   esac
12705
12706 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12707 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12708 test "$ld_shlibs_CXX" = no && can_build_shared=no
12709
12710 #
12711 # Do we need to explicitly link libc?
12712 #
12713 case "x$archive_cmds_need_lc_CXX" in
12714 x|xyes)
12715   # Assume -lc should be added
12716   archive_cmds_need_lc_CXX=yes
12717
12718   if test "$enable_shared" = yes && test "$GCC" = yes; then
12719     case $archive_cmds_CXX in
12720     *'~'*)
12721       # FIXME: we may have to deal with multi-command sequences.
12722       ;;
12723     '$CC '*)
12724       # Test whether the compiler implicitly links with -lc since on some
12725       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12726       # to ld, don't add -lc before -lgcc.
12727       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12729       $rm conftest*
12730       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12731
12732       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733   (eval $ac_compile) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } 2>conftest.err; then
12737         soname=conftest
12738         lib=conftest
12739         libobjs=conftest.$ac_objext
12740         deplibs=
12741         wl=$lt_prog_compiler_wl_CXX
12742         pic_flag=$lt_prog_compiler_pic_CXX
12743         compiler_flags=-v
12744         linker_flags=-v
12745         verstring=
12746         output_objdir=.
12747         libname=conftest
12748         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12749         allow_undefined_flag_CXX=
12750         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12751   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }
12755         then
12756           archive_cmds_need_lc_CXX=no
12757         else
12758           archive_cmds_need_lc_CXX=yes
12759         fi
12760         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12761       else
12762         cat conftest.err 1>&5
12763       fi
12764       $rm conftest*
12765       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12766 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12767       ;;
12768     esac
12769   fi
12770   ;;
12771 esac
12772
12773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12775 library_names_spec=
12776 libname_spec='lib$name'
12777 soname_spec=
12778 shrext_cmds=".so"
12779 postinstall_cmds=
12780 postuninstall_cmds=
12781 finish_cmds=
12782 finish_eval=
12783 shlibpath_var=
12784 shlibpath_overrides_runpath=unknown
12785 version_type=none
12786 dynamic_linker="$host_os ld.so"
12787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12788 if test "$GCC" = yes; then
12789   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12790   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12791     # if the path contains ";" then we assume it to be the separator
12792     # otherwise default to the standard path separator (i.e. ":") - it is
12793     # assumed that no part of a normal pathname contains ";" but that should
12794     # okay in the real world where ";" in dirpaths is itself problematic.
12795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12796   else
12797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12798   fi
12799 else
12800   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12801 fi
12802 need_lib_prefix=unknown
12803 hardcode_into_libs=no
12804
12805 # when you set need_version to no, make sure it does not cause -set_version
12806 # flags to be left without arguments
12807 need_version=unknown
12808
12809 case $host_os in
12810 aix3*)
12811   version_type=linux
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12813   shlibpath_var=LIBPATH
12814
12815   # AIX 3 has no versioning support, so we append a major version to the name.
12816   soname_spec='${libname}${release}${shared_ext}$major'
12817   ;;
12818
12819 aix4* | aix5*)
12820   version_type=linux
12821   need_lib_prefix=no
12822   need_version=no
12823   hardcode_into_libs=yes
12824   if test "$host_cpu" = ia64; then
12825     # AIX 5 supports IA64
12826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12827     shlibpath_var=LD_LIBRARY_PATH
12828   else
12829     # With GCC up to 2.95.x, collect2 would create an import file
12830     # for dependence libraries.  The import file would start with
12831     # the line `#! .'.  This would cause the generated library to
12832     # depend on `.', always an invalid library.  This was fixed in
12833     # development snapshots of GCC prior to 3.0.
12834     case $host_os in
12835       aix4 | aix4.[01] | aix4.[01].*)
12836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12837            echo ' yes '
12838            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12839         :
12840       else
12841         can_build_shared=no
12842       fi
12843       ;;
12844     esac
12845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12846     # soname into executable. Probably we can add versioning support to
12847     # collect2, so additional links can be useful in future.
12848     if test "$aix_use_runtimelinking" = yes; then
12849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12850       # instead of lib<name>.a to let people know that these are not
12851       # typical AIX shared libraries.
12852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853     else
12854       # We preserve .a as extension for shared libraries through AIX4.2
12855       # and later when we are not doing run time linking.
12856       library_names_spec='${libname}${release}.a $libname.a'
12857       soname_spec='${libname}${release}${shared_ext}$major'
12858     fi
12859     shlibpath_var=LIBPATH
12860   fi
12861   ;;
12862
12863 amigaos*)
12864   library_names_spec='$libname.ixlibrary $libname.a'
12865   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12866   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'
12867   ;;
12868
12869 beos*)
12870   library_names_spec='${libname}${shared_ext}'
12871   dynamic_linker="$host_os ld.so"
12872   shlibpath_var=LIBRARY_PATH
12873   ;;
12874
12875 bsdi[45]*)
12876   version_type=linux
12877   need_version=no
12878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879   soname_spec='${libname}${release}${shared_ext}$major'
12880   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12881   shlibpath_var=LD_LIBRARY_PATH
12882   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12883   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12884   # the default ld.so.conf also contains /usr/contrib/lib and
12885   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12886   # libtool to hard-code these into programs
12887   ;;
12888
12889 cygwin* | mingw* | pw32*)
12890   version_type=windows
12891   shrext_cmds=".dll"
12892   need_version=no
12893   need_lib_prefix=no
12894
12895   case $GCC,$host_os in
12896   yes,cygwin* | yes,mingw* | yes,pw32*)
12897     library_names_spec='$libname.dll.a'
12898     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12899     postinstall_cmds='base_file=`basename \${file}`~
12900       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12901       dldir=$destdir/`dirname \$dlpath`~
12902       test -d \$dldir || mkdir -p \$dldir~
12903       $install_prog $dir/$dlname \$dldir/$dlname~
12904       chmod a+x \$dldir/$dlname'
12905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12906       dlpath=$dir/\$dldll~
12907        $rm \$dlpath'
12908     shlibpath_overrides_runpath=yes
12909
12910     case $host_os in
12911     cygwin*)
12912       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12913       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12914       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12915       ;;
12916     mingw*)
12917       # MinGW DLLs use traditional 'lib' prefix
12918       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12919       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12920       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12921         # It is most probably a Windows format PATH printed by
12922         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12923         # path with ; separators, and with drive letters. We can handle the
12924         # drive letters (cygwin fileutils understands them), so leave them,
12925         # especially as we might pass files found there to a mingw objdump,
12926         # which wouldn't understand a cygwinified path. Ahh.
12927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12928       else
12929         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12930       fi
12931       ;;
12932     pw32*)
12933       # pw32 DLLs use 'pw' prefix rather than 'lib'
12934       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12935       ;;
12936     esac
12937     ;;
12938
12939   *)
12940     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12941     ;;
12942   esac
12943   dynamic_linker='Win32 ld.exe'
12944   # FIXME: first we should search . and the directory the executable is in
12945   shlibpath_var=PATH
12946   ;;
12947
12948 darwin* | rhapsody*)
12949   dynamic_linker="$host_os dyld"
12950   version_type=darwin
12951   need_lib_prefix=no
12952   need_version=no
12953   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12954   soname_spec='${libname}${release}${major}$shared_ext'
12955   shlibpath_overrides_runpath=yes
12956   shlibpath_var=DYLD_LIBRARY_PATH
12957   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12958   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12959   if test "$GCC" = yes; then
12960     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"`
12961   else
12962     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12963   fi
12964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12965   ;;
12966
12967 dgux*)
12968   version_type=linux
12969   need_lib_prefix=no
12970   need_version=no
12971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12972   soname_spec='${libname}${release}${shared_ext}$major'
12973   shlibpath_var=LD_LIBRARY_PATH
12974   ;;
12975
12976 freebsd1*)
12977   dynamic_linker=no
12978   ;;
12979
12980 freebsd* | dragonfly*)
12981   # DragonFly does not have aout.  When/if they implement a new
12982   # versioning mechanism, adjust this.
12983   if test -x /usr/bin/objformat; then
12984     objformat=`/usr/bin/objformat`
12985   else
12986     case $host_os in
12987     freebsd[123]*) objformat=aout ;;
12988     *) objformat=elf ;;
12989     esac
12990   fi
12991   version_type=freebsd-$objformat
12992   case $version_type in
12993     freebsd-elf*)
12994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12995       need_version=no
12996       need_lib_prefix=no
12997       ;;
12998     freebsd-*)
12999       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13000       need_version=yes
13001       ;;
13002   esac
13003   shlibpath_var=LD_LIBRARY_PATH
13004   case $host_os in
13005   freebsd2*)
13006     shlibpath_overrides_runpath=yes
13007     ;;
13008   freebsd3.[01]* | freebsdelf3.[01]*)
13009     shlibpath_overrides_runpath=yes
13010     hardcode_into_libs=yes
13011     ;;
13012   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13013   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13014     shlibpath_overrides_runpath=no
13015     hardcode_into_libs=yes
13016     ;;
13017   freebsd*) # from 4.6 on
13018     shlibpath_overrides_runpath=yes
13019     hardcode_into_libs=yes
13020     ;;
13021   esac
13022   ;;
13023
13024 gnu*)
13025   version_type=linux
13026   need_lib_prefix=no
13027   need_version=no
13028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13029   soname_spec='${libname}${release}${shared_ext}$major'
13030   shlibpath_var=LD_LIBRARY_PATH
13031   hardcode_into_libs=yes
13032   ;;
13033
13034 hpux9* | hpux10* | hpux11*)
13035   # Give a soname corresponding to the major version so that dld.sl refuses to
13036   # link against other versions.
13037   version_type=sunos
13038   need_lib_prefix=no
13039   need_version=no
13040   case $host_cpu in
13041   ia64*)
13042     shrext_cmds='.so'
13043     hardcode_into_libs=yes
13044     dynamic_linker="$host_os dld.so"
13045     shlibpath_var=LD_LIBRARY_PATH
13046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048     soname_spec='${libname}${release}${shared_ext}$major'
13049     if test "X$HPUX_IA64_MODE" = X32; then
13050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13051     else
13052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13053     fi
13054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13055     ;;
13056    hppa*64*)
13057      shrext_cmds='.sl'
13058      hardcode_into_libs=yes
13059      dynamic_linker="$host_os dld.sl"
13060      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13061      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13062      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063      soname_spec='${libname}${release}${shared_ext}$major'
13064      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13065      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13066      ;;
13067    *)
13068     shrext_cmds='.sl'
13069     dynamic_linker="$host_os dld.sl"
13070     shlibpath_var=SHLIB_PATH
13071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073     soname_spec='${libname}${release}${shared_ext}$major'
13074     ;;
13075   esac
13076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13077   postinstall_cmds='chmod 555 $lib'
13078   ;;
13079
13080 interix3*)
13081   version_type=linux
13082   need_lib_prefix=no
13083   need_version=no
13084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13085   soname_spec='${libname}${release}${shared_ext}$major'
13086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13087   shlibpath_var=LD_LIBRARY_PATH
13088   shlibpath_overrides_runpath=no
13089   hardcode_into_libs=yes
13090   ;;
13091
13092 irix5* | irix6* | nonstopux*)
13093   case $host_os in
13094     nonstopux*) version_type=nonstopux ;;
13095     *)
13096         if test "$lt_cv_prog_gnu_ld" = yes; then
13097                 version_type=linux
13098         else
13099                 version_type=irix
13100         fi ;;
13101   esac
13102   need_lib_prefix=no
13103   need_version=no
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13106   case $host_os in
13107   irix5* | nonstopux*)
13108     libsuff= shlibsuff=
13109     ;;
13110   *)
13111     case $LD in # libtool.m4 will add one of these switches to LD
13112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13113       libsuff= shlibsuff= libmagic=32-bit;;
13114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13115       libsuff=32 shlibsuff=N32 libmagic=N32;;
13116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13118     *) libsuff= shlibsuff= libmagic=never-match;;
13119     esac
13120     ;;
13121   esac
13122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13123   shlibpath_overrides_runpath=no
13124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13126   hardcode_into_libs=yes
13127   ;;
13128
13129 # No shared lib support for Linux oldld, aout, or coff.
13130 linux*oldld* | linux*aout* | linux*coff*)
13131   dynamic_linker=no
13132   ;;
13133
13134 # This must be Linux ELF.
13135 linux* | k*bsd*-gnu)
13136   version_type=linux
13137   need_lib_prefix=no
13138   need_version=no
13139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140   soname_spec='${libname}${release}${shared_ext}$major'
13141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13142   shlibpath_var=LD_LIBRARY_PATH
13143   shlibpath_overrides_runpath=no
13144   # This implies no fast_install, which is unacceptable.
13145   # Some rework will be needed to allow for fast_install
13146   # before this can be enabled.
13147   hardcode_into_libs=yes
13148
13149   # Append ld.so.conf contents to the search path
13150   if test -f /etc/ld.so.conf; then
13151     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' ' '`
13152     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13153   fi
13154
13155   # We used to test for /lib/ld.so.1 and disable shared libraries on
13156   # powerpc, because MkLinux only supported shared libraries with the
13157   # GNU dynamic linker.  Since this was broken with cross compilers,
13158   # most powerpc-linux boxes support dynamic linking these days and
13159   # people can always --disable-shared, the test was removed, and we
13160   # assume the GNU/Linux dynamic linker is in use.
13161   dynamic_linker='GNU/Linux ld.so'
13162   ;;
13163
13164 netbsdelf*-gnu)
13165   version_type=linux
13166   need_lib_prefix=no
13167   need_version=no
13168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13169   soname_spec='${libname}${release}${shared_ext}$major'
13170   shlibpath_var=LD_LIBRARY_PATH
13171   shlibpath_overrides_runpath=no
13172   hardcode_into_libs=yes
13173   dynamic_linker='NetBSD ld.elf_so'
13174   ;;
13175
13176 netbsd*)
13177   version_type=sunos
13178   need_lib_prefix=no
13179   need_version=no
13180   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13182     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13183     dynamic_linker='NetBSD (a.out) ld.so'
13184   else
13185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13186     soname_spec='${libname}${release}${shared_ext}$major'
13187     dynamic_linker='NetBSD ld.elf_so'
13188   fi
13189   shlibpath_var=LD_LIBRARY_PATH
13190   shlibpath_overrides_runpath=yes
13191   hardcode_into_libs=yes
13192   ;;
13193
13194 newsos6)
13195   version_type=linux
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   shlibpath_overrides_runpath=yes
13199   ;;
13200
13201 nto-qnx*)
13202   version_type=linux
13203   need_lib_prefix=no
13204   need_version=no
13205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206   soname_spec='${libname}${release}${shared_ext}$major'
13207   shlibpath_var=LD_LIBRARY_PATH
13208   shlibpath_overrides_runpath=yes
13209   ;;
13210
13211 openbsd*)
13212   version_type=sunos
13213   sys_lib_dlsearch_path_spec="/usr/lib"
13214   need_lib_prefix=no
13215   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13216   case $host_os in
13217     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13218     *)                         need_version=no  ;;
13219   esac
13220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13222   shlibpath_var=LD_LIBRARY_PATH
13223   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13224     case $host_os in
13225       openbsd2.[89] | openbsd2.[89].*)
13226         shlibpath_overrides_runpath=no
13227         ;;
13228       *)
13229         shlibpath_overrides_runpath=yes
13230         ;;
13231       esac
13232   else
13233     shlibpath_overrides_runpath=yes
13234   fi
13235   ;;
13236
13237 os2*)
13238   libname_spec='$name'
13239   shrext_cmds=".dll"
13240   need_lib_prefix=no
13241   library_names_spec='$libname${shared_ext} $libname.a'
13242   dynamic_linker='OS/2 ld.exe'
13243   shlibpath_var=LIBPATH
13244   ;;
13245
13246 osf3* | osf4* | osf5*)
13247   version_type=osf
13248   need_lib_prefix=no
13249   need_version=no
13250   soname_spec='${libname}${release}${shared_ext}$major'
13251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13252   shlibpath_var=LD_LIBRARY_PATH
13253   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13254   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13255   ;;
13256
13257 solaris*)
13258   version_type=linux
13259   need_lib_prefix=no
13260   need_version=no
13261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13262   soname_spec='${libname}${release}${shared_ext}$major'
13263   shlibpath_var=LD_LIBRARY_PATH
13264   shlibpath_overrides_runpath=yes
13265   hardcode_into_libs=yes
13266   # ldd complains unless libraries are executable
13267   postinstall_cmds='chmod +x $lib'
13268   ;;
13269
13270 sunos4*)
13271   version_type=sunos
13272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13273   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13274   shlibpath_var=LD_LIBRARY_PATH
13275   shlibpath_overrides_runpath=yes
13276   if test "$with_gnu_ld" = yes; then
13277     need_lib_prefix=no
13278   fi
13279   need_version=yes
13280   ;;
13281
13282 sysv4 | sysv4.3*)
13283   version_type=linux
13284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285   soname_spec='${libname}${release}${shared_ext}$major'
13286   shlibpath_var=LD_LIBRARY_PATH
13287   case $host_vendor in
13288     sni)
13289       shlibpath_overrides_runpath=no
13290       need_lib_prefix=no
13291       export_dynamic_flag_spec='${wl}-Blargedynsym'
13292       runpath_var=LD_RUN_PATH
13293       ;;
13294     siemens)
13295       need_lib_prefix=no
13296       ;;
13297     motorola)
13298       need_lib_prefix=no
13299       need_version=no
13300       shlibpath_overrides_runpath=no
13301       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13302       ;;
13303   esac
13304   ;;
13305
13306 sysv4*MP*)
13307   if test -d /usr/nec ;then
13308     version_type=linux
13309     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13310     soname_spec='$libname${shared_ext}.$major'
13311     shlibpath_var=LD_LIBRARY_PATH
13312   fi
13313   ;;
13314
13315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13316   version_type=freebsd-elf
13317   need_lib_prefix=no
13318   need_version=no
13319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13320   soname_spec='${libname}${release}${shared_ext}$major'
13321   shlibpath_var=LD_LIBRARY_PATH
13322   hardcode_into_libs=yes
13323   if test "$with_gnu_ld" = yes; then
13324     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13325     shlibpath_overrides_runpath=no
13326   else
13327     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13328     shlibpath_overrides_runpath=yes
13329     case $host_os in
13330       sco3.2v5*)
13331         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13332         ;;
13333     esac
13334   fi
13335   sys_lib_dlsearch_path_spec='/usr/lib'
13336   ;;
13337
13338 uts4*)
13339   version_type=linux
13340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341   soname_spec='${libname}${release}${shared_ext}$major'
13342   shlibpath_var=LD_LIBRARY_PATH
13343   ;;
13344
13345 *)
13346   dynamic_linker=no
13347   ;;
13348 esac
13349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13350 echo "${ECHO_T}$dynamic_linker" >&6; }
13351 test "$dynamic_linker" = no && can_build_shared=no
13352
13353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13354 if test "$GCC" = yes; then
13355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13356 fi
13357
13358 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13360 hardcode_action_CXX=
13361 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13362    test -n "$runpath_var_CXX" || \
13363    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13364
13365   # We can hardcode non-existant directories.
13366   if test "$hardcode_direct_CXX" != no &&
13367      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13368      # have to relink, otherwise we might link with an installed library
13369      # when we should be linking with a yet-to-be-installed one
13370      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13371      test "$hardcode_minus_L_CXX" != no; then
13372     # Linking always hardcodes the temporary library directory.
13373     hardcode_action_CXX=relink
13374   else
13375     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13376     hardcode_action_CXX=immediate
13377   fi
13378 else
13379   # We cannot hardcode anything, or else we can only hardcode existing
13380   # directories.
13381   hardcode_action_CXX=unsupported
13382 fi
13383 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13384 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13385
13386 if test "$hardcode_action_CXX" = relink; then
13387   # Fast installation is not supported
13388   enable_fast_install=no
13389 elif test "$shlibpath_overrides_runpath" = yes ||
13390      test "$enable_shared" = no; then
13391   # Fast installation is not necessary
13392   enable_fast_install=needless
13393 fi
13394
13395
13396 # The else clause should only fire when bootstrapping the
13397 # libtool distribution, otherwise you forgot to ship ltmain.sh
13398 # with your package, and you will get complaints that there are
13399 # no rules to generate ltmain.sh.
13400 if test -f "$ltmain"; then
13401   # See if we are running on zsh, and set the options which allow our commands through
13402   # without removal of \ escapes.
13403   if test -n "${ZSH_VERSION+set}" ; then
13404     setopt NO_GLOB_SUBST
13405   fi
13406   # Now quote all the things that may contain metacharacters while being
13407   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13408   # variables and quote the copies for generation of the libtool script.
13409   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13410     SED SHELL STRIP \
13411     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13412     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13413     deplibs_check_method reload_flag reload_cmds need_locks \
13414     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13415     lt_cv_sys_global_symbol_to_c_name_address \
13416     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13417     old_postinstall_cmds old_postuninstall_cmds \
13418     compiler_CXX \
13419     CC_CXX \
13420     LD_CXX \
13421     lt_prog_compiler_wl_CXX \
13422     lt_prog_compiler_pic_CXX \
13423     lt_prog_compiler_static_CXX \
13424     lt_prog_compiler_no_builtin_flag_CXX \
13425     export_dynamic_flag_spec_CXX \
13426     thread_safe_flag_spec_CXX \
13427     whole_archive_flag_spec_CXX \
13428     enable_shared_with_static_runtimes_CXX \
13429     old_archive_cmds_CXX \
13430     old_archive_from_new_cmds_CXX \
13431     predep_objects_CXX \
13432     postdep_objects_CXX \
13433     predeps_CXX \
13434     postdeps_CXX \
13435     compiler_lib_search_path_CXX \
13436     archive_cmds_CXX \
13437     archive_expsym_cmds_CXX \
13438     postinstall_cmds_CXX \
13439     postuninstall_cmds_CXX \
13440     old_archive_from_expsyms_cmds_CXX \
13441     allow_undefined_flag_CXX \
13442     no_undefined_flag_CXX \
13443     export_symbols_cmds_CXX \
13444     hardcode_libdir_flag_spec_CXX \
13445     hardcode_libdir_flag_spec_ld_CXX \
13446     hardcode_libdir_separator_CXX \
13447     hardcode_automatic_CXX \
13448     module_cmds_CXX \
13449     module_expsym_cmds_CXX \
13450     lt_cv_prog_compiler_c_o_CXX \
13451     exclude_expsyms_CXX \
13452     include_expsyms_CXX; do
13453
13454     case $var in
13455     old_archive_cmds_CXX | \
13456     old_archive_from_new_cmds_CXX | \
13457     archive_cmds_CXX | \
13458     archive_expsym_cmds_CXX | \
13459     module_cmds_CXX | \
13460     module_expsym_cmds_CXX | \
13461     old_archive_from_expsyms_cmds_CXX | \
13462     export_symbols_cmds_CXX | \
13463     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13464     postinstall_cmds | postuninstall_cmds | \
13465     old_postinstall_cmds | old_postuninstall_cmds | \
13466     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13467       # Double-quote double-evaled strings.
13468       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13469       ;;
13470     *)
13471       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13472       ;;
13473     esac
13474   done
13475
13476   case $lt_echo in
13477   *'\$0 --fallback-echo"')
13478     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13479     ;;
13480   esac
13481
13482 cfgfile="$ofile"
13483
13484   cat <<__EOF__ >> "$cfgfile"
13485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13486
13487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13488
13489 # Shell to use when invoking shell scripts.
13490 SHELL=$lt_SHELL
13491
13492 # Whether or not to build shared libraries.
13493 build_libtool_libs=$enable_shared
13494
13495 # Whether or not to build static libraries.
13496 build_old_libs=$enable_static
13497
13498 # Whether or not to add -lc for building shared libraries.
13499 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13500
13501 # Whether or not to disallow shared libs when runtime libs are static
13502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13503
13504 # Whether or not to optimize for fast installation.
13505 fast_install=$enable_fast_install
13506
13507 # The host system.
13508 host_alias=$host_alias
13509 host=$host
13510 host_os=$host_os
13511
13512 # The build system.
13513 build_alias=$build_alias
13514 build=$build
13515 build_os=$build_os
13516
13517 # An echo program that does not interpret backslashes.
13518 echo=$lt_echo
13519
13520 # The archiver.
13521 AR=$lt_AR
13522 AR_FLAGS=$lt_AR_FLAGS
13523
13524 # A C compiler.
13525 LTCC=$lt_LTCC
13526
13527 # LTCC compiler flags.
13528 LTCFLAGS=$lt_LTCFLAGS
13529
13530 # A language-specific compiler.
13531 CC=$lt_compiler_CXX
13532
13533 # Is the compiler the GNU C compiler?
13534 with_gcc=$GCC_CXX
13535
13536 # An ERE matcher.
13537 EGREP=$lt_EGREP
13538
13539 # The linker used to build libraries.
13540 LD=$lt_LD_CXX
13541
13542 # Whether we need hard or soft links.
13543 LN_S=$lt_LN_S
13544
13545 # A BSD-compatible nm program.
13546 NM=$lt_NM
13547
13548 # A symbol stripping program
13549 STRIP=$lt_STRIP
13550
13551 # Used to examine libraries when file_magic_cmd begins "file"
13552 MAGIC_CMD=$MAGIC_CMD
13553
13554 # Used on cygwin: DLL creation program.
13555 DLLTOOL="$DLLTOOL"
13556
13557 # Used on cygwin: object dumper.
13558 OBJDUMP="$OBJDUMP"
13559
13560 # Used on cygwin: assembler.
13561 AS="$AS"
13562
13563 # The name of the directory that contains temporary libtool files.
13564 objdir=$objdir
13565
13566 # How to create reloadable object files.
13567 reload_flag=$lt_reload_flag
13568 reload_cmds=$lt_reload_cmds
13569
13570 # How to pass a linker flag through the compiler.
13571 wl=$lt_lt_prog_compiler_wl_CXX
13572
13573 # Object file suffix (normally "o").
13574 objext="$ac_objext"
13575
13576 # Old archive suffix (normally "a").
13577 libext="$libext"
13578
13579 # Shared library suffix (normally ".so").
13580 shrext_cmds='$shrext_cmds'
13581
13582 # Executable file suffix (normally "").
13583 exeext="$exeext"
13584
13585 # Additional compiler flags for building library objects.
13586 pic_flag=$lt_lt_prog_compiler_pic_CXX
13587 pic_mode=$pic_mode
13588
13589 # What is the maximum length of a command?
13590 max_cmd_len=$lt_cv_sys_max_cmd_len
13591
13592 # Does compiler simultaneously support -c and -o options?
13593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13594
13595 # Must we lock files when doing compilation?
13596 need_locks=$lt_need_locks
13597
13598 # Do we need the lib prefix for modules?
13599 need_lib_prefix=$need_lib_prefix
13600
13601 # Do we need a version for libraries?
13602 need_version=$need_version
13603
13604 # Whether dlopen is supported.
13605 dlopen_support=$enable_dlopen
13606
13607 # Whether dlopen of programs is supported.
13608 dlopen_self=$enable_dlopen_self
13609
13610 # Whether dlopen of statically linked programs is supported.
13611 dlopen_self_static=$enable_dlopen_self_static
13612
13613 # Compiler flag to prevent dynamic linking.
13614 link_static_flag=$lt_lt_prog_compiler_static_CXX
13615
13616 # Compiler flag to turn off builtin functions.
13617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13618
13619 # Compiler flag to allow reflexive dlopens.
13620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13621
13622 # Compiler flag to generate shared objects directly from archives.
13623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13624
13625 # Compiler flag to generate thread-safe objects.
13626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13627
13628 # Library versioning type.
13629 version_type=$version_type
13630
13631 # Format of library name prefix.
13632 libname_spec=$lt_libname_spec
13633
13634 # List of archive names.  First name is the real one, the rest are links.
13635 # The last name is the one that the linker finds with -lNAME.
13636 library_names_spec=$lt_library_names_spec
13637
13638 # The coded name of the library, if different from the real name.
13639 soname_spec=$lt_soname_spec
13640
13641 # Commands used to build and install an old-style archive.
13642 RANLIB=$lt_RANLIB
13643 old_archive_cmds=$lt_old_archive_cmds_CXX
13644 old_postinstall_cmds=$lt_old_postinstall_cmds
13645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13646
13647 # Create an old-style archive from a shared archive.
13648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13649
13650 # Create a temporary old-style archive to link instead of a shared archive.
13651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13652
13653 # Commands used to build and install a shared archive.
13654 archive_cmds=$lt_archive_cmds_CXX
13655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13656 postinstall_cmds=$lt_postinstall_cmds
13657 postuninstall_cmds=$lt_postuninstall_cmds
13658
13659 # Commands used to build a loadable module (assumed same as above if empty)
13660 module_cmds=$lt_module_cmds_CXX
13661 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13662
13663 # Commands to strip libraries.
13664 old_striplib=$lt_old_striplib
13665 striplib=$lt_striplib
13666
13667 # Dependencies to place before the objects being linked to create a
13668 # shared library.
13669 predep_objects=$lt_predep_objects_CXX
13670
13671 # Dependencies to place after the objects being linked to create a
13672 # shared library.
13673 postdep_objects=$lt_postdep_objects_CXX
13674
13675 # Dependencies to place before the objects being linked to create a
13676 # shared library.
13677 predeps=$lt_predeps_CXX
13678
13679 # Dependencies to place after the objects being linked to create a
13680 # shared library.
13681 postdeps=$lt_postdeps_CXX
13682
13683 # The library search path used internally by the compiler when linking
13684 # a shared library.
13685 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13686
13687 # Method to check whether dependent libraries are shared objects.
13688 deplibs_check_method=$lt_deplibs_check_method
13689
13690 # Command to use when deplibs_check_method == file_magic.
13691 file_magic_cmd=$lt_file_magic_cmd
13692
13693 # Flag that allows shared libraries with undefined symbols to be built.
13694 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13695
13696 # Flag that forces no undefined symbols.
13697 no_undefined_flag=$lt_no_undefined_flag_CXX
13698
13699 # Commands used to finish a libtool library installation in a directory.
13700 finish_cmds=$lt_finish_cmds
13701
13702 # Same as above, but a single script fragment to be evaled but not shown.
13703 finish_eval=$lt_finish_eval
13704
13705 # Take the output of nm and produce a listing of raw symbols and C names.
13706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13707
13708 # Transform the output of nm in a proper C declaration
13709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13710
13711 # Transform the output of nm in a C name address pair
13712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13713
13714 # This is the shared library runtime path variable.
13715 runpath_var=$runpath_var
13716
13717 # This is the shared library path variable.
13718 shlibpath_var=$shlibpath_var
13719
13720 # Is shlibpath searched before the hard-coded library search path?
13721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13722
13723 # How to hardcode a shared library path into an executable.
13724 hardcode_action=$hardcode_action_CXX
13725
13726 # Whether we should hardcode library paths into libraries.
13727 hardcode_into_libs=$hardcode_into_libs
13728
13729 # Flag to hardcode \$libdir into a binary during linking.
13730 # This must work even if \$libdir does not exist.
13731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13732
13733 # If ld is used when linking, flag to hardcode \$libdir into
13734 # a binary during linking. This must work even if \$libdir does
13735 # not exist.
13736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13737
13738 # Whether we need a single -rpath flag with a separated argument.
13739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13740
13741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13742 # resulting binary.
13743 hardcode_direct=$hardcode_direct_CXX
13744
13745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13746 # resulting binary.
13747 hardcode_minus_L=$hardcode_minus_L_CXX
13748
13749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13750 # the resulting binary.
13751 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13752
13753 # Set to yes if building a shared library automatically hardcodes DIR into the library
13754 # and all subsequent libraries and executables linked against it.
13755 hardcode_automatic=$hardcode_automatic_CXX
13756
13757 # Variables whose values should be saved in libtool wrapper scripts and
13758 # restored at relink time.
13759 variables_saved_for_relink="$variables_saved_for_relink"
13760
13761 # Whether libtool must link a program against all its dependency libraries.
13762 link_all_deplibs=$link_all_deplibs_CXX
13763
13764 # Compile-time system search path for libraries
13765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13766
13767 # Run-time system search path for libraries
13768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13769
13770 # Fix the shell variable \$srcfile for the compiler.
13771 fix_srcfile_path="$fix_srcfile_path_CXX"
13772
13773 # Set to yes if exported symbols are required.
13774 always_export_symbols=$always_export_symbols_CXX
13775
13776 # The commands to list exported symbols.
13777 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13778
13779 # The commands to extract the exported symbol list from a shared archive.
13780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13781
13782 # Symbols that should not be listed in the preloaded symbols.
13783 exclude_expsyms=$lt_exclude_expsyms_CXX
13784
13785 # Symbols that must always be exported.
13786 include_expsyms=$lt_include_expsyms_CXX
13787
13788 # ### END LIBTOOL TAG CONFIG: $tagname
13789
13790 __EOF__
13791
13792
13793 else
13794   # If there is no Makefile yet, we rely on a make rule to execute
13795   # `config.status --recheck' to rerun these tests and create the
13796   # libtool script then.
13797   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13798   if test -f "$ltmain_in"; then
13799     test -f Makefile && make "$ltmain"
13800   fi
13801 fi
13802
13803
13804 ac_ext=c
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13809
13810 CC=$lt_save_CC
13811 LDCXX=$LD
13812 LD=$lt_save_LD
13813 GCC=$lt_save_GCC
13814 with_gnu_ldcxx=$with_gnu_ld
13815 with_gnu_ld=$lt_save_with_gnu_ld
13816 lt_cv_path_LDCXX=$lt_cv_path_LD
13817 lt_cv_path_LD=$lt_save_path_LD
13818 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13819 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13820
13821         else
13822           tagname=""
13823         fi
13824         ;;
13825
13826       F77)
13827         if test -n "$F77" && test "X$F77" != "Xno"; then
13828
13829 ac_ext=f
13830 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13831 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13833
13834
13835 archive_cmds_need_lc_F77=no
13836 allow_undefined_flag_F77=
13837 always_export_symbols_F77=no
13838 archive_expsym_cmds_F77=
13839 export_dynamic_flag_spec_F77=
13840 hardcode_direct_F77=no
13841 hardcode_libdir_flag_spec_F77=
13842 hardcode_libdir_flag_spec_ld_F77=
13843 hardcode_libdir_separator_F77=
13844 hardcode_minus_L_F77=no
13845 hardcode_automatic_F77=no
13846 module_cmds_F77=
13847 module_expsym_cmds_F77=
13848 link_all_deplibs_F77=unknown
13849 old_archive_cmds_F77=$old_archive_cmds
13850 no_undefined_flag_F77=
13851 whole_archive_flag_spec_F77=
13852 enable_shared_with_static_runtimes_F77=no
13853
13854 # Source file extension for f77 test sources.
13855 ac_ext=f
13856
13857 # Object file extension for compiled f77 test sources.
13858 objext=o
13859 objext_F77=$objext
13860
13861 # Code to be used in simple compile tests
13862 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13863
13864 # Code to be used in simple link tests
13865 lt_simple_link_test_code="      program t\n      end\n"
13866
13867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13868
13869 # If no C compiler was specified, use CC.
13870 LTCC=${LTCC-"$CC"}
13871
13872 # If no C compiler flags were specified, use CFLAGS.
13873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13874
13875 # Allow CC to be a program name with arguments.
13876 compiler=$CC
13877
13878
13879 # save warnings/boilerplate of simple test code
13880 ac_outfile=conftest.$ac_objext
13881 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13883 _lt_compiler_boilerplate=`cat conftest.err`
13884 $rm conftest*
13885
13886 ac_outfile=conftest.$ac_objext
13887 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13889 _lt_linker_boilerplate=`cat conftest.err`
13890 $rm conftest*
13891
13892
13893 # Allow CC to be a program name with arguments.
13894 lt_save_CC="$CC"
13895 CC=${F77-"f77"}
13896 compiler=$CC
13897 compiler_F77=$CC
13898 for cc_temp in $compiler""; do
13899   case $cc_temp in
13900     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13901     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13902     \-*) ;;
13903     *) break;;
13904   esac
13905 done
13906 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13907
13908
13909 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13910 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13911 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13912 echo "${ECHO_T}$can_build_shared" >&6; }
13913
13914 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13915 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13916 test "$can_build_shared" = "no" && enable_shared=no
13917
13918 # On AIX, shared libraries and static libraries use the same namespace, and
13919 # are all built from PIC.
13920 case $host_os in
13921 aix3*)
13922   test "$enable_shared" = yes && enable_static=no
13923   if test -n "$RANLIB"; then
13924     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13925     postinstall_cmds='$RANLIB $lib'
13926   fi
13927   ;;
13928 aix4* | aix5*)
13929   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13930     test "$enable_shared" = yes && enable_static=no
13931   fi
13932   ;;
13933 esac
13934 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13935 echo "${ECHO_T}$enable_shared" >&6; }
13936
13937 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13938 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13939 # Make sure either enable_shared or enable_static is yes.
13940 test "$enable_shared" = yes || enable_static=yes
13941 { echo "$as_me:$LINENO: result: $enable_static" >&5
13942 echo "${ECHO_T}$enable_static" >&6; }
13943
13944 GCC_F77="$G77"
13945 LD_F77="$LD"
13946
13947 lt_prog_compiler_wl_F77=
13948 lt_prog_compiler_pic_F77=
13949 lt_prog_compiler_static_F77=
13950
13951 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13952 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13953
13954   if test "$GCC" = yes; then
13955     lt_prog_compiler_wl_F77='-Wl,'
13956     lt_prog_compiler_static_F77='-static'
13957
13958     case $host_os in
13959       aix*)
13960       # All AIX code is PIC.
13961       if test "$host_cpu" = ia64; then
13962         # AIX 5 now supports IA64 processor
13963         lt_prog_compiler_static_F77='-Bstatic'
13964       fi
13965       ;;
13966
13967     amigaos*)
13968       # FIXME: we need at least 68020 code to build shared libraries, but
13969       # adding the `-m68020' flag to GCC prevents building anything better,
13970       # like `-m68040'.
13971       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13972       ;;
13973
13974     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13975       # PIC is the default for these OSes.
13976       ;;
13977
13978     mingw* | pw32* | os2*)
13979       # This hack is so that the source file can tell whether it is being
13980       # built for inclusion in a dll (and should export symbols for example).
13981       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13982       ;;
13983
13984     darwin* | rhapsody*)
13985       # PIC is the default on this platform
13986       # Common symbols not allowed in MH_DYLIB files
13987       lt_prog_compiler_pic_F77='-fno-common'
13988       ;;
13989
13990     interix3*)
13991       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13992       # Instead, we relocate shared libraries at runtime.
13993       ;;
13994
13995     msdosdjgpp*)
13996       # Just because we use GCC doesn't mean we suddenly get shared libraries
13997       # on systems that don't support them.
13998       lt_prog_compiler_can_build_shared_F77=no
13999       enable_shared=no
14000       ;;
14001
14002     sysv4*MP*)
14003       if test -d /usr/nec; then
14004         lt_prog_compiler_pic_F77=-Kconform_pic
14005       fi
14006       ;;
14007
14008     hpux*)
14009       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14010       # not for PA HP-UX.
14011       case $host_cpu in
14012       hppa*64*|ia64*)
14013         # +Z the default
14014         ;;
14015       *)
14016         lt_prog_compiler_pic_F77='-fPIC'
14017         ;;
14018       esac
14019       ;;
14020
14021     *)
14022       lt_prog_compiler_pic_F77='-fPIC'
14023       ;;
14024     esac
14025   else
14026     # PORTME Check for flag to pass linker flags through the system compiler.
14027     case $host_os in
14028     aix*)
14029       lt_prog_compiler_wl_F77='-Wl,'
14030       if test "$host_cpu" = ia64; then
14031         # AIX 5 now supports IA64 processor
14032         lt_prog_compiler_static_F77='-Bstatic'
14033       else
14034         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14035       fi
14036       ;;
14037       darwin*)
14038         # PIC is the default on this platform
14039         # Common symbols not allowed in MH_DYLIB files
14040        case $cc_basename in
14041          xlc*)
14042          lt_prog_compiler_pic_F77='-qnocommon'
14043          lt_prog_compiler_wl_F77='-Wl,'
14044          ;;
14045        esac
14046        ;;
14047
14048     mingw* | pw32* | os2*)
14049       # This hack is so that the source file can tell whether it is being
14050       # built for inclusion in a dll (and should export symbols for example).
14051       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14052       ;;
14053
14054     hpux9* | hpux10* | hpux11*)
14055       lt_prog_compiler_wl_F77='-Wl,'
14056       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14057       # not for PA HP-UX.
14058       case $host_cpu in
14059       hppa*64*|ia64*)
14060         # +Z the default
14061         ;;
14062       *)
14063         lt_prog_compiler_pic_F77='+Z'
14064         ;;
14065       esac
14066       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14067       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14068       ;;
14069
14070     irix5* | irix6* | nonstopux*)
14071       lt_prog_compiler_wl_F77='-Wl,'
14072       # PIC (with -KPIC) is the default.
14073       lt_prog_compiler_static_F77='-non_shared'
14074       ;;
14075
14076     newsos6)
14077       lt_prog_compiler_pic_F77='-KPIC'
14078       lt_prog_compiler_static_F77='-Bstatic'
14079       ;;
14080
14081     linux* | k*bsd*-gnu)
14082       case $cc_basename in
14083       icc* | ecc*)
14084         lt_prog_compiler_wl_F77='-Wl,'
14085         lt_prog_compiler_pic_F77='-KPIC'
14086         lt_prog_compiler_static_F77='-static'
14087         ;;
14088       pgcc* | pgf77* | pgf90* | pgf95*)
14089         # Portland Group compilers (*not* the Pentium gcc compiler,
14090         # which looks to be a dead project)
14091         lt_prog_compiler_wl_F77='-Wl,'
14092         lt_prog_compiler_pic_F77='-fpic'
14093         lt_prog_compiler_static_F77='-Bstatic'
14094         ;;
14095       ccc*)
14096         lt_prog_compiler_wl_F77='-Wl,'
14097         # All Alpha code is PIC.
14098         lt_prog_compiler_static_F77='-non_shared'
14099         ;;
14100       esac
14101       ;;
14102
14103     osf3* | osf4* | osf5*)
14104       lt_prog_compiler_wl_F77='-Wl,'
14105       # All OSF/1 code is PIC.
14106       lt_prog_compiler_static_F77='-non_shared'
14107       ;;
14108
14109     solaris*)
14110       lt_prog_compiler_pic_F77='-KPIC'
14111       lt_prog_compiler_static_F77='-Bstatic'
14112       case $cc_basename in
14113       f77* | f90* | f95*)
14114         lt_prog_compiler_wl_F77='-Qoption ld ';;
14115       *)
14116         lt_prog_compiler_wl_F77='-Wl,';;
14117       esac
14118       ;;
14119
14120     sunos4*)
14121       lt_prog_compiler_wl_F77='-Qoption ld '
14122       lt_prog_compiler_pic_F77='-PIC'
14123       lt_prog_compiler_static_F77='-Bstatic'
14124       ;;
14125
14126     sysv4 | sysv4.2uw2* | sysv4.3*)
14127       lt_prog_compiler_wl_F77='-Wl,'
14128       lt_prog_compiler_pic_F77='-KPIC'
14129       lt_prog_compiler_static_F77='-Bstatic'
14130       ;;
14131
14132     sysv4*MP*)
14133       if test -d /usr/nec ;then
14134         lt_prog_compiler_pic_F77='-Kconform_pic'
14135         lt_prog_compiler_static_F77='-Bstatic'
14136       fi
14137       ;;
14138
14139     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14140       lt_prog_compiler_wl_F77='-Wl,'
14141       lt_prog_compiler_pic_F77='-KPIC'
14142       lt_prog_compiler_static_F77='-Bstatic'
14143       ;;
14144
14145     unicos*)
14146       lt_prog_compiler_wl_F77='-Wl,'
14147       lt_prog_compiler_can_build_shared_F77=no
14148       ;;
14149
14150     uts4*)
14151       lt_prog_compiler_pic_F77='-pic'
14152       lt_prog_compiler_static_F77='-Bstatic'
14153       ;;
14154
14155     *)
14156       lt_prog_compiler_can_build_shared_F77=no
14157       ;;
14158     esac
14159   fi
14160
14161 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14162 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14163
14164 #
14165 # Check to make sure the PIC flag actually works.
14166 #
14167 if test -n "$lt_prog_compiler_pic_F77"; then
14168
14169 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14170 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14171 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   lt_prog_compiler_pic_works_F77=no
14175   ac_outfile=conftest.$ac_objext
14176    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14177    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14178    # Insert the option either (1) after the last *FLAGS variable, or
14179    # (2) before a word containing "conftest.", or (3) at the end.
14180    # Note that $ac_compile itself does not contain backslashes and begins
14181    # with a dollar sign (not a hyphen), so the echo should work correctly.
14182    # The option is referenced via a variable to avoid confusing sed.
14183    lt_compile=`echo "$ac_compile" | $SED \
14184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14186    -e 's:$: $lt_compiler_flag:'`
14187    (eval echo "\"\$as_me:14187: $lt_compile\"" >&5)
14188    (eval "$lt_compile" 2>conftest.err)
14189    ac_status=$?
14190    cat conftest.err >&5
14191    echo "$as_me:14191: \$? = $ac_status" >&5
14192    if (exit $ac_status) && test -s "$ac_outfile"; then
14193      # The compiler can only warn and ignore the option if not recognized
14194      # So say no if there are warnings other than the usual output.
14195      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14196      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14197      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14198        lt_prog_compiler_pic_works_F77=yes
14199      fi
14200    fi
14201    $rm conftest*
14202
14203 fi
14204 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14205 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14206
14207 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14208     case $lt_prog_compiler_pic_F77 in
14209      "" | " "*) ;;
14210      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14211      esac
14212 else
14213     lt_prog_compiler_pic_F77=
14214      lt_prog_compiler_can_build_shared_F77=no
14215 fi
14216
14217 fi
14218 case $host_os in
14219   # For platforms which do not support PIC, -DPIC is meaningless:
14220   *djgpp*)
14221     lt_prog_compiler_pic_F77=
14222     ;;
14223   *)
14224     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14225     ;;
14226 esac
14227
14228 #
14229 # Check to make sure the static flag actually works.
14230 #
14231 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14232 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14233 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14234 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14235   echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237   lt_prog_compiler_static_works_F77=no
14238    save_LDFLAGS="$LDFLAGS"
14239    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14240    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14241    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14242      # The linker can only warn and ignore the option if not recognized
14243      # So say no if there are warnings
14244      if test -s conftest.err; then
14245        # Append any errors to the config.log.
14246        cat conftest.err 1>&5
14247        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14248        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14249        if diff conftest.exp conftest.er2 >/dev/null; then
14250          lt_prog_compiler_static_works_F77=yes
14251        fi
14252      else
14253        lt_prog_compiler_static_works_F77=yes
14254      fi
14255    fi
14256    $rm conftest*
14257    LDFLAGS="$save_LDFLAGS"
14258
14259 fi
14260 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14261 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14262
14263 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14264     :
14265 else
14266     lt_prog_compiler_static_F77=
14267 fi
14268
14269
14270 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14271 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14272 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   lt_cv_prog_compiler_c_o_F77=no
14276    $rm -r conftest 2>/dev/null
14277    mkdir conftest
14278    cd conftest
14279    mkdir out
14280    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14281
14282    lt_compiler_flag="-o out/conftest2.$ac_objext"
14283    # Insert the option either (1) after the last *FLAGS variable, or
14284    # (2) before a word containing "conftest.", or (3) at the end.
14285    # Note that $ac_compile itself does not contain backslashes and begins
14286    # with a dollar sign (not a hyphen), so the echo should work correctly.
14287    lt_compile=`echo "$ac_compile" | $SED \
14288    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14289    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14290    -e 's:$: $lt_compiler_flag:'`
14291    (eval echo "\"\$as_me:14291: $lt_compile\"" >&5)
14292    (eval "$lt_compile" 2>out/conftest.err)
14293    ac_status=$?
14294    cat out/conftest.err >&5
14295    echo "$as_me:14295: \$? = $ac_status" >&5
14296    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14297    then
14298      # The compiler can only warn and ignore the option if not recognized
14299      # So say no if there are warnings
14300      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14301      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14302      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14303        lt_cv_prog_compiler_c_o_F77=yes
14304      fi
14305    fi
14306    chmod u+w . 2>&5
14307    $rm conftest*
14308    # SGI C++ compiler will create directory out/ii_files/ for
14309    # template instantiation
14310    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14311    $rm out/* && rmdir out
14312    cd ..
14313    rmdir conftest
14314    $rm conftest*
14315
14316 fi
14317 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14319
14320
14321 hard_links="nottested"
14322 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14323   # do not overwrite the value of need_locks provided by the user
14324   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14326   hard_links=yes
14327   $rm conftest*
14328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14329   touch conftest.a
14330   ln conftest.a conftest.b 2>&5 || hard_links=no
14331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14332   { echo "$as_me:$LINENO: result: $hard_links" >&5
14333 echo "${ECHO_T}$hard_links" >&6; }
14334   if test "$hard_links" = no; then
14335     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14337     need_locks=warn
14338   fi
14339 else
14340   need_locks=no
14341 fi
14342
14343 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14345
14346   runpath_var=
14347   allow_undefined_flag_F77=
14348   enable_shared_with_static_runtimes_F77=no
14349   archive_cmds_F77=
14350   archive_expsym_cmds_F77=
14351   old_archive_From_new_cmds_F77=
14352   old_archive_from_expsyms_cmds_F77=
14353   export_dynamic_flag_spec_F77=
14354   whole_archive_flag_spec_F77=
14355   thread_safe_flag_spec_F77=
14356   hardcode_libdir_flag_spec_F77=
14357   hardcode_libdir_flag_spec_ld_F77=
14358   hardcode_libdir_separator_F77=
14359   hardcode_direct_F77=no
14360   hardcode_minus_L_F77=no
14361   hardcode_shlibpath_var_F77=unsupported
14362   link_all_deplibs_F77=unknown
14363   hardcode_automatic_F77=no
14364   module_cmds_F77=
14365   module_expsym_cmds_F77=
14366   always_export_symbols_F77=no
14367   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14368   # include_expsyms should be a list of space-separated symbols to be *always*
14369   # included in the symbol list
14370   include_expsyms_F77=
14371   # exclude_expsyms can be an extended regexp of symbols to exclude
14372   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14373   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14374   # as well as any symbol that contains `d'.
14375   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14376   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14377   # platforms (ab)use it in PIC code, but their linkers get confused if
14378   # the symbol is explicitly referenced.  Since portable code cannot
14379   # rely on this symbol name, it's probably fine to never include it in
14380   # preloaded symbol tables.
14381   extract_expsyms_cmds=
14382   # Just being paranoid about ensuring that cc_basename is set.
14383   for cc_temp in $compiler""; do
14384   case $cc_temp in
14385     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14386     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14387     \-*) ;;
14388     *) break;;
14389   esac
14390 done
14391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14392
14393   case $host_os in
14394   cygwin* | mingw* | pw32*)
14395     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14396     # When not using gcc, we currently assume that we are using
14397     # Microsoft Visual C++.
14398     if test "$GCC" != yes; then
14399       with_gnu_ld=no
14400     fi
14401     ;;
14402   interix*)
14403     # we just hope/assume this is gcc and not c89 (= MSVC++)
14404     with_gnu_ld=yes
14405     ;;
14406   openbsd*)
14407     with_gnu_ld=no
14408     ;;
14409   esac
14410
14411   ld_shlibs_F77=yes
14412   if test "$with_gnu_ld" = yes; then
14413     # If archive_cmds runs LD, not CC, wlarc should be empty
14414     wlarc='${wl}'
14415
14416     # Set some defaults for GNU ld with shared library support. These
14417     # are reset later if shared libraries are not supported. Putting them
14418     # here allows them to be overridden if necessary.
14419     runpath_var=LD_RUN_PATH
14420     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14421     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14422     # ancient GNU ld didn't support --whole-archive et. al.
14423     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14424         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14425       else
14426         whole_archive_flag_spec_F77=
14427     fi
14428     supports_anon_versioning=no
14429     case `$LD -v 2>/dev/null` in
14430       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14431       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14432       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14433       *\ 2.11.*) ;; # other 2.11 versions
14434       *) supports_anon_versioning=yes ;;
14435     esac
14436
14437     # See if GNU ld supports shared libraries.
14438     case $host_os in
14439     aix3* | aix4* | aix5*)
14440       # On AIX/PPC, the GNU linker is very broken
14441       if test "$host_cpu" != ia64; then
14442         ld_shlibs_F77=no
14443         cat <<EOF 1>&2
14444
14445 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14446 *** to be unable to reliably create shared libraries on AIX.
14447 *** Therefore, libtool is disabling shared libraries support.  If you
14448 *** really care for shared libraries, you may want to modify your PATH
14449 *** so that a non-GNU linker is found, and then restart.
14450
14451 EOF
14452       fi
14453       ;;
14454
14455     amigaos*)
14456       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)'
14457       hardcode_libdir_flag_spec_F77='-L$libdir'
14458       hardcode_minus_L_F77=yes
14459
14460       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14461       # that the semantics of dynamic libraries on AmigaOS, at least up
14462       # to version 4, is to share data among multiple programs linked
14463       # with the same dynamic library.  Since this doesn't match the
14464       # behavior of shared libraries on other platforms, we can't use
14465       # them.
14466       ld_shlibs_F77=no
14467       ;;
14468
14469     beos*)
14470       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14471         allow_undefined_flag_F77=unsupported
14472         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14473         # support --undefined.  This deserves some investigation.  FIXME
14474         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475       else
14476         ld_shlibs_F77=no
14477       fi
14478       ;;
14479
14480     cygwin* | mingw* | pw32*)
14481       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14482       # as there is no search path for DLLs.
14483       hardcode_libdir_flag_spec_F77='-L$libdir'
14484       allow_undefined_flag_F77=unsupported
14485       always_export_symbols_F77=no
14486       enable_shared_with_static_runtimes_F77=yes
14487       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14488
14489       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14490         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14491         # If the export-symbols file already is a .def file (1st line
14492         # is EXPORTS), use it as is; otherwise, prepend...
14493         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14494           cp $export_symbols $output_objdir/$soname.def;
14495         else
14496           echo EXPORTS > $output_objdir/$soname.def;
14497           cat $export_symbols >> $output_objdir/$soname.def;
14498         fi~
14499         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14500       else
14501         ld_shlibs_F77=no
14502       fi
14503       ;;
14504
14505     interix3*)
14506       hardcode_direct_F77=no
14507       hardcode_shlibpath_var_F77=no
14508       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14509       export_dynamic_flag_spec_F77='${wl}-E'
14510       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14511       # Instead, shared libraries are loaded at an image base (0x10000000 by
14512       # default) and relocated if they conflict, which is a slow very memory
14513       # consuming and fragmenting process.  To avoid this, we pick a random,
14514       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14515       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14516       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'
14517       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'
14518       ;;
14519
14520     linux* | k*bsd*-gnu)
14521       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14522         tmp_addflag=
14523         case $cc_basename,$host_cpu in
14524         pgcc*)                          # Portland Group C compiler
14525           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'
14526           tmp_addflag=' $pic_flag'
14527           ;;
14528         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14529           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'
14530           tmp_addflag=' $pic_flag -Mnomain' ;;
14531         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14532           tmp_addflag=' -i_dynamic' ;;
14533         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14534           tmp_addflag=' -i_dynamic -nofor_main' ;;
14535         ifc* | ifort*)                  # Intel Fortran compiler
14536           tmp_addflag=' -nofor_main' ;;
14537         esac
14538         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14539
14540         if test $supports_anon_versioning = yes; then
14541           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14542   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14543   $echo "local: *; };" >> $output_objdir/$libname.ver~
14544           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14545         fi
14546         link_all_deplibs_F77=no
14547       else
14548         ld_shlibs_F77=no
14549       fi
14550       ;;
14551
14552     netbsd* | netbsdelf*-gnu)
14553       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14555         wlarc=
14556       else
14557         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14558         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14559       fi
14560       ;;
14561
14562     solaris*)
14563       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14564         ld_shlibs_F77=no
14565         cat <<EOF 1>&2
14566
14567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14568 *** create shared libraries on Solaris systems.  Therefore, libtool
14569 *** is disabling shared libraries support.  We urge you to upgrade GNU
14570 *** binutils to release 2.9.1 or newer.  Another option is to modify
14571 *** your PATH or compiler configuration so that the native linker is
14572 *** used, and then restart.
14573
14574 EOF
14575       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14576         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14577         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14578       else
14579         ld_shlibs_F77=no
14580       fi
14581       ;;
14582
14583     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14584       case `$LD -v 2>&1` in
14585         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14586         ld_shlibs_F77=no
14587         cat <<_LT_EOF 1>&2
14588
14589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14590 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14591 *** is disabling shared libraries support.  We urge you to upgrade GNU
14592 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14593 *** your PATH or compiler configuration so that the native linker is
14594 *** used, and then restart.
14595
14596 _LT_EOF
14597         ;;
14598         *)
14599           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14600             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14601             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14602             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14603           else
14604             ld_shlibs_F77=no
14605           fi
14606         ;;
14607       esac
14608       ;;
14609
14610     sunos4*)
14611       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14612       wlarc=
14613       hardcode_direct_F77=yes
14614       hardcode_shlibpath_var_F77=no
14615       ;;
14616
14617     *)
14618       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14619         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14620         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14621       else
14622         ld_shlibs_F77=no
14623       fi
14624       ;;
14625     esac
14626
14627     if test "$ld_shlibs_F77" = no; then
14628       runpath_var=
14629       hardcode_libdir_flag_spec_F77=
14630       export_dynamic_flag_spec_F77=
14631       whole_archive_flag_spec_F77=
14632     fi
14633   else
14634     # PORTME fill in a description of your system's linker (not GNU ld)
14635     case $host_os in
14636     aix3*)
14637       allow_undefined_flag_F77=unsupported
14638       always_export_symbols_F77=yes
14639       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'
14640       # Note: this linker hardcodes the directories in LIBPATH if there
14641       # are no directories specified by -L.
14642       hardcode_minus_L_F77=yes
14643       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14644         # Neither direct hardcoding nor static linking is supported with a
14645         # broken collect2.
14646         hardcode_direct_F77=unsupported
14647       fi
14648       ;;
14649
14650     aix4* | aix5*)
14651       if test "$host_cpu" = ia64; then
14652         # On IA64, the linker does run time linking by default, so we don't
14653         # have to do anything special.
14654         aix_use_runtimelinking=no
14655         exp_sym_flag='-Bexport'
14656         no_entry_flag=""
14657       else
14658         # If we're using GNU nm, then we don't want the "-C" option.
14659         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14660         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14661           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'
14662         else
14663           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'
14664         fi
14665         aix_use_runtimelinking=no
14666
14667         # Test if we are trying to use run time linking or normal
14668         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14669         # need to do runtime linking.
14670         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14671           for ld_flag in $LDFLAGS; do
14672           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14673             aix_use_runtimelinking=yes
14674             break
14675           fi
14676           done
14677           ;;
14678         esac
14679
14680         exp_sym_flag='-bexport'
14681         no_entry_flag='-bnoentry'
14682       fi
14683
14684       # When large executables or shared objects are built, AIX ld can
14685       # have problems creating the table of contents.  If linking a library
14686       # or program results in "error TOC overflow" add -mminimal-toc to
14687       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14688       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14689
14690       archive_cmds_F77=''
14691       hardcode_direct_F77=yes
14692       hardcode_libdir_separator_F77=':'
14693       link_all_deplibs_F77=yes
14694
14695       if test "$GCC" = yes; then
14696         case $host_os in aix4.[012]|aix4.[012].*)
14697         # We only want to do this on AIX 4.2 and lower, the check
14698         # below for broken collect2 doesn't work under 4.3+
14699           collect2name=`${CC} -print-prog-name=collect2`
14700           if test -f "$collect2name" && \
14701            strings "$collect2name" | grep resolve_lib_name >/dev/null
14702           then
14703           # We have reworked collect2
14704           hardcode_direct_F77=yes
14705           else
14706           # We have old collect2
14707           hardcode_direct_F77=unsupported
14708           # It fails to find uninstalled libraries when the uninstalled
14709           # path is not listed in the libpath.  Setting hardcode_minus_L
14710           # to unsupported forces relinking
14711           hardcode_minus_L_F77=yes
14712           hardcode_libdir_flag_spec_F77='-L$libdir'
14713           hardcode_libdir_separator_F77=
14714           fi
14715           ;;
14716         esac
14717         shared_flag='-shared'
14718         if test "$aix_use_runtimelinking" = yes; then
14719           shared_flag="$shared_flag "'${wl}-G'
14720         fi
14721       else
14722         # not using gcc
14723         if test "$host_cpu" = ia64; then
14724         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14725         # chokes on -Wl,-G. The following line is correct:
14726           shared_flag='-G'
14727         else
14728           if test "$aix_use_runtimelinking" = yes; then
14729             shared_flag='${wl}-G'
14730           else
14731             shared_flag='${wl}-bM:SRE'
14732           fi
14733         fi
14734       fi
14735
14736       # It seems that -bexpall does not export symbols beginning with
14737       # underscore (_), so it is better to generate a list of symbols to export.
14738       always_export_symbols_F77=yes
14739       if test "$aix_use_runtimelinking" = yes; then
14740         # Warning - without using the other runtime loading flags (-brtl),
14741         # -berok will link without error, but may produce a broken library.
14742         allow_undefined_flag_F77='-berok'
14743        # Determine the default libpath from the value encoded in an empty executable.
14744        cat >conftest.$ac_ext <<_ACEOF
14745       program main
14746
14747       end
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_link") 2>conftest.er1
14757   ac_status=$?
14758   grep -v '^ *+' conftest.er1 >conftest.err
14759   rm -f conftest.er1
14760   cat conftest.err >&5
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); } && {
14763          test -z "$ac_f77_werror_flag" ||
14764          test ! -s conftest.err
14765        } && test -s conftest$ac_exeext &&
14766        $as_test_x conftest$ac_exeext; then
14767
14768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14769 }'`
14770 # Check for a 64-bit object if we didn't find anything.
14771 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; }
14772 }'`; fi
14773 else
14774   echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777
14778 fi
14779
14780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14781       conftest$ac_exeext conftest.$ac_ext
14782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14783
14784        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14785         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"
14786        else
14787         if test "$host_cpu" = ia64; then
14788           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14789           allow_undefined_flag_F77="-z nodefs"
14790           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"
14791         else
14792          # Determine the default libpath from the value encoded in an empty executable.
14793          cat >conftest.$ac_ext <<_ACEOF
14794       program main
14795
14796       end
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (ac_try="$ac_link"
14800 case "(($ac_try" in
14801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802   *) ac_try_echo=$ac_try;;
14803 esac
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805   (eval "$ac_link") 2>conftest.er1
14806   ac_status=$?
14807   grep -v '^ *+' conftest.er1 >conftest.err
14808   rm -f conftest.er1
14809   cat conftest.err >&5
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); } && {
14812          test -z "$ac_f77_werror_flag" ||
14813          test ! -s conftest.err
14814        } && test -s conftest$ac_exeext &&
14815        $as_test_x conftest$ac_exeext; then
14816
14817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14818 }'`
14819 # Check for a 64-bit object if we didn't find anything.
14820 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; }
14821 }'`; fi
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826
14827 fi
14828
14829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14830       conftest$ac_exeext conftest.$ac_ext
14831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14832
14833          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14834           # Warning - without using the other run time loading flags,
14835           # -berok will link without error, but may produce a broken library.
14836           no_undefined_flag_F77=' ${wl}-bernotok'
14837           allow_undefined_flag_F77=' ${wl}-berok'
14838           # Exported symbols can be pulled into shared objects from archives
14839           whole_archive_flag_spec_F77='$convenience'
14840           archive_cmds_need_lc_F77=yes
14841           # This is similar to how AIX traditionally builds its shared libraries.
14842           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'
14843         fi
14844       fi
14845       ;;
14846
14847     amigaos*)
14848       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)'
14849       hardcode_libdir_flag_spec_F77='-L$libdir'
14850       hardcode_minus_L_F77=yes
14851       # see comment about different semantics on the GNU ld section
14852       ld_shlibs_F77=no
14853       ;;
14854
14855     bsdi[45]*)
14856       export_dynamic_flag_spec_F77=-rdynamic
14857       ;;
14858
14859     cygwin* | mingw* | pw32*)
14860       # When not using gcc, we currently assume that we are using
14861       # Microsoft Visual C++.
14862       # hardcode_libdir_flag_spec is actually meaningless, as there is
14863       # no search path for DLLs.
14864       hardcode_libdir_flag_spec_F77=' '
14865       allow_undefined_flag_F77=unsupported
14866       # Tell ltmain to make .lib files, not .a files.
14867       libext=lib
14868       # Tell ltmain to make .dll files, not .so files.
14869       shrext_cmds=".dll"
14870       # FIXME: Setting linknames here is a bad hack.
14871       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14872       # The linker will automatically build a .lib file if we build a DLL.
14873       old_archive_From_new_cmds_F77='true'
14874       # FIXME: Should let the user specify the lib program.
14875       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14876       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14877       enable_shared_with_static_runtimes_F77=yes
14878       ;;
14879
14880     darwin* | rhapsody*)
14881       case $host_os in
14882         rhapsody* | darwin1.[012])
14883          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14884          ;;
14885        *) # Darwin 1.3 on
14886          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14887            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14888          else
14889            case ${MACOSX_DEPLOYMENT_TARGET} in
14890              10.[012])
14891                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14892                ;;
14893              10.*)
14894                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14895                ;;
14896            esac
14897          fi
14898          ;;
14899       esac
14900       archive_cmds_need_lc_F77=no
14901       hardcode_direct_F77=no
14902       hardcode_automatic_F77=yes
14903       hardcode_shlibpath_var_F77=unsupported
14904       whole_archive_flag_spec_F77=''
14905       link_all_deplibs_F77=yes
14906     if test "$GCC" = yes ; then
14907         output_verbose_link_cmd='echo'
14908         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14909       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14910       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14911       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}'
14912       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}'
14913     else
14914       case $cc_basename in
14915         xlc*)
14916          output_verbose_link_cmd='echo'
14917          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14918          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14919           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14920          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}'
14921           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}'
14922           ;;
14923        *)
14924          ld_shlibs_F77=no
14925           ;;
14926       esac
14927     fi
14928       ;;
14929
14930     dgux*)
14931       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14932       hardcode_libdir_flag_spec_F77='-L$libdir'
14933       hardcode_shlibpath_var_F77=no
14934       ;;
14935
14936     freebsd1*)
14937       ld_shlibs_F77=no
14938       ;;
14939
14940     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14941     # support.  Future versions do this automatically, but an explicit c++rt0.o
14942     # does not break anything, and helps significantly (at the cost of a little
14943     # extra space).
14944     freebsd2.2*)
14945       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14946       hardcode_libdir_flag_spec_F77='-R$libdir'
14947       hardcode_direct_F77=yes
14948       hardcode_shlibpath_var_F77=no
14949       ;;
14950
14951     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14952     freebsd2*)
14953       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14954       hardcode_direct_F77=yes
14955       hardcode_minus_L_F77=yes
14956       hardcode_shlibpath_var_F77=no
14957       ;;
14958
14959     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14960     freebsd* | dragonfly*)
14961       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14962       hardcode_libdir_flag_spec_F77='-R$libdir'
14963       hardcode_direct_F77=yes
14964       hardcode_shlibpath_var_F77=no
14965       ;;
14966
14967     hpux9*)
14968       if test "$GCC" = yes; then
14969         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'
14970       else
14971         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'
14972       fi
14973       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14974       hardcode_libdir_separator_F77=:
14975       hardcode_direct_F77=yes
14976
14977       # hardcode_minus_L: Not really in the search PATH,
14978       # but as the default location of the library.
14979       hardcode_minus_L_F77=yes
14980       export_dynamic_flag_spec_F77='${wl}-E'
14981       ;;
14982
14983     hpux10*)
14984       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14985         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14986       else
14987         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14988       fi
14989       if test "$with_gnu_ld" = no; then
14990         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14991         hardcode_libdir_separator_F77=:
14992
14993         hardcode_direct_F77=yes
14994         export_dynamic_flag_spec_F77='${wl}-E'
14995
14996         # hardcode_minus_L: Not really in the search PATH,
14997         # but as the default location of the library.
14998         hardcode_minus_L_F77=yes
14999       fi
15000       ;;
15001
15002     hpux11*)
15003       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15004         case $host_cpu in
15005         hppa*64*)
15006           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007           ;;
15008         ia64*)
15009           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15010           ;;
15011         *)
15012           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15013           ;;
15014         esac
15015       else
15016         case $host_cpu in
15017         hppa*64*)
15018           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15019           ;;
15020         ia64*)
15021           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15022           ;;
15023         *)
15024           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15025           ;;
15026         esac
15027       fi
15028       if test "$with_gnu_ld" = no; then
15029         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15030         hardcode_libdir_separator_F77=:
15031
15032         case $host_cpu in
15033         hppa*64*|ia64*)
15034           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15035           hardcode_direct_F77=no
15036           hardcode_shlibpath_var_F77=no
15037           ;;
15038         *)
15039           hardcode_direct_F77=yes
15040           export_dynamic_flag_spec_F77='${wl}-E'
15041
15042           # hardcode_minus_L: Not really in the search PATH,
15043           # but as the default location of the library.
15044           hardcode_minus_L_F77=yes
15045           ;;
15046         esac
15047       fi
15048       ;;
15049
15050     irix5* | irix6* | nonstopux*)
15051       if test "$GCC" = yes; then
15052         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'
15053       else
15054         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'
15055         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15056       fi
15057       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15058       hardcode_libdir_separator_F77=:
15059       link_all_deplibs_F77=yes
15060       ;;
15061
15062     netbsd* | netbsdelf*-gnu)
15063       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15064         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15065       else
15066         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15067       fi
15068       hardcode_libdir_flag_spec_F77='-R$libdir'
15069       hardcode_direct_F77=yes
15070       hardcode_shlibpath_var_F77=no
15071       ;;
15072
15073     newsos6)
15074       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075       hardcode_direct_F77=yes
15076       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15077       hardcode_libdir_separator_F77=:
15078       hardcode_shlibpath_var_F77=no
15079       ;;
15080
15081     openbsd*)
15082       hardcode_direct_F77=yes
15083       hardcode_shlibpath_var_F77=no
15084       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15085         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15086         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15087         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15088         export_dynamic_flag_spec_F77='${wl}-E'
15089       else
15090        case $host_os in
15091          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15092            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15093            hardcode_libdir_flag_spec_F77='-R$libdir'
15094            ;;
15095          *)
15096            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15097            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15098            ;;
15099        esac
15100       fi
15101       ;;
15102
15103     os2*)
15104       hardcode_libdir_flag_spec_F77='-L$libdir'
15105       hardcode_minus_L_F77=yes
15106       allow_undefined_flag_F77=unsupported
15107       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'
15108       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15109       ;;
15110
15111     osf3*)
15112       if test "$GCC" = yes; then
15113         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15114         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'
15115       else
15116         allow_undefined_flag_F77=' -expect_unresolved \*'
15117         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'
15118       fi
15119       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15120       hardcode_libdir_separator_F77=:
15121       ;;
15122
15123     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15124       if test "$GCC" = yes; then
15125         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15126         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'
15127         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15128       else
15129         allow_undefined_flag_F77=' -expect_unresolved \*'
15130         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'
15131         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~
15132         $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'
15133
15134         # Both c and cxx compiler support -rpath directly
15135         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15136       fi
15137       hardcode_libdir_separator_F77=:
15138       ;;
15139
15140     solaris*)
15141       no_undefined_flag_F77=' -z text'
15142       if test "$GCC" = yes; then
15143         wlarc='${wl}'
15144         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15146           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15147       else
15148         wlarc=''
15149         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15151         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15152       fi
15153       hardcode_libdir_flag_spec_F77='-R$libdir'
15154       hardcode_shlibpath_var_F77=no
15155       case $host_os in
15156       solaris2.[0-5] | solaris2.[0-5].*) ;;
15157       *)
15158         # The compiler driver will combine linker options so we
15159         # cannot just pass the convience library names through
15160         # without $wl, iff we do not link with $LD.
15161         # Luckily, gcc supports the same syntax we need for Sun Studio.
15162         # Supported since Solaris 2.6 (maybe 2.5.1?)
15163         case $wlarc in
15164         '')
15165           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15166         *)
15167           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' ;;
15168         esac ;;
15169       esac
15170       link_all_deplibs_F77=yes
15171       ;;
15172
15173     sunos4*)
15174       if test "x$host_vendor" = xsequent; then
15175         # Use $CC to link under sequent, because it throws in some extra .o
15176         # files that make .init and .fini sections work.
15177         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15178       else
15179         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15180       fi
15181       hardcode_libdir_flag_spec_F77='-L$libdir'
15182       hardcode_direct_F77=yes
15183       hardcode_minus_L_F77=yes
15184       hardcode_shlibpath_var_F77=no
15185       ;;
15186
15187     sysv4)
15188       case $host_vendor in
15189         sni)
15190           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191           hardcode_direct_F77=yes # is this really true???
15192         ;;
15193         siemens)
15194           ## LD is ld it makes a PLAMLIB
15195           ## CC just makes a GrossModule.
15196           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15197           reload_cmds_F77='$CC -r -o $output$reload_objs'
15198           hardcode_direct_F77=no
15199         ;;
15200         motorola)
15201           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15203         ;;
15204       esac
15205       runpath_var='LD_RUN_PATH'
15206       hardcode_shlibpath_var_F77=no
15207       ;;
15208
15209     sysv4.3*)
15210       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211       hardcode_shlibpath_var_F77=no
15212       export_dynamic_flag_spec_F77='-Bexport'
15213       ;;
15214
15215     sysv4*MP*)
15216       if test -d /usr/nec; then
15217         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15218         hardcode_shlibpath_var_F77=no
15219         runpath_var=LD_RUN_PATH
15220         hardcode_runpath_var=yes
15221         ld_shlibs_F77=yes
15222       fi
15223       ;;
15224
15225     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15226       no_undefined_flag_F77='${wl}-z,text'
15227       archive_cmds_need_lc_F77=no
15228       hardcode_shlibpath_var_F77=no
15229       runpath_var='LD_RUN_PATH'
15230
15231       if test "$GCC" = yes; then
15232         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15234       else
15235         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15236         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15237       fi
15238       ;;
15239
15240     sysv5* | sco3.2v5* | sco5v6*)
15241       # Note: We can NOT use -z defs as we might desire, because we do not
15242       # link with -lc, and that would cause any symbols used from libc to
15243       # always be unresolved, which means just about no library would
15244       # ever link correctly.  If we're not using GNU ld we use -z text
15245       # though, which does catch some bad symbols but isn't as heavy-handed
15246       # as -z defs.
15247       no_undefined_flag_F77='${wl}-z,text'
15248       allow_undefined_flag_F77='${wl}-z,nodefs'
15249       archive_cmds_need_lc_F77=no
15250       hardcode_shlibpath_var_F77=no
15251       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15252       hardcode_libdir_separator_F77=':'
15253       link_all_deplibs_F77=yes
15254       export_dynamic_flag_spec_F77='${wl}-Bexport'
15255       runpath_var='LD_RUN_PATH'
15256
15257       if test "$GCC" = yes; then
15258         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15259         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15260       else
15261         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15262         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15263       fi
15264       ;;
15265
15266     uts4*)
15267       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15268       hardcode_libdir_flag_spec_F77='-L$libdir'
15269       hardcode_shlibpath_var_F77=no
15270       ;;
15271
15272     *)
15273       ld_shlibs_F77=no
15274       ;;
15275     esac
15276   fi
15277
15278 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15279 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15280 test "$ld_shlibs_F77" = no && can_build_shared=no
15281
15282 #
15283 # Do we need to explicitly link libc?
15284 #
15285 case "x$archive_cmds_need_lc_F77" in
15286 x|xyes)
15287   # Assume -lc should be added
15288   archive_cmds_need_lc_F77=yes
15289
15290   if test "$enable_shared" = yes && test "$GCC" = yes; then
15291     case $archive_cmds_F77 in
15292     *'~'*)
15293       # FIXME: we may have to deal with multi-command sequences.
15294       ;;
15295     '$CC '*)
15296       # Test whether the compiler implicitly links with -lc since on some
15297       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15298       # to ld, don't add -lc before -lgcc.
15299       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15300 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15301       $rm conftest*
15302       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15303
15304       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305   (eval $ac_compile) 2>&5
15306   ac_status=$?
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } 2>conftest.err; then
15309         soname=conftest
15310         lib=conftest
15311         libobjs=conftest.$ac_objext
15312         deplibs=
15313         wl=$lt_prog_compiler_wl_F77
15314         pic_flag=$lt_prog_compiler_pic_F77
15315         compiler_flags=-v
15316         linker_flags=-v
15317         verstring=
15318         output_objdir=.
15319         libname=conftest
15320         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15321         allow_undefined_flag_F77=
15322         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15323   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }
15327         then
15328           archive_cmds_need_lc_F77=no
15329         else
15330           archive_cmds_need_lc_F77=yes
15331         fi
15332         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15333       else
15334         cat conftest.err 1>&5
15335       fi
15336       $rm conftest*
15337       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15338 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15339       ;;
15340     esac
15341   fi
15342   ;;
15343 esac
15344
15345 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15346 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15347 library_names_spec=
15348 libname_spec='lib$name'
15349 soname_spec=
15350 shrext_cmds=".so"
15351 postinstall_cmds=
15352 postuninstall_cmds=
15353 finish_cmds=
15354 finish_eval=
15355 shlibpath_var=
15356 shlibpath_overrides_runpath=unknown
15357 version_type=none
15358 dynamic_linker="$host_os ld.so"
15359 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15360 if test "$GCC" = yes; then
15361   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15362   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15363     # if the path contains ";" then we assume it to be the separator
15364     # otherwise default to the standard path separator (i.e. ":") - it is
15365     # assumed that no part of a normal pathname contains ";" but that should
15366     # okay in the real world where ";" in dirpaths is itself problematic.
15367     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15368   else
15369     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15370   fi
15371 else
15372   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15373 fi
15374 need_lib_prefix=unknown
15375 hardcode_into_libs=no
15376
15377 # when you set need_version to no, make sure it does not cause -set_version
15378 # flags to be left without arguments
15379 need_version=unknown
15380
15381 case $host_os in
15382 aix3*)
15383   version_type=linux
15384   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15385   shlibpath_var=LIBPATH
15386
15387   # AIX 3 has no versioning support, so we append a major version to the name.
15388   soname_spec='${libname}${release}${shared_ext}$major'
15389   ;;
15390
15391 aix4* | aix5*)
15392   version_type=linux
15393   need_lib_prefix=no
15394   need_version=no
15395   hardcode_into_libs=yes
15396   if test "$host_cpu" = ia64; then
15397     # AIX 5 supports IA64
15398     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15399     shlibpath_var=LD_LIBRARY_PATH
15400   else
15401     # With GCC up to 2.95.x, collect2 would create an import file
15402     # for dependence libraries.  The import file would start with
15403     # the line `#! .'.  This would cause the generated library to
15404     # depend on `.', always an invalid library.  This was fixed in
15405     # development snapshots of GCC prior to 3.0.
15406     case $host_os in
15407       aix4 | aix4.[01] | aix4.[01].*)
15408       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15409            echo ' yes '
15410            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15411         :
15412       else
15413         can_build_shared=no
15414       fi
15415       ;;
15416     esac
15417     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15418     # soname into executable. Probably we can add versioning support to
15419     # collect2, so additional links can be useful in future.
15420     if test "$aix_use_runtimelinking" = yes; then
15421       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15422       # instead of lib<name>.a to let people know that these are not
15423       # typical AIX shared libraries.
15424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15425     else
15426       # We preserve .a as extension for shared libraries through AIX4.2
15427       # and later when we are not doing run time linking.
15428       library_names_spec='${libname}${release}.a $libname.a'
15429       soname_spec='${libname}${release}${shared_ext}$major'
15430     fi
15431     shlibpath_var=LIBPATH
15432   fi
15433   ;;
15434
15435 amigaos*)
15436   library_names_spec='$libname.ixlibrary $libname.a'
15437   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15438   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'
15439   ;;
15440
15441 beos*)
15442   library_names_spec='${libname}${shared_ext}'
15443   dynamic_linker="$host_os ld.so"
15444   shlibpath_var=LIBRARY_PATH
15445   ;;
15446
15447 bsdi[45]*)
15448   version_type=linux
15449   need_version=no
15450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451   soname_spec='${libname}${release}${shared_ext}$major'
15452   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15453   shlibpath_var=LD_LIBRARY_PATH
15454   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15455   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15456   # the default ld.so.conf also contains /usr/contrib/lib and
15457   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15458   # libtool to hard-code these into programs
15459   ;;
15460
15461 cygwin* | mingw* | pw32*)
15462   version_type=windows
15463   shrext_cmds=".dll"
15464   need_version=no
15465   need_lib_prefix=no
15466
15467   case $GCC,$host_os in
15468   yes,cygwin* | yes,mingw* | yes,pw32*)
15469     library_names_spec='$libname.dll.a'
15470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15471     postinstall_cmds='base_file=`basename \${file}`~
15472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15473       dldir=$destdir/`dirname \$dlpath`~
15474       test -d \$dldir || mkdir -p \$dldir~
15475       $install_prog $dir/$dlname \$dldir/$dlname~
15476       chmod a+x \$dldir/$dlname'
15477     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15478       dlpath=$dir/\$dldll~
15479        $rm \$dlpath'
15480     shlibpath_overrides_runpath=yes
15481
15482     case $host_os in
15483     cygwin*)
15484       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15485       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15486       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15487       ;;
15488     mingw*)
15489       # MinGW DLLs use traditional 'lib' prefix
15490       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15491       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15492       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15493         # It is most probably a Windows format PATH printed by
15494         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15495         # path with ; separators, and with drive letters. We can handle the
15496         # drive letters (cygwin fileutils understands them), so leave them,
15497         # especially as we might pass files found there to a mingw objdump,
15498         # which wouldn't understand a cygwinified path. Ahh.
15499         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15500       else
15501         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15502       fi
15503       ;;
15504     pw32*)
15505       # pw32 DLLs use 'pw' prefix rather than 'lib'
15506       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15507       ;;
15508     esac
15509     ;;
15510
15511   *)
15512     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15513     ;;
15514   esac
15515   dynamic_linker='Win32 ld.exe'
15516   # FIXME: first we should search . and the directory the executable is in
15517   shlibpath_var=PATH
15518   ;;
15519
15520 darwin* | rhapsody*)
15521   dynamic_linker="$host_os dyld"
15522   version_type=darwin
15523   need_lib_prefix=no
15524   need_version=no
15525   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15526   soname_spec='${libname}${release}${major}$shared_ext'
15527   shlibpath_overrides_runpath=yes
15528   shlibpath_var=DYLD_LIBRARY_PATH
15529   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15530   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15531   if test "$GCC" = yes; then
15532     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"`
15533   else
15534     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15535   fi
15536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15537   ;;
15538
15539 dgux*)
15540   version_type=linux
15541   need_lib_prefix=no
15542   need_version=no
15543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15544   soname_spec='${libname}${release}${shared_ext}$major'
15545   shlibpath_var=LD_LIBRARY_PATH
15546   ;;
15547
15548 freebsd1*)
15549   dynamic_linker=no
15550   ;;
15551
15552 freebsd* | dragonfly*)
15553   # DragonFly does not have aout.  When/if they implement a new
15554   # versioning mechanism, adjust this.
15555   if test -x /usr/bin/objformat; then
15556     objformat=`/usr/bin/objformat`
15557   else
15558     case $host_os in
15559     freebsd[123]*) objformat=aout ;;
15560     *) objformat=elf ;;
15561     esac
15562   fi
15563   version_type=freebsd-$objformat
15564   case $version_type in
15565     freebsd-elf*)
15566       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15567       need_version=no
15568       need_lib_prefix=no
15569       ;;
15570     freebsd-*)
15571       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15572       need_version=yes
15573       ;;
15574   esac
15575   shlibpath_var=LD_LIBRARY_PATH
15576   case $host_os in
15577   freebsd2*)
15578     shlibpath_overrides_runpath=yes
15579     ;;
15580   freebsd3.[01]* | freebsdelf3.[01]*)
15581     shlibpath_overrides_runpath=yes
15582     hardcode_into_libs=yes
15583     ;;
15584   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15585   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15586     shlibpath_overrides_runpath=no
15587     hardcode_into_libs=yes
15588     ;;
15589   freebsd*) # from 4.6 on
15590     shlibpath_overrides_runpath=yes
15591     hardcode_into_libs=yes
15592     ;;
15593   esac
15594   ;;
15595
15596 gnu*)
15597   version_type=linux
15598   need_lib_prefix=no
15599   need_version=no
15600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15601   soname_spec='${libname}${release}${shared_ext}$major'
15602   shlibpath_var=LD_LIBRARY_PATH
15603   hardcode_into_libs=yes
15604   ;;
15605
15606 hpux9* | hpux10* | hpux11*)
15607   # Give a soname corresponding to the major version so that dld.sl refuses to
15608   # link against other versions.
15609   version_type=sunos
15610   need_lib_prefix=no
15611   need_version=no
15612   case $host_cpu in
15613   ia64*)
15614     shrext_cmds='.so'
15615     hardcode_into_libs=yes
15616     dynamic_linker="$host_os dld.so"
15617     shlibpath_var=LD_LIBRARY_PATH
15618     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620     soname_spec='${libname}${release}${shared_ext}$major'
15621     if test "X$HPUX_IA64_MODE" = X32; then
15622       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15623     else
15624       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15625     fi
15626     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15627     ;;
15628    hppa*64*)
15629      shrext_cmds='.sl'
15630      hardcode_into_libs=yes
15631      dynamic_linker="$host_os dld.sl"
15632      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15633      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15634      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635      soname_spec='${libname}${release}${shared_ext}$major'
15636      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15637      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15638      ;;
15639    *)
15640     shrext_cmds='.sl'
15641     dynamic_linker="$host_os dld.sl"
15642     shlibpath_var=SHLIB_PATH
15643     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645     soname_spec='${libname}${release}${shared_ext}$major'
15646     ;;
15647   esac
15648   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15649   postinstall_cmds='chmod 555 $lib'
15650   ;;
15651
15652 interix3*)
15653   version_type=linux
15654   need_lib_prefix=no
15655   need_version=no
15656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15657   soname_spec='${libname}${release}${shared_ext}$major'
15658   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   shlibpath_overrides_runpath=no
15661   hardcode_into_libs=yes
15662   ;;
15663
15664 irix5* | irix6* | nonstopux*)
15665   case $host_os in
15666     nonstopux*) version_type=nonstopux ;;
15667     *)
15668         if test "$lt_cv_prog_gnu_ld" = yes; then
15669                 version_type=linux
15670         else
15671                 version_type=irix
15672         fi ;;
15673   esac
15674   need_lib_prefix=no
15675   need_version=no
15676   soname_spec='${libname}${release}${shared_ext}$major'
15677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15678   case $host_os in
15679   irix5* | nonstopux*)
15680     libsuff= shlibsuff=
15681     ;;
15682   *)
15683     case $LD in # libtool.m4 will add one of these switches to LD
15684     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15685       libsuff= shlibsuff= libmagic=32-bit;;
15686     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15687       libsuff=32 shlibsuff=N32 libmagic=N32;;
15688     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15689       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15690     *) libsuff= shlibsuff= libmagic=never-match;;
15691     esac
15692     ;;
15693   esac
15694   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15695   shlibpath_overrides_runpath=no
15696   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15697   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15698   hardcode_into_libs=yes
15699   ;;
15700
15701 # No shared lib support for Linux oldld, aout, or coff.
15702 linux*oldld* | linux*aout* | linux*coff*)
15703   dynamic_linker=no
15704   ;;
15705
15706 # This must be Linux ELF.
15707 linux* | k*bsd*-gnu)
15708   version_type=linux
15709   need_lib_prefix=no
15710   need_version=no
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15714   shlibpath_var=LD_LIBRARY_PATH
15715   shlibpath_overrides_runpath=no
15716   # This implies no fast_install, which is unacceptable.
15717   # Some rework will be needed to allow for fast_install
15718   # before this can be enabled.
15719   hardcode_into_libs=yes
15720
15721   # Append ld.so.conf contents to the search path
15722   if test -f /etc/ld.so.conf; then
15723     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' ' '`
15724     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15725   fi
15726
15727   # We used to test for /lib/ld.so.1 and disable shared libraries on
15728   # powerpc, because MkLinux only supported shared libraries with the
15729   # GNU dynamic linker.  Since this was broken with cross compilers,
15730   # most powerpc-linux boxes support dynamic linking these days and
15731   # people can always --disable-shared, the test was removed, and we
15732   # assume the GNU/Linux dynamic linker is in use.
15733   dynamic_linker='GNU/Linux ld.so'
15734   ;;
15735
15736 netbsdelf*-gnu)
15737   version_type=linux
15738   need_lib_prefix=no
15739   need_version=no
15740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15741   soname_spec='${libname}${release}${shared_ext}$major'
15742   shlibpath_var=LD_LIBRARY_PATH
15743   shlibpath_overrides_runpath=no
15744   hardcode_into_libs=yes
15745   dynamic_linker='NetBSD ld.elf_so'
15746   ;;
15747
15748 netbsd*)
15749   version_type=sunos
15750   need_lib_prefix=no
15751   need_version=no
15752   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15755     dynamic_linker='NetBSD (a.out) ld.so'
15756   else
15757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15758     soname_spec='${libname}${release}${shared_ext}$major'
15759     dynamic_linker='NetBSD ld.elf_so'
15760   fi
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=yes
15763   hardcode_into_libs=yes
15764   ;;
15765
15766 newsos6)
15767   version_type=linux
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=yes
15771   ;;
15772
15773 nto-qnx*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   shlibpath_overrides_runpath=yes
15781   ;;
15782
15783 openbsd*)
15784   version_type=sunos
15785   sys_lib_dlsearch_path_spec="/usr/lib"
15786   need_lib_prefix=no
15787   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15788   case $host_os in
15789     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15790     *)                         need_version=no  ;;
15791   esac
15792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15794   shlibpath_var=LD_LIBRARY_PATH
15795   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15796     case $host_os in
15797       openbsd2.[89] | openbsd2.[89].*)
15798         shlibpath_overrides_runpath=no
15799         ;;
15800       *)
15801         shlibpath_overrides_runpath=yes
15802         ;;
15803       esac
15804   else
15805     shlibpath_overrides_runpath=yes
15806   fi
15807   ;;
15808
15809 os2*)
15810   libname_spec='$name'
15811   shrext_cmds=".dll"
15812   need_lib_prefix=no
15813   library_names_spec='$libname${shared_ext} $libname.a'
15814   dynamic_linker='OS/2 ld.exe'
15815   shlibpath_var=LIBPATH
15816   ;;
15817
15818 osf3* | osf4* | osf5*)
15819   version_type=osf
15820   need_lib_prefix=no
15821   need_version=no
15822   soname_spec='${libname}${release}${shared_ext}$major'
15823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824   shlibpath_var=LD_LIBRARY_PATH
15825   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15826   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15827   ;;
15828
15829 solaris*)
15830   version_type=linux
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   shlibpath_var=LD_LIBRARY_PATH
15836   shlibpath_overrides_runpath=yes
15837   hardcode_into_libs=yes
15838   # ldd complains unless libraries are executable
15839   postinstall_cmds='chmod +x $lib'
15840   ;;
15841
15842 sunos4*)
15843   version_type=sunos
15844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15845   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15846   shlibpath_var=LD_LIBRARY_PATH
15847   shlibpath_overrides_runpath=yes
15848   if test "$with_gnu_ld" = yes; then
15849     need_lib_prefix=no
15850   fi
15851   need_version=yes
15852   ;;
15853
15854 sysv4 | sysv4.3*)
15855   version_type=linux
15856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857   soname_spec='${libname}${release}${shared_ext}$major'
15858   shlibpath_var=LD_LIBRARY_PATH
15859   case $host_vendor in
15860     sni)
15861       shlibpath_overrides_runpath=no
15862       need_lib_prefix=no
15863       export_dynamic_flag_spec='${wl}-Blargedynsym'
15864       runpath_var=LD_RUN_PATH
15865       ;;
15866     siemens)
15867       need_lib_prefix=no
15868       ;;
15869     motorola)
15870       need_lib_prefix=no
15871       need_version=no
15872       shlibpath_overrides_runpath=no
15873       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15874       ;;
15875   esac
15876   ;;
15877
15878 sysv4*MP*)
15879   if test -d /usr/nec ;then
15880     version_type=linux
15881     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15882     soname_spec='$libname${shared_ext}.$major'
15883     shlibpath_var=LD_LIBRARY_PATH
15884   fi
15885   ;;
15886
15887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15888   version_type=freebsd-elf
15889   need_lib_prefix=no
15890   need_version=no
15891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892   soname_spec='${libname}${release}${shared_ext}$major'
15893   shlibpath_var=LD_LIBRARY_PATH
15894   hardcode_into_libs=yes
15895   if test "$with_gnu_ld" = yes; then
15896     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15897     shlibpath_overrides_runpath=no
15898   else
15899     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15900     shlibpath_overrides_runpath=yes
15901     case $host_os in
15902       sco3.2v5*)
15903         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15904         ;;
15905     esac
15906   fi
15907   sys_lib_dlsearch_path_spec='/usr/lib'
15908   ;;
15909
15910 uts4*)
15911   version_type=linux
15912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913   soname_spec='${libname}${release}${shared_ext}$major'
15914   shlibpath_var=LD_LIBRARY_PATH
15915   ;;
15916
15917 *)
15918   dynamic_linker=no
15919   ;;
15920 esac
15921 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15922 echo "${ECHO_T}$dynamic_linker" >&6; }
15923 test "$dynamic_linker" = no && can_build_shared=no
15924
15925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15926 if test "$GCC" = yes; then
15927   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15928 fi
15929
15930 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15931 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15932 hardcode_action_F77=
15933 if test -n "$hardcode_libdir_flag_spec_F77" || \
15934    test -n "$runpath_var_F77" || \
15935    test "X$hardcode_automatic_F77" = "Xyes" ; then
15936
15937   # We can hardcode non-existant directories.
15938   if test "$hardcode_direct_F77" != no &&
15939      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15940      # have to relink, otherwise we might link with an installed library
15941      # when we should be linking with a yet-to-be-installed one
15942      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15943      test "$hardcode_minus_L_F77" != no; then
15944     # Linking always hardcodes the temporary library directory.
15945     hardcode_action_F77=relink
15946   else
15947     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15948     hardcode_action_F77=immediate
15949   fi
15950 else
15951   # We cannot hardcode anything, or else we can only hardcode existing
15952   # directories.
15953   hardcode_action_F77=unsupported
15954 fi
15955 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15956 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15957
15958 if test "$hardcode_action_F77" = relink; then
15959   # Fast installation is not supported
15960   enable_fast_install=no
15961 elif test "$shlibpath_overrides_runpath" = yes ||
15962      test "$enable_shared" = no; then
15963   # Fast installation is not necessary
15964   enable_fast_install=needless
15965 fi
15966
15967
15968 # The else clause should only fire when bootstrapping the
15969 # libtool distribution, otherwise you forgot to ship ltmain.sh
15970 # with your package, and you will get complaints that there are
15971 # no rules to generate ltmain.sh.
15972 if test -f "$ltmain"; then
15973   # See if we are running on zsh, and set the options which allow our commands through
15974   # without removal of \ escapes.
15975   if test -n "${ZSH_VERSION+set}" ; then
15976     setopt NO_GLOB_SUBST
15977   fi
15978   # Now quote all the things that may contain metacharacters while being
15979   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15980   # variables and quote the copies for generation of the libtool script.
15981   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15982     SED SHELL STRIP \
15983     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15984     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15985     deplibs_check_method reload_flag reload_cmds need_locks \
15986     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15987     lt_cv_sys_global_symbol_to_c_name_address \
15988     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15989     old_postinstall_cmds old_postuninstall_cmds \
15990     compiler_F77 \
15991     CC_F77 \
15992     LD_F77 \
15993     lt_prog_compiler_wl_F77 \
15994     lt_prog_compiler_pic_F77 \
15995     lt_prog_compiler_static_F77 \
15996     lt_prog_compiler_no_builtin_flag_F77 \
15997     export_dynamic_flag_spec_F77 \
15998     thread_safe_flag_spec_F77 \
15999     whole_archive_flag_spec_F77 \
16000     enable_shared_with_static_runtimes_F77 \
16001     old_archive_cmds_F77 \
16002     old_archive_from_new_cmds_F77 \
16003     predep_objects_F77 \
16004     postdep_objects_F77 \
16005     predeps_F77 \
16006     postdeps_F77 \
16007     compiler_lib_search_path_F77 \
16008     archive_cmds_F77 \
16009     archive_expsym_cmds_F77 \
16010     postinstall_cmds_F77 \
16011     postuninstall_cmds_F77 \
16012     old_archive_from_expsyms_cmds_F77 \
16013     allow_undefined_flag_F77 \
16014     no_undefined_flag_F77 \
16015     export_symbols_cmds_F77 \
16016     hardcode_libdir_flag_spec_F77 \
16017     hardcode_libdir_flag_spec_ld_F77 \
16018     hardcode_libdir_separator_F77 \
16019     hardcode_automatic_F77 \
16020     module_cmds_F77 \
16021     module_expsym_cmds_F77 \
16022     lt_cv_prog_compiler_c_o_F77 \
16023     exclude_expsyms_F77 \
16024     include_expsyms_F77; do
16025
16026     case $var in
16027     old_archive_cmds_F77 | \
16028     old_archive_from_new_cmds_F77 | \
16029     archive_cmds_F77 | \
16030     archive_expsym_cmds_F77 | \
16031     module_cmds_F77 | \
16032     module_expsym_cmds_F77 | \
16033     old_archive_from_expsyms_cmds_F77 | \
16034     export_symbols_cmds_F77 | \
16035     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16036     postinstall_cmds | postuninstall_cmds | \
16037     old_postinstall_cmds | old_postuninstall_cmds | \
16038     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16039       # Double-quote double-evaled strings.
16040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16041       ;;
16042     *)
16043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16044       ;;
16045     esac
16046   done
16047
16048   case $lt_echo in
16049   *'\$0 --fallback-echo"')
16050     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16051     ;;
16052   esac
16053
16054 cfgfile="$ofile"
16055
16056   cat <<__EOF__ >> "$cfgfile"
16057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16058
16059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16060
16061 # Shell to use when invoking shell scripts.
16062 SHELL=$lt_SHELL
16063
16064 # Whether or not to build shared libraries.
16065 build_libtool_libs=$enable_shared
16066
16067 # Whether or not to build static libraries.
16068 build_old_libs=$enable_static
16069
16070 # Whether or not to add -lc for building shared libraries.
16071 build_libtool_need_lc=$archive_cmds_need_lc_F77
16072
16073 # Whether or not to disallow shared libs when runtime libs are static
16074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16075
16076 # Whether or not to optimize for fast installation.
16077 fast_install=$enable_fast_install
16078
16079 # The host system.
16080 host_alias=$host_alias
16081 host=$host
16082 host_os=$host_os
16083
16084 # The build system.
16085 build_alias=$build_alias
16086 build=$build
16087 build_os=$build_os
16088
16089 # An echo program that does not interpret backslashes.
16090 echo=$lt_echo
16091
16092 # The archiver.
16093 AR=$lt_AR
16094 AR_FLAGS=$lt_AR_FLAGS
16095
16096 # A C compiler.
16097 LTCC=$lt_LTCC
16098
16099 # LTCC compiler flags.
16100 LTCFLAGS=$lt_LTCFLAGS
16101
16102 # A language-specific compiler.
16103 CC=$lt_compiler_F77
16104
16105 # Is the compiler the GNU C compiler?
16106 with_gcc=$GCC_F77
16107
16108 # An ERE matcher.
16109 EGREP=$lt_EGREP
16110
16111 # The linker used to build libraries.
16112 LD=$lt_LD_F77
16113
16114 # Whether we need hard or soft links.
16115 LN_S=$lt_LN_S
16116
16117 # A BSD-compatible nm program.
16118 NM=$lt_NM
16119
16120 # A symbol stripping program
16121 STRIP=$lt_STRIP
16122
16123 # Used to examine libraries when file_magic_cmd begins "file"
16124 MAGIC_CMD=$MAGIC_CMD
16125
16126 # Used on cygwin: DLL creation program.
16127 DLLTOOL="$DLLTOOL"
16128
16129 # Used on cygwin: object dumper.
16130 OBJDUMP="$OBJDUMP"
16131
16132 # Used on cygwin: assembler.
16133 AS="$AS"
16134
16135 # The name of the directory that contains temporary libtool files.
16136 objdir=$objdir
16137
16138 # How to create reloadable object files.
16139 reload_flag=$lt_reload_flag
16140 reload_cmds=$lt_reload_cmds
16141
16142 # How to pass a linker flag through the compiler.
16143 wl=$lt_lt_prog_compiler_wl_F77
16144
16145 # Object file suffix (normally "o").
16146 objext="$ac_objext"
16147
16148 # Old archive suffix (normally "a").
16149 libext="$libext"
16150
16151 # Shared library suffix (normally ".so").
16152 shrext_cmds='$shrext_cmds'
16153
16154 # Executable file suffix (normally "").
16155 exeext="$exeext"
16156
16157 # Additional compiler flags for building library objects.
16158 pic_flag=$lt_lt_prog_compiler_pic_F77
16159 pic_mode=$pic_mode
16160
16161 # What is the maximum length of a command?
16162 max_cmd_len=$lt_cv_sys_max_cmd_len
16163
16164 # Does compiler simultaneously support -c and -o options?
16165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16166
16167 # Must we lock files when doing compilation?
16168 need_locks=$lt_need_locks
16169
16170 # Do we need the lib prefix for modules?
16171 need_lib_prefix=$need_lib_prefix
16172
16173 # Do we need a version for libraries?
16174 need_version=$need_version
16175
16176 # Whether dlopen is supported.
16177 dlopen_support=$enable_dlopen
16178
16179 # Whether dlopen of programs is supported.
16180 dlopen_self=$enable_dlopen_self
16181
16182 # Whether dlopen of statically linked programs is supported.
16183 dlopen_self_static=$enable_dlopen_self_static
16184
16185 # Compiler flag to prevent dynamic linking.
16186 link_static_flag=$lt_lt_prog_compiler_static_F77
16187
16188 # Compiler flag to turn off builtin functions.
16189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16190
16191 # Compiler flag to allow reflexive dlopens.
16192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16193
16194 # Compiler flag to generate shared objects directly from archives.
16195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16196
16197 # Compiler flag to generate thread-safe objects.
16198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16199
16200 # Library versioning type.
16201 version_type=$version_type
16202
16203 # Format of library name prefix.
16204 libname_spec=$lt_libname_spec
16205
16206 # List of archive names.  First name is the real one, the rest are links.
16207 # The last name is the one that the linker finds with -lNAME.
16208 library_names_spec=$lt_library_names_spec
16209
16210 # The coded name of the library, if different from the real name.
16211 soname_spec=$lt_soname_spec
16212
16213 # Commands used to build and install an old-style archive.
16214 RANLIB=$lt_RANLIB
16215 old_archive_cmds=$lt_old_archive_cmds_F77
16216 old_postinstall_cmds=$lt_old_postinstall_cmds
16217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16218
16219 # Create an old-style archive from a shared archive.
16220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16221
16222 # Create a temporary old-style archive to link instead of a shared archive.
16223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16224
16225 # Commands used to build and install a shared archive.
16226 archive_cmds=$lt_archive_cmds_F77
16227 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16228 postinstall_cmds=$lt_postinstall_cmds
16229 postuninstall_cmds=$lt_postuninstall_cmds
16230
16231 # Commands used to build a loadable module (assumed same as above if empty)
16232 module_cmds=$lt_module_cmds_F77
16233 module_expsym_cmds=$lt_module_expsym_cmds_F77
16234
16235 # Commands to strip libraries.
16236 old_striplib=$lt_old_striplib
16237 striplib=$lt_striplib
16238
16239 # Dependencies to place before the objects being linked to create a
16240 # shared library.
16241 predep_objects=$lt_predep_objects_F77
16242
16243 # Dependencies to place after the objects being linked to create a
16244 # shared library.
16245 postdep_objects=$lt_postdep_objects_F77
16246
16247 # Dependencies to place before the objects being linked to create a
16248 # shared library.
16249 predeps=$lt_predeps_F77
16250
16251 # Dependencies to place after the objects being linked to create a
16252 # shared library.
16253 postdeps=$lt_postdeps_F77
16254
16255 # The library search path used internally by the compiler when linking
16256 # a shared library.
16257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16258
16259 # Method to check whether dependent libraries are shared objects.
16260 deplibs_check_method=$lt_deplibs_check_method
16261
16262 # Command to use when deplibs_check_method == file_magic.
16263 file_magic_cmd=$lt_file_magic_cmd
16264
16265 # Flag that allows shared libraries with undefined symbols to be built.
16266 allow_undefined_flag=$lt_allow_undefined_flag_F77
16267
16268 # Flag that forces no undefined symbols.
16269 no_undefined_flag=$lt_no_undefined_flag_F77
16270
16271 # Commands used to finish a libtool library installation in a directory.
16272 finish_cmds=$lt_finish_cmds
16273
16274 # Same as above, but a single script fragment to be evaled but not shown.
16275 finish_eval=$lt_finish_eval
16276
16277 # Take the output of nm and produce a listing of raw symbols and C names.
16278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16279
16280 # Transform the output of nm in a proper C declaration
16281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16282
16283 # Transform the output of nm in a C name address pair
16284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16285
16286 # This is the shared library runtime path variable.
16287 runpath_var=$runpath_var
16288
16289 # This is the shared library path variable.
16290 shlibpath_var=$shlibpath_var
16291
16292 # Is shlibpath searched before the hard-coded library search path?
16293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16294
16295 # How to hardcode a shared library path into an executable.
16296 hardcode_action=$hardcode_action_F77
16297
16298 # Whether we should hardcode library paths into libraries.
16299 hardcode_into_libs=$hardcode_into_libs
16300
16301 # Flag to hardcode \$libdir into a binary during linking.
16302 # This must work even if \$libdir does not exist.
16303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16304
16305 # If ld is used when linking, flag to hardcode \$libdir into
16306 # a binary during linking. This must work even if \$libdir does
16307 # not exist.
16308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16309
16310 # Whether we need a single -rpath flag with a separated argument.
16311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16312
16313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16314 # resulting binary.
16315 hardcode_direct=$hardcode_direct_F77
16316
16317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16318 # resulting binary.
16319 hardcode_minus_L=$hardcode_minus_L_F77
16320
16321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16322 # the resulting binary.
16323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16324
16325 # Set to yes if building a shared library automatically hardcodes DIR into the library
16326 # and all subsequent libraries and executables linked against it.
16327 hardcode_automatic=$hardcode_automatic_F77
16328
16329 # Variables whose values should be saved in libtool wrapper scripts and
16330 # restored at relink time.
16331 variables_saved_for_relink="$variables_saved_for_relink"
16332
16333 # Whether libtool must link a program against all its dependency libraries.
16334 link_all_deplibs=$link_all_deplibs_F77
16335
16336 # Compile-time system search path for libraries
16337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16338
16339 # Run-time system search path for libraries
16340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16341
16342 # Fix the shell variable \$srcfile for the compiler.
16343 fix_srcfile_path="$fix_srcfile_path_F77"
16344
16345 # Set to yes if exported symbols are required.
16346 always_export_symbols=$always_export_symbols_F77
16347
16348 # The commands to list exported symbols.
16349 export_symbols_cmds=$lt_export_symbols_cmds_F77
16350
16351 # The commands to extract the exported symbol list from a shared archive.
16352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16353
16354 # Symbols that should not be listed in the preloaded symbols.
16355 exclude_expsyms=$lt_exclude_expsyms_F77
16356
16357 # Symbols that must always be exported.
16358 include_expsyms=$lt_include_expsyms_F77
16359
16360 # ### END LIBTOOL TAG CONFIG: $tagname
16361
16362 __EOF__
16363
16364
16365 else
16366   # If there is no Makefile yet, we rely on a make rule to execute
16367   # `config.status --recheck' to rerun these tests and create the
16368   # libtool script then.
16369   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16370   if test -f "$ltmain_in"; then
16371     test -f Makefile && make "$ltmain"
16372   fi
16373 fi
16374
16375
16376 ac_ext=c
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381
16382 CC="$lt_save_CC"
16383
16384         else
16385           tagname=""
16386         fi
16387         ;;
16388
16389       GCJ)
16390         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16391
16392
16393 # Source file extension for Java test sources.
16394 ac_ext=java
16395
16396 # Object file extension for compiled Java test sources.
16397 objext=o
16398 objext_GCJ=$objext
16399
16400 # Code to be used in simple compile tests
16401 lt_simple_compile_test_code="class foo {}\n"
16402
16403 # Code to be used in simple link tests
16404 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16405
16406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16407
16408 # If no C compiler was specified, use CC.
16409 LTCC=${LTCC-"$CC"}
16410
16411 # If no C compiler flags were specified, use CFLAGS.
16412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16413
16414 # Allow CC to be a program name with arguments.
16415 compiler=$CC
16416
16417
16418 # save warnings/boilerplate of simple test code
16419 ac_outfile=conftest.$ac_objext
16420 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16422 _lt_compiler_boilerplate=`cat conftest.err`
16423 $rm conftest*
16424
16425 ac_outfile=conftest.$ac_objext
16426 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16428 _lt_linker_boilerplate=`cat conftest.err`
16429 $rm conftest*
16430
16431
16432 # Allow CC to be a program name with arguments.
16433 lt_save_CC="$CC"
16434 CC=${GCJ-"gcj"}
16435 compiler=$CC
16436 compiler_GCJ=$CC
16437 for cc_temp in $compiler""; do
16438   case $cc_temp in
16439     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16440     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16441     \-*) ;;
16442     *) break;;
16443   esac
16444 done
16445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16446
16447
16448 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16449 archive_cmds_need_lc_GCJ=no
16450
16451 old_archive_cmds_GCJ=$old_archive_cmds
16452
16453
16454 lt_prog_compiler_no_builtin_flag_GCJ=
16455
16456 if test "$GCC" = yes; then
16457   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16458
16459
16460 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16461 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16462 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16463   echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465   lt_cv_prog_compiler_rtti_exceptions=no
16466   ac_outfile=conftest.$ac_objext
16467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16468    lt_compiler_flag="-fno-rtti -fno-exceptions"
16469    # Insert the option either (1) after the last *FLAGS variable, or
16470    # (2) before a word containing "conftest.", or (3) at the end.
16471    # Note that $ac_compile itself does not contain backslashes and begins
16472    # with a dollar sign (not a hyphen), so the echo should work correctly.
16473    # The option is referenced via a variable to avoid confusing sed.
16474    lt_compile=`echo "$ac_compile" | $SED \
16475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477    -e 's:$: $lt_compiler_flag:'`
16478    (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479    (eval "$lt_compile" 2>conftest.err)
16480    ac_status=$?
16481    cat conftest.err >&5
16482    echo "$as_me:16482: \$? = $ac_status" >&5
16483    if (exit $ac_status) && test -s "$ac_outfile"; then
16484      # The compiler can only warn and ignore the option if not recognized
16485      # So say no if there are warnings other than the usual output.
16486      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16487      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16489        lt_cv_prog_compiler_rtti_exceptions=yes
16490      fi
16491    fi
16492    $rm conftest*
16493
16494 fi
16495 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16496 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16497
16498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16499     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16500 else
16501     :
16502 fi
16503
16504 fi
16505
16506 lt_prog_compiler_wl_GCJ=
16507 lt_prog_compiler_pic_GCJ=
16508 lt_prog_compiler_static_GCJ=
16509
16510 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16511 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16512
16513   if test "$GCC" = yes; then
16514     lt_prog_compiler_wl_GCJ='-Wl,'
16515     lt_prog_compiler_static_GCJ='-static'
16516
16517     case $host_os in
16518       aix*)
16519       # All AIX code is PIC.
16520       if test "$host_cpu" = ia64; then
16521         # AIX 5 now supports IA64 processor
16522         lt_prog_compiler_static_GCJ='-Bstatic'
16523       fi
16524       ;;
16525
16526     amigaos*)
16527       # FIXME: we need at least 68020 code to build shared libraries, but
16528       # adding the `-m68020' flag to GCC prevents building anything better,
16529       # like `-m68040'.
16530       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16531       ;;
16532
16533     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16534       # PIC is the default for these OSes.
16535       ;;
16536
16537     mingw* | pw32* | os2*)
16538       # This hack is so that the source file can tell whether it is being
16539       # built for inclusion in a dll (and should export symbols for example).
16540       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16541       ;;
16542
16543     darwin* | rhapsody*)
16544       # PIC is the default on this platform
16545       # Common symbols not allowed in MH_DYLIB files
16546       lt_prog_compiler_pic_GCJ='-fno-common'
16547       ;;
16548
16549     interix3*)
16550       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16551       # Instead, we relocate shared libraries at runtime.
16552       ;;
16553
16554     msdosdjgpp*)
16555       # Just because we use GCC doesn't mean we suddenly get shared libraries
16556       # on systems that don't support them.
16557       lt_prog_compiler_can_build_shared_GCJ=no
16558       enable_shared=no
16559       ;;
16560
16561     sysv4*MP*)
16562       if test -d /usr/nec; then
16563         lt_prog_compiler_pic_GCJ=-Kconform_pic
16564       fi
16565       ;;
16566
16567     hpux*)
16568       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16569       # not for PA HP-UX.
16570       case $host_cpu in
16571       hppa*64*|ia64*)
16572         # +Z the default
16573         ;;
16574       *)
16575         lt_prog_compiler_pic_GCJ='-fPIC'
16576         ;;
16577       esac
16578       ;;
16579
16580     *)
16581       lt_prog_compiler_pic_GCJ='-fPIC'
16582       ;;
16583     esac
16584   else
16585     # PORTME Check for flag to pass linker flags through the system compiler.
16586     case $host_os in
16587     aix*)
16588       lt_prog_compiler_wl_GCJ='-Wl,'
16589       if test "$host_cpu" = ia64; then
16590         # AIX 5 now supports IA64 processor
16591         lt_prog_compiler_static_GCJ='-Bstatic'
16592       else
16593         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16594       fi
16595       ;;
16596       darwin*)
16597         # PIC is the default on this platform
16598         # Common symbols not allowed in MH_DYLIB files
16599        case $cc_basename in
16600          xlc*)
16601          lt_prog_compiler_pic_GCJ='-qnocommon'
16602          lt_prog_compiler_wl_GCJ='-Wl,'
16603          ;;
16604        esac
16605        ;;
16606
16607     mingw* | pw32* | os2*)
16608       # This hack is so that the source file can tell whether it is being
16609       # built for inclusion in a dll (and should export symbols for example).
16610       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16611       ;;
16612
16613     hpux9* | hpux10* | hpux11*)
16614       lt_prog_compiler_wl_GCJ='-Wl,'
16615       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16616       # not for PA HP-UX.
16617       case $host_cpu in
16618       hppa*64*|ia64*)
16619         # +Z the default
16620         ;;
16621       *)
16622         lt_prog_compiler_pic_GCJ='+Z'
16623         ;;
16624       esac
16625       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16626       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16627       ;;
16628
16629     irix5* | irix6* | nonstopux*)
16630       lt_prog_compiler_wl_GCJ='-Wl,'
16631       # PIC (with -KPIC) is the default.
16632       lt_prog_compiler_static_GCJ='-non_shared'
16633       ;;
16634
16635     newsos6)
16636       lt_prog_compiler_pic_GCJ='-KPIC'
16637       lt_prog_compiler_static_GCJ='-Bstatic'
16638       ;;
16639
16640     linux* | k*bsd*-gnu)
16641       case $cc_basename in
16642       icc* | ecc*)
16643         lt_prog_compiler_wl_GCJ='-Wl,'
16644         lt_prog_compiler_pic_GCJ='-KPIC'
16645         lt_prog_compiler_static_GCJ='-static'
16646         ;;
16647       pgcc* | pgf77* | pgf90* | pgf95*)
16648         # Portland Group compilers (*not* the Pentium gcc compiler,
16649         # which looks to be a dead project)
16650         lt_prog_compiler_wl_GCJ='-Wl,'
16651         lt_prog_compiler_pic_GCJ='-fpic'
16652         lt_prog_compiler_static_GCJ='-Bstatic'
16653         ;;
16654       ccc*)
16655         lt_prog_compiler_wl_GCJ='-Wl,'
16656         # All Alpha code is PIC.
16657         lt_prog_compiler_static_GCJ='-non_shared'
16658         ;;
16659       esac
16660       ;;
16661
16662     osf3* | osf4* | osf5*)
16663       lt_prog_compiler_wl_GCJ='-Wl,'
16664       # All OSF/1 code is PIC.
16665       lt_prog_compiler_static_GCJ='-non_shared'
16666       ;;
16667
16668     solaris*)
16669       lt_prog_compiler_pic_GCJ='-KPIC'
16670       lt_prog_compiler_static_GCJ='-Bstatic'
16671       case $cc_basename in
16672       f77* | f90* | f95*)
16673         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16674       *)
16675         lt_prog_compiler_wl_GCJ='-Wl,';;
16676       esac
16677       ;;
16678
16679     sunos4*)
16680       lt_prog_compiler_wl_GCJ='-Qoption ld '
16681       lt_prog_compiler_pic_GCJ='-PIC'
16682       lt_prog_compiler_static_GCJ='-Bstatic'
16683       ;;
16684
16685     sysv4 | sysv4.2uw2* | sysv4.3*)
16686       lt_prog_compiler_wl_GCJ='-Wl,'
16687       lt_prog_compiler_pic_GCJ='-KPIC'
16688       lt_prog_compiler_static_GCJ='-Bstatic'
16689       ;;
16690
16691     sysv4*MP*)
16692       if test -d /usr/nec ;then
16693         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16694         lt_prog_compiler_static_GCJ='-Bstatic'
16695       fi
16696       ;;
16697
16698     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16699       lt_prog_compiler_wl_GCJ='-Wl,'
16700       lt_prog_compiler_pic_GCJ='-KPIC'
16701       lt_prog_compiler_static_GCJ='-Bstatic'
16702       ;;
16703
16704     unicos*)
16705       lt_prog_compiler_wl_GCJ='-Wl,'
16706       lt_prog_compiler_can_build_shared_GCJ=no
16707       ;;
16708
16709     uts4*)
16710       lt_prog_compiler_pic_GCJ='-pic'
16711       lt_prog_compiler_static_GCJ='-Bstatic'
16712       ;;
16713
16714     *)
16715       lt_prog_compiler_can_build_shared_GCJ=no
16716       ;;
16717     esac
16718   fi
16719
16720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16721 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16722
16723 #
16724 # Check to make sure the PIC flag actually works.
16725 #
16726 if test -n "$lt_prog_compiler_pic_GCJ"; then
16727
16728 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16729 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16730 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16731   echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733   lt_prog_compiler_pic_works_GCJ=no
16734   ac_outfile=conftest.$ac_objext
16735    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16736    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16737    # Insert the option either (1) after the last *FLAGS variable, or
16738    # (2) before a word containing "conftest.", or (3) at the end.
16739    # Note that $ac_compile itself does not contain backslashes and begins
16740    # with a dollar sign (not a hyphen), so the echo should work correctly.
16741    # The option is referenced via a variable to avoid confusing sed.
16742    lt_compile=`echo "$ac_compile" | $SED \
16743    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16744    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16745    -e 's:$: $lt_compiler_flag:'`
16746    (eval echo "\"\$as_me:16746: $lt_compile\"" >&5)
16747    (eval "$lt_compile" 2>conftest.err)
16748    ac_status=$?
16749    cat conftest.err >&5
16750    echo "$as_me:16750: \$? = $ac_status" >&5
16751    if (exit $ac_status) && test -s "$ac_outfile"; then
16752      # The compiler can only warn and ignore the option if not recognized
16753      # So say no if there are warnings other than the usual output.
16754      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16755      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16757        lt_prog_compiler_pic_works_GCJ=yes
16758      fi
16759    fi
16760    $rm conftest*
16761
16762 fi
16763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16764 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16765
16766 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16767     case $lt_prog_compiler_pic_GCJ in
16768      "" | " "*) ;;
16769      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16770      esac
16771 else
16772     lt_prog_compiler_pic_GCJ=
16773      lt_prog_compiler_can_build_shared_GCJ=no
16774 fi
16775
16776 fi
16777 case $host_os in
16778   # For platforms which do not support PIC, -DPIC is meaningless:
16779   *djgpp*)
16780     lt_prog_compiler_pic_GCJ=
16781     ;;
16782   *)
16783     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16784     ;;
16785 esac
16786
16787 #
16788 # Check to make sure the static flag actually works.
16789 #
16790 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16791 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16792 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16793 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796   lt_prog_compiler_static_works_GCJ=no
16797    save_LDFLAGS="$LDFLAGS"
16798    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16799    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16800    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16801      # The linker can only warn and ignore the option if not recognized
16802      # So say no if there are warnings
16803      if test -s conftest.err; then
16804        # Append any errors to the config.log.
16805        cat conftest.err 1>&5
16806        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16807        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16808        if diff conftest.exp conftest.er2 >/dev/null; then
16809          lt_prog_compiler_static_works_GCJ=yes
16810        fi
16811      else
16812        lt_prog_compiler_static_works_GCJ=yes
16813      fi
16814    fi
16815    $rm conftest*
16816    LDFLAGS="$save_LDFLAGS"
16817
16818 fi
16819 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16820 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16821
16822 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16823     :
16824 else
16825     lt_prog_compiler_static_GCJ=
16826 fi
16827
16828
16829 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16830 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16831 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   lt_cv_prog_compiler_c_o_GCJ=no
16835    $rm -r conftest 2>/dev/null
16836    mkdir conftest
16837    cd conftest
16838    mkdir out
16839    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16840
16841    lt_compiler_flag="-o out/conftest2.$ac_objext"
16842    # Insert the option either (1) after the last *FLAGS variable, or
16843    # (2) before a word containing "conftest.", or (3) at the end.
16844    # Note that $ac_compile itself does not contain backslashes and begins
16845    # with a dollar sign (not a hyphen), so the echo should work correctly.
16846    lt_compile=`echo "$ac_compile" | $SED \
16847    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849    -e 's:$: $lt_compiler_flag:'`
16850    (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851    (eval "$lt_compile" 2>out/conftest.err)
16852    ac_status=$?
16853    cat out/conftest.err >&5
16854    echo "$as_me:16854: \$? = $ac_status" >&5
16855    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16856    then
16857      # The compiler can only warn and ignore the option if not recognized
16858      # So say no if there are warnings
16859      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16860      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16861      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16862        lt_cv_prog_compiler_c_o_GCJ=yes
16863      fi
16864    fi
16865    chmod u+w . 2>&5
16866    $rm conftest*
16867    # SGI C++ compiler will create directory out/ii_files/ for
16868    # template instantiation
16869    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16870    $rm out/* && rmdir out
16871    cd ..
16872    rmdir conftest
16873    $rm conftest*
16874
16875 fi
16876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16877 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16878
16879
16880 hard_links="nottested"
16881 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16882   # do not overwrite the value of need_locks provided by the user
16883   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16884 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16885   hard_links=yes
16886   $rm conftest*
16887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16888   touch conftest.a
16889   ln conftest.a conftest.b 2>&5 || hard_links=no
16890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16891   { echo "$as_me:$LINENO: result: $hard_links" >&5
16892 echo "${ECHO_T}$hard_links" >&6; }
16893   if test "$hard_links" = no; then
16894     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16895 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16896     need_locks=warn
16897   fi
16898 else
16899   need_locks=no
16900 fi
16901
16902 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16903 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16904
16905   runpath_var=
16906   allow_undefined_flag_GCJ=
16907   enable_shared_with_static_runtimes_GCJ=no
16908   archive_cmds_GCJ=
16909   archive_expsym_cmds_GCJ=
16910   old_archive_From_new_cmds_GCJ=
16911   old_archive_from_expsyms_cmds_GCJ=
16912   export_dynamic_flag_spec_GCJ=
16913   whole_archive_flag_spec_GCJ=
16914   thread_safe_flag_spec_GCJ=
16915   hardcode_libdir_flag_spec_GCJ=
16916   hardcode_libdir_flag_spec_ld_GCJ=
16917   hardcode_libdir_separator_GCJ=
16918   hardcode_direct_GCJ=no
16919   hardcode_minus_L_GCJ=no
16920   hardcode_shlibpath_var_GCJ=unsupported
16921   link_all_deplibs_GCJ=unknown
16922   hardcode_automatic_GCJ=no
16923   module_cmds_GCJ=
16924   module_expsym_cmds_GCJ=
16925   always_export_symbols_GCJ=no
16926   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16927   # include_expsyms should be a list of space-separated symbols to be *always*
16928   # included in the symbol list
16929   include_expsyms_GCJ=
16930   # exclude_expsyms can be an extended regexp of symbols to exclude
16931   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16932   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16933   # as well as any symbol that contains `d'.
16934   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16935   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16936   # platforms (ab)use it in PIC code, but their linkers get confused if
16937   # the symbol is explicitly referenced.  Since portable code cannot
16938   # rely on this symbol name, it's probably fine to never include it in
16939   # preloaded symbol tables.
16940   extract_expsyms_cmds=
16941   # Just being paranoid about ensuring that cc_basename is set.
16942   for cc_temp in $compiler""; do
16943   case $cc_temp in
16944     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16945     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16946     \-*) ;;
16947     *) break;;
16948   esac
16949 done
16950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16951
16952   case $host_os in
16953   cygwin* | mingw* | pw32*)
16954     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16955     # When not using gcc, we currently assume that we are using
16956     # Microsoft Visual C++.
16957     if test "$GCC" != yes; then
16958       with_gnu_ld=no
16959     fi
16960     ;;
16961   interix*)
16962     # we just hope/assume this is gcc and not c89 (= MSVC++)
16963     with_gnu_ld=yes
16964     ;;
16965   openbsd*)
16966     with_gnu_ld=no
16967     ;;
16968   esac
16969
16970   ld_shlibs_GCJ=yes
16971   if test "$with_gnu_ld" = yes; then
16972     # If archive_cmds runs LD, not CC, wlarc should be empty
16973     wlarc='${wl}'
16974
16975     # Set some defaults for GNU ld with shared library support. These
16976     # are reset later if shared libraries are not supported. Putting them
16977     # here allows them to be overridden if necessary.
16978     runpath_var=LD_RUN_PATH
16979     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16980     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16981     # ancient GNU ld didn't support --whole-archive et. al.
16982     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16983         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16984       else
16985         whole_archive_flag_spec_GCJ=
16986     fi
16987     supports_anon_versioning=no
16988     case `$LD -v 2>/dev/null` in
16989       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16990       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16991       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16992       *\ 2.11.*) ;; # other 2.11 versions
16993       *) supports_anon_versioning=yes ;;
16994     esac
16995
16996     # See if GNU ld supports shared libraries.
16997     case $host_os in
16998     aix3* | aix4* | aix5*)
16999       # On AIX/PPC, the GNU linker is very broken
17000       if test "$host_cpu" != ia64; then
17001         ld_shlibs_GCJ=no
17002         cat <<EOF 1>&2
17003
17004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17005 *** to be unable to reliably create shared libraries on AIX.
17006 *** Therefore, libtool is disabling shared libraries support.  If you
17007 *** really care for shared libraries, you may want to modify your PATH
17008 *** so that a non-GNU linker is found, and then restart.
17009
17010 EOF
17011       fi
17012       ;;
17013
17014     amigaos*)
17015       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)'
17016       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17017       hardcode_minus_L_GCJ=yes
17018
17019       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17020       # that the semantics of dynamic libraries on AmigaOS, at least up
17021       # to version 4, is to share data among multiple programs linked
17022       # with the same dynamic library.  Since this doesn't match the
17023       # behavior of shared libraries on other platforms, we can't use
17024       # them.
17025       ld_shlibs_GCJ=no
17026       ;;
17027
17028     beos*)
17029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030         allow_undefined_flag_GCJ=unsupported
17031         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17032         # support --undefined.  This deserves some investigation.  FIXME
17033         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17034       else
17035         ld_shlibs_GCJ=no
17036       fi
17037       ;;
17038
17039     cygwin* | mingw* | pw32*)
17040       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17041       # as there is no search path for DLLs.
17042       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17043       allow_undefined_flag_GCJ=unsupported
17044       always_export_symbols_GCJ=no
17045       enable_shared_with_static_runtimes_GCJ=yes
17046       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17047
17048       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17049         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17050         # If the export-symbols file already is a .def file (1st line
17051         # is EXPORTS), use it as is; otherwise, prepend...
17052         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17053           cp $export_symbols $output_objdir/$soname.def;
17054         else
17055           echo EXPORTS > $output_objdir/$soname.def;
17056           cat $export_symbols >> $output_objdir/$soname.def;
17057         fi~
17058         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17059       else
17060         ld_shlibs_GCJ=no
17061       fi
17062       ;;
17063
17064     interix3*)
17065       hardcode_direct_GCJ=no
17066       hardcode_shlibpath_var_GCJ=no
17067       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17068       export_dynamic_flag_spec_GCJ='${wl}-E'
17069       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17070       # Instead, shared libraries are loaded at an image base (0x10000000 by
17071       # default) and relocated if they conflict, which is a slow very memory
17072       # consuming and fragmenting process.  To avoid this, we pick a random,
17073       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17074       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17075       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'
17076       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'
17077       ;;
17078
17079     linux* | k*bsd*-gnu)
17080       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17081         tmp_addflag=
17082         case $cc_basename,$host_cpu in
17083         pgcc*)                          # Portland Group C compiler
17084           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'
17085           tmp_addflag=' $pic_flag'
17086           ;;
17087         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17088           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'
17089           tmp_addflag=' $pic_flag -Mnomain' ;;
17090         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17091           tmp_addflag=' -i_dynamic' ;;
17092         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17093           tmp_addflag=' -i_dynamic -nofor_main' ;;
17094         ifc* | ifort*)                  # Intel Fortran compiler
17095           tmp_addflag=' -nofor_main' ;;
17096         esac
17097         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17098
17099         if test $supports_anon_versioning = yes; then
17100           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17101   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17102   $echo "local: *; };" >> $output_objdir/$libname.ver~
17103           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17104         fi
17105         link_all_deplibs_GCJ=no
17106       else
17107         ld_shlibs_GCJ=no
17108       fi
17109       ;;
17110
17111     netbsd* | netbsdelf*-gnu)
17112       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17113         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17114         wlarc=
17115       else
17116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17118       fi
17119       ;;
17120
17121     solaris*)
17122       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17123         ld_shlibs_GCJ=no
17124         cat <<EOF 1>&2
17125
17126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17127 *** create shared libraries on Solaris systems.  Therefore, libtool
17128 *** is disabling shared libraries support.  We urge you to upgrade GNU
17129 *** binutils to release 2.9.1 or newer.  Another option is to modify
17130 *** your PATH or compiler configuration so that the native linker is
17131 *** used, and then restart.
17132
17133 EOF
17134       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17135         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17136         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17137       else
17138         ld_shlibs_GCJ=no
17139       fi
17140       ;;
17141
17142     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17143       case `$LD -v 2>&1` in
17144         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17145         ld_shlibs_GCJ=no
17146         cat <<_LT_EOF 1>&2
17147
17148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17149 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17150 *** is disabling shared libraries support.  We urge you to upgrade GNU
17151 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17152 *** your PATH or compiler configuration so that the native linker is
17153 *** used, and then restart.
17154
17155 _LT_EOF
17156         ;;
17157         *)
17158           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17159             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17160             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17161             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17162           else
17163             ld_shlibs_GCJ=no
17164           fi
17165         ;;
17166       esac
17167       ;;
17168
17169     sunos4*)
17170       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17171       wlarc=
17172       hardcode_direct_GCJ=yes
17173       hardcode_shlibpath_var_GCJ=no
17174       ;;
17175
17176     *)
17177       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17178         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17179         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17180       else
17181         ld_shlibs_GCJ=no
17182       fi
17183       ;;
17184     esac
17185
17186     if test "$ld_shlibs_GCJ" = no; then
17187       runpath_var=
17188       hardcode_libdir_flag_spec_GCJ=
17189       export_dynamic_flag_spec_GCJ=
17190       whole_archive_flag_spec_GCJ=
17191     fi
17192   else
17193     # PORTME fill in a description of your system's linker (not GNU ld)
17194     case $host_os in
17195     aix3*)
17196       allow_undefined_flag_GCJ=unsupported
17197       always_export_symbols_GCJ=yes
17198       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'
17199       # Note: this linker hardcodes the directories in LIBPATH if there
17200       # are no directories specified by -L.
17201       hardcode_minus_L_GCJ=yes
17202       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17203         # Neither direct hardcoding nor static linking is supported with a
17204         # broken collect2.
17205         hardcode_direct_GCJ=unsupported
17206       fi
17207       ;;
17208
17209     aix4* | aix5*)
17210       if test "$host_cpu" = ia64; then
17211         # On IA64, the linker does run time linking by default, so we don't
17212         # have to do anything special.
17213         aix_use_runtimelinking=no
17214         exp_sym_flag='-Bexport'
17215         no_entry_flag=""
17216       else
17217         # If we're using GNU nm, then we don't want the "-C" option.
17218         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17219         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17220           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'
17221         else
17222           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'
17223         fi
17224         aix_use_runtimelinking=no
17225
17226         # Test if we are trying to use run time linking or normal
17227         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17228         # need to do runtime linking.
17229         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17230           for ld_flag in $LDFLAGS; do
17231           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17232             aix_use_runtimelinking=yes
17233             break
17234           fi
17235           done
17236           ;;
17237         esac
17238
17239         exp_sym_flag='-bexport'
17240         no_entry_flag='-bnoentry'
17241       fi
17242
17243       # When large executables or shared objects are built, AIX ld can
17244       # have problems creating the table of contents.  If linking a library
17245       # or program results in "error TOC overflow" add -mminimal-toc to
17246       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17247       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17248
17249       archive_cmds_GCJ=''
17250       hardcode_direct_GCJ=yes
17251       hardcode_libdir_separator_GCJ=':'
17252       link_all_deplibs_GCJ=yes
17253
17254       if test "$GCC" = yes; then
17255         case $host_os in aix4.[012]|aix4.[012].*)
17256         # We only want to do this on AIX 4.2 and lower, the check
17257         # below for broken collect2 doesn't work under 4.3+
17258           collect2name=`${CC} -print-prog-name=collect2`
17259           if test -f "$collect2name" && \
17260            strings "$collect2name" | grep resolve_lib_name >/dev/null
17261           then
17262           # We have reworked collect2
17263           hardcode_direct_GCJ=yes
17264           else
17265           # We have old collect2
17266           hardcode_direct_GCJ=unsupported
17267           # It fails to find uninstalled libraries when the uninstalled
17268           # path is not listed in the libpath.  Setting hardcode_minus_L
17269           # to unsupported forces relinking
17270           hardcode_minus_L_GCJ=yes
17271           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272           hardcode_libdir_separator_GCJ=
17273           fi
17274           ;;
17275         esac
17276         shared_flag='-shared'
17277         if test "$aix_use_runtimelinking" = yes; then
17278           shared_flag="$shared_flag "'${wl}-G'
17279         fi
17280       else
17281         # not using gcc
17282         if test "$host_cpu" = ia64; then
17283         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17284         # chokes on -Wl,-G. The following line is correct:
17285           shared_flag='-G'
17286         else
17287           if test "$aix_use_runtimelinking" = yes; then
17288             shared_flag='${wl}-G'
17289           else
17290             shared_flag='${wl}-bM:SRE'
17291           fi
17292         fi
17293       fi
17294
17295       # It seems that -bexpall does not export symbols beginning with
17296       # underscore (_), so it is better to generate a list of symbols to export.
17297       always_export_symbols_GCJ=yes
17298       if test "$aix_use_runtimelinking" = yes; then
17299         # Warning - without using the other runtime loading flags (-brtl),
17300         # -berok will link without error, but may produce a broken library.
17301         allow_undefined_flag_GCJ='-berok'
17302        # Determine the default libpath from the value encoded in an empty executable.
17303        cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h.  */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h.  */
17309
17310 int
17311 main ()
17312 {
17313
17314   ;
17315   return 0;
17316 }
17317 _ACEOF
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322   *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325   (eval "$ac_link") 2>conftest.er1
17326   ac_status=$?
17327   grep -v '^ *+' conftest.er1 >conftest.err
17328   rm -f conftest.er1
17329   cat conftest.err >&5
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } && {
17332          test -z "$ac_c_werror_flag" ||
17333          test ! -s conftest.err
17334        } && test -s conftest$ac_exeext &&
17335        $as_test_x conftest$ac_exeext; then
17336
17337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17338 }'`
17339 # Check for a 64-bit object if we didn't find anything.
17340 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; }
17341 }'`; fi
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346
17347 fi
17348
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350       conftest$ac_exeext conftest.$ac_ext
17351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17352
17353        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17354         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"
17355        else
17356         if test "$host_cpu" = ia64; then
17357           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17358           allow_undefined_flag_GCJ="-z nodefs"
17359           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"
17360         else
17361          # Determine the default libpath from the value encoded in an empty executable.
17362          cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h.  */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h.  */
17368
17369 int
17370 main ()
17371 {
17372
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_link") 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } && {
17391          test -z "$ac_c_werror_flag" ||
17392          test ! -s conftest.err
17393        } && test -s conftest$ac_exeext &&
17394        $as_test_x conftest$ac_exeext; then
17395
17396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17397 }'`
17398 # Check for a 64-bit object if we didn't find anything.
17399 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; }
17400 }'`; fi
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17409       conftest$ac_exeext conftest.$ac_ext
17410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17411
17412          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17413           # Warning - without using the other run time loading flags,
17414           # -berok will link without error, but may produce a broken library.
17415           no_undefined_flag_GCJ=' ${wl}-bernotok'
17416           allow_undefined_flag_GCJ=' ${wl}-berok'
17417           # Exported symbols can be pulled into shared objects from archives
17418           whole_archive_flag_spec_GCJ='$convenience'
17419           archive_cmds_need_lc_GCJ=yes
17420           # This is similar to how AIX traditionally builds its shared libraries.
17421           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'
17422         fi
17423       fi
17424       ;;
17425
17426     amigaos*)
17427       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)'
17428       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17429       hardcode_minus_L_GCJ=yes
17430       # see comment about different semantics on the GNU ld section
17431       ld_shlibs_GCJ=no
17432       ;;
17433
17434     bsdi[45]*)
17435       export_dynamic_flag_spec_GCJ=-rdynamic
17436       ;;
17437
17438     cygwin* | mingw* | pw32*)
17439       # When not using gcc, we currently assume that we are using
17440       # Microsoft Visual C++.
17441       # hardcode_libdir_flag_spec is actually meaningless, as there is
17442       # no search path for DLLs.
17443       hardcode_libdir_flag_spec_GCJ=' '
17444       allow_undefined_flag_GCJ=unsupported
17445       # Tell ltmain to make .lib files, not .a files.
17446       libext=lib
17447       # Tell ltmain to make .dll files, not .so files.
17448       shrext_cmds=".dll"
17449       # FIXME: Setting linknames here is a bad hack.
17450       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17451       # The linker will automatically build a .lib file if we build a DLL.
17452       old_archive_From_new_cmds_GCJ='true'
17453       # FIXME: Should let the user specify the lib program.
17454       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17455       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17456       enable_shared_with_static_runtimes_GCJ=yes
17457       ;;
17458
17459     darwin* | rhapsody*)
17460       case $host_os in
17461         rhapsody* | darwin1.[012])
17462          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17463          ;;
17464        *) # Darwin 1.3 on
17465          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17466            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17467          else
17468            case ${MACOSX_DEPLOYMENT_TARGET} in
17469              10.[012])
17470                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17471                ;;
17472              10.*)
17473                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17474                ;;
17475            esac
17476          fi
17477          ;;
17478       esac
17479       archive_cmds_need_lc_GCJ=no
17480       hardcode_direct_GCJ=no
17481       hardcode_automatic_GCJ=yes
17482       hardcode_shlibpath_var_GCJ=unsupported
17483       whole_archive_flag_spec_GCJ=''
17484       link_all_deplibs_GCJ=yes
17485     if test "$GCC" = yes ; then
17486         output_verbose_link_cmd='echo'
17487         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17488       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17489       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17490       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}'
17491       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}'
17492     else
17493       case $cc_basename in
17494         xlc*)
17495          output_verbose_link_cmd='echo'
17496          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17497          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17498           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17499          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}'
17500           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}'
17501           ;;
17502        *)
17503          ld_shlibs_GCJ=no
17504           ;;
17505       esac
17506     fi
17507       ;;
17508
17509     dgux*)
17510       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17511       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17512       hardcode_shlibpath_var_GCJ=no
17513       ;;
17514
17515     freebsd1*)
17516       ld_shlibs_GCJ=no
17517       ;;
17518
17519     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17520     # support.  Future versions do this automatically, but an explicit c++rt0.o
17521     # does not break anything, and helps significantly (at the cost of a little
17522     # extra space).
17523     freebsd2.2*)
17524       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17525       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17526       hardcode_direct_GCJ=yes
17527       hardcode_shlibpath_var_GCJ=no
17528       ;;
17529
17530     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17531     freebsd2*)
17532       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17533       hardcode_direct_GCJ=yes
17534       hardcode_minus_L_GCJ=yes
17535       hardcode_shlibpath_var_GCJ=no
17536       ;;
17537
17538     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17539     freebsd* | dragonfly*)
17540       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17541       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17542       hardcode_direct_GCJ=yes
17543       hardcode_shlibpath_var_GCJ=no
17544       ;;
17545
17546     hpux9*)
17547       if test "$GCC" = yes; then
17548         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'
17549       else
17550         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'
17551       fi
17552       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553       hardcode_libdir_separator_GCJ=:
17554       hardcode_direct_GCJ=yes
17555
17556       # hardcode_minus_L: Not really in the search PATH,
17557       # but as the default location of the library.
17558       hardcode_minus_L_GCJ=yes
17559       export_dynamic_flag_spec_GCJ='${wl}-E'
17560       ;;
17561
17562     hpux10*)
17563       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17564         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17565       else
17566         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17567       fi
17568       if test "$with_gnu_ld" = no; then
17569         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17570         hardcode_libdir_separator_GCJ=:
17571
17572         hardcode_direct_GCJ=yes
17573         export_dynamic_flag_spec_GCJ='${wl}-E'
17574
17575         # hardcode_minus_L: Not really in the search PATH,
17576         # but as the default location of the library.
17577         hardcode_minus_L_GCJ=yes
17578       fi
17579       ;;
17580
17581     hpux11*)
17582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17583         case $host_cpu in
17584         hppa*64*)
17585           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17586           ;;
17587         ia64*)
17588           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17589           ;;
17590         *)
17591           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17592           ;;
17593         esac
17594       else
17595         case $host_cpu in
17596         hppa*64*)
17597           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17598           ;;
17599         ia64*)
17600           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17601           ;;
17602         *)
17603           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17604           ;;
17605         esac
17606       fi
17607       if test "$with_gnu_ld" = no; then
17608         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17609         hardcode_libdir_separator_GCJ=:
17610
17611         case $host_cpu in
17612         hppa*64*|ia64*)
17613           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17614           hardcode_direct_GCJ=no
17615           hardcode_shlibpath_var_GCJ=no
17616           ;;
17617         *)
17618           hardcode_direct_GCJ=yes
17619           export_dynamic_flag_spec_GCJ='${wl}-E'
17620
17621           # hardcode_minus_L: Not really in the search PATH,
17622           # but as the default location of the library.
17623           hardcode_minus_L_GCJ=yes
17624           ;;
17625         esac
17626       fi
17627       ;;
17628
17629     irix5* | irix6* | nonstopux*)
17630       if test "$GCC" = yes; then
17631         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'
17632       else
17633         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'
17634         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17635       fi
17636       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17637       hardcode_libdir_separator_GCJ=:
17638       link_all_deplibs_GCJ=yes
17639       ;;
17640
17641     netbsd* | netbsdelf*-gnu)
17642       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17643         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17644       else
17645         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17646       fi
17647       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17648       hardcode_direct_GCJ=yes
17649       hardcode_shlibpath_var_GCJ=no
17650       ;;
17651
17652     newsos6)
17653       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17654       hardcode_direct_GCJ=yes
17655       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17656       hardcode_libdir_separator_GCJ=:
17657       hardcode_shlibpath_var_GCJ=no
17658       ;;
17659
17660     openbsd*)
17661       hardcode_direct_GCJ=yes
17662       hardcode_shlibpath_var_GCJ=no
17663       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17664         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17665         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17666         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17667         export_dynamic_flag_spec_GCJ='${wl}-E'
17668       else
17669        case $host_os in
17670          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17671            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17672            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17673            ;;
17674          *)
17675            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17676            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17677            ;;
17678        esac
17679       fi
17680       ;;
17681
17682     os2*)
17683       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17684       hardcode_minus_L_GCJ=yes
17685       allow_undefined_flag_GCJ=unsupported
17686       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'
17687       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17688       ;;
17689
17690     osf3*)
17691       if test "$GCC" = yes; then
17692         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17693         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'
17694       else
17695         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17696         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'
17697       fi
17698       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17699       hardcode_libdir_separator_GCJ=:
17700       ;;
17701
17702     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17703       if test "$GCC" = yes; then
17704         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17705         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'
17706         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17707       else
17708         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17709         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'
17710         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~
17711         $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'
17712
17713         # Both c and cxx compiler support -rpath directly
17714         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17715       fi
17716       hardcode_libdir_separator_GCJ=:
17717       ;;
17718
17719     solaris*)
17720       no_undefined_flag_GCJ=' -z text'
17721       if test "$GCC" = yes; then
17722         wlarc='${wl}'
17723         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17724         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17725           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17726       else
17727         wlarc=''
17728         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17730         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17731       fi
17732       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733       hardcode_shlibpath_var_GCJ=no
17734       case $host_os in
17735       solaris2.[0-5] | solaris2.[0-5].*) ;;
17736       *)
17737         # The compiler driver will combine linker options so we
17738         # cannot just pass the convience library names through
17739         # without $wl, iff we do not link with $LD.
17740         # Luckily, gcc supports the same syntax we need for Sun Studio.
17741         # Supported since Solaris 2.6 (maybe 2.5.1?)
17742         case $wlarc in
17743         '')
17744           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17745         *)
17746           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' ;;
17747         esac ;;
17748       esac
17749       link_all_deplibs_GCJ=yes
17750       ;;
17751
17752     sunos4*)
17753       if test "x$host_vendor" = xsequent; then
17754         # Use $CC to link under sequent, because it throws in some extra .o
17755         # files that make .init and .fini sections work.
17756         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17757       else
17758         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17759       fi
17760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17761       hardcode_direct_GCJ=yes
17762       hardcode_minus_L_GCJ=yes
17763       hardcode_shlibpath_var_GCJ=no
17764       ;;
17765
17766     sysv4)
17767       case $host_vendor in
17768         sni)
17769           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770           hardcode_direct_GCJ=yes # is this really true???
17771         ;;
17772         siemens)
17773           ## LD is ld it makes a PLAMLIB
17774           ## CC just makes a GrossModule.
17775           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17776           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17777           hardcode_direct_GCJ=no
17778         ;;
17779         motorola)
17780           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17782         ;;
17783       esac
17784       runpath_var='LD_RUN_PATH'
17785       hardcode_shlibpath_var_GCJ=no
17786       ;;
17787
17788     sysv4.3*)
17789       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17790       hardcode_shlibpath_var_GCJ=no
17791       export_dynamic_flag_spec_GCJ='-Bexport'
17792       ;;
17793
17794     sysv4*MP*)
17795       if test -d /usr/nec; then
17796         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17797         hardcode_shlibpath_var_GCJ=no
17798         runpath_var=LD_RUN_PATH
17799         hardcode_runpath_var=yes
17800         ld_shlibs_GCJ=yes
17801       fi
17802       ;;
17803
17804     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17805       no_undefined_flag_GCJ='${wl}-z,text'
17806       archive_cmds_need_lc_GCJ=no
17807       hardcode_shlibpath_var_GCJ=no
17808       runpath_var='LD_RUN_PATH'
17809
17810       if test "$GCC" = yes; then
17811         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17812         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17813       else
17814         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17815         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17816       fi
17817       ;;
17818
17819     sysv5* | sco3.2v5* | sco5v6*)
17820       # Note: We can NOT use -z defs as we might desire, because we do not
17821       # link with -lc, and that would cause any symbols used from libc to
17822       # always be unresolved, which means just about no library would
17823       # ever link correctly.  If we're not using GNU ld we use -z text
17824       # though, which does catch some bad symbols but isn't as heavy-handed
17825       # as -z defs.
17826       no_undefined_flag_GCJ='${wl}-z,text'
17827       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17828       archive_cmds_need_lc_GCJ=no
17829       hardcode_shlibpath_var_GCJ=no
17830       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17831       hardcode_libdir_separator_GCJ=':'
17832       link_all_deplibs_GCJ=yes
17833       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17834       runpath_var='LD_RUN_PATH'
17835
17836       if test "$GCC" = yes; then
17837         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17839       else
17840         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17841         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17842       fi
17843       ;;
17844
17845     uts4*)
17846       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17848       hardcode_shlibpath_var_GCJ=no
17849       ;;
17850
17851     *)
17852       ld_shlibs_GCJ=no
17853       ;;
17854     esac
17855   fi
17856
17857 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17858 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17859 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17860
17861 #
17862 # Do we need to explicitly link libc?
17863 #
17864 case "x$archive_cmds_need_lc_GCJ" in
17865 x|xyes)
17866   # Assume -lc should be added
17867   archive_cmds_need_lc_GCJ=yes
17868
17869   if test "$enable_shared" = yes && test "$GCC" = yes; then
17870     case $archive_cmds_GCJ in
17871     *'~'*)
17872       # FIXME: we may have to deal with multi-command sequences.
17873       ;;
17874     '$CC '*)
17875       # Test whether the compiler implicitly links with -lc since on some
17876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17877       # to ld, don't add -lc before -lgcc.
17878       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17880       $rm conftest*
17881       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17882
17883       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17884   (eval $ac_compile) 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } 2>conftest.err; then
17888         soname=conftest
17889         lib=conftest
17890         libobjs=conftest.$ac_objext
17891         deplibs=
17892         wl=$lt_prog_compiler_wl_GCJ
17893         pic_flag=$lt_prog_compiler_pic_GCJ
17894         compiler_flags=-v
17895         linker_flags=-v
17896         verstring=
17897         output_objdir=.
17898         libname=conftest
17899         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17900         allow_undefined_flag_GCJ=
17901         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17902   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }
17906         then
17907           archive_cmds_need_lc_GCJ=no
17908         else
17909           archive_cmds_need_lc_GCJ=yes
17910         fi
17911         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17912       else
17913         cat conftest.err 1>&5
17914       fi
17915       $rm conftest*
17916       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17917 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17918       ;;
17919     esac
17920   fi
17921   ;;
17922 esac
17923
17924 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17926 library_names_spec=
17927 libname_spec='lib$name'
17928 soname_spec=
17929 shrext_cmds=".so"
17930 postinstall_cmds=
17931 postuninstall_cmds=
17932 finish_cmds=
17933 finish_eval=
17934 shlibpath_var=
17935 shlibpath_overrides_runpath=unknown
17936 version_type=none
17937 dynamic_linker="$host_os ld.so"
17938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17939 if test "$GCC" = yes; then
17940   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17941   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17942     # if the path contains ";" then we assume it to be the separator
17943     # otherwise default to the standard path separator (i.e. ":") - it is
17944     # assumed that no part of a normal pathname contains ";" but that should
17945     # okay in the real world where ";" in dirpaths is itself problematic.
17946     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17947   else
17948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17949   fi
17950 else
17951   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17952 fi
17953 need_lib_prefix=unknown
17954 hardcode_into_libs=no
17955
17956 # when you set need_version to no, make sure it does not cause -set_version
17957 # flags to be left without arguments
17958 need_version=unknown
17959
17960 case $host_os in
17961 aix3*)
17962   version_type=linux
17963   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17964   shlibpath_var=LIBPATH
17965
17966   # AIX 3 has no versioning support, so we append a major version to the name.
17967   soname_spec='${libname}${release}${shared_ext}$major'
17968   ;;
17969
17970 aix4* | aix5*)
17971   version_type=linux
17972   need_lib_prefix=no
17973   need_version=no
17974   hardcode_into_libs=yes
17975   if test "$host_cpu" = ia64; then
17976     # AIX 5 supports IA64
17977     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17978     shlibpath_var=LD_LIBRARY_PATH
17979   else
17980     # With GCC up to 2.95.x, collect2 would create an import file
17981     # for dependence libraries.  The import file would start with
17982     # the line `#! .'.  This would cause the generated library to
17983     # depend on `.', always an invalid library.  This was fixed in
17984     # development snapshots of GCC prior to 3.0.
17985     case $host_os in
17986       aix4 | aix4.[01] | aix4.[01].*)
17987       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17988            echo ' yes '
17989            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17990         :
17991       else
17992         can_build_shared=no
17993       fi
17994       ;;
17995     esac
17996     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17997     # soname into executable. Probably we can add versioning support to
17998     # collect2, so additional links can be useful in future.
17999     if test "$aix_use_runtimelinking" = yes; then
18000       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18001       # instead of lib<name>.a to let people know that these are not
18002       # typical AIX shared libraries.
18003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004     else
18005       # We preserve .a as extension for shared libraries through AIX4.2
18006       # and later when we are not doing run time linking.
18007       library_names_spec='${libname}${release}.a $libname.a'
18008       soname_spec='${libname}${release}${shared_ext}$major'
18009     fi
18010     shlibpath_var=LIBPATH
18011   fi
18012   ;;
18013
18014 amigaos*)
18015   library_names_spec='$libname.ixlibrary $libname.a'
18016   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18017   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'
18018   ;;
18019
18020 beos*)
18021   library_names_spec='${libname}${shared_ext}'
18022   dynamic_linker="$host_os ld.so"
18023   shlibpath_var=LIBRARY_PATH
18024   ;;
18025
18026 bsdi[45]*)
18027   version_type=linux
18028   need_version=no
18029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030   soname_spec='${libname}${release}${shared_ext}$major'
18031   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18032   shlibpath_var=LD_LIBRARY_PATH
18033   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18034   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18035   # the default ld.so.conf also contains /usr/contrib/lib and
18036   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18037   # libtool to hard-code these into programs
18038   ;;
18039
18040 cygwin* | mingw* | pw32*)
18041   version_type=windows
18042   shrext_cmds=".dll"
18043   need_version=no
18044   need_lib_prefix=no
18045
18046   case $GCC,$host_os in
18047   yes,cygwin* | yes,mingw* | yes,pw32*)
18048     library_names_spec='$libname.dll.a'
18049     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18050     postinstall_cmds='base_file=`basename \${file}`~
18051       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18052       dldir=$destdir/`dirname \$dlpath`~
18053       test -d \$dldir || mkdir -p \$dldir~
18054       $install_prog $dir/$dlname \$dldir/$dlname~
18055       chmod a+x \$dldir/$dlname'
18056     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18057       dlpath=$dir/\$dldll~
18058        $rm \$dlpath'
18059     shlibpath_overrides_runpath=yes
18060
18061     case $host_os in
18062     cygwin*)
18063       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18064       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18065       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18066       ;;
18067     mingw*)
18068       # MinGW DLLs use traditional 'lib' prefix
18069       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18070       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18071       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18072         # It is most probably a Windows format PATH printed by
18073         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18074         # path with ; separators, and with drive letters. We can handle the
18075         # drive letters (cygwin fileutils understands them), so leave them,
18076         # especially as we might pass files found there to a mingw objdump,
18077         # which wouldn't understand a cygwinified path. Ahh.
18078         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18079       else
18080         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18081       fi
18082       ;;
18083     pw32*)
18084       # pw32 DLLs use 'pw' prefix rather than 'lib'
18085       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18086       ;;
18087     esac
18088     ;;
18089
18090   *)
18091     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18092     ;;
18093   esac
18094   dynamic_linker='Win32 ld.exe'
18095   # FIXME: first we should search . and the directory the executable is in
18096   shlibpath_var=PATH
18097   ;;
18098
18099 darwin* | rhapsody*)
18100   dynamic_linker="$host_os dyld"
18101   version_type=darwin
18102   need_lib_prefix=no
18103   need_version=no
18104   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18105   soname_spec='${libname}${release}${major}$shared_ext'
18106   shlibpath_overrides_runpath=yes
18107   shlibpath_var=DYLD_LIBRARY_PATH
18108   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18109   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18110   if test "$GCC" = yes; then
18111     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"`
18112   else
18113     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18114   fi
18115   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18116   ;;
18117
18118 dgux*)
18119   version_type=linux
18120   need_lib_prefix=no
18121   need_version=no
18122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18123   soname_spec='${libname}${release}${shared_ext}$major'
18124   shlibpath_var=LD_LIBRARY_PATH
18125   ;;
18126
18127 freebsd1*)
18128   dynamic_linker=no
18129   ;;
18130
18131 freebsd* | dragonfly*)
18132   # DragonFly does not have aout.  When/if they implement a new
18133   # versioning mechanism, adjust this.
18134   if test -x /usr/bin/objformat; then
18135     objformat=`/usr/bin/objformat`
18136   else
18137     case $host_os in
18138     freebsd[123]*) objformat=aout ;;
18139     *) objformat=elf ;;
18140     esac
18141   fi
18142   version_type=freebsd-$objformat
18143   case $version_type in
18144     freebsd-elf*)
18145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18146       need_version=no
18147       need_lib_prefix=no
18148       ;;
18149     freebsd-*)
18150       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18151       need_version=yes
18152       ;;
18153   esac
18154   shlibpath_var=LD_LIBRARY_PATH
18155   case $host_os in
18156   freebsd2*)
18157     shlibpath_overrides_runpath=yes
18158     ;;
18159   freebsd3.[01]* | freebsdelf3.[01]*)
18160     shlibpath_overrides_runpath=yes
18161     hardcode_into_libs=yes
18162     ;;
18163   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18164   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18165     shlibpath_overrides_runpath=no
18166     hardcode_into_libs=yes
18167     ;;
18168   freebsd*) # from 4.6 on
18169     shlibpath_overrides_runpath=yes
18170     hardcode_into_libs=yes
18171     ;;
18172   esac
18173   ;;
18174
18175 gnu*)
18176   version_type=linux
18177   need_lib_prefix=no
18178   need_version=no
18179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18180   soname_spec='${libname}${release}${shared_ext}$major'
18181   shlibpath_var=LD_LIBRARY_PATH
18182   hardcode_into_libs=yes
18183   ;;
18184
18185 hpux9* | hpux10* | hpux11*)
18186   # Give a soname corresponding to the major version so that dld.sl refuses to
18187   # link against other versions.
18188   version_type=sunos
18189   need_lib_prefix=no
18190   need_version=no
18191   case $host_cpu in
18192   ia64*)
18193     shrext_cmds='.so'
18194     hardcode_into_libs=yes
18195     dynamic_linker="$host_os dld.so"
18196     shlibpath_var=LD_LIBRARY_PATH
18197     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18199     soname_spec='${libname}${release}${shared_ext}$major'
18200     if test "X$HPUX_IA64_MODE" = X32; then
18201       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18202     else
18203       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18204     fi
18205     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18206     ;;
18207    hppa*64*)
18208      shrext_cmds='.sl'
18209      hardcode_into_libs=yes
18210      dynamic_linker="$host_os dld.sl"
18211      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18212      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18213      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214      soname_spec='${libname}${release}${shared_ext}$major'
18215      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18216      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18217      ;;
18218    *)
18219     shrext_cmds='.sl'
18220     dynamic_linker="$host_os dld.sl"
18221     shlibpath_var=SHLIB_PATH
18222     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224     soname_spec='${libname}${release}${shared_ext}$major'
18225     ;;
18226   esac
18227   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18228   postinstall_cmds='chmod 555 $lib'
18229   ;;
18230
18231 interix3*)
18232   version_type=linux
18233   need_lib_prefix=no
18234   need_version=no
18235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18236   soname_spec='${libname}${release}${shared_ext}$major'
18237   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18238   shlibpath_var=LD_LIBRARY_PATH
18239   shlibpath_overrides_runpath=no
18240   hardcode_into_libs=yes
18241   ;;
18242
18243 irix5* | irix6* | nonstopux*)
18244   case $host_os in
18245     nonstopux*) version_type=nonstopux ;;
18246     *)
18247         if test "$lt_cv_prog_gnu_ld" = yes; then
18248                 version_type=linux
18249         else
18250                 version_type=irix
18251         fi ;;
18252   esac
18253   need_lib_prefix=no
18254   need_version=no
18255   soname_spec='${libname}${release}${shared_ext}$major'
18256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18257   case $host_os in
18258   irix5* | nonstopux*)
18259     libsuff= shlibsuff=
18260     ;;
18261   *)
18262     case $LD in # libtool.m4 will add one of these switches to LD
18263     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18264       libsuff= shlibsuff= libmagic=32-bit;;
18265     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18266       libsuff=32 shlibsuff=N32 libmagic=N32;;
18267     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18268       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18269     *) libsuff= shlibsuff= libmagic=never-match;;
18270     esac
18271     ;;
18272   esac
18273   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18274   shlibpath_overrides_runpath=no
18275   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18276   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18277   hardcode_into_libs=yes
18278   ;;
18279
18280 # No shared lib support for Linux oldld, aout, or coff.
18281 linux*oldld* | linux*aout* | linux*coff*)
18282   dynamic_linker=no
18283   ;;
18284
18285 # This must be Linux ELF.
18286 linux* | k*bsd*-gnu)
18287   version_type=linux
18288   need_lib_prefix=no
18289   need_version=no
18290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291   soname_spec='${libname}${release}${shared_ext}$major'
18292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18293   shlibpath_var=LD_LIBRARY_PATH
18294   shlibpath_overrides_runpath=no
18295   # This implies no fast_install, which is unacceptable.
18296   # Some rework will be needed to allow for fast_install
18297   # before this can be enabled.
18298   hardcode_into_libs=yes
18299
18300   # Append ld.so.conf contents to the search path
18301   if test -f /etc/ld.so.conf; then
18302     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' ' '`
18303     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18304   fi
18305
18306   # We used to test for /lib/ld.so.1 and disable shared libraries on
18307   # powerpc, because MkLinux only supported shared libraries with the
18308   # GNU dynamic linker.  Since this was broken with cross compilers,
18309   # most powerpc-linux boxes support dynamic linking these days and
18310   # people can always --disable-shared, the test was removed, and we
18311   # assume the GNU/Linux dynamic linker is in use.
18312   dynamic_linker='GNU/Linux ld.so'
18313   ;;
18314
18315 netbsdelf*-gnu)
18316   version_type=linux
18317   need_lib_prefix=no
18318   need_version=no
18319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18320   soname_spec='${libname}${release}${shared_ext}$major'
18321   shlibpath_var=LD_LIBRARY_PATH
18322   shlibpath_overrides_runpath=no
18323   hardcode_into_libs=yes
18324   dynamic_linker='NetBSD ld.elf_so'
18325   ;;
18326
18327 netbsd*)
18328   version_type=sunos
18329   need_lib_prefix=no
18330   need_version=no
18331   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18333     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18334     dynamic_linker='NetBSD (a.out) ld.so'
18335   else
18336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18337     soname_spec='${libname}${release}${shared_ext}$major'
18338     dynamic_linker='NetBSD ld.elf_so'
18339   fi
18340   shlibpath_var=LD_LIBRARY_PATH
18341   shlibpath_overrides_runpath=yes
18342   hardcode_into_libs=yes
18343   ;;
18344
18345 newsos6)
18346   version_type=linux
18347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348   shlibpath_var=LD_LIBRARY_PATH
18349   shlibpath_overrides_runpath=yes
18350   ;;
18351
18352 nto-qnx*)
18353   version_type=linux
18354   need_lib_prefix=no
18355   need_version=no
18356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357   soname_spec='${libname}${release}${shared_ext}$major'
18358   shlibpath_var=LD_LIBRARY_PATH
18359   shlibpath_overrides_runpath=yes
18360   ;;
18361
18362 openbsd*)
18363   version_type=sunos
18364   sys_lib_dlsearch_path_spec="/usr/lib"
18365   need_lib_prefix=no
18366   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18367   case $host_os in
18368     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18369     *)                         need_version=no  ;;
18370   esac
18371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18372   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18373   shlibpath_var=LD_LIBRARY_PATH
18374   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18375     case $host_os in
18376       openbsd2.[89] | openbsd2.[89].*)
18377         shlibpath_overrides_runpath=no
18378         ;;
18379       *)
18380         shlibpath_overrides_runpath=yes
18381         ;;
18382       esac
18383   else
18384     shlibpath_overrides_runpath=yes
18385   fi
18386   ;;
18387
18388 os2*)
18389   libname_spec='$name'
18390   shrext_cmds=".dll"
18391   need_lib_prefix=no
18392   library_names_spec='$libname${shared_ext} $libname.a'
18393   dynamic_linker='OS/2 ld.exe'
18394   shlibpath_var=LIBPATH
18395   ;;
18396
18397 osf3* | osf4* | osf5*)
18398   version_type=osf
18399   need_lib_prefix=no
18400   need_version=no
18401   soname_spec='${libname}${release}${shared_ext}$major'
18402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18403   shlibpath_var=LD_LIBRARY_PATH
18404   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18405   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18406   ;;
18407
18408 solaris*)
18409   version_type=linux
18410   need_lib_prefix=no
18411   need_version=no
18412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413   soname_spec='${libname}${release}${shared_ext}$major'
18414   shlibpath_var=LD_LIBRARY_PATH
18415   shlibpath_overrides_runpath=yes
18416   hardcode_into_libs=yes
18417   # ldd complains unless libraries are executable
18418   postinstall_cmds='chmod +x $lib'
18419   ;;
18420
18421 sunos4*)
18422   version_type=sunos
18423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18424   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18425   shlibpath_var=LD_LIBRARY_PATH
18426   shlibpath_overrides_runpath=yes
18427   if test "$with_gnu_ld" = yes; then
18428     need_lib_prefix=no
18429   fi
18430   need_version=yes
18431   ;;
18432
18433 sysv4 | sysv4.3*)
18434   version_type=linux
18435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436   soname_spec='${libname}${release}${shared_ext}$major'
18437   shlibpath_var=LD_LIBRARY_PATH
18438   case $host_vendor in
18439     sni)
18440       shlibpath_overrides_runpath=no
18441       need_lib_prefix=no
18442       export_dynamic_flag_spec='${wl}-Blargedynsym'
18443       runpath_var=LD_RUN_PATH
18444       ;;
18445     siemens)
18446       need_lib_prefix=no
18447       ;;
18448     motorola)
18449       need_lib_prefix=no
18450       need_version=no
18451       shlibpath_overrides_runpath=no
18452       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18453       ;;
18454   esac
18455   ;;
18456
18457 sysv4*MP*)
18458   if test -d /usr/nec ;then
18459     version_type=linux
18460     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18461     soname_spec='$libname${shared_ext}.$major'
18462     shlibpath_var=LD_LIBRARY_PATH
18463   fi
18464   ;;
18465
18466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18467   version_type=freebsd-elf
18468   need_lib_prefix=no
18469   need_version=no
18470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18471   soname_spec='${libname}${release}${shared_ext}$major'
18472   shlibpath_var=LD_LIBRARY_PATH
18473   hardcode_into_libs=yes
18474   if test "$with_gnu_ld" = yes; then
18475     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18476     shlibpath_overrides_runpath=no
18477   else
18478     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18479     shlibpath_overrides_runpath=yes
18480     case $host_os in
18481       sco3.2v5*)
18482         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18483         ;;
18484     esac
18485   fi
18486   sys_lib_dlsearch_path_spec='/usr/lib'
18487   ;;
18488
18489 uts4*)
18490   version_type=linux
18491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18492   soname_spec='${libname}${release}${shared_ext}$major'
18493   shlibpath_var=LD_LIBRARY_PATH
18494   ;;
18495
18496 *)
18497   dynamic_linker=no
18498   ;;
18499 esac
18500 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18501 echo "${ECHO_T}$dynamic_linker" >&6; }
18502 test "$dynamic_linker" = no && can_build_shared=no
18503
18504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18505 if test "$GCC" = yes; then
18506   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18507 fi
18508
18509 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18511 hardcode_action_GCJ=
18512 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18513    test -n "$runpath_var_GCJ" || \
18514    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18515
18516   # We can hardcode non-existant directories.
18517   if test "$hardcode_direct_GCJ" != no &&
18518      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18519      # have to relink, otherwise we might link with an installed library
18520      # when we should be linking with a yet-to-be-installed one
18521      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18522      test "$hardcode_minus_L_GCJ" != no; then
18523     # Linking always hardcodes the temporary library directory.
18524     hardcode_action_GCJ=relink
18525   else
18526     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18527     hardcode_action_GCJ=immediate
18528   fi
18529 else
18530   # We cannot hardcode anything, or else we can only hardcode existing
18531   # directories.
18532   hardcode_action_GCJ=unsupported
18533 fi
18534 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18535 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18536
18537 if test "$hardcode_action_GCJ" = relink; then
18538   # Fast installation is not supported
18539   enable_fast_install=no
18540 elif test "$shlibpath_overrides_runpath" = yes ||
18541      test "$enable_shared" = no; then
18542   # Fast installation is not necessary
18543   enable_fast_install=needless
18544 fi
18545
18546
18547 # The else clause should only fire when bootstrapping the
18548 # libtool distribution, otherwise you forgot to ship ltmain.sh
18549 # with your package, and you will get complaints that there are
18550 # no rules to generate ltmain.sh.
18551 if test -f "$ltmain"; then
18552   # See if we are running on zsh, and set the options which allow our commands through
18553   # without removal of \ escapes.
18554   if test -n "${ZSH_VERSION+set}" ; then
18555     setopt NO_GLOB_SUBST
18556   fi
18557   # Now quote all the things that may contain metacharacters while being
18558   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18559   # variables and quote the copies for generation of the libtool script.
18560   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18561     SED SHELL STRIP \
18562     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18563     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18564     deplibs_check_method reload_flag reload_cmds need_locks \
18565     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18566     lt_cv_sys_global_symbol_to_c_name_address \
18567     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18568     old_postinstall_cmds old_postuninstall_cmds \
18569     compiler_GCJ \
18570     CC_GCJ \
18571     LD_GCJ \
18572     lt_prog_compiler_wl_GCJ \
18573     lt_prog_compiler_pic_GCJ \
18574     lt_prog_compiler_static_GCJ \
18575     lt_prog_compiler_no_builtin_flag_GCJ \
18576     export_dynamic_flag_spec_GCJ \
18577     thread_safe_flag_spec_GCJ \
18578     whole_archive_flag_spec_GCJ \
18579     enable_shared_with_static_runtimes_GCJ \
18580     old_archive_cmds_GCJ \
18581     old_archive_from_new_cmds_GCJ \
18582     predep_objects_GCJ \
18583     postdep_objects_GCJ \
18584     predeps_GCJ \
18585     postdeps_GCJ \
18586     compiler_lib_search_path_GCJ \
18587     archive_cmds_GCJ \
18588     archive_expsym_cmds_GCJ \
18589     postinstall_cmds_GCJ \
18590     postuninstall_cmds_GCJ \
18591     old_archive_from_expsyms_cmds_GCJ \
18592     allow_undefined_flag_GCJ \
18593     no_undefined_flag_GCJ \
18594     export_symbols_cmds_GCJ \
18595     hardcode_libdir_flag_spec_GCJ \
18596     hardcode_libdir_flag_spec_ld_GCJ \
18597     hardcode_libdir_separator_GCJ \
18598     hardcode_automatic_GCJ \
18599     module_cmds_GCJ \
18600     module_expsym_cmds_GCJ \
18601     lt_cv_prog_compiler_c_o_GCJ \
18602     exclude_expsyms_GCJ \
18603     include_expsyms_GCJ; do
18604
18605     case $var in
18606     old_archive_cmds_GCJ | \
18607     old_archive_from_new_cmds_GCJ | \
18608     archive_cmds_GCJ | \
18609     archive_expsym_cmds_GCJ | \
18610     module_cmds_GCJ | \
18611     module_expsym_cmds_GCJ | \
18612     old_archive_from_expsyms_cmds_GCJ | \
18613     export_symbols_cmds_GCJ | \
18614     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18615     postinstall_cmds | postuninstall_cmds | \
18616     old_postinstall_cmds | old_postuninstall_cmds | \
18617     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18618       # Double-quote double-evaled strings.
18619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18620       ;;
18621     *)
18622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18623       ;;
18624     esac
18625   done
18626
18627   case $lt_echo in
18628   *'\$0 --fallback-echo"')
18629     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18630     ;;
18631   esac
18632
18633 cfgfile="$ofile"
18634
18635   cat <<__EOF__ >> "$cfgfile"
18636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18637
18638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18639
18640 # Shell to use when invoking shell scripts.
18641 SHELL=$lt_SHELL
18642
18643 # Whether or not to build shared libraries.
18644 build_libtool_libs=$enable_shared
18645
18646 # Whether or not to build static libraries.
18647 build_old_libs=$enable_static
18648
18649 # Whether or not to add -lc for building shared libraries.
18650 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18651
18652 # Whether or not to disallow shared libs when runtime libs are static
18653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18654
18655 # Whether or not to optimize for fast installation.
18656 fast_install=$enable_fast_install
18657
18658 # The host system.
18659 host_alias=$host_alias
18660 host=$host
18661 host_os=$host_os
18662
18663 # The build system.
18664 build_alias=$build_alias
18665 build=$build
18666 build_os=$build_os
18667
18668 # An echo program that does not interpret backslashes.
18669 echo=$lt_echo
18670
18671 # The archiver.
18672 AR=$lt_AR
18673 AR_FLAGS=$lt_AR_FLAGS
18674
18675 # A C compiler.
18676 LTCC=$lt_LTCC
18677
18678 # LTCC compiler flags.
18679 LTCFLAGS=$lt_LTCFLAGS
18680
18681 # A language-specific compiler.
18682 CC=$lt_compiler_GCJ
18683
18684 # Is the compiler the GNU C compiler?
18685 with_gcc=$GCC_GCJ
18686
18687 # An ERE matcher.
18688 EGREP=$lt_EGREP
18689
18690 # The linker used to build libraries.
18691 LD=$lt_LD_GCJ
18692
18693 # Whether we need hard or soft links.
18694 LN_S=$lt_LN_S
18695
18696 # A BSD-compatible nm program.
18697 NM=$lt_NM
18698
18699 # A symbol stripping program
18700 STRIP=$lt_STRIP
18701
18702 # Used to examine libraries when file_magic_cmd begins "file"
18703 MAGIC_CMD=$MAGIC_CMD
18704
18705 # Used on cygwin: DLL creation program.
18706 DLLTOOL="$DLLTOOL"
18707
18708 # Used on cygwin: object dumper.
18709 OBJDUMP="$OBJDUMP"
18710
18711 # Used on cygwin: assembler.
18712 AS="$AS"
18713
18714 # The name of the directory that contains temporary libtool files.
18715 objdir=$objdir
18716
18717 # How to create reloadable object files.
18718 reload_flag=$lt_reload_flag
18719 reload_cmds=$lt_reload_cmds
18720
18721 # How to pass a linker flag through the compiler.
18722 wl=$lt_lt_prog_compiler_wl_GCJ
18723
18724 # Object file suffix (normally "o").
18725 objext="$ac_objext"
18726
18727 # Old archive suffix (normally "a").
18728 libext="$libext"
18729
18730 # Shared library suffix (normally ".so").
18731 shrext_cmds='$shrext_cmds'
18732
18733 # Executable file suffix (normally "").
18734 exeext="$exeext"
18735
18736 # Additional compiler flags for building library objects.
18737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18738 pic_mode=$pic_mode
18739
18740 # What is the maximum length of a command?
18741 max_cmd_len=$lt_cv_sys_max_cmd_len
18742
18743 # Does compiler simultaneously support -c and -o options?
18744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18745
18746 # Must we lock files when doing compilation?
18747 need_locks=$lt_need_locks
18748
18749 # Do we need the lib prefix for modules?
18750 need_lib_prefix=$need_lib_prefix
18751
18752 # Do we need a version for libraries?
18753 need_version=$need_version
18754
18755 # Whether dlopen is supported.
18756 dlopen_support=$enable_dlopen
18757
18758 # Whether dlopen of programs is supported.
18759 dlopen_self=$enable_dlopen_self
18760
18761 # Whether dlopen of statically linked programs is supported.
18762 dlopen_self_static=$enable_dlopen_self_static
18763
18764 # Compiler flag to prevent dynamic linking.
18765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18766
18767 # Compiler flag to turn off builtin functions.
18768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18769
18770 # Compiler flag to allow reflexive dlopens.
18771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18772
18773 # Compiler flag to generate shared objects directly from archives.
18774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18775
18776 # Compiler flag to generate thread-safe objects.
18777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18778
18779 # Library versioning type.
18780 version_type=$version_type
18781
18782 # Format of library name prefix.
18783 libname_spec=$lt_libname_spec
18784
18785 # List of archive names.  First name is the real one, the rest are links.
18786 # The last name is the one that the linker finds with -lNAME.
18787 library_names_spec=$lt_library_names_spec
18788
18789 # The coded name of the library, if different from the real name.
18790 soname_spec=$lt_soname_spec
18791
18792 # Commands used to build and install an old-style archive.
18793 RANLIB=$lt_RANLIB
18794 old_archive_cmds=$lt_old_archive_cmds_GCJ
18795 old_postinstall_cmds=$lt_old_postinstall_cmds
18796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18797
18798 # Create an old-style archive from a shared archive.
18799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18800
18801 # Create a temporary old-style archive to link instead of a shared archive.
18802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18803
18804 # Commands used to build and install a shared archive.
18805 archive_cmds=$lt_archive_cmds_GCJ
18806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18807 postinstall_cmds=$lt_postinstall_cmds
18808 postuninstall_cmds=$lt_postuninstall_cmds
18809
18810 # Commands used to build a loadable module (assumed same as above if empty)
18811 module_cmds=$lt_module_cmds_GCJ
18812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18813
18814 # Commands to strip libraries.
18815 old_striplib=$lt_old_striplib
18816 striplib=$lt_striplib
18817
18818 # Dependencies to place before the objects being linked to create a
18819 # shared library.
18820 predep_objects=$lt_predep_objects_GCJ
18821
18822 # Dependencies to place after the objects being linked to create a
18823 # shared library.
18824 postdep_objects=$lt_postdep_objects_GCJ
18825
18826 # Dependencies to place before the objects being linked to create a
18827 # shared library.
18828 predeps=$lt_predeps_GCJ
18829
18830 # Dependencies to place after the objects being linked to create a
18831 # shared library.
18832 postdeps=$lt_postdeps_GCJ
18833
18834 # The library search path used internally by the compiler when linking
18835 # a shared library.
18836 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18837
18838 # Method to check whether dependent libraries are shared objects.
18839 deplibs_check_method=$lt_deplibs_check_method
18840
18841 # Command to use when deplibs_check_method == file_magic.
18842 file_magic_cmd=$lt_file_magic_cmd
18843
18844 # Flag that allows shared libraries with undefined symbols to be built.
18845 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18846
18847 # Flag that forces no undefined symbols.
18848 no_undefined_flag=$lt_no_undefined_flag_GCJ
18849
18850 # Commands used to finish a libtool library installation in a directory.
18851 finish_cmds=$lt_finish_cmds
18852
18853 # Same as above, but a single script fragment to be evaled but not shown.
18854 finish_eval=$lt_finish_eval
18855
18856 # Take the output of nm and produce a listing of raw symbols and C names.
18857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18858
18859 # Transform the output of nm in a proper C declaration
18860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18861
18862 # Transform the output of nm in a C name address pair
18863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18864
18865 # This is the shared library runtime path variable.
18866 runpath_var=$runpath_var
18867
18868 # This is the shared library path variable.
18869 shlibpath_var=$shlibpath_var
18870
18871 # Is shlibpath searched before the hard-coded library search path?
18872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18873
18874 # How to hardcode a shared library path into an executable.
18875 hardcode_action=$hardcode_action_GCJ
18876
18877 # Whether we should hardcode library paths into libraries.
18878 hardcode_into_libs=$hardcode_into_libs
18879
18880 # Flag to hardcode \$libdir into a binary during linking.
18881 # This must work even if \$libdir does not exist.
18882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18883
18884 # If ld is used when linking, flag to hardcode \$libdir into
18885 # a binary during linking. This must work even if \$libdir does
18886 # not exist.
18887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18888
18889 # Whether we need a single -rpath flag with a separated argument.
18890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18891
18892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18893 # resulting binary.
18894 hardcode_direct=$hardcode_direct_GCJ
18895
18896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18897 # resulting binary.
18898 hardcode_minus_L=$hardcode_minus_L_GCJ
18899
18900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18901 # the resulting binary.
18902 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18903
18904 # Set to yes if building a shared library automatically hardcodes DIR into the library
18905 # and all subsequent libraries and executables linked against it.
18906 hardcode_automatic=$hardcode_automatic_GCJ
18907
18908 # Variables whose values should be saved in libtool wrapper scripts and
18909 # restored at relink time.
18910 variables_saved_for_relink="$variables_saved_for_relink"
18911
18912 # Whether libtool must link a program against all its dependency libraries.
18913 link_all_deplibs=$link_all_deplibs_GCJ
18914
18915 # Compile-time system search path for libraries
18916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18917
18918 # Run-time system search path for libraries
18919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18920
18921 # Fix the shell variable \$srcfile for the compiler.
18922 fix_srcfile_path="$fix_srcfile_path_GCJ"
18923
18924 # Set to yes if exported symbols are required.
18925 always_export_symbols=$always_export_symbols_GCJ
18926
18927 # The commands to list exported symbols.
18928 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18929
18930 # The commands to extract the exported symbol list from a shared archive.
18931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18932
18933 # Symbols that should not be listed in the preloaded symbols.
18934 exclude_expsyms=$lt_exclude_expsyms_GCJ
18935
18936 # Symbols that must always be exported.
18937 include_expsyms=$lt_include_expsyms_GCJ
18938
18939 # ### END LIBTOOL TAG CONFIG: $tagname
18940
18941 __EOF__
18942
18943
18944 else
18945   # If there is no Makefile yet, we rely on a make rule to execute
18946   # `config.status --recheck' to rerun these tests and create the
18947   # libtool script then.
18948   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18949   if test -f "$ltmain_in"; then
18950     test -f Makefile && make "$ltmain"
18951   fi
18952 fi
18953
18954
18955 ac_ext=c
18956 ac_cpp='$CPP $CPPFLAGS'
18957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18960
18961 CC="$lt_save_CC"
18962
18963         else
18964           tagname=""
18965         fi
18966         ;;
18967
18968       RC)
18969
18970
18971 # Source file extension for RC test sources.
18972 ac_ext=rc
18973
18974 # Object file extension for compiled RC test sources.
18975 objext=o
18976 objext_RC=$objext
18977
18978 # Code to be used in simple compile tests
18979 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18980
18981 # Code to be used in simple link tests
18982 lt_simple_link_test_code="$lt_simple_compile_test_code"
18983
18984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18985
18986 # If no C compiler was specified, use CC.
18987 LTCC=${LTCC-"$CC"}
18988
18989 # If no C compiler flags were specified, use CFLAGS.
18990 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18991
18992 # Allow CC to be a program name with arguments.
18993 compiler=$CC
18994
18995
18996 # save warnings/boilerplate of simple test code
18997 ac_outfile=conftest.$ac_objext
18998 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19000 _lt_compiler_boilerplate=`cat conftest.err`
19001 $rm conftest*
19002
19003 ac_outfile=conftest.$ac_objext
19004 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19006 _lt_linker_boilerplate=`cat conftest.err`
19007 $rm conftest*
19008
19009
19010 # Allow CC to be a program name with arguments.
19011 lt_save_CC="$CC"
19012 CC=${RC-"windres"}
19013 compiler=$CC
19014 compiler_RC=$CC
19015 for cc_temp in $compiler""; do
19016   case $cc_temp in
19017     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19018     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19019     \-*) ;;
19020     *) break;;
19021   esac
19022 done
19023 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19024
19025 lt_cv_prog_compiler_c_o_RC=yes
19026
19027 # The else clause should only fire when bootstrapping the
19028 # libtool distribution, otherwise you forgot to ship ltmain.sh
19029 # with your package, and you will get complaints that there are
19030 # no rules to generate ltmain.sh.
19031 if test -f "$ltmain"; then
19032   # See if we are running on zsh, and set the options which allow our commands through
19033   # without removal of \ escapes.
19034   if test -n "${ZSH_VERSION+set}" ; then
19035     setopt NO_GLOB_SUBST
19036   fi
19037   # Now quote all the things that may contain metacharacters while being
19038   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19039   # variables and quote the copies for generation of the libtool script.
19040   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19041     SED SHELL STRIP \
19042     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19043     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19044     deplibs_check_method reload_flag reload_cmds need_locks \
19045     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19046     lt_cv_sys_global_symbol_to_c_name_address \
19047     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19048     old_postinstall_cmds old_postuninstall_cmds \
19049     compiler_RC \
19050     CC_RC \
19051     LD_RC \
19052     lt_prog_compiler_wl_RC \
19053     lt_prog_compiler_pic_RC \
19054     lt_prog_compiler_static_RC \
19055     lt_prog_compiler_no_builtin_flag_RC \
19056     export_dynamic_flag_spec_RC \
19057     thread_safe_flag_spec_RC \
19058     whole_archive_flag_spec_RC \
19059     enable_shared_with_static_runtimes_RC \
19060     old_archive_cmds_RC \
19061     old_archive_from_new_cmds_RC \
19062     predep_objects_RC \
19063     postdep_objects_RC \
19064     predeps_RC \
19065     postdeps_RC \
19066     compiler_lib_search_path_RC \
19067     archive_cmds_RC \
19068     archive_expsym_cmds_RC \
19069     postinstall_cmds_RC \
19070     postuninstall_cmds_RC \
19071     old_archive_from_expsyms_cmds_RC \
19072     allow_undefined_flag_RC \
19073     no_undefined_flag_RC \
19074     export_symbols_cmds_RC \
19075     hardcode_libdir_flag_spec_RC \
19076     hardcode_libdir_flag_spec_ld_RC \
19077     hardcode_libdir_separator_RC \
19078     hardcode_automatic_RC \
19079     module_cmds_RC \
19080     module_expsym_cmds_RC \
19081     lt_cv_prog_compiler_c_o_RC \
19082     exclude_expsyms_RC \
19083     include_expsyms_RC; do
19084
19085     case $var in
19086     old_archive_cmds_RC | \
19087     old_archive_from_new_cmds_RC | \
19088     archive_cmds_RC | \
19089     archive_expsym_cmds_RC | \
19090     module_cmds_RC | \
19091     module_expsym_cmds_RC | \
19092     old_archive_from_expsyms_cmds_RC | \
19093     export_symbols_cmds_RC | \
19094     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19095     postinstall_cmds | postuninstall_cmds | \
19096     old_postinstall_cmds | old_postuninstall_cmds | \
19097     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19098       # Double-quote double-evaled strings.
19099       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19100       ;;
19101     *)
19102       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19103       ;;
19104     esac
19105   done
19106
19107   case $lt_echo in
19108   *'\$0 --fallback-echo"')
19109     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19110     ;;
19111   esac
19112
19113 cfgfile="$ofile"
19114
19115   cat <<__EOF__ >> "$cfgfile"
19116 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19117
19118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19119
19120 # Shell to use when invoking shell scripts.
19121 SHELL=$lt_SHELL
19122
19123 # Whether or not to build shared libraries.
19124 build_libtool_libs=$enable_shared
19125
19126 # Whether or not to build static libraries.
19127 build_old_libs=$enable_static
19128
19129 # Whether or not to add -lc for building shared libraries.
19130 build_libtool_need_lc=$archive_cmds_need_lc_RC
19131
19132 # Whether or not to disallow shared libs when runtime libs are static
19133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19134
19135 # Whether or not to optimize for fast installation.
19136 fast_install=$enable_fast_install
19137
19138 # The host system.
19139 host_alias=$host_alias
19140 host=$host
19141 host_os=$host_os
19142
19143 # The build system.
19144 build_alias=$build_alias
19145 build=$build
19146 build_os=$build_os
19147
19148 # An echo program that does not interpret backslashes.
19149 echo=$lt_echo
19150
19151 # The archiver.
19152 AR=$lt_AR
19153 AR_FLAGS=$lt_AR_FLAGS
19154
19155 # A C compiler.
19156 LTCC=$lt_LTCC
19157
19158 # LTCC compiler flags.
19159 LTCFLAGS=$lt_LTCFLAGS
19160
19161 # A language-specific compiler.
19162 CC=$lt_compiler_RC
19163
19164 # Is the compiler the GNU C compiler?
19165 with_gcc=$GCC_RC
19166
19167 # An ERE matcher.
19168 EGREP=$lt_EGREP
19169
19170 # The linker used to build libraries.
19171 LD=$lt_LD_RC
19172
19173 # Whether we need hard or soft links.
19174 LN_S=$lt_LN_S
19175
19176 # A BSD-compatible nm program.
19177 NM=$lt_NM
19178
19179 # A symbol stripping program
19180 STRIP=$lt_STRIP
19181
19182 # Used to examine libraries when file_magic_cmd begins "file"
19183 MAGIC_CMD=$MAGIC_CMD
19184
19185 # Used on cygwin: DLL creation program.
19186 DLLTOOL="$DLLTOOL"
19187
19188 # Used on cygwin: object dumper.
19189 OBJDUMP="$OBJDUMP"
19190
19191 # Used on cygwin: assembler.
19192 AS="$AS"
19193
19194 # The name of the directory that contains temporary libtool files.
19195 objdir=$objdir
19196
19197 # How to create reloadable object files.
19198 reload_flag=$lt_reload_flag
19199 reload_cmds=$lt_reload_cmds
19200
19201 # How to pass a linker flag through the compiler.
19202 wl=$lt_lt_prog_compiler_wl_RC
19203
19204 # Object file suffix (normally "o").
19205 objext="$ac_objext"
19206
19207 # Old archive suffix (normally "a").
19208 libext="$libext"
19209
19210 # Shared library suffix (normally ".so").
19211 shrext_cmds='$shrext_cmds'
19212
19213 # Executable file suffix (normally "").
19214 exeext="$exeext"
19215
19216 # Additional compiler flags for building library objects.
19217 pic_flag=$lt_lt_prog_compiler_pic_RC
19218 pic_mode=$pic_mode
19219
19220 # What is the maximum length of a command?
19221 max_cmd_len=$lt_cv_sys_max_cmd_len
19222
19223 # Does compiler simultaneously support -c and -o options?
19224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19225
19226 # Must we lock files when doing compilation?
19227 need_locks=$lt_need_locks
19228
19229 # Do we need the lib prefix for modules?
19230 need_lib_prefix=$need_lib_prefix
19231
19232 # Do we need a version for libraries?
19233 need_version=$need_version
19234
19235 # Whether dlopen is supported.
19236 dlopen_support=$enable_dlopen
19237
19238 # Whether dlopen of programs is supported.
19239 dlopen_self=$enable_dlopen_self
19240
19241 # Whether dlopen of statically linked programs is supported.
19242 dlopen_self_static=$enable_dlopen_self_static
19243
19244 # Compiler flag to prevent dynamic linking.
19245 link_static_flag=$lt_lt_prog_compiler_static_RC
19246
19247 # Compiler flag to turn off builtin functions.
19248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19249
19250 # Compiler flag to allow reflexive dlopens.
19251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19252
19253 # Compiler flag to generate shared objects directly from archives.
19254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19255
19256 # Compiler flag to generate thread-safe objects.
19257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19258
19259 # Library versioning type.
19260 version_type=$version_type
19261
19262 # Format of library name prefix.
19263 libname_spec=$lt_libname_spec
19264
19265 # List of archive names.  First name is the real one, the rest are links.
19266 # The last name is the one that the linker finds with -lNAME.
19267 library_names_spec=$lt_library_names_spec
19268
19269 # The coded name of the library, if different from the real name.
19270 soname_spec=$lt_soname_spec
19271
19272 # Commands used to build and install an old-style archive.
19273 RANLIB=$lt_RANLIB
19274 old_archive_cmds=$lt_old_archive_cmds_RC
19275 old_postinstall_cmds=$lt_old_postinstall_cmds
19276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19277
19278 # Create an old-style archive from a shared archive.
19279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19280
19281 # Create a temporary old-style archive to link instead of a shared archive.
19282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19283
19284 # Commands used to build and install a shared archive.
19285 archive_cmds=$lt_archive_cmds_RC
19286 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19287 postinstall_cmds=$lt_postinstall_cmds
19288 postuninstall_cmds=$lt_postuninstall_cmds
19289
19290 # Commands used to build a loadable module (assumed same as above if empty)
19291 module_cmds=$lt_module_cmds_RC
19292 module_expsym_cmds=$lt_module_expsym_cmds_RC
19293
19294 # Commands to strip libraries.
19295 old_striplib=$lt_old_striplib
19296 striplib=$lt_striplib
19297
19298 # Dependencies to place before the objects being linked to create a
19299 # shared library.
19300 predep_objects=$lt_predep_objects_RC
19301
19302 # Dependencies to place after the objects being linked to create a
19303 # shared library.
19304 postdep_objects=$lt_postdep_objects_RC
19305
19306 # Dependencies to place before the objects being linked to create a
19307 # shared library.
19308 predeps=$lt_predeps_RC
19309
19310 # Dependencies to place after the objects being linked to create a
19311 # shared library.
19312 postdeps=$lt_postdeps_RC
19313
19314 # The library search path used internally by the compiler when linking
19315 # a shared library.
19316 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19317
19318 # Method to check whether dependent libraries are shared objects.
19319 deplibs_check_method=$lt_deplibs_check_method
19320
19321 # Command to use when deplibs_check_method == file_magic.
19322 file_magic_cmd=$lt_file_magic_cmd
19323
19324 # Flag that allows shared libraries with undefined symbols to be built.
19325 allow_undefined_flag=$lt_allow_undefined_flag_RC
19326
19327 # Flag that forces no undefined symbols.
19328 no_undefined_flag=$lt_no_undefined_flag_RC
19329
19330 # Commands used to finish a libtool library installation in a directory.
19331 finish_cmds=$lt_finish_cmds
19332
19333 # Same as above, but a single script fragment to be evaled but not shown.
19334 finish_eval=$lt_finish_eval
19335
19336 # Take the output of nm and produce a listing of raw symbols and C names.
19337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19338
19339 # Transform the output of nm in a proper C declaration
19340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19341
19342 # Transform the output of nm in a C name address pair
19343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19344
19345 # This is the shared library runtime path variable.
19346 runpath_var=$runpath_var
19347
19348 # This is the shared library path variable.
19349 shlibpath_var=$shlibpath_var
19350
19351 # Is shlibpath searched before the hard-coded library search path?
19352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19353
19354 # How to hardcode a shared library path into an executable.
19355 hardcode_action=$hardcode_action_RC
19356
19357 # Whether we should hardcode library paths into libraries.
19358 hardcode_into_libs=$hardcode_into_libs
19359
19360 # Flag to hardcode \$libdir into a binary during linking.
19361 # This must work even if \$libdir does not exist.
19362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19363
19364 # If ld is used when linking, flag to hardcode \$libdir into
19365 # a binary during linking. This must work even if \$libdir does
19366 # not exist.
19367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19368
19369 # Whether we need a single -rpath flag with a separated argument.
19370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19371
19372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19373 # resulting binary.
19374 hardcode_direct=$hardcode_direct_RC
19375
19376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19377 # resulting binary.
19378 hardcode_minus_L=$hardcode_minus_L_RC
19379
19380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19381 # the resulting binary.
19382 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19383
19384 # Set to yes if building a shared library automatically hardcodes DIR into the library
19385 # and all subsequent libraries and executables linked against it.
19386 hardcode_automatic=$hardcode_automatic_RC
19387
19388 # Variables whose values should be saved in libtool wrapper scripts and
19389 # restored at relink time.
19390 variables_saved_for_relink="$variables_saved_for_relink"
19391
19392 # Whether libtool must link a program against all its dependency libraries.
19393 link_all_deplibs=$link_all_deplibs_RC
19394
19395 # Compile-time system search path for libraries
19396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19397
19398 # Run-time system search path for libraries
19399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19400
19401 # Fix the shell variable \$srcfile for the compiler.
19402 fix_srcfile_path="$fix_srcfile_path_RC"
19403
19404 # Set to yes if exported symbols are required.
19405 always_export_symbols=$always_export_symbols_RC
19406
19407 # The commands to list exported symbols.
19408 export_symbols_cmds=$lt_export_symbols_cmds_RC
19409
19410 # The commands to extract the exported symbol list from a shared archive.
19411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19412
19413 # Symbols that should not be listed in the preloaded symbols.
19414 exclude_expsyms=$lt_exclude_expsyms_RC
19415
19416 # Symbols that must always be exported.
19417 include_expsyms=$lt_include_expsyms_RC
19418
19419 # ### END LIBTOOL TAG CONFIG: $tagname
19420
19421 __EOF__
19422
19423
19424 else
19425   # If there is no Makefile yet, we rely on a make rule to execute
19426   # `config.status --recheck' to rerun these tests and create the
19427   # libtool script then.
19428   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19429   if test -f "$ltmain_in"; then
19430     test -f Makefile && make "$ltmain"
19431   fi
19432 fi
19433
19434
19435 ac_ext=c
19436 ac_cpp='$CPP $CPPFLAGS'
19437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19440
19441 CC="$lt_save_CC"
19442
19443         ;;
19444
19445       *)
19446         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19447 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19448    { (exit 1); exit 1; }; }
19449         ;;
19450       esac
19451
19452       # Append the new tag name to the list of available tags.
19453       if test -n "$tagname" ; then
19454       available_tags="$available_tags $tagname"
19455     fi
19456     fi
19457   done
19458   IFS="$lt_save_ifs"
19459
19460   # Now substitute the updated list of available tags.
19461   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19462     mv "${ofile}T" "$ofile"
19463     chmod +x "$ofile"
19464   else
19465     rm -f "${ofile}T"
19466     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19467 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19468    { (exit 1); exit 1; }; }
19469   fi
19470 fi
19471
19472
19473
19474 # This can be used to rebuild libtool when needed
19475 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19476
19477 # Always use our own libtool.
19478 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19479
19480 # Prevent multiple expansion
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502 ###############
19503 ## System checks
19504 ##
19505
19506   { echo "$as_me:$LINENO: result: " >&5
19507 echo "${ECHO_T}" >&6; }
19508   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19509 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19510
19511 ac_ext=c
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516 if test -n "$ac_tool_prefix"; then
19517   for ac_prog in xlC gcc cc
19518   do
19519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_prog_CC+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   if test -n "$CC"; then
19527   ac_cv_prog_CC="$CC" # Let the user override the test.
19528 else
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19531 do
19532   IFS=$as_save_IFS
19533   test -z "$as_dir" && as_dir=.
19534   for ac_exec_ext in '' $ac_executable_extensions; do
19535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19538     break 2
19539   fi
19540 done
19541 done
19542 IFS=$as_save_IFS
19543
19544 fi
19545 fi
19546 CC=$ac_cv_prog_CC
19547 if test -n "$CC"; then
19548   { echo "$as_me:$LINENO: result: $CC" >&5
19549 echo "${ECHO_T}$CC" >&6; }
19550 else
19551   { echo "$as_me:$LINENO: result: no" >&5
19552 echo "${ECHO_T}no" >&6; }
19553 fi
19554
19555
19556     test -n "$CC" && break
19557   done
19558 fi
19559 if test -z "$CC"; then
19560   ac_ct_CC=$CC
19561   for ac_prog in xlC gcc cc
19562 do
19563   # Extract the first word of "$ac_prog", so it can be a program name with args.
19564 set dummy $ac_prog; ac_word=$2
19565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570   if test -n "$ac_ct_CC"; then
19571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19572 else
19573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19574 for as_dir in $PATH
19575 do
19576   IFS=$as_save_IFS
19577   test -z "$as_dir" && as_dir=.
19578   for ac_exec_ext in '' $ac_executable_extensions; do
19579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19580     ac_cv_prog_ac_ct_CC="$ac_prog"
19581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19582     break 2
19583   fi
19584 done
19585 done
19586 IFS=$as_save_IFS
19587
19588 fi
19589 fi
19590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19591 if test -n "$ac_ct_CC"; then
19592   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19593 echo "${ECHO_T}$ac_ct_CC" >&6; }
19594 else
19595   { echo "$as_me:$LINENO: result: no" >&5
19596 echo "${ECHO_T}no" >&6; }
19597 fi
19598
19599
19600   test -n "$ac_ct_CC" && break
19601 done
19602
19603   if test "x$ac_ct_CC" = x; then
19604     CC=""
19605   else
19606     case $cross_compiling:$ac_tool_warned in
19607 yes:)
19608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19609 whose name does not start with the host triplet.  If you think this
19610 configuration is useful to you, please write to autoconf@gnu.org." >&5
19611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19612 whose name does not start with the host triplet.  If you think this
19613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19614 ac_tool_warned=yes ;;
19615 esac
19616     CC=$ac_ct_CC
19617   fi
19618 fi
19619
19620
19621 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19622 See \`config.log' for more details." >&5
19623 echo "$as_me: error: no acceptable C compiler found in \$PATH
19624 See \`config.log' for more details." >&2;}
19625    { (exit 1); exit 1; }; }
19626
19627 # Provide some information about the compiler.
19628 echo "$as_me:$LINENO: checking for C compiler version" >&5
19629 ac_compiler=`set X $ac_compile; echo $2`
19630 { (ac_try="$ac_compiler --version >&5"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_compiler --version >&5") 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }
19640 { (ac_try="$ac_compiler -v >&5"
19641 case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_compiler -v >&5") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }
19650 { (ac_try="$ac_compiler -V >&5"
19651 case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_compiler -V >&5") 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }
19660
19661 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672
19673 int
19674 main ()
19675 {
19676 #ifndef __GNUC__
19677        choke me
19678 #endif
19679
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (ac_try="$ac_compile"
19686 case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691   (eval "$ac_compile") 2>conftest.er1
19692   ac_status=$?
19693   grep -v '^ *+' conftest.er1 >conftest.err
19694   rm -f conftest.er1
19695   cat conftest.err >&5
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); } && {
19698          test -z "$ac_c_werror_flag" ||
19699          test ! -s conftest.err
19700        } && test -s conftest.$ac_objext; then
19701   ac_compiler_gnu=yes
19702 else
19703   echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706         ac_compiler_gnu=no
19707 fi
19708
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19711
19712 fi
19713 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19714 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19715 GCC=`test $ac_compiler_gnu = yes && echo yes`
19716 ac_test_CFLAGS=${CFLAGS+set}
19717 ac_save_CFLAGS=$CFLAGS
19718 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19719 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19720 if test "${ac_cv_prog_cc_g+set}" = set; then
19721   echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723   ac_save_c_werror_flag=$ac_c_werror_flag
19724    ac_c_werror_flag=yes
19725    ac_cv_prog_cc_g=no
19726    CFLAGS="-g"
19727    cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733
19734 int
19735 main ()
19736 {
19737
19738   ;
19739   return 0;
19740 }
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749   (eval "$ac_compile") 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } && {
19756          test -z "$ac_c_werror_flag" ||
19757          test ! -s conftest.err
19758        } && test -s conftest.$ac_objext; then
19759   ac_cv_prog_cc_g=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764         CFLAGS=""
19765       cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h.  */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h.  */
19771
19772 int
19773 main ()
19774 {
19775
19776   ;
19777   return 0;
19778 }
19779 _ACEOF
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_compile") 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } && {
19794          test -z "$ac_c_werror_flag" ||
19795          test ! -s conftest.err
19796        } && test -s conftest.$ac_objext; then
19797   :
19798 else
19799   echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802         ac_c_werror_flag=$ac_save_c_werror_flag
19803          CFLAGS="-g"
19804          cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810
19811 int
19812 main ()
19813 {
19814
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826   (eval "$ac_compile") 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } && {
19833          test -z "$ac_c_werror_flag" ||
19834          test ! -s conftest.err
19835        } && test -s conftest.$ac_objext; then
19836   ac_cv_prog_cc_g=yes
19837 else
19838   echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841
19842 fi
19843
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 fi
19846
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 fi
19849
19850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851    ac_c_werror_flag=$ac_save_c_werror_flag
19852 fi
19853 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19854 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19855 if test "$ac_test_CFLAGS" = set; then
19856   CFLAGS=$ac_save_CFLAGS
19857 elif test $ac_cv_prog_cc_g = yes; then
19858   if test "$GCC" = yes; then
19859     CFLAGS="-g -O2"
19860   else
19861     CFLAGS="-g"
19862   fi
19863 else
19864   if test "$GCC" = yes; then
19865     CFLAGS="-O2"
19866   else
19867     CFLAGS=
19868   fi
19869 fi
19870 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19871 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19872 if test "${ac_cv_prog_cc_c89+set}" = set; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875   ac_cv_prog_cc_c89=no
19876 ac_save_CC=$CC
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 #include <stdarg.h>
19884 #include <stdio.h>
19885 #include <sys/types.h>
19886 #include <sys/stat.h>
19887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19888 struct buf { int x; };
19889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19890 static char *e (p, i)
19891      char **p;
19892      int i;
19893 {
19894   return p[i];
19895 }
19896 static char *f (char * (*g) (char **, int), char **p, ...)
19897 {
19898   char *s;
19899   va_list v;
19900   va_start (v,p);
19901   s = g (p, va_arg (v,int));
19902   va_end (v);
19903   return s;
19904 }
19905
19906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19907    function prototypes and stuff, but not '\xHH' hex character constants.
19908    These don't provoke an error unfortunately, instead are silently treated
19909    as 'x'.  The following induces an error, until -std is added to get
19910    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19911    array size at least.  It's necessary to write '\x00'==0 to get something
19912    that's true only with -std.  */
19913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19914
19915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19916    inside strings and character constants.  */
19917 #define FOO(x) 'x'
19918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19919
19920 int test (int i, double x);
19921 struct s1 {int (*f) (int a);};
19922 struct s2 {int (*f) (double a);};
19923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19924 int argc;
19925 char **argv;
19926 int
19927 main ()
19928 {
19929 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19930   ;
19931   return 0;
19932 }
19933 _ACEOF
19934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19935         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19936 do
19937   CC="$ac_save_CC $ac_arg"
19938   rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945   (eval "$ac_compile") 2>conftest.er1
19946   ac_status=$?
19947   grep -v '^ *+' conftest.er1 >conftest.err
19948   rm -f conftest.er1
19949   cat conftest.err >&5
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); } && {
19952          test -z "$ac_c_werror_flag" ||
19953          test ! -s conftest.err
19954        } && test -s conftest.$ac_objext; then
19955   ac_cv_prog_cc_c89=$ac_arg
19956 else
19957   echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960
19961 fi
19962
19963 rm -f core conftest.err conftest.$ac_objext
19964   test "x$ac_cv_prog_cc_c89" != "xno" && break
19965 done
19966 rm -f conftest.$ac_ext
19967 CC=$ac_save_CC
19968
19969 fi
19970 # AC_CACHE_VAL
19971 case "x$ac_cv_prog_cc_c89" in
19972   x)
19973     { echo "$as_me:$LINENO: result: none needed" >&5
19974 echo "${ECHO_T}none needed" >&6; } ;;
19975   xno)
19976     { echo "$as_me:$LINENO: result: unsupported" >&5
19977 echo "${ECHO_T}unsupported" >&6; } ;;
19978   *)
19979     CC="$CC $ac_cv_prog_cc_c89"
19980     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19981 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19982 esac
19983
19984
19985 ac_ext=c
19986 ac_cpp='$CPP $CPPFLAGS'
19987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19990
19991 depcc="$CC"   am_compiler_list=
19992
19993 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19994 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19995 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19996   echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19999   # We make a subdir and do the tests there.  Otherwise we can end up
20000   # making bogus files that we don't know about and never remove.  For
20001   # instance it was reported that on HP-UX the gcc test will end up
20002   # making a dummy file named `D' -- because `-MD' means `put the output
20003   # in D'.
20004   mkdir conftest.dir
20005   # Copy depcomp to subdir because otherwise we won't find it if we're
20006   # using a relative directory.
20007   cp "$am_depcomp" conftest.dir
20008   cd conftest.dir
20009   # We will build objects and dependencies in a subdirectory because
20010   # it helps to detect inapplicable dependency modes.  For instance
20011   # both Tru64's cc and ICC support -MD to output dependencies as a
20012   # side effect of compilation, but ICC will put the dependencies in
20013   # the current directory while Tru64 will put them in the object
20014   # directory.
20015   mkdir sub
20016
20017   am_cv_CC_dependencies_compiler_type=none
20018   if test "$am_compiler_list" = ""; then
20019      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20020   fi
20021   for depmode in $am_compiler_list; do
20022     # Setup a source with many dependencies, because some compilers
20023     # like to wrap large dependency lists on column 80 (with \), and
20024     # we should not choose a depcomp mode which is confused by this.
20025     #
20026     # We need to recreate these files for each test, as the compiler may
20027     # overwrite some of them when testing with obscure command lines.
20028     # This happens at least with the AIX C compiler.
20029     : > sub/conftest.c
20030     for i in 1 2 3 4 5 6; do
20031       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20032       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20033       # Solaris 8's {/usr,}/bin/sh.
20034       touch sub/conftst$i.h
20035     done
20036     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20037
20038     case $depmode in
20039     nosideeffect)
20040       # after this tag, mechanisms are not by side-effect, so they'll
20041       # only be used when explicitly requested
20042       if test "x$enable_dependency_tracking" = xyes; then
20043         continue
20044       else
20045         break
20046       fi
20047       ;;
20048     none) break ;;
20049     esac
20050     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20051     # mode.  It turns out that the SunPro C++ compiler does not properly
20052     # handle `-M -o', and we need to detect this.
20053     if depmode=$depmode \
20054        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20055        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20056        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20057          >/dev/null 2>conftest.err &&
20058        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20059        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20060        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20061       # icc doesn't choke on unknown options, it will just issue warnings
20062       # or remarks (even with -Werror).  So we grep stderr for any message
20063       # that says an option was ignored or not supported.
20064       # When given -MP, icc 7.0 and 7.1 complain thusly:
20065       #   icc: Command line warning: ignoring option '-M'; no argument required
20066       # The diagnosis changed in icc 8.0:
20067       #   icc: Command line remark: option '-MP' not supported
20068       if (grep 'ignoring option' conftest.err ||
20069           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20070         am_cv_CC_dependencies_compiler_type=$depmode
20071         break
20072       fi
20073     fi
20074   done
20075
20076   cd ..
20077   rm -rf conftest.dir
20078 else
20079   am_cv_CC_dependencies_compiler_type=none
20080 fi
20081
20082 fi
20083 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20084 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20086
20087
20088
20089 if
20090   test "x$enable_dependency_tracking" != xno \
20091   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20092   am__fastdepCC_TRUE=
20093   am__fastdepCC_FALSE='#'
20094 else
20095   am__fastdepCC_TRUE='#'
20096   am__fastdepCC_FALSE=
20097 fi
20098
20099
20100 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20101 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20102 # Just in case
20103 sleep 1
20104 echo timestamp > conftest.file
20105 # Do `set' in a subshell so we don't clobber the current shell's
20106 # arguments.  Must try -L first in case configure is actually a
20107 # symlink; some systems play weird games with the mod time of symlinks
20108 # (eg FreeBSD returns the mod time of the symlink's containing
20109 # directory).
20110 if (
20111    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20112    if test "$*" = "X"; then
20113       # -L didn't work.
20114       set X `ls -t $srcdir/configure conftest.file`
20115    fi
20116    rm -f conftest.file
20117    if test "$*" != "X $srcdir/configure conftest.file" \
20118       && test "$*" != "X conftest.file $srcdir/configure"; then
20119
20120       # If neither matched, then we have a broken ls.  This can happen
20121       # if, for instance, CONFIG_SHELL is bash and it inherits a
20122       # broken ls alias from the environment.  This has actually
20123       # happened.  Such a system could not be considered "sane".
20124       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20125 alias in your environment" >&5
20126 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20127 alias in your environment" >&2;}
20128    { (exit 1); exit 1; }; }
20129    fi
20130
20131    test "$2" = conftest.file
20132    )
20133 then
20134    # Ok.
20135    :
20136 else
20137    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20138 Check your system clock" >&5
20139 echo "$as_me: error: newly created file is older than distributed files!
20140 Check your system clock" >&2;}
20141    { (exit 1); exit 1; }; }
20142 fi
20143 { echo "$as_me:$LINENO: result: yes" >&5
20144 echo "${ECHO_T}yes" >&6; }
20145 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20146 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20147 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20148 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151   cat >conftest.make <<\_ACEOF
20152 SHELL = /bin/sh
20153 all:
20154         @echo '@@@%%%=$(MAKE)=@@@%%%'
20155 _ACEOF
20156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20158   *@@@%%%=?*=@@@%%%*)
20159     eval ac_cv_prog_make_${ac_make}_set=yes;;
20160   *)
20161     eval ac_cv_prog_make_${ac_make}_set=no;;
20162 esac
20163 rm -f conftest.make
20164 fi
20165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20166   { echo "$as_me:$LINENO: result: yes" >&5
20167 echo "${ECHO_T}yes" >&6; }
20168   SET_MAKE=
20169 else
20170   { echo "$as_me:$LINENO: result: no" >&5
20171 echo "${ECHO_T}no" >&6; }
20172   SET_MAKE="MAKE=${MAKE-make}"
20173 fi
20174
20175
20176 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20177 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20178 if test "$cross_compiling" = yes; then
20179   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20180 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20181 else
20182   cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 #include <stdio.h>
20189 int
20190 main ()
20191 {
20192 printf("%s",NULL);
20193   ;
20194   return 0;
20195 }
20196 _ACEOF
20197 rm -f conftest$ac_exeext
20198 if { (ac_try="$ac_link"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_link") 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20208   { (case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_try") 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; }; then
20217
20218 cat >>confdefs.h <<\_ACEOF
20219 #define PRINTF_NULL_WORKING 1
20220 _ACEOF
20221
20222               { echo "$as_me:$LINENO: result: yes" >&5
20223 echo "${ECHO_T}yes" >&6; }
20224 else
20225   echo "$as_me: program exited with status $ac_status" >&5
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 ( exit $ac_status )
20230 { echo "$as_me:$LINENO: result: no" >&5
20231 echo "${ECHO_T}no" >&6; }
20232 fi
20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20234 fi
20235
20236
20237
20238
20239     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20240 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20241     if test "${ac_cv_va_copy+set}" = set; then
20242   echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244
20245     ac_cv_va_copy=""
20246
20247
20248
20249     if test ".$ac_cv_va_copy" = .; then
20250         if test "$cross_compiling" = yes; then
20251   ac_cv_va_copy="C99"
20252 else
20253   cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259
20260 #include <stdlib.h>
20261 #include <stdarg.h>
20262 #include <string.h>
20263 #define DO_VA_COPY(d, s) va_copy((d), (s))
20264 void test(char *str, ...)
20265 {
20266     va_list ap, ap2;
20267     int i;
20268     va_start(ap, str);
20269     DO_VA_COPY(ap2, ap);
20270     for (i = 1; i <= 9; i++) {
20271         int k = (int)va_arg(ap, int);
20272         if (k != i)
20273             abort();
20274     }
20275     DO_VA_COPY(ap, ap2);
20276     for (i = 1; i <= 9; i++) {
20277         int k = (int)va_arg(ap, int);
20278         if (k != i)
20279             abort();
20280     }
20281     va_end(ap);
20282 }
20283 int main(int argc, char *argv[])
20284 {
20285     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20286     exit(0);
20287 }
20288
20289 _ACEOF
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_link") 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301   { (case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_try") 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_va_copy="C99"
20311 else
20312   echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 fi
20317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20318 fi
20319
20320
20321             fi
20322
20323
20324
20325
20326     if test ".$ac_cv_va_copy" = .; then
20327         if test "$cross_compiling" = yes; then
20328   ac_cv_va_copy="GCM"
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336
20337 #include <stdlib.h>
20338 #include <stdarg.h>
20339 #include <string.h>
20340 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20341 void test(char *str, ...)
20342 {
20343     va_list ap, ap2;
20344     int i;
20345     va_start(ap, str);
20346     DO_VA_COPY(ap2, ap);
20347     for (i = 1; i <= 9; i++) {
20348         int k = (int)va_arg(ap, int);
20349         if (k != i)
20350             abort();
20351     }
20352     DO_VA_COPY(ap, ap2);
20353     for (i = 1; i <= 9; i++) {
20354         int k = (int)va_arg(ap, int);
20355         if (k != i)
20356             abort();
20357     }
20358     va_end(ap);
20359 }
20360 int main(int argc, char *argv[])
20361 {
20362     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20363     exit(0);
20364 }
20365
20366 _ACEOF
20367 rm -f conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374   (eval "$ac_link") 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378   { (case "(($ac_try" in
20379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380   *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383   (eval "$ac_try") 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; }; then
20387   ac_cv_va_copy="GCM"
20388 else
20389   echo "$as_me: program exited with status $ac_status" >&5
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 fi
20394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20395 fi
20396
20397
20398             fi
20399
20400
20401
20402
20403     if test ".$ac_cv_va_copy" = .; then
20404         if test "$cross_compiling" = yes; then
20405   ac_cv_va_copy="GCH"
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413
20414 #include <stdlib.h>
20415 #include <stdarg.h>
20416 #include <string.h>
20417 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20418 void test(char *str, ...)
20419 {
20420     va_list ap, ap2;
20421     int i;
20422     va_start(ap, str);
20423     DO_VA_COPY(ap2, ap);
20424     for (i = 1; i <= 9; i++) {
20425         int k = (int)va_arg(ap, int);
20426         if (k != i)
20427             abort();
20428     }
20429     DO_VA_COPY(ap, ap2);
20430     for (i = 1; i <= 9; i++) {
20431         int k = (int)va_arg(ap, int);
20432         if (k != i)
20433             abort();
20434     }
20435     va_end(ap);
20436 }
20437 int main(int argc, char *argv[])
20438 {
20439     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20440     exit(0);
20441 }
20442
20443 _ACEOF
20444 rm -f conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451   (eval "$ac_link") 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20455   { (case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_try") 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }; then
20464   ac_cv_va_copy="GCH"
20465 else
20466   echo "$as_me: program exited with status $ac_status" >&5
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 fi
20471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20472 fi
20473
20474
20475             fi
20476
20477
20478
20479
20480     if test ".$ac_cv_va_copy" = .; then
20481         if test "$cross_compiling" = yes; then
20482   ac_cv_va_copy="GCB"
20483 else
20484   cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h.  */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h.  */
20490
20491 #include <stdlib.h>
20492 #include <stdarg.h>
20493 #include <string.h>
20494 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20495 void test(char *str, ...)
20496 {
20497     va_list ap, ap2;
20498     int i;
20499     va_start(ap, str);
20500     DO_VA_COPY(ap2, ap);
20501     for (i = 1; i <= 9; i++) {
20502         int k = (int)va_arg(ap, int);
20503         if (k != i)
20504             abort();
20505     }
20506     DO_VA_COPY(ap, ap2);
20507     for (i = 1; i <= 9; i++) {
20508         int k = (int)va_arg(ap, int);
20509         if (k != i)
20510             abort();
20511     }
20512     va_end(ap);
20513 }
20514 int main(int argc, char *argv[])
20515 {
20516     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20517     exit(0);
20518 }
20519
20520 _ACEOF
20521 rm -f conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525   *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528   (eval "$ac_link") 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20532   { (case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537   (eval "$ac_try") 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; }; then
20541   ac_cv_va_copy="GCB"
20542 else
20543   echo "$as_me: program exited with status $ac_status" >&5
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 fi
20548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20549 fi
20550
20551
20552             fi
20553
20554
20555
20556
20557     if test ".$ac_cv_va_copy" = .; then
20558         if test "$cross_compiling" = yes; then
20559   ac_cv_va_copy="ASS"
20560 else
20561   cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h.  */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h.  */
20567
20568 #include <stdlib.h>
20569 #include <stdarg.h>
20570 #include <string.h>
20571 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20572 void test(char *str, ...)
20573 {
20574     va_list ap, ap2;
20575     int i;
20576     va_start(ap, str);
20577     DO_VA_COPY(ap2, ap);
20578     for (i = 1; i <= 9; i++) {
20579         int k = (int)va_arg(ap, int);
20580         if (k != i)
20581             abort();
20582     }
20583     DO_VA_COPY(ap, ap2);
20584     for (i = 1; i <= 9; i++) {
20585         int k = (int)va_arg(ap, int);
20586         if (k != i)
20587             abort();
20588     }
20589     va_end(ap);
20590 }
20591 int main(int argc, char *argv[])
20592 {
20593     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20594     exit(0);
20595 }
20596
20597 _ACEOF
20598 rm -f conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602   *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605   (eval "$ac_link") 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20609   { (case "(($ac_try" in
20610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611   *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614   (eval "$ac_try") 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ac_cv_va_copy="ASS"
20619 else
20620   echo "$as_me: program exited with status $ac_status" >&5
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 fi
20625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20626 fi
20627
20628
20629             fi
20630
20631
20632
20633
20634     if test ".$ac_cv_va_copy" = .; then
20635         if test "$cross_compiling" = yes; then
20636   ac_cv_va_copy="ASP"
20637 else
20638   cat >conftest.$ac_ext <<_ACEOF
20639 /* confdefs.h.  */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h.  */
20644
20645 #include <stdlib.h>
20646 #include <stdarg.h>
20647 #include <string.h>
20648 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20649 void test(char *str, ...)
20650 {
20651     va_list ap, ap2;
20652     int i;
20653     va_start(ap, str);
20654     DO_VA_COPY(ap2, ap);
20655     for (i = 1; i <= 9; i++) {
20656         int k = (int)va_arg(ap, int);
20657         if (k != i)
20658             abort();
20659     }
20660     DO_VA_COPY(ap, ap2);
20661     for (i = 1; i <= 9; i++) {
20662         int k = (int)va_arg(ap, int);
20663         if (k != i)
20664             abort();
20665     }
20666     va_end(ap);
20667 }
20668 int main(int argc, char *argv[])
20669 {
20670     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20671     exit(0);
20672 }
20673
20674 _ACEOF
20675 rm -f conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_link") 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686   { (case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_try") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_va_copy="ASP"
20696 else
20697   echo "$as_me: program exited with status $ac_status" >&5
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 fi
20702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20703 fi
20704
20705
20706             fi
20707
20708
20709
20710
20711     if test ".$ac_cv_va_copy" = .; then
20712         if test "$cross_compiling" = yes; then
20713   ac_cv_va_copy="CPS"
20714 else
20715   cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721
20722 #include <stdlib.h>
20723 #include <stdarg.h>
20724 #include <string.h>
20725 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20726 void test(char *str, ...)
20727 {
20728     va_list ap, ap2;
20729     int i;
20730     va_start(ap, str);
20731     DO_VA_COPY(ap2, ap);
20732     for (i = 1; i <= 9; i++) {
20733         int k = (int)va_arg(ap, int);
20734         if (k != i)
20735             abort();
20736     }
20737     DO_VA_COPY(ap, ap2);
20738     for (i = 1; i <= 9; i++) {
20739         int k = (int)va_arg(ap, int);
20740         if (k != i)
20741             abort();
20742     }
20743     va_end(ap);
20744 }
20745 int main(int argc, char *argv[])
20746 {
20747     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20748     exit(0);
20749 }
20750
20751 _ACEOF
20752 rm -f conftest$ac_exeext
20753 if { (ac_try="$ac_link"
20754 case "(($ac_try" in
20755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756   *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759   (eval "$ac_link") 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20763   { (case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768   (eval "$ac_try") 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); }; }; then
20772   ac_cv_va_copy="CPS"
20773 else
20774   echo "$as_me: program exited with status $ac_status" >&5
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778 fi
20779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20780 fi
20781
20782
20783             fi
20784
20785
20786
20787
20788     if test ".$ac_cv_va_copy" = .; then
20789         if test "$cross_compiling" = yes; then
20790   ac_cv_va_copy="CPP"
20791 else
20792   cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h.  */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h.  */
20798
20799 #include <stdlib.h>
20800 #include <stdarg.h>
20801 #include <string.h>
20802 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20803 void test(char *str, ...)
20804 {
20805     va_list ap, ap2;
20806     int i;
20807     va_start(ap, str);
20808     DO_VA_COPY(ap2, ap);
20809     for (i = 1; i <= 9; i++) {
20810         int k = (int)va_arg(ap, int);
20811         if (k != i)
20812             abort();
20813     }
20814     DO_VA_COPY(ap, ap2);
20815     for (i = 1; i <= 9; i++) {
20816         int k = (int)va_arg(ap, int);
20817         if (k != i)
20818             abort();
20819     }
20820     va_end(ap);
20821 }
20822 int main(int argc, char *argv[])
20823 {
20824     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20825     exit(0);
20826 }
20827
20828 _ACEOF
20829 rm -f conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_link") 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20840   { (case "(($ac_try" in
20841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842   *) ac_try_echo=$ac_try;;
20843 esac
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845   (eval "$ac_try") 2>&5
20846   ac_status=$?
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); }; }; then
20849   ac_cv_va_copy="CPP"
20850 else
20851   echo "$as_me: program exited with status $ac_status" >&5
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 fi
20856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20857 fi
20858
20859
20860             fi
20861
20862     if test ".$ac_cv_va_copy" = .; then
20863         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20864 echo "$as_me: error: no working implementation found" >&2;}
20865    { (exit 1); exit 1; }; }
20866     fi
20867
20868 fi
20869
20870     if test ".$ac_cv_va_copy" = ".C99"; then
20871
20872 cat >>confdefs.h <<\_ACEOF
20873 #define HAVE_VA_COPY 1
20874 _ACEOF
20875
20876   fi
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20880 _ACEOF
20881
20882
20883
20884     if test ".$ac_cv_va_copy" = ".C99"; then
20885       { echo "$as_me:$LINENO: result: yes" >&5
20886 echo "${ECHO_T}yes" >&6; }
20887   else
20888       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20889 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20890   fi
20891
20892
20893 # Checks for header files.
20894 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20895 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20896 if test "${ac_cv_header_stdc+set}" = set; then
20897   echo $ECHO_N "(cached) $ECHO_C" >&6
20898 else
20899   cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905 #include <stdlib.h>
20906 #include <stdarg.h>
20907 #include <string.h>
20908 #include <float.h>
20909
20910 int
20911 main ()
20912 {
20913
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_compile") 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } && {
20932          test -z "$ac_c_werror_flag" ||
20933          test ! -s conftest.err
20934        } && test -s conftest.$ac_objext; then
20935   ac_cv_header_stdc=yes
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_cv_header_stdc=no
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944
20945 if test $ac_cv_header_stdc = yes; then
20946   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <string.h>
20954
20955 _ACEOF
20956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20957   $EGREP "memchr" >/dev/null 2>&1; then
20958   :
20959 else
20960   ac_cv_header_stdc=no
20961 fi
20962 rm -f conftest*
20963
20964 fi
20965
20966 if test $ac_cv_header_stdc = yes; then
20967   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20968   cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <stdlib.h>
20975
20976 _ACEOF
20977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20978   $EGREP "free" >/dev/null 2>&1; then
20979   :
20980 else
20981   ac_cv_header_stdc=no
20982 fi
20983 rm -f conftest*
20984
20985 fi
20986
20987 if test $ac_cv_header_stdc = yes; then
20988   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20989   if test "$cross_compiling" = yes; then
20990   :
20991 else
20992   cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <ctype.h>
20999 #include <stdlib.h>
21000 #if ((' ' & 0x0FF) == 0x020)
21001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21003 #else
21004 # define ISLOWER(c) \
21005                    (('a' <= (c) && (c) <= 'i') \
21006                      || ('j' <= (c) && (c) <= 'r') \
21007                      || ('s' <= (c) && (c) <= 'z'))
21008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21009 #endif
21010
21011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21012 int
21013 main ()
21014 {
21015   int i;
21016   for (i = 0; i < 256; i++)
21017     if (XOR (islower (i), ISLOWER (i))
21018         || toupper (i) != TOUPPER (i))
21019       return 2;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest$ac_exeext
21024 if { (ac_try="$ac_link"
21025 case "(($ac_try" in
21026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027   *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030   (eval "$ac_link") 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21034   { (case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_try") 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   :
21044 else
21045   echo "$as_me: program exited with status $ac_status" >&5
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049 ( exit $ac_status )
21050 ac_cv_header_stdc=no
21051 fi
21052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21053 fi
21054
21055
21056 fi
21057 fi
21058 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21059 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21060 if test $ac_cv_header_stdc = yes; then
21061
21062 cat >>confdefs.h <<\_ACEOF
21063 #define STDC_HEADERS 1
21064 _ACEOF
21065
21066 fi
21067
21068 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21069 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21070 if test "${ac_cv_header_time+set}" = set; then
21071   echo $ECHO_N "(cached) $ECHO_C" >&6
21072 else
21073   cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 #include <sys/types.h>
21080 #include <sys/time.h>
21081 #include <time.h>
21082
21083 int
21084 main ()
21085 {
21086 if ((struct tm *) 0)
21087 return 0;
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_compile") 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } && {
21106          test -z "$ac_c_werror_flag" ||
21107          test ! -s conftest.err
21108        } && test -s conftest.$ac_objext; then
21109   ac_cv_header_time=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         ac_cv_header_time=no
21115 fi
21116
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 fi
21119 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21120 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21121 if test $ac_cv_header_time = yes; then
21122
21123 cat >>confdefs.h <<\_ACEOF
21124 #define TIME_WITH_SYS_TIME 1
21125 _ACEOF
21126
21127 fi
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139 for ac_header in sys/socket.h \
21140                   sys/stat.h \
21141                   windows.h winsock.h winsock2.h \
21142                   sys/time.h \
21143                   errno.h unistd.h \
21144                   execinfo.h\
21145                   signal.h
21146 do
21147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21152   echo $ECHO_N "(cached) $ECHO_C" >&6
21153 fi
21154 ac_res=`eval echo '${'$as_ac_Header'}'`
21155                { echo "$as_me:$LINENO: result: $ac_res" >&5
21156 echo "${ECHO_T}$ac_res" >&6; }
21157 else
21158   # Is the header compilable?
21159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 $ac_includes_default
21168 #include <$ac_header>
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_compile") 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } && {
21184          test -z "$ac_c_werror_flag" ||
21185          test ! -s conftest.err
21186        } && test -s conftest.$ac_objext; then
21187   ac_header_compiler=yes
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192         ac_header_compiler=no
21193 fi
21194
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21197 echo "${ECHO_T}$ac_header_compiler" >&6; }
21198
21199 # Is the header present?
21200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21202 cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208 #include <$ac_header>
21209 _ACEOF
21210 if { (ac_try="$ac_cpp conftest.$ac_ext"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } >/dev/null && {
21223          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21224          test ! -s conftest.err
21225        }; then
21226   ac_header_preproc=yes
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231   ac_header_preproc=no
21232 fi
21233
21234 rm -f conftest.err conftest.$ac_ext
21235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21236 echo "${ECHO_T}$ac_header_preproc" >&6; }
21237
21238 # So?  What about this header?
21239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21240   yes:no: )
21241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21245     ac_header_preproc=yes
21246     ;;
21247   no:yes:* )
21248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21260     ( cat <<\_ASBOX
21261 ## -------------------------------------------------- ##
21262 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21263 ## -------------------------------------------------- ##
21264 _ASBOX
21265      ) | sed "s/^/$as_me: WARNING:     /" >&2
21266     ;;
21267 esac
21268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273   eval "$as_ac_Header=\$ac_header_preproc"
21274 fi
21275 ac_res=`eval echo '${'$as_ac_Header'}'`
21276                { echo "$as_me:$LINENO: result: $ac_res" >&5
21277 echo "${ECHO_T}$ac_res" >&6; }
21278
21279 fi
21280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21281   cat >>confdefs.h <<_ACEOF
21282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21283 _ACEOF
21284
21285 fi
21286
21287 done
21288
21289
21290
21291
21292
21293
21294
21295
21296 for ac_func in gettimeofday usleep \
21297                 getdtablesize \
21298                 sysconf\
21299                 readv\
21300                 popen\
21301                 signal
21302 do
21303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21307   echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309   cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h.  */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h.  */
21315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21317 #define $ac_func innocuous_$ac_func
21318
21319 /* System header to define __stub macros and hopefully few prototypes,
21320     which can conflict with char $ac_func (); below.
21321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21322     <limits.h> exists even on freestanding compilers.  */
21323
21324 #ifdef __STDC__
21325 # include <limits.h>
21326 #else
21327 # include <assert.h>
21328 #endif
21329
21330 #undef $ac_func
21331
21332 /* Override any GCC internal prototype to avoid an error.
21333    Use char because int might match the return type of a GCC
21334    builtin and then its argument prototype would still apply.  */
21335 #ifdef __cplusplus
21336 extern "C"
21337 #endif
21338 char $ac_func ();
21339 /* The GNU C library defines this for functions which it implements
21340     to always fail with ENOSYS.  Some functions are actually named
21341     something starting with __ and the normal name is an alias.  */
21342 #if defined __stub_$ac_func || defined __stub___$ac_func
21343 choke me
21344 #endif
21345
21346 int
21347 main ()
21348 {
21349 return $ac_func ();
21350   ;
21351   return 0;
21352 }
21353 _ACEOF
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (ac_try="$ac_link"
21356 case "(($ac_try" in
21357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358   *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361   (eval "$ac_link") 2>conftest.er1
21362   ac_status=$?
21363   grep -v '^ *+' conftest.er1 >conftest.err
21364   rm -f conftest.er1
21365   cat conftest.err >&5
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } && {
21368          test -z "$ac_c_werror_flag" ||
21369          test ! -s conftest.err
21370        } && test -s conftest$ac_exeext &&
21371        $as_test_x conftest$ac_exeext; then
21372   eval "$as_ac_var=yes"
21373 else
21374   echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377         eval "$as_ac_var=no"
21378 fi
21379
21380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21381       conftest$ac_exeext conftest.$ac_ext
21382 fi
21383 ac_res=`eval echo '${'$as_ac_var'}'`
21384                { echo "$as_me:$LINENO: result: $ac_res" >&5
21385 echo "${ECHO_T}$ac_res" >&6; }
21386 if test `eval echo '${'$as_ac_var'}'` = yes; then
21387   cat >>confdefs.h <<_ACEOF
21388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21389 _ACEOF
21390
21391 fi
21392 done
21393
21394
21395 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21396
21397
21398 for ac_func in snprintf vsnprintf
21399 do
21400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21404   echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406   cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21414 #define $ac_func innocuous_$ac_func
21415
21416 /* System header to define __stub macros and hopefully few prototypes,
21417     which can conflict with char $ac_func (); below.
21418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21419     <limits.h> exists even on freestanding compilers.  */
21420
21421 #ifdef __STDC__
21422 # include <limits.h>
21423 #else
21424 # include <assert.h>
21425 #endif
21426
21427 #undef $ac_func
21428
21429 /* Override any GCC internal prototype to avoid an error.
21430    Use char because int might match the return type of a GCC
21431    builtin and then its argument prototype would still apply.  */
21432 #ifdef __cplusplus
21433 extern "C"
21434 #endif
21435 char $ac_func ();
21436 /* The GNU C library defines this for functions which it implements
21437     to always fail with ENOSYS.  Some functions are actually named
21438     something starting with __ and the normal name is an alias.  */
21439 #if defined __stub_$ac_func || defined __stub___$ac_func
21440 choke me
21441 #endif
21442
21443 int
21444 main ()
21445 {
21446 return $ac_func ();
21447   ;
21448   return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455   *) ac_try_echo=$ac_try;;
21456 esac
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458   (eval "$ac_link") 2>conftest.er1
21459   ac_status=$?
21460   grep -v '^ *+' conftest.er1 >conftest.err
21461   rm -f conftest.er1
21462   cat conftest.err >&5
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); } && {
21465          test -z "$ac_c_werror_flag" ||
21466          test ! -s conftest.err
21467        } && test -s conftest$ac_exeext &&
21468        $as_test_x conftest$ac_exeext; then
21469   eval "$as_ac_var=yes"
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         eval "$as_ac_var=no"
21475 fi
21476
21477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21478       conftest$ac_exeext conftest.$ac_ext
21479 fi
21480 ac_res=`eval echo '${'$as_ac_var'}'`
21481                { echo "$as_me:$LINENO: result: $ac_res" >&5
21482 echo "${ECHO_T}$ac_res" >&6; }
21483 if test `eval echo '${'$as_ac_var'}'` = yes; then
21484   cat >>confdefs.h <<_ACEOF
21485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21486 _ACEOF
21487
21488 fi
21489 done
21490
21491 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21492 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21493 if test "${ac_cv_have_working_snprintf+set}" = set; then
21494   echo $ECHO_N "(cached) $ECHO_C" >&6
21495 else
21496   if test "$cross_compiling" = yes; then
21497   ac_cv_have_working_snprintf=cross
21498 else
21499   cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 #include <stdio.h>
21506
21507 int main(void)
21508 {
21509     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21510     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21511     int i;
21512     i = snprintf (bufs, 2, "%s", "111");
21513     if (strcmp (bufs, "1")) exit (1);
21514     if (i != 3) exit (1);
21515     i = snprintf (bufd, 2, "%d", 111);
21516     if (strcmp (bufd, "1")) exit (1);
21517     if (i != 3) exit (1);
21518     exit(0);
21519 }
21520 _ACEOF
21521 rm -f conftest$ac_exeext
21522 if { (ac_try="$ac_link"
21523 case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_link") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21532   { (case "(($ac_try" in
21533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534   *) ac_try_echo=$ac_try;;
21535 esac
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537   (eval "$ac_try") 2>&5
21538   ac_status=$?
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; }; then
21541   ac_cv_have_working_snprintf=yes
21542 else
21543   echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547 ( exit $ac_status )
21548 ac_cv_have_working_snprintf=no
21549 fi
21550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21551 fi
21552
21553
21554 fi
21555
21556 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21557 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21558 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21559 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21560 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21561   echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563   if test "$cross_compiling" = yes; then
21564   ac_cv_have_working_vsnprintf=cross
21565 else
21566   cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 #include <stdio.h>
21573 #include <stdarg.h>
21574
21575 int my_vsnprintf (char *buf, const char *tmpl, ...)
21576 {
21577     int i;
21578     va_list args;
21579     va_start (args, tmpl);
21580     i = vsnprintf (buf, 2, tmpl, args);
21581     va_end (args);
21582     return i;
21583 }
21584
21585 int main(void)
21586 {
21587     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21588     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21589     int i;
21590     i = my_vsnprintf (bufs, "%s", "111");
21591     if (strcmp (bufs, "1")) exit (1);
21592     if (i != 3) exit (1);
21593     i = my_vsnprintf (bufd, "%d", 111);
21594     if (strcmp (bufd, "1")) exit (1);
21595     if (i != 3) exit (1);
21596     exit(0);
21597 }
21598 _ACEOF
21599 rm -f conftest$ac_exeext
21600 if { (ac_try="$ac_link"
21601 case "(($ac_try" in
21602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603   *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606   (eval "$ac_link") 2>&5
21607   ac_status=$?
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21610   { (case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_try") 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }; then
21619   ac_cv_have_working_vsnprintf=yes
21620 else
21621   echo "$as_me: program exited with status $ac_status" >&5
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 ( exit $ac_status )
21626 ac_cv_have_working_vsnprintf=no
21627 fi
21628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21629 fi
21630
21631
21632 fi
21633
21634 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21635 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21636 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21637   case " $LIBOBJS " in
21638   *" snprintf.$ac_objext "* ) ;;
21639   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21640  ;;
21641 esac
21642
21643   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21644 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21645
21646 cat >>confdefs.h <<\_ACEOF
21647 #define PREFER_PORTABLE_SNPRINTF 1
21648 _ACEOF
21649
21650 fi
21651 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21652 { echo "$as_me:$LINENO: checking for asprintf" >&5
21653 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21654 if test "${ac_cv_func_asprintf+set}" = set; then
21655   echo $ECHO_N "(cached) $ECHO_C" >&6
21656 else
21657   cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h.  */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h.  */
21663 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21665 #define asprintf innocuous_asprintf
21666
21667 /* System header to define __stub macros and hopefully few prototypes,
21668     which can conflict with char asprintf (); below.
21669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21670     <limits.h> exists even on freestanding compilers.  */
21671
21672 #ifdef __STDC__
21673 # include <limits.h>
21674 #else
21675 # include <assert.h>
21676 #endif
21677
21678 #undef asprintf
21679
21680 /* Override any GCC internal prototype to avoid an error.
21681    Use char because int might match the return type of a GCC
21682    builtin and then its argument prototype would still apply.  */
21683 #ifdef __cplusplus
21684 extern "C"
21685 #endif
21686 char asprintf ();
21687 /* The GNU C library defines this for functions which it implements
21688     to always fail with ENOSYS.  Some functions are actually named
21689     something starting with __ and the normal name is an alias.  */
21690 #if defined __stub_asprintf || defined __stub___asprintf
21691 choke me
21692 #endif
21693
21694 int
21695 main ()
21696 {
21697 return asprintf ();
21698   ;
21699   return 0;
21700 }
21701 _ACEOF
21702 rm -f conftest.$ac_objext conftest$ac_exeext
21703 if { (ac_try="$ac_link"
21704 case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_link") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && {
21716          test -z "$ac_c_werror_flag" ||
21717          test ! -s conftest.err
21718        } && test -s conftest$ac_exeext &&
21719        $as_test_x conftest$ac_exeext; then
21720   ac_cv_func_asprintf=yes
21721 else
21722   echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21724
21725         ac_cv_func_asprintf=no
21726 fi
21727
21728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21729       conftest$ac_exeext conftest.$ac_ext
21730 fi
21731 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21732 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21733 if test $ac_cv_func_asprintf = yes; then
21734   :
21735 else
21736
21737 cat >>confdefs.h <<\_ACEOF
21738 #define NEED_ASPRINTF 1
21739 _ACEOF
21740
21741 fi
21742
21743 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21744 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21745 if test "${ac_cv_func_vasprintf+set}" = set; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748   cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21756 #define vasprintf innocuous_vasprintf
21757
21758 /* System header to define __stub macros and hopefully few prototypes,
21759     which can conflict with char vasprintf (); below.
21760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21761     <limits.h> exists even on freestanding compilers.  */
21762
21763 #ifdef __STDC__
21764 # include <limits.h>
21765 #else
21766 # include <assert.h>
21767 #endif
21768
21769 #undef vasprintf
21770
21771 /* Override any GCC internal prototype to avoid an error.
21772    Use char because int might match the return type of a GCC
21773    builtin and then its argument prototype would still apply.  */
21774 #ifdef __cplusplus
21775 extern "C"
21776 #endif
21777 char vasprintf ();
21778 /* The GNU C library defines this for functions which it implements
21779     to always fail with ENOSYS.  Some functions are actually named
21780     something starting with __ and the normal name is an alias.  */
21781 #if defined __stub_vasprintf || defined __stub___vasprintf
21782 choke me
21783 #endif
21784
21785 int
21786 main ()
21787 {
21788 return vasprintf ();
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext conftest$ac_exeext
21794 if { (ac_try="$ac_link"
21795 case "(($ac_try" in
21796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797   *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800   (eval "$ac_link") 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } && {
21807          test -z "$ac_c_werror_flag" ||
21808          test ! -s conftest.err
21809        } && test -s conftest$ac_exeext &&
21810        $as_test_x conftest$ac_exeext; then
21811   ac_cv_func_vasprintf=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816         ac_cv_func_vasprintf=no
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21820       conftest$ac_exeext conftest.$ac_ext
21821 fi
21822 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21823 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21824 if test $ac_cv_func_vasprintf = yes; then
21825   :
21826 else
21827
21828 cat >>confdefs.h <<\_ACEOF
21829 #define NEED_VASPRINTF 1
21830 _ACEOF
21831
21832 fi
21833
21834 # we don't use those:
21835 # A C_CHECK_FUNC( asnprintf, :,   A C_DEFINE(NEED_ASNPRINTF,  1, enable the asnprintf  replacement))
21836 # A C_CHECK_FUNC(vasnprintf, :,   A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
21837
21838
21839 # Checks for typedefs, structures, and compiler characteristics.
21840 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21842 if test "${ac_cv_c_const+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851
21852 int
21853 main ()
21854 {
21855 /* FIXME: Include the comments suggested by Paul. */
21856 #ifndef __cplusplus
21857   /* Ultrix mips cc rejects this.  */
21858   typedef int charset[2];
21859   const charset cs;
21860   /* SunOS 4.1.1 cc rejects this.  */
21861   char const *const *pcpcc;
21862   char **ppc;
21863   /* NEC SVR4.0.2 mips cc rejects this.  */
21864   struct point {int x, y;};
21865   static struct point const zero = {0,0};
21866   /* AIX XL C 1.02.0.0 rejects this.
21867      It does not let you subtract one const X* pointer from another in
21868      an arm of an if-expression whose if-part is not a constant
21869      expression */
21870   const char *g = "string";
21871   pcpcc = &g + (g ? g-g : 0);
21872   /* HPUX 7.0 cc rejects these. */
21873   ++pcpcc;
21874   ppc = (char**) pcpcc;
21875   pcpcc = (char const *const *) ppc;
21876   { /* SCO 3.2v4 cc rejects this.  */
21877     char *t;
21878     char const *s = 0 ? (char *) 0 : (char const *) 0;
21879
21880     *t++ = 0;
21881     if (s) return 0;
21882   }
21883   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21884     int x[] = {25, 17};
21885     const int *foo = &x[0];
21886     ++foo;
21887   }
21888   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21889     typedef const int *iptr;
21890     iptr p = 0;
21891     ++p;
21892   }
21893   { /* AIX XL C 1.02.0.0 rejects this saying
21894        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21895     struct s { int j; const int *ap[3]; };
21896     struct s *b; b->j = 5;
21897   }
21898   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21899     const int foo = 10;
21900     if (!foo) return 0;
21901   }
21902   return !cs[0] && !zero.x;
21903 #endif
21904
21905   ;
21906   return 0;
21907 }
21908 _ACEOF
21909 rm -f conftest.$ac_objext
21910 if { (ac_try="$ac_compile"
21911 case "(($ac_try" in
21912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913   *) ac_try_echo=$ac_try;;
21914 esac
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916   (eval "$ac_compile") 2>conftest.er1
21917   ac_status=$?
21918   grep -v '^ *+' conftest.er1 >conftest.err
21919   rm -f conftest.er1
21920   cat conftest.err >&5
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); } && {
21923          test -z "$ac_c_werror_flag" ||
21924          test ! -s conftest.err
21925        } && test -s conftest.$ac_objext; then
21926   ac_cv_c_const=yes
21927 else
21928   echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931         ac_cv_c_const=no
21932 fi
21933
21934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21935 fi
21936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21938 if test $ac_cv_c_const = no; then
21939
21940 cat >>confdefs.h <<\_ACEOF
21941 #define const
21942 _ACEOF
21943
21944 fi
21945
21946 { echo "$as_me:$LINENO: checking for inline" >&5
21947 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21948 if test "${ac_cv_c_inline+set}" = set; then
21949   echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951   ac_cv_c_inline=no
21952 for ac_kw in inline __inline__ __inline; do
21953   cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 #ifndef __cplusplus
21960 typedef int foo_t;
21961 static $ac_kw foo_t static_foo () {return 0; }
21962 $ac_kw foo_t foo () {return 0; }
21963 #endif
21964
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970   *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973   (eval "$ac_compile") 2>conftest.er1
21974   ac_status=$?
21975   grep -v '^ *+' conftest.er1 >conftest.err
21976   rm -f conftest.er1
21977   cat conftest.err >&5
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } && {
21980          test -z "$ac_c_werror_flag" ||
21981          test ! -s conftest.err
21982        } && test -s conftest.$ac_objext; then
21983   ac_cv_c_inline=$ac_kw
21984 else
21985   echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988
21989 fi
21990
21991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992   test "$ac_cv_c_inline" != no && break
21993 done
21994
21995 fi
21996 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21997 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21998
21999
22000 case $ac_cv_c_inline in
22001   inline | yes) ;;
22002   *)
22003     case $ac_cv_c_inline in
22004       no) ac_val=;;
22005       *) ac_val=$ac_cv_c_inline;;
22006     esac
22007     cat >>confdefs.h <<_ACEOF
22008 #ifndef __cplusplus
22009 #define inline $ac_val
22010 #endif
22011 _ACEOF
22012     ;;
22013 esac
22014
22015 { echo "$as_me:$LINENO: checking for size_t" >&5
22016 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22017 if test "${ac_cv_type_size_t+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026 $ac_includes_default
22027 typedef size_t ac__type_new_;
22028 int
22029 main ()
22030 {
22031 if ((ac__type_new_ *) 0)
22032   return 0;
22033 if (sizeof (ac__type_new_))
22034   return 0;
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_compile") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } && {
22053          test -z "$ac_c_werror_flag" ||
22054          test ! -s conftest.err
22055        } && test -s conftest.$ac_objext; then
22056   ac_cv_type_size_t=yes
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061         ac_cv_type_size_t=no
22062 fi
22063
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 fi
22066 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22067 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22068 if test $ac_cv_type_size_t = yes; then
22069   :
22070 else
22071
22072 cat >>confdefs.h <<_ACEOF
22073 #define size_t unsigned int
22074 _ACEOF
22075
22076 fi
22077
22078
22079 ###################################
22080 ## SimGrid and GRAS specific checks
22081 ##
22082
22083
22084   { echo "$as_me:$LINENO: result: " >&5
22085 echo "${ECHO_T}" >&6; }
22086   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22087 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22088
22089 # Check architecture signature begin
22090
22091 # Check for the architecture
22092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22094 if test "${ac_cv_c_bigendian+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   # See if sys/param.h defines the BYTE_ORDER macro.
22098 cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104 #include <sys/types.h>
22105 #include <sys/param.h>
22106
22107 int
22108 main ()
22109 {
22110 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22111         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22112  bogus endian macros
22113 #endif
22114
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 rm -f conftest.$ac_objext
22120 if { (ac_try="$ac_compile"
22121 case "(($ac_try" in
22122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123   *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126   (eval "$ac_compile") 2>conftest.er1
22127   ac_status=$?
22128   grep -v '^ *+' conftest.er1 >conftest.err
22129   rm -f conftest.er1
22130   cat conftest.err >&5
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } && {
22133          test -z "$ac_c_werror_flag" ||
22134          test ! -s conftest.err
22135        } && test -s conftest.$ac_objext; then
22136   # It does; now see whether it defined to BIG_ENDIAN or not.
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 #include <sys/types.h>
22144 #include <sys/param.h>
22145
22146 int
22147 main ()
22148 {
22149 #if BYTE_ORDER != BIG_ENDIAN
22150  not big endian
22151 #endif
22152
22153   ;
22154   return 0;
22155 }
22156 _ACEOF
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161   *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164   (eval "$ac_compile") 2>conftest.er1
22165   ac_status=$?
22166   grep -v '^ *+' conftest.er1 >conftest.err
22167   rm -f conftest.er1
22168   cat conftest.err >&5
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } && {
22171          test -z "$ac_c_werror_flag" ||
22172          test ! -s conftest.err
22173        } && test -s conftest.$ac_objext; then
22174   ac_cv_c_bigendian=yes
22175 else
22176   echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179         ac_cv_c_bigendian=no
22180 fi
22181
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187         # It does not; compile a test program.
22188 if test "$cross_compiling" = yes; then
22189   # try to guess the endianness by grepping values into an object file
22190   ac_cv_c_bigendian=unknown
22191   cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22198 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22199 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22200 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22201 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22202 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22203 int
22204 main ()
22205 {
22206  _ascii (); _ebcdic ();
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_compile") 2>conftest.er1
22219   ac_status=$?
22220   grep -v '^ *+' conftest.er1 >conftest.err
22221   rm -f conftest.er1
22222   cat conftest.err >&5
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } && {
22225          test -z "$ac_c_werror_flag" ||
22226          test ! -s conftest.err
22227        } && test -s conftest.$ac_objext; then
22228   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22229   ac_cv_c_bigendian=yes
22230 fi
22231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22232   if test "$ac_cv_c_bigendian" = unknown; then
22233     ac_cv_c_bigendian=no
22234   else
22235     # finding both strings is unlikely to happen, but who knows?
22236     ac_cv_c_bigendian=unknown
22237   fi
22238 fi
22239 else
22240   echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243
22244 fi
22245
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 else
22248   cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 $ac_includes_default
22255 int
22256 main ()
22257 {
22258
22259   /* Are we little or big endian?  From Harbison&Steele.  */
22260   union
22261   {
22262     long int l;
22263     char c[sizeof (long int)];
22264   } u;
22265   u.l = 1;
22266   return u.c[sizeof (long int) - 1] == 1;
22267
22268   ;
22269   return 0;
22270 }
22271 _ACEOF
22272 rm -f conftest$ac_exeext
22273 if { (ac_try="$ac_link"
22274 case "(($ac_try" in
22275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276   *) ac_try_echo=$ac_try;;
22277 esac
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279   (eval "$ac_link") 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283   { (case "(($ac_try" in
22284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285   *) ac_try_echo=$ac_try;;
22286 esac
22287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22288   (eval "$ac_try") 2>&5
22289   ac_status=$?
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); }; }; then
22292   ac_cv_c_bigendian=no
22293 else
22294   echo "$as_me: program exited with status $ac_status" >&5
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298 ( exit $ac_status )
22299 ac_cv_c_bigendian=yes
22300 fi
22301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22302 fi
22303
22304
22305 fi
22306
22307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22308 fi
22309 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22310 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22311 case $ac_cv_c_bigendian in
22312   yes)
22313     endian=1 ;;
22314   no)
22315     endian=0 ;;
22316   *)
22317     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22318 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22319    { (exit 1); exit 1; }; } ;;
22320 esac
22321
22322
22323 cat >>confdefs.h <<_ACEOF
22324 #define GRAS_BIGENDIAN $endian
22325 _ACEOF
22326
22327
22328 { echo "$as_me:$LINENO: checking size of char" >&5
22329 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22330     if test "${ac_cv_sizeof_char+set}" = set; then
22331   echo $ECHO_N "(cached) $ECHO_C" >&6
22332 else
22333   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22334    cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h.  */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h.  */
22340 #include "confdefs.h"
22341    #include <sys/types.h>
22342
22343
22344 int
22345 main ()
22346 {
22347 switch (0) case 0: case (sizeof (char) == $ac_size):;
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359   (eval "$ac_compile") 2>conftest.er1
22360   ac_status=$?
22361   grep -v '^ *+' conftest.er1 >conftest.err
22362   rm -f conftest.er1
22363   cat conftest.err >&5
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } && {
22366          test -z "$ac_c_werror_flag" ||
22367          test ! -s conftest.err
22368        } && test -s conftest.$ac_objext; then
22369   ac_cv_sizeof_char=$ac_size
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374
22375 fi
22376
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378    if test x$ac_cv_sizeof_char != x ; then break; fi
22379   done
22380
22381 fi
22382
22383
22384 unspecif=$ac_cv_sizeof_char
22385 if test x$unspecif = x ; then
22386   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22387 echo "$as_me: error: cannot determine a size for char" >&2;}
22388    { (exit 1); exit 1; }; }
22389 fi
22390
22391     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22395    cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include "confdefs.h"
22402    #include <sys/types.h>
22403
22404
22405 int
22406 main ()
22407 {
22408 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22409   ;
22410   return 0;
22411 }
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417   *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420   (eval "$ac_compile") 2>conftest.er1
22421   ac_status=$?
22422   grep -v '^ *+' conftest.er1 >conftest.err
22423   rm -f conftest.er1
22424   cat conftest.err >&5
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } && {
22427          test -z "$ac_c_werror_flag" ||
22428          test ! -s conftest.err
22429        } && test -s conftest.$ac_objext; then
22430   ac_cv_sizeof_signed_char=$ac_size
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435
22436 fi
22437
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22440   done
22441
22442 fi
22443
22444
22445 signed=$ac_cv_sizeof_signed_char
22446 if test x$signed = x ; then
22447   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22448 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22449    { (exit 1); exit 1; }; }
22450 fi
22451 if test x$unspecif != x$signed ; then
22452   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22453 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22454    { (exit 1); exit 1; }; }
22455 fi
22456
22457     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22458   echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22461    cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include "confdefs.h"
22468    #include <sys/types.h>
22469
22470
22471 int
22472 main ()
22473 {
22474 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22475   ;
22476   return 0;
22477 }
22478 _ACEOF
22479 rm -f conftest.$ac_objext
22480 if { (ac_try="$ac_compile"
22481 case "(($ac_try" in
22482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483   *) ac_try_echo=$ac_try;;
22484 esac
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486   (eval "$ac_compile") 2>conftest.er1
22487   ac_status=$?
22488   grep -v '^ *+' conftest.er1 >conftest.err
22489   rm -f conftest.er1
22490   cat conftest.err >&5
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); } && {
22493          test -z "$ac_c_werror_flag" ||
22494          test ! -s conftest.err
22495        } && test -s conftest.$ac_objext; then
22496   ac_cv_sizeof_unsigned_char=$ac_size
22497 else
22498   echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22500
22501
22502 fi
22503
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22506   done
22507
22508 fi
22509
22510
22511 unsigned=$ac_cv_sizeof_unsigned_char
22512 if test x$unsigned = x ; then
22513   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22514 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22515    { (exit 1); exit 1; }; }
22516 fi
22517 if test x$unsigned != x$signed ; then
22518   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22519 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22520    { (exit 1); exit 1; }; }
22521 fi
22522
22523 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22524 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22525                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22526 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22527
22528  if test "${ac_cv_struct_boundary_char+set}" = set; then
22529   echo $ECHO_N "(cached) $ECHO_C" >&6
22530 else
22531   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22532    cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538 #include "confdefs.h"
22539      #include <sys/types.h>
22540      struct s { char c; char i; };
22541
22542 int
22543 main ()
22544 {
22545 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (ac_try="$ac_compile"
22552 case "(($ac_try" in
22553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554   *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557   (eval "$ac_compile") 2>conftest.er1
22558   ac_status=$?
22559   grep -v '^ *+' conftest.er1 >conftest.err
22560   rm -f conftest.er1
22561   cat conftest.err >&5
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } && {
22564          test -z "$ac_c_werror_flag" ||
22565          test ! -s conftest.err
22566        } && test -s conftest.$ac_objext; then
22567   ac_cv_struct_boundary_char=$ac_size
22568 else
22569   echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22577   done
22578
22579 fi
22580
22581  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22582 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22583  if test x$ac_cv_struct_boundary_char = x ; then
22584    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22585 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22586    { (exit 1); exit 1; }; }
22587  fi
22588
22589 { echo "$as_me:$LINENO: checking size of short int" >&5
22590 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22591     if test "${ac_cv_sizeof_short_int+set}" = set; then
22592   echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22595    cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 #include "confdefs.h"
22602    #include <sys/types.h>
22603
22604
22605 int
22606 main ()
22607 {
22608 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617   *) ac_try_echo=$ac_try;;
22618 esac
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620   (eval "$ac_compile") 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } && {
22627          test -z "$ac_c_werror_flag" ||
22628          test ! -s conftest.err
22629        } && test -s conftest.$ac_objext; then
22630   ac_cv_sizeof_short_int=$ac_size
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22640   done
22641
22642 fi
22643
22644
22645 unspecif=$ac_cv_sizeof_short_int
22646 if test x$unspecif = x ; then
22647   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22648 echo "$as_me: error: cannot determine a size for short int" >&2;}
22649    { (exit 1); exit 1; }; }
22650 fi
22651
22652     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22656    cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 #include "confdefs.h"
22663    #include <sys/types.h>
22664
22665
22666 int
22667 main ()
22668 {
22669 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678   *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681   (eval "$ac_compile") 2>conftest.er1
22682   ac_status=$?
22683   grep -v '^ *+' conftest.er1 >conftest.err
22684   rm -f conftest.er1
22685   cat conftest.err >&5
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); } && {
22688          test -z "$ac_c_werror_flag" ||
22689          test ! -s conftest.err
22690        } && test -s conftest.$ac_objext; then
22691   ac_cv_sizeof_signed_short_int=$ac_size
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22701   done
22702
22703 fi
22704
22705
22706 signed=$ac_cv_sizeof_signed_short_int
22707 if test x$signed = x ; then
22708   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22709 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22710    { (exit 1); exit 1; }; }
22711 fi
22712 if test x$unspecif != x$signed ; then
22713   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22714 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22715    { (exit 1); exit 1; }; }
22716 fi
22717
22718     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22719   echo $ECHO_N "(cached) $ECHO_C" >&6
22720 else
22721   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22722    cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 #include "confdefs.h"
22729    #include <sys/types.h>
22730
22731
22732 int
22733 main ()
22734 {
22735 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_compile") 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } && {
22754          test -z "$ac_c_werror_flag" ||
22755          test ! -s conftest.err
22756        } && test -s conftest.$ac_objext; then
22757   ac_cv_sizeof_unsigned_short_int=$ac_size
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22767   done
22768
22769 fi
22770
22771
22772 unsigned=$ac_cv_sizeof_unsigned_short_int
22773 if test x$unsigned = x ; then
22774   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22775 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22776    { (exit 1); exit 1; }; }
22777 fi
22778 if test x$unsigned != x$signed ; then
22779   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22780 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22781    { (exit 1); exit 1; }; }
22782 fi
22783
22784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22785 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22786              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22787 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22788
22789  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22793    cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h.  */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h.  */
22799 #include "confdefs.h"
22800      #include <sys/types.h>
22801      struct s { char c; short int i; };
22802
22803 int
22804 main ()
22805 {
22806 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815   *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818   (eval "$ac_compile") 2>conftest.er1
22819   ac_status=$?
22820   grep -v '^ *+' conftest.er1 >conftest.err
22821   rm -f conftest.er1
22822   cat conftest.err >&5
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); } && {
22825          test -z "$ac_c_werror_flag" ||
22826          test ! -s conftest.err
22827        } && test -s conftest.$ac_objext; then
22828   ac_cv_struct_boundary_short_int=$ac_size
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833
22834 fi
22835
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22838   done
22839
22840 fi
22841
22842  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22843 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22844  if test x$ac_cv_struct_boundary_short_int = x ; then
22845    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22846 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22847    { (exit 1); exit 1; }; }
22848  fi
22849
22850 { echo "$as_me:$LINENO: checking size of int" >&5
22851 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22852     if test "${ac_cv_sizeof_int+set}" = set; then
22853   echo $ECHO_N "(cached) $ECHO_C" >&6
22854 else
22855   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22856    cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 #include "confdefs.h"
22863    #include <sys/types.h>
22864
22865
22866 int
22867 main ()
22868 {
22869 switch (0) case 0: case (sizeof (int) == $ac_size):;
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881   (eval "$ac_compile") 2>conftest.er1
22882   ac_status=$?
22883   grep -v '^ *+' conftest.er1 >conftest.err
22884   rm -f conftest.er1
22885   cat conftest.err >&5
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); } && {
22888          test -z "$ac_c_werror_flag" ||
22889          test ! -s conftest.err
22890        } && test -s conftest.$ac_objext; then
22891   ac_cv_sizeof_int=$ac_size
22892 else
22893   echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22895
22896
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900    if test x$ac_cv_sizeof_int != x ; then break; fi
22901   done
22902
22903 fi
22904
22905
22906 unspecif=$ac_cv_sizeof_int
22907 if test x$unspecif = x ; then
22908   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22909 echo "$as_me: error: cannot determine a size for int" >&2;}
22910    { (exit 1); exit 1; }; }
22911 fi
22912
22913     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22917    cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923 #include "confdefs.h"
22924    #include <sys/types.h>
22925
22926
22927 int
22928 main ()
22929 {
22930 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22931   ;
22932   return 0;
22933 }
22934 _ACEOF
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939   *) ac_try_echo=$ac_try;;
22940 esac
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942   (eval "$ac_compile") 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } && {
22949          test -z "$ac_c_werror_flag" ||
22950          test ! -s conftest.err
22951        } && test -s conftest.$ac_objext; then
22952   ac_cv_sizeof_signed_int=$ac_size
22953 else
22954   echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22956
22957
22958 fi
22959
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22962   done
22963
22964 fi
22965
22966
22967 signed=$ac_cv_sizeof_signed_int
22968 if test x$signed = x ; then
22969   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22970 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22971    { (exit 1); exit 1; }; }
22972 fi
22973 if test x$unspecif != x$signed ; then
22974   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22975 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22976    { (exit 1); exit 1; }; }
22977 fi
22978
22979     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22980   echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22983    cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989 #include "confdefs.h"
22990    #include <sys/types.h>
22991
22992
22993 int
22994 main ()
22995 {
22996 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22997   ;
22998   return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005   *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008   (eval "$ac_compile") 2>conftest.er1
23009   ac_status=$?
23010   grep -v '^ *+' conftest.er1 >conftest.err
23011   rm -f conftest.er1
23012   cat conftest.err >&5
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); } && {
23015          test -z "$ac_c_werror_flag" ||
23016          test ! -s conftest.err
23017        } && test -s conftest.$ac_objext; then
23018   ac_cv_sizeof_unsigned_int=$ac_size
23019 else
23020   echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023
23024 fi
23025
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23028   done
23029
23030 fi
23031
23032
23033 unsigned=$ac_cv_sizeof_unsigned_int
23034 if test x$unsigned = x ; then
23035   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23036 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23037    { (exit 1); exit 1; }; }
23038 fi
23039 if test x$unsigned != x$signed ; then
23040   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23041 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23042    { (exit 1); exit 1; }; }
23043 fi
23044
23045 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23046 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23047                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23048 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23049
23050  if test "${ac_cv_struct_boundary_int+set}" = set; then
23051   echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23054    cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h.  */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h.  */
23060 #include "confdefs.h"
23061      #include <sys/types.h>
23062      struct s { char c; int i; };
23063
23064 int
23065 main ()
23066 {
23067 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23068   ;
23069   return 0;
23070 }
23071 _ACEOF
23072 rm -f conftest.$ac_objext
23073 if { (ac_try="$ac_compile"
23074 case "(($ac_try" in
23075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076   *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079   (eval "$ac_compile") 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } && {
23086          test -z "$ac_c_werror_flag" ||
23087          test ! -s conftest.err
23088        } && test -s conftest.$ac_objext; then
23089   ac_cv_struct_boundary_int=$ac_size
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094
23095 fi
23096
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23099   done
23100
23101 fi
23102
23103  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23104 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23105  if test x$ac_cv_struct_boundary_int = x ; then
23106    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23107 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23108    { (exit 1); exit 1; }; }
23109  fi
23110
23111 { echo "$as_me:$LINENO: checking size of long int" >&5
23112 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23113     if test "${ac_cv_sizeof_long_int+set}" = set; then
23114   echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23117    cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h.  */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h.  */
23123 #include "confdefs.h"
23124    #include <sys/types.h>
23125
23126
23127 int
23128 main ()
23129 {
23130 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_compile") 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } && {
23149          test -z "$ac_c_werror_flag" ||
23150          test ! -s conftest.err
23151        } && test -s conftest.$ac_objext; then
23152   ac_cv_sizeof_long_int=$ac_size
23153 else
23154   echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157
23158 fi
23159
23160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23162   done
23163
23164 fi
23165
23166
23167 unspecif=$ac_cv_sizeof_long_int
23168 if test x$unspecif = x ; then
23169   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23170 echo "$as_me: error: cannot determine a size for long int" >&2;}
23171    { (exit 1); exit 1; }; }
23172 fi
23173
23174     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23175   echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23178    cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h.  */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h.  */
23184 #include "confdefs.h"
23185    #include <sys/types.h>
23186
23187
23188 int
23189 main ()
23190 {
23191 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (ac_try="$ac_compile"
23198 case "(($ac_try" in
23199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200   *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203   (eval "$ac_compile") 2>conftest.er1
23204   ac_status=$?
23205   grep -v '^ *+' conftest.er1 >conftest.err
23206   rm -f conftest.er1
23207   cat conftest.err >&5
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); } && {
23210          test -z "$ac_c_werror_flag" ||
23211          test ! -s conftest.err
23212        } && test -s conftest.$ac_objext; then
23213   ac_cv_sizeof_signed_long_int=$ac_size
23214 else
23215   echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23217
23218
23219 fi
23220
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23223   done
23224
23225 fi
23226
23227
23228 signed=$ac_cv_sizeof_signed_long_int
23229 if test x$signed = x ; then
23230   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23231 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23232    { (exit 1); exit 1; }; }
23233 fi
23234 if test x$unspecif != x$signed ; then
23235   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23236 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23237    { (exit 1); exit 1; }; }
23238 fi
23239
23240     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23241   echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23244    cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h.  */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h.  */
23250 #include "confdefs.h"
23251    #include <sys/types.h>
23252
23253
23254 int
23255 main ()
23256 {
23257 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_compile") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } && {
23276          test -z "$ac_c_werror_flag" ||
23277          test ! -s conftest.err
23278        } && test -s conftest.$ac_objext; then
23279   ac_cv_sizeof_unsigned_long_int=$ac_size
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23283
23284
23285 fi
23286
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23289   done
23290
23291 fi
23292
23293
23294 unsigned=$ac_cv_sizeof_unsigned_long_int
23295 if test x$unsigned = x ; then
23296   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23297 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23298    { (exit 1); exit 1; }; }
23299 fi
23300 if test x$unsigned != x$signed ; then
23301   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23302 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23303    { (exit 1); exit 1; }; }
23304 fi
23305
23306 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23307 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23308               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23309 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23310
23311  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23312   echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23315    cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h.  */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h.  */
23321 #include "confdefs.h"
23322      #include <sys/types.h>
23323      struct s { char c; long int i; };
23324
23325 int
23326 main ()
23327 {
23328 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23329   ;
23330   return 0;
23331 }
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337   *) ac_try_echo=$ac_try;;
23338 esac
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340   (eval "$ac_compile") 2>conftest.er1
23341   ac_status=$?
23342   grep -v '^ *+' conftest.er1 >conftest.err
23343   rm -f conftest.er1
23344   cat conftest.err >&5
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && {
23347          test -z "$ac_c_werror_flag" ||
23348          test ! -s conftest.err
23349        } && test -s conftest.$ac_objext; then
23350   ac_cv_struct_boundary_long_int=$ac_size
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355
23356 fi
23357
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23360   done
23361
23362 fi
23363
23364  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23365 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23366  if test x$ac_cv_struct_boundary_long_int = x ; then
23367    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23368 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23369    { (exit 1); exit 1; }; }
23370  fi
23371
23372 { echo "$as_me:$LINENO: checking size of long long int" >&5
23373 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23374     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23375   echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23378    cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384 #include "confdefs.h"
23385    #include <sys/types.h>
23386
23387
23388 int
23389 main ()
23390 {
23391 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23392   ;
23393   return 0;
23394 }
23395 _ACEOF
23396 rm -f conftest.$ac_objext
23397 if { (ac_try="$ac_compile"
23398 case "(($ac_try" in
23399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400   *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403   (eval "$ac_compile") 2>conftest.er1
23404   ac_status=$?
23405   grep -v '^ *+' conftest.er1 >conftest.err
23406   rm -f conftest.er1
23407   cat conftest.err >&5
23408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409   (exit $ac_status); } && {
23410          test -z "$ac_c_werror_flag" ||
23411          test ! -s conftest.err
23412        } && test -s conftest.$ac_objext; then
23413   ac_cv_sizeof_long_long_int=$ac_size
23414 else
23415   echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23417
23418
23419 fi
23420
23421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23422    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23423   done
23424
23425 fi
23426
23427
23428 unspecif=$ac_cv_sizeof_long_long_int
23429 if test x$unspecif = x ; then
23430   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23431 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23432    { (exit 1); exit 1; }; }
23433 fi
23434
23435     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23439    cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h.  */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h.  */
23445 #include "confdefs.h"
23446    #include <sys/types.h>
23447
23448
23449 int
23450 main ()
23451 {
23452 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23453   ;
23454   return 0;
23455 }
23456 _ACEOF
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461   *) ac_try_echo=$ac_try;;
23462 esac
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464   (eval "$ac_compile") 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } && {
23471          test -z "$ac_c_werror_flag" ||
23472          test ! -s conftest.err
23473        } && test -s conftest.$ac_objext; then
23474   ac_cv_sizeof_signed_long_long_int=$ac_size
23475 else
23476   echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479
23480 fi
23481
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23484   done
23485
23486 fi
23487
23488
23489 signed=$ac_cv_sizeof_signed_long_long_int
23490 if test x$signed = x ; then
23491   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23492 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23493    { (exit 1); exit 1; }; }
23494 fi
23495 if test x$unspecif != x$signed ; then
23496   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23497 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23498    { (exit 1); exit 1; }; }
23499 fi
23500
23501     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23505    cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h.  */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h.  */
23511 #include "confdefs.h"
23512    #include <sys/types.h>
23513
23514
23515 int
23516 main ()
23517 {
23518 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23519   ;
23520   return 0;
23521 }
23522 _ACEOF
23523 rm -f conftest.$ac_objext
23524 if { (ac_try="$ac_compile"
23525 case "(($ac_try" in
23526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527   *) ac_try_echo=$ac_try;;
23528 esac
23529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530   (eval "$ac_compile") 2>conftest.er1
23531   ac_status=$?
23532   grep -v '^ *+' conftest.er1 >conftest.err
23533   rm -f conftest.er1
23534   cat conftest.err >&5
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } && {
23537          test -z "$ac_c_werror_flag" ||
23538          test ! -s conftest.err
23539        } && test -s conftest.$ac_objext; then
23540   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23541 else
23542   echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545
23546 fi
23547
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23550   done
23551
23552 fi
23553
23554
23555 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23556 if test x$unsigned = x ; then
23557   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23558 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23559    { (exit 1); exit 1; }; }
23560 fi
23561 if test x$unsigned != x$signed ; then
23562   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23563 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23564    { (exit 1); exit 1; }; }
23565 fi
23566
23567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23568 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23569          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23570 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23571
23572  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23573   echo $ECHO_N "(cached) $ECHO_C" >&6
23574 else
23575   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23576    cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h.  */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h.  */
23582 #include "confdefs.h"
23583      #include <sys/types.h>
23584      struct s { char c; long long int i; };
23585
23586 int
23587 main ()
23588 {
23589 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23590   ;
23591   return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest.$ac_objext
23595 if { (ac_try="$ac_compile"
23596 case "(($ac_try" in
23597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598   *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601   (eval "$ac_compile") 2>conftest.er1
23602   ac_status=$?
23603   grep -v '^ *+' conftest.er1 >conftest.err
23604   rm -f conftest.er1
23605   cat conftest.err >&5
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } && {
23608          test -z "$ac_c_werror_flag" ||
23609          test ! -s conftest.err
23610        } && test -s conftest.$ac_objext; then
23611   ac_cv_struct_boundary_long_long_int=$ac_size
23612 else
23613   echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23615
23616
23617 fi
23618
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23621   done
23622
23623 fi
23624
23625  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23626 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23627  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23628    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23629 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23630    { (exit 1); exit 1; }; }
23631  fi
23632
23633
23634     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23635 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23636
23637  if test "${ac_cv_struct_boundary_float+set}" = set; then
23638   echo $ECHO_N "(cached) $ECHO_C" >&6
23639 else
23640   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23641    cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647 #include "confdefs.h"
23648      #include <sys/types.h>
23649      struct s { char c; float i; };
23650
23651 int
23652 main ()
23653 {
23654 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666   (eval "$ac_compile") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest.$ac_objext; then
23676   ac_cv_struct_boundary_float=$ac_size
23677 else
23678   echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23680
23681
23682 fi
23683
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23686   done
23687
23688 fi
23689
23690  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23691 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23692  if test x$ac_cv_struct_boundary_float = x ; then
23693    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23694 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23695    { (exit 1); exit 1; }; }
23696  fi
23697                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23698 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23699
23700  if test "${ac_cv_struct_boundary_double+set}" = set; then
23701   echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23704    cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 #include "confdefs.h"
23711      #include <sys/types.h>
23712      struct s { char c; double i; };
23713
23714 int
23715 main ()
23716 {
23717 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726   *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_cv_struct_boundary_double=$ac_size
23740 else
23741   echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744
23745 fi
23746
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23749   done
23750
23751 fi
23752
23753  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23754 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23755  if test x$ac_cv_struct_boundary_double = x ; then
23756    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23757 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23758    { (exit 1); exit 1; }; }
23759  fi
23760
23761
23762 { echo "$as_me:$LINENO: checking size of void *" >&5
23763 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23764     if test "${ac_cv_sizeof_void_p+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23768    cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774 #include "confdefs.h"
23775    #include <sys/types.h>
23776
23777
23778 int
23779 main ()
23780 {
23781 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790   *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793   (eval "$ac_compile") 2>conftest.er1
23794   ac_status=$?
23795   grep -v '^ *+' conftest.er1 >conftest.err
23796   rm -f conftest.er1
23797   cat conftest.err >&5
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } && {
23800          test -z "$ac_c_werror_flag" ||
23801          test ! -s conftest.err
23802        } && test -s conftest.$ac_objext; then
23803   ac_cv_sizeof_void_p=$ac_size
23804 else
23805   echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23807
23808
23809 fi
23810
23811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23813   done
23814
23815 fi
23816
23817
23818 if test x$ac_cv_sizeof_void_p = x ; then
23819   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23820 echo "$as_me: error: cannot determine a size for void *" >&2;}
23821    { (exit 1); exit 1; }; }
23822 fi
23823 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23824 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23825                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23826 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23827
23828  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23829   echo $ECHO_N "(cached) $ECHO_C" >&6
23830 else
23831   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23832    cat >conftest.$ac_ext <<_ACEOF
23833 /* confdefs.h.  */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h.  */
23838 #include "confdefs.h"
23839      #include <sys/types.h>
23840      struct s { char c; void * i; };
23841
23842 int
23843 main ()
23844 {
23845 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854   *) ac_try_echo=$ac_try;;
23855 esac
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857   (eval "$ac_compile") 2>conftest.er1
23858   ac_status=$?
23859   grep -v '^ *+' conftest.er1 >conftest.err
23860   rm -f conftest.er1
23861   cat conftest.err >&5
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); } && {
23864          test -z "$ac_c_werror_flag" ||
23865          test ! -s conftest.err
23866        } && test -s conftest.$ac_objext; then
23867   ac_cv_struct_boundary_void_p=$ac_size
23868 else
23869   echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872
23873 fi
23874
23875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23877   done
23878
23879 fi
23880
23881  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23882 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23883  if test x$ac_cv_struct_boundary_void_p = x ; then
23884    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23885 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23886    { (exit 1); exit 1; }; }
23887  fi
23888
23889 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23890 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23891     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23892   echo $ECHO_N "(cached) $ECHO_C" >&6
23893 else
23894   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23895    cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 #include "confdefs.h"
23902    #include <sys/types.h>
23903
23904
23905 int
23906 main ()
23907 {
23908 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (ac_try="$ac_compile"
23915 case "(($ac_try" in
23916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917   *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920   (eval "$ac_compile") 2>conftest.er1
23921   ac_status=$?
23922   grep -v '^ *+' conftest.er1 >conftest.err
23923   rm -f conftest.er1
23924   cat conftest.err >&5
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); } && {
23927          test -z "$ac_c_werror_flag" ||
23928          test ! -s conftest.err
23929        } && test -s conftest.$ac_objext; then
23930   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23931 else
23932   echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935
23936 fi
23937
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23940   done
23941
23942 fi
23943
23944
23945 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23946   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23947 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23948    { (exit 1); exit 1; }; }
23949 fi
23950 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23951 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23952
23953
23954
23955 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23956 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23957 if test x$endian = x1 ; then
23958   trace_endian=B
23959 else
23960   trace_endian=l
23961 fi
23962 gras_arch=unknown
23963 trace="$trace_endian"
23964
23965 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23966
23967 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23968 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23969 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23970 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23971
23972 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23973 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23974
23975 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23976
23977 # sizeof float/double are not tested since IEEE 754 is assumed.
23978 # Check README.IEEE for rational.
23979
23980 # The numbers after the _ in the arch name are the maximal packing boundary.
23981 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23982 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23983 case $trace in
23984   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;;
23985   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;;
23986   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;;
23987   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;;
23988
23989   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;;
23990
23991   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;;
23992   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;;
23993   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;;
23994   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;;
23995
23996   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;;
23997   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;;
23998 esac
23999 if test x$gras_arch = xunknown ; then
24000   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24001 echo "${ECHO_T}damnit ($trace)" >&6; }
24002   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24003 Please report this architecture trace ($trace) and what it corresponds to." >&5
24004 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24005 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24006    { (exit 1); exit 1; }; }
24007 fi
24008 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24009
24010 cat >>confdefs.h <<_ACEOF
24011 #define GRAS_THISARCH $gras_arch
24012 _ACEOF
24013
24014 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24015 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24016
24017 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24018 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24019 ac_cv_sizeof_max=0
24020 for s in $ac_cv_sizeof_char \
24021          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24022          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24023          4 8; do
24024
24025   if test $ac_cv_sizeof_max -lt $s ; then
24026     ac_cv_sizeof_max=$s
24027   fi
24028 done
24029 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24030 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24031
24032 cat >>confdefs.h <<_ACEOF
24033 #define SIZEOF_MAX $ac_cv_sizeof_max
24034 _ACEOF
24035
24036
24037
24038 # Check architecture signature end
24039   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24040 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24041    cat >conftest.$ac_ext <<_ACEOF
24042 /* confdefs.h.  */
24043 _ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h.  */
24047 #include "confdefs.h"
24048         #include <sys/types.h>
24049         #include <stddef.h> /* offsetof() */
24050         struct s {char c; double d;};
24051
24052 int
24053 main ()
24054 {
24055 switch (0)
24056         case 0:
24057         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24058
24059   ;
24060   return 0;
24061 }
24062 _ACEOF
24063 rm -f conftest.$ac_objext
24064 if { (ac_try="$ac_compile"
24065 case "(($ac_try" in
24066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067   *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070   (eval "$ac_compile") 2>conftest.er1
24071   ac_status=$?
24072   grep -v '^ *+' conftest.er1 >conftest.err
24073   rm -f conftest.er1
24074   cat conftest.err >&5
24075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076   (exit $ac_status); } && {
24077          test -z "$ac_c_werror_flag" ||
24078          test ! -s conftest.err
24079        } && test -s conftest.$ac_objext; then
24080   gras_struct_packed=yes
24081 else
24082   echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085         gras_struct_packed=no
24086 fi
24087
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089
24090    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24091 echo "${ECHO_T}$gras_struct_packed" >&6; }
24092    if test x$gras_struct_packed = "xyes" ; then
24093      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24094 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24095    { (exit 1); exit 1; }; }
24096    fi
24097
24098    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24099 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24100    cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h.  */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h.  */
24106 #include "confdefs.h"
24107         #include <sys/types.h>
24108         #include <stddef.h> /* offsetof() */
24109         struct s {double d; int i; char c;};
24110
24111 int
24112 main ()
24113 {
24114 switch (0)
24115         case 0:
24116         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24117
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126   *) ac_try_echo=$ac_try;;
24127 esac
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129   (eval "$ac_compile") 2>conftest.er1
24130   ac_status=$?
24131   grep -v '^ *+' conftest.er1 >conftest.err
24132   rm -f conftest.er1
24133   cat conftest.err >&5
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); } && {
24136          test -z "$ac_c_werror_flag" ||
24137          test ! -s conftest.err
24138        } && test -s conftest.$ac_objext; then
24139   gras_struct_compact=yes
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144         gras_struct_compact=no
24145 fi
24146
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24148
24149    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24150 echo "${ECHO_T}$gras_struct_compact" >&6; }
24151
24152    if test x$gras_struct_compact != xyes ; then
24153      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24154 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24155    { (exit 1); exit 1; }; }
24156    fi
24157
24158 cat >>confdefs.h <<_ACEOF
24159 #define GRAS_STRUCT_COMPACT 1
24160 _ACEOF
24161
24162    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24163 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24164
24165    cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h.  */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h.  */
24171 #include "confdefs.h"
24172       #include <sys/types.h>
24173         #include <stddef.h> /* offsetof() */
24174         struct s { double d; int i; char c[6]; };
24175
24176 int
24177 main ()
24178 {
24179 switch (0)
24180       case 0:
24181       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24182
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191   *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194   (eval "$ac_compile") 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } && {
24201          test -z "$ac_c_werror_flag" ||
24202          test ! -s conftest.err
24203        } && test -s conftest.$ac_objext; then
24204   gras_array_straddle_struct=yes
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209         gras_array_straddle_struct=no
24210 fi
24211
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213
24214    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24215 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24216
24217    if test x$gras_array_straddle_struct = xyes ; then
24218
24219 cat >>confdefs.h <<_ACEOF
24220 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24221 _ACEOF
24222
24223    else
24224      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24225 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24226    { (exit 1); exit 1; }; }
24227    fi
24228
24229
24230
24231
24232
24233   { echo "$as_me:$LINENO: result: " >&5
24234 echo "${ECHO_T}" >&6; }
24235   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24236 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24237
24238
24239
24240
24241 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24242 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24243 if test "${ac_cv_check_mcsc+set}" = set; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246
24247 if test "$cross_compiling" = yes; then
24248   ac_cv_check_mcsc=no
24249
24250 else
24251   cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24257
24258
24259 #include <stdio.h>
24260 #include <stdlib.h>
24261 #include <ucontext.h>
24262
24263 ucontext_t uc_child;
24264 ucontext_t uc_main;
24265
24266 void child(void *arg)
24267 {
24268     if (arg != (void *)2147483648)
24269         exit(1);
24270     if (swapcontext(&uc_child, &uc_main) != 0)
24271         exit(2);
24272 }
24273
24274 int main(int argc, char *argv[])
24275 {
24276     FILE *fp;
24277     void *stack;
24278
24279     /* the default is that it fails */
24280     if ((fp = fopen("conftestval", "w")) == NULL)
24281         exit(3);
24282     fprintf(fp, "no\n");
24283     fclose(fp);
24284
24285     /* configure a child user-space context */
24286     if ((stack = malloc(64*1024)) == NULL)
24287         exit(4);
24288     if (getcontext(&uc_child) != 0)
24289         exit(5);
24290     uc_child.uc_link = NULL;
24291     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24292     uc_child.uc_stack.ss_size = 32*1024;
24293     uc_child.uc_stack.ss_flags = 0;
24294     makecontext(&uc_child, child, 2, (void *)2147483648);
24295
24296     /* switch into the user context */
24297     if (swapcontext(&uc_main, &uc_child) != 0)
24298         exit(6);
24299
24300     /* Fine, child came home */
24301     if ((fp = fopen("conftestval", "w")) == NULL)
24302         exit(7);
24303     fprintf(fp, "yes\n");
24304     fclose(fp);
24305
24306     /* die successfully */
24307     exit(0);
24308 }
24309
24310 _ACEOF
24311 rm -f conftest$ac_exeext
24312 if { (ac_try="$ac_link"
24313 case "(($ac_try" in
24314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315   *) ac_try_echo=$ac_try;;
24316 esac
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318   (eval "$ac_link") 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24322   { (case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_try") 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; }; then
24331   ac_cv_check_mcsc=`cat conftestval`
24332 else
24333   echo "$as_me: program exited with status $ac_status" >&5
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337 ( exit $ac_status )
24338 ac_cv_check_mcsc=no
24339 fi
24340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24341 fi
24342
24343
24344 fi
24345 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24346 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24347 if test ".$ac_cv_check_mcsc" = .yes; then
24348     mcsc=yes
24349 else
24350     mcsc=no
24351 fi
24352
24353
24354
24355 for ac_header in pthread.h
24356 do
24357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362   echo $ECHO_N "(cached) $ECHO_C" >&6
24363 fi
24364 ac_res=`eval echo '${'$as_ac_Header'}'`
24365                { echo "$as_me:$LINENO: result: $ac_res" >&5
24366 echo "${ECHO_T}$ac_res" >&6; }
24367 else
24368   # Is the header compilable?
24369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24371 cat >conftest.$ac_ext <<_ACEOF
24372 /* confdefs.h.  */
24373 _ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h.  */
24377 $ac_includes_default
24378 #include <$ac_header>
24379 _ACEOF
24380 rm -f conftest.$ac_objext
24381 if { (ac_try="$ac_compile"
24382 case "(($ac_try" in
24383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384   *) ac_try_echo=$ac_try;;
24385 esac
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387   (eval "$ac_compile") 2>conftest.er1
24388   ac_status=$?
24389   grep -v '^ *+' conftest.er1 >conftest.err
24390   rm -f conftest.er1
24391   cat conftest.err >&5
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); } && {
24394          test -z "$ac_c_werror_flag" ||
24395          test ! -s conftest.err
24396        } && test -s conftest.$ac_objext; then
24397   ac_header_compiler=yes
24398 else
24399   echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24401
24402         ac_header_compiler=no
24403 fi
24404
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24407 echo "${ECHO_T}$ac_header_compiler" >&6; }
24408
24409 # Is the header present?
24410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24412 cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h.  */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h.  */
24418 #include <$ac_header>
24419 _ACEOF
24420 if { (ac_try="$ac_cpp conftest.$ac_ext"
24421 case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24427   ac_status=$?
24428   grep -v '^ *+' conftest.er1 >conftest.err
24429   rm -f conftest.er1
24430   cat conftest.err >&5
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); } >/dev/null && {
24433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24434          test ! -s conftest.err
24435        }; then
24436   ac_header_preproc=yes
24437 else
24438   echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24440
24441   ac_header_preproc=no
24442 fi
24443
24444 rm -f conftest.err conftest.$ac_ext
24445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24446 echo "${ECHO_T}$ac_header_preproc" >&6; }
24447
24448 # So?  What about this header?
24449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24450   yes:no: )
24451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24455     ac_header_preproc=yes
24456     ;;
24457   no:yes:* )
24458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24470     ( cat <<\_ASBOX
24471 ## -------------------------------------------------- ##
24472 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24473 ## -------------------------------------------------- ##
24474 _ASBOX
24475      ) | sed "s/^/$as_me: WARNING:     /" >&2
24476     ;;
24477 esac
24478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24481   echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483   eval "$as_ac_Header=\$ac_header_preproc"
24484 fi
24485 ac_res=`eval echo '${'$as_ac_Header'}'`
24486                { echo "$as_me:$LINENO: result: $ac_res" >&5
24487 echo "${ECHO_T}$ac_res" >&6; }
24488
24489 fi
24490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24491   cat >>confdefs.h <<_ACEOF
24492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24493 _ACEOF
24494
24495 fi
24496
24497 done
24498
24499 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24500 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24501 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24502   echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504   ac_check_lib_save_LIBS=$LIBS
24505 LIBS="-lpthread  $LIBS"
24506 cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512
24513 /* Override any GCC internal prototype to avoid an error.
24514    Use char because int might match the return type of a GCC
24515    builtin and then its argument prototype would still apply.  */
24516 #ifdef __cplusplus
24517 extern "C"
24518 #endif
24519 char pthread_create ();
24520 int
24521 main ()
24522 {
24523 return pthread_create ();
24524   ;
24525   return 0;
24526 }
24527 _ACEOF
24528 rm -f conftest.$ac_objext conftest$ac_exeext
24529 if { (ac_try="$ac_link"
24530 case "(($ac_try" in
24531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532   *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535   (eval "$ac_link") 2>conftest.er1
24536   ac_status=$?
24537   grep -v '^ *+' conftest.er1 >conftest.err
24538   rm -f conftest.er1
24539   cat conftest.err >&5
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); } && {
24542          test -z "$ac_c_werror_flag" ||
24543          test ! -s conftest.err
24544        } && test -s conftest$ac_exeext &&
24545        $as_test_x conftest$ac_exeext; then
24546   ac_cv_lib_pthread_pthread_create=yes
24547 else
24548   echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551         ac_cv_lib_pthread_pthread_create=no
24552 fi
24553
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555       conftest$ac_exeext conftest.$ac_ext
24556 LIBS=$ac_check_lib_save_LIBS
24557 fi
24558 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24559 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24560 if test $ac_cv_lib_pthread_pthread_create = yes; then
24561   pthread=yes
24562 else
24563   pthread=no
24564 fi
24565
24566
24567
24568 if test ".$mcsc" = .yes; then
24569    mcsc=yes
24570 elif test ".$pthread" = .yes; then
24571    pthread=yes
24572 else
24573     ac_header=windows.h
24574     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24575     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24576       windows_context=yes
24577     else
24578       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24579 echo "$as_me: error: no appropriate backend found" >&2;}
24580    { (exit 1); exit 1; }; }
24581     fi
24582 fi
24583
24584
24585 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24586 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24587
24588
24589 # Check whether --with-pthread was given.
24590 if test "${with_pthread+set}" = set; then
24591   withval=$with_pthread; with_context=pthread
24592 fi
24593
24594
24595
24596 # Check whether --with-context was given.
24597 if test "${with_context+set}" = set; then
24598   withval=$with_context;
24599 else
24600   with_context=auto
24601 fi
24602
24603
24604 if test "x$with_context$mcsc" = "xucontextno" ; then
24605   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24606 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24607    { (exit 77); exit 77; }; }
24608 fi
24609
24610 case $with_context in
24611  ucontext) ;;
24612  pthread) ;;
24613  windows) ;;
24614  auto) with_context=ucontext;;
24615  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24616 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24617    { (exit 1); exit 1; }; } ;;
24618 esac
24619
24620 if test "x$with_context" = "xucontext" ; then
24621   if test ".$mcsc" = .yes; then
24622     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24623 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24624
24625 cat >>confdefs.h <<\_ACEOF
24626 #define USE_UCONTEXT 1
24627 _ACEOF
24628
24629   else
24630     if test ".$windows_context" = .yes ; then
24631       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24632 echo "${ECHO_T}use windows context portability layer." >&6; }
24633       with_context=windows
24634     else
24635       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24636 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24637       with_context=pthread
24638     fi
24639   fi
24640 fi
24641
24642 if test "x$with_context" = "xpthread"; then
24643
24644 for ac_header in pthread.h
24645 do
24646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24651   echo $ECHO_N "(cached) $ECHO_C" >&6
24652 fi
24653 ac_res=`eval echo '${'$as_ac_Header'}'`
24654                { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24656 else
24657   # Is the header compilable?
24658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24660 cat >conftest.$ac_ext <<_ACEOF
24661 /* confdefs.h.  */
24662 _ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h.  */
24666 $ac_includes_default
24667 #include <$ac_header>
24668 _ACEOF
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673   *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676   (eval "$ac_compile") 2>conftest.er1
24677   ac_status=$?
24678   grep -v '^ *+' conftest.er1 >conftest.err
24679   rm -f conftest.er1
24680   cat conftest.err >&5
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } && {
24683          test -z "$ac_c_werror_flag" ||
24684          test ! -s conftest.err
24685        } && test -s conftest.$ac_objext; then
24686   ac_header_compiler=yes
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691         ac_header_compiler=no
24692 fi
24693
24694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24696 echo "${ECHO_T}$ac_header_compiler" >&6; }
24697
24698 # Is the header present?
24699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24701 cat >conftest.$ac_ext <<_ACEOF
24702 /* confdefs.h.  */
24703 _ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h.  */
24707 #include <$ac_header>
24708 _ACEOF
24709 if { (ac_try="$ac_cpp conftest.$ac_ext"
24710 case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } >/dev/null && {
24722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24723          test ! -s conftest.err
24724        }; then
24725   ac_header_preproc=yes
24726 else
24727   echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730   ac_header_preproc=no
24731 fi
24732
24733 rm -f conftest.err conftest.$ac_ext
24734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24735 echo "${ECHO_T}$ac_header_preproc" >&6; }
24736
24737 # So?  What about this header?
24738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24739   yes:no: )
24740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24744     ac_header_preproc=yes
24745     ;;
24746   no:yes:* )
24747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24759     ( cat <<\_ASBOX
24760 ## -------------------------------------------------- ##
24761 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24762 ## -------------------------------------------------- ##
24763 _ASBOX
24764      ) | sed "s/^/$as_me: WARNING:     /" >&2
24765     ;;
24766 esac
24767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   eval "$as_ac_Header=\$ac_header_preproc"
24773 fi
24774 ac_res=`eval echo '${'$as_ac_Header'}'`
24775                { echo "$as_me:$LINENO: result: $ac_res" >&5
24776 echo "${ECHO_T}$ac_res" >&6; }
24777
24778 fi
24779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24780   cat >>confdefs.h <<_ACEOF
24781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24782 _ACEOF
24783
24784 fi
24785
24786 done
24787
24788
24789 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24790 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24791 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24792   echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794   ac_check_lib_save_LIBS=$LIBS
24795 LIBS="-lpthread  $LIBS"
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802
24803 /* Override any GCC internal prototype to avoid an error.
24804    Use char because int might match the return type of a GCC
24805    builtin and then its argument prototype would still apply.  */
24806 #ifdef __cplusplus
24807 extern "C"
24808 #endif
24809 char pthread_create ();
24810 int
24811 main ()
24812 {
24813 return pthread_create ();
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest.$ac_objext conftest$ac_exeext
24819 if { (ac_try="$ac_link"
24820 case "(($ac_try" in
24821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822   *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825   (eval "$ac_link") 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } && {
24832          test -z "$ac_c_werror_flag" ||
24833          test ! -s conftest.err
24834        } && test -s conftest$ac_exeext &&
24835        $as_test_x conftest$ac_exeext; then
24836   ac_cv_lib_pthread_pthread_create=yes
24837 else
24838   echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24840
24841         ac_cv_lib_pthread_pthread_create=no
24842 fi
24843
24844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24845       conftest$ac_exeext conftest.$ac_ext
24846 LIBS=$ac_check_lib_save_LIBS
24847 fi
24848 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24849 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24850 if test $ac_cv_lib_pthread_pthread_create = yes; then
24851   cat >>confdefs.h <<_ACEOF
24852 #define HAVE_LIBPTHREAD 1
24853 _ACEOF
24854
24855   LIBS="-lpthread $LIBS"
24856
24857 else
24858   { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24859 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24860    { (exit 1); exit 1; }; }
24861 fi
24862
24863
24864 cat >>confdefs.h <<\_ACEOF
24865 #define USE_PTHREADS 1
24866 _ACEOF
24867
24868   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24869 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24870 fi
24871
24872
24873 if test "x$with_context" = "xucontext" ; then
24874   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24875 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24876 if test "${ac_cv_check_stackgrowth+set}" = set; then
24877   echo $ECHO_N "(cached) $ECHO_C" >&6
24878 else
24879
24880 cross_compiling=no
24881 if test "$cross_compiling" = yes; then
24882   ac_cv_check_stackgrowth=down
24883
24884 else
24885   cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891
24892 #include <stdio.h>
24893 #include <stdlib.h>
24894 static int iterate = 10;
24895 static int growsdown(int *x)
24896 {
24897     auto int y;
24898     y = (x > &y);
24899     if (--iterate > 0)
24900         y = growsdown(&y);
24901     if (y != (x > &y))
24902         exit(1);
24903     return y;
24904 }
24905 int main(int argc, char *argv[])
24906 {
24907     FILE *f;
24908     auto int x;
24909     if ((f = fopen("conftestval", "w")) == NULL)
24910         exit(1);
24911     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24912     fclose(f);
24913     exit(0);
24914 }
24915
24916
24917 _ACEOF
24918 rm -f conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_link") 2>&5
24926   ac_status=$?
24927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24929   { (case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934   (eval "$ac_try") 2>&5
24935   ac_status=$?
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); }; }; then
24938   ac_cv_check_stackgrowth=`cat conftestval`
24939 else
24940   echo "$as_me: program exited with status $ac_status" >&5
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 ( exit $ac_status )
24945 ac_cv_check_stackgrowth=down
24946 fi
24947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24948 fi
24949
24950
24951 fi
24952 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24953 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24954 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24955     val="-1"
24956 else
24957     val="+1"
24958 fi
24959
24960 cat >>confdefs.h <<_ACEOF
24961 #define PTH_STACKGROWTH $val
24962 _ACEOF
24963
24964
24965   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24966       PTH_STACK_GROWTH="down"
24967   else
24968       PTH_STACK_GROWTH="up"
24969   fi
24970
24971
24972
24973
24974
24975
24976 for ac_func in makecontext
24977 do
24978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24982   echo $ECHO_N "(cached) $ECHO_C" >&6
24983 else
24984   cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h.  */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h.  */
24990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24992 #define $ac_func innocuous_$ac_func
24993
24994 /* System header to define __stub macros and hopefully few prototypes,
24995     which can conflict with char $ac_func (); below.
24996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24997     <limits.h> exists even on freestanding compilers.  */
24998
24999 #ifdef __STDC__
25000 # include <limits.h>
25001 #else
25002 # include <assert.h>
25003 #endif
25004
25005 #undef $ac_func
25006
25007 /* Override any GCC internal prototype to avoid an error.
25008    Use char because int might match the return type of a GCC
25009    builtin and then its argument prototype would still apply.  */
25010 #ifdef __cplusplus
25011 extern "C"
25012 #endif
25013 char $ac_func ();
25014 /* The GNU C library defines this for functions which it implements
25015     to always fail with ENOSYS.  Some functions are actually named
25016     something starting with __ and the normal name is an alias.  */
25017 #if defined __stub_$ac_func || defined __stub___$ac_func
25018 choke me
25019 #endif
25020
25021 int
25022 main ()
25023 {
25024 return $ac_func ();
25025   ;
25026   return 0;
25027 }
25028 _ACEOF
25029 rm -f conftest.$ac_objext conftest$ac_exeext
25030 if { (ac_try="$ac_link"
25031 case "(($ac_try" in
25032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033   *) ac_try_echo=$ac_try;;
25034 esac
25035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25036   (eval "$ac_link") 2>conftest.er1
25037   ac_status=$?
25038   grep -v '^ *+' conftest.er1 >conftest.err
25039   rm -f conftest.er1
25040   cat conftest.err >&5
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); } && {
25043          test -z "$ac_c_werror_flag" ||
25044          test ! -s conftest.err
25045        } && test -s conftest$ac_exeext &&
25046        $as_test_x conftest$ac_exeext; then
25047   eval "$as_ac_var=yes"
25048 else
25049   echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25051
25052         eval "$as_ac_var=no"
25053 fi
25054
25055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25056       conftest$ac_exeext conftest.$ac_ext
25057 fi
25058 ac_res=`eval echo '${'$as_ac_var'}'`
25059                { echo "$as_me:$LINENO: result: $ac_res" >&5
25060 echo "${ECHO_T}$ac_res" >&6; }
25061 if test `eval echo '${'$as_ac_var'}'` = yes; then
25062   cat >>confdefs.h <<_ACEOF
25063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25064 _ACEOF
25065
25066 fi
25067 done
25068
25069
25070 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25071 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25072 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25073   echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25075
25076 if test ".$ac_cv_func_makecontext" = .no; then
25077         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25078 else
25079         OCFLAGS="$CFLAGS"
25080     CFLAGS="$CFLAGS -DTEST_makecontext"
25081     cross_compiling=no
25082         if test "$cross_compiling" = yes; then
25083
25084 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25085
25086 else
25087   cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h.  */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h.  */
25093
25094 #include <stdio.h>
25095 #include <stdlib.h>
25096 #include <string.h>
25097 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25098 #include <sys/types.h>
25099 #include <signal.h>
25100 #include <unistd.h>
25101 #endif
25102 #if defined(TEST_makecontext)
25103 #include <ucontext.h>
25104 #endif
25105 union alltypes {
25106     long   l;
25107     double d;
25108     void  *vp;
25109     void (*fp)(void);
25110     char  *cp;
25111 };
25112 static volatile char *handler_addr = (char *)0xDEAD;
25113 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25114 static volatile int handler_done = 0;
25115 void handler(int sig)
25116 {
25117     char garbage[1024];
25118     int i;
25119     auto int dummy;
25120     for (i = 0; i < 1024; i++)
25121         garbage[i] = 'X';
25122     handler_addr = (char *)&dummy;
25123     handler_done = 1;
25124     return;
25125 }
25126 #endif
25127 #if defined(TEST_makecontext)
25128 static ucontext_t uc_handler;
25129 static ucontext_t uc_main;
25130 void handler(void)
25131 {
25132     char garbage[1024];
25133     int i;
25134     auto int dummy;
25135     for (i = 0; i < 1024; i++)
25136         garbage[i] = 'X';
25137     handler_addr = (char *)&dummy;
25138     swapcontext(&uc_handler, &uc_main);
25139     return;
25140 }
25141 #endif
25142 int main(int argc, char *argv[])
25143 {
25144     FILE *f;
25145     char *skaddr;
25146     char *skbuf;
25147     int sksize;
25148     char result[1024];
25149     int i;
25150     sksize = 32768;
25151     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25152     if (skbuf == NULL)
25153         exit(1);
25154     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25155         skbuf[i] = 'A';
25156     skaddr = skbuf+sizeof(union alltypes);
25157 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25158     {
25159         struct sigaction sa;
25160 #if defined(TEST_sigstack)
25161         struct sigstack ss;
25162 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25163         stack_t ss;
25164 #else
25165         struct sigaltstack ss;
25166 #endif
25167 #if defined(TEST_sigstack)
25168         ss.ss_sp      = (void *)(skaddr + sksize);
25169         ss.ss_onstack = 0;
25170         if (sigstack(&ss, NULL) < 0)
25171             exit(1);
25172 #elif defined(TEST_sigaltstack)
25173         ss.ss_sp    = (void *)(skaddr + sksize);
25174         ss.ss_size  = sksize;
25175         ss.ss_flags = 0;
25176         if (sigaltstack(&ss, NULL) < 0)
25177             exit(1);
25178 #endif
25179         memset((void *)&sa, 0, sizeof(struct sigaction));
25180         sa.sa_handler = handler;
25181         sa.sa_flags = SA_ONSTACK;
25182         sigemptyset(&sa.sa_mask);
25183         sigaction(SIGUSR1, &sa, NULL);
25184         kill(getpid(), SIGUSR1);
25185         while (!handler_done)
25186             /*nop*/;
25187     }
25188 #endif
25189 #if defined(TEST_makecontext)
25190     {
25191         if (getcontext(&uc_handler) != 0)
25192             exit(1);
25193         uc_handler.uc_link = NULL;
25194         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25195         uc_handler.uc_stack.ss_size  = sksize;
25196         uc_handler.uc_stack.ss_flags = 0;
25197         makecontext(&uc_handler, handler, 1);
25198         swapcontext(&uc_main, &uc_handler);
25199     }
25200 #endif
25201     if (handler_addr == (char *)0xDEAD)
25202         exit(1);
25203     if (handler_addr < skaddr+sksize) {
25204         /* stack was placed into lower area */
25205         if (*(skaddr+sksize) != 'A')
25206              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25207                      sizeof(union alltypes), sizeof(union alltypes));
25208         else
25209              strcpy(result, "(skaddr)+(sksize),(sksize)");
25210     }
25211     else {
25212         /* stack was placed into higher area */
25213         if (*(skaddr+sksize*2) != 'A')
25214             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25215         else
25216             strcpy(result, "(skaddr),(sksize)");
25217     }
25218     if ((f = fopen("conftestval", "w")) == NULL)
25219         exit(1);
25220     fprintf(f, "%s\n", result);
25221     fclose(f);
25222     exit(0);
25223 }
25224
25225 _ACEOF
25226 rm -f conftest$ac_exeext
25227 if { (ac_try="$ac_link"
25228 case "(($ac_try" in
25229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230   *) ac_try_echo=$ac_try;;
25231 esac
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233   (eval "$ac_link") 2>&5
25234   ac_status=$?
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25237   { (case "(($ac_try" in
25238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25239   *) ac_try_echo=$ac_try;;
25240 esac
25241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25242   (eval "$ac_try") 2>&5
25243   ac_status=$?
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); }; }; then
25246
25247 ac_cv_stacksetup_makecontext=`cat conftestval`
25248 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25249
25250 else
25251   echo "$as_me: program exited with status $ac_status" >&5
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255 ( exit $ac_status )
25256
25257 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25258
25259 fi
25260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25261 fi
25262
25263
25264 CFLAGS="$OCFLAGS"
25265
25266 fi
25267 fi
25268 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25269 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25270 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25271 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25272 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25273 { echo "$as_me:$LINENO: result: $type" >&5
25274 echo "${ECHO_T}$type" >&6; }
25275 if test ".$verbose" = .yes; then
25276     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25277 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25278 fi
25279
25280 if test ".$verbose" = .yes; then
25281     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25282 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25283 fi
25284
25285
25286 fi
25287
25288
25289 #########################################
25290 ## Build optional modules (simix)
25291 ##
25292
25293   { echo "$as_me:$LINENO: result: " >&5
25294 echo "${ECHO_T}" >&6; }
25295   { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25296 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25297
25298 # Check whether --enable-simix was given.
25299 if test "${enable_simix+set}" = set; then
25300   enableval=$enable_simix; enable_simix=$enableval
25301 else
25302   enable_simix=no
25303 fi
25304
25305 if test "x$enable_simix" = "xyes" ; then
25306   { echo "$as_me:$LINENO: result: \"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&5
25307 echo "${ECHO_T}\"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&6; }
25308
25309 cat >>confdefs.h <<\_ACEOF
25310 #define USE_SIMIX 1
25311 _ACEOF
25312
25313 else
25314   { echo "$as_me:$LINENO: result: Eventually you will come to SimIX: x$enable_simix" >&5
25315 echo "${ECHO_T}Eventually you will come to SimIX: x$enable_simix" >&6; }
25316 fi
25317
25318
25319 if test x$enable_simix != xno; then
25320   USE_SIMIX_TRUE=
25321   USE_SIMIX_FALSE='#'
25322 else
25323   USE_SIMIX_TRUE='#'
25324   USE_SIMIX_FALSE=
25325 fi
25326
25327
25328 #########################################
25329 ## Check for libraries extra-dependencies
25330 ##
25331
25332
25333   { echo "$as_me:$LINENO: result: " >&5
25334 echo "${ECHO_T}" >&6; }
25335   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25336 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25337
25338
25339 { echo "$as_me:$LINENO: checking for csdp" >&5
25340 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25341 SIMGRID_DEP=""
25342 sdp=no
25343 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25344 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25345 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25346   echo $ECHO_N "(cached) $ECHO_C" >&6
25347 else
25348   ac_check_lib_save_LIBS=$LIBS
25349 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356
25357 /* Override any GCC internal prototype to avoid an error.
25358    Use char because int might match the return type of a GCC
25359    builtin and then its argument prototype would still apply.  */
25360 #ifdef __cplusplus
25361 extern "C"
25362 #endif
25363 char sdp ();
25364 int
25365 main ()
25366 {
25367 return sdp ();
25368   ;
25369   return 0;
25370 }
25371 _ACEOF
25372 rm -f conftest.$ac_objext conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376   *) ac_try_echo=$ac_try;;
25377 esac
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379   (eval "$ac_link") 2>conftest.er1
25380   ac_status=$?
25381   grep -v '^ *+' conftest.er1 >conftest.err
25382   rm -f conftest.er1
25383   cat conftest.err >&5
25384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); } && {
25386          test -z "$ac_c_werror_flag" ||
25387          test ! -s conftest.err
25388        } && test -s conftest$ac_exeext &&
25389        $as_test_x conftest$ac_exeext; then
25390   ac_cv_lib_sdp_sdp=yes
25391 else
25392   echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25394
25395         ac_cv_lib_sdp_sdp=no
25396 fi
25397
25398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25399       conftest$ac_exeext conftest.$ac_ext
25400 LIBS=$ac_check_lib_save_LIBS
25401 fi
25402 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25403 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25404 if test $ac_cv_lib_sdp_sdp = yes; then
25405   csdp=yes
25406 else
25407   csdp=no
25408 fi
25409
25410 if test "x$csdp" = xyes; then
25411   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25412   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25413 echo "${ECHO_T}Found working sdp library." >&6; }
25414
25415 cat >>confdefs.h <<\_ACEOF
25416 #define HAVE_SDP 1
25417 _ACEOF
25418
25419 else
25420   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25421 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25422 fi;
25423
25424
25425 if test x$csdp != xno; then
25426   HAVE_SDP_TRUE=
25427   HAVE_SDP_FALSE='#'
25428 else
25429   HAVE_SDP_TRUE='#'
25430   HAVE_SDP_FALSE=
25431 fi
25432
25433
25434
25435
25436 GRAS_DEP=""
25437 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25438 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25439 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25440   echo $ECHO_N "(cached) $ECHO_C" >&6
25441 else
25442   ac_check_lib_save_LIBS=$LIBS
25443 LIBS="-lnsl  $LIBS"
25444 cat >conftest.$ac_ext <<_ACEOF
25445 /* confdefs.h.  */
25446 _ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h.  */
25450
25451 /* Override any GCC internal prototype to avoid an error.
25452    Use char because int might match the return type of a GCC
25453    builtin and then its argument prototype would still apply.  */
25454 #ifdef __cplusplus
25455 extern "C"
25456 #endif
25457 char gethostbyname ();
25458 int
25459 main ()
25460 {
25461 return gethostbyname ();
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 rm -f conftest.$ac_objext conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470   *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473   (eval "$ac_link") 2>conftest.er1
25474   ac_status=$?
25475   grep -v '^ *+' conftest.er1 >conftest.err
25476   rm -f conftest.er1
25477   cat conftest.err >&5
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); } && {
25480          test -z "$ac_c_werror_flag" ||
25481          test ! -s conftest.err
25482        } && test -s conftest$ac_exeext &&
25483        $as_test_x conftest$ac_exeext; then
25484   ac_cv_lib_nsl_gethostbyname=yes
25485 else
25486   echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25488
25489         ac_cv_lib_nsl_gethostbyname=no
25490 fi
25491
25492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25493       conftest$ac_exeext conftest.$ac_ext
25494 LIBS=$ac_check_lib_save_LIBS
25495 fi
25496 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25497 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25498 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25499   GRAS_DEP="$GRAS_DEP -lnsl"
25500 fi
25501
25502 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25503 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25504 if test "${ac_cv_lib_socket_connect+set}" = set; then
25505   echo $ECHO_N "(cached) $ECHO_C" >&6
25506 else
25507   ac_check_lib_save_LIBS=$LIBS
25508 LIBS="-lsocket  $LIBS"
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515
25516 /* Override any GCC internal prototype to avoid an error.
25517    Use char because int might match the return type of a GCC
25518    builtin and then its argument prototype would still apply.  */
25519 #ifdef __cplusplus
25520 extern "C"
25521 #endif
25522 char connect ();
25523 int
25524 main ()
25525 {
25526 return connect ();
25527   ;
25528   return 0;
25529 }
25530 _ACEOF
25531 rm -f conftest.$ac_objext conftest$ac_exeext
25532 if { (ac_try="$ac_link"
25533 case "(($ac_try" in
25534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535   *) ac_try_echo=$ac_try;;
25536 esac
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538   (eval "$ac_link") 2>conftest.er1
25539   ac_status=$?
25540   grep -v '^ *+' conftest.er1 >conftest.err
25541   rm -f conftest.er1
25542   cat conftest.err >&5
25543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544   (exit $ac_status); } && {
25545          test -z "$ac_c_werror_flag" ||
25546          test ! -s conftest.err
25547        } && test -s conftest$ac_exeext &&
25548        $as_test_x conftest$ac_exeext; then
25549   ac_cv_lib_socket_connect=yes
25550 else
25551   echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554         ac_cv_lib_socket_connect=no
25555 fi
25556
25557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25558       conftest$ac_exeext conftest.$ac_ext
25559 LIBS=$ac_check_lib_save_LIBS
25560 fi
25561 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25562 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25563 if test $ac_cv_lib_socket_connect = yes; then
25564   GRAS_DEP="$GRAS_DEP -lsocket"
25565 fi
25566
25567
25568 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25569 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25570 case $host_os in
25571   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
25572 esac
25573
25574 if test "x$GRAS_DEP" = x; then
25575    { echo "$as_me:$LINENO: result: none" >&5
25576 echo "${ECHO_T}none" >&6; }
25577 else
25578    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25579 echo "${ECHO_T}$GRAS_DEP" >&6; }
25580 fi
25581
25582
25583
25584 ##############################################
25585 ## Enhance maintainer mode and SUBST variables
25586 ## (must be placed after any compilation tests since our overprotective flags
25587 ##  let some tests fail)
25588
25589 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25590 # Next line is modified by sed when building gramine source tree
25591 gramine_mode=no
25592 if test x$gramine_mode = xyes
25593 then
25594   USE_MAINTAINER_MODE=no
25595 fi
25596
25597
25598 if test x$gramine_mode != xno; then
25599   GRAMINE_MODE_TRUE=
25600   GRAMINE_MODE_FALSE='#'
25601 else
25602   GRAMINE_MODE_TRUE='#'
25603   GRAMINE_MODE_FALSE=
25604 fi
25605
25606
25607
25608 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25609 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25610     # Check whether --enable-maintainer-mode was given.
25611 if test "${enable_maintainer_mode+set}" = set; then
25612   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25613 else
25614   USE_MAINTAINER_MODE=no
25615 fi
25616
25617   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25618 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25619
25620
25621 if test $USE_MAINTAINER_MODE = yes; then
25622   MAINTAINER_MODE_TRUE=
25623   MAINTAINER_MODE_FALSE='#'
25624 else
25625   MAINTAINER_MODE_TRUE='#'
25626   MAINTAINER_MODE_FALSE=
25627 fi
25628
25629   MAINT=$MAINTAINER_MODE_TRUE
25630
25631
25632 if test x$USE_MAINTAINER_MODE = xyes
25633 then
25634    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25635    enable_compile_warnings=yes
25636 fi
25637
25638   # Check whether --enable-compile-warnings was given.
25639 if test "${enable_compile_warnings+set}" = set; then
25640   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25641 else
25642   enable_compile_warnings=no
25643 fi
25644
25645
25646   # Check whether --enable-compile-optimizations was given.
25647 if test "${enable_compile_optimizations+set}" = set; then
25648   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25649 else
25650   enable_compile_optimizations=auto
25651 fi
25652
25653
25654   if test "x$cflags_set" != "xyes" ; then
25655     # if user didn't specify CFLAGS explicitely
25656
25657     # AC PROG CC tests whether -g is accepted.
25658     # Cool, but it also tries to set -O2. I don't want it with gcc
25659     saveCFLAGS="$CFLAGS"
25660     CFLAGS=
25661     case " $saveCFLAGS " in
25662     *-g*) CFLAGS="-g" ;;
25663     esac
25664     case " $saveCFLAGS " in
25665     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25666     esac
25667
25668     # damn AC PROG CC, why did you set -O??
25669     CFLAGS="-g"
25670   fi
25671
25672   if test "x$enable_compile_warnings" = "xyes" ; then
25673     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25674 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25675     warnCFLAGS=
25676     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25677       case " $CFLAGS " in
25678       *-Wall*) ;;
25679       *) warnCFLAGS="-Wall -Wunused" ;;
25680       esac
25681
25682       ## -W is not all that useful.  And it cannot be controlled
25683       ## with individual -Wno-xxx flags, unlike -Wall
25684
25685       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25686       ## -Wshadow chokes on try{ try{} } constructs
25687       if test "x$enable_compile_warnings" = "xyes"; then
25688         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25689         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25690         -Wno-unused-function  \
25691         -Werror \
25692         | sed 's/ +/ /g'`
25693         # -Wno-unused-variable  -Wno-unused-label
25694       fi
25695     fi
25696     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25697 echo "${ECHO_T}$warnCFLAGS" >&6; }
25698     # placed before since gcc remembers the last one on conflict
25699     CFLAGS="$warnCFLAGS $CFLAGS"
25700   fi
25701
25702   if test "x$enable_compile_optimizations" = "xyes" ||
25703      test "x$enable_compile_optimizations" = "xauto" ; then
25704     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25705 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25706     optCFLAGS=
25707     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25708         case " $CFLAGS " in
25709         *-O*) ;;
25710         *) optCFLAGS="$optCFLAGS -O3" ;;
25711         esac
25712         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25713
25714         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25715         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25716         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25717           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25718           # isn't propagated enough to desserve an extra check
25719
25720           # Note that the flag didn't exist before gcc 3.0
25721           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25722         fi
25723             fi
25724     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25725 echo "${ECHO_T}$optCFLAGS" >&6; }
25726     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25727     if test "x$cflags_set" != "xyes" ; then
25728       CFLAGS="$optCFLAGS $CFLAGS"
25729     fi
25730   fi
25731
25732   if test x$lt_cv_prog_gnu_ld = xyes ; then
25733     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25734   else
25735     LD_DYNAMIC_FLAGS=
25736   fi
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749 #####################
25750 ## Check for programs
25751 ##
25752
25753
25754   { echo "$as_me:$LINENO: result: " >&5
25755 echo "${ECHO_T}" >&6; }
25756   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25757 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25758
25759 # Extract the first word of "bash", so it can be a program name with args.
25760 set dummy bash; ac_word=$2
25761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25763 if test "${ac_cv_prog_BASH+set}" = set; then
25764   echo $ECHO_N "(cached) $ECHO_C" >&6
25765 else
25766   if test -n "$BASH"; then
25767   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25768 else
25769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25770 for as_dir in $PATH
25771 do
25772   IFS=$as_save_IFS
25773   test -z "$as_dir" && as_dir=.
25774   for ac_exec_ext in '' $ac_executable_extensions; do
25775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25776     ac_cv_prog_BASH="`which bash`"
25777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25778     break 2
25779   fi
25780 done
25781 done
25782 IFS=$as_save_IFS
25783
25784   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25785 fi
25786 fi
25787 BASH=$ac_cv_prog_BASH
25788 if test -n "$BASH"; then
25789   { echo "$as_me:$LINENO: result: $BASH" >&5
25790 echo "${ECHO_T}$BASH" >&6; }
25791 else
25792   { echo "$as_me:$LINENO: result: no" >&5
25793 echo "${ECHO_T}no" >&6; }
25794 fi
25795
25796
25797 WARNING="This file is generated, do not edit"
25798
25799
25800
25801 # Can we rebuild the parsers?
25802 # We really want flex and refuse other lex. So, the parser is portable and
25803 # does not induce extra lib dependency
25804 for ac_prog in flex lex
25805 do
25806   # Extract the first word of "$ac_prog", so it can be a program name with args.
25807 set dummy $ac_prog; ac_word=$2
25808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25810 if test "${ac_cv_prog_LEX+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813   if test -n "$LEX"; then
25814   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25815 else
25816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817 for as_dir in $PATH
25818 do
25819   IFS=$as_save_IFS
25820   test -z "$as_dir" && as_dir=.
25821   for ac_exec_ext in '' $ac_executable_extensions; do
25822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25823     ac_cv_prog_LEX="$ac_prog"
25824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25825     break 2
25826   fi
25827 done
25828 done
25829 IFS=$as_save_IFS
25830
25831 fi
25832 fi
25833 LEX=$ac_cv_prog_LEX
25834 if test -n "$LEX"; then
25835   { echo "$as_me:$LINENO: result: $LEX" >&5
25836 echo "${ECHO_T}$LEX" >&6; }
25837 else
25838   { echo "$as_me:$LINENO: result: no" >&5
25839 echo "${ECHO_T}no" >&6; }
25840 fi
25841
25842
25843   test -n "$LEX" && break
25844 done
25845 test -n "$LEX" || LEX=":"
25846
25847 if test "x$LEX" != "x:"; then
25848   cat >conftest.l <<_ACEOF
25849 %%
25850 a { ECHO; }
25851 b { REJECT; }
25852 c { yymore (); }
25853 d { yyless (1); }
25854 e { yyless (input () != 0); }
25855 f { unput (yytext[0]); }
25856 . { BEGIN INITIAL; }
25857 %%
25858 #ifdef YYTEXT_POINTER
25859 extern char *yytext;
25860 #endif
25861 int
25862 main (void)
25863 {
25864   return ! yylex () + ! yywrap ();
25865 }
25866 _ACEOF
25867 { (ac_try="$LEX conftest.l"
25868 case "(($ac_try" in
25869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870   *) ac_try_echo=$ac_try;;
25871 esac
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873   (eval "$LEX conftest.l") 2>&5
25874   ac_status=$?
25875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876   (exit $ac_status); }
25877 { echo "$as_me:$LINENO: checking lex output file root" >&5
25878 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25879 if test "${ac_cv_prog_lex_root+set}" = set; then
25880   echo $ECHO_N "(cached) $ECHO_C" >&6
25881 else
25882
25883 if test -f lex.yy.c; then
25884   ac_cv_prog_lex_root=lex.yy
25885 elif test -f lexyy.c; then
25886   ac_cv_prog_lex_root=lexyy
25887 else
25888   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25889 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25890    { (exit 1); exit 1; }; }
25891 fi
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25894 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25895 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25896
25897 if test -z "${LEXLIB+set}"; then
25898   { echo "$as_me:$LINENO: checking lex library" >&5
25899 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25900 if test "${ac_cv_lib_lex+set}" = set; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903
25904     ac_save_LIBS=$LIBS
25905     ac_cv_lib_lex='none needed'
25906     for ac_lib in '' -lfl -ll; do
25907       LIBS="$ac_lib $ac_save_LIBS"
25908       cat >conftest.$ac_ext <<_ACEOF
25909 `cat $LEX_OUTPUT_ROOT.c`
25910 _ACEOF
25911 rm -f conftest.$ac_objext conftest$ac_exeext
25912 if { (ac_try="$ac_link"
25913 case "(($ac_try" in
25914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915   *) ac_try_echo=$ac_try;;
25916 esac
25917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25918   (eval "$ac_link") 2>conftest.er1
25919   ac_status=$?
25920   grep -v '^ *+' conftest.er1 >conftest.err
25921   rm -f conftest.er1
25922   cat conftest.err >&5
25923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924   (exit $ac_status); } && {
25925          test -z "$ac_c_werror_flag" ||
25926          test ! -s conftest.err
25927        } && test -s conftest$ac_exeext &&
25928        $as_test_x conftest$ac_exeext; then
25929   ac_cv_lib_lex=$ac_lib
25930 else
25931   echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934
25935 fi
25936
25937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25938       conftest$ac_exeext conftest.$ac_ext
25939       test "$ac_cv_lib_lex" != 'none needed' && break
25940     done
25941     LIBS=$ac_save_LIBS
25942
25943 fi
25944 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25945 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25946   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25947 fi
25948
25949
25950 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25951 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25952 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25953   echo $ECHO_N "(cached) $ECHO_C" >&6
25954 else
25955   # POSIX says lex can declare yytext either as a pointer or an array; the
25956 # default is implementation-dependent.  Figure out which it is, since
25957 # not all implementations provide the %pointer and %array declarations.
25958 ac_cv_prog_lex_yytext_pointer=no
25959 ac_save_LIBS=$LIBS
25960 LIBS="$LEXLIB $ac_save_LIBS"
25961 cat >conftest.$ac_ext <<_ACEOF
25962 #define YYTEXT_POINTER 1
25963 `cat $LEX_OUTPUT_ROOT.c`
25964 _ACEOF
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (ac_try="$ac_link"
25967 case "(($ac_try" in
25968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969   *) ac_try_echo=$ac_try;;
25970 esac
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972   (eval "$ac_link") 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } && {
25979          test -z "$ac_c_werror_flag" ||
25980          test ! -s conftest.err
25981        } && test -s conftest$ac_exeext &&
25982        $as_test_x conftest$ac_exeext; then
25983   ac_cv_prog_lex_yytext_pointer=yes
25984 else
25985   echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25992       conftest$ac_exeext conftest.$ac_ext
25993 LIBS=$ac_save_LIBS
25994
25995 fi
25996 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25997 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25998 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25999
26000 cat >>confdefs.h <<\_ACEOF
26001 #define YYTEXT_POINTER 1
26002 _ACEOF
26003
26004 fi
26005 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26006
26007 fi
26008
26009   if test "$LEX" != flex; then
26010     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26011 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26012     LEX=${am_missing_run}flex
26013     LEXLIB=''
26014
26015   else
26016     if test "x2.5.30" != "x" ; then
26017                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26018
26019       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26020       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26021       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26022
26023       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26024       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26025       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26026
26027       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26028          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26029          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26030       then
26031         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26032 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26033         LEX=${am_missing_run}flex
26034         LEXLIB=''
26035
26036       else
26037         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26038 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26039       fi
26040     fi
26041   fi
26042
26043
26044 # Can we rebuild the xml-lexers from the XML specification?
26045 # if not, simply touch the flex source files (which are distributed in
26046 #  tarballs even if generated by flexml) and hope for the best.
26047 # Extract the first word of "flexml", so it can be a program name with args.
26048 set dummy flexml; ac_word=$2
26049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26051 if test "${ac_cv_prog_FLEXML+set}" = set; then
26052   echo $ECHO_N "(cached) $ECHO_C" >&6
26053 else
26054   if test -n "$FLEXML"; then
26055   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26056 else
26057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26058 for as_dir in $PATH
26059 do
26060   IFS=$as_save_IFS
26061   test -z "$as_dir" && as_dir=.
26062   for ac_exec_ext in '' $ac_executable_extensions; do
26063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26064     ac_cv_prog_FLEXML="`which flexml`"
26065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26066     break 2
26067   fi
26068 done
26069 done
26070 IFS=$as_save_IFS
26071
26072   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26073 fi
26074 fi
26075 FLEXML=$ac_cv_prog_FLEXML
26076 if test -n "$FLEXML"; then
26077   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26078 echo "${ECHO_T}$FLEXML" >&6; }
26079 else
26080   { echo "$as_me:$LINENO: result: no" >&5
26081 echo "${ECHO_T}no" >&6; }
26082 fi
26083
26084
26085
26086
26087 if test x$FLEXML != xNOTFOUND; then
26088   HAVE_FLEXML_TRUE=
26089   HAVE_FLEXML_FALSE='#'
26090 else
26091   HAVE_FLEXML_TRUE='#'
26092   HAVE_FLEXML_FALSE=
26093 fi
26094
26095
26096 if test x$USE_MAINTAINER_MODE = xyes
26097 then
26098    # Check for doxygen when in maintainer mode since dist* targets fail
26099    # without it
26100    # Extract the first word of "doxygen", so it can be a program name with args.
26101 set dummy doxygen; ac_word=$2
26102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26104 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26105   echo $ECHO_N "(cached) $ECHO_C" >&6
26106 else
26107   case $DOXYGEN in
26108   [\\/]* | ?:[\\/]*)
26109   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26110   ;;
26111   *)
26112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113 for as_dir in $PATH
26114 do
26115   IFS=$as_save_IFS
26116   test -z "$as_dir" && as_dir=.
26117   for ac_exec_ext in '' $ac_executable_extensions; do
26118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26119     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26121     break 2
26122   fi
26123 done
26124 done
26125 IFS=$as_save_IFS
26126
26127   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26128   ;;
26129 esac
26130 fi
26131 DOXYGEN=$ac_cv_path_DOXYGEN
26132 if test -n "$DOXYGEN"; then
26133   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26134 echo "${ECHO_T}$DOXYGEN" >&6; }
26135 else
26136   { echo "$as_me:$LINENO: result: no" >&5
26137 echo "${ECHO_T}no" >&6; }
26138 fi
26139
26140
26141    if test x$DOXYGEN = x ; then
26142      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26143 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26144    { (exit 1); exit 1; }; }
26145    fi
26146 fi
26147
26148 # Can we extract really usable backtraces? (also need the popen function)
26149 # Extract the first word of "addr2line", so it can be a program name with args.
26150 set dummy addr2line; ac_word=$2
26151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26153 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26154   echo $ECHO_N "(cached) $ECHO_C" >&6
26155 else
26156   case $ADDR2LINE in
26157   [\\/]* | ?:[\\/]*)
26158   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26159   ;;
26160   *)
26161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26162 for as_dir in $PATH
26163 do
26164   IFS=$as_save_IFS
26165   test -z "$as_dir" && as_dir=.
26166   for ac_exec_ext in '' $ac_executable_extensions; do
26167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26168     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26170     break 2
26171   fi
26172 done
26173 done
26174 IFS=$as_save_IFS
26175
26176   ;;
26177 esac
26178 fi
26179 ADDR2LINE=$ac_cv_path_ADDR2LINE
26180 if test -n "$ADDR2LINE"; then
26181   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26182 echo "${ECHO_T}$ADDR2LINE" >&6; }
26183 else
26184   { echo "$as_me:$LINENO: result: no" >&5
26185 echo "${ECHO_T}no" >&6; }
26186 fi
26187
26188
26189 if test x$ADDR2LINE != x ; then
26190
26191 cat >>confdefs.h <<_ACEOF
26192 #define ADDR2LINE "$ADDR2LINE"
26193 _ACEOF
26194
26195 fi
26196
26197
26198 # Can we make status line about the compilation result?
26199 # Extract the first word of "md5sum", so it can be a program name with args.
26200 set dummy md5sum; ac_word=$2
26201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26203 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26204   echo $ECHO_N "(cached) $ECHO_C" >&6
26205 else
26206   if test -n "$MD5SUM"; then
26207   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26208 else
26209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26210 for as_dir in $PATH
26211 do
26212   IFS=$as_save_IFS
26213   test -z "$as_dir" && as_dir=.
26214   for ac_exec_ext in '' $ac_executable_extensions; do
26215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26216     ac_cv_prog_MD5SUM="`which md5sum`"
26217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26218     break 2
26219   fi
26220 done
26221 done
26222 IFS=$as_save_IFS
26223
26224 fi
26225 fi
26226 MD5SUM=$ac_cv_prog_MD5SUM
26227 if test -n "$MD5SUM"; then
26228   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26229 echo "${ECHO_T}$MD5SUM" >&6; }
26230 else
26231   { echo "$as_me:$LINENO: result: no" >&5
26232 echo "${ECHO_T}no" >&6; }
26233 fi
26234
26235
26236 if test x$MD5SUM != xno ; then
26237   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26238                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26239 else
26240   build_version="no_md5sum_binary"
26241 fi
26242 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26243
26244
26245 ###################
26246 ## Makes the output
26247 ##
26248
26249
26250 #
26251 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26252 #  src/amok/Makefile
26253
26254
26255   { echo "$as_me:$LINENO: result: " >&5
26256 echo "${ECHO_T}" >&6; }
26257   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26258 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26259
26260
26261 # Core of the libraries
26262
26263 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26264
26265
26266 # Tools being embeeded in gramine (stub generator)
26267 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
26268
26269
26270 # GRAMINE_CUT_BEGIN
26271
26272 # Tools NOT being embeeded in gramine
26273 ac_config_files="$ac_config_files tools/graspe-slave"
26274
26275
26276 # Testsuite
26277
26278 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26279
26280
26281 # Documentation
26282 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26283
26284
26285 # Examples
26286
26287 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test 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"
26288
26289
26290 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
26291 #    examples/gras/pastry/test_sg
26292
26293
26294
26295 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
26296 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
26297
26298
26299 # GRAMINE_CUT_END
26300
26301 cat >confcache <<\_ACEOF
26302 # This file is a shell script that caches the results of configure
26303 # tests run on this system so they can be shared between configure
26304 # scripts and configure runs, see configure's option --config-cache.
26305 # It is not useful on other systems.  If it contains results you don't
26306 # want to keep, you may remove or edit it.
26307 #
26308 # config.status only pays attention to the cache file if you give it
26309 # the --recheck option to rerun configure.
26310 #
26311 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26312 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26313 # following values.
26314
26315 _ACEOF
26316
26317 # The following way of writing the cache mishandles newlines in values,
26318 # but we know of no workaround that is simple, portable, and efficient.
26319 # So, we kill variables containing newlines.
26320 # Ultrix sh set writes to stderr and can't be redirected directly,
26321 # and sets the high bit in the cache file unless we assign to the vars.
26322 (
26323   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26324     eval ac_val=\$$ac_var
26325     case $ac_val in #(
26326     *${as_nl}*)
26327       case $ac_var in #(
26328       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26329 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26330       esac
26331       case $ac_var in #(
26332       _ | IFS | as_nl) ;; #(
26333       *) $as_unset $ac_var ;;
26334       esac ;;
26335     esac
26336   done
26337
26338   (set) 2>&1 |
26339     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26340     *${as_nl}ac_space=\ *)
26341       # `set' does not quote correctly, so add quotes (double-quote
26342       # substitution turns \\\\ into \\, and sed turns \\ into \).
26343       sed -n \
26344         "s/'/'\\\\''/g;
26345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26346       ;; #(
26347     *)
26348       # `set' quotes correctly as required by POSIX, so do not add quotes.
26349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26350       ;;
26351     esac |
26352     sort
26353 ) |
26354   sed '
26355      /^ac_cv_env_/b end
26356      t clear
26357      :clear
26358      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26359      t end
26360      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26361      :end' >>confcache
26362 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26363   if test -w "$cache_file"; then
26364     test "x$cache_file" != "x/dev/null" &&
26365       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26366 echo "$as_me: updating cache $cache_file" >&6;}
26367     cat confcache >$cache_file
26368   else
26369     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26370 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26371   fi
26372 fi
26373 rm -f confcache
26374
26375 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26376 # Let make expand exec_prefix.
26377 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26378
26379 DEFS=-DHAVE_CONFIG_H
26380
26381 ac_libobjs=
26382 ac_ltlibobjs=
26383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26384   # 1. Remove the extension, and $U if already installed.
26385   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26386   ac_i=`echo "$ac_i" | sed "$ac_script"`
26387   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26388   #    will be set to the directory where LIBOBJS objects are built.
26389   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26390   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26391 done
26392 LIBOBJS=$ac_libobjs
26393
26394 LTLIBOBJS=$ac_ltlibobjs
26395
26396
26397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26398   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26399 Usually this means the macro was only invoked conditionally." >&5
26400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26401 Usually this means the macro was only invoked conditionally." >&2;}
26402    { (exit 1); exit 1; }; }
26403 fi
26404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26405   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26406 Usually this means the macro was only invoked conditionally." >&5
26407 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26408 Usually this means the macro was only invoked conditionally." >&2;}
26409    { (exit 1); exit 1; }; }
26410 fi
26411 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26412   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26413 Usually this means the macro was only invoked conditionally." >&5
26414 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26415 Usually this means the macro was only invoked conditionally." >&2;}
26416    { (exit 1); exit 1; }; }
26417 fi
26418 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26419   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26420 Usually this means the macro was only invoked conditionally." >&5
26421 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26422 Usually this means the macro was only invoked conditionally." >&2;}
26423    { (exit 1); exit 1; }; }
26424 fi
26425 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26426   { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26427 Usually this means the macro was only invoked conditionally." >&5
26428 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26429 Usually this means the macro was only invoked conditionally." >&2;}
26430    { (exit 1); exit 1; }; }
26431 fi
26432 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26433   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26434 Usually this means the macro was only invoked conditionally." >&5
26435 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26436 Usually this means the macro was only invoked conditionally." >&2;}
26437    { (exit 1); exit 1; }; }
26438 fi
26439 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26440   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26441 Usually this means the macro was only invoked conditionally." >&5
26442 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26443 Usually this means the macro was only invoked conditionally." >&2;}
26444    { (exit 1); exit 1; }; }
26445 fi
26446 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26447   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26448 Usually this means the macro was only invoked conditionally." >&5
26449 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26450 Usually this means the macro was only invoked conditionally." >&2;}
26451    { (exit 1); exit 1; }; }
26452 fi
26453 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26454   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26455 Usually this means the macro was only invoked conditionally." >&5
26456 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&2;}
26458    { (exit 1); exit 1; }; }
26459 fi
26460
26461 : ${CONFIG_STATUS=./config.status}
26462 ac_clean_files_save=$ac_clean_files
26463 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26464 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26465 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26466 cat >$CONFIG_STATUS <<_ACEOF
26467 #! $SHELL
26468 # Generated by $as_me.
26469 # Run this file to recreate the current configuration.
26470 # Compiler output produced by configure, useful for debugging
26471 # configure, is in config.log if it exists.
26472
26473 debug=false
26474 ac_cs_recheck=false
26475 ac_cs_silent=false
26476 SHELL=\${CONFIG_SHELL-$SHELL}
26477 _ACEOF
26478
26479 cat >>$CONFIG_STATUS <<\_ACEOF
26480 ## --------------------- ##
26481 ## M4sh Initialization.  ##
26482 ## --------------------- ##
26483
26484 # Be more Bourne compatible
26485 DUALCASE=1; export DUALCASE # for MKS sh
26486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26487   emulate sh
26488   NULLCMD=:
26489   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26490   # is contrary to our usage.  Disable this feature.
26491   alias -g '${1+"$@"}'='"$@"'
26492   setopt NO_GLOB_SUBST
26493 else
26494   case `(set -o) 2>/dev/null` in
26495   *posix*) set -o posix ;;
26496 esac
26497
26498 fi
26499
26500
26501
26502
26503 # PATH needs CR
26504 # Avoid depending upon Character Ranges.
26505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26508 as_cr_digits='0123456789'
26509 as_cr_alnum=$as_cr_Letters$as_cr_digits
26510
26511 # The user is always right.
26512 if test "${PATH_SEPARATOR+set}" != set; then
26513   echo "#! /bin/sh" >conf$$.sh
26514   echo  "exit 0"   >>conf$$.sh
26515   chmod +x conf$$.sh
26516   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26517     PATH_SEPARATOR=';'
26518   else
26519     PATH_SEPARATOR=:
26520   fi
26521   rm -f conf$$.sh
26522 fi
26523
26524 # Support unset when possible.
26525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26526   as_unset=unset
26527 else
26528   as_unset=false
26529 fi
26530
26531
26532 # IFS
26533 # We need space, tab and new line, in precisely that order.  Quoting is
26534 # there to prevent editors from complaining about space-tab.
26535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26536 # splitting by setting IFS to empty value.)
26537 as_nl='
26538 '
26539 IFS=" ""        $as_nl"
26540
26541 # Find who we are.  Look in the path if we contain no directory separator.
26542 case $0 in
26543   *[\\/]* ) as_myself=$0 ;;
26544   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26545 for as_dir in $PATH
26546 do
26547   IFS=$as_save_IFS
26548   test -z "$as_dir" && as_dir=.
26549   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26550 done
26551 IFS=$as_save_IFS
26552
26553      ;;
26554 esac
26555 # We did not find ourselves, most probably we were run as `sh COMMAND'
26556 # in which case we are not to be found in the path.
26557 if test "x$as_myself" = x; then
26558   as_myself=$0
26559 fi
26560 if test ! -f "$as_myself"; then
26561   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26562   { (exit 1); exit 1; }
26563 fi
26564
26565 # Work around bugs in pre-3.0 UWIN ksh.
26566 for as_var in ENV MAIL MAILPATH
26567 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26568 done
26569 PS1='$ '
26570 PS2='> '
26571 PS4='+ '
26572
26573 # NLS nuisances.
26574 for as_var in \
26575   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26576   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26577   LC_TELEPHONE LC_TIME
26578 do
26579   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26580     eval $as_var=C; export $as_var
26581   else
26582     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26583   fi
26584 done
26585
26586 # Required to use basename.
26587 if expr a : '\(a\)' >/dev/null 2>&1 &&
26588    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26589   as_expr=expr
26590 else
26591   as_expr=false
26592 fi
26593
26594 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26595   as_basename=basename
26596 else
26597   as_basename=false
26598 fi
26599
26600
26601 # Name of the executable.
26602 as_me=`$as_basename -- "$0" ||
26603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26604          X"$0" : 'X\(//\)$' \| \
26605          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26606 echo X/"$0" |
26607     sed '/^.*\/\([^/][^/]*\)\/*$/{
26608             s//\1/
26609             q
26610           }
26611           /^X\/\(\/\/\)$/{
26612             s//\1/
26613             q
26614           }
26615           /^X\/\(\/\).*/{
26616             s//\1/
26617             q
26618           }
26619           s/.*/./; q'`
26620
26621 # CDPATH.
26622 $as_unset CDPATH
26623
26624
26625
26626   as_lineno_1=$LINENO
26627   as_lineno_2=$LINENO
26628   test "x$as_lineno_1" != "x$as_lineno_2" &&
26629   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26630
26631   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26632   # uniformly replaced by the line number.  The first 'sed' inserts a
26633   # line-number line after each line using $LINENO; the second 'sed'
26634   # does the real work.  The second script uses 'N' to pair each
26635   # line-number line with the line containing $LINENO, and appends
26636   # trailing '-' during substitution so that $LINENO is not a special
26637   # case at line end.
26638   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26639   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26640   # E. McMahon (1931-1989) for sed's syntax.  :-)
26641   sed -n '
26642     p
26643     /[$]LINENO/=
26644   ' <$as_myself |
26645     sed '
26646       s/[$]LINENO.*/&-/
26647       t lineno
26648       b
26649       :lineno
26650       N
26651       :loop
26652       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26653       t loop
26654       s/-\n.*//
26655     ' >$as_me.lineno &&
26656   chmod +x "$as_me.lineno" ||
26657     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26658    { (exit 1); exit 1; }; }
26659
26660   # Don't try to exec as it changes $[0], causing all sort of problems
26661   # (the dirname of $[0] is not the place where we might find the
26662   # original and so on.  Autoconf is especially sensitive to this).
26663   . "./$as_me.lineno"
26664   # Exit status is that of the last command.
26665   exit
26666 }
26667
26668
26669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26670   as_dirname=dirname
26671 else
26672   as_dirname=false
26673 fi
26674
26675 ECHO_C= ECHO_N= ECHO_T=
26676 case `echo -n x` in
26677 -n*)
26678   case `echo 'x\c'` in
26679   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26680   *)   ECHO_C='\c';;
26681   esac;;
26682 *)
26683   ECHO_N='-n';;
26684 esac
26685
26686 if expr a : '\(a\)' >/dev/null 2>&1 &&
26687    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26688   as_expr=expr
26689 else
26690   as_expr=false
26691 fi
26692
26693 rm -f conf$$ conf$$.exe conf$$.file
26694 if test -d conf$$.dir; then
26695   rm -f conf$$.dir/conf$$.file
26696 else
26697   rm -f conf$$.dir
26698   mkdir conf$$.dir
26699 fi
26700 echo >conf$$.file
26701 if ln -s conf$$.file conf$$ 2>/dev/null; then
26702   as_ln_s='ln -s'
26703   # ... but there are two gotchas:
26704   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26705   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26706   # In both cases, we have to default to `cp -p'.
26707   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26708     as_ln_s='cp -p'
26709 elif ln conf$$.file conf$$ 2>/dev/null; then
26710   as_ln_s=ln
26711 else
26712   as_ln_s='cp -p'
26713 fi
26714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26715 rmdir conf$$.dir 2>/dev/null
26716
26717 if mkdir -p . 2>/dev/null; then
26718   as_mkdir_p=:
26719 else
26720   test -d ./-p && rmdir ./-p
26721   as_mkdir_p=false
26722 fi
26723
26724 if test -x / >/dev/null 2>&1; then
26725   as_test_x='test -x'
26726 else
26727   if ls -dL / >/dev/null 2>&1; then
26728     as_ls_L_option=L
26729   else
26730     as_ls_L_option=
26731   fi
26732   as_test_x='
26733     eval sh -c '\''
26734       if test -d "$1"; then
26735         test -d "$1/.";
26736       else
26737         case $1 in
26738         -*)set "./$1";;
26739         esac;
26740         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26741         ???[sx]*):;;*)false;;esac;fi
26742     '\'' sh
26743   '
26744 fi
26745 as_executable_p=$as_test_x
26746
26747 # Sed expression to map a string onto a valid CPP name.
26748 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26749
26750 # Sed expression to map a string onto a valid variable name.
26751 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26752
26753
26754 exec 6>&1
26755
26756 # Save the log message, to keep $[0] and so on meaningful, and to
26757 # report actual input values of CONFIG_FILES etc. instead of their
26758 # values after options handling.
26759 ac_log="
26760 This file was extended by simgrid $as_me 3.1.1-cvs, which was
26761 generated by GNU Autoconf 2.61.  Invocation command line was
26762
26763   CONFIG_FILES    = $CONFIG_FILES
26764   CONFIG_HEADERS  = $CONFIG_HEADERS
26765   CONFIG_LINKS    = $CONFIG_LINKS
26766   CONFIG_COMMANDS = $CONFIG_COMMANDS
26767   $ $0 $@
26768
26769 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26770 "
26771
26772 _ACEOF
26773
26774 cat >>$CONFIG_STATUS <<_ACEOF
26775 # Files that config.status was made for.
26776 config_files="$ac_config_files"
26777 config_headers="$ac_config_headers"
26778 config_commands="$ac_config_commands"
26779
26780 _ACEOF
26781
26782 cat >>$CONFIG_STATUS <<\_ACEOF
26783 ac_cs_usage="\
26784 \`$as_me' instantiates files from templates according to the
26785 current configuration.
26786
26787 Usage: $0 [OPTIONS] [FILE]...
26788
26789   -h, --help       print this help, then exit
26790   -V, --version    print version number and configuration settings, then exit
26791   -q, --quiet      do not print progress messages
26792   -d, --debug      don't remove temporary files
26793       --recheck    update $as_me by reconfiguring in the same conditions
26794   --file=FILE[:TEMPLATE]
26795                    instantiate the configuration file FILE
26796   --header=FILE[:TEMPLATE]
26797                    instantiate the configuration header FILE
26798
26799 Configuration files:
26800 $config_files
26801
26802 Configuration headers:
26803 $config_headers
26804
26805 Configuration commands:
26806 $config_commands
26807
26808 Report bugs to <bug-autoconf@gnu.org>."
26809
26810 _ACEOF
26811 cat >>$CONFIG_STATUS <<_ACEOF
26812 ac_cs_version="\\
26813 simgrid config.status 3.1.1-cvs
26814 configured by $0, generated by GNU Autoconf 2.61,
26815   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26816
26817 Copyright (C) 2006 Free Software Foundation, Inc.
26818 This config.status script is free software; the Free Software Foundation
26819 gives unlimited permission to copy, distribute and modify it."
26820
26821 ac_pwd='$ac_pwd'
26822 srcdir='$srcdir'
26823 INSTALL='$INSTALL'
26824 _ACEOF
26825
26826 cat >>$CONFIG_STATUS <<\_ACEOF
26827 # If no file are specified by the user, then we need to provide default
26828 # value.  By we need to know if files were specified by the user.
26829 ac_need_defaults=:
26830 while test $# != 0
26831 do
26832   case $1 in
26833   --*=*)
26834     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26835     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26836     ac_shift=:
26837     ;;
26838   *)
26839     ac_option=$1
26840     ac_optarg=$2
26841     ac_shift=shift
26842     ;;
26843   esac
26844
26845   case $ac_option in
26846   # Handling of the options.
26847   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26848     ac_cs_recheck=: ;;
26849   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26850     echo "$ac_cs_version"; exit ;;
26851   --debug | --debu | --deb | --de | --d | -d )
26852     debug=: ;;
26853   --file | --fil | --fi | --f )
26854     $ac_shift
26855     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26856     ac_need_defaults=false;;
26857   --header | --heade | --head | --hea )
26858     $ac_shift
26859     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26860     ac_need_defaults=false;;
26861   --he | --h)
26862     # Conflict between --help and --header
26863     { echo "$as_me: error: ambiguous option: $1
26864 Try \`$0 --help' for more information." >&2
26865    { (exit 1); exit 1; }; };;
26866   --help | --hel | -h )
26867     echo "$ac_cs_usage"; exit ;;
26868   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26869   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26870     ac_cs_silent=: ;;
26871
26872   # This is an error.
26873   -*) { echo "$as_me: error: unrecognized option: $1
26874 Try \`$0 --help' for more information." >&2
26875    { (exit 1); exit 1; }; } ;;
26876
26877   *) ac_config_targets="$ac_config_targets $1"
26878      ac_need_defaults=false ;;
26879
26880   esac
26881   shift
26882 done
26883
26884 ac_configure_extra_args=
26885
26886 if $ac_cs_silent; then
26887   exec 6>/dev/null
26888   ac_configure_extra_args="$ac_configure_extra_args --silent"
26889 fi
26890
26891 _ACEOF
26892 cat >>$CONFIG_STATUS <<_ACEOF
26893 if \$ac_cs_recheck; then
26894   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26895   CONFIG_SHELL=$SHELL
26896   export CONFIG_SHELL
26897   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26898 fi
26899
26900 _ACEOF
26901 cat >>$CONFIG_STATUS <<\_ACEOF
26902 exec 5>>config.log
26903 {
26904   echo
26905   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26906 ## Running $as_me. ##
26907 _ASBOX
26908   echo "$ac_log"
26909 } >&5
26910
26911 _ACEOF
26912 cat >>$CONFIG_STATUS <<_ACEOF
26913 #
26914 # INIT-COMMANDS
26915 #
26916 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26917
26918 _ACEOF
26919
26920 cat >>$CONFIG_STATUS <<\_ACEOF
26921
26922 # Handling of arguments.
26923 for ac_config_target in $ac_config_targets
26924 do
26925   case $ac_config_target in
26926     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26927     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26928     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26929     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26930     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26931     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26932     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26933     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26934     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26935     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26936     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26937     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26938     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26939     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26940     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26941     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26942     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26943     "examples/msg/run_msg_test") CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26944     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26945     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26946     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26947     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26948     "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26949     "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26950     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26951     "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26952     "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26953     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26954     "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26955     "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26956     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26957     "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26958     "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26959     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26960     "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26961     "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26962     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26963     "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26964     "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26965     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26966     "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26967     "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26968     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26969     "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26970     "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26971     "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26972     "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26973     "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26974     "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26975     "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26976     "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26977     "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26978     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26979     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26980     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26981     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26982     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26983     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26984     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26985
26986   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26987 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26988    { (exit 1); exit 1; }; };;
26989   esac
26990 done
26991
26992
26993 # If the user did not use the arguments to specify the items to instantiate,
26994 # then the envvar interface is used.  Set only those that are not.
26995 # We use the long form for the default assignment because of an extremely
26996 # bizarre bug on SunOS 4.1.3.
26997 if $ac_need_defaults; then
26998   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26999   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27000   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27001 fi
27002
27003 # Have a temporary directory for convenience.  Make it in the build tree
27004 # simply because there is no reason against having it here, and in addition,
27005 # creating and moving files from /tmp can sometimes cause problems.
27006 # Hook for its removal unless debugging.
27007 # Note that there is a small window in which the directory will not be cleaned:
27008 # after its creation but before its name has been assigned to `$tmp'.
27009 $debug ||
27010 {
27011   tmp=
27012   trap 'exit_status=$?
27013   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27014 ' 0
27015   trap '{ (exit 1); exit 1; }' 1 2 13 15
27016 }
27017 # Create a (secure) tmp directory for tmp files.
27018
27019 {
27020   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27021   test -n "$tmp" && test -d "$tmp"
27022 }  ||
27023 {
27024   tmp=./conf$$-$RANDOM
27025   (umask 077 && mkdir "$tmp")
27026 } ||
27027 {
27028    echo "$me: cannot create a temporary directory in ." >&2
27029    { (exit 1); exit 1; }
27030 }
27031
27032 #
27033 # Set up the sed scripts for CONFIG_FILES section.
27034 #
27035
27036 # No need to generate the scripts if there are no CONFIG_FILES.
27037 # This happens for instance when ./config.status config.h
27038 if test -n "$CONFIG_FILES"; then
27039
27040 _ACEOF
27041
27042
27043
27044 ac_delim='%!_!# '
27045 for ac_last_try in false false false false false :; do
27046   cat >conf$$subs.sed <<_ACEOF
27047 SHELL!$SHELL$ac_delim
27048 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27049 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27050 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27051 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27052 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27053 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27054 exec_prefix!$exec_prefix$ac_delim
27055 prefix!$prefix$ac_delim
27056 program_transform_name!$program_transform_name$ac_delim
27057 bindir!$bindir$ac_delim
27058 sbindir!$sbindir$ac_delim
27059 libexecdir!$libexecdir$ac_delim
27060 datarootdir!$datarootdir$ac_delim
27061 datadir!$datadir$ac_delim
27062 sysconfdir!$sysconfdir$ac_delim
27063 sharedstatedir!$sharedstatedir$ac_delim
27064 localstatedir!$localstatedir$ac_delim
27065 includedir!$includedir$ac_delim
27066 oldincludedir!$oldincludedir$ac_delim
27067 docdir!$docdir$ac_delim
27068 infodir!$infodir$ac_delim
27069 htmldir!$htmldir$ac_delim
27070 dvidir!$dvidir$ac_delim
27071 pdfdir!$pdfdir$ac_delim
27072 psdir!$psdir$ac_delim
27073 libdir!$libdir$ac_delim
27074 localedir!$localedir$ac_delim
27075 mandir!$mandir$ac_delim
27076 DEFS!$DEFS$ac_delim
27077 ECHO_C!$ECHO_C$ac_delim
27078 ECHO_N!$ECHO_N$ac_delim
27079 ECHO_T!$ECHO_T$ac_delim
27080 LIBS!$LIBS$ac_delim
27081 build_alias!$build_alias$ac_delim
27082 host_alias!$host_alias$ac_delim
27083 target_alias!$target_alias$ac_delim
27084 build!$build$ac_delim
27085 build_cpu!$build_cpu$ac_delim
27086 build_vendor!$build_vendor$ac_delim
27087 build_os!$build_os$ac_delim
27088 host!$host$ac_delim
27089 host_cpu!$host_cpu$ac_delim
27090 host_vendor!$host_vendor$ac_delim
27091 host_os!$host_os$ac_delim
27092 target!$target$ac_delim
27093 target_cpu!$target_cpu$ac_delim
27094 target_vendor!$target_vendor$ac_delim
27095 target_os!$target_os$ac_delim
27096 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27097 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27098 INSTALL_DATA!$INSTALL_DATA$ac_delim
27099 CYGPATH_W!$CYGPATH_W$ac_delim
27100 PACKAGE!$PACKAGE$ac_delim
27101 VERSION!$VERSION$ac_delim
27102 ACLOCAL!$ACLOCAL$ac_delim
27103 AUTOCONF!$AUTOCONF$ac_delim
27104 AUTOMAKE!$AUTOMAKE$ac_delim
27105 AUTOHEADER!$AUTOHEADER$ac_delim
27106 MAKEINFO!$MAKEINFO$ac_delim
27107 install_sh!$install_sh$ac_delim
27108 STRIP!$STRIP$ac_delim
27109 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27110 mkdir_p!$mkdir_p$ac_delim
27111 AWK!$AWK$ac_delim
27112 SET_MAKE!$SET_MAKE$ac_delim
27113 am__leading_dot!$am__leading_dot$ac_delim
27114 AMTAR!$AMTAR$ac_delim
27115 am__tar!$am__tar$ac_delim
27116 am__untar!$am__untar$ac_delim
27117 CC!$CC$ac_delim
27118 CFLAGS!$CFLAGS$ac_delim
27119 LDFLAGS!$LDFLAGS$ac_delim
27120 CPPFLAGS!$CPPFLAGS$ac_delim
27121 ac_ct_CC!$ac_ct_CC$ac_delim
27122 EXEEXT!$EXEEXT$ac_delim
27123 OBJEXT!$OBJEXT$ac_delim
27124 DEPDIR!$DEPDIR$ac_delim
27125 am__include!$am__include$ac_delim
27126 am__quote!$am__quote$ac_delim
27127 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27128 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27129 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27130 CCDEPMODE!$CCDEPMODE$ac_delim
27131 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27132 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27133 GREP!$GREP$ac_delim
27134 EGREP!$EGREP$ac_delim
27135 LN_S!$LN_S$ac_delim
27136 ECHO!$ECHO$ac_delim
27137 AR!$AR$ac_delim
27138 RANLIB!$RANLIB$ac_delim
27139 DLLTOOL!$DLLTOOL$ac_delim
27140 AS!$AS$ac_delim
27141 OBJDUMP!$OBJDUMP$ac_delim
27142 CPP!$CPP$ac_delim
27143 CXX!$CXX$ac_delim
27144 _ACEOF
27145
27146   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27147     break
27148   elif $ac_last_try; then
27149     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27150 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27151    { (exit 1); exit 1; }; }
27152   else
27153     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27154   fi
27155 done
27156
27157 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27158 if test -n "$ac_eof"; then
27159   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27160   ac_eof=`expr $ac_eof + 1`
27161 fi
27162
27163 cat >>$CONFIG_STATUS <<_ACEOF
27164 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27166 _ACEOF
27167 sed '
27168 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27169 s/^/s,@/; s/!/@,|#_!!_#|/
27170 :n
27171 t n
27172 s/'"$ac_delim"'$/,g/; t
27173 s/$/\\/; p
27174 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27175 ' >>$CONFIG_STATUS <conf$$subs.sed
27176 rm -f conf$$subs.sed
27177 cat >>$CONFIG_STATUS <<_ACEOF
27178 CEOF$ac_eof
27179 _ACEOF
27180
27181
27182 ac_delim='%!_!# '
27183 for ac_last_try in false false false false false :; do
27184   cat >conf$$subs.sed <<_ACEOF
27185 CXXFLAGS!$CXXFLAGS$ac_delim
27186 ac_ct_CXX!$ac_ct_CXX$ac_delim
27187 CXXDEPMODE!$CXXDEPMODE$ac_delim
27188 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27189 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27190 CXXCPP!$CXXCPP$ac_delim
27191 F77!$F77$ac_delim
27192 FFLAGS!$FFLAGS$ac_delim
27193 ac_ct_F77!$ac_ct_F77$ac_delim
27194 LIBTOOL!$LIBTOOL$ac_delim
27195 LIBOBJS!$LIBOBJS$ac_delim
27196 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27197 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27198 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27199 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27200 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27201 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27202 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27203 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27204 GRAS_DEP!$GRAS_DEP$ac_delim
27205 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27206 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27207 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27208 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27209 MAINT!$MAINT$ac_delim
27210 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27211 abs_builddir!$abs_builddir$ac_delim
27212 abs_srcdir!$abs_srcdir$ac_delim
27213 abs_top_builddir!$abs_top_builddir$ac_delim
27214 abs_top_srcdir!$abs_top_srcdir$ac_delim
27215 BASH!$BASH$ac_delim
27216 WARNING!$WARNING$ac_delim
27217 LEX!$LEX$ac_delim
27218 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27219 LEXLIB!$LEXLIB$ac_delim
27220 FLEXML!$FLEXML$ac_delim
27221 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27222 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27223 DOXYGEN!$DOXYGEN$ac_delim
27224 ADDR2LINE!$ADDR2LINE$ac_delim
27225 ac_configure_args!$ac_configure_args$ac_delim
27226 MD5SUM!$MD5SUM$ac_delim
27227 build_id!$build_id$ac_delim
27228 LTLIBOBJS!$LTLIBOBJS$ac_delim
27229 _ACEOF
27230
27231   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
27232     break
27233   elif $ac_last_try; then
27234     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27235 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27236    { (exit 1); exit 1; }; }
27237   else
27238     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27239   fi
27240 done
27241
27242 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27243 if test -n "$ac_eof"; then
27244   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27245   ac_eof=`expr $ac_eof + 1`
27246 fi
27247
27248 cat >>$CONFIG_STATUS <<_ACEOF
27249 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27251 _ACEOF
27252 sed '
27253 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27254 s/^/s,@/; s/!/@,|#_!!_#|/
27255 :n
27256 t n
27257 s/'"$ac_delim"'$/,g/; t
27258 s/$/\\/; p
27259 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27260 ' >>$CONFIG_STATUS <conf$$subs.sed
27261 rm -f conf$$subs.sed
27262 cat >>$CONFIG_STATUS <<_ACEOF
27263 :end
27264 s/|#_!!_#|//g
27265 CEOF$ac_eof
27266 _ACEOF
27267
27268
27269 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27271 # trailing colons and then remove the whole line if VPATH becomes empty
27272 # (actually we leave an empty line to preserve line numbers).
27273 if test "x$srcdir" = x.; then
27274   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27275 s/:*\$(srcdir):*/:/
27276 s/:*\${srcdir}:*/:/
27277 s/:*@srcdir@:*/:/
27278 s/^\([^=]*=[     ]*\):*/\1/
27279 s/:*$//
27280 s/^[^=]*=[       ]*$//
27281 }'
27282 fi
27283
27284 cat >>$CONFIG_STATUS <<\_ACEOF
27285 fi # test -n "$CONFIG_FILES"
27286
27287
27288 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27289 do
27290   case $ac_tag in
27291   :[FHLC]) ac_mode=$ac_tag; continue;;
27292   esac
27293   case $ac_mode$ac_tag in
27294   :[FHL]*:*);;
27295   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27296 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27297    { (exit 1); exit 1; }; };;
27298   :[FH]-) ac_tag=-:-;;
27299   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27300   esac
27301   ac_save_IFS=$IFS
27302   IFS=:
27303   set x $ac_tag
27304   IFS=$ac_save_IFS
27305   shift
27306   ac_file=$1
27307   shift
27308
27309   case $ac_mode in
27310   :L) ac_source=$1;;
27311   :[FH])
27312     ac_file_inputs=
27313     for ac_f
27314     do
27315       case $ac_f in
27316       -) ac_f="$tmp/stdin";;
27317       *) # Look for the file first in the build tree, then in the source tree
27318          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27319          # because $ac_f cannot contain `:'.
27320          test -f "$ac_f" ||
27321            case $ac_f in
27322            [\\/$]*) false;;
27323            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27324            esac ||
27325            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27326 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27327    { (exit 1); exit 1; }; };;
27328       esac
27329       ac_file_inputs="$ac_file_inputs $ac_f"
27330     done
27331
27332     # Let's still pretend it is `configure' which instantiates (i.e., don't
27333     # use $as_me), people would be surprised to read:
27334     #    /* config.h.  Generated by config.status.  */
27335     configure_input="Generated from "`IFS=:
27336           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27337     if test x"$ac_file" != x-; then
27338       configure_input="$ac_file.  $configure_input"
27339       { echo "$as_me:$LINENO: creating $ac_file" >&5
27340 echo "$as_me: creating $ac_file" >&6;}
27341     fi
27342
27343     case $ac_tag in
27344     *:-:* | *:-) cat >"$tmp/stdin";;
27345     esac
27346     ;;
27347   esac
27348
27349   ac_dir=`$as_dirname -- "$ac_file" ||
27350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27351          X"$ac_file" : 'X\(//\)[^/]' \| \
27352          X"$ac_file" : 'X\(//\)$' \| \
27353          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27354 echo X"$ac_file" |
27355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27356             s//\1/
27357             q
27358           }
27359           /^X\(\/\/\)[^/].*/{
27360             s//\1/
27361             q
27362           }
27363           /^X\(\/\/\)$/{
27364             s//\1/
27365             q
27366           }
27367           /^X\(\/\).*/{
27368             s//\1/
27369             q
27370           }
27371           s/.*/./; q'`
27372   { as_dir="$ac_dir"
27373   case $as_dir in #(
27374   -*) as_dir=./$as_dir;;
27375   esac
27376   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27377     as_dirs=
27378     while :; do
27379       case $as_dir in #(
27380       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27381       *) as_qdir=$as_dir;;
27382       esac
27383       as_dirs="'$as_qdir' $as_dirs"
27384       as_dir=`$as_dirname -- "$as_dir" ||
27385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27386          X"$as_dir" : 'X\(//\)[^/]' \| \
27387          X"$as_dir" : 'X\(//\)$' \| \
27388          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27389 echo X"$as_dir" |
27390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27391             s//\1/
27392             q
27393           }
27394           /^X\(\/\/\)[^/].*/{
27395             s//\1/
27396             q
27397           }
27398           /^X\(\/\/\)$/{
27399             s//\1/
27400             q
27401           }
27402           /^X\(\/\).*/{
27403             s//\1/
27404             q
27405           }
27406           s/.*/./; q'`
27407       test -d "$as_dir" && break
27408     done
27409     test -z "$as_dirs" || eval "mkdir $as_dirs"
27410   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27411 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27412    { (exit 1); exit 1; }; }; }
27413   ac_builddir=.
27414
27415 case "$ac_dir" in
27416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27417 *)
27418   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27419   # A ".." for each directory in $ac_dir_suffix.
27420   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27421   case $ac_top_builddir_sub in
27422   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27423   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27424   esac ;;
27425 esac
27426 ac_abs_top_builddir=$ac_pwd
27427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27428 # for backward compatibility:
27429 ac_top_builddir=$ac_top_build_prefix
27430
27431 case $srcdir in
27432   .)  # We are building in place.
27433     ac_srcdir=.
27434     ac_top_srcdir=$ac_top_builddir_sub
27435     ac_abs_top_srcdir=$ac_pwd ;;
27436   [\\/]* | ?:[\\/]* )  # Absolute name.
27437     ac_srcdir=$srcdir$ac_dir_suffix;
27438     ac_top_srcdir=$srcdir
27439     ac_abs_top_srcdir=$srcdir ;;
27440   *) # Relative name.
27441     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27442     ac_top_srcdir=$ac_top_build_prefix$srcdir
27443     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27444 esac
27445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27446
27447
27448   case $ac_mode in
27449   :F)
27450   #
27451   # CONFIG_FILE
27452   #
27453
27454   case $INSTALL in
27455   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27456   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27457   esac
27458 _ACEOF
27459
27460 cat >>$CONFIG_STATUS <<\_ACEOF
27461 # If the template does not know about datarootdir, expand it.
27462 # FIXME: This hack should be removed a few years after 2.60.
27463 ac_datarootdir_hack=; ac_datarootdir_seen=
27464
27465 case `sed -n '/datarootdir/ {
27466   p
27467   q
27468 }
27469 /@datadir@/p
27470 /@docdir@/p
27471 /@infodir@/p
27472 /@localedir@/p
27473 /@mandir@/p
27474 ' $ac_file_inputs` in
27475 *datarootdir*) ac_datarootdir_seen=yes;;
27476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27477   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27478 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27479 _ACEOF
27480 cat >>$CONFIG_STATUS <<_ACEOF
27481   ac_datarootdir_hack='
27482   s&@datadir@&$datadir&g
27483   s&@docdir@&$docdir&g
27484   s&@infodir@&$infodir&g
27485   s&@localedir@&$localedir&g
27486   s&@mandir@&$mandir&g
27487     s&\\\${datarootdir}&$datarootdir&g' ;;
27488 esac
27489 _ACEOF
27490
27491 # Neutralize VPATH when `$srcdir' = `.'.
27492 # Shell code in configure.ac might set extrasub.
27493 # FIXME: do we really want to maintain this feature?
27494 cat >>$CONFIG_STATUS <<_ACEOF
27495   sed "$ac_vpsub
27496 $extrasub
27497 _ACEOF
27498 cat >>$CONFIG_STATUS <<\_ACEOF
27499 :t
27500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27501 s&@configure_input@&$configure_input&;t t
27502 s&@top_builddir@&$ac_top_builddir_sub&;t t
27503 s&@srcdir@&$ac_srcdir&;t t
27504 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27505 s&@top_srcdir@&$ac_top_srcdir&;t t
27506 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27507 s&@builddir@&$ac_builddir&;t t
27508 s&@abs_builddir@&$ac_abs_builddir&;t t
27509 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27510 s&@INSTALL@&$ac_INSTALL&;t t
27511 $ac_datarootdir_hack
27512 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27513
27514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27515   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27516   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27517   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27518 which seems to be undefined.  Please make sure it is defined." >&5
27519 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27520 which seems to be undefined.  Please make sure it is defined." >&2;}
27521
27522   rm -f "$tmp/stdin"
27523   case $ac_file in
27524   -) cat "$tmp/out"; rm -f "$tmp/out";;
27525   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27526   esac
27527  ;;
27528   :H)
27529   #
27530   # CONFIG_HEADER
27531   #
27532 _ACEOF
27533
27534 # Transform confdefs.h into a sed script `conftest.defines', that
27535 # substitutes the proper values into config.h.in to produce config.h.
27536 rm -f conftest.defines conftest.tail
27537 # First, append a space to every undef/define line, to ease matching.
27538 echo 's/$/ /' >conftest.defines
27539 # Then, protect against being on the right side of a sed subst, or in
27540 # an unquoted here document, in config.status.  If some macros were
27541 # called several times there might be several #defines for the same
27542 # symbol, which is useless.  But do not sort them, since the last
27543 # AC_DEFINE must be honored.
27544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27545 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27546 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27547 # PARAMS is the parameter list in the macro definition--in most cases, it's
27548 # just an empty string.
27549 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27550 ac_dB='\\)[      (].*,\\1define\\2'
27551 ac_dC=' '
27552 ac_dD=' ,'
27553
27554 uniq confdefs.h |
27555   sed -n '
27556         t rset
27557         :rset
27558         s/^[     ]*#[    ]*define[       ][      ]*//
27559         t ok
27560         d
27561         :ok
27562         s/[\\&,]/\\&/g
27563         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27564         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27565   ' >>conftest.defines
27566
27567 # Remove the space that was appended to ease matching.
27568 # Then replace #undef with comments.  This is necessary, for
27569 # example, in the case of _POSIX_SOURCE, which is predefined and required
27570 # on some systems where configure will not decide to define it.
27571 # (The regexp can be short, since the line contains either #define or #undef.)
27572 echo 's/ $//
27573 s,^[     #]*u.*,/* & */,' >>conftest.defines
27574
27575 # Break up conftest.defines:
27576 ac_max_sed_lines=50
27577
27578 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27579 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27580 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27581 # et cetera.
27582 ac_in='$ac_file_inputs'
27583 ac_out='"$tmp/out1"'
27584 ac_nxt='"$tmp/out2"'
27585
27586 while :
27587 do
27588   # Write a here document:
27589     cat >>$CONFIG_STATUS <<_ACEOF
27590     # First, check the format of the line:
27591     cat >"\$tmp/defines.sed" <<\\CEOF
27592 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27593 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27594 b
27595 :def
27596 _ACEOF
27597   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27598   echo 'CEOF
27599     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27600   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27601   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27602   grep . conftest.tail >/dev/null || break
27603   rm -f conftest.defines
27604   mv conftest.tail conftest.defines
27605 done
27606 rm -f conftest.defines conftest.tail
27607
27608 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27609 cat >>$CONFIG_STATUS <<\_ACEOF
27610   if test x"$ac_file" != x-; then
27611     echo "/* $configure_input  */" >"$tmp/config.h"
27612     cat "$ac_result" >>"$tmp/config.h"
27613     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27614       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27615 echo "$as_me: $ac_file is unchanged" >&6;}
27616     else
27617       rm -f $ac_file
27618       mv "$tmp/config.h" $ac_file
27619     fi
27620   else
27621     echo "/* $configure_input  */"
27622     cat "$ac_result"
27623   fi
27624   rm -f "$tmp/out12"
27625 # Compute $ac_file's index in $config_headers.
27626 _am_stamp_count=1
27627 for _am_header in $config_headers :; do
27628   case $_am_header in
27629     $ac_file | $ac_file:* )
27630       break ;;
27631     * )
27632       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27633   esac
27634 done
27635 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27636 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27637          X$ac_file : 'X\(//\)[^/]' \| \
27638          X$ac_file : 'X\(//\)$' \| \
27639          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27640 echo X$ac_file |
27641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27642             s//\1/
27643             q
27644           }
27645           /^X\(\/\/\)[^/].*/{
27646             s//\1/
27647             q
27648           }
27649           /^X\(\/\/\)$/{
27650             s//\1/
27651             q
27652           }
27653           /^X\(\/\).*/{
27654             s//\1/
27655             q
27656           }
27657           s/.*/./; q'`/stamp-h$_am_stamp_count
27658  ;;
27659
27660   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27661 echo "$as_me: executing $ac_file commands" >&6;}
27662  ;;
27663   esac
27664
27665
27666   case $ac_file$ac_mode in
27667     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27668   # Strip MF so we end up with the name of the file.
27669   mf=`echo "$mf" | sed -e 's/:.*$//'`
27670   # Check whether this is an Automake generated Makefile or not.
27671   # We used to match only the files named `Makefile.in', but
27672   # some people rename them; so instead we look at the file content.
27673   # Grep'ing the first line is not enough: some people post-process
27674   # each Makefile.in and add a new line on top of each file to say so.
27675   # So let's grep whole file.
27676   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27677     dirpart=`$as_dirname -- "$mf" ||
27678 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27679          X"$mf" : 'X\(//\)[^/]' \| \
27680          X"$mf" : 'X\(//\)$' \| \
27681          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27682 echo X"$mf" |
27683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27684             s//\1/
27685             q
27686           }
27687           /^X\(\/\/\)[^/].*/{
27688             s//\1/
27689             q
27690           }
27691           /^X\(\/\/\)$/{
27692             s//\1/
27693             q
27694           }
27695           /^X\(\/\).*/{
27696             s//\1/
27697             q
27698           }
27699           s/.*/./; q'`
27700   else
27701     continue
27702   fi
27703   # Extract the definition of DEPDIR, am__include, and am__quote
27704   # from the Makefile without running `make'.
27705   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27706   test -z "$DEPDIR" && continue
27707   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27708   test -z "am__include" && continue
27709   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27710   # When using ansi2knr, U may be empty or an underscore; expand it
27711   U=`sed -n 's/^U = //p' < "$mf"`
27712   # Find all dependency output files, they are included files with
27713   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27714   # simplest approach to changing $(DEPDIR) to its actual value in the
27715   # expansion.
27716   for file in `sed -n "
27717     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27718        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27719     # Make sure the directory exists.
27720     test -f "$dirpart/$file" && continue
27721     fdir=`$as_dirname -- "$file" ||
27722 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27723          X"$file" : 'X\(//\)[^/]' \| \
27724          X"$file" : 'X\(//\)$' \| \
27725          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27726 echo X"$file" |
27727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27728             s//\1/
27729             q
27730           }
27731           /^X\(\/\/\)[^/].*/{
27732             s//\1/
27733             q
27734           }
27735           /^X\(\/\/\)$/{
27736             s//\1/
27737             q
27738           }
27739           /^X\(\/\).*/{
27740             s//\1/
27741             q
27742           }
27743           s/.*/./; q'`
27744     { as_dir=$dirpart/$fdir
27745   case $as_dir in #(
27746   -*) as_dir=./$as_dir;;
27747   esac
27748   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27749     as_dirs=
27750     while :; do
27751       case $as_dir in #(
27752       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27753       *) as_qdir=$as_dir;;
27754       esac
27755       as_dirs="'$as_qdir' $as_dirs"
27756       as_dir=`$as_dirname -- "$as_dir" ||
27757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27758          X"$as_dir" : 'X\(//\)[^/]' \| \
27759          X"$as_dir" : 'X\(//\)$' \| \
27760          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27761 echo X"$as_dir" |
27762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27763             s//\1/
27764             q
27765           }
27766           /^X\(\/\/\)[^/].*/{
27767             s//\1/
27768             q
27769           }
27770           /^X\(\/\/\)$/{
27771             s//\1/
27772             q
27773           }
27774           /^X\(\/\).*/{
27775             s//\1/
27776             q
27777           }
27778           s/.*/./; q'`
27779       test -d "$as_dir" && break
27780     done
27781     test -z "$as_dirs" || eval "mkdir $as_dirs"
27782   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27783 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27784    { (exit 1); exit 1; }; }; }
27785     # echo "creating $dirpart/$file"
27786     echo '# dummy' > "$dirpart/$file"
27787   done
27788 done
27789  ;;
27790     "tools/graspe-slave":F)
27791     for file in                                                 \
27792      tools/graspe-slave           tools/graspe-master           \
27793     ; do                                                        \
27794       test -e $file && chmod +x $file;                          \
27795     done
27796  ;;
27797     "testsuite/Makefile":F)
27798     for file in                                                 \
27799      testsuite/run_tests                                        \
27800      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27801     ; do                                                        \
27802       test -e $file && chmod +x $file;                          \
27803     done
27804  ;;
27805     "testsuite/run_tests":F)
27806     for file in                                                 \
27807      testsuite/run_tests                                        \
27808      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27809     ; do                                                        \
27810       test -e $file && chmod +x $file;                          \
27811     done
27812  ;;
27813     "testsuite/gras/trp_tcp_usage":F)
27814     for file in                                                 \
27815      testsuite/run_tests                                        \
27816      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27817     ; do                                                        \
27818       test -e $file && chmod +x $file;                          \
27819     done
27820  ;;
27821     "testsuite/gras/trp_file_usage":F)
27822     for file in                                                 \
27823      testsuite/run_tests                                        \
27824      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27825     ; do                                                        \
27826       test -e $file && chmod +x $file;                          \
27827     done
27828  ;;
27829     "examples/Makefile":F)
27830     for file in                                                 \
27831      \
27832      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27833      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27834      \
27835      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27836      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27837      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27838      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27839      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27840      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27841      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27842      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27843      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27844      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27845      examples/msg/run_msg_test                                  \
27846      examples/simdag/test_simdag                                \
27847     ; do                                                        \
27848       test -e $file && chmod +x $file;                          \
27849     done
27850  ;;
27851     "examples/msg/Makefile":F)
27852     for file in                                                 \
27853      \
27854      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27855      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27856      \
27857      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27858      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27859      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27860      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27861      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27862      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27863      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27864      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27865      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27866      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27867      examples/msg/run_msg_test                                  \
27868      examples/simdag/test_simdag                                \
27869     ; do                                                        \
27870       test -e $file && chmod +x $file;                          \
27871     done
27872  ;;
27873     "examples/msg/run_msg_test":F)
27874     for file in                                                 \
27875      \
27876      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27877      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27878      \
27879      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27880      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27881      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27882      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27883      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27884      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27885      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27886      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27887      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27888      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27889      examples/msg/run_msg_test                                  \
27890      examples/simdag/test_simdag                                \
27891     ; do                                                        \
27892       test -e $file && chmod +x $file;                          \
27893     done
27894  ;;
27895     "examples/simdag/Makefile":F)
27896     for file in                                                 \
27897      \
27898      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27899      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27900      \
27901      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27902      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27903      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27904      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27905      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27906      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27907      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27908      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27909      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27910      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27911      examples/msg/run_msg_test                                  \
27912      examples/simdag/test_simdag                                \
27913     ; do                                                        \
27914       test -e $file && chmod +x $file;                          \
27915     done
27916  ;;
27917     "examples/simdag/test_simdag":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/gras/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/gras/ping/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/gras/ping/test_sg":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/ping/test_rl":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/rpc/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/rpc/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/rpc/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/timer/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/timer/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/timer/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/chrono/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/chrono/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/chrono/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/mutual_exclusion/simple_token/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/mutual_exclusion/simple_token/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/mutual_exclusion/simple_token/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/mmrpc/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/mmrpc/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/mmrpc/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/pmm/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/pmm/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/pmm/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/all2all/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/all2all/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/all2all/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/p2p/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/p2p/chord/Makefile":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/p2p/chord/test_sg":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/chord/test_rl":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/can/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/can/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/can/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/amok/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/amok/bandwidth/Makefile":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/amok/bandwidth/test_sg":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/bandwidth/test_rl":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/saturate/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/saturate/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/saturate/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
28798   esac
28799 done # for ac_tag
28800
28801
28802 { (exit 0); exit 0; }
28803 _ACEOF
28804 chmod +x $CONFIG_STATUS
28805 ac_clean_files=$ac_clean_files_save
28806
28807
28808 # configure is writing to config.log, and then calls config.status.
28809 # config.status does its own redirection, appending to config.log.
28810 # Unfortunately, on DOS this fails, as config.log is still kept open
28811 # by configure, so config.status won't be able to write to it; its
28812 # output is simply discarded.  So we exec the FD to /dev/null,
28813 # effectively closing config.log, so it can be properly (re)opened and
28814 # appended to by config.status.  When coming back to configure, we
28815 # need to make the FD available again.
28816 if test "$no_create" != yes; then
28817   ac_cs_success=:
28818   ac_config_status_args=
28819   test "$silent" = yes &&
28820     ac_config_status_args="$ac_config_status_args --quiet"
28821   exec 5>/dev/null
28822   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28823   exec 5>>config.log
28824   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28825   # would make configure fail if this is the last instruction.
28826   $ac_cs_success || { (exit 1); exit 1; }
28827 fi
28828
28829
28830 echo "
28831
28832 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28833
28834         Compiler:        ${CC} (version: ${GCC_VERSION})
28835
28836         CFlags:          ${CFLAGS}
28837         CPPFlags:        ${CPPFLAGS}
28838         LDFlags:         ${LDFLAGS}
28839
28840         Context backend: ${with_context}
28841 "
28842
28843 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28844   echo "WARNING:"
28845   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28846   echo "WARNING: You may want to enable this by specifying:"
28847   echo "WARNING:"
28848   echo "WARNING: ./configure --enable-maintainer-mode  $ac_configure_args"
28849   echo "WARNING:"
28850 fi
28851 echo $build_id > stamp.configure
28852
28853 exit 0;