Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove debug INFO (oops)
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.180 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 SED
868 GREP
869 EGREP
870 LN_S
871 ECHO
872 AR
873 RANLIB
874 DLLTOOL
875 AS
876 OBJDUMP
877 CPP
878 CXX
879 CXXFLAGS
880 ac_ct_CXX
881 CXXDEPMODE
882 am__fastdepCXX_TRUE
883 am__fastdepCXX_FALSE
884 CXXCPP
885 LIBTOOL
886 LIBOBJS
887 GRAS_ARCH_32_BITS_TRUE
888 GRAS_ARCH_32_BITS_FALSE
889 CONTEXT_THREADS_TRUE
890 CONTEXT_THREADS_FALSE
891 PTH_STACK_GROWTH
892 pth_skaddr_makecontext
893 pth_sksize_makecontext
894 HAVE_GTNETS_TRUE
895 HAVE_GTNETS_FALSE
896 HAVE_SDP_TRUE
897 HAVE_SDP_FALSE
898 SIMGRID_DEP
899 SMPI_DEP
900 GRAS_DEP
901 GRAMINE_MODE_TRUE
902 GRAMINE_MODE_FALSE
903 MAINTAINER_MODE_TRUE
904 MAINTAINER_MODE_FALSE
905 MAINT
906 LD_DYNAMIC_FLAGS
907 AM_CPPFLAGS
908 abs_builddir
909 abs_srcdir
910 abs_top_builddir
911 abs_top_srcdir
912 JAVAC
913 JAVA
914 JAR
915 HAVE_JAVA_TRUE
916 HAVE_JAVA_FALSE
917 BASH
918 WARNING
919 LEX
920 LEX_OUTPUT_ROOT
921 LEXLIB
922 FLEXML
923 HAVE_FLEXML_TRUE
924 HAVE_FLEXML_FALSE
925 DOXYGEN
926 ADDR2LINE
927 ac_configure_args
928 MD5SUM
929 build_id
930 LTLIBOBJS'
931 ac_subst_files=''
932       ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CPP
941 CXX
942 CXXFLAGS
943 CCC
944 CXXCPP'
945
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *)    ac_optarg=yes ;;
1007   esac
1008
1009   # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011   case $ac_dashdash$ac_option in
1012   --)
1013     ac_dashdash=yes ;;
1014
1015   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016     ac_prev=bindir ;;
1017   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018     bindir=$ac_optarg ;;
1019
1020   -build | --build | --buil | --bui | --bu)
1021     ac_prev=build_alias ;;
1022   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023     build_alias=$ac_optarg ;;
1024
1025   -cache-file | --cache-file | --cache-fil | --cache-fi \
1026   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027     ac_prev=cache_file ;;
1028   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030     cache_file=$ac_optarg ;;
1031
1032   --config-cache | -C)
1033     cache_file=config.cache ;;
1034
1035   -datadir | --datadir | --datadi | --datad)
1036     ac_prev=datadir ;;
1037   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038     datadir=$ac_optarg ;;
1039
1040   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041   | --dataroo | --dataro | --datar)
1042     ac_prev=datarootdir ;;
1043   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045     datarootdir=$ac_optarg ;;
1046
1047   -disable-* | --disable-*)
1048     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1054     eval enable_$ac_feature=no ;;
1055
1056   -docdir | --docdir | --docdi | --doc | --do)
1057     ac_prev=docdir ;;
1058   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059     docdir=$ac_optarg ;;
1060
1061   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062     ac_prev=dvidir ;;
1063   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064     dvidir=$ac_optarg ;;
1065
1066   -enable-* | --enable-*)
1067     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071    { (exit 1); exit 1; }; }
1072     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1073     eval enable_$ac_feature=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219     ac_prev=sbindir ;;
1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221   | --sbi=* | --sb=*)
1222     sbindir=$ac_optarg ;;
1223
1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226   | --sharedst | --shareds | --shared | --share | --shar \
1227   | --sha | --sh)
1228     ac_prev=sharedstatedir ;;
1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232   | --sha=* | --sh=*)
1233     sharedstatedir=$ac_optarg ;;
1234
1235   -site | --site | --sit)
1236     ac_prev=site ;;
1237   -site=* | --site=* | --sit=*)
1238     site=$ac_optarg ;;
1239
1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241     ac_prev=srcdir ;;
1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243     srcdir=$ac_optarg ;;
1244
1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246   | --syscon | --sysco | --sysc | --sys | --sy)
1247     ac_prev=sysconfdir ;;
1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250     sysconfdir=$ac_optarg ;;
1251
1252   -target | --target | --targe | --targ | --tar | --ta | --t)
1253     ac_prev=target_alias ;;
1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255     target_alias=$ac_optarg ;;
1256
1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258     verbose=yes ;;
1259
1260   -version | --version | --versio | --versi | --vers | -V)
1261     ac_init_version=: ;;
1262
1263   -with-* | --with-*)
1264     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       { echo "$as_me: error: invalid package name: $ac_package" >&2
1268    { (exit 1); exit 1; }; }
1269     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1270     eval with_$ac_package=\$ac_optarg ;;
1271
1272   -without-* | --without-*)
1273     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       { echo "$as_me: error: invalid package name: $ac_package" >&2
1277    { (exit 1); exit 1; }; }
1278     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1279     eval with_$ac_package=no ;;
1280
1281   --x)
1282     # Obsolete; use --with-x.
1283     with_x=yes ;;
1284
1285   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286   | --x-incl | --x-inc | --x-in | --x-i)
1287     ac_prev=x_includes ;;
1288   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290     x_includes=$ac_optarg ;;
1291
1292   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294     ac_prev=x_libraries ;;
1295   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297     x_libraries=$ac_optarg ;;
1298
1299   -*) { echo "$as_me: error: unrecognized option: $ac_option
1300 Try \`$0 --help' for more information." >&2
1301    { (exit 1); exit 1; }; }
1302     ;;
1303
1304   *=*)
1305     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306     # Reject names that are not valid shell variable names.
1307     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309    { (exit 1); exit 1; }; }
1310     eval $ac_envvar=\$ac_optarg
1311     export $ac_envvar ;;
1312
1313   *)
1314     # FIXME: should be removed in autoconf 3.0.
1315     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319     ;;
1320
1321   esac
1322 done
1323
1324 if test -n "$ac_prev"; then
1325   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326   { echo "$as_me: error: missing argument to $ac_option" >&2
1327    { (exit 1); exit 1; }; }
1328 fi
1329
1330 # Be sure to have absolute directory names.
1331 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332                 datadir sysconfdir sharedstatedir localstatedir includedir \
1333                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334                 libdir localedir mandir
1335 do
1336   eval ac_val=\$$ac_var
1337   case $ac_val in
1338     [\\/$]* | ?:[\\/]* )  continue;;
1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340   esac
1341   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342    { (exit 1); exit 1; }; }
1343 done
1344
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1351
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354   if test "x$build_alias" = x; then
1355     cross_compiling=maybe
1356     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357     If a cross compiler is detected then cross compile mode will be used." >&2
1358   elif test "x$build_alias" != "x$host_alias"; then
1359     cross_compiling=yes
1360   fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372   { echo "$as_me: error: Working directory cannot be determined" >&2
1373    { (exit 1); exit 1; }; }
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375   { echo "$as_me: error: pwd does not report name of working directory" >&2
1376    { (exit 1); exit 1; }; }
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381   ac_srcdir_defaulted=yes
1382   # Try the directory containing this script, then the parent directory.
1383   ac_confdir=`$as_dirname -- "$0" ||
1384 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385          X"$0" : 'X\(//\)[^/]' \| \
1386          X"$0" : 'X\(//\)$' \| \
1387          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1388 echo X"$0" |
1389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)[^/].*/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)$/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\).*/{
1402             s//\1/
1403             q
1404           }
1405           s/.*/./; q'`
1406   srcdir=$ac_confdir
1407   if test ! -r "$srcdir/$ac_unique_file"; then
1408     srcdir=..
1409   fi
1410 else
1411   ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1416    { (exit 1); exit 1; }; }
1417 fi
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1421    { (exit 1); exit 1; }; }
1422         pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425   srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_env_${ac_var}_value=\$${ac_var}
1436   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444   # Omit some internal or obsolete options to make the list less imposing.
1445   # This message is too long to be a string in the A/UX 3.1 sh.
1446   cat <<_ACEOF
1447 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE.  See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457   -h, --help              display this help and exit
1458       --help=short        display options specific to this package
1459       --help=recursive    display the short help of all the included packages
1460   -V, --version           display version information and exit
1461   -q, --quiet, --silent   do not print \`checking...' messages
1462       --cache-file=FILE   cache test results in FILE [disabled]
1463   -C, --config-cache      alias for \`--cache-file=config.cache'
1464   -n, --no-create         do not create output files
1465       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468   --prefix=PREFIX         install architecture-independent files in PREFIX
1469                           [$ac_default_prefix]
1470   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1471                           [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481   --bindir=DIR           user executables [EPREFIX/bin]
1482   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1483   --libexecdir=DIR       program executables [EPREFIX/libexec]
1484   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1485   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1486   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1487   --libdir=DIR           object code libraries [EPREFIX/lib]
1488   --includedir=DIR       C header files [PREFIX/include]
1489   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1490   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1491   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1492   --infodir=DIR          info documentation [DATAROOTDIR/info]
1493   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1494   --mandir=DIR           man documentation [DATAROOTDIR/man]
1495   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1496   --htmldir=DIR          html documentation [DOCDIR]
1497   --dvidir=DIR           dvi documentation [DOCDIR]
1498   --pdfdir=DIR           pdf documentation [DOCDIR]
1499   --psdir=DIR            ps documentation [DOCDIR]
1500 _ACEOF
1501
1502   cat <<\_ACEOF
1503
1504 Program names:
1505   --program-prefix=PREFIX            prepend PREFIX to installed program names
1506   --program-suffix=SUFFIX            append SUFFIX to installed program names
1507   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1508
1509 System types:
1510   --build=BUILD     configure for building on BUILD [guessed]
1511   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1512   --target=TARGET   configure for building compilers for TARGET [HOST]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517   case $ac_init_help in
1518      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1519    esac
1520   cat <<\_ACEOF
1521
1522 Optional Features:
1523   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1524   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1525   --disable-dependency-tracking  speeds up one-time build
1526   --enable-dependency-tracking   do not reject slow dependency extractors
1527   --enable-shared[=PKGS]  build shared libraries [default=yes]
1528   --enable-static[=PKGS]  build static libraries [default=yes]
1529   --enable-fast-install[=PKGS]
1530                           optimize for fast installation [default=yes]
1531   --disable-libtool-lock  avoid locking (might break parallel builds)
1532   --enable-maintainer-mode  enable make rules and dependencies not useful
1533                           (and sometimes confusing) to the casual installer
1534   --enable-compile-warnings
1535                           use compiler warnings (default=no, unless in
1536                           maintainer mode)
1537   --disable-compile-optimizations
1538                           use compiler optimizations (default=yes, unless if
1539                           CFLAGS is explicitly set)
1540   --disable-java          To not compile the Java bindings even if the tools
1541                           are found
1542
1543 Optional Packages:
1544   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1547   --with-pic              try to use only PIC/non-PIC objects [default=use
1548                           both]
1549   --with-tags[=TAGS]      include additional configurations [automatic]
1550   --with-pthread   Use pthread instead of ucontext.
1551   --with-pthreads   Use pthread instead of ucontext.
1552   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1553   --with-gtnets           Path to GTNetS installation (default to empty, ie
1554                           not using GTNetS)
1555   --with-csdp             Path to csdp installation (default to empty, i.e.
1556                           not using csdp)
1557
1558 Some influential environment variables:
1559   CC          C compiler command
1560   CFLAGS      C compiler flags
1561   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562               nonstandard directory <lib dir>
1563   LIBS        libraries to pass to the linker, e.g. -l<library>
1564   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1565               you have headers in a nonstandard directory <include dir>
1566   CPP         C preprocessor
1567   CXX         C++ compiler command
1568   CXXFLAGS    C++ compiler flags
1569   CXXCPP      C++ preprocessor
1570
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1573
1574 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580   # If there are subdirs, report their specific --help.
1581   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582     test -d "$ac_dir" || continue
1583     ac_builddir=.
1584
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *)
1588   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1589   # A ".." for each directory in $ac_dir_suffix.
1590   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1591   case $ac_top_builddir_sub in
1592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594   esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1600
1601 case $srcdir in
1602   .)  # We are building in place.
1603     ac_srcdir=.
1604     ac_top_srcdir=$ac_top_builddir_sub
1605     ac_abs_top_srcdir=$ac_pwd ;;
1606   [\\/]* | ?:[\\/]* )  # Absolute name.
1607     ac_srcdir=$srcdir$ac_dir_suffix;
1608     ac_top_srcdir=$srcdir
1609     ac_abs_top_srcdir=$srcdir ;;
1610   *) # Relative name.
1611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612     ac_top_srcdir=$ac_top_build_prefix$srcdir
1613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617     cd "$ac_dir" || { ac_status=$?; continue; }
1618     # Check for guested configure.
1619     if test -f "$ac_srcdir/configure.gnu"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622     elif test -f "$ac_srcdir/configure"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure" --help=recursive
1625     else
1626       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627     fi || ac_status=$?
1628     cd "$ac_pwd" || { ac_status=$?; break; }
1629   done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634   cat <<\_ACEOF
1635 simgrid configure 3.3-cvs
1636 generated by GNU Autoconf 2.61
1637
1638 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1639 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645 cat >config.log <<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1648
1649 It was created by simgrid $as_me 3.3-cvs, which was
1650 generated by GNU Autoconf 2.61.  Invocation command line was
1651
1652   $ $0 $@
1653
1654 _ACEOF
1655 exec 5>>config.log
1656 {
1657 cat <<_ASUNAME
1658 ## --------- ##
1659 ## Platform. ##
1660 ## --------- ##
1661
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1670
1671 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1672 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1675 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1676 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1677 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1678
1679 _ASUNAME
1680
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684   IFS=$as_save_IFS
1685   test -z "$as_dir" && as_dir=.
1686   echo "PATH: $as_dir"
1687 done
1688 IFS=$as_save_IFS
1689
1690 } >&5
1691
1692 cat >&5 <<_ACEOF
1693
1694
1695 ## ----------- ##
1696 ## Core tests. ##
1697 ## ----------- ##
1698
1699 _ACEOF
1700
1701
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_configure_args=
1708 ac_configure_args0=
1709 ac_configure_args1=
1710 ac_must_keep_next=false
1711 for ac_pass in 1 2
1712 do
1713   for ac_arg
1714   do
1715     case $ac_arg in
1716     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718     | -silent | --silent | --silen | --sile | --sil)
1719       continue ;;
1720     *\'*)
1721       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722     esac
1723     case $ac_pass in
1724     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725     2)
1726       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727       if test $ac_must_keep_next = true; then
1728         ac_must_keep_next=false # Got value, back to normal.
1729       else
1730         case $ac_arg in
1731           *=* | --config-cache | -C | -disable-* | --disable-* \
1732           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734           | -with-* | --with-* | -without-* | --without-* | --x)
1735             case "$ac_configure_args0 " in
1736               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737             esac
1738             ;;
1739           -* ) ac_must_keep_next=true ;;
1740         esac
1741       fi
1742       ac_configure_args="$ac_configure_args '$ac_arg'"
1743       ;;
1744     esac
1745   done
1746 done
1747 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log.  We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756   # Save into config.log some information that might help in debugging.
1757   {
1758     echo
1759
1760     cat <<\_ASBOX
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1764 _ASBOX
1765     echo
1766     # The following way of writing the cache mishandles newlines in values,
1767 (
1768   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769     eval ac_val=\$$ac_var
1770     case $ac_val in #(
1771     *${as_nl}*)
1772       case $ac_var in #(
1773       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775       esac
1776       case $ac_var in #(
1777       _ | IFS | as_nl) ;; #(
1778       *) $as_unset $ac_var ;;
1779       esac ;;
1780     esac
1781   done
1782   (set) 2>&1 |
1783     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784     *${as_nl}ac_space=\ *)
1785       sed -n \
1786         "s/'\''/'\''\\\\'\'''\''/g;
1787           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788       ;; #(
1789     *)
1790       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791       ;;
1792     esac |
1793     sort
1794 )
1795     echo
1796
1797     cat <<\_ASBOX
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1801 _ASBOX
1802     echo
1803     for ac_var in $ac_subst_vars
1804     do
1805       eval ac_val=\$$ac_var
1806       case $ac_val in
1807       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808       esac
1809       echo "$ac_var='\''$ac_val'\''"
1810     done | sort
1811     echo
1812
1813     if test -n "$ac_subst_files"; then
1814       cat <<\_ASBOX
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1818 _ASBOX
1819       echo
1820       for ac_var in $ac_subst_files
1821       do
1822         eval ac_val=\$$ac_var
1823         case $ac_val in
1824         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825         esac
1826         echo "$ac_var='\''$ac_val'\''"
1827       done | sort
1828       echo
1829     fi
1830
1831     if test -s confdefs.h; then
1832       cat <<\_ASBOX
1833 ## ----------- ##
1834 ## confdefs.h. ##
1835 ## ----------- ##
1836 _ASBOX
1837       echo
1838       cat confdefs.h
1839       echo
1840     fi
1841     test "$ac_signal" != 0 &&
1842       echo "$as_me: caught signal $ac_signal"
1843     echo "$as_me: exit $exit_status"
1844   } >&5
1845   rm -f core *.core core.conftest.* &&
1846     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847     exit $exit_status
1848 ' 0
1849 for ac_signal in 1 2 13 15; do
1850   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851 done
1852 ac_signal=0
1853
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1856
1857 # Predefined preprocessor variables.
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1876 _ACEOF
1877
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 _ACEOF
1882
1883
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887   set x "$CONFIG_SITE"
1888 elif test "x$prefix" != xNONE; then
1889   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 else
1891   set x "$ac_default_prefix/share/config.site" \
1892         "$ac_default_prefix/etc/config.site"
1893 fi
1894 shift
1895 for ac_site_file
1896 do
1897   if test -r "$ac_site_file"; then
1898     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899 echo "$as_me: loading site script $ac_site_file" >&6;}
1900     sed 's/^/| /' "$ac_site_file" >&5
1901     . "$ac_site_file"
1902   fi
1903 done
1904
1905 if test -r "$cache_file"; then
1906   # Some versions of bash will fail to source /dev/null (special
1907   # files actually), so we avoid doing that.
1908   if test -f "$cache_file"; then
1909     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1911     case $cache_file in
1912       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913       *)                      . "./$cache_file";;
1914     esac
1915   fi
1916 else
1917   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1919   >$cache_file
1920 fi
1921
1922 # Check that the precious variables saved in the cache have kept the same
1923 # value.
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927   eval ac_new_set=\$ac_env_${ac_var}_set
1928   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929   eval ac_new_val=\$ac_env_${ac_var}_value
1930   case $ac_old_set,$ac_new_set in
1931     set,)
1932       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,set)
1936       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938       ac_cache_corrupted=: ;;
1939     ,);;
1940     *)
1941       if test "x$ac_old_val" != "x$ac_new_val"; then
1942         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1945 echo "$as_me:   former value:  $ac_old_val" >&2;}
1946         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1947 echo "$as_me:   current value: $ac_new_val" >&2;}
1948         ac_cache_corrupted=:
1949       fi;;
1950   esac
1951   # Pass precious variables to config.status.
1952   if test "$ac_new_set" = set; then
1953     case $ac_new_val in
1954     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955     *) ac_arg=$ac_var=$ac_new_val ;;
1956     esac
1957     case " $ac_configure_args " in
1958       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1959       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960     esac
1961   fi
1962 done
1963 if $ac_cache_corrupted; then
1964   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968    { (exit 1); exit 1; }; }
1969 fi
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001
2002
2003 ac_config_headers="$ac_config_headers src/gras_config.h"
2004
2005 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2006
2007
2008 ac_aux_dir=
2009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2010   if test -f "$ac_dir/install-sh"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/install-sh -c"
2013     break
2014   elif test -f "$ac_dir/install.sh"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/install.sh -c"
2017     break
2018   elif test -f "$ac_dir/shtool"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/shtool install -c"
2021     break
2022   fi
2023 done
2024 if test -z "$ac_aux_dir"; then
2025   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2026 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029
2030 # These three variables are undocumented and unsupported,
2031 # and are intended to be withdrawn in a future Autoconf release.
2032 # They can cause serious problems if a builder's source tree is in a directory
2033 # whose full name contains unusual characters.
2034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2036 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2037
2038
2039 # Make sure we can run config.sub.
2040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2041   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2042 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2043    { (exit 1); exit 1; }; }
2044
2045 { echo "$as_me:$LINENO: checking build system type" >&5
2046 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2047 if test "${ac_cv_build+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   ac_build_alias=$build_alias
2051 test "x$ac_build_alias" = x &&
2052   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2053 test "x$ac_build_alias" = x &&
2054   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2055 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2056    { (exit 1); exit 1; }; }
2057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2058   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2059 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 fi
2063 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2064 echo "${ECHO_T}$ac_cv_build" >&6; }
2065 case $ac_cv_build in
2066 *-*-*) ;;
2067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2068 echo "$as_me: error: invalid value of canonical build" >&2;}
2069    { (exit 1); exit 1; }; };;
2070 esac
2071 build=$ac_cv_build
2072 ac_save_IFS=$IFS; IFS='-'
2073 set x $ac_cv_build
2074 shift
2075 build_cpu=$1
2076 build_vendor=$2
2077 shift; shift
2078 # Remember, the first character of IFS is used to create $*,
2079 # except with old shells:
2080 build_os=$*
2081 IFS=$ac_save_IFS
2082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2083
2084
2085 { echo "$as_me:$LINENO: checking host system type" >&5
2086 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2087 if test "${ac_cv_host+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test "x$host_alias" = x; then
2091   ac_cv_host=$ac_cv_build
2092 else
2093   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2094     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2095 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2096    { (exit 1); exit 1; }; }
2097 fi
2098
2099 fi
2100 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2101 echo "${ECHO_T}$ac_cv_host" >&6; }
2102 case $ac_cv_host in
2103 *-*-*) ;;
2104 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2105 echo "$as_me: error: invalid value of canonical host" >&2;}
2106    { (exit 1); exit 1; }; };;
2107 esac
2108 host=$ac_cv_host
2109 ac_save_IFS=$IFS; IFS='-'
2110 set x $ac_cv_host
2111 shift
2112 host_cpu=$1
2113 host_vendor=$2
2114 shift; shift
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2117 host_os=$*
2118 IFS=$ac_save_IFS
2119 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2120
2121
2122 { echo "$as_me:$LINENO: checking target system type" >&5
2123 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_target+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   if test "x$target_alias" = x; then
2128   ac_cv_target=$ac_cv_host
2129 else
2130   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2131     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2133    { (exit 1); exit 1; }; }
2134 fi
2135
2136 fi
2137 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2138 echo "${ECHO_T}$ac_cv_target" >&6; }
2139 case $ac_cv_target in
2140 *-*-*) ;;
2141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2142 echo "$as_me: error: invalid value of canonical target" >&2;}
2143    { (exit 1); exit 1; }; };;
2144 esac
2145 target=$ac_cv_target
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_target
2148 shift
2149 target_cpu=$1
2150 target_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 target_os=$*
2155 IFS=$ac_save_IFS
2156 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2157
2158
2159 # The aliases save the names the user supplied, while $host etc.
2160 # will get canonicalized.
2161 test -n "$target_alias" &&
2162   test "$program_prefix$program_suffix$program_transform_name" = \
2163     NONENONEs,x,x, &&
2164   program_prefix=${target_alias}-
2165 ac_ext=c
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170
2171 rm -rf .tst 2>/dev/null
2172 mkdir .tst 2>/dev/null
2173 if test -d .tst; then
2174   am__leading_dot=.
2175 else
2176   am__leading_dot=_
2177 fi
2178 rmdir .tst 2>/dev/null
2179
2180 DEPDIR="${am__leading_dot}deps"
2181
2182 ac_config_commands="$ac_config_commands depfiles"
2183
2184
2185 am_make=${MAKE-make}
2186 cat > confinc << 'END'
2187 am__doit:
2188         @echo done
2189 .PHONY: am__doit
2190 END
2191 # If we don't find an include directive, just comment out the code.
2192 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2193 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2194 am__include="#"
2195 am__quote=
2196 _am_result=none
2197 # First try GNU make style include.
2198 echo "include confinc" > confmf
2199 # We grep out `Entering directory' and `Leaving directory'
2200 # messages which can occur if `w' ends up in MAKEFLAGS.
2201 # In particular we don't look at `^make:' because GNU make might
2202 # be invoked under some other name (usually "gmake"), in which
2203 # case it prints its new name instead of `make'.
2204 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2205    am__include=include
2206    am__quote=
2207    _am_result=GNU
2208 fi
2209 # Now try BSD make style include.
2210 if test "$am__include" = "#"; then
2211    echo '.include "confinc"' > confmf
2212    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2213       am__include=.include
2214       am__quote="\""
2215       _am_result=BSD
2216    fi
2217 fi
2218
2219
2220 { echo "$as_me:$LINENO: result: $_am_result" >&5
2221 echo "${ECHO_T}$_am_result" >&6; }
2222 rm -f confinc confmf
2223
2224 # Check whether --enable-dependency-tracking was given.
2225 if test "${enable_dependency_tracking+set}" = set; then
2226   enableval=$enable_dependency_tracking;
2227 fi
2228
2229 if test "x$enable_dependency_tracking" != xno; then
2230   am_depcomp="$ac_aux_dir/depcomp"
2231   AMDEPBACKSLASH='\'
2232 fi
2233  if test "x$enable_dependency_tracking" != xno; then
2234   AMDEP_TRUE=
2235   AMDEP_FALSE='#'
2236 else
2237   AMDEP_TRUE='#'
2238   AMDEP_FALSE=
2239 fi
2240
2241
2242
2243 for ac_prog in gcj
2244 do
2245   # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_GCJ+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   if test -n "$GCJ"; then
2253   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_exec_ext in '' $ac_executable_extensions; do
2261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262     ac_cv_prog_GCJ="$ac_prog"
2263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265   fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270 fi
2271 fi
2272 GCJ=$ac_cv_prog_GCJ
2273 if test -n "$GCJ"; then
2274   { echo "$as_me:$LINENO: result: $GCJ" >&5
2275 echo "${ECHO_T}$GCJ" >&6; }
2276 else
2277   { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
2281
2282   test -n "$GCJ" && break
2283 done
2284 test -n "$GCJ" || GCJ="gcj"
2285
2286 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2287 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2288    { (exit 1); exit 1; }; }
2289 if test "x${GCJFLAGS-unset}" = xunset; then
2290    GCJFLAGS="-g -O2"
2291 fi
2292
2293
2294 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2295
2296 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2297 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2298 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2302   # We make a subdir and do the tests there.  Otherwise we can end up
2303   # making bogus files that we don't know about and never remove.  For
2304   # instance it was reported that on HP-UX the gcc test will end up
2305   # making a dummy file named `D' -- because `-MD' means `put the output
2306   # in D'.
2307   mkdir conftest.dir
2308   # Copy depcomp to subdir because otherwise we won't find it if we're
2309   # using a relative directory.
2310   cp "$am_depcomp" conftest.dir
2311   cd conftest.dir
2312   # We will build objects and dependencies in a subdirectory because
2313   # it helps to detect inapplicable dependency modes.  For instance
2314   # both Tru64's cc and ICC support -MD to output dependencies as a
2315   # side effect of compilation, but ICC will put the dependencies in
2316   # the current directory while Tru64 will put them in the object
2317   # directory.
2318   mkdir sub
2319
2320   am_cv_GCJ_dependencies_compiler_type=none
2321   if test "$am_compiler_list" = ""; then
2322      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2323   fi
2324   for depmode in $am_compiler_list; do
2325     # Setup a source with many dependencies, because some compilers
2326     # like to wrap large dependency lists on column 80 (with \), and
2327     # we should not choose a depcomp mode which is confused by this.
2328     #
2329     # We need to recreate these files for each test, as the compiler may
2330     # overwrite some of them when testing with obscure command lines.
2331     # This happens at least with the AIX C compiler.
2332     : > sub/conftest.c
2333     for i in 1 2 3 4 5 6; do
2334       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2335       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2336       # Solaris 8's {/usr,}/bin/sh.
2337       touch sub/conftst$i.h
2338     done
2339     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2340
2341     case $depmode in
2342     nosideeffect)
2343       # after this tag, mechanisms are not by side-effect, so they'll
2344       # only be used when explicitly requested
2345       if test "x$enable_dependency_tracking" = xyes; then
2346         continue
2347       else
2348         break
2349       fi
2350       ;;
2351     none) break ;;
2352     esac
2353     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2354     # mode.  It turns out that the SunPro C++ compiler does not properly
2355     # handle `-M -o', and we need to detect this.
2356     if depmode=$depmode \
2357        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2358        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2359        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2360          >/dev/null 2>conftest.err &&
2361        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2362        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2363        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2364        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2365       # icc doesn't choke on unknown options, it will just issue warnings
2366       # or remarks (even with -Werror).  So we grep stderr for any message
2367       # that says an option was ignored or not supported.
2368       # When given -MP, icc 7.0 and 7.1 complain thusly:
2369       #   icc: Command line warning: ignoring option '-M'; no argument required
2370       # The diagnosis changed in icc 8.0:
2371       #   icc: Command line remark: option '-MP' not supported
2372       if (grep 'ignoring option' conftest.err ||
2373           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2374         am_cv_GCJ_dependencies_compiler_type=$depmode
2375         break
2376       fi
2377     fi
2378   done
2379
2380   cd ..
2381   rm -rf conftest.dir
2382 else
2383   am_cv_GCJ_dependencies_compiler_type=none
2384 fi
2385
2386 fi
2387 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2388 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2389 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2390
2391  if
2392   test "x$enable_dependency_tracking" != xno \
2393   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2394   am__fastdepGCJ_TRUE=
2395   am__fastdepGCJ_FALSE='#'
2396 else
2397   am__fastdepGCJ_TRUE='#'
2398   am__fastdepGCJ_FALSE=
2399 fi
2400
2401
2402
2403
2404 am__api_version='1.10'
2405
2406 # Find a good install program.  We prefer a C program (faster),
2407 # so one script is as good as another.  But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2412 # AIX /bin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2420 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2421 if test -z "$INSTALL"; then
2422 if test "${ac_cv_path_install+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   # Account for people who put trailing slashes in PATH elements.
2431 case $as_dir/ in
2432   ./ | .// | /cC/* | \
2433   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2434   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2435   /usr/ucb/* ) ;;
2436   *)
2437     # OSF1 and SCO ODT 3.0 have their own names for install.
2438     # Don't use installbsd from OSF since it installs stuff as root
2439     # by default.
2440     for ac_prog in ginstall scoinst install; do
2441       for ac_exec_ext in '' $ac_executable_extensions; do
2442         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2443           if test $ac_prog = install &&
2444             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445             # AIX install.  It has an incompatible calling convention.
2446             :
2447           elif test $ac_prog = install &&
2448             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449             # program-specific install script used by HP pwplus--don't use.
2450             :
2451           else
2452             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453             break 3
2454           fi
2455         fi
2456       done
2457     done
2458     ;;
2459 esac
2460 done
2461 IFS=$as_save_IFS
2462
2463
2464 fi
2465   if test "${ac_cv_path_install+set}" = set; then
2466     INSTALL=$ac_cv_path_install
2467   else
2468     # As a last resort, use the slow shell script.  Don't cache a
2469     # value for INSTALL within a source directory, because that will
2470     # break other packages using the cache if that directory is
2471     # removed, or if the value is a relative name.
2472     INSTALL=$ac_install_sh
2473   fi
2474 fi
2475 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2476 echo "${ECHO_T}$INSTALL" >&6; }
2477
2478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2479 # It thinks the first close brace ends the variable substitution.
2480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2481
2482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2483
2484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2485
2486 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2488 # Just in case
2489 sleep 1
2490 echo timestamp > conftest.file
2491 # Do `set' in a subshell so we don't clobber the current shell's
2492 # arguments.  Must try -L first in case configure is actually a
2493 # symlink; some systems play weird games with the mod time of symlinks
2494 # (eg FreeBSD returns the mod time of the symlink's containing
2495 # directory).
2496 if (
2497    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2498    if test "$*" = "X"; then
2499       # -L didn't work.
2500       set X `ls -t $srcdir/configure conftest.file`
2501    fi
2502    rm -f conftest.file
2503    if test "$*" != "X $srcdir/configure conftest.file" \
2504       && test "$*" != "X conftest.file $srcdir/configure"; then
2505
2506       # If neither matched, then we have a broken ls.  This can happen
2507       # if, for instance, CONFIG_SHELL is bash and it inherits a
2508       # broken ls alias from the environment.  This has actually
2509       # happened.  Such a system could not be considered "sane".
2510       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2511 alias in your environment" >&5
2512 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2513 alias in your environment" >&2;}
2514    { (exit 1); exit 1; }; }
2515    fi
2516
2517    test "$2" = conftest.file
2518    )
2519 then
2520    # Ok.
2521    :
2522 else
2523    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2524 Check your system clock" >&5
2525 echo "$as_me: error: newly created file is older than distributed files!
2526 Check your system clock" >&2;}
2527    { (exit 1); exit 1; }; }
2528 fi
2529 { echo "$as_me:$LINENO: result: yes" >&5
2530 echo "${ECHO_T}yes" >&6; }
2531 test "$program_prefix" != NONE &&
2532   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.  echo might interpret backslashes.
2537 # By default was `s,x,x', remove it if useless.
2538 cat <<\_ACEOF >conftest.sed
2539 s/[\\$]/&&/g;s/;s,x,x,$//
2540 _ACEOF
2541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2542 rm -f conftest.sed
2543
2544 # expand $ac_aux_dir to an absolute path
2545 am_aux_dir=`cd $ac_aux_dir && pwd`
2546
2547 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2548 # Use eval to expand $SHELL
2549 if eval "$MISSING --run true"; then
2550   am_missing_run="$MISSING --run "
2551 else
2552   am_missing_run=
2553   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2554 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2555 fi
2556
2557 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2558 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2559 if test -z "$MKDIR_P"; then
2560   if test "${ac_cv_path_mkdir+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_prog in mkdir gmkdir; do
2569          for ac_exec_ext in '' $ac_executable_extensions; do
2570            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2571            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2572              'mkdir (GNU coreutils) '* | \
2573              'mkdir (coreutils) '* | \
2574              'mkdir (fileutils) '4.1*)
2575                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2576                break 3;;
2577            esac
2578          done
2579        done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584
2585   if test "${ac_cv_path_mkdir+set}" = set; then
2586     MKDIR_P="$ac_cv_path_mkdir -p"
2587   else
2588     # As a last resort, use the slow shell script.  Don't cache a
2589     # value for MKDIR_P within a source directory, because that will
2590     # break other packages using the cache if that directory is
2591     # removed, or if the value is a relative name.
2592     test -d ./--version && rmdir ./--version
2593     MKDIR_P="$ac_install_sh -d"
2594   fi
2595 fi
2596 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2597 echo "${ECHO_T}$MKDIR_P" >&6; }
2598
2599 mkdir_p="$MKDIR_P"
2600 case $mkdir_p in
2601   [\\/$]* | ?:[\\/]*) ;;
2602   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2603 esac
2604
2605 for ac_prog in gawk mawk nawk awk
2606 do
2607   # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_AWK+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   if test -n "$AWK"; then
2615   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622   for ac_exec_ext in '' $ac_executable_extensions; do
2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624     ac_cv_prog_AWK="$ac_prog"
2625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 AWK=$ac_cv_prog_AWK
2635 if test -n "$AWK"; then
2636   { echo "$as_me:$LINENO: result: $AWK" >&5
2637 echo "${ECHO_T}$AWK" >&6; }
2638 else
2639   { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2641 fi
2642
2643
2644   test -n "$AWK" && break
2645 done
2646
2647 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2648 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2649 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   cat >conftest.make <<\_ACEOF
2654 SHELL = /bin/sh
2655 all:
2656         @echo '@@@%%%=$(MAKE)=@@@%%%'
2657 _ACEOF
2658 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2660   *@@@%%%=?*=@@@%%%*)
2661     eval ac_cv_prog_make_${ac_make}_set=yes;;
2662   *)
2663     eval ac_cv_prog_make_${ac_make}_set=no;;
2664 esac
2665 rm -f conftest.make
2666 fi
2667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668   { echo "$as_me:$LINENO: result: yes" >&5
2669 echo "${ECHO_T}yes" >&6; }
2670   SET_MAKE=
2671 else
2672   { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674   SET_MAKE="MAKE=${MAKE-make}"
2675 fi
2676
2677 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2678   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2679   # is not polluted with repeated "-I."
2680   am__isrc=' -I$(srcdir)'
2681   # test to see if srcdir already configured
2682   if test -f $srcdir/config.status; then
2683     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2684 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2685    { (exit 1); exit 1; }; }
2686   fi
2687 fi
2688
2689 # test whether we have cygpath
2690 if test -z "$CYGPATH_W"; then
2691   if (cygpath --version) >/dev/null 2>/dev/null; then
2692     CYGPATH_W='cygpath -w'
2693   else
2694     CYGPATH_W=echo
2695   fi
2696 fi
2697
2698
2699 # Define the identity of the package.
2700  PACKAGE='simgrid'
2701  VERSION='3.3-cvs'
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE "$PACKAGE"
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define VERSION "$VERSION"
2711 _ACEOF
2712
2713 # Some tools Automake needs.
2714
2715 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2716
2717
2718 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2719
2720
2721 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2722
2723
2724 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2725
2726
2727 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2728
2729 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2730
2731 # Installed binaries are usually stripped using `strip' when the user
2732 # run `make install-strip'.  However `strip' might not be the right
2733 # tool to use in cross-compilation environments, therefore Automake
2734 # will honor the `STRIP' environment variable to overrule this program.
2735 if test "$cross_compiling" != no; then
2736   if test -n "$ac_tool_prefix"; then
2737   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}strip; ac_word=$2
2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741 if test "${ac_cv_prog_STRIP+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   if test -n "$STRIP"; then
2745   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 STRIP=$ac_cv_prog_STRIP
2765 if test -n "$STRIP"; then
2766   { echo "$as_me:$LINENO: result: $STRIP" >&5
2767 echo "${ECHO_T}$STRIP" >&6; }
2768 else
2769   { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2771 fi
2772
2773
2774 fi
2775 if test -z "$ac_cv_prog_STRIP"; then
2776   ac_ct_STRIP=$STRIP
2777   # Extract the first word of "strip", so it can be a program name with args.
2778 set dummy strip; ac_word=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   if test -n "$ac_ct_STRIP"; then
2785   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792   for ac_exec_ext in '' $ac_executable_extensions; do
2793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794     ac_cv_prog_ac_ct_STRIP="strip"
2795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2805 if test -n "$ac_ct_STRIP"; then
2806   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2807 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2808 else
2809   { echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6; }
2811 fi
2812
2813   if test "x$ac_ct_STRIP" = x; then
2814     STRIP=":"
2815   else
2816     case $cross_compiling:$ac_tool_warned in
2817 yes:)
2818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2819 whose name does not start with the host triplet.  If you think this
2820 configuration is useful to you, please write to autoconf@gnu.org." >&5
2821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet.  If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2824 ac_tool_warned=yes ;;
2825 esac
2826     STRIP=$ac_ct_STRIP
2827   fi
2828 else
2829   STRIP="$ac_cv_prog_STRIP"
2830 fi
2831
2832 fi
2833 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2834
2835 # We need awk for the "check" target.  The system "awk" is bad on
2836 # some platforms.
2837 # Always define AMTAR for backward compatibility.
2838
2839 AMTAR=${AMTAR-"${am_missing_run}tar"}
2840
2841 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2842
2843
2844
2845
2846
2847
2848 ACLOCAL="$ACLOCAL -I acmacro"
2849
2850
2851
2852
2853
2854
2855 # Check whether --enable-shared was given.
2856 if test "${enable_shared+set}" = set; then
2857   enableval=$enable_shared; p=${PACKAGE-default}
2858     case $enableval in
2859     yes) enable_shared=yes ;;
2860     no) enable_shared=no ;;
2861     *)
2862       enable_shared=no
2863       # Look at the argument we got.  We use all the common list separators.
2864       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2865       for pkg in $enableval; do
2866         IFS="$lt_save_ifs"
2867         if test "X$pkg" = "X$p"; then
2868           enable_shared=yes
2869         fi
2870       done
2871       IFS="$lt_save_ifs"
2872       ;;
2873     esac
2874 else
2875   enable_shared=yes
2876 fi
2877
2878
2879 # Check whether --enable-static was given.
2880 if test "${enable_static+set}" = set; then
2881   enableval=$enable_static; p=${PACKAGE-default}
2882     case $enableval in
2883     yes) enable_static=yes ;;
2884     no) enable_static=no ;;
2885     *)
2886      enable_static=no
2887       # Look at the argument we got.  We use all the common list separators.
2888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2889       for pkg in $enableval; do
2890         IFS="$lt_save_ifs"
2891         if test "X$pkg" = "X$p"; then
2892           enable_static=yes
2893         fi
2894       done
2895       IFS="$lt_save_ifs"
2896       ;;
2897     esac
2898 else
2899   enable_static=yes
2900 fi
2901
2902
2903 # Check whether --enable-fast-install was given.
2904 if test "${enable_fast_install+set}" = set; then
2905   enableval=$enable_fast_install; p=${PACKAGE-default}
2906     case $enableval in
2907     yes) enable_fast_install=yes ;;
2908     no) enable_fast_install=no ;;
2909     *)
2910       enable_fast_install=no
2911       # Look at the argument we got.  We use all the common list separators.
2912       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2913       for pkg in $enableval; do
2914         IFS="$lt_save_ifs"
2915         if test "X$pkg" = "X$p"; then
2916           enable_fast_install=yes
2917         fi
2918       done
2919       IFS="$lt_save_ifs"
2920       ;;
2921     esac
2922 else
2923   enable_fast_install=yes
2924 fi
2925
2926
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2937 if test "${ac_cv_prog_CC+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   if test -n "$CC"; then
2941   ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962   { echo "$as_me:$LINENO: result: $CC" >&5
2963 echo "${ECHO_T}$CC" >&6; }
2964 else
2965   { echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_CC"; then
2972   ac_ct_CC=$CC
2973   # Extract the first word of "gcc", so it can be a program name with args.
2974 set dummy gcc; ac_word=$2
2975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2978   echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980   if test -n "$ac_ct_CC"; then
2981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     ac_cv_prog_ac_ct_CC="gcc"
2991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3003 echo "${ECHO_T}$ac_ct_CC" >&6; }
3004 else
3005   { echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6; }
3007 fi
3008
3009   if test "x$ac_ct_CC" = x; then
3010     CC=""
3011   else
3012     case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3015 whose name does not start with the host triplet.  If you think this
3016 configuration is useful to you, please write to autoconf@gnu.org." >&5
3017 echo "$as_me: 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." >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022     CC=$ac_ct_CC
3023   fi
3024 else
3025   CC="$ac_cv_prog_CC"
3026 fi
3027
3028 if test -z "$CC"; then
3029           if test -n "$ac_tool_prefix"; then
3030     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if test -n "$CC"; then
3038   ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047     ac_cv_prog_CC="${ac_tool_prefix}cc"
3048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059   { echo "$as_me:$LINENO: result: $CC" >&5
3060 echo "${ECHO_T}$CC" >&6; }
3061 else
3062   { echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6; }
3064 fi
3065
3066
3067   fi
3068 fi
3069 if test -z "$CC"; then
3070   # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_CC+set}" = set; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077   if test -n "$CC"; then
3078   ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080   ac_prog_rejected=no
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089        ac_prog_rejected=yes
3090        continue
3091      fi
3092     ac_cv_prog_CC="cc"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 if test $ac_prog_rejected = yes; then
3101   # We found a bogon in the path, so make sure we never use it.
3102   set dummy $ac_cv_prog_CC
3103   shift
3104   if test $# != 0; then
3105     # We chose a different compiler from the bogus one.
3106     # However, it has the same basename, so the bogon will be chosen
3107     # first if we set CC to just the basename; use the full file name.
3108     shift
3109     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110   fi
3111 fi
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116   { echo "$as_me:$LINENO: result: $CC" >&5
3117 echo "${ECHO_T}$CC" >&6; }
3118 else
3119   { echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$CC"; then
3126   if test -n "$ac_tool_prefix"; then
3127   for ac_prog in cl.exe
3128   do
3129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144   for ac_exec_ext in '' $ac_executable_extensions; do
3145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158   { echo "$as_me:$LINENO: result: $CC" >&5
3159 echo "${ECHO_T}$CC" >&6; }
3160 else
3161   { echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6; }
3163 fi
3164
3165
3166     test -n "$CC" && break
3167   done
3168 fi
3169 if test -z "$CC"; then
3170   ac_ct_CC=$CC
3171   for ac_prog in cl.exe
3172 do
3173   # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_CC"; then
3181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     ac_cv_prog_ac_ct_CC="$ac_prog"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3203 echo "${ECHO_T}$ac_ct_CC" >&6; }
3204 else
3205   { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3207 fi
3208
3209
3210   test -n "$ac_ct_CC" && break
3211 done
3212
3213   if test "x$ac_ct_CC" = x; then
3214     CC=""
3215   else
3216     case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3219 whose name does not start with the host triplet.  If you think this
3220 configuration is useful to you, please write to autoconf@gnu.org." >&5
3221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3222 whose name does not start with the host triplet.  If you think this
3223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226     CC=$ac_ct_CC
3227   fi
3228 fi
3229
3230 fi
3231
3232
3233 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237    { (exit 1); exit 1; }; }
3238
3239 # Provide some information about the compiler.
3240 echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 ac_compiler=`set X $ac_compile; echo $2`
3242 { (ac_try="$ac_compiler --version >&5"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248   (eval "$ac_compiler --version >&5") 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }
3252 { (ac_try="$ac_compiler -v >&5"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_compiler -v >&5") 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_compiler -V >&5") 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }
3272
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279
3280 int
3281 main ()
3282 {
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3292 # of exeext.
3293 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296 #
3297 # List of possible output files, starting from the most likely.
3298 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3299 # only as a last resort.  b.out is created by i960 compilers.
3300 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3301 #
3302 # The IRIX 6 linker writes into existing files which may not be
3303 # executable, retaining their permissions.  Remove them first so a
3304 # subsequent execution test works.
3305 ac_rmfiles=
3306 for ac_file in $ac_files
3307 do
3308   case $ac_file in
3309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3310     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311   esac
3312 done
3313 rm -f $ac_rmfiles
3314
3315 if { (ac_try="$ac_link_default"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_link_default") 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; then
3325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3335         ;;
3336     [ab].out )
3337         # We found the default executable, but exeext='' is most
3338         # certainly right.
3339         break;;
3340     *.* )
3341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342         then :; else
3343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344         fi
3345         # We set ac_cv_exeext here because the later test for it is not
3346         # safe: cross compilers may not add the suffix if given an `-o'
3347         # argument, so we may need to know it at that point already.
3348         # Even if this section looks crufty: it has the advantage of
3349         # actually working.
3350         break;;
3351     * )
3352         break;;
3353   esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358   ac_file=''
3359 fi
3360
3361 { echo "$as_me:$LINENO: result: $ac_file" >&5
3362 echo "${ECHO_T}$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&5
3369 echo "$as_me: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&2;}
3371    { (exit 77); exit 77; }; }
3372 fi
3373
3374 ac_exeext=$ac_cv_exeext
3375
3376 # Check that the compiler produces executables we can run.  If not, either
3377 # the compiler is broken, or we cross compile.
3378 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3379 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383   if { ac_try='./$ac_file'
3384   { (case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_try") 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; }; then
3393     cross_compiling=no
3394   else
3395     if test "$cross_compiling" = maybe; then
3396         cross_compiling=yes
3397     else
3398         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details." >&5
3401 echo "$as_me: error: cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." >&2;}
3404    { (exit 1); exit 1; }; }
3405     fi
3406   fi
3407 fi
3408 { echo "$as_me:$LINENO: result: yes" >&5
3409 echo "${ECHO_T}yes" >&6; }
3410
3411 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3412 ac_clean_files=$ac_clean_files_save
3413 # Check that the compiler produces executables we can run.  If not, either
3414 # the compiler is broken, or we cross compile.
3415 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3416 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3417 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3418 echo "${ECHO_T}$cross_compiling" >&6; }
3419
3420 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3421 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3422 if { (ac_try="$ac_link"
3423 case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; then
3432   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 # `rm'.
3436 for ac_file in conftest.exe conftest conftest.*; do
3437   test -f "$ac_file" || continue
3438   case $ac_file in
3439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3440     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441           break;;
3442     * ) break;;
3443   esac
3444 done
3445 else
3446   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details." >&2;}
3450    { (exit 1); exit 1; }; }
3451 fi
3452
3453 rm -f conftest$ac_cv_exeext
3454 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3455 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3456
3457 rm -f conftest.$ac_ext
3458 EXEEXT=$ac_cv_exeext
3459 ac_exeext=$EXEEXT
3460 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3461 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3462 if test "${ac_cv_objext+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.o conftest.obj
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); }; then
3491   for ac_file in conftest.o conftest.obj conftest.*; do
3492   test -f "$ac_file" || continue;
3493   case $ac_file in
3494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3495     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3496        break;;
3497   esac
3498 done
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." >&5
3505 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details." >&2;}
3507    { (exit 1); exit 1; }; }
3508 fi
3509
3510 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3511 fi
3512 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3513 echo "${ECHO_T}$ac_cv_objext" >&6; }
3514 OBJEXT=$ac_cv_objext
3515 ac_objext=$OBJEXT
3516 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3517 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3518 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531 #ifndef __GNUC__
3532        choke me
3533 #endif
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_compile") 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } && {
3553          test -z "$ac_c_werror_flag" ||
3554          test ! -s conftest.err
3555        } && test -s conftest.$ac_objext; then
3556   ac_compiler_gnu=yes
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561         ac_compiler_gnu=no
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567 fi
3568 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3569 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3570 GCC=`test $ac_compiler_gnu = yes && echo yes`
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3573 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3574 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_cc_g+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   ac_save_c_werror_flag=$ac_c_werror_flag
3579    ac_c_werror_flag=yes
3580    ac_cv_prog_cc_g=no
3581    CFLAGS="-g"
3582    cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (ac_try="$ac_compile"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604   (eval "$ac_compile") 2>conftest.er1
3605   ac_status=$?
3606   grep -v '^ *+' conftest.er1 >conftest.err
3607   rm -f conftest.er1
3608   cat conftest.err >&5
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); } && {
3611          test -z "$ac_c_werror_flag" ||
3612          test ! -s conftest.err
3613        } && test -s conftest.$ac_objext; then
3614   ac_cv_prog_cc_g=yes
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619         CFLAGS=""
3620       cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626
3627 int
3628 main ()
3629 {
3630
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642   (eval "$ac_compile") 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } && {
3649          test -z "$ac_c_werror_flag" ||
3650          test ! -s conftest.err
3651        } && test -s conftest.$ac_objext; then
3652   :
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657         ac_c_werror_flag=$ac_save_c_werror_flag
3658          CFLAGS="-g"
3659          cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665
3666 int
3667 main ()
3668 {
3669
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_compile") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } && {
3688          test -z "$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        } && test -s conftest.$ac_objext; then
3691   ac_cv_prog_cc_g=yes
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706    ac_c_werror_flag=$ac_save_c_werror_flag
3707 fi
3708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3710 if test "$ac_test_CFLAGS" = set; then
3711   CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713   if test "$GCC" = yes; then
3714     CFLAGS="-g -O2"
3715   else
3716     CFLAGS="-g"
3717   fi
3718 else
3719   if test "$GCC" = yes; then
3720     CFLAGS="-O2"
3721   else
3722     CFLAGS=
3723   fi
3724 fi
3725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3727 if test "${ac_cv_prog_cc_c89+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   ac_cv_prog_cc_c89=no
3731 ac_save_CC=$CC
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738 #include <stdarg.h>
3739 #include <stdio.h>
3740 #include <sys/types.h>
3741 #include <sys/stat.h>
3742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3743 struct buf { int x; };
3744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745 static char *e (p, i)
3746      char **p;
3747      int i;
3748 {
3749   return p[i];
3750 }
3751 static char *f (char * (*g) (char **, int), char **p, ...)
3752 {
3753   char *s;
3754   va_list v;
3755   va_start (v,p);
3756   s = g (p, va_arg (v,int));
3757   va_end (v);
3758   return s;
3759 }
3760
3761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3762    function prototypes and stuff, but not '\xHH' hex character constants.
3763    These don't provoke an error unfortunately, instead are silently treated
3764    as 'x'.  The following induces an error, until -std is added to get
3765    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3766    array size at least.  It's necessary to write '\x00'==0 to get something
3767    that's true only with -std.  */
3768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3769
3770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3771    inside strings and character constants.  */
3772 #define FOO(x) 'x'
3773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3774
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3779 int argc;
3780 char **argv;
3781 int
3782 main ()
3783 {
3784 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3790         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3791 do
3792   CC="$ac_save_CC $ac_arg"
3793   rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compile") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } && {
3807          test -z "$ac_c_werror_flag" ||
3808          test ! -s conftest.err
3809        } && test -s conftest.$ac_objext; then
3810   ac_cv_prog_cc_c89=$ac_arg
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext
3819   test "x$ac_cv_prog_cc_c89" != "xno" && break
3820 done
3821 rm -f conftest.$ac_ext
3822 CC=$ac_save_CC
3823
3824 fi
3825 # AC_CACHE_VAL
3826 case "x$ac_cv_prog_cc_c89" in
3827   x)
3828     { echo "$as_me:$LINENO: result: none needed" >&5
3829 echo "${ECHO_T}none needed" >&6; } ;;
3830   xno)
3831     { echo "$as_me:$LINENO: result: unsupported" >&5
3832 echo "${ECHO_T}unsupported" >&6; } ;;
3833   *)
3834     CC="$CC $ac_cv_prog_cc_c89"
3835     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3836 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3837 esac
3838
3839
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846 depcc="$CC"   am_compiler_list=
3847
3848 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3849 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3850 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854   # We make a subdir and do the tests there.  Otherwise we can end up
3855   # making bogus files that we don't know about and never remove.  For
3856   # instance it was reported that on HP-UX the gcc test will end up
3857   # making a dummy file named `D' -- because `-MD' means `put the output
3858   # in D'.
3859   mkdir conftest.dir
3860   # Copy depcomp to subdir because otherwise we won't find it if we're
3861   # using a relative directory.
3862   cp "$am_depcomp" conftest.dir
3863   cd conftest.dir
3864   # We will build objects and dependencies in a subdirectory because
3865   # it helps to detect inapplicable dependency modes.  For instance
3866   # both Tru64's cc and ICC support -MD to output dependencies as a
3867   # side effect of compilation, but ICC will put the dependencies in
3868   # the current directory while Tru64 will put them in the object
3869   # directory.
3870   mkdir sub
3871
3872   am_cv_CC_dependencies_compiler_type=none
3873   if test "$am_compiler_list" = ""; then
3874      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875   fi
3876   for depmode in $am_compiler_list; do
3877     # Setup a source with many dependencies, because some compilers
3878     # like to wrap large dependency lists on column 80 (with \), and
3879     # we should not choose a depcomp mode which is confused by this.
3880     #
3881     # We need to recreate these files for each test, as the compiler may
3882     # overwrite some of them when testing with obscure command lines.
3883     # This happens at least with the AIX C compiler.
3884     : > sub/conftest.c
3885     for i in 1 2 3 4 5 6; do
3886       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888       # Solaris 8's {/usr,}/bin/sh.
3889       touch sub/conftst$i.h
3890     done
3891     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
3893     case $depmode in
3894     nosideeffect)
3895       # after this tag, mechanisms are not by side-effect, so they'll
3896       # only be used when explicitly requested
3897       if test "x$enable_dependency_tracking" = xyes; then
3898         continue
3899       else
3900         break
3901       fi
3902       ;;
3903     none) break ;;
3904     esac
3905     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3906     # mode.  It turns out that the SunPro C++ compiler does not properly
3907     # handle `-M -o', and we need to detect this.
3908     if depmode=$depmode \
3909        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3910        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3911        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3912          >/dev/null 2>conftest.err &&
3913        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3914        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3915        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3916        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3917       # icc doesn't choke on unknown options, it will just issue warnings
3918       # or remarks (even with -Werror).  So we grep stderr for any message
3919       # that says an option was ignored or not supported.
3920       # When given -MP, icc 7.0 and 7.1 complain thusly:
3921       #   icc: Command line warning: ignoring option '-M'; no argument required
3922       # The diagnosis changed in icc 8.0:
3923       #   icc: Command line remark: option '-MP' not supported
3924       if (grep 'ignoring option' conftest.err ||
3925           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3926         am_cv_CC_dependencies_compiler_type=$depmode
3927         break
3928       fi
3929     fi
3930   done
3931
3932   cd ..
3933   rm -rf conftest.dir
3934 else
3935   am_cv_CC_dependencies_compiler_type=none
3936 fi
3937
3938 fi
3939 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3940 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3941 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3942
3943  if
3944   test "x$enable_dependency_tracking" != xno \
3945   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3946   am__fastdepCC_TRUE=
3947   am__fastdepCC_FALSE='#'
3948 else
3949   am__fastdepCC_TRUE='#'
3950   am__fastdepCC_FALSE=
3951 fi
3952
3953
3954 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3955 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3956 if test "${lt_cv_path_SED+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   # Loop through the user's path and test for sed and gsed.
3960 # Then use that list of sed's as ones to test for truncation.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for lt_ac_prog in sed gsed; do
3967     for ac_exec_ext in '' $ac_executable_extensions; do
3968       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3969         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3970       fi
3971     done
3972   done
3973 done
3974 IFS=$as_save_IFS
3975 lt_ac_max=0
3976 lt_ac_count=0
3977 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3978 # along with /bin/sed that truncates output.
3979 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3980   test ! -f $lt_ac_sed && continue
3981   cat /dev/null > conftest.in
3982   lt_ac_count=0
3983   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3984   # Check for GNU sed and select it if it is found.
3985   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3986     lt_cv_path_SED=$lt_ac_sed
3987     break
3988   fi
3989   while true; do
3990     cat conftest.in conftest.in >conftest.tmp
3991     mv conftest.tmp conftest.in
3992     cp conftest.in conftest.nl
3993     echo >>conftest.nl
3994     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3995     cmp -s conftest.out conftest.nl || break
3996     # 10000 chars as input seems more than enough
3997     test $lt_ac_count -gt 10 && break
3998     lt_ac_count=`expr $lt_ac_count + 1`
3999     if test $lt_ac_count -gt $lt_ac_max; then
4000       lt_ac_max=$lt_ac_count
4001       lt_cv_path_SED=$lt_ac_sed
4002     fi
4003   done
4004 done
4005
4006 fi
4007
4008 SED=$lt_cv_path_SED
4009
4010 { echo "$as_me:$LINENO: result: $SED" >&5
4011 echo "${ECHO_T}$SED" >&6; }
4012
4013 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4014 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_GREP+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   # Extract the first word of "grep ggrep" to use in msg output
4019 if test -z "$GREP"; then
4020 set dummy grep ggrep; ac_prog_name=$2
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_path_GREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_prog in grep ggrep; do
4032   for ac_exec_ext in '' $ac_executable_extensions; do
4033     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4035     # Check for GNU ac_path_GREP and select it if it is found.
4036   # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 *)
4041   ac_count=0
4042   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     echo 'GREP' >> "conftest.nl"
4049     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     ac_count=`expr $ac_count + 1`
4052     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_GREP="$ac_path_GREP"
4055       ac_path_GREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063
4064     $ac_path_GREP_found && break 3
4065   done
4066 done
4067
4068 done
4069 IFS=$as_save_IFS
4070
4071
4072 fi
4073
4074 GREP="$ac_cv_path_GREP"
4075 if test -z "$GREP"; then
4076   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078    { (exit 1); exit 1; }; }
4079 fi
4080
4081 else
4082   ac_cv_path_GREP=$GREP
4083 fi
4084
4085
4086 fi
4087 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4088 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4089  GREP="$ac_cv_path_GREP"
4090
4091
4092 { echo "$as_me:$LINENO: checking for egrep" >&5
4093 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4094 if test "${ac_cv_path_EGREP+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4098    then ac_cv_path_EGREP="$GREP -E"
4099    else
4100      # Extract the first word of "egrep" to use in msg output
4101 if test -z "$EGREP"; then
4102 set dummy egrep; ac_prog_name=$2
4103 if test "${ac_cv_path_EGREP+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   ac_path_EGREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113   for ac_prog in egrep; do
4114   for ac_exec_ext in '' $ac_executable_extensions; do
4115     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4116     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4117     # Check for GNU ac_path_EGREP and select it if it is found.
4118   # Check for GNU $ac_path_EGREP
4119 case `"$ac_path_EGREP" --version 2>&1` in
4120 *GNU*)
4121   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4122 *)
4123   ac_count=0
4124   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4125   while :
4126   do
4127     cat "conftest.in" "conftest.in" >"conftest.tmp"
4128     mv "conftest.tmp" "conftest.in"
4129     cp "conftest.in" "conftest.nl"
4130     echo 'EGREP' >> "conftest.nl"
4131     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133     ac_count=`expr $ac_count + 1`
4134     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4135       # Best one so far, save it but keep looking for a better one
4136       ac_cv_path_EGREP="$ac_path_EGREP"
4137       ac_path_EGREP_max=$ac_count
4138     fi
4139     # 10*(2^10) chars as input seems more than enough
4140     test $ac_count -gt 10 && break
4141   done
4142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 esac
4144
4145
4146     $ac_path_EGREP_found && break 3
4147   done
4148 done
4149
4150 done
4151 IFS=$as_save_IFS
4152
4153
4154 fi
4155
4156 EGREP="$ac_cv_path_EGREP"
4157 if test -z "$EGREP"; then
4158   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4159 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4160    { (exit 1); exit 1; }; }
4161 fi
4162
4163 else
4164   ac_cv_path_EGREP=$EGREP
4165 fi
4166
4167
4168    fi
4169 fi
4170 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4171 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4172  EGREP="$ac_cv_path_EGREP"
4173
4174
4175
4176 # Check whether --with-gnu-ld was given.
4177 if test "${with_gnu_ld+set}" = set; then
4178   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4179 else
4180   with_gnu_ld=no
4181 fi
4182
4183 ac_prog=ld
4184 if test "$GCC" = yes; then
4185   # Check if gcc -print-prog-name=ld gives a path.
4186   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4187 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4188   case $host in
4189   *-*-mingw*)
4190     # gcc leaves a trailing carriage return which upsets mingw
4191     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4192   *)
4193     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4194   esac
4195   case $ac_prog in
4196     # Accept absolute paths.
4197     [\\/]* | ?:[\\/]*)
4198       re_direlt='/[^/][^/]*/\.\./'
4199       # Canonicalize the pathname of ld
4200       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4201       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4202         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4203       done
4204       test -z "$LD" && LD="$ac_prog"
4205       ;;
4206   "")
4207     # If it fails, then pretend we aren't using GCC.
4208     ac_prog=ld
4209     ;;
4210   *)
4211     # If it is relative, then search for the first ld in PATH.
4212     with_gnu_ld=unknown
4213     ;;
4214   esac
4215 elif test "$with_gnu_ld" = yes; then
4216   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4217 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4218 else
4219   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4220 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4221 fi
4222 if test "${lt_cv_path_LD+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -z "$LD"; then
4226   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4227   for ac_dir in $PATH; do
4228     IFS="$lt_save_ifs"
4229     test -z "$ac_dir" && ac_dir=.
4230     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4231       lt_cv_path_LD="$ac_dir/$ac_prog"
4232       # Check to see if the program is GNU ld.  I'd rather use --version,
4233       # but apparently some variants of GNU ld only accept -v.
4234       # Break only if it was the GNU/non-GNU ld that we prefer.
4235       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4236       *GNU* | *'with BFD'*)
4237         test "$with_gnu_ld" != no && break
4238         ;;
4239       *)
4240         test "$with_gnu_ld" != yes && break
4241         ;;
4242       esac
4243     fi
4244   done
4245   IFS="$lt_save_ifs"
4246 else
4247   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4248 fi
4249 fi
4250
4251 LD="$lt_cv_path_LD"
4252 if test -n "$LD"; then
4253   { echo "$as_me:$LINENO: result: $LD" >&5
4254 echo "${ECHO_T}$LD" >&6; }
4255 else
4256   { echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6; }
4258 fi
4259 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4260 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4261    { (exit 1); exit 1; }; }
4262 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4263 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4268 case `$LD -v 2>&1 </dev/null` in
4269 *GNU* | *'with BFD'*)
4270   lt_cv_prog_gnu_ld=yes
4271   ;;
4272 *)
4273   lt_cv_prog_gnu_ld=no
4274   ;;
4275 esac
4276 fi
4277 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4279 with_gnu_ld=$lt_cv_prog_gnu_ld
4280
4281
4282 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4283 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4284 if test "${lt_cv_ld_reload_flag+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   lt_cv_ld_reload_flag='-r'
4288 fi
4289 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4290 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4291 reload_flag=$lt_cv_ld_reload_flag
4292 case $reload_flag in
4293 "" | " "*) ;;
4294 *) reload_flag=" $reload_flag" ;;
4295 esac
4296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4297 case $host_os in
4298   darwin*)
4299     if test "$GCC" = yes; then
4300       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4301     else
4302       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4303     fi
4304     ;;
4305 esac
4306
4307 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4308 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4309 if test "${lt_cv_path_NM+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   if test -n "$NM"; then
4313   # Let the user override the test.
4314   lt_cv_path_NM="$NM"
4315 else
4316   lt_nm_to_check="${ac_tool_prefix}nm"
4317   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4318     lt_nm_to_check="$lt_nm_to_check nm"
4319   fi
4320   for lt_tmp_nm in $lt_nm_to_check; do
4321     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4323       IFS="$lt_save_ifs"
4324       test -z "$ac_dir" && ac_dir=.
4325       tmp_nm="$ac_dir/$lt_tmp_nm"
4326       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4327         # Check to see if the nm accepts a BSD-compat flag.
4328         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4329         #   nm: unknown option "B" ignored
4330         # Tru64's nm complains that /dev/null is an invalid object file
4331         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4332         */dev/null* | *'Invalid file or object type'*)
4333           lt_cv_path_NM="$tmp_nm -B"
4334           break
4335           ;;
4336         *)
4337           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4338           */dev/null*)
4339             lt_cv_path_NM="$tmp_nm -p"
4340             break
4341             ;;
4342           *)
4343             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4344             continue # so that we can try to find one that supports BSD flags
4345             ;;
4346           esac
4347           ;;
4348         esac
4349       fi
4350     done
4351     IFS="$lt_save_ifs"
4352   done
4353   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4354 fi
4355 fi
4356 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4357 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4358 NM="$lt_cv_path_NM"
4359
4360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4362 LN_S=$as_ln_s
4363 if test "$LN_S" = "ln -s"; then
4364   { echo "$as_me:$LINENO: result: yes" >&5
4365 echo "${ECHO_T}yes" >&6; }
4366 else
4367   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4368 echo "${ECHO_T}no, using $LN_S" >&6; }
4369 fi
4370
4371 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4372 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4373 if test "${lt_cv_deplibs_check_method+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   lt_cv_file_magic_cmd='$MAGIC_CMD'
4377 lt_cv_file_magic_test_file=
4378 lt_cv_deplibs_check_method='unknown'
4379 # Need to set the preceding variable on all platforms that support
4380 # interlibrary dependencies.
4381 # 'none' -- dependencies not supported.
4382 # `unknown' -- same as none, but documents that we really don't know.
4383 # 'pass_all' -- all dependencies passed with no checks.
4384 # 'test_compile' -- check by making test program.
4385 # 'file_magic [[regex]]' -- check by looking for files in library path
4386 # which responds to the $file_magic_cmd with a given extended regex.
4387 # If you have `file' or equivalent on your system and you're not sure
4388 # whether `pass_all' will *always* work, you probably want this one.
4389
4390 case $host_os in
4391 aix4* | aix5*)
4392   lt_cv_deplibs_check_method=pass_all
4393   ;;
4394
4395 beos*)
4396   lt_cv_deplibs_check_method=pass_all
4397   ;;
4398
4399 bsdi[45]*)
4400   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4401   lt_cv_file_magic_cmd='/usr/bin/file -L'
4402   lt_cv_file_magic_test_file=/shlib/libc.so
4403   ;;
4404
4405 cygwin*)
4406   # func_win32_libid is a shell function defined in ltmain.sh
4407   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4408   lt_cv_file_magic_cmd='func_win32_libid'
4409   ;;
4410
4411 mingw* | pw32*)
4412   # Base MSYS/MinGW do not provide the 'file' command needed by
4413   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4414   # unless we find 'file', for example because we are cross-compiling.
4415   if ( file / ) >/dev/null 2>&1; then
4416     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4417     lt_cv_file_magic_cmd='func_win32_libid'
4418   else
4419     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4420     lt_cv_file_magic_cmd='$OBJDUMP -f'
4421   fi
4422   ;;
4423
4424 darwin* | rhapsody*)
4425   lt_cv_deplibs_check_method=pass_all
4426   ;;
4427
4428 freebsd* | dragonfly*)
4429   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4430     case $host_cpu in
4431     i*86 )
4432       # Not sure whether the presence of OpenBSD here was a mistake.
4433       # Let's accept both of them until this is cleared up.
4434       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4435       lt_cv_file_magic_cmd=/usr/bin/file
4436       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4437       ;;
4438     esac
4439   else
4440     lt_cv_deplibs_check_method=pass_all
4441   fi
4442   ;;
4443
4444 gnu*)
4445   lt_cv_deplibs_check_method=pass_all
4446   ;;
4447
4448 hpux10.20* | hpux11*)
4449   lt_cv_file_magic_cmd=/usr/bin/file
4450   case $host_cpu in
4451   ia64*)
4452     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4453     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4454     ;;
4455   hppa*64*)
4456     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]'
4457     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4458     ;;
4459   *)
4460     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4461     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4462     ;;
4463   esac
4464   ;;
4465
4466 interix[3-9]*)
4467   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4468   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4469   ;;
4470
4471 irix5* | irix6* | nonstopux*)
4472   case $LD in
4473   *-32|*"-32 ") libmagic=32-bit;;
4474   *-n32|*"-n32 ") libmagic=N32;;
4475   *-64|*"-64 ") libmagic=64-bit;;
4476   *) libmagic=never-match;;
4477   esac
4478   lt_cv_deplibs_check_method=pass_all
4479   ;;
4480
4481 # This must be Linux ELF.
4482 linux* | k*bsd*-gnu)
4483   lt_cv_deplibs_check_method=pass_all
4484   ;;
4485
4486 netbsd*)
4487   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4488     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4489   else
4490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4491   fi
4492   ;;
4493
4494 newos6*)
4495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4496   lt_cv_file_magic_cmd=/usr/bin/file
4497   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4498   ;;
4499
4500 nto-qnx*)
4501   lt_cv_deplibs_check_method=unknown
4502   ;;
4503
4504 openbsd*)
4505   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4506     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4507   else
4508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4509   fi
4510   ;;
4511
4512 osf3* | osf4* | osf5*)
4513   lt_cv_deplibs_check_method=pass_all
4514   ;;
4515
4516 rdos*)
4517   lt_cv_deplibs_check_method=pass_all
4518   ;;
4519
4520 solaris*)
4521   lt_cv_deplibs_check_method=pass_all
4522   ;;
4523
4524 sysv4 | sysv4.3*)
4525   case $host_vendor in
4526   motorola)
4527     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]'
4528     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4529     ;;
4530   ncr)
4531     lt_cv_deplibs_check_method=pass_all
4532     ;;
4533   sequent)
4534     lt_cv_file_magic_cmd='/bin/file'
4535     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4536     ;;
4537   sni)
4538     lt_cv_file_magic_cmd='/bin/file'
4539     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4540     lt_cv_file_magic_test_file=/lib/libc.so
4541     ;;
4542   siemens)
4543     lt_cv_deplibs_check_method=pass_all
4544     ;;
4545   pc)
4546     lt_cv_deplibs_check_method=pass_all
4547     ;;
4548   esac
4549   ;;
4550
4551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4552   lt_cv_deplibs_check_method=pass_all
4553   ;;
4554 esac
4555
4556 fi
4557 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4558 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4559 file_magic_cmd=$lt_cv_file_magic_cmd
4560 deplibs_check_method=$lt_cv_deplibs_check_method
4561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4562
4563
4564
4565
4566 # If no C compiler was specified, use CC.
4567 LTCC=${LTCC-"$CC"}
4568
4569 # If no C compiler flags were specified, use CFLAGS.
4570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4571
4572 # Allow CC to be a program name with arguments.
4573 compiler=$CC
4574
4575
4576 # Check whether --enable-libtool-lock was given.
4577 if test "${enable_libtool_lock+set}" = set; then
4578   enableval=$enable_libtool_lock;
4579 fi
4580
4581 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4582
4583 # Some flags need to be propagated to the compiler or linker for good
4584 # libtool support.
4585 case $host in
4586 ia64-*-hpux*)
4587   # Find out which ABI we are using.
4588   echo 'int i;' > conftest.$ac_ext
4589   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590   (eval $ac_compile) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; then
4594     case `/usr/bin/file conftest.$ac_objext` in
4595     *ELF-32*)
4596       HPUX_IA64_MODE="32"
4597       ;;
4598     *ELF-64*)
4599       HPUX_IA64_MODE="64"
4600       ;;
4601     esac
4602   fi
4603   rm -rf conftest*
4604   ;;
4605 *-*-irix6*)
4606   # Find out which ABI we are using.
4607   echo '#line 4607 "configure"' > conftest.$ac_ext
4608   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609   (eval $ac_compile) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; then
4613    if test "$lt_cv_prog_gnu_ld" = yes; then
4614     case `/usr/bin/file conftest.$ac_objext` in
4615     *32-bit*)
4616       LD="${LD-ld} -melf32bsmip"
4617       ;;
4618     *N32*)
4619       LD="${LD-ld} -melf32bmipn32"
4620       ;;
4621     *64-bit*)
4622       LD="${LD-ld} -melf64bmip"
4623       ;;
4624     esac
4625    else
4626     case `/usr/bin/file conftest.$ac_objext` in
4627     *32-bit*)
4628       LD="${LD-ld} -32"
4629       ;;
4630     *N32*)
4631       LD="${LD-ld} -n32"
4632       ;;
4633     *64-bit*)
4634       LD="${LD-ld} -64"
4635       ;;
4636     esac
4637    fi
4638   fi
4639   rm -rf conftest*
4640   ;;
4641
4642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4643 s390*-*linux*|sparc*-*linux*)
4644   # Find out which ABI we are using.
4645   echo 'int i;' > conftest.$ac_ext
4646   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; then
4651     case `/usr/bin/file conftest.o` in
4652     *32-bit*)
4653       case $host in
4654         x86_64-*kfreebsd*-gnu)
4655           LD="${LD-ld} -m elf_i386_fbsd"
4656           ;;
4657         x86_64-*linux*)
4658           LD="${LD-ld} -m elf_i386"
4659           ;;
4660         ppc64-*linux*|powerpc64-*linux*)
4661           LD="${LD-ld} -m elf32ppclinux"
4662           ;;
4663         s390x-*linux*)
4664           LD="${LD-ld} -m elf_s390"
4665           ;;
4666         sparc64-*linux*)
4667           LD="${LD-ld} -m elf32_sparc"
4668           ;;
4669       esac
4670       ;;
4671     *64-bit*)
4672       case $host in
4673         x86_64-*kfreebsd*-gnu)
4674           LD="${LD-ld} -m elf_x86_64_fbsd"
4675           ;;
4676         x86_64-*linux*)
4677           LD="${LD-ld} -m elf_x86_64"
4678           ;;
4679         ppc*-*linux*|powerpc*-*linux*)
4680           LD="${LD-ld} -m elf64ppc"
4681           ;;
4682         s390*-*linux*)
4683           LD="${LD-ld} -m elf64_s390"
4684           ;;
4685         sparc*-*linux*)
4686           LD="${LD-ld} -m elf64_sparc"
4687           ;;
4688       esac
4689       ;;
4690     esac
4691   fi
4692   rm -rf conftest*
4693   ;;
4694
4695 *-*-sco3.2v5*)
4696   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4697   SAVE_CFLAGS="$CFLAGS"
4698   CFLAGS="$CFLAGS -belf"
4699   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4700 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4701 if test "${lt_cv_cc_needs_belf+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   ac_ext=c
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709
4710      cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716
4717 int
4718 main ()
4719 {
4720
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (ac_try="$ac_link"
4727 case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732   (eval "$ac_link") 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } && {
4739          test -z "$ac_c_werror_flag" ||
4740          test ! -s conftest.err
4741        } && test -s conftest$ac_exeext &&
4742        $as_test_x conftest$ac_exeext; then
4743   lt_cv_cc_needs_belf=yes
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748         lt_cv_cc_needs_belf=no
4749 fi
4750
4751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4752       conftest$ac_exeext conftest.$ac_ext
4753      ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759 fi
4760 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4761 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4762   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4763     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4764     CFLAGS="$SAVE_CFLAGS"
4765   fi
4766   ;;
4767 sparc*-*solaris*)
4768   # Find out which ABI we are using.
4769   echo 'int i;' > conftest.$ac_ext
4770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; then
4775     case `/usr/bin/file conftest.o` in
4776     *64-bit*)
4777       case $lt_cv_prog_gnu_ld in
4778       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4779       *)    LD="${LD-ld} -64" ;;
4780       esac
4781       ;;
4782     esac
4783   fi
4784   rm -rf conftest*
4785   ;;
4786
4787 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4788   if test -n "$ac_tool_prefix"; then
4789   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4790 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   if test -n "$DLLTOOL"; then
4797   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804   for ac_exec_ext in '' $ac_executable_extensions; do
4805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 DLLTOOL=$ac_cv_prog_DLLTOOL
4817 if test -n "$DLLTOOL"; then
4818   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4819 echo "${ECHO_T}$DLLTOOL" >&6; }
4820 else
4821   { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826 fi
4827 if test -z "$ac_cv_prog_DLLTOOL"; then
4828   ac_ct_DLLTOOL=$DLLTOOL
4829   # Extract the first word of "dlltool", so it can be a program name with args.
4830 set dummy dlltool; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   if test -n "$ac_ct_DLLTOOL"; then
4837   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842   IFS=$as_save_IFS
4843   test -z "$as_dir" && as_dir=.
4844   for ac_exec_ext in '' $ac_executable_extensions; do
4845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848     break 2
4849   fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4857 if test -n "$ac_ct_DLLTOOL"; then
4858   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4859 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4860 else
4861   { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4863 fi
4864
4865   if test "x$ac_ct_DLLTOOL" = x; then
4866     DLLTOOL="false"
4867   else
4868     case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet.  If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&5
4873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet.  If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4876 ac_tool_warned=yes ;;
4877 esac
4878     DLLTOOL=$ac_ct_DLLTOOL
4879   fi
4880 else
4881   DLLTOOL="$ac_cv_prog_DLLTOOL"
4882 fi
4883
4884   if test -n "$ac_tool_prefix"; then
4885   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}as; ac_word=$2
4887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4889 if test "${ac_cv_prog_AS+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   if test -n "$AS"; then
4893   ac_cv_prog_AS="$AS" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900   for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_prog_AS="${ac_tool_prefix}as"
4903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 fi
4911 fi
4912 AS=$ac_cv_prog_AS
4913 if test -n "$AS"; then
4914   { echo "$as_me:$LINENO: result: $AS" >&5
4915 echo "${ECHO_T}$AS" >&6; }
4916 else
4917   { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4919 fi
4920
4921
4922 fi
4923 if test -z "$ac_cv_prog_AS"; then
4924   ac_ct_AS=$AS
4925   # Extract the first word of "as", so it can be a program name with args.
4926 set dummy as; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   if test -n "$ac_ct_AS"; then
4933   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940   for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_prog_ac_ct_AS="as"
4943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947 done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4953 if test -n "$ac_ct_AS"; then
4954   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4955 echo "${ECHO_T}$ac_ct_AS" >&6; }
4956 else
4957   { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4959 fi
4960
4961   if test "x$ac_ct_AS" = x; then
4962     AS="false"
4963   else
4964     case $cross_compiling:$ac_tool_warned in
4965 yes:)
4966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4967 whose name does not start with the host triplet.  If you think this
4968 configuration is useful to you, please write to autoconf@gnu.org." >&5
4969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4970 whose name does not start with the host triplet.  If you think this
4971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4972 ac_tool_warned=yes ;;
4973 esac
4974     AS=$ac_ct_AS
4975   fi
4976 else
4977   AS="$ac_cv_prog_AS"
4978 fi
4979
4980   if test -n "$ac_tool_prefix"; then
4981   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4985 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   if test -n "$OBJDUMP"; then
4989   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996   for ac_exec_ext in '' $ac_executable_extensions; do
4997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 OBJDUMP=$ac_cv_prog_OBJDUMP
5009 if test -n "$OBJDUMP"; then
5010   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5011 echo "${ECHO_T}$OBJDUMP" >&6; }
5012 else
5013   { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5015 fi
5016
5017
5018 fi
5019 if test -z "$ac_cv_prog_OBJDUMP"; then
5020   ac_ct_OBJDUMP=$OBJDUMP
5021   # Extract the first word of "objdump", so it can be a program name with args.
5022 set dummy objdump; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   if test -n "$ac_ct_OBJDUMP"; then
5029   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5049 if test -n "$ac_ct_OBJDUMP"; then
5050   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5051 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5052 else
5053   { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5055 fi
5056
5057   if test "x$ac_ct_OBJDUMP" = x; then
5058     OBJDUMP="false"
5059   else
5060     case $cross_compiling:$ac_tool_warned in
5061 yes:)
5062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5063 whose name does not start with the host triplet.  If you think this
5064 configuration is useful to you, please write to autoconf@gnu.org." >&5
5065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5066 whose name does not start with the host triplet.  If you think this
5067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5068 ac_tool_warned=yes ;;
5069 esac
5070     OBJDUMP=$ac_ct_OBJDUMP
5071   fi
5072 else
5073   OBJDUMP="$ac_cv_prog_OBJDUMP"
5074 fi
5075
5076   ;;
5077
5078 esac
5079
5080 need_locks="$enable_libtool_lock"
5081
5082
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5092   CPP=
5093 fi
5094 if test -z "$CPP"; then
5095   if test "${ac_cv_prog_CPP+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098       # Double quotes because CPP needs to be expanded
5099     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100     do
5101       ac_preproc_ok=false
5102 for ac_c_preproc_warn_flag in '' yes
5103 do
5104   # Use a header file that comes with gcc, so configuring glibc
5105   # with a fresh cross-compiler works.
5106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107   # <limits.h> exists even on freestanding compilers.
5108   # On the NeXT, cc -E runs the code through the compiler's parser,
5109   # not just through cpp. "Syntax error" is here to catch this case.
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #ifdef __STDC__
5117 # include <limits.h>
5118 #else
5119 # include <assert.h>
5120 #endif
5121                      Syntax error
5122 _ACEOF
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null && {
5136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5137          test ! -s conftest.err
5138        }; then
5139   :
5140 else
5141   echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144   # Broken: fails on valid input.
5145 continue
5146 fi
5147
5148 rm -f conftest.err conftest.$ac_ext
5149
5150   # OK, works on sane cases.  Now check whether nonexistent headers
5151   # can be detected and how.
5152   cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 #include <ac_nonexistent.h>
5159 _ACEOF
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5161 case "(($ac_try" in
5162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163   *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } >/dev/null && {
5173          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174          test ! -s conftest.err
5175        }; then
5176   # Broken: success on invalid input.
5177 continue
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182   # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186
5187 rm -f conftest.err conftest.$ac_ext
5188
5189 done
5190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191 rm -f conftest.err conftest.$ac_ext
5192 if $ac_preproc_ok; then
5193   break
5194 fi
5195
5196     done
5197     ac_cv_prog_CPP=$CPP
5198
5199 fi
5200   CPP=$ac_cv_prog_CPP
5201 else
5202   ac_cv_prog_CPP=$CPP
5203 fi
5204 { echo "$as_me:$LINENO: result: $CPP" >&5
5205 echo "${ECHO_T}$CPP" >&6; }
5206 ac_preproc_ok=false
5207 for ac_c_preproc_warn_flag in '' yes
5208 do
5209   # Use a header file that comes with gcc, so configuring glibc
5210   # with a fresh cross-compiler works.
5211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212   # <limits.h> exists even on freestanding compilers.
5213   # On the NeXT, cc -E runs the code through the compiler's parser,
5214   # not just through cpp. "Syntax error" is here to catch this case.
5215   cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221 #ifdef __STDC__
5222 # include <limits.h>
5223 #else
5224 # include <assert.h>
5225 #endif
5226                      Syntax error
5227 _ACEOF
5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
5229 case "(($ac_try" in
5230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231   *) ac_try_echo=$ac_try;;
5232 esac
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5235   ac_status=$?
5236   grep -v '^ *+' conftest.er1 >conftest.err
5237   rm -f conftest.er1
5238   cat conftest.err >&5
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } >/dev/null && {
5241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5242          test ! -s conftest.err
5243        }; then
5244   :
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249   # Broken: fails on valid input.
5250 continue
5251 fi
5252
5253 rm -f conftest.err conftest.$ac_ext
5254
5255   # OK, works on sane cases.  Now check whether nonexistent headers
5256   # can be detected and how.
5257   cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } >/dev/null && {
5278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279          test ! -s conftest.err
5280        }; then
5281   # Broken: success on invalid input.
5282 continue
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287   # Passes both tests.
5288 ac_preproc_ok=:
5289 break
5290 fi
5291
5292 rm -f conftest.err conftest.$ac_ext
5293
5294 done
5295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296 rm -f conftest.err conftest.$ac_ext
5297 if $ac_preproc_ok; then
5298   :
5299 else
5300   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303 See \`config.log' for more details." >&2;}
5304    { (exit 1); exit 1; }; }
5305 fi
5306
5307 ac_ext=c
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312
5313
5314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #include <stdlib.h>
5326 #include <stdarg.h>
5327 #include <string.h>
5328 #include <float.h>
5329
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342   *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345   (eval "$ac_compile") 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } && {
5352          test -z "$ac_c_werror_flag" ||
5353          test ! -s conftest.err
5354        } && test -s conftest.$ac_objext; then
5355   ac_cv_header_stdc=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360         ac_cv_header_stdc=no
5361 fi
5362
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364
5365 if test $ac_cv_header_stdc = yes; then
5366   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <string.h>
5374
5375 _ACEOF
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377   $EGREP "memchr" >/dev/null 2>&1; then
5378   :
5379 else
5380   ac_cv_header_stdc=no
5381 fi
5382 rm -f conftest*
5383
5384 fi
5385
5386 if test $ac_cv_header_stdc = yes; then
5387   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5388   cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h.  */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h.  */
5394 #include <stdlib.h>
5395
5396 _ACEOF
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398   $EGREP "free" >/dev/null 2>&1; then
5399   :
5400 else
5401   ac_cv_header_stdc=no
5402 fi
5403 rm -f conftest*
5404
5405 fi
5406
5407 if test $ac_cv_header_stdc = yes; then
5408   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409   if test "$cross_compiling" = yes; then
5410   :
5411 else
5412   cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418 #include <ctype.h>
5419 #include <stdlib.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425                    (('a' <= (c) && (c) <= 'i') \
5426                      || ('j' <= (c) && (c) <= 'r') \
5427                      || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5430
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 int
5433 main ()
5434 {
5435   int i;
5436   for (i = 0; i < 256; i++)
5437     if (XOR (islower (i), ISLOWER (i))
5438         || toupper (i) != TOUPPER (i))
5439       return 2;
5440   return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450   (eval "$ac_link") 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454   { (case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459   (eval "$ac_try") 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   :
5464 else
5465   echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ( exit $ac_status )
5470 ac_cv_header_stdc=no
5471 fi
5472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5473 fi
5474
5475
5476 fi
5477 fi
5478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5481
5482 cat >>confdefs.h <<\_ACEOF
5483 #define STDC_HEADERS 1
5484 _ACEOF
5485
5486 fi
5487
5488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5499                   inttypes.h stdint.h unistd.h
5500 do
5501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513 $ac_includes_default
5514
5515 #include <$ac_header>
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524   (eval "$ac_compile") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } && {
5531          test -z "$ac_c_werror_flag" ||
5532          test ! -s conftest.err
5533        } && test -s conftest.$ac_objext; then
5534   eval "$as_ac_Header=yes"
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539         eval "$as_ac_Header=no"
5540 fi
5541
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545                { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548   cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5550 _ACEOF
5551
5552 fi
5553
5554 done
5555
5556
5557
5558 for ac_header in dlfcn.h
5559 do
5560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 fi
5567 ac_res=`eval echo '${'$as_ac_Header'}'`
5568                { echo "$as_me:$LINENO: result: $ac_res" >&5
5569 echo "${ECHO_T}$ac_res" >&6; }
5570 else
5571   # Is the header compilable?
5572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580 $ac_includes_default
5581 #include <$ac_header>
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587   *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590   (eval "$ac_compile") 2>conftest.er1
5591   ac_status=$?
5592   grep -v '^ *+' conftest.er1 >conftest.err
5593   rm -f conftest.er1
5594   cat conftest.err >&5
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } && {
5597          test -z "$ac_c_werror_flag" ||
5598          test ! -s conftest.err
5599        } && test -s conftest.$ac_objext; then
5600   ac_header_compiler=yes
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605         ac_header_compiler=no
5606 fi
5607
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6; }
5611
5612 # Is the header present?
5613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 #include <$ac_header>
5622 _ACEOF
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } >/dev/null && {
5636          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5637          test ! -s conftest.err
5638        }; then
5639   ac_header_preproc=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644   ac_header_preproc=no
5645 fi
5646
5647 rm -f conftest.err conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649 echo "${ECHO_T}$ac_header_preproc" >&6; }
5650
5651 # So?  What about this header?
5652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5653   yes:no: )
5654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5658     ac_header_preproc=yes
5659     ;;
5660   no:yes:* )
5661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5673     ( cat <<\_ASBOX
5674 ## -------------------------------------------------- ##
5675 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5676 ## -------------------------------------------------- ##
5677 _ASBOX
5678      ) | sed "s/^/$as_me: WARNING:     /" >&2
5679     ;;
5680 esac
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   eval "$as_ac_Header=\$ac_header_preproc"
5687 fi
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689                { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5691
5692 fi
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694   cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5696 _ACEOF
5697
5698 fi
5699
5700 done
5701
5702 ac_ext=cpp
5703 ac_cpp='$CXXCPP $CPPFLAGS'
5704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707 if test -z "$CXX"; then
5708   if test -n "$CCC"; then
5709     CXX=$CCC
5710   else
5711     if test -n "$ac_tool_prefix"; then
5712   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5713   do
5714     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5718 if test "${ac_cv_prog_CXX+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   if test -n "$CXX"; then
5722   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729   for ac_exec_ext in '' $ac_executable_extensions; do
5730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736 done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 CXX=$ac_cv_prog_CXX
5742 if test -n "$CXX"; then
5743   { echo "$as_me:$LINENO: result: $CXX" >&5
5744 echo "${ECHO_T}$CXX" >&6; }
5745 else
5746   { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5748 fi
5749
5750
5751     test -n "$CXX" && break
5752   done
5753 fi
5754 if test -z "$CXX"; then
5755   ac_ct_CXX=$CXX
5756   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5757 do
5758   # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$ac_ct_CXX"; then
5766   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773   for ac_exec_ext in '' $ac_executable_extensions; do
5774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775     ac_cv_prog_ac_ct_CXX="$ac_prog"
5776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5786 if test -n "$ac_ct_CXX"; then
5787   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5788 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5789 else
5790   { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5792 fi
5793
5794
5795   test -n "$ac_ct_CXX" && break
5796 done
5797
5798   if test "x$ac_ct_CXX" = x; then
5799     CXX="g++"
5800   else
5801     case $cross_compiling:$ac_tool_warned in
5802 yes:)
5803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5804 whose name does not start with the host triplet.  If you think this
5805 configuration is useful to you, please write to autoconf@gnu.org." >&5
5806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5807 whose name does not start with the host triplet.  If you think this
5808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5809 ac_tool_warned=yes ;;
5810 esac
5811     CXX=$ac_ct_CXX
5812   fi
5813 fi
5814
5815   fi
5816 fi
5817 # Provide some information about the compiler.
5818 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5819 ac_compiler=`set X $ac_compile; echo $2`
5820 { (ac_try="$ac_compiler --version >&5"
5821 case "(($ac_try" in
5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823   *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826   (eval "$ac_compiler --version >&5") 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }
5830 { (ac_try="$ac_compiler -v >&5"
5831 case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_compiler -v >&5") 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }
5840 { (ac_try="$ac_compiler -V >&5"
5841 case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_compiler -V >&5") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }
5850
5851 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5852 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5853 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h.  */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h.  */
5862
5863 int
5864 main ()
5865 {
5866 #ifndef __GNUC__
5867        choke me
5868 #endif
5869
5870   ;
5871   return 0;
5872 }
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_compile") 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } && {
5888          test -z "$ac_cxx_werror_flag" ||
5889          test ! -s conftest.err
5890        } && test -s conftest.$ac_objext; then
5891   ac_compiler_gnu=yes
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896         ac_compiler_gnu=no
5897 fi
5898
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5901
5902 fi
5903 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5904 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5905 GXX=`test $ac_compiler_gnu = yes && echo yes`
5906 ac_test_CXXFLAGS=${CXXFLAGS+set}
5907 ac_save_CXXFLAGS=$CXXFLAGS
5908 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5909 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_cxx_g+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5914    ac_cxx_werror_flag=yes
5915    ac_cv_prog_cxx_g=no
5916    CXXFLAGS="-g"
5917    cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923
5924 int
5925 main ()
5926 {
5927
5928   ;
5929   return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5934 case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_compile") 2>conftest.er1
5940   ac_status=$?
5941   grep -v '^ *+' conftest.er1 >conftest.err
5942   rm -f conftest.er1
5943   cat conftest.err >&5
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } && {
5946          test -z "$ac_cxx_werror_flag" ||
5947          test ! -s conftest.err
5948        } && test -s conftest.$ac_objext; then
5949   ac_cv_prog_cxx_g=yes
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954         CXXFLAGS=""
5955       cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961
5962 int
5963 main ()
5964 {
5965
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_compile") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } && {
5984          test -z "$ac_cxx_werror_flag" ||
5985          test ! -s conftest.err
5986        } && test -s conftest.$ac_objext; then
5987   :
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5991
5992         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5993          CXXFLAGS="-g"
5994          cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 int
6002 main ()
6003 {
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_compile") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } && {
6023          test -z "$ac_cxx_werror_flag" ||
6024          test ! -s conftest.err
6025        } && test -s conftest.$ac_objext; then
6026   ac_cv_prog_cxx_g=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031
6032 fi
6033
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 fi
6039
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6042 fi
6043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6044 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6045 if test "$ac_test_CXXFLAGS" = set; then
6046   CXXFLAGS=$ac_save_CXXFLAGS
6047 elif test $ac_cv_prog_cxx_g = yes; then
6048   if test "$GXX" = yes; then
6049     CXXFLAGS="-g -O2"
6050   else
6051     CXXFLAGS="-g"
6052   fi
6053 else
6054   if test "$GXX" = yes; then
6055     CXXFLAGS="-O2"
6056   else
6057     CXXFLAGS=
6058   fi
6059 fi
6060 ac_ext=cpp
6061 ac_cpp='$CXXCPP $CPPFLAGS'
6062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6065
6066 depcc="$CXX"  am_compiler_list=
6067
6068 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6069 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6070 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6074   # We make a subdir and do the tests there.  Otherwise we can end up
6075   # making bogus files that we don't know about and never remove.  For
6076   # instance it was reported that on HP-UX the gcc test will end up
6077   # making a dummy file named `D' -- because `-MD' means `put the output
6078   # in D'.
6079   mkdir conftest.dir
6080   # Copy depcomp to subdir because otherwise we won't find it if we're
6081   # using a relative directory.
6082   cp "$am_depcomp" conftest.dir
6083   cd conftest.dir
6084   # We will build objects and dependencies in a subdirectory because
6085   # it helps to detect inapplicable dependency modes.  For instance
6086   # both Tru64's cc and ICC support -MD to output dependencies as a
6087   # side effect of compilation, but ICC will put the dependencies in
6088   # the current directory while Tru64 will put them in the object
6089   # directory.
6090   mkdir sub
6091
6092   am_cv_CXX_dependencies_compiler_type=none
6093   if test "$am_compiler_list" = ""; then
6094      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6095   fi
6096   for depmode in $am_compiler_list; do
6097     # Setup a source with many dependencies, because some compilers
6098     # like to wrap large dependency lists on column 80 (with \), and
6099     # we should not choose a depcomp mode which is confused by this.
6100     #
6101     # We need to recreate these files for each test, as the compiler may
6102     # overwrite some of them when testing with obscure command lines.
6103     # This happens at least with the AIX C compiler.
6104     : > sub/conftest.c
6105     for i in 1 2 3 4 5 6; do
6106       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6107       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6108       # Solaris 8's {/usr,}/bin/sh.
6109       touch sub/conftst$i.h
6110     done
6111     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6112
6113     case $depmode in
6114     nosideeffect)
6115       # after this tag, mechanisms are not by side-effect, so they'll
6116       # only be used when explicitly requested
6117       if test "x$enable_dependency_tracking" = xyes; then
6118         continue
6119       else
6120         break
6121       fi
6122       ;;
6123     none) break ;;
6124     esac
6125     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6126     # mode.  It turns out that the SunPro C++ compiler does not properly
6127     # handle `-M -o', and we need to detect this.
6128     if depmode=$depmode \
6129        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6130        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6131        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6132          >/dev/null 2>conftest.err &&
6133        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6134        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6135        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6136        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6137       # icc doesn't choke on unknown options, it will just issue warnings
6138       # or remarks (even with -Werror).  So we grep stderr for any message
6139       # that says an option was ignored or not supported.
6140       # When given -MP, icc 7.0 and 7.1 complain thusly:
6141       #   icc: Command line warning: ignoring option '-M'; no argument required
6142       # The diagnosis changed in icc 8.0:
6143       #   icc: Command line remark: option '-MP' not supported
6144       if (grep 'ignoring option' conftest.err ||
6145           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6146         am_cv_CXX_dependencies_compiler_type=$depmode
6147         break
6148       fi
6149     fi
6150   done
6151
6152   cd ..
6153   rm -rf conftest.dir
6154 else
6155   am_cv_CXX_dependencies_compiler_type=none
6156 fi
6157
6158 fi
6159 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6160 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6161 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6162
6163  if
6164   test "x$enable_dependency_tracking" != xno \
6165   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6166   am__fastdepCXX_TRUE=
6167   am__fastdepCXX_FALSE='#'
6168 else
6169   am__fastdepCXX_TRUE='#'
6170   am__fastdepCXX_FALSE=
6171 fi
6172
6173
6174
6175
6176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6177     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6178     (test "X$CXX" != "Xg++"))) ; then
6179   ac_ext=cpp
6180 ac_cpp='$CXXCPP $CPPFLAGS'
6181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6184 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6185 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6186 if test -z "$CXXCPP"; then
6187   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190       # Double quotes because CXXCPP needs to be expanded
6191     for CXXCPP in "$CXX -E" "/lib/cpp"
6192     do
6193       ac_preproc_ok=false
6194 for ac_cxx_preproc_warn_flag in '' yes
6195 do
6196   # Use a header file that comes with gcc, so configuring glibc
6197   # with a fresh cross-compiler works.
6198   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199   # <limits.h> exists even on freestanding compilers.
6200   # On the NeXT, cc -E runs the code through the compiler's parser,
6201   # not just through cpp. "Syntax error" is here to catch this case.
6202   cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h.  */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h.  */
6208 #ifdef __STDC__
6209 # include <limits.h>
6210 #else
6211 # include <assert.h>
6212 #endif
6213                      Syntax error
6214 _ACEOF
6215 if { (ac_try="$ac_cpp conftest.$ac_ext"
6216 case "(($ac_try" in
6217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218   *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } >/dev/null && {
6228          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6229          test ! -s conftest.err
6230        }; then
6231   :
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236   # Broken: fails on valid input.
6237 continue
6238 fi
6239
6240 rm -f conftest.err conftest.$ac_ext
6241
6242   # OK, works on sane cases.  Now check whether nonexistent headers
6243   # can be detected and how.
6244   cat >conftest.$ac_ext <<_ACEOF
6245 /* confdefs.h.  */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h.  */
6250 #include <ac_nonexistent.h>
6251 _ACEOF
6252 if { (ac_try="$ac_cpp conftest.$ac_ext"
6253 case "(($ac_try" in
6254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255   *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6259   ac_status=$?
6260   grep -v '^ *+' conftest.er1 >conftest.err
6261   rm -f conftest.er1
6262   cat conftest.err >&5
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } >/dev/null && {
6265          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6266          test ! -s conftest.err
6267        }; then
6268   # Broken: success on invalid input.
6269 continue
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274   # Passes both tests.
6275 ac_preproc_ok=:
6276 break
6277 fi
6278
6279 rm -f conftest.err conftest.$ac_ext
6280
6281 done
6282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283 rm -f conftest.err conftest.$ac_ext
6284 if $ac_preproc_ok; then
6285   break
6286 fi
6287
6288     done
6289     ac_cv_prog_CXXCPP=$CXXCPP
6290
6291 fi
6292   CXXCPP=$ac_cv_prog_CXXCPP
6293 else
6294   ac_cv_prog_CXXCPP=$CXXCPP
6295 fi
6296 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6297 echo "${ECHO_T}$CXXCPP" >&6; }
6298 ac_preproc_ok=false
6299 for ac_cxx_preproc_warn_flag in '' yes
6300 do
6301   # Use a header file that comes with gcc, so configuring glibc
6302   # with a fresh cross-compiler works.
6303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304   # <limits.h> exists even on freestanding compilers.
6305   # On the NeXT, cc -E runs the code through the compiler's parser,
6306   # not just through cpp. "Syntax error" is here to catch this case.
6307   cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 #ifdef __STDC__
6314 # include <limits.h>
6315 #else
6316 # include <assert.h>
6317 #endif
6318                      Syntax error
6319 _ACEOF
6320 if { (ac_try="$ac_cpp conftest.$ac_ext"
6321 case "(($ac_try" in
6322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323   *) ac_try_echo=$ac_try;;
6324 esac
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6327   ac_status=$?
6328   grep -v '^ *+' conftest.er1 >conftest.err
6329   rm -f conftest.er1
6330   cat conftest.err >&5
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } >/dev/null && {
6333          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6334          test ! -s conftest.err
6335        }; then
6336   :
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341   # Broken: fails on valid input.
6342 continue
6343 fi
6344
6345 rm -f conftest.err conftest.$ac_ext
6346
6347   # OK, works on sane cases.  Now check whether nonexistent headers
6348   # can be detected and how.
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 #include <ac_nonexistent.h>
6356 _ACEOF
6357 if { (ac_try="$ac_cpp conftest.$ac_ext"
6358 case "(($ac_try" in
6359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360   *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6364   ac_status=$?
6365   grep -v '^ *+' conftest.er1 >conftest.err
6366   rm -f conftest.er1
6367   cat conftest.err >&5
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); } >/dev/null && {
6370          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6371          test ! -s conftest.err
6372        }; then
6373   # Broken: success on invalid input.
6374 continue
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379   # Passes both tests.
6380 ac_preproc_ok=:
6381 break
6382 fi
6383
6384 rm -f conftest.err conftest.$ac_ext
6385
6386 done
6387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6388 rm -f conftest.err conftest.$ac_ext
6389 if $ac_preproc_ok; then
6390   :
6391 else
6392   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6393 See \`config.log' for more details." >&5
6394 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6395 See \`config.log' for more details." >&2;}
6396    { (exit 1); exit 1; }; }
6397 fi
6398
6399 ac_ext=cpp
6400 ac_cpp='$CXXCPP $CPPFLAGS'
6401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6404
6405 fi
6406
6407
6408
6409
6410
6411 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6412
6413 # find the maximum length of command line arguments
6414 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6415 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6416 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419     i=0
6420   teststring="ABCD"
6421
6422   case $build_os in
6423   msdosdjgpp*)
6424     # On DJGPP, this test can blow up pretty badly due to problems in libc
6425     # (any single argument exceeding 2000 bytes causes a buffer overrun
6426     # during glob expansion).  Even if it were fixed, the result of this
6427     # check would be larger than it should be.
6428     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6429     ;;
6430
6431   gnu*)
6432     # Under GNU Hurd, this test is not required because there is
6433     # no limit to the length of command line arguments.
6434     # Libtool will interpret -1 as no limit whatsoever
6435     lt_cv_sys_max_cmd_len=-1;
6436     ;;
6437
6438   cygwin* | mingw*)
6439     # On Win9x/ME, this test blows up -- it succeeds, but takes
6440     # about 5 minutes as the teststring grows exponentially.
6441     # Worse, since 9x/ME are not pre-emptively multitasking,
6442     # you end up with a "frozen" computer, even though with patience
6443     # the test eventually succeeds (with a max line length of 256k).
6444     # Instead, let's just punt: use the minimum linelength reported by
6445     # all of the supported platforms: 8192 (on NT/2K/XP).
6446     lt_cv_sys_max_cmd_len=8192;
6447     ;;
6448
6449   amigaos*)
6450     # On AmigaOS with pdksh, this test takes hours, literally.
6451     # So we just punt and use a minimum line length of 8192.
6452     lt_cv_sys_max_cmd_len=8192;
6453     ;;
6454
6455   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6456     # This has been around since 386BSD, at least.  Likely further.
6457     if test -x /sbin/sysctl; then
6458       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6459     elif test -x /usr/sbin/sysctl; then
6460       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6461     else
6462       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6463     fi
6464     # And add a safety zone
6465     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6466     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6467     ;;
6468
6469   interix*)
6470     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6471     lt_cv_sys_max_cmd_len=196608
6472     ;;
6473
6474   osf*)
6475     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6476     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6477     # nice to cause kernel panics so lets avoid the loop below.
6478     # First set a reasonable default.
6479     lt_cv_sys_max_cmd_len=16384
6480     #
6481     if test -x /sbin/sysconfig; then
6482       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6483         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6484       esac
6485     fi
6486     ;;
6487   sco3.2v5*)
6488     lt_cv_sys_max_cmd_len=102400
6489     ;;
6490   sysv5* | sco5v6* | sysv4.2uw2*)
6491     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6492     if test -n "$kargmax"; then
6493       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6494     else
6495       lt_cv_sys_max_cmd_len=32768
6496     fi
6497     ;;
6498   *)
6499     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6500     if test -n "$lt_cv_sys_max_cmd_len"; then
6501       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6502       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6503     else
6504       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6505       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6506                = "XX$teststring") >/dev/null 2>&1 &&
6507               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6508               lt_cv_sys_max_cmd_len=$new_result &&
6509               test $i != 17 # 1/2 MB should be enough
6510       do
6511         i=`expr $i + 1`
6512         teststring=$teststring$teststring
6513       done
6514       teststring=
6515       # Add a significant safety factor because C++ compilers can tack on massive
6516       # amounts of additional arguments before passing them to the linker.
6517       # It appears as though 1/2 is a usable value.
6518       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6519     fi
6520     ;;
6521   esac
6522
6523 fi
6524
6525 if test -n $lt_cv_sys_max_cmd_len ; then
6526   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6527 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6528 else
6529   { echo "$as_me:$LINENO: result: none" >&5
6530 echo "${ECHO_T}none" >&6; }
6531 fi
6532
6533
6534
6535
6536
6537 # Check for command to grab the raw symbol name followed by C symbol from nm.
6538 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6539 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6540 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543
6544 # These are sane defaults that work on at least a few old systems.
6545 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6546
6547 # Character class describing NM global symbol codes.
6548 symcode='[BCDEGRST]'
6549
6550 # Regexp to match symbols that can be accessed directly from C.
6551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6552
6553 # Transform an extracted symbol line into a proper C declaration
6554 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6555
6556 # Transform an extracted symbol line into symbol name and symbol address
6557 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'"
6558
6559 # Define system-specific variables.
6560 case $host_os in
6561 aix*)
6562   symcode='[BCDT]'
6563   ;;
6564 cygwin* | mingw* | pw32*)
6565   symcode='[ABCDGISTW]'
6566   ;;
6567 hpux*) # Its linker distinguishes data from code symbols
6568   if test "$host_cpu" = ia64; then
6569     symcode='[ABCDEGRST]'
6570   fi
6571   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572   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'"
6573   ;;
6574 linux* | k*bsd*-gnu)
6575   if test "$host_cpu" = ia64; then
6576     symcode='[ABCDGIRSTW]'
6577     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6578     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'"
6579   fi
6580   ;;
6581 irix* | nonstopux*)
6582   symcode='[BCDEGRST]'
6583   ;;
6584 osf*)
6585   symcode='[BCDEGQRST]'
6586   ;;
6587 solaris*)
6588   symcode='[BDRT]'
6589   ;;
6590 sco3.2v5*)
6591   symcode='[DT]'
6592   ;;
6593 sysv4.2uw2*)
6594   symcode='[DT]'
6595   ;;
6596 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6597   symcode='[ABDT]'
6598   ;;
6599 sysv4)
6600   symcode='[DFNSTU]'
6601   ;;
6602 esac
6603
6604 # Handle CRLF in mingw tool chain
6605 opt_cr=
6606 case $build_os in
6607 mingw*)
6608   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6609   ;;
6610 esac
6611
6612 # If we're using GNU nm, then use its standard symbol codes.
6613 case `$NM -V 2>&1` in
6614 *GNU* | *'with BFD'*)
6615   symcode='[ABCDGIRSTW]' ;;
6616 esac
6617
6618 # Try without a prefix undercore, then with it.
6619 for ac_symprfx in "" "_"; do
6620
6621   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622   symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624   # Write the raw and C identifiers.
6625   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6626
6627   # Check to see that the pipe works correctly.
6628   pipe_works=no
6629
6630   rm -f conftest*
6631   cat > conftest.$ac_ext <<EOF
6632 #ifdef __cplusplus
6633 extern "C" {
6634 #endif
6635 char nm_test_var;
6636 void nm_test_func(){}
6637 #ifdef __cplusplus
6638 }
6639 #endif
6640 int main(){nm_test_var='a';nm_test_func();return(0);}
6641 EOF
6642
6643   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6644   (eval $ac_compile) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; then
6648     # Now try to grab the symbols.
6649     nlist=conftest.nm
6650     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6651   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && test -s "$nlist"; then
6655       # Try sorting and uniquifying the output.
6656       if sort "$nlist" | uniq > "$nlist"T; then
6657         mv -f "$nlist"T "$nlist"
6658       else
6659         rm -f "$nlist"T
6660       fi
6661
6662       # Make sure that we snagged all the symbols we need.
6663       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6664         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6665           cat <<EOF > conftest.$ac_ext
6666 #ifdef __cplusplus
6667 extern "C" {
6668 #endif
6669
6670 EOF
6671           # Now generate the symbol file.
6672           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6673
6674           cat <<EOF >> conftest.$ac_ext
6675 #if defined (__STDC__) && __STDC__
6676 # define lt_ptr_t void *
6677 #else
6678 # define lt_ptr_t char *
6679 # define const
6680 #endif
6681
6682 /* The mapping between symbol names and symbols. */
6683 const struct {
6684   const char *name;
6685   lt_ptr_t address;
6686 }
6687 lt_preloaded_symbols[] =
6688 {
6689 EOF
6690           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6691           cat <<\EOF >> conftest.$ac_ext
6692   {0, (lt_ptr_t) 0}
6693 };
6694
6695 #ifdef __cplusplus
6696 }
6697 #endif
6698 EOF
6699           # Now try linking the two files.
6700           mv conftest.$ac_objext conftstm.$ac_objext
6701           lt_save_LIBS="$LIBS"
6702           lt_save_CFLAGS="$CFLAGS"
6703           LIBS="conftstm.$ac_objext"
6704           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6705           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706   (eval $ac_link) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6710             pipe_works=yes
6711           fi
6712           LIBS="$lt_save_LIBS"
6713           CFLAGS="$lt_save_CFLAGS"
6714         else
6715           echo "cannot find nm_test_func in $nlist" >&5
6716         fi
6717       else
6718         echo "cannot find nm_test_var in $nlist" >&5
6719       fi
6720     else
6721       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6722     fi
6723   else
6724     echo "$progname: failed program was:" >&5
6725     cat conftest.$ac_ext >&5
6726   fi
6727   rm -f conftest* conftst*
6728
6729   # Do not use the global_symbol_pipe unless it works.
6730   if test "$pipe_works" = yes; then
6731     break
6732   else
6733     lt_cv_sys_global_symbol_pipe=
6734   fi
6735 done
6736
6737 fi
6738
6739 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6740   lt_cv_sys_global_symbol_to_cdecl=
6741 fi
6742 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6743   { echo "$as_me:$LINENO: result: failed" >&5
6744 echo "${ECHO_T}failed" >&6; }
6745 else
6746   { echo "$as_me:$LINENO: result: ok" >&5
6747 echo "${ECHO_T}ok" >&6; }
6748 fi
6749
6750 { echo "$as_me:$LINENO: checking for objdir" >&5
6751 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6752 if test "${lt_cv_objdir+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   rm -f .libs 2>/dev/null
6756 mkdir .libs 2>/dev/null
6757 if test -d .libs; then
6758   lt_cv_objdir=.libs
6759 else
6760   # MS-DOS does not allow filenames that begin with a dot.
6761   lt_cv_objdir=_libs
6762 fi
6763 rmdir .libs 2>/dev/null
6764 fi
6765 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6766 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6767 objdir=$lt_cv_objdir
6768
6769
6770
6771
6772
6773 case $host_os in
6774 aix3*)
6775   # AIX sometimes has problems with the GCC collect2 program.  For some
6776   # reason, if we set the COLLECT_NAMES environment variable, the problems
6777   # vanish in a puff of smoke.
6778   if test "X${COLLECT_NAMES+set}" != Xset; then
6779     COLLECT_NAMES=
6780     export COLLECT_NAMES
6781   fi
6782   ;;
6783 esac
6784
6785 # Sed substitution that helps us do robust quoting.  It backslashifies
6786 # metacharacters that are still active within double-quoted strings.
6787 Xsed='sed -e 1s/^X//'
6788 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6789
6790 # Same as above, but do not quote variable references.
6791 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6792
6793 # Sed substitution to delay expansion of an escaped shell variable in a
6794 # double_quote_subst'ed string.
6795 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6796
6797 # Sed substitution to avoid accidental globbing in evaled expressions
6798 no_glob_subst='s/\*/\\\*/g'
6799
6800 # Constants:
6801 rm="rm -f"
6802
6803 # Global variables:
6804 default_ofile=libtool
6805 can_build_shared=yes
6806
6807 # All known linkers require a `.a' archive for static linking (except MSVC,
6808 # which needs '.lib').
6809 libext=a
6810 ltmain="$ac_aux_dir/ltmain.sh"
6811 ofile="$default_ofile"
6812 with_gnu_ld="$lt_cv_prog_gnu_ld"
6813
6814 if test -n "$ac_tool_prefix"; then
6815   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}ar; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_AR+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   if test -n "$AR"; then
6823   ac_cv_prog_AR="$AR" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830   for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_AR="${ac_tool_prefix}ar"
6833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 AR=$ac_cv_prog_AR
6843 if test -n "$AR"; then
6844   { echo "$as_me:$LINENO: result: $AR" >&5
6845 echo "${ECHO_T}$AR" >&6; }
6846 else
6847   { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_AR"; then
6854   ac_ct_AR=$AR
6855   # Extract the first word of "ar", so it can be a program name with args.
6856 set dummy ar; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   if test -n "$ac_ct_AR"; then
6863   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_ac_ct_AR="ar"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6883 if test -n "$ac_ct_AR"; then
6884   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6885 echo "${ECHO_T}$ac_ct_AR" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891   if test "x$ac_ct_AR" = x; then
6892     AR="false"
6893   else
6894     case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet.  If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     AR=$ac_ct_AR
6905   fi
6906 else
6907   AR="$ac_cv_prog_AR"
6908 fi
6909
6910 if test -n "$ac_tool_prefix"; then
6911   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_prog_RANLIB+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   if test -n "$RANLIB"; then
6919   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 RANLIB=$ac_cv_prog_RANLIB
6939 if test -n "$RANLIB"; then
6940   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6941 echo "${ECHO_T}$RANLIB" >&6; }
6942 else
6943   { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6945 fi
6946
6947
6948 fi
6949 if test -z "$ac_cv_prog_RANLIB"; then
6950   ac_ct_RANLIB=$RANLIB
6951   # Extract the first word of "ranlib", so it can be a program name with args.
6952 set dummy ranlib; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   if test -n "$ac_ct_RANLIB"; then
6959   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_prog_ac_ct_RANLIB="ranlib"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6979 if test -n "$ac_ct_RANLIB"; then
6980   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6981 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987   if test "x$ac_ct_RANLIB" = x; then
6988     RANLIB=":"
6989   else
6990     case $cross_compiling:$ac_tool_warned in
6991 yes:)
6992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6993 whose name does not start with the host triplet.  If you think this
6994 configuration is useful to you, please write to autoconf@gnu.org." >&5
6995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6996 whose name does not start with the host triplet.  If you think this
6997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000     RANLIB=$ac_ct_RANLIB
7001   fi
7002 else
7003   RANLIB="$ac_cv_prog_RANLIB"
7004 fi
7005
7006 if test -n "$ac_tool_prefix"; then
7007   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}strip; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_STRIP+set}" = set; then
7012   echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014   if test -n "$STRIP"; then
7015   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 STRIP=$ac_cv_prog_STRIP
7035 if test -n "$STRIP"; then
7036   { echo "$as_me:$LINENO: result: $STRIP" >&5
7037 echo "${ECHO_T}$STRIP" >&6; }
7038 else
7039   { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_STRIP"; then
7046   ac_ct_STRIP=$STRIP
7047   # Extract the first word of "strip", so it can be a program name with args.
7048 set dummy strip; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   if test -n "$ac_ct_STRIP"; then
7055   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062   for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_prog_ac_ct_STRIP="strip"
7065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7075 if test -n "$ac_ct_STRIP"; then
7076   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7077 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7078 else
7079   { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7081 fi
7082
7083   if test "x$ac_ct_STRIP" = x; then
7084     STRIP=":"
7085   else
7086     case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7089 whose name does not start with the host triplet.  If you think this
7090 configuration is useful to you, please write to autoconf@gnu.org." >&5
7091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7092 whose name does not start with the host triplet.  If you think this
7093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096     STRIP=$ac_ct_STRIP
7097   fi
7098 else
7099   STRIP="$ac_cv_prog_STRIP"
7100 fi
7101
7102
7103 old_CC="$CC"
7104 old_CFLAGS="$CFLAGS"
7105
7106 # Set sane defaults for various variables
7107 test -z "$AR" && AR=ar
7108 test -z "$AR_FLAGS" && AR_FLAGS=cru
7109 test -z "$AS" && AS=as
7110 test -z "$CC" && CC=cc
7111 test -z "$LTCC" && LTCC=$CC
7112 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7113 test -z "$DLLTOOL" && DLLTOOL=dlltool
7114 test -z "$LD" && LD=ld
7115 test -z "$LN_S" && LN_S="ln -s"
7116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7117 test -z "$NM" && NM=nm
7118 test -z "$SED" && SED=sed
7119 test -z "$OBJDUMP" && OBJDUMP=objdump
7120 test -z "$RANLIB" && RANLIB=:
7121 test -z "$STRIP" && STRIP=:
7122 test -z "$ac_objext" && ac_objext=o
7123
7124 # Determine commands to create old-style static archives.
7125 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7126 old_postinstall_cmds='chmod 644 $oldlib'
7127 old_postuninstall_cmds=
7128
7129 if test -n "$RANLIB"; then
7130   case $host_os in
7131   openbsd*)
7132     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7133     ;;
7134   *)
7135     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7136     ;;
7137   esac
7138   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7139 fi
7140
7141 for cc_temp in $compiler""; do
7142   case $cc_temp in
7143     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7144     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7145     \-*) ;;
7146     *) break;;
7147   esac
7148 done
7149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7150
7151
7152 # Only perform the check for file, if the check method requires it
7153 case $deplibs_check_method in
7154 file_magic*)
7155   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7156     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7157 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7158 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   case $MAGIC_CMD in
7162 [\\/*] |  ?:[\\/]*)
7163   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7164   ;;
7165 *)
7166   lt_save_MAGIC_CMD="$MAGIC_CMD"
7167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7168   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7169   for ac_dir in $ac_dummy; do
7170     IFS="$lt_save_ifs"
7171     test -z "$ac_dir" && ac_dir=.
7172     if test -f $ac_dir/${ac_tool_prefix}file; then
7173       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7174       if test -n "$file_magic_test_file"; then
7175         case $deplibs_check_method in
7176         "file_magic "*)
7177           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7180             $EGREP "$file_magic_regex" > /dev/null; then
7181             :
7182           else
7183             cat <<EOF 1>&2
7184
7185 *** Warning: the command libtool uses to detect shared libraries,
7186 *** $file_magic_cmd, produces output that libtool cannot recognize.
7187 *** The result is that libtool may fail to recognize shared libraries
7188 *** as such.  This will affect the creation of libtool libraries that
7189 *** depend on shared libraries, but programs linked with such libtool
7190 *** libraries will work regardless of this problem.  Nevertheless, you
7191 *** may want to report the problem to your system manager and/or to
7192 *** bug-libtool@gnu.org
7193
7194 EOF
7195           fi ;;
7196         esac
7197       fi
7198       break
7199     fi
7200   done
7201   IFS="$lt_save_ifs"
7202   MAGIC_CMD="$lt_save_MAGIC_CMD"
7203   ;;
7204 esac
7205 fi
7206
7207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208 if test -n "$MAGIC_CMD"; then
7209   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7210 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7211 else
7212   { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216 if test -z "$lt_cv_path_MAGIC_CMD"; then
7217   if test -n "$ac_tool_prefix"; then
7218     { echo "$as_me:$LINENO: checking for file" >&5
7219 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   case $MAGIC_CMD in
7224 [\\/*] |  ?:[\\/]*)
7225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7226   ;;
7227 *)
7228   lt_save_MAGIC_CMD="$MAGIC_CMD"
7229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7231   for ac_dir in $ac_dummy; do
7232     IFS="$lt_save_ifs"
7233     test -z "$ac_dir" && ac_dir=.
7234     if test -f $ac_dir/file; then
7235       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7236       if test -n "$file_magic_test_file"; then
7237         case $deplibs_check_method in
7238         "file_magic "*)
7239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7242             $EGREP "$file_magic_regex" > /dev/null; then
7243             :
7244           else
7245             cat <<EOF 1>&2
7246
7247 *** Warning: the command libtool uses to detect shared libraries,
7248 *** $file_magic_cmd, produces output that libtool cannot recognize.
7249 *** The result is that libtool may fail to recognize shared libraries
7250 *** as such.  This will affect the creation of libtool libraries that
7251 *** depend on shared libraries, but programs linked with such libtool
7252 *** libraries will work regardless of this problem.  Nevertheless, you
7253 *** may want to report the problem to your system manager and/or to
7254 *** bug-libtool@gnu.org
7255
7256 EOF
7257           fi ;;
7258         esac
7259       fi
7260       break
7261     fi
7262   done
7263   IFS="$lt_save_ifs"
7264   MAGIC_CMD="$lt_save_MAGIC_CMD"
7265   ;;
7266 esac
7267 fi
7268
7269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7270 if test -n "$MAGIC_CMD"; then
7271   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7273 else
7274   { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7276 fi
7277
7278   else
7279     MAGIC_CMD=:
7280   fi
7281 fi
7282
7283   fi
7284   ;;
7285 esac
7286
7287 enable_dlopen=no
7288 enable_win32_dll=yes
7289
7290 # Check whether --enable-libtool-lock was given.
7291 if test "${enable_libtool_lock+set}" = set; then
7292   enableval=$enable_libtool_lock;
7293 fi
7294
7295 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7296
7297
7298 # Check whether --with-pic was given.
7299 if test "${with_pic+set}" = set; then
7300   withval=$with_pic; pic_mode="$withval"
7301 else
7302   pic_mode=default
7303 fi
7304
7305 test -z "$pic_mode" && pic_mode=default
7306
7307 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7308 #
7309 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7310 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7311 #        calls AC_LIBTOOL_CONFIG and creates libtool.
7312 #
7313 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7314 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7315 if test "x$ltmain" = "x" ; then
7316   { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318   { { echo "$as_me:$LINENO: error:
7319
7320 *** [Gentoo] sanity check failed! ***
7321 *** \$ltmain is not defined, please check the patch for consistency! ***
7322 " >&5
7323 echo "$as_me: error:
7324
7325 *** [Gentoo] sanity check failed! ***
7326 *** \$ltmain is not defined, please check the patch for consistency! ***
7327 " >&2;}
7328    { (exit 1); exit 1; }; }
7329 fi
7330 gentoo_lt_version="1.5.24"
7331 gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
7332 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335   { { echo "$as_me:$LINENO: error:
7336
7337 *** [Gentoo] sanity check failed! ***
7338 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7339 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7340
7341 Please run:
7342
7343   libtoolize --copy --force
7344
7345 if appropriate, please contact the maintainer of this
7346 package (or your distribution) for help.
7347 " >&5
7348 echo "$as_me: error:
7349
7350 *** [Gentoo] sanity check failed! ***
7351 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7352 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7353
7354 Please run:
7355
7356   libtoolize --copy --force
7357
7358 if appropriate, please contact the maintainer of this
7359 package (or your distribution) for help.
7360 " >&2;}
7361    { (exit 1); exit 1; }; }
7362 else
7363   { echo "$as_me:$LINENO: result: yes" >&5
7364 echo "${ECHO_T}yes" >&6; }
7365 fi
7366
7367
7368 # Use C for the default configuration in the libtool script
7369 tagname=
7370 lt_save_CC="$CC"
7371 ac_ext=c
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377
7378 # Source file extension for C test sources.
7379 ac_ext=c
7380
7381 # Object file extension for compiled C test sources.
7382 objext=o
7383 objext=$objext
7384
7385 # Code to be used in simple compile tests
7386 lt_simple_compile_test_code="int some_variable = 0;"
7387
7388 # Code to be used in simple link tests
7389 lt_simple_link_test_code='int main(){return(0);}'
7390
7391
7392 # If no C compiler was specified, use CC.
7393 LTCC=${LTCC-"$CC"}
7394
7395 # If no C compiler flags were specified, use CFLAGS.
7396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7397
7398 # Allow CC to be a program name with arguments.
7399 compiler=$CC
7400
7401
7402 # save warnings/boilerplate of simple test code
7403 ac_outfile=conftest.$ac_objext
7404 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7406 _lt_compiler_boilerplate=`cat conftest.err`
7407 $rm conftest*
7408
7409 ac_outfile=conftest.$ac_objext
7410 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7412 _lt_linker_boilerplate=`cat conftest.err`
7413 $rm conftest*
7414
7415
7416
7417 lt_prog_compiler_no_builtin_flag=
7418
7419 if test "$GCC" = yes; then
7420   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7421
7422
7423 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7424 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7425 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   lt_cv_prog_compiler_rtti_exceptions=no
7429   ac_outfile=conftest.$ac_objext
7430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7431    lt_compiler_flag="-fno-rtti -fno-exceptions"
7432    # Insert the option either (1) after the last *FLAGS variable, or
7433    # (2) before a word containing "conftest.", or (3) at the end.
7434    # Note that $ac_compile itself does not contain backslashes and begins
7435    # with a dollar sign (not a hyphen), so the echo should work correctly.
7436    # The option is referenced via a variable to avoid confusing sed.
7437    lt_compile=`echo "$ac_compile" | $SED \
7438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7440    -e 's:$: $lt_compiler_flag:'`
7441    (eval echo "\"\$as_me:7441: $lt_compile\"" >&5)
7442    (eval "$lt_compile" 2>conftest.err)
7443    ac_status=$?
7444    cat conftest.err >&5
7445    echo "$as_me:7445: \$? = $ac_status" >&5
7446    if (exit $ac_status) && test -s "$ac_outfile"; then
7447      # The compiler can only warn and ignore the option if not recognized
7448      # So say no if there are warnings other than the usual output.
7449      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7450      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7451      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7452        lt_cv_prog_compiler_rtti_exceptions=yes
7453      fi
7454    fi
7455    $rm conftest*
7456
7457 fi
7458 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7459 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7460
7461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7462     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7463 else
7464     :
7465 fi
7466
7467 fi
7468
7469 lt_prog_compiler_wl=
7470 lt_prog_compiler_pic=
7471 lt_prog_compiler_static=
7472
7473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7475
7476   if test "$GCC" = yes; then
7477     lt_prog_compiler_wl='-Wl,'
7478     lt_prog_compiler_static='-static'
7479
7480     case $host_os in
7481       aix*)
7482       # All AIX code is PIC.
7483       if test "$host_cpu" = ia64; then
7484         # AIX 5 now supports IA64 processor
7485         lt_prog_compiler_static='-Bstatic'
7486       fi
7487       ;;
7488
7489     amigaos*)
7490       # FIXME: we need at least 68020 code to build shared libraries, but
7491       # adding the `-m68020' flag to GCC prevents building anything better,
7492       # like `-m68040'.
7493       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7494       ;;
7495
7496     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7497       # PIC is the default for these OSes.
7498       ;;
7499
7500     mingw* | cygwin* | pw32* | os2*)
7501       # This hack is so that the source file can tell whether it is being
7502       # built for inclusion in a dll (and should export symbols for example).
7503       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7504       # (--disable-auto-import) libraries
7505       lt_prog_compiler_pic='-DDLL_EXPORT'
7506       ;;
7507
7508     darwin* | rhapsody*)
7509       # PIC is the default on this platform
7510       # Common symbols not allowed in MH_DYLIB files
7511       lt_prog_compiler_pic='-fno-common'
7512       ;;
7513
7514     interix[3-9]*)
7515       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7516       # Instead, we relocate shared libraries at runtime.
7517       ;;
7518
7519     msdosdjgpp*)
7520       # Just because we use GCC doesn't mean we suddenly get shared libraries
7521       # on systems that don't support them.
7522       lt_prog_compiler_can_build_shared=no
7523       enable_shared=no
7524       ;;
7525
7526     sysv4*MP*)
7527       if test -d /usr/nec; then
7528         lt_prog_compiler_pic=-Kconform_pic
7529       fi
7530       ;;
7531
7532     hpux*)
7533       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7534       # not for PA HP-UX.
7535       case $host_cpu in
7536       hppa*64*|ia64*)
7537         # +Z the default
7538         ;;
7539       *)
7540         lt_prog_compiler_pic='-fPIC'
7541         ;;
7542       esac
7543       ;;
7544
7545     *)
7546       lt_prog_compiler_pic='-fPIC'
7547       ;;
7548     esac
7549   else
7550     # PORTME Check for flag to pass linker flags through the system compiler.
7551     case $host_os in
7552     aix*)
7553       lt_prog_compiler_wl='-Wl,'
7554       if test "$host_cpu" = ia64; then
7555         # AIX 5 now supports IA64 processor
7556         lt_prog_compiler_static='-Bstatic'
7557       else
7558         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7559       fi
7560       ;;
7561       darwin*)
7562         # PIC is the default on this platform
7563         # Common symbols not allowed in MH_DYLIB files
7564        case $cc_basename in
7565          xlc*)
7566          lt_prog_compiler_pic='-qnocommon'
7567          lt_prog_compiler_wl='-Wl,'
7568          ;;
7569        esac
7570        ;;
7571
7572     mingw* | cygwin* | pw32* | os2*)
7573       # This hack is so that the source file can tell whether it is being
7574       # built for inclusion in a dll (and should export symbols for example).
7575       lt_prog_compiler_pic='-DDLL_EXPORT'
7576       ;;
7577
7578     hpux9* | hpux10* | hpux11*)
7579       lt_prog_compiler_wl='-Wl,'
7580       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7581       # not for PA HP-UX.
7582       case $host_cpu in
7583       hppa*64*|ia64*)
7584         # +Z the default
7585         ;;
7586       *)
7587         lt_prog_compiler_pic='+Z'
7588         ;;
7589       esac
7590       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7591       lt_prog_compiler_static='${wl}-a ${wl}archive'
7592       ;;
7593
7594     irix5* | irix6* | nonstopux*)
7595       lt_prog_compiler_wl='-Wl,'
7596       # PIC (with -KPIC) is the default.
7597       lt_prog_compiler_static='-non_shared'
7598       ;;
7599
7600     newsos6)
7601       lt_prog_compiler_pic='-KPIC'
7602       lt_prog_compiler_static='-Bstatic'
7603       ;;
7604
7605     linux* | k*bsd*-gnu)
7606       case $cc_basename in
7607       icc* | ecc*)
7608         lt_prog_compiler_wl='-Wl,'
7609         lt_prog_compiler_pic='-KPIC'
7610         lt_prog_compiler_static='-static'
7611         ;;
7612       pgcc* | pgf77* | pgf90* | pgf95*)
7613         # Portland Group compilers (*not* the Pentium gcc compiler,
7614         # which looks to be a dead project)
7615         lt_prog_compiler_wl='-Wl,'
7616         lt_prog_compiler_pic='-fpic'
7617         lt_prog_compiler_static='-Bstatic'
7618         ;;
7619       ccc*)
7620         lt_prog_compiler_wl='-Wl,'
7621         # All Alpha code is PIC.
7622         lt_prog_compiler_static='-non_shared'
7623         ;;
7624       *)
7625         case `$CC -V 2>&1 | sed 5q` in
7626         *Sun\ C*)
7627           # Sun C 5.9
7628           lt_prog_compiler_pic='-KPIC'
7629           lt_prog_compiler_static='-Bstatic'
7630           lt_prog_compiler_wl='-Wl,'
7631           ;;
7632         *Sun\ F*)
7633           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7634           lt_prog_compiler_pic='-KPIC'
7635           lt_prog_compiler_static='-Bstatic'
7636           lt_prog_compiler_wl=''
7637           ;;
7638         esac
7639         ;;
7640       esac
7641       ;;
7642
7643     osf3* | osf4* | osf5*)
7644       lt_prog_compiler_wl='-Wl,'
7645       # All OSF/1 code is PIC.
7646       lt_prog_compiler_static='-non_shared'
7647       ;;
7648
7649     rdos*)
7650       lt_prog_compiler_static='-non_shared'
7651       ;;
7652
7653     solaris*)
7654       lt_prog_compiler_pic='-KPIC'
7655       lt_prog_compiler_static='-Bstatic'
7656       case $cc_basename in
7657       f77* | f90* | f95*)
7658         lt_prog_compiler_wl='-Qoption ld ';;
7659       *)
7660         lt_prog_compiler_wl='-Wl,';;
7661       esac
7662       ;;
7663
7664     sunos4*)
7665       lt_prog_compiler_wl='-Qoption ld '
7666       lt_prog_compiler_pic='-PIC'
7667       lt_prog_compiler_static='-Bstatic'
7668       ;;
7669
7670     sysv4 | sysv4.2uw2* | sysv4.3*)
7671       lt_prog_compiler_wl='-Wl,'
7672       lt_prog_compiler_pic='-KPIC'
7673       lt_prog_compiler_static='-Bstatic'
7674       ;;
7675
7676     sysv4*MP*)
7677       if test -d /usr/nec ;then
7678         lt_prog_compiler_pic='-Kconform_pic'
7679         lt_prog_compiler_static='-Bstatic'
7680       fi
7681       ;;
7682
7683     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7684       lt_prog_compiler_wl='-Wl,'
7685       lt_prog_compiler_pic='-KPIC'
7686       lt_prog_compiler_static='-Bstatic'
7687       ;;
7688
7689     unicos*)
7690       lt_prog_compiler_wl='-Wl,'
7691       lt_prog_compiler_can_build_shared=no
7692       ;;
7693
7694     uts4*)
7695       lt_prog_compiler_pic='-pic'
7696       lt_prog_compiler_static='-Bstatic'
7697       ;;
7698
7699     *)
7700       lt_prog_compiler_can_build_shared=no
7701       ;;
7702     esac
7703   fi
7704
7705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7706 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7707
7708 #
7709 # Check to make sure the PIC flag actually works.
7710 #
7711 if test -n "$lt_prog_compiler_pic"; then
7712
7713 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7715 if test "${lt_prog_compiler_pic_works+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   lt_prog_compiler_pic_works=no
7719   ac_outfile=conftest.$ac_objext
7720    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7721    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7722    # Insert the option either (1) after the last *FLAGS variable, or
7723    # (2) before a word containing "conftest.", or (3) at the end.
7724    # Note that $ac_compile itself does not contain backslashes and begins
7725    # with a dollar sign (not a hyphen), so the echo should work correctly.
7726    # The option is referenced via a variable to avoid confusing sed.
7727    lt_compile=`echo "$ac_compile" | $SED \
7728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7730    -e 's:$: $lt_compiler_flag:'`
7731    (eval echo "\"\$as_me:7731: $lt_compile\"" >&5)
7732    (eval "$lt_compile" 2>conftest.err)
7733    ac_status=$?
7734    cat conftest.err >&5
7735    echo "$as_me:7735: \$? = $ac_status" >&5
7736    if (exit $ac_status) && test -s "$ac_outfile"; then
7737      # The compiler can only warn and ignore the option if not recognized
7738      # So say no if there are warnings other than the usual output.
7739      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7740      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7741      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7742        lt_prog_compiler_pic_works=yes
7743      fi
7744    fi
7745    $rm conftest*
7746
7747 fi
7748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7749 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7750
7751 if test x"$lt_prog_compiler_pic_works" = xyes; then
7752     case $lt_prog_compiler_pic in
7753      "" | " "*) ;;
7754      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7755      esac
7756 else
7757     lt_prog_compiler_pic=
7758      lt_prog_compiler_can_build_shared=no
7759 fi
7760
7761 fi
7762 case $host_os in
7763   # For platforms which do not support PIC, -DPIC is meaningless:
7764   *djgpp*)
7765     lt_prog_compiler_pic=
7766     ;;
7767   *)
7768     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7769     ;;
7770 esac
7771
7772 #
7773 # Check to make sure the static flag actually works.
7774 #
7775 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7776 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7777 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7778 if test "${lt_prog_compiler_static_works+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   lt_prog_compiler_static_works=no
7782    save_LDFLAGS="$LDFLAGS"
7783    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7784    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7785    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7786      # The linker can only warn and ignore the option if not recognized
7787      # So say no if there are warnings
7788      if test -s conftest.err; then
7789        # Append any errors to the config.log.
7790        cat conftest.err 1>&5
7791        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7792        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7793        if diff conftest.exp conftest.er2 >/dev/null; then
7794          lt_prog_compiler_static_works=yes
7795        fi
7796      else
7797        lt_prog_compiler_static_works=yes
7798      fi
7799    fi
7800    $rm conftest*
7801    LDFLAGS="$save_LDFLAGS"
7802
7803 fi
7804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7805 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7806
7807 if test x"$lt_prog_compiler_static_works" = xyes; then
7808     :
7809 else
7810     lt_prog_compiler_static=
7811 fi
7812
7813
7814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   lt_cv_prog_compiler_c_o=no
7820    $rm -r conftest 2>/dev/null
7821    mkdir conftest
7822    cd conftest
7823    mkdir out
7824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7825
7826    lt_compiler_flag="-o out/conftest2.$ac_objext"
7827    # Insert the option either (1) after the last *FLAGS variable, or
7828    # (2) before a word containing "conftest.", or (3) at the end.
7829    # Note that $ac_compile itself does not contain backslashes and begins
7830    # with a dollar sign (not a hyphen), so the echo should work correctly.
7831    lt_compile=`echo "$ac_compile" | $SED \
7832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834    -e 's:$: $lt_compiler_flag:'`
7835    (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7836    (eval "$lt_compile" 2>out/conftest.err)
7837    ac_status=$?
7838    cat out/conftest.err >&5
7839    echo "$as_me:7839: \$? = $ac_status" >&5
7840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7841    then
7842      # The compiler can only warn and ignore the option if not recognized
7843      # So say no if there are warnings
7844      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7847        lt_cv_prog_compiler_c_o=yes
7848      fi
7849    fi
7850    chmod u+w . 2>&5
7851    $rm conftest*
7852    # SGI C++ compiler will create directory out/ii_files/ for
7853    # template instantiation
7854    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7855    $rm out/* && rmdir out
7856    cd ..
7857    rmdir conftest
7858    $rm conftest*
7859
7860 fi
7861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7863
7864
7865 hard_links="nottested"
7866 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7867   # do not overwrite the value of need_locks provided by the user
7868   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7870   hard_links=yes
7871   $rm conftest*
7872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7873   touch conftest.a
7874   ln conftest.a conftest.b 2>&5 || hard_links=no
7875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7876   { echo "$as_me:$LINENO: result: $hard_links" >&5
7877 echo "${ECHO_T}$hard_links" >&6; }
7878   if test "$hard_links" = no; then
7879     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7881     need_locks=warn
7882   fi
7883 else
7884   need_locks=no
7885 fi
7886
7887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7889
7890   runpath_var=
7891   allow_undefined_flag=
7892   enable_shared_with_static_runtimes=no
7893   archive_cmds=
7894   archive_expsym_cmds=
7895   old_archive_From_new_cmds=
7896   old_archive_from_expsyms_cmds=
7897   export_dynamic_flag_spec=
7898   whole_archive_flag_spec=
7899   thread_safe_flag_spec=
7900   hardcode_libdir_flag_spec=
7901   hardcode_libdir_flag_spec_ld=
7902   hardcode_libdir_separator=
7903   hardcode_direct=no
7904   hardcode_minus_L=no
7905   hardcode_shlibpath_var=unsupported
7906   link_all_deplibs=unknown
7907   hardcode_automatic=no
7908   module_cmds=
7909   module_expsym_cmds=
7910   always_export_symbols=no
7911   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7912   # include_expsyms should be a list of space-separated symbols to be *always*
7913   # included in the symbol list
7914   include_expsyms=
7915   # exclude_expsyms can be an extended regexp of symbols to exclude
7916   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7917   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7918   # as well as any symbol that contains `d'.
7919   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7920   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7921   # platforms (ab)use it in PIC code, but their linkers get confused if
7922   # the symbol is explicitly referenced.  Since portable code cannot
7923   # rely on this symbol name, it's probably fine to never include it in
7924   # preloaded symbol tables.
7925   extract_expsyms_cmds=
7926   # Just being paranoid about ensuring that cc_basename is set.
7927   for cc_temp in $compiler""; do
7928   case $cc_temp in
7929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7931     \-*) ;;
7932     *) break;;
7933   esac
7934 done
7935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7936
7937   case $host_os in
7938   cygwin* | mingw* | pw32*)
7939     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7940     # When not using gcc, we currently assume that we are using
7941     # Microsoft Visual C++.
7942     if test "$GCC" != yes; then
7943       with_gnu_ld=no
7944     fi
7945     ;;
7946   interix*)
7947     # we just hope/assume this is gcc and not c89 (= MSVC++)
7948     with_gnu_ld=yes
7949     ;;
7950   openbsd*)
7951     with_gnu_ld=no
7952     ;;
7953   esac
7954
7955   ld_shlibs=yes
7956   if test "$with_gnu_ld" = yes; then
7957     # If archive_cmds runs LD, not CC, wlarc should be empty
7958     wlarc='${wl}'
7959
7960     # Set some defaults for GNU ld with shared library support. These
7961     # are reset later if shared libraries are not supported. Putting them
7962     # here allows them to be overridden if necessary.
7963     runpath_var=LD_RUN_PATH
7964     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7965     export_dynamic_flag_spec='${wl}--export-dynamic'
7966     # ancient GNU ld didn't support --whole-archive et. al.
7967     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7968         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7969       else
7970         whole_archive_flag_spec=
7971     fi
7972     supports_anon_versioning=no
7973     case `$LD -v 2>/dev/null` in
7974       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7975       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7976       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7977       *\ 2.11.*) ;; # other 2.11 versions
7978       *) supports_anon_versioning=yes ;;
7979     esac
7980
7981     # See if GNU ld supports shared libraries.
7982     case $host_os in
7983     aix3* | aix4* | aix5*)
7984       # On AIX/PPC, the GNU linker is very broken
7985       if test "$host_cpu" != ia64; then
7986         ld_shlibs=no
7987         cat <<EOF 1>&2
7988
7989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7990 *** to be unable to reliably create shared libraries on AIX.
7991 *** Therefore, libtool is disabling shared libraries support.  If you
7992 *** really care for shared libraries, you may want to modify your PATH
7993 *** so that a non-GNU linker is found, and then restart.
7994
7995 EOF
7996       fi
7997       ;;
7998
7999     amigaos*)
8000       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)'
8001       hardcode_libdir_flag_spec='-L$libdir'
8002       hardcode_minus_L=yes
8003
8004       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8005       # that the semantics of dynamic libraries on AmigaOS, at least up
8006       # to version 4, is to share data among multiple programs linked
8007       # with the same dynamic library.  Since this doesn't match the
8008       # behavior of shared libraries on other platforms, we can't use
8009       # them.
8010       ld_shlibs=no
8011       ;;
8012
8013     beos*)
8014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015         allow_undefined_flag=unsupported
8016         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8017         # support --undefined.  This deserves some investigation.  FIXME
8018         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019       else
8020         ld_shlibs=no
8021       fi
8022       ;;
8023
8024     cygwin* | mingw* | pw32*)
8025       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8026       # as there is no search path for DLLs.
8027       hardcode_libdir_flag_spec='-L$libdir'
8028       allow_undefined_flag=unsupported
8029       always_export_symbols=no
8030       enable_shared_with_static_runtimes=yes
8031       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8032
8033       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8034         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035         # If the export-symbols file already is a .def file (1st line
8036         # is EXPORTS), use it as is; otherwise, prepend...
8037         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8038           cp $export_symbols $output_objdir/$soname.def;
8039         else
8040           echo EXPORTS > $output_objdir/$soname.def;
8041           cat $export_symbols >> $output_objdir/$soname.def;
8042         fi~
8043         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8044       else
8045         ld_shlibs=no
8046       fi
8047       ;;
8048
8049     interix[3-9]*)
8050       hardcode_direct=no
8051       hardcode_shlibpath_var=no
8052       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8053       export_dynamic_flag_spec='${wl}-E'
8054       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8055       # Instead, shared libraries are loaded at an image base (0x10000000 by
8056       # default) and relocated if they conflict, which is a slow very memory
8057       # consuming and fragmenting process.  To avoid this, we pick a random,
8058       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8059       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8060       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8061       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'
8062       ;;
8063
8064     gnu* | linux* | k*bsd*-gnu)
8065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8066         tmp_addflag=
8067         case $cc_basename,$host_cpu in
8068         pgcc*)                          # Portland Group C compiler
8069           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'
8070           tmp_addflag=' $pic_flag'
8071           ;;
8072         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8073           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'
8074           tmp_addflag=' $pic_flag -Mnomain' ;;
8075         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8076           tmp_addflag=' -i_dynamic' ;;
8077         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8078           tmp_addflag=' -i_dynamic -nofor_main' ;;
8079         ifc* | ifort*)                  # Intel Fortran compiler
8080           tmp_addflag=' -nofor_main' ;;
8081         esac
8082         case `$CC -V 2>&1 | sed 5q` in
8083         *Sun\ C*)                       # Sun C 5.9
8084           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8085           tmp_sharedflag='-G' ;;
8086         *Sun\ F*)                       # Sun Fortran 8.3
8087           tmp_sharedflag='-G' ;;
8088         *)
8089           tmp_sharedflag='-shared' ;;
8090         esac
8091         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092
8093         if test $supports_anon_versioning = yes; then
8094           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8095   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8096   $echo "local: *; };" >> $output_objdir/$libname.ver~
8097           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8098         fi
8099       else
8100         ld_shlibs=no
8101       fi
8102       ;;
8103
8104     netbsd*)
8105       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8106         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8107         wlarc=
8108       else
8109         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8111       fi
8112       ;;
8113
8114     solaris*)
8115       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8116         ld_shlibs=no
8117         cat <<EOF 1>&2
8118
8119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8120 *** create shared libraries on Solaris systems.  Therefore, libtool
8121 *** is disabling shared libraries support.  We urge you to upgrade GNU
8122 *** binutils to release 2.9.1 or newer.  Another option is to modify
8123 *** your PATH or compiler configuration so that the native linker is
8124 *** used, and then restart.
8125
8126 EOF
8127       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130       else
8131         ld_shlibs=no
8132       fi
8133       ;;
8134
8135     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8136       case `$LD -v 2>&1` in
8137         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8138         ld_shlibs=no
8139         cat <<_LT_EOF 1>&2
8140
8141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8142 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8143 *** is disabling shared libraries support.  We urge you to upgrade GNU
8144 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8145 *** your PATH or compiler configuration so that the native linker is
8146 *** used, and then restart.
8147
8148 _LT_EOF
8149         ;;
8150         *)
8151           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8153             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8154             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8155           else
8156             ld_shlibs=no
8157           fi
8158         ;;
8159       esac
8160       ;;
8161
8162     sunos4*)
8163       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8164       wlarc=
8165       hardcode_direct=yes
8166       hardcode_shlibpath_var=no
8167       ;;
8168
8169     *)
8170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177     esac
8178
8179     if test "$ld_shlibs" = no; then
8180       runpath_var=
8181       hardcode_libdir_flag_spec=
8182       export_dynamic_flag_spec=
8183       whole_archive_flag_spec=
8184     fi
8185   else
8186     # PORTME fill in a description of your system's linker (not GNU ld)
8187     case $host_os in
8188     aix3*)
8189       allow_undefined_flag=unsupported
8190       always_export_symbols=yes
8191       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'
8192       # Note: this linker hardcodes the directories in LIBPATH if there
8193       # are no directories specified by -L.
8194       hardcode_minus_L=yes
8195       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8196         # Neither direct hardcoding nor static linking is supported with a
8197         # broken collect2.
8198         hardcode_direct=unsupported
8199       fi
8200       ;;
8201
8202     aix4* | aix5*)
8203       if test "$host_cpu" = ia64; then
8204         # On IA64, the linker does run time linking by default, so we don't
8205         # have to do anything special.
8206         aix_use_runtimelinking=no
8207         exp_sym_flag='-Bexport'
8208         no_entry_flag=""
8209       else
8210         # If we're using GNU nm, then we don't want the "-C" option.
8211         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8212         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8213           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'
8214         else
8215           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'
8216         fi
8217         aix_use_runtimelinking=no
8218
8219         # Test if we are trying to use run time linking or normal
8220         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8221         # need to do runtime linking.
8222         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8223           for ld_flag in $LDFLAGS; do
8224           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8225             aix_use_runtimelinking=yes
8226             break
8227           fi
8228           done
8229           ;;
8230         esac
8231
8232         exp_sym_flag='-bexport'
8233         no_entry_flag='-bnoentry'
8234       fi
8235
8236       # When large executables or shared objects are built, AIX ld can
8237       # have problems creating the table of contents.  If linking a library
8238       # or program results in "error TOC overflow" add -mminimal-toc to
8239       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8240       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8241
8242       archive_cmds=''
8243       hardcode_direct=yes
8244       hardcode_libdir_separator=':'
8245       link_all_deplibs=yes
8246
8247       if test "$GCC" = yes; then
8248         case $host_os in aix4.[012]|aix4.[012].*)
8249         # We only want to do this on AIX 4.2 and lower, the check
8250         # below for broken collect2 doesn't work under 4.3+
8251           collect2name=`${CC} -print-prog-name=collect2`
8252           if test -f "$collect2name" && \
8253            strings "$collect2name" | grep resolve_lib_name >/dev/null
8254           then
8255           # We have reworked collect2
8256           :
8257           else
8258           # We have old collect2
8259           hardcode_direct=unsupported
8260           # It fails to find uninstalled libraries when the uninstalled
8261           # path is not listed in the libpath.  Setting hardcode_minus_L
8262           # to unsupported forces relinking
8263           hardcode_minus_L=yes
8264           hardcode_libdir_flag_spec='-L$libdir'
8265           hardcode_libdir_separator=
8266           fi
8267           ;;
8268         esac
8269         shared_flag='-shared'
8270         if test "$aix_use_runtimelinking" = yes; then
8271           shared_flag="$shared_flag "'${wl}-G'
8272         fi
8273       else
8274         # not using gcc
8275         if test "$host_cpu" = ia64; then
8276         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8277         # chokes on -Wl,-G. The following line is correct:
8278           shared_flag='-G'
8279         else
8280           if test "$aix_use_runtimelinking" = yes; then
8281             shared_flag='${wl}-G'
8282           else
8283             shared_flag='${wl}-bM:SRE'
8284           fi
8285         fi
8286       fi
8287
8288       # It seems that -bexpall does not export symbols beginning with
8289       # underscore (_), so it is better to generate a list of symbols to export.
8290       always_export_symbols=yes
8291       if test "$aix_use_runtimelinking" = yes; then
8292         # Warning - without using the other runtime loading flags (-brtl),
8293         # -berok will link without error, but may produce a broken library.
8294         allow_undefined_flag='-berok'
8295        # Determine the default libpath from the value encoded in an empty executable.
8296        cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302
8303 int
8304 main ()
8305 {
8306
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_link") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } && {
8325          test -z "$ac_c_werror_flag" ||
8326          test ! -s conftest.err
8327        } && test -s conftest$ac_exeext &&
8328        $as_test_x conftest$ac_exeext; then
8329
8330 lt_aix_libpath_sed='
8331     /Import File Strings/,/^$/ {
8332         /^0/ {
8333             s/^0  *\(.*\)$/\1/
8334             p
8335         }
8336     }'
8337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8338 # Check for a 64-bit object if we didn't find anything.
8339 if test -z "$aix_libpath"; then
8340   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8341 fi
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346
8347 fi
8348
8349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8350       conftest$ac_exeext conftest.$ac_ext
8351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8352
8353        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8354         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"
8355        else
8356         if test "$host_cpu" = ia64; then
8357           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8358           allow_undefined_flag="-z nodefs"
8359           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"
8360         else
8361          # Determine the default libpath from the value encoded in an empty executable.
8362          cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368
8369 int
8370 main ()
8371 {
8372
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_link") 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } && {
8391          test -z "$ac_c_werror_flag" ||
8392          test ! -s conftest.err
8393        } && test -s conftest$ac_exeext &&
8394        $as_test_x conftest$ac_exeext; then
8395
8396 lt_aix_libpath_sed='
8397     /Import File Strings/,/^$/ {
8398         /^0/ {
8399             s/^0  *\(.*\)$/\1/
8400             p
8401         }
8402     }'
8403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 # Check for a 64-bit object if we didn't find anything.
8405 if test -z "$aix_libpath"; then
8406   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8407 fi
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416       conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8418
8419          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420           # Warning - without using the other run time loading flags,
8421           # -berok will link without error, but may produce a broken library.
8422           no_undefined_flag=' ${wl}-bernotok'
8423           allow_undefined_flag=' ${wl}-berok'
8424           # Exported symbols can be pulled into shared objects from archives
8425           whole_archive_flag_spec='$convenience'
8426           archive_cmds_need_lc=yes
8427           # This is similar to how AIX traditionally builds its shared libraries.
8428           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'
8429         fi
8430       fi
8431       ;;
8432
8433     amigaos*)
8434       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)'
8435       hardcode_libdir_flag_spec='-L$libdir'
8436       hardcode_minus_L=yes
8437       # see comment about different semantics on the GNU ld section
8438       ld_shlibs=no
8439       ;;
8440
8441     bsdi[45]*)
8442       export_dynamic_flag_spec=-rdynamic
8443       ;;
8444
8445     cygwin* | mingw* | pw32*)
8446       # When not using gcc, we currently assume that we are using
8447       # Microsoft Visual C++.
8448       # hardcode_libdir_flag_spec is actually meaningless, as there is
8449       # no search path for DLLs.
8450       hardcode_libdir_flag_spec=' '
8451       allow_undefined_flag=unsupported
8452       # Tell ltmain to make .lib files, not .a files.
8453       libext=lib
8454       # Tell ltmain to make .dll files, not .so files.
8455       shrext_cmds=".dll"
8456       # FIXME: Setting linknames here is a bad hack.
8457       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8458       # The linker will automatically build a .lib file if we build a DLL.
8459       old_archive_From_new_cmds='true'
8460       # FIXME: Should let the user specify the lib program.
8461       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8462       fix_srcfile_path='`cygpath -w "$srcfile"`'
8463       enable_shared_with_static_runtimes=yes
8464       ;;
8465
8466     darwin* | rhapsody*)
8467       case $host_os in
8468         rhapsody* | darwin1.[012])
8469          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8470          ;;
8471        *) # Darwin 1.3 on
8472          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8473            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8474          else
8475            case ${MACOSX_DEPLOYMENT_TARGET} in
8476              10.[012])
8477                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8478                ;;
8479              10.*)
8480                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8481                ;;
8482            esac
8483          fi
8484          ;;
8485       esac
8486       archive_cmds_need_lc=no
8487       hardcode_direct=no
8488       hardcode_automatic=yes
8489       hardcode_shlibpath_var=unsupported
8490       whole_archive_flag_spec=''
8491       link_all_deplibs=yes
8492     if test "$GCC" = yes ; then
8493         output_verbose_link_cmd='echo'
8494         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8495       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8496       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8497       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}'
8498       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}'
8499     else
8500       case $cc_basename in
8501         xlc*)
8502          output_verbose_link_cmd='echo'
8503          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8504          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8505           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8506          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8507           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}'
8508           ;;
8509        *)
8510          ld_shlibs=no
8511           ;;
8512       esac
8513     fi
8514       ;;
8515
8516     dgux*)
8517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518       hardcode_libdir_flag_spec='-L$libdir'
8519       hardcode_shlibpath_var=no
8520       ;;
8521
8522     freebsd1*)
8523       ld_shlibs=no
8524       ;;
8525
8526     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8527     # support.  Future versions do this automatically, but an explicit c++rt0.o
8528     # does not break anything, and helps significantly (at the cost of a little
8529     # extra space).
8530     freebsd2.2*)
8531       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8532       hardcode_libdir_flag_spec='-R$libdir'
8533       hardcode_direct=yes
8534       hardcode_shlibpath_var=no
8535       ;;
8536
8537     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8538     freebsd2*)
8539       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8540       hardcode_direct=yes
8541       hardcode_minus_L=yes
8542       hardcode_shlibpath_var=no
8543       ;;
8544
8545     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8546     freebsd* | dragonfly*)
8547       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8548       hardcode_libdir_flag_spec='-R$libdir'
8549       hardcode_direct=yes
8550       hardcode_shlibpath_var=no
8551       ;;
8552
8553     hpux9*)
8554       if test "$GCC" = yes; then
8555         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'
8556       else
8557         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'
8558       fi
8559       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8560       hardcode_libdir_separator=:
8561       hardcode_direct=yes
8562
8563       # hardcode_minus_L: Not really in the search PATH,
8564       # but as the default location of the library.
8565       hardcode_minus_L=yes
8566       export_dynamic_flag_spec='${wl}-E'
8567       ;;
8568
8569     hpux10*)
8570       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8571         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572       else
8573         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8574       fi
8575       if test "$with_gnu_ld" = no; then
8576         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8577         hardcode_libdir_separator=:
8578
8579         hardcode_direct=yes
8580         export_dynamic_flag_spec='${wl}-E'
8581
8582         # hardcode_minus_L: Not really in the search PATH,
8583         # but as the default location of the library.
8584         hardcode_minus_L=yes
8585       fi
8586       ;;
8587
8588     hpux11*)
8589       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8590         case $host_cpu in
8591         hppa*64*)
8592           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593           ;;
8594         ia64*)
8595           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8596           ;;
8597         *)
8598           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8599           ;;
8600         esac
8601       else
8602         case $host_cpu in
8603         hppa*64*)
8604           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8605           ;;
8606         ia64*)
8607           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8608           ;;
8609         *)
8610           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8611           ;;
8612         esac
8613       fi
8614       if test "$with_gnu_ld" = no; then
8615         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616         hardcode_libdir_separator=:
8617
8618         case $host_cpu in
8619         hppa*64*|ia64*)
8620           hardcode_libdir_flag_spec_ld='+b $libdir'
8621           hardcode_direct=no
8622           hardcode_shlibpath_var=no
8623           ;;
8624         *)
8625           hardcode_direct=yes
8626           export_dynamic_flag_spec='${wl}-E'
8627
8628           # hardcode_minus_L: Not really in the search PATH,
8629           # but as the default location of the library.
8630           hardcode_minus_L=yes
8631           ;;
8632         esac
8633       fi
8634       ;;
8635
8636     irix5* | irix6* | nonstopux*)
8637       if test "$GCC" = yes; then
8638         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'
8639       else
8640         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'
8641         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8642       fi
8643       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644       hardcode_libdir_separator=:
8645       link_all_deplibs=yes
8646       ;;
8647
8648     netbsd*)
8649       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8650         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8651       else
8652         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8653       fi
8654       hardcode_libdir_flag_spec='-R$libdir'
8655       hardcode_direct=yes
8656       hardcode_shlibpath_var=no
8657       ;;
8658
8659     newsos6)
8660       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661       hardcode_direct=yes
8662       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663       hardcode_libdir_separator=:
8664       hardcode_shlibpath_var=no
8665       ;;
8666
8667     openbsd*)
8668       if test -f /usr/libexec/ld.so; then
8669         hardcode_direct=yes
8670         hardcode_shlibpath_var=no
8671         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8672           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8673           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8674           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675           export_dynamic_flag_spec='${wl}-E'
8676         else
8677           case $host_os in
8678            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8679              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8680              hardcode_libdir_flag_spec='-R$libdir'
8681              ;;
8682            *)
8683              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8684              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8685              ;;
8686           esac
8687         fi
8688       else
8689         ld_shlibs=no
8690       fi
8691       ;;
8692
8693     os2*)
8694       hardcode_libdir_flag_spec='-L$libdir'
8695       hardcode_minus_L=yes
8696       allow_undefined_flag=unsupported
8697       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'
8698       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8699       ;;
8700
8701     osf3*)
8702       if test "$GCC" = yes; then
8703         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8704         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'
8705       else
8706         allow_undefined_flag=' -expect_unresolved \*'
8707         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'
8708       fi
8709       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710       hardcode_libdir_separator=:
8711       ;;
8712
8713     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8714       if test "$GCC" = yes; then
8715         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8716         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'
8717         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8718       else
8719         allow_undefined_flag=' -expect_unresolved \*'
8720         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'
8721         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8722         $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'
8723
8724         # Both c and cxx compiler support -rpath directly
8725         hardcode_libdir_flag_spec='-rpath $libdir'
8726       fi
8727       hardcode_libdir_separator=:
8728       ;;
8729
8730     solaris*)
8731       no_undefined_flag=' -z text'
8732       if test "$GCC" = yes; then
8733         wlarc='${wl}'
8734         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8736           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8737       else
8738         wlarc=''
8739         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8741         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8742       fi
8743       hardcode_libdir_flag_spec='-R$libdir'
8744       hardcode_shlibpath_var=no
8745       case $host_os in
8746       solaris2.[0-5] | solaris2.[0-5].*) ;;
8747       *)
8748         # The compiler driver will combine and reorder linker options,
8749         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8750         # but is careful enough not to reorder.
8751         # Supported since Solaris 2.6 (maybe 2.5.1?)
8752         if test "$GCC" = yes; then
8753           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8754         else
8755           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8756         fi
8757         ;;
8758       esac
8759       link_all_deplibs=yes
8760       ;;
8761
8762     sunos4*)
8763       if test "x$host_vendor" = xsequent; then
8764         # Use $CC to link under sequent, because it throws in some extra .o
8765         # files that make .init and .fini sections work.
8766         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8767       else
8768         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8769       fi
8770       hardcode_libdir_flag_spec='-L$libdir'
8771       hardcode_direct=yes
8772       hardcode_minus_L=yes
8773       hardcode_shlibpath_var=no
8774       ;;
8775
8776     sysv4)
8777       case $host_vendor in
8778         sni)
8779           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780           hardcode_direct=yes # is this really true???
8781         ;;
8782         siemens)
8783           ## LD is ld it makes a PLAMLIB
8784           ## CC just makes a GrossModule.
8785           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8786           reload_cmds='$CC -r -o $output$reload_objs'
8787           hardcode_direct=no
8788         ;;
8789         motorola)
8790           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8792         ;;
8793       esac
8794       runpath_var='LD_RUN_PATH'
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     sysv4.3*)
8799       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800       hardcode_shlibpath_var=no
8801       export_dynamic_flag_spec='-Bexport'
8802       ;;
8803
8804     sysv4*MP*)
8805       if test -d /usr/nec; then
8806         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807         hardcode_shlibpath_var=no
8808         runpath_var=LD_RUN_PATH
8809         hardcode_runpath_var=yes
8810         ld_shlibs=yes
8811       fi
8812       ;;
8813
8814     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8815       no_undefined_flag='${wl}-z,text'
8816       archive_cmds_need_lc=no
8817       hardcode_shlibpath_var=no
8818       runpath_var='LD_RUN_PATH'
8819
8820       if test "$GCC" = yes; then
8821         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823       else
8824         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826       fi
8827       ;;
8828
8829     sysv5* | sco3.2v5* | sco5v6*)
8830       # Note: We can NOT use -z defs as we might desire, because we do not
8831       # link with -lc, and that would cause any symbols used from libc to
8832       # always be unresolved, which means just about no library would
8833       # ever link correctly.  If we're not using GNU ld we use -z text
8834       # though, which does catch some bad symbols but isn't as heavy-handed
8835       # as -z defs.
8836       no_undefined_flag='${wl}-z,text'
8837       allow_undefined_flag='${wl}-z,nodefs'
8838       archive_cmds_need_lc=no
8839       hardcode_shlibpath_var=no
8840       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8841       hardcode_libdir_separator=':'
8842       link_all_deplibs=yes
8843       export_dynamic_flag_spec='${wl}-Bexport'
8844       runpath_var='LD_RUN_PATH'
8845
8846       if test "$GCC" = yes; then
8847         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849       else
8850         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852       fi
8853       ;;
8854
8855     uts4*)
8856       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857       hardcode_libdir_flag_spec='-L$libdir'
8858       hardcode_shlibpath_var=no
8859       ;;
8860
8861     *)
8862       ld_shlibs=no
8863       ;;
8864     esac
8865   fi
8866
8867 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8868 echo "${ECHO_T}$ld_shlibs" >&6; }
8869 test "$ld_shlibs" = no && can_build_shared=no
8870
8871 #
8872 # Do we need to explicitly link libc?
8873 #
8874 case "x$archive_cmds_need_lc" in
8875 x|xyes)
8876   # Assume -lc should be added
8877   archive_cmds_need_lc=yes
8878
8879   if test "$enable_shared" = yes && test "$GCC" = yes; then
8880     case $archive_cmds in
8881     *'~'*)
8882       # FIXME: we may have to deal with multi-command sequences.
8883       ;;
8884     '$CC '*)
8885       # Test whether the compiler implicitly links with -lc since on some
8886       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8887       # to ld, don't add -lc before -lgcc.
8888       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8889 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8890       $rm conftest*
8891       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892
8893       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894   (eval $ac_compile) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } 2>conftest.err; then
8898         soname=conftest
8899         lib=conftest
8900         libobjs=conftest.$ac_objext
8901         deplibs=
8902         wl=$lt_prog_compiler_wl
8903         pic_flag=$lt_prog_compiler_pic
8904         compiler_flags=-v
8905         linker_flags=-v
8906         verstring=
8907         output_objdir=.
8908         libname=conftest
8909         lt_save_allow_undefined_flag=$allow_undefined_flag
8910         allow_undefined_flag=
8911         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8912   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }
8916         then
8917           archive_cmds_need_lc=no
8918         else
8919           archive_cmds_need_lc=yes
8920         fi
8921         allow_undefined_flag=$lt_save_allow_undefined_flag
8922       else
8923         cat conftest.err 1>&5
8924       fi
8925       $rm conftest*
8926       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8927 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8928       ;;
8929     esac
8930   fi
8931   ;;
8932 esac
8933
8934 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8935 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8936 library_names_spec=
8937 libname_spec='lib$name'
8938 soname_spec=
8939 shrext_cmds=".so"
8940 postinstall_cmds=
8941 postuninstall_cmds=
8942 finish_cmds=
8943 finish_eval=
8944 shlibpath_var=
8945 shlibpath_overrides_runpath=unknown
8946 version_type=none
8947 dynamic_linker="$host_os ld.so"
8948 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8949
8950 if test "$GCC" = yes; then
8951   case $host_os in
8952     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8953     *) lt_awk_arg="/^libraries:/" ;;
8954   esac
8955   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8957     # if the path contains ";" then we assume it to be the separator
8958     # otherwise default to the standard path separator (i.e. ":") - it is
8959     # assumed that no part of a normal pathname contains ";" but that should
8960     # okay in the real world where ";" in dirpaths is itself problematic.
8961     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8962   else
8963     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8964   fi
8965   # Ok, now we have the path, separated by spaces, we can step through it
8966   # and add multilib dir if necessary.
8967   lt_tmp_lt_search_path_spec=
8968   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8969   for lt_sys_path in $lt_search_path_spec; do
8970     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8971       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8972     else
8973       test -d "$lt_sys_path" && \
8974         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8975     fi
8976   done
8977   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8978 BEGIN {RS=" "; FS="/|\n";} {
8979   lt_foo="";
8980   lt_count=0;
8981   for (lt_i = NF; lt_i > 0; lt_i--) {
8982     if ($lt_i != "" && $lt_i != ".") {
8983       if ($lt_i == "..") {
8984         lt_count++;
8985       } else {
8986         if (lt_count == 0) {
8987           lt_foo="/" $lt_i lt_foo;
8988         } else {
8989           lt_count--;
8990         }
8991       }
8992     }
8993   }
8994   if (lt_foo != "") { lt_freq[lt_foo]++; }
8995   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8996 }'`
8997   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8998 else
8999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9000 fi
9001 need_lib_prefix=unknown
9002 hardcode_into_libs=no
9003
9004 # when you set need_version to no, make sure it does not cause -set_version
9005 # flags to be left without arguments
9006 need_version=unknown
9007
9008 case $host_os in
9009 aix3*)
9010   version_type=linux
9011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9012   shlibpath_var=LIBPATH
9013
9014   # AIX 3 has no versioning support, so we append a major version to the name.
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   ;;
9017
9018 aix4* | aix5*)
9019   version_type=linux
9020   need_lib_prefix=no
9021   need_version=no
9022   hardcode_into_libs=yes
9023   if test "$host_cpu" = ia64; then
9024     # AIX 5 supports IA64
9025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9026     shlibpath_var=LD_LIBRARY_PATH
9027   else
9028     # With GCC up to 2.95.x, collect2 would create an import file
9029     # for dependence libraries.  The import file would start with
9030     # the line `#! .'.  This would cause the generated library to
9031     # depend on `.', always an invalid library.  This was fixed in
9032     # development snapshots of GCC prior to 3.0.
9033     case $host_os in
9034       aix4 | aix4.[01] | aix4.[01].*)
9035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9036            echo ' yes '
9037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9038         :
9039       else
9040         can_build_shared=no
9041       fi
9042       ;;
9043     esac
9044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9045     # soname into executable. Probably we can add versioning support to
9046     # collect2, so additional links can be useful in future.
9047     if test "$aix_use_runtimelinking" = yes; then
9048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9049       # instead of lib<name>.a to let people know that these are not
9050       # typical AIX shared libraries.
9051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052     else
9053       # We preserve .a as extension for shared libraries through AIX4.2
9054       # and later when we are not doing run time linking.
9055       library_names_spec='${libname}${release}.a $libname.a'
9056       soname_spec='${libname}${release}${shared_ext}$major'
9057     fi
9058     shlibpath_var=LIBPATH
9059   fi
9060   ;;
9061
9062 amigaos*)
9063   library_names_spec='$libname.ixlibrary $libname.a'
9064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9065   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'
9066   ;;
9067
9068 beos*)
9069   library_names_spec='${libname}${shared_ext}'
9070   dynamic_linker="$host_os ld.so"
9071   shlibpath_var=LIBRARY_PATH
9072   ;;
9073
9074 bsdi[45]*)
9075   version_type=linux
9076   need_version=no
9077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078   soname_spec='${libname}${release}${shared_ext}$major'
9079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9080   shlibpath_var=LD_LIBRARY_PATH
9081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9083   # the default ld.so.conf also contains /usr/contrib/lib and
9084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9085   # libtool to hard-code these into programs
9086   ;;
9087
9088 cygwin* | mingw* | pw32*)
9089   version_type=windows
9090   shrext_cmds=".dll"
9091   need_version=no
9092   need_lib_prefix=no
9093
9094   case $GCC,$host_os in
9095   yes,cygwin* | yes,mingw* | yes,pw32*)
9096     library_names_spec='$libname.dll.a'
9097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9098     postinstall_cmds='base_file=`basename \${file}`~
9099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9100       dldir=$destdir/`dirname \$dlpath`~
9101       test -d \$dldir || mkdir -p \$dldir~
9102       $install_prog $dir/$dlname \$dldir/$dlname~
9103       chmod a+x \$dldir/$dlname'
9104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9105       dlpath=$dir/\$dldll~
9106        $rm \$dlpath'
9107     shlibpath_overrides_runpath=yes
9108
9109     case $host_os in
9110     cygwin*)
9111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9114       ;;
9115     mingw*)
9116       # MinGW DLLs use traditional 'lib' prefix
9117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9119       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9120         # It is most probably a Windows format PATH printed by
9121         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9122         # path with ; separators, and with drive letters. We can handle the
9123         # drive letters (cygwin fileutils understands them), so leave them,
9124         # especially as we might pass files found there to a mingw objdump,
9125         # which wouldn't understand a cygwinified path. Ahh.
9126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9127       else
9128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9129       fi
9130       ;;
9131     pw32*)
9132       # pw32 DLLs use 'pw' prefix rather than 'lib'
9133       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134       ;;
9135     esac
9136     ;;
9137
9138   *)
9139     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9140     ;;
9141   esac
9142   dynamic_linker='Win32 ld.exe'
9143   # FIXME: first we should search . and the directory the executable is in
9144   shlibpath_var=PATH
9145   ;;
9146
9147 darwin* | rhapsody*)
9148   dynamic_linker="$host_os dyld"
9149   version_type=darwin
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9153   soname_spec='${libname}${release}${major}$shared_ext'
9154   shlibpath_overrides_runpath=yes
9155   shlibpath_var=DYLD_LIBRARY_PATH
9156   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9157
9158   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9159   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9160   ;;
9161
9162 dgux*)
9163   version_type=linux
9164   need_lib_prefix=no
9165   need_version=no
9166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9167   soname_spec='${libname}${release}${shared_ext}$major'
9168   shlibpath_var=LD_LIBRARY_PATH
9169   ;;
9170
9171 freebsd1*)
9172   dynamic_linker=no
9173   ;;
9174
9175 freebsd* | dragonfly*)
9176   # DragonFly does not have aout.  When/if they implement a new
9177   # versioning mechanism, adjust this.
9178   if test -x /usr/bin/objformat; then
9179     objformat=`/usr/bin/objformat`
9180   else
9181     case $host_os in
9182     freebsd[123]*) objformat=aout ;;
9183     *) objformat=elf ;;
9184     esac
9185   fi
9186   # Handle Gentoo/FreeBSD as it was Linux
9187   case $host_vendor in
9188     gentoo)
9189       version_type=linux ;;
9190     *)
9191       version_type=freebsd-$objformat ;;
9192   esac
9193
9194   case $version_type in
9195     freebsd-elf*)
9196       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9197       need_version=no
9198       need_lib_prefix=no
9199       ;;
9200     freebsd-*)
9201       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9202       need_version=yes
9203       ;;
9204     linux)
9205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206       soname_spec='${libname}${release}${shared_ext}$major'
9207       need_lib_prefix=no
9208       need_version=no
9209       ;;
9210   esac
9211   shlibpath_var=LD_LIBRARY_PATH
9212   case $host_os in
9213   freebsd2*)
9214     shlibpath_overrides_runpath=yes
9215     ;;
9216   freebsd3.[01]* | freebsdelf3.[01]*)
9217     shlibpath_overrides_runpath=yes
9218     hardcode_into_libs=yes
9219     ;;
9220   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9221   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9222     shlibpath_overrides_runpath=no
9223     hardcode_into_libs=yes
9224     ;;
9225   *) # from 4.6 on, and DragonFly
9226     shlibpath_overrides_runpath=yes
9227     hardcode_into_libs=yes
9228     ;;
9229   esac
9230   ;;
9231
9232 gnu*)
9233   version_type=linux
9234   need_lib_prefix=no
9235   need_version=no
9236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9237   soname_spec='${libname}${release}${shared_ext}$major'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   hardcode_into_libs=yes
9240   ;;
9241
9242 hpux9* | hpux10* | hpux11*)
9243   # Give a soname corresponding to the major version so that dld.sl refuses to
9244   # link against other versions.
9245   version_type=sunos
9246   need_lib_prefix=no
9247   need_version=no
9248   case $host_cpu in
9249   ia64*)
9250     shrext_cmds='.so'
9251     hardcode_into_libs=yes
9252     dynamic_linker="$host_os dld.so"
9253     shlibpath_var=LD_LIBRARY_PATH
9254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256     soname_spec='${libname}${release}${shared_ext}$major'
9257     if test "X$HPUX_IA64_MODE" = X32; then
9258       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9259     else
9260       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9261     fi
9262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9263     ;;
9264    hppa*64*)
9265      shrext_cmds='.sl'
9266      hardcode_into_libs=yes
9267      dynamic_linker="$host_os dld.sl"
9268      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9269      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271      soname_spec='${libname}${release}${shared_ext}$major'
9272      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9273      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9274      ;;
9275    *)
9276     shrext_cmds='.sl'
9277     dynamic_linker="$host_os dld.sl"
9278     shlibpath_var=SHLIB_PATH
9279     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281     soname_spec='${libname}${release}${shared_ext}$major'
9282     ;;
9283   esac
9284   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9285   postinstall_cmds='chmod 555 $lib'
9286   ;;
9287
9288 interix[3-9]*)
9289   version_type=linux
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   shlibpath_overrides_runpath=no
9297   hardcode_into_libs=yes
9298   ;;
9299
9300 irix5* | irix6* | nonstopux*)
9301   case $host_os in
9302     nonstopux*) version_type=nonstopux ;;
9303     *)
9304         if test "$lt_cv_prog_gnu_ld" = yes; then
9305                 version_type=linux
9306         else
9307                 version_type=irix
9308         fi ;;
9309   esac
9310   need_lib_prefix=no
9311   need_version=no
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9314   case $host_os in
9315   irix5* | nonstopux*)
9316     libsuff= shlibsuff=
9317     ;;
9318   *)
9319     case $LD in # libtool.m4 will add one of these switches to LD
9320     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9321       libsuff= shlibsuff= libmagic=32-bit;;
9322     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9323       libsuff=32 shlibsuff=N32 libmagic=N32;;
9324     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9325       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9326     *) libsuff= shlibsuff= libmagic=never-match;;
9327     esac
9328     ;;
9329   esac
9330   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9331   shlibpath_overrides_runpath=no
9332   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9333   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9334   hardcode_into_libs=yes
9335   ;;
9336
9337 # No shared lib support for Linux oldld, aout, or coff.
9338 linux*oldld* | linux*aout* | linux*coff*)
9339   dynamic_linker=no
9340   ;;
9341
9342 # This must be Linux ELF.
9343 linux* | k*bsd*-gnu)
9344   version_type=linux
9345   need_lib_prefix=no
9346   need_version=no
9347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348   soname_spec='${libname}${release}${shared_ext}$major'
9349   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=no
9352   # This implies no fast_install, which is unacceptable.
9353   # Some rework will be needed to allow for fast_install
9354   # before this can be enabled.
9355   hardcode_into_libs=yes
9356
9357   # Append ld.so.conf contents to the search path
9358   if test -f /etc/ld.so.conf; then
9359     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9360     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9361   fi
9362
9363   # We used to test for /lib/ld.so.1 and disable shared libraries on
9364   # powerpc, because MkLinux only supported shared libraries with the
9365   # GNU dynamic linker.  Since this was broken with cross compilers,
9366   # most powerpc-linux boxes support dynamic linking these days and
9367   # people can always --disable-shared, the test was removed, and we
9368   # assume the GNU/Linux dynamic linker is in use.
9369   dynamic_linker='GNU/Linux ld.so'
9370   ;;
9371
9372 netbsd*)
9373   version_type=sunos
9374   need_lib_prefix=no
9375   need_version=no
9376   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9378     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9379     dynamic_linker='NetBSD (a.out) ld.so'
9380   else
9381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9382     soname_spec='${libname}${release}${shared_ext}$major'
9383     dynamic_linker='NetBSD ld.elf_so'
9384   fi
9385   shlibpath_var=LD_LIBRARY_PATH
9386   shlibpath_overrides_runpath=yes
9387   hardcode_into_libs=yes
9388   ;;
9389
9390 newsos6)
9391   version_type=linux
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393   shlibpath_var=LD_LIBRARY_PATH
9394   shlibpath_overrides_runpath=yes
9395   ;;
9396
9397 nto-qnx*)
9398   version_type=linux
9399   need_lib_prefix=no
9400   need_version=no
9401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402   soname_spec='${libname}${release}${shared_ext}$major'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   shlibpath_overrides_runpath=yes
9405   ;;
9406
9407 openbsd*)
9408   version_type=sunos
9409   sys_lib_dlsearch_path_spec="/usr/lib"
9410   need_lib_prefix=no
9411   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9412   case $host_os in
9413     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9414     *)                         need_version=no  ;;
9415   esac
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418   shlibpath_var=LD_LIBRARY_PATH
9419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9420     case $host_os in
9421       openbsd2.[89] | openbsd2.[89].*)
9422         shlibpath_overrides_runpath=no
9423         ;;
9424       *)
9425         shlibpath_overrides_runpath=yes
9426         ;;
9427       esac
9428   else
9429     shlibpath_overrides_runpath=yes
9430   fi
9431   ;;
9432
9433 os2*)
9434   libname_spec='$name'
9435   shrext_cmds=".dll"
9436   need_lib_prefix=no
9437   library_names_spec='$libname${shared_ext} $libname.a'
9438   dynamic_linker='OS/2 ld.exe'
9439   shlibpath_var=LIBPATH
9440   ;;
9441
9442 osf3* | osf4* | osf5*)
9443   version_type=osf
9444   need_lib_prefix=no
9445   need_version=no
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448   shlibpath_var=LD_LIBRARY_PATH
9449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9451   ;;
9452
9453 rdos*)
9454   dynamic_linker=no
9455   ;;
9456
9457 solaris*)
9458   version_type=linux
9459   need_lib_prefix=no
9460   need_version=no
9461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462   soname_spec='${libname}${release}${shared_ext}$major'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   shlibpath_overrides_runpath=yes
9465   hardcode_into_libs=yes
9466   # ldd complains unless libraries are executable
9467   postinstall_cmds='chmod +x $lib'
9468   ;;
9469
9470 sunos4*)
9471   version_type=sunos
9472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9473   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=yes
9476   if test "$with_gnu_ld" = yes; then
9477     need_lib_prefix=no
9478   fi
9479   need_version=yes
9480   ;;
9481
9482 sysv4 | sysv4.3*)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   case $host_vendor in
9488     sni)
9489       shlibpath_overrides_runpath=no
9490       need_lib_prefix=no
9491       export_dynamic_flag_spec='${wl}-Blargedynsym'
9492       runpath_var=LD_RUN_PATH
9493       ;;
9494     siemens)
9495       need_lib_prefix=no
9496       ;;
9497     motorola)
9498       need_lib_prefix=no
9499       need_version=no
9500       shlibpath_overrides_runpath=no
9501       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9502       ;;
9503   esac
9504   ;;
9505
9506 sysv4*MP*)
9507   if test -d /usr/nec ;then
9508     version_type=linux
9509     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9510     soname_spec='$libname${shared_ext}.$major'
9511     shlibpath_var=LD_LIBRARY_PATH
9512   fi
9513   ;;
9514
9515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9516   version_type=freebsd-elf
9517   need_lib_prefix=no
9518   need_version=no
9519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9520   soname_spec='${libname}${release}${shared_ext}$major'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   hardcode_into_libs=yes
9523   if test "$with_gnu_ld" = yes; then
9524     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9525     shlibpath_overrides_runpath=no
9526   else
9527     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9528     shlibpath_overrides_runpath=yes
9529     case $host_os in
9530       sco3.2v5*)
9531         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9532         ;;
9533     esac
9534   fi
9535   sys_lib_dlsearch_path_spec='/usr/lib'
9536   ;;
9537
9538 uts4*)
9539   version_type=linux
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   shlibpath_var=LD_LIBRARY_PATH
9543   ;;
9544
9545 *)
9546   dynamic_linker=no
9547   ;;
9548 esac
9549 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9550 echo "${ECHO_T}$dynamic_linker" >&6; }
9551 test "$dynamic_linker" = no && can_build_shared=no
9552
9553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9554 if test "$GCC" = yes; then
9555   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9556 fi
9557
9558 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9560 hardcode_action=
9561 if test -n "$hardcode_libdir_flag_spec" || \
9562    test -n "$runpath_var" || \
9563    test "X$hardcode_automatic" = "Xyes" ; then
9564
9565   # We can hardcode non-existant directories.
9566   if test "$hardcode_direct" != no &&
9567      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9568      # have to relink, otherwise we might link with an installed library
9569      # when we should be linking with a yet-to-be-installed one
9570      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9571      test "$hardcode_minus_L" != no; then
9572     # Linking always hardcodes the temporary library directory.
9573     hardcode_action=relink
9574   else
9575     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9576     hardcode_action=immediate
9577   fi
9578 else
9579   # We cannot hardcode anything, or else we can only hardcode existing
9580   # directories.
9581   hardcode_action=unsupported
9582 fi
9583 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9584 echo "${ECHO_T}$hardcode_action" >&6; }
9585
9586 if test "$hardcode_action" = relink; then
9587   # Fast installation is not supported
9588   enable_fast_install=no
9589 elif test "$shlibpath_overrides_runpath" = yes ||
9590      test "$enable_shared" = no; then
9591   # Fast installation is not necessary
9592   enable_fast_install=needless
9593 fi
9594
9595 striplib=
9596 old_striplib=
9597 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9600   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9601   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9602   { echo "$as_me:$LINENO: result: yes" >&5
9603 echo "${ECHO_T}yes" >&6; }
9604 else
9605 # FIXME - insert some real tests, host_os isn't really good enough
9606   case $host_os in
9607    darwin*)
9608        if test -n "$STRIP" ; then
9609          striplib="$STRIP -x"
9610          old_striplib="$STRIP -S"
9611          { echo "$as_me:$LINENO: result: yes" >&5
9612 echo "${ECHO_T}yes" >&6; }
9613        else
9614   { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9616 fi
9617        ;;
9618    *)
9619   { echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6; }
9621     ;;
9622   esac
9623 fi
9624
9625 if test "x$enable_dlopen" != xyes; then
9626   enable_dlopen=unknown
9627   enable_dlopen_self=unknown
9628   enable_dlopen_self_static=unknown
9629 else
9630   lt_cv_dlopen=no
9631   lt_cv_dlopen_libs=
9632
9633   case $host_os in
9634   beos*)
9635     lt_cv_dlopen="load_add_on"
9636     lt_cv_dlopen_libs=
9637     lt_cv_dlopen_self=yes
9638     ;;
9639
9640   mingw* | pw32*)
9641     lt_cv_dlopen="LoadLibrary"
9642     lt_cv_dlopen_libs=
9643    ;;
9644
9645   cygwin*)
9646     lt_cv_dlopen="dlopen"
9647     lt_cv_dlopen_libs=
9648    ;;
9649
9650   darwin*)
9651   # if libdl is installed we need to link against it
9652     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   ac_check_lib_save_LIBS=$LIBS
9658 LIBS="-ldl  $LIBS"
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665
9666 /* Override any GCC internal prototype to avoid an error.
9667    Use char because int might match the return type of a GCC
9668    builtin and then its argument prototype would still apply.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 char dlopen ();
9673 int
9674 main ()
9675 {
9676 return dlopen ();
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_link") 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } && {
9695          test -z "$ac_c_werror_flag" ||
9696          test ! -s conftest.err
9697        } && test -s conftest$ac_exeext &&
9698        $as_test_x conftest$ac_exeext; then
9699   ac_cv_lib_dl_dlopen=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704         ac_cv_lib_dl_dlopen=no
9705 fi
9706
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708       conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9710 fi
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9713 if test $ac_cv_lib_dl_dlopen = yes; then
9714   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9715 else
9716
9717     lt_cv_dlopen="dyld"
9718     lt_cv_dlopen_libs=
9719     lt_cv_dlopen_self=yes
9720
9721 fi
9722
9723    ;;
9724
9725   *)
9726     { echo "$as_me:$LINENO: checking for shl_load" >&5
9727 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9728 if test "${ac_cv_func_shl_load+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9739 #define shl_load innocuous_shl_load
9740
9741 /* System header to define __stub macros and hopefully few prototypes,
9742     which can conflict with char shl_load (); below.
9743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9744     <limits.h> exists even on freestanding compilers.  */
9745
9746 #ifdef __STDC__
9747 # include <limits.h>
9748 #else
9749 # include <assert.h>
9750 #endif
9751
9752 #undef shl_load
9753
9754 /* Override any GCC internal prototype to avoid an error.
9755    Use char because int might match the return type of a GCC
9756    builtin and then its argument prototype would still apply.  */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char shl_load ();
9761 /* The GNU C library defines this for functions which it implements
9762     to always fail with ENOSYS.  Some functions are actually named
9763     something starting with __ and the normal name is an alias.  */
9764 #if defined __stub_shl_load || defined __stub___shl_load
9765 choke me
9766 #endif
9767
9768 int
9769 main ()
9770 {
9771 return shl_load ();
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9778 case "(($ac_try" in
9779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780   *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783   (eval "$ac_link") 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } && {
9790          test -z "$ac_c_werror_flag" ||
9791          test ! -s conftest.err
9792        } && test -s conftest$ac_exeext &&
9793        $as_test_x conftest$ac_exeext; then
9794   ac_cv_func_shl_load=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799         ac_cv_func_shl_load=no
9800 fi
9801
9802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9803       conftest$ac_exeext conftest.$ac_ext
9804 fi
9805 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9806 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9807 if test $ac_cv_func_shl_load = yes; then
9808   lt_cv_dlopen="shl_load"
9809 else
9810   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9811 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9812 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   ac_check_lib_save_LIBS=$LIBS
9816 LIBS="-ldld  $LIBS"
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823
9824 /* Override any GCC internal prototype to avoid an error.
9825    Use char because int might match the return type of a GCC
9826    builtin and then its argument prototype would still apply.  */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 char shl_load ();
9831 int
9832 main ()
9833 {
9834 return shl_load ();
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9841 case "(($ac_try" in
9842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843   *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846   (eval "$ac_link") 2>conftest.er1
9847   ac_status=$?
9848   grep -v '^ *+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } && {
9853          test -z "$ac_c_werror_flag" ||
9854          test ! -s conftest.err
9855        } && test -s conftest$ac_exeext &&
9856        $as_test_x conftest$ac_exeext; then
9857   ac_cv_lib_dld_shl_load=yes
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862         ac_cv_lib_dld_shl_load=no
9863 fi
9864
9865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866       conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9868 fi
9869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9870 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9871 if test $ac_cv_lib_dld_shl_load = yes; then
9872   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9873 else
9874   { echo "$as_me:$LINENO: checking for dlopen" >&5
9875 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9876 if test "${ac_cv_func_dlopen+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9887 #define dlopen innocuous_dlopen
9888
9889 /* System header to define __stub macros and hopefully few prototypes,
9890     which can conflict with char dlopen (); below.
9891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9892     <limits.h> exists even on freestanding compilers.  */
9893
9894 #ifdef __STDC__
9895 # include <limits.h>
9896 #else
9897 # include <assert.h>
9898 #endif
9899
9900 #undef dlopen
9901
9902 /* Override any GCC internal prototype to avoid an error.
9903    Use char because int might match the return type of a GCC
9904    builtin and then its argument prototype would still apply.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 char dlopen ();
9909 /* The GNU C library defines this for functions which it implements
9910     to always fail with ENOSYS.  Some functions are actually named
9911     something starting with __ and the normal name is an alias.  */
9912 #if defined __stub_dlopen || defined __stub___dlopen
9913 choke me
9914 #endif
9915
9916 int
9917 main ()
9918 {
9919 return dlopen ();
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9926 case "(($ac_try" in
9927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928   *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931   (eval "$ac_link") 2>conftest.er1
9932   ac_status=$?
9933   grep -v '^ *+' conftest.er1 >conftest.err
9934   rm -f conftest.er1
9935   cat conftest.err >&5
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } && {
9938          test -z "$ac_c_werror_flag" ||
9939          test ! -s conftest.err
9940        } && test -s conftest$ac_exeext &&
9941        $as_test_x conftest$ac_exeext; then
9942   ac_cv_func_dlopen=yes
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947         ac_cv_func_dlopen=no
9948 fi
9949
9950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9951       conftest$ac_exeext conftest.$ac_ext
9952 fi
9953 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9954 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9955 if test $ac_cv_func_dlopen = yes; then
9956   lt_cv_dlopen="dlopen"
9957 else
9958   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   ac_check_lib_save_LIBS=$LIBS
9964 LIBS="-ldl  $LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971
9972 /* Override any GCC internal prototype to avoid an error.
9973    Use char because int might match the return type of a GCC
9974    builtin and then its argument prototype would still apply.  */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 char dlopen ();
9979 int
9980 main ()
9981 {
9982 return dlopen ();
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_link") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } && {
10001          test -z "$ac_c_werror_flag" ||
10002          test ! -s conftest.err
10003        } && test -s conftest$ac_exeext &&
10004        $as_test_x conftest$ac_exeext; then
10005   ac_cv_lib_dl_dlopen=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010         ac_cv_lib_dl_dlopen=no
10011 fi
10012
10013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014       conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_lib_save_LIBS
10016 fi
10017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10019 if test $ac_cv_lib_dl_dlopen = yes; then
10020   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10021 else
10022   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10023 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-lsvld  $LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035
10036 /* Override any GCC internal prototype to avoid an error.
10037    Use char because int might match the return type of a GCC
10038    builtin and then its argument prototype would still apply.  */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char dlopen ();
10043 int
10044 main ()
10045 {
10046 return dlopen ();
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_link") 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } && {
10065          test -z "$ac_c_werror_flag" ||
10066          test ! -s conftest.err
10067        } && test -s conftest$ac_exeext &&
10068        $as_test_x conftest$ac_exeext; then
10069   ac_cv_lib_svld_dlopen=yes
10070 else
10071   echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10073
10074         ac_cv_lib_svld_dlopen=no
10075 fi
10076
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078       conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10080 fi
10081 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10082 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10083 if test $ac_cv_lib_svld_dlopen = yes; then
10084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10085 else
10086   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10087 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10088 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-ldld  $LIBS"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099
10100 /* Override any GCC internal prototype to avoid an error.
10101    Use char because int might match the return type of a GCC
10102    builtin and then its argument prototype would still apply.  */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 char dld_link ();
10107 int
10108 main ()
10109 {
10110 return dld_link ();
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_link") 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } && {
10129          test -z "$ac_c_werror_flag" ||
10130          test ! -s conftest.err
10131        } && test -s conftest$ac_exeext &&
10132        $as_test_x conftest$ac_exeext; then
10133   ac_cv_lib_dld_dld_link=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138         ac_cv_lib_dld_dld_link=no
10139 fi
10140
10141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10142       conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10146 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10147 if test $ac_cv_lib_dld_dld_link = yes; then
10148   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10149 fi
10150
10151
10152 fi
10153
10154
10155 fi
10156
10157
10158 fi
10159
10160
10161 fi
10162
10163
10164 fi
10165
10166     ;;
10167   esac
10168
10169   if test "x$lt_cv_dlopen" != xno; then
10170     enable_dlopen=yes
10171   else
10172     enable_dlopen=no
10173   fi
10174
10175   case $lt_cv_dlopen in
10176   dlopen)
10177     save_CPPFLAGS="$CPPFLAGS"
10178     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10179
10180     save_LDFLAGS="$LDFLAGS"
10181     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10182
10183     save_LIBS="$LIBS"
10184     LIBS="$lt_cv_dlopen_libs $LIBS"
10185
10186     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10187 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10188 if test "${lt_cv_dlopen_self+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191           if test "$cross_compiling" = yes; then :
10192   lt_cv_dlopen_self=cross
10193 else
10194   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10195   lt_status=$lt_dlunknown
10196   cat > conftest.$ac_ext <<EOF
10197 #line 10197 "configure"
10198 #include "confdefs.h"
10199
10200 #if HAVE_DLFCN_H
10201 #include <dlfcn.h>
10202 #endif
10203
10204 #include <stdio.h>
10205
10206 #ifdef RTLD_GLOBAL
10207 #  define LT_DLGLOBAL           RTLD_GLOBAL
10208 #else
10209 #  ifdef DL_GLOBAL
10210 #    define LT_DLGLOBAL         DL_GLOBAL
10211 #  else
10212 #    define LT_DLGLOBAL         0
10213 #  endif
10214 #endif
10215
10216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10217    find out it does not work in some platform. */
10218 #ifndef LT_DLLAZY_OR_NOW
10219 #  ifdef RTLD_LAZY
10220 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10221 #  else
10222 #    ifdef DL_LAZY
10223 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10224 #    else
10225 #      ifdef RTLD_NOW
10226 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10227 #      else
10228 #        ifdef DL_NOW
10229 #          define LT_DLLAZY_OR_NOW      DL_NOW
10230 #        else
10231 #          define LT_DLLAZY_OR_NOW      0
10232 #        endif
10233 #      endif
10234 #    endif
10235 #  endif
10236 #endif
10237
10238 #ifdef __cplusplus
10239 extern "C" void exit (int);
10240 #endif
10241
10242 void fnord() { int i=42;}
10243 int main ()
10244 {
10245   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10246   int status = $lt_dlunknown;
10247
10248   if (self)
10249     {
10250       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10251       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10252       /* dlclose (self); */
10253     }
10254   else
10255     puts (dlerror ());
10256
10257     exit (status);
10258 }
10259 EOF
10260   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261   (eval $ac_link) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10265     (./conftest; exit; ) >&5 2>/dev/null
10266     lt_status=$?
10267     case x$lt_status in
10268       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10269       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10270       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10271     esac
10272   else :
10273     # compilation failed
10274     lt_cv_dlopen_self=no
10275   fi
10276 fi
10277 rm -fr conftest*
10278
10279
10280 fi
10281 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10282 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10283
10284     if test "x$lt_cv_dlopen_self" = xyes; then
10285       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10286       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10287 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10288 if test "${lt_cv_dlopen_self_static+set}" = set; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291           if test "$cross_compiling" = yes; then :
10292   lt_cv_dlopen_self_static=cross
10293 else
10294   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10295   lt_status=$lt_dlunknown
10296   cat > conftest.$ac_ext <<EOF
10297 #line 10297 "configure"
10298 #include "confdefs.h"
10299
10300 #if HAVE_DLFCN_H
10301 #include <dlfcn.h>
10302 #endif
10303
10304 #include <stdio.h>
10305
10306 #ifdef RTLD_GLOBAL
10307 #  define LT_DLGLOBAL           RTLD_GLOBAL
10308 #else
10309 #  ifdef DL_GLOBAL
10310 #    define LT_DLGLOBAL         DL_GLOBAL
10311 #  else
10312 #    define LT_DLGLOBAL         0
10313 #  endif
10314 #endif
10315
10316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10317    find out it does not work in some platform. */
10318 #ifndef LT_DLLAZY_OR_NOW
10319 #  ifdef RTLD_LAZY
10320 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10321 #  else
10322 #    ifdef DL_LAZY
10323 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10324 #    else
10325 #      ifdef RTLD_NOW
10326 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10327 #      else
10328 #        ifdef DL_NOW
10329 #          define LT_DLLAZY_OR_NOW      DL_NOW
10330 #        else
10331 #          define LT_DLLAZY_OR_NOW      0
10332 #        endif
10333 #      endif
10334 #    endif
10335 #  endif
10336 #endif
10337
10338 #ifdef __cplusplus
10339 extern "C" void exit (int);
10340 #endif
10341
10342 void fnord() { int i=42;}
10343 int main ()
10344 {
10345   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10346   int status = $lt_dlunknown;
10347
10348   if (self)
10349     {
10350       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10351       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10352       /* dlclose (self); */
10353     }
10354   else
10355     puts (dlerror ());
10356
10357     exit (status);
10358 }
10359 EOF
10360   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361   (eval $ac_link) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10365     (./conftest; exit; ) >&5 2>/dev/null
10366     lt_status=$?
10367     case x$lt_status in
10368       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10369       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10370       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10371     esac
10372   else :
10373     # compilation failed
10374     lt_cv_dlopen_self_static=no
10375   fi
10376 fi
10377 rm -fr conftest*
10378
10379
10380 fi
10381 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10382 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10383     fi
10384
10385     CPPFLAGS="$save_CPPFLAGS"
10386     LDFLAGS="$save_LDFLAGS"
10387     LIBS="$save_LIBS"
10388     ;;
10389   esac
10390
10391   case $lt_cv_dlopen_self in
10392   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10393   *) enable_dlopen_self=unknown ;;
10394   esac
10395
10396   case $lt_cv_dlopen_self_static in
10397   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10398   *) enable_dlopen_self_static=unknown ;;
10399   esac
10400 fi
10401
10402
10403 # Report which library types will actually be built
10404 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10405 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10406 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10407 echo "${ECHO_T}$can_build_shared" >&6; }
10408
10409 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10410 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10411 test "$can_build_shared" = "no" && enable_shared=no
10412
10413 # On AIX, shared libraries and static libraries use the same namespace, and
10414 # are all built from PIC.
10415 case $host_os in
10416 aix3*)
10417   test "$enable_shared" = yes && enable_static=no
10418   if test -n "$RANLIB"; then
10419     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10420     postinstall_cmds='$RANLIB $lib'
10421   fi
10422   ;;
10423
10424 aix4* | aix5*)
10425   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10426     test "$enable_shared" = yes && enable_static=no
10427   fi
10428     ;;
10429 esac
10430 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10431 echo "${ECHO_T}$enable_shared" >&6; }
10432
10433 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10434 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10435 # Make sure either enable_shared or enable_static is yes.
10436 test "$enable_shared" = yes || enable_static=yes
10437 { echo "$as_me:$LINENO: result: $enable_static" >&5
10438 echo "${ECHO_T}$enable_static" >&6; }
10439
10440 # The else clause should only fire when bootstrapping the
10441 # libtool distribution, otherwise you forgot to ship ltmain.sh
10442 # with your package, and you will get complaints that there are
10443 # no rules to generate ltmain.sh.
10444 if test -f "$ltmain"; then
10445   # See if we are running on zsh, and set the options which allow our commands through
10446   # without removal of \ escapes.
10447   if test -n "${ZSH_VERSION+set}" ; then
10448     setopt NO_GLOB_SUBST
10449   fi
10450   # Now quote all the things that may contain metacharacters while being
10451   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10452   # variables and quote the copies for generation of the libtool script.
10453   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10454     SED SHELL STRIP \
10455     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10456     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10457     deplibs_check_method reload_flag reload_cmds need_locks \
10458     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10459     lt_cv_sys_global_symbol_to_c_name_address \
10460     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10461     old_postinstall_cmds old_postuninstall_cmds \
10462     compiler \
10463     CC \
10464     LD \
10465     lt_prog_compiler_wl \
10466     lt_prog_compiler_pic \
10467     lt_prog_compiler_static \
10468     lt_prog_compiler_no_builtin_flag \
10469     export_dynamic_flag_spec \
10470     thread_safe_flag_spec \
10471     whole_archive_flag_spec \
10472     enable_shared_with_static_runtimes \
10473     old_archive_cmds \
10474     old_archive_from_new_cmds \
10475     predep_objects \
10476     postdep_objects \
10477     predeps \
10478     postdeps \
10479     compiler_lib_search_path \
10480     archive_cmds \
10481     archive_expsym_cmds \
10482     postinstall_cmds \
10483     postuninstall_cmds \
10484     old_archive_from_expsyms_cmds \
10485     allow_undefined_flag \
10486     no_undefined_flag \
10487     export_symbols_cmds \
10488     hardcode_libdir_flag_spec \
10489     hardcode_libdir_flag_spec_ld \
10490     hardcode_libdir_separator \
10491     hardcode_automatic \
10492     module_cmds \
10493     module_expsym_cmds \
10494     lt_cv_prog_compiler_c_o \
10495     fix_srcfile_path \
10496     exclude_expsyms \
10497     include_expsyms; do
10498
10499     case $var in
10500     old_archive_cmds | \
10501     old_archive_from_new_cmds | \
10502     archive_cmds | \
10503     archive_expsym_cmds | \
10504     module_cmds | \
10505     module_expsym_cmds | \
10506     old_archive_from_expsyms_cmds | \
10507     export_symbols_cmds | \
10508     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10509     postinstall_cmds | postuninstall_cmds | \
10510     old_postinstall_cmds | old_postuninstall_cmds | \
10511     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10512       # Double-quote double-evaled strings.
10513       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10514       ;;
10515     *)
10516       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10517       ;;
10518     esac
10519   done
10520
10521   case $lt_echo in
10522   *'\$0 --fallback-echo"')
10523     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10524     ;;
10525   esac
10526
10527 cfgfile="${ofile}T"
10528   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10529   $rm -f "$cfgfile"
10530   { echo "$as_me:$LINENO: creating $ofile" >&5
10531 echo "$as_me: creating $ofile" >&6;}
10532
10533   cat <<__EOF__ >> "$cfgfile"
10534 #! $SHELL
10535
10536 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10537 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10538 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10539 #
10540 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10541 # Free Software Foundation, Inc.
10542 #
10543 # This file is part of GNU Libtool:
10544 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10545 #
10546 # This program is free software; you can redistribute it and/or modify
10547 # it under the terms of the GNU General Public License as published by
10548 # the Free Software Foundation; either version 2 of the License, or
10549 # (at your option) any later version.
10550 #
10551 # This program is distributed in the hope that it will be useful, but
10552 # WITHOUT ANY WARRANTY; without even the implied warranty of
10553 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10554 # General Public License for more details.
10555 #
10556 # You should have received a copy of the GNU General Public License
10557 # along with this program; if not, write to the Free Software
10558 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10559 #
10560 # As a special exception to the GNU General Public License, if you
10561 # distribute this file as part of a program that contains a
10562 # configuration script generated by Autoconf, you may include it under
10563 # the same distribution terms that you use for the rest of that program.
10564
10565 # A sed program that does not truncate output.
10566 SED=$lt_SED
10567
10568 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10569 Xsed="$SED -e 1s/^X//"
10570
10571 # The HP-UX ksh and POSIX shell print the target directory to stdout
10572 # if CDPATH is set.
10573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10574
10575 # The names of the tagged configurations supported by this script.
10576 available_tags=
10577
10578 # ### BEGIN LIBTOOL CONFIG
10579
10580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10581
10582 # Shell to use when invoking shell scripts.
10583 SHELL=$lt_SHELL
10584
10585 # Whether or not to build shared libraries.
10586 build_libtool_libs=$enable_shared
10587
10588 # Whether or not to build static libraries.
10589 build_old_libs=$enable_static
10590
10591 # Whether or not to add -lc for building shared libraries.
10592 build_libtool_need_lc=$archive_cmds_need_lc
10593
10594 # Whether or not to disallow shared libs when runtime libs are static
10595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10596
10597 # Whether or not to optimize for fast installation.
10598 fast_install=$enable_fast_install
10599
10600 # The host system.
10601 host_alias=$host_alias
10602 host=$host
10603 host_os=$host_os
10604
10605 # The build system.
10606 build_alias=$build_alias
10607 build=$build
10608 build_os=$build_os
10609
10610 # An echo program that does not interpret backslashes.
10611 echo=$lt_echo
10612
10613 # The archiver.
10614 AR=$lt_AR
10615 AR_FLAGS=$lt_AR_FLAGS
10616
10617 # A C compiler.
10618 LTCC=$lt_LTCC
10619
10620 # LTCC compiler flags.
10621 LTCFLAGS=$lt_LTCFLAGS
10622
10623 # A language-specific compiler.
10624 CC=$lt_compiler
10625
10626 # Is the compiler the GNU C compiler?
10627 with_gcc=$GCC
10628
10629 # An ERE matcher.
10630 EGREP=$lt_EGREP
10631
10632 # The linker used to build libraries.
10633 LD=$lt_LD
10634
10635 # Whether we need hard or soft links.
10636 LN_S=$lt_LN_S
10637
10638 # A BSD-compatible nm program.
10639 NM=$lt_NM
10640
10641 # A symbol stripping program
10642 STRIP=$lt_STRIP
10643
10644 # Used to examine libraries when file_magic_cmd begins "file"
10645 MAGIC_CMD=$MAGIC_CMD
10646
10647 # Used on cygwin: DLL creation program.
10648 DLLTOOL="$DLLTOOL"
10649
10650 # Used on cygwin: object dumper.
10651 OBJDUMP="$OBJDUMP"
10652
10653 # Used on cygwin: assembler.
10654 AS="$AS"
10655
10656 # The name of the directory that contains temporary libtool files.
10657 objdir=$objdir
10658
10659 # How to create reloadable object files.
10660 reload_flag=$lt_reload_flag
10661 reload_cmds=$lt_reload_cmds
10662
10663 # How to pass a linker flag through the compiler.
10664 wl=$lt_lt_prog_compiler_wl
10665
10666 # Object file suffix (normally "o").
10667 objext="$ac_objext"
10668
10669 # Old archive suffix (normally "a").
10670 libext="$libext"
10671
10672 # Shared library suffix (normally ".so").
10673 shrext_cmds='$shrext_cmds'
10674
10675 # Executable file suffix (normally "").
10676 exeext="$exeext"
10677
10678 # Additional compiler flags for building library objects.
10679 pic_flag=$lt_lt_prog_compiler_pic
10680 pic_mode=$pic_mode
10681
10682 # What is the maximum length of a command?
10683 max_cmd_len=$lt_cv_sys_max_cmd_len
10684
10685 # Does compiler simultaneously support -c and -o options?
10686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10687
10688 # Must we lock files when doing compilation?
10689 need_locks=$lt_need_locks
10690
10691 # Do we need the lib prefix for modules?
10692 need_lib_prefix=$need_lib_prefix
10693
10694 # Do we need a version for libraries?
10695 need_version=$need_version
10696
10697 # Whether dlopen is supported.
10698 dlopen_support=$enable_dlopen
10699
10700 # Whether dlopen of programs is supported.
10701 dlopen_self=$enable_dlopen_self
10702
10703 # Whether dlopen of statically linked programs is supported.
10704 dlopen_self_static=$enable_dlopen_self_static
10705
10706 # Compiler flag to prevent dynamic linking.
10707 link_static_flag=$lt_lt_prog_compiler_static
10708
10709 # Compiler flag to turn off builtin functions.
10710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10711
10712 # Compiler flag to allow reflexive dlopens.
10713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10714
10715 # Compiler flag to generate shared objects directly from archives.
10716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10717
10718 # Compiler flag to generate thread-safe objects.
10719 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10720
10721 # Library versioning type.
10722 version_type=$version_type
10723
10724 # Format of library name prefix.
10725 libname_spec=$lt_libname_spec
10726
10727 # List of archive names.  First name is the real one, the rest are links.
10728 # The last name is the one that the linker finds with -lNAME.
10729 library_names_spec=$lt_library_names_spec
10730
10731 # The coded name of the library, if different from the real name.
10732 soname_spec=$lt_soname_spec
10733
10734 # Commands used to build and install an old-style archive.
10735 RANLIB=$lt_RANLIB
10736 old_archive_cmds=$lt_old_archive_cmds
10737 old_postinstall_cmds=$lt_old_postinstall_cmds
10738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10739
10740 # Create an old-style archive from a shared archive.
10741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10742
10743 # Create a temporary old-style archive to link instead of a shared archive.
10744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10745
10746 # Commands used to build and install a shared archive.
10747 archive_cmds=$lt_archive_cmds
10748 archive_expsym_cmds=$lt_archive_expsym_cmds
10749 postinstall_cmds=$lt_postinstall_cmds
10750 postuninstall_cmds=$lt_postuninstall_cmds
10751
10752 # Commands used to build a loadable module (assumed same as above if empty)
10753 module_cmds=$lt_module_cmds
10754 module_expsym_cmds=$lt_module_expsym_cmds
10755
10756 # Commands to strip libraries.
10757 old_striplib=$lt_old_striplib
10758 striplib=$lt_striplib
10759
10760 # Dependencies to place before the objects being linked to create a
10761 # shared library.
10762 predep_objects=$lt_predep_objects
10763
10764 # Dependencies to place after the objects being linked to create a
10765 # shared library.
10766 postdep_objects=$lt_postdep_objects
10767
10768 # Dependencies to place before the objects being linked to create a
10769 # shared library.
10770 predeps=$lt_predeps
10771
10772 # Dependencies to place after the objects being linked to create a
10773 # shared library.
10774 postdeps=$lt_postdeps
10775
10776 # The library search path used internally by the compiler when linking
10777 # a shared library.
10778 compiler_lib_search_path=$lt_compiler_lib_search_path
10779
10780 # Method to check whether dependent libraries are shared objects.
10781 deplibs_check_method=$lt_deplibs_check_method
10782
10783 # Command to use when deplibs_check_method == file_magic.
10784 file_magic_cmd=$lt_file_magic_cmd
10785
10786 # Flag that allows shared libraries with undefined symbols to be built.
10787 allow_undefined_flag=$lt_allow_undefined_flag
10788
10789 # Flag that forces no undefined symbols.
10790 no_undefined_flag=$lt_no_undefined_flag
10791
10792 # Commands used to finish a libtool library installation in a directory.
10793 finish_cmds=$lt_finish_cmds
10794
10795 # Same as above, but a single script fragment to be evaled but not shown.
10796 finish_eval=$lt_finish_eval
10797
10798 # Take the output of nm and produce a listing of raw symbols and C names.
10799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10800
10801 # Transform the output of nm in a proper C declaration
10802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10803
10804 # Transform the output of nm in a C name address pair
10805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10806
10807 # This is the shared library runtime path variable.
10808 runpath_var=$runpath_var
10809
10810 # This is the shared library path variable.
10811 shlibpath_var=$shlibpath_var
10812
10813 # Is shlibpath searched before the hard-coded library search path?
10814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10815
10816 # How to hardcode a shared library path into an executable.
10817 hardcode_action=$hardcode_action
10818
10819 # Whether we should hardcode library paths into libraries.
10820 hardcode_into_libs=$hardcode_into_libs
10821
10822 # Flag to hardcode \$libdir into a binary during linking.
10823 # This must work even if \$libdir does not exist.
10824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10825
10826 # If ld is used when linking, flag to hardcode \$libdir into
10827 # a binary during linking. This must work even if \$libdir does
10828 # not exist.
10829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10830
10831 # Whether we need a single -rpath flag with a separated argument.
10832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10833
10834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_direct=$hardcode_direct
10837
10838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10839 # resulting binary.
10840 hardcode_minus_L=$hardcode_minus_L
10841
10842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10843 # the resulting binary.
10844 hardcode_shlibpath_var=$hardcode_shlibpath_var
10845
10846 # Set to yes if building a shared library automatically hardcodes DIR into the library
10847 # and all subsequent libraries and executables linked against it.
10848 hardcode_automatic=$hardcode_automatic
10849
10850 # Variables whose values should be saved in libtool wrapper scripts and
10851 # restored at relink time.
10852 variables_saved_for_relink="$variables_saved_for_relink"
10853
10854 # Whether libtool must link a program against all its dependency libraries.
10855 link_all_deplibs=$link_all_deplibs
10856
10857 # Compile-time system search path for libraries
10858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10859
10860 # Run-time system search path for libraries
10861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10862
10863 # Fix the shell variable \$srcfile for the compiler.
10864 fix_srcfile_path=$lt_fix_srcfile_path
10865
10866 # Set to yes if exported symbols are required.
10867 always_export_symbols=$always_export_symbols
10868
10869 # The commands to list exported symbols.
10870 export_symbols_cmds=$lt_export_symbols_cmds
10871
10872 # The commands to extract the exported symbol list from a shared archive.
10873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10874
10875 # Symbols that should not be listed in the preloaded symbols.
10876 exclude_expsyms=$lt_exclude_expsyms
10877
10878 # Symbols that must always be exported.
10879 include_expsyms=$lt_include_expsyms
10880
10881 # ### END LIBTOOL CONFIG
10882
10883 __EOF__
10884
10885
10886   case $host_os in
10887   aix3*)
10888     cat <<\EOF >> "$cfgfile"
10889
10890 # AIX sometimes has problems with the GCC collect2 program.  For some
10891 # reason, if we set the COLLECT_NAMES environment variable, the problems
10892 # vanish in a puff of smoke.
10893 if test "X${COLLECT_NAMES+set}" != Xset; then
10894   COLLECT_NAMES=
10895   export COLLECT_NAMES
10896 fi
10897 EOF
10898     ;;
10899   esac
10900
10901   # We use sed instead of cat because bash on DJGPP gets confused if
10902   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10903   # text mode, it properly converts lines to CR/LF.  This bash problem
10904   # is reportedly fixed, but why not run on old versions too?
10905   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10906
10907   mv -f "$cfgfile" "$ofile" || \
10908     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10909   chmod +x "$ofile"
10910
10911 else
10912   # If there is no Makefile yet, we rely on a make rule to execute
10913   # `config.status --recheck' to rerun these tests and create the
10914   # libtool script then.
10915   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10916   if test -f "$ltmain_in"; then
10917     test -f Makefile && make "$ltmain"
10918   fi
10919 fi
10920
10921
10922 ac_ext=c
10923 ac_cpp='$CPP $CPPFLAGS'
10924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10927
10928 CC="$lt_save_CC"
10929
10930
10931 # Check whether --with-tags was given.
10932 if test "${with_tags+set}" = set; then
10933   withval=$with_tags; tagnames="$withval"
10934 fi
10935
10936
10937 if test -f "$ltmain" && test -n "$tagnames"; then
10938   if test ! -f "${ofile}"; then
10939     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10941   fi
10942
10943   if test -z "$LTCC"; then
10944     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10945     if test -z "$LTCC"; then
10946       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10948     else
10949       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10951     fi
10952   fi
10953   if test -z "$LTCFLAGS"; then
10954     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10955   fi
10956
10957   # Extract list of available tagged configurations in $ofile.
10958   # Note that this assumes the entire list is on one line.
10959   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10960
10961   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10962   for tagname in $tagnames; do
10963     IFS="$lt_save_ifs"
10964     # Check whether tagname contains only valid characters
10965     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10966     "") ;;
10967     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10969    { (exit 1); exit 1; }; }
10970         ;;
10971     esac
10972
10973     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10974     then
10975       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10977    { (exit 1); exit 1; }; }
10978     fi
10979
10980     # Update the list of available tags.
10981     if test -n "$tagname"; then
10982       echo appending configuration tag \"$tagname\" to $ofile
10983
10984       case $tagname in
10985       CXX)
10986         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10987             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10988             (test "X$CXX" != "Xg++"))) ; then
10989           ac_ext=cpp
10990 ac_cpp='$CXXCPP $CPPFLAGS'
10991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10994
10995
10996
10997
10998 archive_cmds_need_lc_CXX=no
10999 allow_undefined_flag_CXX=
11000 always_export_symbols_CXX=no
11001 archive_expsym_cmds_CXX=
11002 export_dynamic_flag_spec_CXX=
11003 hardcode_direct_CXX=no
11004 hardcode_libdir_flag_spec_CXX=
11005 hardcode_libdir_flag_spec_ld_CXX=
11006 hardcode_libdir_separator_CXX=
11007 hardcode_minus_L_CXX=no
11008 hardcode_shlibpath_var_CXX=unsupported
11009 hardcode_automatic_CXX=no
11010 module_cmds_CXX=
11011 module_expsym_cmds_CXX=
11012 link_all_deplibs_CXX=unknown
11013 old_archive_cmds_CXX=$old_archive_cmds
11014 no_undefined_flag_CXX=
11015 whole_archive_flag_spec_CXX=
11016 enable_shared_with_static_runtimes_CXX=no
11017
11018 # Dependencies to place before and after the object being linked:
11019 predep_objects_CXX=
11020 postdep_objects_CXX=
11021 predeps_CXX=
11022 postdeps_CXX=
11023 compiler_lib_search_path_CXX=
11024
11025 # Source file extension for C++ test sources.
11026 ac_ext=cpp
11027
11028 # Object file extension for compiled C++ test sources.
11029 objext=o
11030 objext_CXX=$objext
11031
11032 # Code to be used in simple compile tests
11033 lt_simple_compile_test_code="int some_variable = 0;"
11034
11035 # Code to be used in simple link tests
11036 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11037
11038 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11039
11040 # If no C compiler was specified, use CC.
11041 LTCC=${LTCC-"$CC"}
11042
11043 # If no C compiler flags were specified, use CFLAGS.
11044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11045
11046 # Allow CC to be a program name with arguments.
11047 compiler=$CC
11048
11049
11050 # save warnings/boilerplate of simple test code
11051 ac_outfile=conftest.$ac_objext
11052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11054 _lt_compiler_boilerplate=`cat conftest.err`
11055 $rm conftest*
11056
11057 ac_outfile=conftest.$ac_objext
11058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11060 _lt_linker_boilerplate=`cat conftest.err`
11061 $rm conftest*
11062
11063
11064 # Allow CC to be a program name with arguments.
11065 lt_save_CC=$CC
11066 lt_save_LD=$LD
11067 lt_save_GCC=$GCC
11068 GCC=$GXX
11069 lt_save_with_gnu_ld=$with_gnu_ld
11070 lt_save_path_LD=$lt_cv_path_LD
11071 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11072   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11073 else
11074   $as_unset lt_cv_prog_gnu_ld
11075 fi
11076 if test -n "${lt_cv_path_LDCXX+set}"; then
11077   lt_cv_path_LD=$lt_cv_path_LDCXX
11078 else
11079   $as_unset lt_cv_path_LD
11080 fi
11081 test -z "${LDCXX+set}" || LD=$LDCXX
11082 CC=${CXX-"c++"}
11083 compiler=$CC
11084 compiler_CXX=$CC
11085 for cc_temp in $compiler""; do
11086   case $cc_temp in
11087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11089     \-*) ;;
11090     *) break;;
11091   esac
11092 done
11093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11094
11095
11096 # We don't want -fno-exception wen compiling C++ code, so set the
11097 # no_builtin_flag separately
11098 if test "$GXX" = yes; then
11099   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11100 else
11101   lt_prog_compiler_no_builtin_flag_CXX=
11102 fi
11103
11104 if test "$GXX" = yes; then
11105   # Set up default GNU C++ configuration
11106
11107
11108 # Check whether --with-gnu-ld was given.
11109 if test "${with_gnu_ld+set}" = set; then
11110   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11111 else
11112   with_gnu_ld=no
11113 fi
11114
11115 ac_prog=ld
11116 if test "$GCC" = yes; then
11117   # Check if gcc -print-prog-name=ld gives a path.
11118   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11120   case $host in
11121   *-*-mingw*)
11122     # gcc leaves a trailing carriage return which upsets mingw
11123     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11124   *)
11125     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11126   esac
11127   case $ac_prog in
11128     # Accept absolute paths.
11129     [\\/]* | ?:[\\/]*)
11130       re_direlt='/[^/][^/]*/\.\./'
11131       # Canonicalize the pathname of ld
11132       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11133       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11134         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11135       done
11136       test -z "$LD" && LD="$ac_prog"
11137       ;;
11138   "")
11139     # If it fails, then pretend we aren't using GCC.
11140     ac_prog=ld
11141     ;;
11142   *)
11143     # If it is relative, then search for the first ld in PATH.
11144     with_gnu_ld=unknown
11145     ;;
11146   esac
11147 elif test "$with_gnu_ld" = yes; then
11148   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11150 else
11151   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11153 fi
11154 if test "${lt_cv_path_LD+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   if test -z "$LD"; then
11158   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11159   for ac_dir in $PATH; do
11160     IFS="$lt_save_ifs"
11161     test -z "$ac_dir" && ac_dir=.
11162     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163       lt_cv_path_LD="$ac_dir/$ac_prog"
11164       # Check to see if the program is GNU ld.  I'd rather use --version,
11165       # but apparently some variants of GNU ld only accept -v.
11166       # Break only if it was the GNU/non-GNU ld that we prefer.
11167       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11168       *GNU* | *'with BFD'*)
11169         test "$with_gnu_ld" != no && break
11170         ;;
11171       *)
11172         test "$with_gnu_ld" != yes && break
11173         ;;
11174       esac
11175     fi
11176   done
11177   IFS="$lt_save_ifs"
11178 else
11179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11180 fi
11181 fi
11182
11183 LD="$lt_cv_path_LD"
11184 if test -n "$LD"; then
11185   { echo "$as_me:$LINENO: result: $LD" >&5
11186 echo "${ECHO_T}$LD" >&6; }
11187 else
11188   { echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6; }
11190 fi
11191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11193    { (exit 1); exit 1; }; }
11194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11200 case `$LD -v 2>&1 </dev/null` in
11201 *GNU* | *'with BFD'*)
11202   lt_cv_prog_gnu_ld=yes
11203   ;;
11204 *)
11205   lt_cv_prog_gnu_ld=no
11206   ;;
11207 esac
11208 fi
11209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11211 with_gnu_ld=$lt_cv_prog_gnu_ld
11212
11213
11214
11215   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11216   # archiving commands below assume that GNU ld is being used.
11217   if test "$with_gnu_ld" = yes; then
11218     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11219     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'
11220
11221     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11222     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11223
11224     # If archive_cmds runs LD, not CC, wlarc should be empty
11225     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11226     #     investigate it a little bit more. (MM)
11227     wlarc='${wl}'
11228
11229     # ancient GNU ld didn't support --whole-archive et. al.
11230     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11231         grep 'no-whole-archive' > /dev/null; then
11232       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11233     else
11234       whole_archive_flag_spec_CXX=
11235     fi
11236   else
11237     with_gnu_ld=no
11238     wlarc=
11239
11240     # A generic and very simple default shared library creation
11241     # command for GNU C++ for the case where it uses the native
11242     # linker, instead of GNU ld.  If possible, this setting should
11243     # overridden to take advantage of the native linker features on
11244     # the platform it is being used on.
11245     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11246   fi
11247
11248   # Commands to make compiler produce verbose output that lists
11249   # what "hidden" libraries, object files and flags are used when
11250   # linking a shared library.
11251   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11252
11253 else
11254   GXX=no
11255   with_gnu_ld=no
11256   wlarc=
11257 fi
11258
11259 # PORTME: fill in a description of your system's C++ link characteristics
11260 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11262 ld_shlibs_CXX=yes
11263 case $host_os in
11264   aix3*)
11265     # FIXME: insert proper C++ library support
11266     ld_shlibs_CXX=no
11267     ;;
11268   aix4* | aix5*)
11269     if test "$host_cpu" = ia64; then
11270       # On IA64, the linker does run time linking by default, so we don't
11271       # have to do anything special.
11272       aix_use_runtimelinking=no
11273       exp_sym_flag='-Bexport'
11274       no_entry_flag=""
11275     else
11276       aix_use_runtimelinking=no
11277
11278       # Test if we are trying to use run time linking or normal
11279       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11280       # need to do runtime linking.
11281       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11282         for ld_flag in $LDFLAGS; do
11283           case $ld_flag in
11284           *-brtl*)
11285             aix_use_runtimelinking=yes
11286             break
11287             ;;
11288           esac
11289         done
11290         ;;
11291       esac
11292
11293       exp_sym_flag='-bexport'
11294       no_entry_flag='-bnoentry'
11295     fi
11296
11297     # When large executables or shared objects are built, AIX ld can
11298     # have problems creating the table of contents.  If linking a library
11299     # or program results in "error TOC overflow" add -mminimal-toc to
11300     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11301     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11302
11303     archive_cmds_CXX=''
11304     hardcode_direct_CXX=yes
11305     hardcode_libdir_separator_CXX=':'
11306     link_all_deplibs_CXX=yes
11307
11308     if test "$GXX" = yes; then
11309       case $host_os in aix4.[012]|aix4.[012].*)
11310       # We only want to do this on AIX 4.2 and lower, the check
11311       # below for broken collect2 doesn't work under 4.3+
11312         collect2name=`${CC} -print-prog-name=collect2`
11313         if test -f "$collect2name" && \
11314            strings "$collect2name" | grep resolve_lib_name >/dev/null
11315         then
11316           # We have reworked collect2
11317           :
11318         else
11319           # We have old collect2
11320           hardcode_direct_CXX=unsupported
11321           # It fails to find uninstalled libraries when the uninstalled
11322           # path is not listed in the libpath.  Setting hardcode_minus_L
11323           # to unsupported forces relinking
11324           hardcode_minus_L_CXX=yes
11325           hardcode_libdir_flag_spec_CXX='-L$libdir'
11326           hardcode_libdir_separator_CXX=
11327         fi
11328         ;;
11329       esac
11330       shared_flag='-shared'
11331       if test "$aix_use_runtimelinking" = yes; then
11332         shared_flag="$shared_flag "'${wl}-G'
11333       fi
11334     else
11335       # not using gcc
11336       if test "$host_cpu" = ia64; then
11337         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11338         # chokes on -Wl,-G. The following line is correct:
11339         shared_flag='-G'
11340       else
11341         if test "$aix_use_runtimelinking" = yes; then
11342           shared_flag='${wl}-G'
11343         else
11344           shared_flag='${wl}-bM:SRE'
11345         fi
11346       fi
11347     fi
11348
11349     # It seems that -bexpall does not export symbols beginning with
11350     # underscore (_), so it is better to generate a list of symbols to export.
11351     always_export_symbols_CXX=yes
11352     if test "$aix_use_runtimelinking" = yes; then
11353       # Warning - without using the other runtime loading flags (-brtl),
11354       # -berok will link without error, but may produce a broken library.
11355       allow_undefined_flag_CXX='-berok'
11356       # Determine the default libpath from the value encoded in an empty executable.
11357       cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363
11364 int
11365 main ()
11366 {
11367
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_link") 2>conftest.er1
11380   ac_status=$?
11381   grep -v '^ *+' conftest.er1 >conftest.err
11382   rm -f conftest.er1
11383   cat conftest.err >&5
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } && {
11386          test -z "$ac_cxx_werror_flag" ||
11387          test ! -s conftest.err
11388        } && test -s conftest$ac_exeext &&
11389        $as_test_x conftest$ac_exeext; then
11390
11391 lt_aix_libpath_sed='
11392     /Import File Strings/,/^$/ {
11393         /^0/ {
11394             s/^0  *\(.*\)$/\1/
11395             p
11396         }
11397     }'
11398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11399 # Check for a 64-bit object if we didn't find anything.
11400 if test -z "$aix_libpath"; then
11401   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 fi
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11411       conftest$ac_exeext conftest.$ac_ext
11412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11413
11414       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11415
11416       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"
11417      else
11418       if test "$host_cpu" = ia64; then
11419         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11420         allow_undefined_flag_CXX="-z nodefs"
11421         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"
11422       else
11423         # Determine the default libpath from the value encoded in an empty executable.
11424         cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430
11431 int
11432 main ()
11433 {
11434
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_link") 2>conftest.er1
11447   ac_status=$?
11448   grep -v '^ *+' conftest.er1 >conftest.err
11449   rm -f conftest.er1
11450   cat conftest.err >&5
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } && {
11453          test -z "$ac_cxx_werror_flag" ||
11454          test ! -s conftest.err
11455        } && test -s conftest$ac_exeext &&
11456        $as_test_x conftest$ac_exeext; then
11457
11458 lt_aix_libpath_sed='
11459     /Import File Strings/,/^$/ {
11460         /^0/ {
11461             s/^0  *\(.*\)$/\1/
11462             p
11463         }
11464     }'
11465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 # Check for a 64-bit object if we didn't find anything.
11467 if test -z "$aix_libpath"; then
11468   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11469 fi
11470 else
11471   echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474
11475 fi
11476
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478       conftest$ac_exeext conftest.$ac_ext
11479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11480
11481         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11482         # Warning - without using the other run time loading flags,
11483         # -berok will link without error, but may produce a broken library.
11484         no_undefined_flag_CXX=' ${wl}-bernotok'
11485         allow_undefined_flag_CXX=' ${wl}-berok'
11486         # Exported symbols can be pulled into shared objects from archives
11487         whole_archive_flag_spec_CXX='$convenience'
11488         archive_cmds_need_lc_CXX=yes
11489         # This is similar to how AIX traditionally builds its shared libraries.
11490         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'
11491       fi
11492     fi
11493     ;;
11494
11495   beos*)
11496     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11497       allow_undefined_flag_CXX=unsupported
11498       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11499       # support --undefined.  This deserves some investigation.  FIXME
11500       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501     else
11502       ld_shlibs_CXX=no
11503     fi
11504     ;;
11505
11506   chorus*)
11507     case $cc_basename in
11508       *)
11509         # FIXME: insert proper C++ library support
11510         ld_shlibs_CXX=no
11511         ;;
11512     esac
11513     ;;
11514
11515   cygwin* | mingw* | pw32*)
11516     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11517     # as there is no search path for DLLs.
11518     hardcode_libdir_flag_spec_CXX='-L$libdir'
11519     allow_undefined_flag_CXX=unsupported
11520     always_export_symbols_CXX=no
11521     enable_shared_with_static_runtimes_CXX=yes
11522
11523     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11524       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'
11525       # If the export-symbols file already is a .def file (1st line
11526       # is EXPORTS), use it as is; otherwise, prepend...
11527       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11528         cp $export_symbols $output_objdir/$soname.def;
11529       else
11530         echo EXPORTS > $output_objdir/$soname.def;
11531         cat $export_symbols >> $output_objdir/$soname.def;
11532       fi~
11533       $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'
11534     else
11535       ld_shlibs_CXX=no
11536     fi
11537   ;;
11538       darwin* | rhapsody*)
11539         case $host_os in
11540         rhapsody* | darwin1.[012])
11541          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11542          ;;
11543        *) # Darwin 1.3 on
11544          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11545            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11546          else
11547            case ${MACOSX_DEPLOYMENT_TARGET} in
11548              10.[012])
11549                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11550                ;;
11551              10.*)
11552                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11553                ;;
11554            esac
11555          fi
11556          ;;
11557         esac
11558       archive_cmds_need_lc_CXX=no
11559       hardcode_direct_CXX=no
11560       hardcode_automatic_CXX=yes
11561       hardcode_shlibpath_var_CXX=unsupported
11562       whole_archive_flag_spec_CXX=''
11563       link_all_deplibs_CXX=yes
11564
11565     if test "$GXX" = yes ; then
11566       lt_int_apple_cc_single_mod=no
11567       output_verbose_link_cmd='echo'
11568       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11569        lt_int_apple_cc_single_mod=yes
11570       fi
11571       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11572        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11573       else
11574           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'
11575         fi
11576         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11577         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11578           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11579             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}'
11580           else
11581             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}'
11582           fi
11583             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}'
11584       else
11585       case $cc_basename in
11586         xlc*)
11587          output_verbose_link_cmd='echo'
11588           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11589           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11590           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11591           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11592           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}'
11593           ;;
11594        *)
11595          ld_shlibs_CXX=no
11596           ;;
11597       esac
11598       fi
11599         ;;
11600
11601   dgux*)
11602     case $cc_basename in
11603       ec++*)
11604         # FIXME: insert proper C++ library support
11605         ld_shlibs_CXX=no
11606         ;;
11607       ghcx*)
11608         # Green Hills C++ Compiler
11609         # FIXME: insert proper C++ library support
11610         ld_shlibs_CXX=no
11611         ;;
11612       *)
11613         # FIXME: insert proper C++ library support
11614         ld_shlibs_CXX=no
11615         ;;
11616     esac
11617     ;;
11618   freebsd[12]*)
11619     # C++ shared libraries reported to be fairly broken before switch to ELF
11620     ld_shlibs_CXX=no
11621     ;;
11622   freebsd-elf*)
11623     archive_cmds_need_lc_CXX=no
11624     ;;
11625   freebsd* | dragonfly*)
11626     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11627     # conventions
11628     ld_shlibs_CXX=yes
11629     ;;
11630   gnu*)
11631     ;;
11632   hpux9*)
11633     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11634     hardcode_libdir_separator_CXX=:
11635     export_dynamic_flag_spec_CXX='${wl}-E'
11636     hardcode_direct_CXX=yes
11637     hardcode_minus_L_CXX=yes # Not in the search PATH,
11638                                 # but as the default
11639                                 # location of the library.
11640
11641     case $cc_basename in
11642     CC*)
11643       # FIXME: insert proper C++ library support
11644       ld_shlibs_CXX=no
11645       ;;
11646     aCC*)
11647       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'
11648       # Commands to make compiler produce verbose output that lists
11649       # what "hidden" libraries, object files and flags are used when
11650       # linking a shared library.
11651       #
11652       # There doesn't appear to be a way to prevent this compiler from
11653       # explicitly linking system object files so we need to strip them
11654       # from the output so that they don't get included in the library
11655       # dependencies.
11656       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'
11657       ;;
11658     *)
11659       if test "$GXX" = yes; then
11660         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'
11661       else
11662         # FIXME: insert proper C++ library support
11663         ld_shlibs_CXX=no
11664       fi
11665       ;;
11666     esac
11667     ;;
11668   hpux10*|hpux11*)
11669     if test $with_gnu_ld = no; then
11670       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11671       hardcode_libdir_separator_CXX=:
11672
11673       case $host_cpu in
11674       hppa*64*|ia64*) ;;
11675       *)
11676         export_dynamic_flag_spec_CXX='${wl}-E'
11677         ;;
11678       esac
11679     fi
11680     case $host_cpu in
11681     hppa*64*|ia64*)
11682       hardcode_direct_CXX=no
11683       hardcode_shlibpath_var_CXX=no
11684       ;;
11685     *)
11686       hardcode_direct_CXX=yes
11687       hardcode_minus_L_CXX=yes # Not in the search PATH,
11688                                               # but as the default
11689                                               # location of the library.
11690       ;;
11691     esac
11692
11693     case $cc_basename in
11694       CC*)
11695         # FIXME: insert proper C++ library support
11696         ld_shlibs_CXX=no
11697         ;;
11698       aCC*)
11699         case $host_cpu in
11700         hppa*64*)
11701           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702           ;;
11703         ia64*)
11704           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11705           ;;
11706         *)
11707           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11708           ;;
11709         esac
11710         # Commands to make compiler produce verbose output that lists
11711         # what "hidden" libraries, object files and flags are used when
11712         # linking a shared library.
11713         #
11714         # There doesn't appear to be a way to prevent this compiler from
11715         # explicitly linking system object files so we need to strip them
11716         # from the output so that they don't get included in the library
11717         # dependencies.
11718         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'
11719         ;;
11720       *)
11721         if test "$GXX" = yes; then
11722           if test $with_gnu_ld = no; then
11723             case $host_cpu in
11724             hppa*64*)
11725               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11726               ;;
11727             ia64*)
11728               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11729               ;;
11730             *)
11731               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'
11732               ;;
11733             esac
11734           fi
11735         else
11736           # FIXME: insert proper C++ library support
11737           ld_shlibs_CXX=no
11738         fi
11739         ;;
11740     esac
11741     ;;
11742   interix[3-9]*)
11743     hardcode_direct_CXX=no
11744     hardcode_shlibpath_var_CXX=no
11745     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11746     export_dynamic_flag_spec_CXX='${wl}-E'
11747     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11748     # Instead, shared libraries are loaded at an image base (0x10000000 by
11749     # default) and relocated if they conflict, which is a slow very memory
11750     # consuming and fragmenting process.  To avoid this, we pick a random,
11751     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11752     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11753     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'
11754     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'
11755     ;;
11756   irix5* | irix6*)
11757     case $cc_basename in
11758       CC*)
11759         # SGI C++
11760         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'
11761
11762         # Archives containing C++ object files must be created using
11763         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11764         # necessary to make sure instantiated templates are included
11765         # in the archive.
11766         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11767         ;;
11768       *)
11769         if test "$GXX" = yes; then
11770           if test "$with_gnu_ld" = no; then
11771             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'
11772           else
11773             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'
11774           fi
11775         fi
11776         link_all_deplibs_CXX=yes
11777         ;;
11778     esac
11779     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11780     hardcode_libdir_separator_CXX=:
11781     ;;
11782   linux* | k*bsd*-gnu)
11783     case $cc_basename in
11784       KCC*)
11785         # Kuck and Associates, Inc. (KAI) C++ Compiler
11786
11787         # KCC will only create a shared library if the output file
11788         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789         # to its proper name (with version) after linking.
11790         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'
11791         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'
11792         # Commands to make compiler produce verbose output that lists
11793         # what "hidden" libraries, object files and flags are used when
11794         # linking a shared library.
11795         #
11796         # There doesn't appear to be a way to prevent this compiler from
11797         # explicitly linking system object files so we need to strip them
11798         # from the output so that they don't get included in the library
11799         # dependencies.
11800         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'
11801
11802         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11803         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11804
11805         # Archives containing C++ object files must be created using
11806         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11807         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11808         ;;
11809       icpc*)
11810         # Intel C++
11811         with_gnu_ld=yes
11812         # version 8.0 and above of icpc choke on multiply defined symbols
11813         # if we add $predep_objects and $postdep_objects, however 7.1 and
11814         # earlier do not add the objects themselves.
11815         case `$CC -V 2>&1` in
11816         *"Version 7."*)
11817           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818           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'
11819           ;;
11820         *)  # Version 8.0 or newer
11821           tmp_idyn=
11822           case $host_cpu in
11823             ia64*) tmp_idyn=' -i_dynamic';;
11824           esac
11825           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11826           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'
11827           ;;
11828         esac
11829         archive_cmds_need_lc_CXX=no
11830         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11831         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11832         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11833         ;;
11834       pgCC*)
11835         # Portland Group C++ compiler
11836         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11837         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'
11838
11839         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11840         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11841         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'
11842         ;;
11843       cxx*)
11844         # Compaq C++
11845         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11846         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'
11847
11848         runpath_var=LD_RUN_PATH
11849         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11850         hardcode_libdir_separator_CXX=:
11851
11852         # Commands to make compiler produce verbose output that lists
11853         # what "hidden" libraries, object files and flags are used when
11854         # linking a shared library.
11855         #
11856         # There doesn't appear to be a way to prevent this compiler from
11857         # explicitly linking system object files so we need to strip them
11858         # from the output so that they don't get included in the library
11859         # dependencies.
11860         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'
11861         ;;
11862       *)
11863         case `$CC -V 2>&1 | sed 5q` in
11864         *Sun\ C*)
11865           # Sun C++ 5.9
11866           no_undefined_flag_CXX=' -zdefs'
11867           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11869           hardcode_libdir_flag_spec_CXX='-R$libdir'
11870           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11871
11872           # Not sure whether something based on
11873           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11874           # would be better.
11875           output_verbose_link_cmd='echo'
11876
11877           # Archives containing C++ object files must be created using
11878           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11879           # necessary to make sure instantiated templates are included
11880           # in the archive.
11881           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11882           ;;
11883         esac
11884         ;;
11885     esac
11886     ;;
11887   lynxos*)
11888     # FIXME: insert proper C++ library support
11889     ld_shlibs_CXX=no
11890     ;;
11891   m88k*)
11892     # FIXME: insert proper C++ library support
11893     ld_shlibs_CXX=no
11894     ;;
11895   mvs*)
11896     case $cc_basename in
11897       cxx*)
11898         # FIXME: insert proper C++ library support
11899         ld_shlibs_CXX=no
11900         ;;
11901       *)
11902         # FIXME: insert proper C++ library support
11903         ld_shlibs_CXX=no
11904         ;;
11905     esac
11906     ;;
11907   netbsd*)
11908     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11909       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11910       wlarc=
11911       hardcode_libdir_flag_spec_CXX='-R$libdir'
11912       hardcode_direct_CXX=yes
11913       hardcode_shlibpath_var_CXX=no
11914     fi
11915     # Workaround some broken pre-1.5 toolchains
11916     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11917     ;;
11918   openbsd2*)
11919     # C++ shared libraries are fairly broken
11920     ld_shlibs_CXX=no
11921     ;;
11922   openbsd*)
11923     if test -f /usr/libexec/ld.so; then
11924       hardcode_direct_CXX=yes
11925       hardcode_shlibpath_var_CXX=no
11926       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11927       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11928       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11929         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11930         export_dynamic_flag_spec_CXX='${wl}-E'
11931         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11932       fi
11933       output_verbose_link_cmd='echo'
11934     else
11935       ld_shlibs_CXX=no
11936     fi
11937     ;;
11938   osf3*)
11939     case $cc_basename in
11940       KCC*)
11941         # Kuck and Associates, Inc. (KAI) C++ Compiler
11942
11943         # KCC will only create a shared library if the output file
11944         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11945         # to its proper name (with version) after linking.
11946         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'
11947
11948         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11949         hardcode_libdir_separator_CXX=:
11950
11951         # Archives containing C++ object files must be created using
11952         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11953         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11954
11955         ;;
11956       RCC*)
11957         # Rational C++ 2.4.1
11958         # FIXME: insert proper C++ library support
11959         ld_shlibs_CXX=no
11960         ;;
11961       cxx*)
11962         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11963         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'
11964
11965         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11966         hardcode_libdir_separator_CXX=:
11967
11968         # Commands to make compiler produce verbose output that lists
11969         # what "hidden" libraries, object files and flags are used when
11970         # linking a shared library.
11971         #
11972         # There doesn't appear to be a way to prevent this compiler from
11973         # explicitly linking system object files so we need to strip them
11974         # from the output so that they don't get included in the library
11975         # dependencies.
11976         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'
11977         ;;
11978       *)
11979         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11980           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11981           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'
11982
11983           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11984           hardcode_libdir_separator_CXX=:
11985
11986           # Commands to make compiler produce verbose output that lists
11987           # what "hidden" libraries, object files and flags are used when
11988           # linking a shared library.
11989           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11990
11991         else
11992           # FIXME: insert proper C++ library support
11993           ld_shlibs_CXX=no
11994         fi
11995         ;;
11996     esac
11997     ;;
11998   osf4* | osf5*)
11999     case $cc_basename in
12000       KCC*)
12001         # Kuck and Associates, Inc. (KAI) C++ Compiler
12002
12003         # KCC will only create a shared library if the output file
12004         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12005         # to its proper name (with version) after linking.
12006         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'
12007
12008         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12009         hardcode_libdir_separator_CXX=:
12010
12011         # Archives containing C++ object files must be created using
12012         # the KAI C++ compiler.
12013         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12014         ;;
12015       RCC*)
12016         # Rational C++ 2.4.1
12017         # FIXME: insert proper C++ library support
12018         ld_shlibs_CXX=no
12019         ;;
12020       cxx*)
12021         allow_undefined_flag_CXX=' -expect_unresolved \*'
12022         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'
12023         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12024           echo "-hidden">> $lib.exp~
12025           $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~
12026           $rm $lib.exp'
12027
12028         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12029         hardcode_libdir_separator_CXX=:
12030
12031         # Commands to make compiler produce verbose output that lists
12032         # what "hidden" libraries, object files and flags are used when
12033         # linking a shared library.
12034         #
12035         # There doesn't appear to be a way to prevent this compiler from
12036         # explicitly linking system object files so we need to strip them
12037         # from the output so that they don't get included in the library
12038         # dependencies.
12039         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'
12040         ;;
12041       *)
12042         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12043           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12044          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'
12045
12046           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12047           hardcode_libdir_separator_CXX=:
12048
12049           # Commands to make compiler produce verbose output that lists
12050           # what "hidden" libraries, object files and flags are used when
12051           # linking a shared library.
12052           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12053
12054         else
12055           # FIXME: insert proper C++ library support
12056           ld_shlibs_CXX=no
12057         fi
12058         ;;
12059     esac
12060     ;;
12061   psos*)
12062     # FIXME: insert proper C++ library support
12063     ld_shlibs_CXX=no
12064     ;;
12065   sunos4*)
12066     case $cc_basename in
12067       CC*)
12068         # Sun C++ 4.x
12069         # FIXME: insert proper C++ library support
12070         ld_shlibs_CXX=no
12071         ;;
12072       lcc*)
12073         # Lucid
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     ;;
12083   solaris*)
12084     case $cc_basename in
12085       CC*)
12086         # Sun C++ 4.2, 5.x and Centerline C++
12087         archive_cmds_need_lc_CXX=yes
12088         no_undefined_flag_CXX=' -zdefs'
12089         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12090         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12091         $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'
12092
12093         hardcode_libdir_flag_spec_CXX='-R$libdir'
12094         hardcode_shlibpath_var_CXX=no
12095         case $host_os in
12096           solaris2.[0-5] | solaris2.[0-5].*) ;;
12097           *)
12098             # The compiler driver will combine and reorder linker options,
12099             # but understands `-z linker_flag'.
12100             # Supported since Solaris 2.6 (maybe 2.5.1?)
12101             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12102             ;;
12103         esac
12104         link_all_deplibs_CXX=yes
12105
12106         output_verbose_link_cmd='echo'
12107
12108         # Archives containing C++ object files must be created using
12109         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12110         # necessary to make sure instantiated templates are included
12111         # in the archive.
12112         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12113         ;;
12114       gcx*)
12115         # Green Hills C++ Compiler
12116         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12117
12118         # The C++ compiler must be used to create the archive.
12119         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12120         ;;
12121       *)
12122         # GNU C++ compiler with Solaris linker
12123         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12124           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12125           if $CC --version | grep -v '^2\.7' > /dev/null; then
12126             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12127             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12128                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12129
12130             # Commands to make compiler produce verbose output that lists
12131             # what "hidden" libraries, object files and flags are used when
12132             # linking a shared library.
12133             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12134           else
12135             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12136             # platform.
12137             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12138             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12139                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12140
12141             # Commands to make compiler produce verbose output that lists
12142             # what "hidden" libraries, object files and flags are used when
12143             # linking a shared library.
12144             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12145           fi
12146
12147           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12148           case $host_os in
12149           solaris2.[0-5] | solaris2.[0-5].*) ;;
12150           *)
12151             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12152             ;;
12153           esac
12154         fi
12155         ;;
12156     esac
12157     ;;
12158   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12159     no_undefined_flag_CXX='${wl}-z,text'
12160     archive_cmds_need_lc_CXX=no
12161     hardcode_shlibpath_var_CXX=no
12162     runpath_var='LD_RUN_PATH'
12163
12164     case $cc_basename in
12165       CC*)
12166         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12167         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168         ;;
12169       *)
12170         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12172         ;;
12173     esac
12174     ;;
12175   sysv5* | sco3.2v5* | sco5v6*)
12176     # Note: We can NOT use -z defs as we might desire, because we do not
12177     # link with -lc, and that would cause any symbols used from libc to
12178     # always be unresolved, which means just about no library would
12179     # ever link correctly.  If we're not using GNU ld we use -z text
12180     # though, which does catch some bad symbols but isn't as heavy-handed
12181     # as -z defs.
12182     # For security reasons, it is highly recommended that you always
12183     # use absolute paths for naming shared libraries, and exclude the
12184     # DT_RUNPATH tag from executables and libraries.  But doing so
12185     # requires that you compile everything twice, which is a pain.
12186     # So that behaviour is only enabled if SCOABSPATH is set to a
12187     # non-empty value in the environment.  Most likely only useful for
12188     # creating official distributions of packages.
12189     # This is a hack until libtool officially supports absolute path
12190     # names for shared libraries.
12191     no_undefined_flag_CXX='${wl}-z,text'
12192     allow_undefined_flag_CXX='${wl}-z,nodefs'
12193     archive_cmds_need_lc_CXX=no
12194     hardcode_shlibpath_var_CXX=no
12195     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12196     hardcode_libdir_separator_CXX=':'
12197     link_all_deplibs_CXX=yes
12198     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12199     runpath_var='LD_RUN_PATH'
12200
12201     case $cc_basename in
12202       CC*)
12203         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12204         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12205         ;;
12206       *)
12207         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12208         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12209         ;;
12210     esac
12211     ;;
12212   tandem*)
12213     case $cc_basename in
12214       NCC*)
12215         # NonStop-UX NCC 3.20
12216         # FIXME: insert proper C++ library support
12217         ld_shlibs_CXX=no
12218         ;;
12219       *)
12220         # FIXME: insert proper C++ library support
12221         ld_shlibs_CXX=no
12222         ;;
12223     esac
12224     ;;
12225   vxworks*)
12226     # FIXME: insert proper C++ library support
12227     ld_shlibs_CXX=no
12228     ;;
12229   *)
12230     # FIXME: insert proper C++ library support
12231     ld_shlibs_CXX=no
12232     ;;
12233 esac
12234 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12235 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12236 test "$ld_shlibs_CXX" = no && can_build_shared=no
12237
12238 GCC_CXX="$GXX"
12239 LD_CXX="$LD"
12240
12241
12242 cat > conftest.$ac_ext <<EOF
12243 class Foo
12244 {
12245 public:
12246   Foo (void) { a = 0; }
12247 private:
12248   int a;
12249 };
12250 EOF
12251
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253   (eval $ac_compile) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; then
12257   # Parse the compiler output and extract the necessary
12258   # objects, libraries and library flags.
12259
12260   # Sentinel used to keep track of whether or not we are before
12261   # the conftest object file.
12262   pre_test_object_deps_done=no
12263
12264   # The `*' in the case matches for architectures that use `case' in
12265   # $output_verbose_cmd can trigger glob expansion during the loop
12266   # eval without this substitution.
12267   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12268
12269   for p in `eval $output_verbose_link_cmd`; do
12270     case $p in
12271
12272     -L* | -R* | -l*)
12273        # Some compilers place space between "-{L,R}" and the path.
12274        # Remove the space.
12275        if test $p = "-L" \
12276           || test $p = "-R"; then
12277          prev=$p
12278          continue
12279        else
12280          prev=
12281        fi
12282
12283        if test "$pre_test_object_deps_done" = no; then
12284          case $p in
12285          -L* | -R*)
12286            # Internal compiler library paths should come after those
12287            # provided the user.  The postdeps already come after the
12288            # user supplied libs so there is no need to process them.
12289            if test -z "$compiler_lib_search_path_CXX"; then
12290              compiler_lib_search_path_CXX="${prev}${p}"
12291            else
12292              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12293            fi
12294            ;;
12295          # The "-l" case would never come before the object being
12296          # linked, so don't bother handling this case.
12297          esac
12298        else
12299          if test -z "$postdeps_CXX"; then
12300            postdeps_CXX="${prev}${p}"
12301          else
12302            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12303          fi
12304        fi
12305        ;;
12306
12307     *.$objext)
12308        # This assumes that the test object file only shows up
12309        # once in the compiler output.
12310        if test "$p" = "conftest.$objext"; then
12311          pre_test_object_deps_done=yes
12312          continue
12313        fi
12314
12315        if test "$pre_test_object_deps_done" = no; then
12316          if test -z "$predep_objects_CXX"; then
12317            predep_objects_CXX="$p"
12318          else
12319            predep_objects_CXX="$predep_objects_CXX $p"
12320          fi
12321        else
12322          if test -z "$postdep_objects_CXX"; then
12323            postdep_objects_CXX="$p"
12324          else
12325            postdep_objects_CXX="$postdep_objects_CXX $p"
12326          fi
12327        fi
12328        ;;
12329
12330     *) ;; # Ignore the rest.
12331
12332     esac
12333   done
12334
12335   # Clean up.
12336   rm -f a.out a.exe
12337 else
12338   echo "libtool.m4: error: problem compiling CXX test program"
12339 fi
12340
12341 $rm -f confest.$objext
12342
12343 # PORTME: override above test on systems where it is broken
12344 case $host_os in
12345 interix[3-9]*)
12346   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12347   # hack all around it, let's just trust "g++" to DTRT.
12348   predep_objects_CXX=
12349   postdep_objects_CXX=
12350   postdeps_CXX=
12351   ;;
12352
12353 linux*)
12354   case `$CC -V 2>&1 | sed 5q` in
12355   *Sun\ C*)
12356     # Sun C++ 5.9
12357     #
12358     # The more standards-conforming stlport4 library is
12359     # incompatible with the Cstd library. Avoid specifying
12360     # it if it's in CXXFLAGS. Ignore libCrun as
12361     # -library=stlport4 depends on it.
12362     case " $CXX $CXXFLAGS " in
12363     *" -library=stlport4 "*)
12364       solaris_use_stlport4=yes
12365       ;;
12366     esac
12367     if test "$solaris_use_stlport4" != yes; then
12368       postdeps_CXX='-library=Cstd -library=Crun'
12369     fi
12370     ;;
12371   esac
12372   ;;
12373
12374 solaris*)
12375   case $cc_basename in
12376   CC*)
12377     # The more standards-conforming stlport4 library is
12378     # incompatible with the Cstd library. Avoid specifying
12379     # it if it's in CXXFLAGS. Ignore libCrun as
12380     # -library=stlport4 depends on it.
12381     case " $CXX $CXXFLAGS " in
12382     *" -library=stlport4 "*)
12383       solaris_use_stlport4=yes
12384       ;;
12385     esac
12386
12387     # Adding this requires a known-good setup of shared libraries for
12388     # Sun compiler versions before 5.6, else PIC objects from an old
12389     # archive will be linked into the output, leading to subtle bugs.
12390     if test "$solaris_use_stlport4" != yes; then
12391       postdeps_CXX='-library=Cstd -library=Crun'
12392     fi
12393     ;;
12394   esac
12395   ;;
12396 esac
12397
12398
12399 case " $postdeps_CXX " in
12400 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12401 esac
12402
12403 lt_prog_compiler_wl_CXX=
12404 lt_prog_compiler_pic_CXX=
12405 lt_prog_compiler_static_CXX=
12406
12407 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12409
12410   # C++ specific cases for pic, static, wl, etc.
12411   if test "$GXX" = yes; then
12412     lt_prog_compiler_wl_CXX='-Wl,'
12413     lt_prog_compiler_static_CXX='-static'
12414
12415     case $host_os in
12416     aix*)
12417       # All AIX code is PIC.
12418       if test "$host_cpu" = ia64; then
12419         # AIX 5 now supports IA64 processor
12420         lt_prog_compiler_static_CXX='-Bstatic'
12421       fi
12422       ;;
12423     amigaos*)
12424       # FIXME: we need at least 68020 code to build shared libraries, but
12425       # adding the `-m68020' flag to GCC prevents building anything better,
12426       # like `-m68040'.
12427       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12428       ;;
12429     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12430       # PIC is the default for these OSes.
12431       ;;
12432     mingw* | cygwin* | os2* | pw32*)
12433       # This hack is so that the source file can tell whether it is being
12434       # built for inclusion in a dll (and should export symbols for example).
12435       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12436       # (--disable-auto-import) libraries
12437       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12438       ;;
12439     darwin* | rhapsody*)
12440       # PIC is the default on this platform
12441       # Common symbols not allowed in MH_DYLIB files
12442       lt_prog_compiler_pic_CXX='-fno-common'
12443       ;;
12444     *djgpp*)
12445       # DJGPP does not support shared libraries at all
12446       lt_prog_compiler_pic_CXX=
12447       ;;
12448     interix[3-9]*)
12449       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12450       # Instead, we relocate shared libraries at runtime.
12451       ;;
12452     sysv4*MP*)
12453       if test -d /usr/nec; then
12454         lt_prog_compiler_pic_CXX=-Kconform_pic
12455       fi
12456       ;;
12457     hpux*)
12458       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12459       # not for PA HP-UX.
12460       case $host_cpu in
12461       hppa*64*|ia64*)
12462         ;;
12463       *)
12464         lt_prog_compiler_pic_CXX='-fPIC'
12465         ;;
12466       esac
12467       ;;
12468     *)
12469       lt_prog_compiler_pic_CXX='-fPIC'
12470       ;;
12471     esac
12472   else
12473     case $host_os in
12474       aix4* | aix5*)
12475         # All AIX code is PIC.
12476         if test "$host_cpu" = ia64; then
12477           # AIX 5 now supports IA64 processor
12478           lt_prog_compiler_static_CXX='-Bstatic'
12479         else
12480           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12481         fi
12482         ;;
12483       chorus*)
12484         case $cc_basename in
12485         cxch68*)
12486           # Green Hills C++ Compiler
12487           # _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"
12488           ;;
12489         esac
12490         ;;
12491        darwin*)
12492          # PIC is the default on this platform
12493          # Common symbols not allowed in MH_DYLIB files
12494          case $cc_basename in
12495            xlc*)
12496            lt_prog_compiler_pic_CXX='-qnocommon'
12497            lt_prog_compiler_wl_CXX='-Wl,'
12498            ;;
12499          esac
12500        ;;
12501       dgux*)
12502         case $cc_basename in
12503           ec++*)
12504             lt_prog_compiler_pic_CXX='-KPIC'
12505             ;;
12506           ghcx*)
12507             # Green Hills C++ Compiler
12508             lt_prog_compiler_pic_CXX='-pic'
12509             ;;
12510           *)
12511             ;;
12512         esac
12513         ;;
12514       freebsd* | dragonfly*)
12515         # FreeBSD uses GNU C++
12516         ;;
12517       hpux9* | hpux10* | hpux11*)
12518         case $cc_basename in
12519           CC*)
12520             lt_prog_compiler_wl_CXX='-Wl,'
12521             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12522             if test "$host_cpu" != ia64; then
12523               lt_prog_compiler_pic_CXX='+Z'
12524             fi
12525             ;;
12526           aCC*)
12527             lt_prog_compiler_wl_CXX='-Wl,'
12528             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12529             case $host_cpu in
12530             hppa*64*|ia64*)
12531               # +Z the default
12532               ;;
12533             *)
12534               lt_prog_compiler_pic_CXX='+Z'
12535               ;;
12536             esac
12537             ;;
12538           *)
12539             ;;
12540         esac
12541         ;;
12542       interix*)
12543         # This is c89, which is MS Visual C++ (no shared libs)
12544         # Anyone wants to do a port?
12545         ;;
12546       irix5* | irix6* | nonstopux*)
12547         case $cc_basename in
12548           CC*)
12549             lt_prog_compiler_wl_CXX='-Wl,'
12550             lt_prog_compiler_static_CXX='-non_shared'
12551             # CC pic flag -KPIC is the default.
12552             ;;
12553           *)
12554             ;;
12555         esac
12556         ;;
12557       linux* | k*bsd*-gnu)
12558         case $cc_basename in
12559           KCC*)
12560             # KAI C++ Compiler
12561             lt_prog_compiler_wl_CXX='--backend -Wl,'
12562             lt_prog_compiler_pic_CXX='-fPIC'
12563             ;;
12564           icpc* | ecpc*)
12565             # Intel C++
12566             lt_prog_compiler_wl_CXX='-Wl,'
12567             lt_prog_compiler_pic_CXX='-KPIC'
12568             lt_prog_compiler_static_CXX='-static'
12569             ;;
12570           pgCC*)
12571             # Portland Group C++ compiler.
12572             lt_prog_compiler_wl_CXX='-Wl,'
12573             lt_prog_compiler_pic_CXX='-fpic'
12574             lt_prog_compiler_static_CXX='-Bstatic'
12575             ;;
12576           cxx*)
12577             # Compaq C++
12578             # Make sure the PIC flag is empty.  It appears that all Alpha
12579             # Linux and Compaq Tru64 Unix objects are PIC.
12580             lt_prog_compiler_pic_CXX=
12581             lt_prog_compiler_static_CXX='-non_shared'
12582             ;;
12583           *)
12584             case `$CC -V 2>&1 | sed 5q` in
12585             *Sun\ C*)
12586               # Sun C++ 5.9
12587               lt_prog_compiler_pic_CXX='-KPIC'
12588               lt_prog_compiler_static_CXX='-Bstatic'
12589               lt_prog_compiler_wl_CXX='-Qoption ld '
12590               ;;
12591             esac
12592             ;;
12593         esac
12594         ;;
12595       lynxos*)
12596         ;;
12597       m88k*)
12598         ;;
12599       mvs*)
12600         case $cc_basename in
12601           cxx*)
12602             lt_prog_compiler_pic_CXX='-W c,exportall'
12603             ;;
12604           *)
12605             ;;
12606         esac
12607         ;;
12608       netbsd*)
12609         ;;
12610       osf3* | osf4* | osf5*)
12611         case $cc_basename in
12612           KCC*)
12613             lt_prog_compiler_wl_CXX='--backend -Wl,'
12614             ;;
12615           RCC*)
12616             # Rational C++ 2.4.1
12617             lt_prog_compiler_pic_CXX='-pic'
12618             ;;
12619           cxx*)
12620             # Digital/Compaq C++
12621             lt_prog_compiler_wl_CXX='-Wl,'
12622             # Make sure the PIC flag is empty.  It appears that all Alpha
12623             # Linux and Compaq Tru64 Unix objects are PIC.
12624             lt_prog_compiler_pic_CXX=
12625             lt_prog_compiler_static_CXX='-non_shared'
12626             ;;
12627           *)
12628             ;;
12629         esac
12630         ;;
12631       psos*)
12632         ;;
12633       solaris*)
12634         case $cc_basename in
12635           CC*)
12636             # Sun C++ 4.2, 5.x and Centerline C++
12637             lt_prog_compiler_pic_CXX='-KPIC'
12638             lt_prog_compiler_static_CXX='-Bstatic'
12639             lt_prog_compiler_wl_CXX='-Qoption ld '
12640             ;;
12641           gcx*)
12642             # Green Hills C++ Compiler
12643             lt_prog_compiler_pic_CXX='-PIC'
12644             ;;
12645           *)
12646             ;;
12647         esac
12648         ;;
12649       sunos4*)
12650         case $cc_basename in
12651           CC*)
12652             # Sun C++ 4.x
12653             lt_prog_compiler_pic_CXX='-pic'
12654             lt_prog_compiler_static_CXX='-Bstatic'
12655             ;;
12656           lcc*)
12657             # Lucid
12658             lt_prog_compiler_pic_CXX='-pic'
12659             ;;
12660           *)
12661             ;;
12662         esac
12663         ;;
12664       tandem*)
12665         case $cc_basename in
12666           NCC*)
12667             # NonStop-UX NCC 3.20
12668             lt_prog_compiler_pic_CXX='-KPIC'
12669             ;;
12670           *)
12671             ;;
12672         esac
12673         ;;
12674       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12675         case $cc_basename in
12676           CC*)
12677             lt_prog_compiler_wl_CXX='-Wl,'
12678             lt_prog_compiler_pic_CXX='-KPIC'
12679             lt_prog_compiler_static_CXX='-Bstatic'
12680             ;;
12681         esac
12682         ;;
12683       vxworks*)
12684         ;;
12685       *)
12686         lt_prog_compiler_can_build_shared_CXX=no
12687         ;;
12688     esac
12689   fi
12690
12691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12692 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12693
12694 #
12695 # Check to make sure the PIC flag actually works.
12696 #
12697 if test -n "$lt_prog_compiler_pic_CXX"; then
12698
12699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12701 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   lt_prog_compiler_pic_works_CXX=no
12705   ac_outfile=conftest.$ac_objext
12706    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12707    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12708    # Insert the option either (1) after the last *FLAGS variable, or
12709    # (2) before a word containing "conftest.", or (3) at the end.
12710    # Note that $ac_compile itself does not contain backslashes and begins
12711    # with a dollar sign (not a hyphen), so the echo should work correctly.
12712    # The option is referenced via a variable to avoid confusing sed.
12713    lt_compile=`echo "$ac_compile" | $SED \
12714    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12716    -e 's:$: $lt_compiler_flag:'`
12717    (eval echo "\"\$as_me:12717: $lt_compile\"" >&5)
12718    (eval "$lt_compile" 2>conftest.err)
12719    ac_status=$?
12720    cat conftest.err >&5
12721    echo "$as_me:12721: \$? = $ac_status" >&5
12722    if (exit $ac_status) && test -s "$ac_outfile"; then
12723      # The compiler can only warn and ignore the option if not recognized
12724      # So say no if there are warnings other than the usual output.
12725      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12726      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12727      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12728        lt_prog_compiler_pic_works_CXX=yes
12729      fi
12730    fi
12731    $rm conftest*
12732
12733 fi
12734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12735 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12736
12737 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12738     case $lt_prog_compiler_pic_CXX in
12739      "" | " "*) ;;
12740      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12741      esac
12742 else
12743     lt_prog_compiler_pic_CXX=
12744      lt_prog_compiler_can_build_shared_CXX=no
12745 fi
12746
12747 fi
12748 case $host_os in
12749   # For platforms which do not support PIC, -DPIC is meaningless:
12750   *djgpp*)
12751     lt_prog_compiler_pic_CXX=
12752     ;;
12753   *)
12754     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12755     ;;
12756 esac
12757
12758 #
12759 # Check to make sure the static flag actually works.
12760 #
12761 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12764 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12765   echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767   lt_prog_compiler_static_works_CXX=no
12768    save_LDFLAGS="$LDFLAGS"
12769    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12770    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12771    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12772      # The linker can only warn and ignore the option if not recognized
12773      # So say no if there are warnings
12774      if test -s conftest.err; then
12775        # Append any errors to the config.log.
12776        cat conftest.err 1>&5
12777        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12778        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12779        if diff conftest.exp conftest.er2 >/dev/null; then
12780          lt_prog_compiler_static_works_CXX=yes
12781        fi
12782      else
12783        lt_prog_compiler_static_works_CXX=yes
12784      fi
12785    fi
12786    $rm conftest*
12787    LDFLAGS="$save_LDFLAGS"
12788
12789 fi
12790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12791 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12792
12793 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12794     :
12795 else
12796     lt_prog_compiler_static_CXX=
12797 fi
12798
12799
12800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12802 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12803   echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805   lt_cv_prog_compiler_c_o_CXX=no
12806    $rm -r conftest 2>/dev/null
12807    mkdir conftest
12808    cd conftest
12809    mkdir out
12810    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12811
12812    lt_compiler_flag="-o out/conftest2.$ac_objext"
12813    # Insert the option either (1) after the last *FLAGS variable, or
12814    # (2) before a word containing "conftest.", or (3) at the end.
12815    # Note that $ac_compile itself does not contain backslashes and begins
12816    # with a dollar sign (not a hyphen), so the echo should work correctly.
12817    lt_compile=`echo "$ac_compile" | $SED \
12818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12820    -e 's:$: $lt_compiler_flag:'`
12821    (eval echo "\"\$as_me:12821: $lt_compile\"" >&5)
12822    (eval "$lt_compile" 2>out/conftest.err)
12823    ac_status=$?
12824    cat out/conftest.err >&5
12825    echo "$as_me:12825: \$? = $ac_status" >&5
12826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12827    then
12828      # The compiler can only warn and ignore the option if not recognized
12829      # So say no if there are warnings
12830      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12833        lt_cv_prog_compiler_c_o_CXX=yes
12834      fi
12835    fi
12836    chmod u+w . 2>&5
12837    $rm conftest*
12838    # SGI C++ compiler will create directory out/ii_files/ for
12839    # template instantiation
12840    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12841    $rm out/* && rmdir out
12842    cd ..
12843    rmdir conftest
12844    $rm conftest*
12845
12846 fi
12847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12849
12850
12851 hard_links="nottested"
12852 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12853   # do not overwrite the value of need_locks provided by the user
12854   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12856   hard_links=yes
12857   $rm conftest*
12858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12859   touch conftest.a
12860   ln conftest.a conftest.b 2>&5 || hard_links=no
12861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12862   { echo "$as_me:$LINENO: result: $hard_links" >&5
12863 echo "${ECHO_T}$hard_links" >&6; }
12864   if test "$hard_links" = no; then
12865     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12867     need_locks=warn
12868   fi
12869 else
12870   need_locks=no
12871 fi
12872
12873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12875
12876   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12877   case $host_os in
12878   aix4* | aix5*)
12879     # If we're using GNU nm, then we don't want the "-C" option.
12880     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12881     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12882       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'
12883     else
12884       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'
12885     fi
12886     ;;
12887   pw32*)
12888     export_symbols_cmds_CXX="$ltdll_cmds"
12889   ;;
12890   cygwin* | mingw*)
12891     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'
12892   ;;
12893   *)
12894     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12895   ;;
12896   esac
12897
12898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12900 test "$ld_shlibs_CXX" = no && can_build_shared=no
12901
12902 #
12903 # Do we need to explicitly link libc?
12904 #
12905 case "x$archive_cmds_need_lc_CXX" in
12906 x|xyes)
12907   # Assume -lc should be added
12908   archive_cmds_need_lc_CXX=yes
12909
12910   if test "$enable_shared" = yes && test "$GCC" = yes; then
12911     case $archive_cmds_CXX in
12912     *'~'*)
12913       # FIXME: we may have to deal with multi-command sequences.
12914       ;;
12915     '$CC '*)
12916       # Test whether the compiler implicitly links with -lc since on some
12917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12918       # to ld, don't add -lc before -lgcc.
12919       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12921       $rm conftest*
12922       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12923
12924       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925   (eval $ac_compile) 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } 2>conftest.err; then
12929         soname=conftest
12930         lib=conftest
12931         libobjs=conftest.$ac_objext
12932         deplibs=
12933         wl=$lt_prog_compiler_wl_CXX
12934         pic_flag=$lt_prog_compiler_pic_CXX
12935         compiler_flags=-v
12936         linker_flags=-v
12937         verstring=
12938         output_objdir=.
12939         libname=conftest
12940         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12941         allow_undefined_flag_CXX=
12942         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12943   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }
12947         then
12948           archive_cmds_need_lc_CXX=no
12949         else
12950           archive_cmds_need_lc_CXX=yes
12951         fi
12952         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12953       else
12954         cat conftest.err 1>&5
12955       fi
12956       $rm conftest*
12957       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12958 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12959       ;;
12960     esac
12961   fi
12962   ;;
12963 esac
12964
12965 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12967 library_names_spec=
12968 libname_spec='lib$name'
12969 soname_spec=
12970 shrext_cmds=".so"
12971 postinstall_cmds=
12972 postuninstall_cmds=
12973 finish_cmds=
12974 finish_eval=
12975 shlibpath_var=
12976 shlibpath_overrides_runpath=unknown
12977 version_type=none
12978 dynamic_linker="$host_os ld.so"
12979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12980
12981 need_lib_prefix=unknown
12982 hardcode_into_libs=no
12983
12984 # when you set need_version to no, make sure it does not cause -set_version
12985 # flags to be left without arguments
12986 need_version=unknown
12987
12988 case $host_os in
12989 aix3*)
12990   version_type=linux
12991   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12992   shlibpath_var=LIBPATH
12993
12994   # AIX 3 has no versioning support, so we append a major version to the name.
12995   soname_spec='${libname}${release}${shared_ext}$major'
12996   ;;
12997
12998 aix4* | aix5*)
12999   version_type=linux
13000   need_lib_prefix=no
13001   need_version=no
13002   hardcode_into_libs=yes
13003   if test "$host_cpu" = ia64; then
13004     # AIX 5 supports IA64
13005     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13006     shlibpath_var=LD_LIBRARY_PATH
13007   else
13008     # With GCC up to 2.95.x, collect2 would create an import file
13009     # for dependence libraries.  The import file would start with
13010     # the line `#! .'.  This would cause the generated library to
13011     # depend on `.', always an invalid library.  This was fixed in
13012     # development snapshots of GCC prior to 3.0.
13013     case $host_os in
13014       aix4 | aix4.[01] | aix4.[01].*)
13015       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13016            echo ' yes '
13017            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13018         :
13019       else
13020         can_build_shared=no
13021       fi
13022       ;;
13023     esac
13024     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13025     # soname into executable. Probably we can add versioning support to
13026     # collect2, so additional links can be useful in future.
13027     if test "$aix_use_runtimelinking" = yes; then
13028       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13029       # instead of lib<name>.a to let people know that these are not
13030       # typical AIX shared libraries.
13031       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032     else
13033       # We preserve .a as extension for shared libraries through AIX4.2
13034       # and later when we are not doing run time linking.
13035       library_names_spec='${libname}${release}.a $libname.a'
13036       soname_spec='${libname}${release}${shared_ext}$major'
13037     fi
13038     shlibpath_var=LIBPATH
13039   fi
13040   ;;
13041
13042 amigaos*)
13043   library_names_spec='$libname.ixlibrary $libname.a'
13044   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13045   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'
13046   ;;
13047
13048 beos*)
13049   library_names_spec='${libname}${shared_ext}'
13050   dynamic_linker="$host_os ld.so"
13051   shlibpath_var=LIBRARY_PATH
13052   ;;
13053
13054 bsdi[45]*)
13055   version_type=linux
13056   need_version=no
13057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058   soname_spec='${libname}${release}${shared_ext}$major'
13059   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13060   shlibpath_var=LD_LIBRARY_PATH
13061   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13062   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13063   # the default ld.so.conf also contains /usr/contrib/lib and
13064   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13065   # libtool to hard-code these into programs
13066   ;;
13067
13068 cygwin* | mingw* | pw32*)
13069   version_type=windows
13070   shrext_cmds=".dll"
13071   need_version=no
13072   need_lib_prefix=no
13073
13074   case $GCC,$host_os in
13075   yes,cygwin* | yes,mingw* | yes,pw32*)
13076     library_names_spec='$libname.dll.a'
13077     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078     postinstall_cmds='base_file=`basename \${file}`~
13079       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13080       dldir=$destdir/`dirname \$dlpath`~
13081       test -d \$dldir || mkdir -p \$dldir~
13082       $install_prog $dir/$dlname \$dldir/$dlname~
13083       chmod a+x \$dldir/$dlname'
13084     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13085       dlpath=$dir/\$dldll~
13086        $rm \$dlpath'
13087     shlibpath_overrides_runpath=yes
13088
13089     case $host_os in
13090     cygwin*)
13091       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13092       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13093       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13094       ;;
13095     mingw*)
13096       # MinGW DLLs use traditional 'lib' prefix
13097       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13098       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13099       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13100         # It is most probably a Windows format PATH printed by
13101         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13102         # path with ; separators, and with drive letters. We can handle the
13103         # drive letters (cygwin fileutils understands them), so leave them,
13104         # especially as we might pass files found there to a mingw objdump,
13105         # which wouldn't understand a cygwinified path. Ahh.
13106         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13107       else
13108         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13109       fi
13110       ;;
13111     pw32*)
13112       # pw32 DLLs use 'pw' prefix rather than 'lib'
13113       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114       ;;
13115     esac
13116     ;;
13117
13118   *)
13119     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13120     ;;
13121   esac
13122   dynamic_linker='Win32 ld.exe'
13123   # FIXME: first we should search . and the directory the executable is in
13124   shlibpath_var=PATH
13125   ;;
13126
13127 darwin* | rhapsody*)
13128   dynamic_linker="$host_os dyld"
13129   version_type=darwin
13130   need_lib_prefix=no
13131   need_version=no
13132   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13133   soname_spec='${libname}${release}${major}$shared_ext'
13134   shlibpath_overrides_runpath=yes
13135   shlibpath_var=DYLD_LIBRARY_PATH
13136   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13137
13138   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13139   ;;
13140
13141 dgux*)
13142   version_type=linux
13143   need_lib_prefix=no
13144   need_version=no
13145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13146   soname_spec='${libname}${release}${shared_ext}$major'
13147   shlibpath_var=LD_LIBRARY_PATH
13148   ;;
13149
13150 freebsd1*)
13151   dynamic_linker=no
13152   ;;
13153
13154 freebsd* | dragonfly*)
13155   # DragonFly does not have aout.  When/if they implement a new
13156   # versioning mechanism, adjust this.
13157   if test -x /usr/bin/objformat; then
13158     objformat=`/usr/bin/objformat`
13159   else
13160     case $host_os in
13161     freebsd[123]*) objformat=aout ;;
13162     *) objformat=elf ;;
13163     esac
13164   fi
13165   # Handle Gentoo/FreeBSD as it was Linux
13166   case $host_vendor in
13167     gentoo)
13168       version_type=linux ;;
13169     *)
13170       version_type=freebsd-$objformat ;;
13171   esac
13172
13173   case $version_type in
13174     freebsd-elf*)
13175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13176       need_version=no
13177       need_lib_prefix=no
13178       ;;
13179     freebsd-*)
13180       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13181       need_version=yes
13182       ;;
13183     linux)
13184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13185       soname_spec='${libname}${release}${shared_ext}$major'
13186       need_lib_prefix=no
13187       need_version=no
13188       ;;
13189   esac
13190   shlibpath_var=LD_LIBRARY_PATH
13191   case $host_os in
13192   freebsd2*)
13193     shlibpath_overrides_runpath=yes
13194     ;;
13195   freebsd3.[01]* | freebsdelf3.[01]*)
13196     shlibpath_overrides_runpath=yes
13197     hardcode_into_libs=yes
13198     ;;
13199   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13200   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13201     shlibpath_overrides_runpath=no
13202     hardcode_into_libs=yes
13203     ;;
13204   *) # from 4.6 on, and DragonFly
13205     shlibpath_overrides_runpath=yes
13206     hardcode_into_libs=yes
13207     ;;
13208   esac
13209   ;;
13210
13211 gnu*)
13212   version_type=linux
13213   need_lib_prefix=no
13214   need_version=no
13215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13216   soname_spec='${libname}${release}${shared_ext}$major'
13217   shlibpath_var=LD_LIBRARY_PATH
13218   hardcode_into_libs=yes
13219   ;;
13220
13221 hpux9* | hpux10* | hpux11*)
13222   # Give a soname corresponding to the major version so that dld.sl refuses to
13223   # link against other versions.
13224   version_type=sunos
13225   need_lib_prefix=no
13226   need_version=no
13227   case $host_cpu in
13228   ia64*)
13229     shrext_cmds='.so'
13230     hardcode_into_libs=yes
13231     dynamic_linker="$host_os dld.so"
13232     shlibpath_var=LD_LIBRARY_PATH
13233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235     soname_spec='${libname}${release}${shared_ext}$major'
13236     if test "X$HPUX_IA64_MODE" = X32; then
13237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13238     else
13239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13240     fi
13241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13242     ;;
13243    hppa*64*)
13244      shrext_cmds='.sl'
13245      hardcode_into_libs=yes
13246      dynamic_linker="$host_os dld.sl"
13247      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13248      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13250      soname_spec='${libname}${release}${shared_ext}$major'
13251      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13252      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13253      ;;
13254    *)
13255     shrext_cmds='.sl'
13256     dynamic_linker="$host_os dld.sl"
13257     shlibpath_var=SHLIB_PATH
13258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13260     soname_spec='${libname}${release}${shared_ext}$major'
13261     ;;
13262   esac
13263   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13264   postinstall_cmds='chmod 555 $lib'
13265   ;;
13266
13267 interix[3-9]*)
13268   version_type=linux
13269   need_lib_prefix=no
13270   need_version=no
13271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13272   soname_spec='${libname}${release}${shared_ext}$major'
13273   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13274   shlibpath_var=LD_LIBRARY_PATH
13275   shlibpath_overrides_runpath=no
13276   hardcode_into_libs=yes
13277   ;;
13278
13279 irix5* | irix6* | nonstopux*)
13280   case $host_os in
13281     nonstopux*) version_type=nonstopux ;;
13282     *)
13283         if test "$lt_cv_prog_gnu_ld" = yes; then
13284                 version_type=linux
13285         else
13286                 version_type=irix
13287         fi ;;
13288   esac
13289   need_lib_prefix=no
13290   need_version=no
13291   soname_spec='${libname}${release}${shared_ext}$major'
13292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13293   case $host_os in
13294   irix5* | nonstopux*)
13295     libsuff= shlibsuff=
13296     ;;
13297   *)
13298     case $LD in # libtool.m4 will add one of these switches to LD
13299     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13300       libsuff= shlibsuff= libmagic=32-bit;;
13301     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13302       libsuff=32 shlibsuff=N32 libmagic=N32;;
13303     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13304       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13305     *) libsuff= shlibsuff= libmagic=never-match;;
13306     esac
13307     ;;
13308   esac
13309   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13310   shlibpath_overrides_runpath=no
13311   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13312   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13313   hardcode_into_libs=yes
13314   ;;
13315
13316 # No shared lib support for Linux oldld, aout, or coff.
13317 linux*oldld* | linux*aout* | linux*coff*)
13318   dynamic_linker=no
13319   ;;
13320
13321 # This must be Linux ELF.
13322 linux* | k*bsd*-gnu)
13323   version_type=linux
13324   need_lib_prefix=no
13325   need_version=no
13326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327   soname_spec='${libname}${release}${shared_ext}$major'
13328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13329   shlibpath_var=LD_LIBRARY_PATH
13330   shlibpath_overrides_runpath=no
13331   # This implies no fast_install, which is unacceptable.
13332   # Some rework will be needed to allow for fast_install
13333   # before this can be enabled.
13334   hardcode_into_libs=yes
13335
13336   # Append ld.so.conf contents to the search path
13337   if test -f /etc/ld.so.conf; then
13338     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13340   fi
13341
13342   # We used to test for /lib/ld.so.1 and disable shared libraries on
13343   # powerpc, because MkLinux only supported shared libraries with the
13344   # GNU dynamic linker.  Since this was broken with cross compilers,
13345   # most powerpc-linux boxes support dynamic linking these days and
13346   # people can always --disable-shared, the test was removed, and we
13347   # assume the GNU/Linux dynamic linker is in use.
13348   dynamic_linker='GNU/Linux ld.so'
13349   ;;
13350
13351 netbsd*)
13352   version_type=sunos
13353   need_lib_prefix=no
13354   need_version=no
13355   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358     dynamic_linker='NetBSD (a.out) ld.so'
13359   else
13360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361     soname_spec='${libname}${release}${shared_ext}$major'
13362     dynamic_linker='NetBSD ld.elf_so'
13363   fi
13364   shlibpath_var=LD_LIBRARY_PATH
13365   shlibpath_overrides_runpath=yes
13366   hardcode_into_libs=yes
13367   ;;
13368
13369 newsos6)
13370   version_type=linux
13371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   ;;
13375
13376 nto-qnx*)
13377   version_type=linux
13378   need_lib_prefix=no
13379   need_version=no
13380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381   soname_spec='${libname}${release}${shared_ext}$major'
13382   shlibpath_var=LD_LIBRARY_PATH
13383   shlibpath_overrides_runpath=yes
13384   ;;
13385
13386 openbsd*)
13387   version_type=sunos
13388   sys_lib_dlsearch_path_spec="/usr/lib"
13389   need_lib_prefix=no
13390   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13391   case $host_os in
13392     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393     *)                         need_version=no  ;;
13394   esac
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397   shlibpath_var=LD_LIBRARY_PATH
13398   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13399     case $host_os in
13400       openbsd2.[89] | openbsd2.[89].*)
13401         shlibpath_overrides_runpath=no
13402         ;;
13403       *)
13404         shlibpath_overrides_runpath=yes
13405         ;;
13406       esac
13407   else
13408     shlibpath_overrides_runpath=yes
13409   fi
13410   ;;
13411
13412 os2*)
13413   libname_spec='$name'
13414   shrext_cmds=".dll"
13415   need_lib_prefix=no
13416   library_names_spec='$libname${shared_ext} $libname.a'
13417   dynamic_linker='OS/2 ld.exe'
13418   shlibpath_var=LIBPATH
13419   ;;
13420
13421 osf3* | osf4* | osf5*)
13422   version_type=osf
13423   need_lib_prefix=no
13424   need_version=no
13425   soname_spec='${libname}${release}${shared_ext}$major'
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13430   ;;
13431
13432 rdos*)
13433   dynamic_linker=no
13434   ;;
13435
13436 solaris*)
13437   version_type=linux
13438   need_lib_prefix=no
13439   need_version=no
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441   soname_spec='${libname}${release}${shared_ext}$major'
13442   shlibpath_var=LD_LIBRARY_PATH
13443   shlibpath_overrides_runpath=yes
13444   hardcode_into_libs=yes
13445   # ldd complains unless libraries are executable
13446   postinstall_cmds='chmod +x $lib'
13447   ;;
13448
13449 sunos4*)
13450   version_type=sunos
13451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13452   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13453   shlibpath_var=LD_LIBRARY_PATH
13454   shlibpath_overrides_runpath=yes
13455   if test "$with_gnu_ld" = yes; then
13456     need_lib_prefix=no
13457   fi
13458   need_version=yes
13459   ;;
13460
13461 sysv4 | sysv4.3*)
13462   version_type=linux
13463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464   soname_spec='${libname}${release}${shared_ext}$major'
13465   shlibpath_var=LD_LIBRARY_PATH
13466   case $host_vendor in
13467     sni)
13468       shlibpath_overrides_runpath=no
13469       need_lib_prefix=no
13470       export_dynamic_flag_spec='${wl}-Blargedynsym'
13471       runpath_var=LD_RUN_PATH
13472       ;;
13473     siemens)
13474       need_lib_prefix=no
13475       ;;
13476     motorola)
13477       need_lib_prefix=no
13478       need_version=no
13479       shlibpath_overrides_runpath=no
13480       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13481       ;;
13482   esac
13483   ;;
13484
13485 sysv4*MP*)
13486   if test -d /usr/nec ;then
13487     version_type=linux
13488     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13489     soname_spec='$libname${shared_ext}.$major'
13490     shlibpath_var=LD_LIBRARY_PATH
13491   fi
13492   ;;
13493
13494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13495   version_type=freebsd-elf
13496   need_lib_prefix=no
13497   need_version=no
13498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13499   soname_spec='${libname}${release}${shared_ext}$major'
13500   shlibpath_var=LD_LIBRARY_PATH
13501   hardcode_into_libs=yes
13502   if test "$with_gnu_ld" = yes; then
13503     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13504     shlibpath_overrides_runpath=no
13505   else
13506     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13507     shlibpath_overrides_runpath=yes
13508     case $host_os in
13509       sco3.2v5*)
13510         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13511         ;;
13512     esac
13513   fi
13514   sys_lib_dlsearch_path_spec='/usr/lib'
13515   ;;
13516
13517 uts4*)
13518   version_type=linux
13519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520   soname_spec='${libname}${release}${shared_ext}$major'
13521   shlibpath_var=LD_LIBRARY_PATH
13522   ;;
13523
13524 *)
13525   dynamic_linker=no
13526   ;;
13527 esac
13528 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13529 echo "${ECHO_T}$dynamic_linker" >&6; }
13530 test "$dynamic_linker" = no && can_build_shared=no
13531
13532 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13533 if test "$GCC" = yes; then
13534   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13535 fi
13536
13537 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13539 hardcode_action_CXX=
13540 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13541    test -n "$runpath_var_CXX" || \
13542    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13543
13544   # We can hardcode non-existant directories.
13545   if test "$hardcode_direct_CXX" != no &&
13546      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13547      # have to relink, otherwise we might link with an installed library
13548      # when we should be linking with a yet-to-be-installed one
13549      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13550      test "$hardcode_minus_L_CXX" != no; then
13551     # Linking always hardcodes the temporary library directory.
13552     hardcode_action_CXX=relink
13553   else
13554     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13555     hardcode_action_CXX=immediate
13556   fi
13557 else
13558   # We cannot hardcode anything, or else we can only hardcode existing
13559   # directories.
13560   hardcode_action_CXX=unsupported
13561 fi
13562 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13563 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13564
13565 if test "$hardcode_action_CXX" = relink; then
13566   # Fast installation is not supported
13567   enable_fast_install=no
13568 elif test "$shlibpath_overrides_runpath" = yes ||
13569      test "$enable_shared" = no; then
13570   # Fast installation is not necessary
13571   enable_fast_install=needless
13572 fi
13573
13574
13575 # The else clause should only fire when bootstrapping the
13576 # libtool distribution, otherwise you forgot to ship ltmain.sh
13577 # with your package, and you will get complaints that there are
13578 # no rules to generate ltmain.sh.
13579 if test -f "$ltmain"; then
13580   # See if we are running on zsh, and set the options which allow our commands through
13581   # without removal of \ escapes.
13582   if test -n "${ZSH_VERSION+set}" ; then
13583     setopt NO_GLOB_SUBST
13584   fi
13585   # Now quote all the things that may contain metacharacters while being
13586   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13587   # variables and quote the copies for generation of the libtool script.
13588   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13589     SED SHELL STRIP \
13590     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13591     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13592     deplibs_check_method reload_flag reload_cmds need_locks \
13593     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13594     lt_cv_sys_global_symbol_to_c_name_address \
13595     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13596     old_postinstall_cmds old_postuninstall_cmds \
13597     compiler_CXX \
13598     CC_CXX \
13599     LD_CXX \
13600     lt_prog_compiler_wl_CXX \
13601     lt_prog_compiler_pic_CXX \
13602     lt_prog_compiler_static_CXX \
13603     lt_prog_compiler_no_builtin_flag_CXX \
13604     export_dynamic_flag_spec_CXX \
13605     thread_safe_flag_spec_CXX \
13606     whole_archive_flag_spec_CXX \
13607     enable_shared_with_static_runtimes_CXX \
13608     old_archive_cmds_CXX \
13609     old_archive_from_new_cmds_CXX \
13610     predep_objects_CXX \
13611     postdep_objects_CXX \
13612     predeps_CXX \
13613     postdeps_CXX \
13614     compiler_lib_search_path_CXX \
13615     archive_cmds_CXX \
13616     archive_expsym_cmds_CXX \
13617     postinstall_cmds_CXX \
13618     postuninstall_cmds_CXX \
13619     old_archive_from_expsyms_cmds_CXX \
13620     allow_undefined_flag_CXX \
13621     no_undefined_flag_CXX \
13622     export_symbols_cmds_CXX \
13623     hardcode_libdir_flag_spec_CXX \
13624     hardcode_libdir_flag_spec_ld_CXX \
13625     hardcode_libdir_separator_CXX \
13626     hardcode_automatic_CXX \
13627     module_cmds_CXX \
13628     module_expsym_cmds_CXX \
13629     lt_cv_prog_compiler_c_o_CXX \
13630     fix_srcfile_path_CXX \
13631     exclude_expsyms_CXX \
13632     include_expsyms_CXX; do
13633
13634     case $var in
13635     old_archive_cmds_CXX | \
13636     old_archive_from_new_cmds_CXX | \
13637     archive_cmds_CXX | \
13638     archive_expsym_cmds_CXX | \
13639     module_cmds_CXX | \
13640     module_expsym_cmds_CXX | \
13641     old_archive_from_expsyms_cmds_CXX | \
13642     export_symbols_cmds_CXX | \
13643     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13644     postinstall_cmds | postuninstall_cmds | \
13645     old_postinstall_cmds | old_postuninstall_cmds | \
13646     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13647       # Double-quote double-evaled strings.
13648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13649       ;;
13650     *)
13651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13652       ;;
13653     esac
13654   done
13655
13656   case $lt_echo in
13657   *'\$0 --fallback-echo"')
13658     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13659     ;;
13660   esac
13661
13662 cfgfile="$ofile"
13663
13664   cat <<__EOF__ >> "$cfgfile"
13665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13666
13667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13668
13669 # Shell to use when invoking shell scripts.
13670 SHELL=$lt_SHELL
13671
13672 # Whether or not to build shared libraries.
13673 build_libtool_libs=$enable_shared
13674
13675 # Whether or not to build static libraries.
13676 build_old_libs=$enable_static
13677
13678 # Whether or not to add -lc for building shared libraries.
13679 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13680
13681 # Whether or not to disallow shared libs when runtime libs are static
13682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13683
13684 # Whether or not to optimize for fast installation.
13685 fast_install=$enable_fast_install
13686
13687 # The host system.
13688 host_alias=$host_alias
13689 host=$host
13690 host_os=$host_os
13691
13692 # The build system.
13693 build_alias=$build_alias
13694 build=$build
13695 build_os=$build_os
13696
13697 # An echo program that does not interpret backslashes.
13698 echo=$lt_echo
13699
13700 # The archiver.
13701 AR=$lt_AR
13702 AR_FLAGS=$lt_AR_FLAGS
13703
13704 # A C compiler.
13705 LTCC=$lt_LTCC
13706
13707 # LTCC compiler flags.
13708 LTCFLAGS=$lt_LTCFLAGS
13709
13710 # A language-specific compiler.
13711 CC=$lt_compiler_CXX
13712
13713 # Is the compiler the GNU C compiler?
13714 with_gcc=$GCC_CXX
13715
13716 # An ERE matcher.
13717 EGREP=$lt_EGREP
13718
13719 # The linker used to build libraries.
13720 LD=$lt_LD_CXX
13721
13722 # Whether we need hard or soft links.
13723 LN_S=$lt_LN_S
13724
13725 # A BSD-compatible nm program.
13726 NM=$lt_NM
13727
13728 # A symbol stripping program
13729 STRIP=$lt_STRIP
13730
13731 # Used to examine libraries when file_magic_cmd begins "file"
13732 MAGIC_CMD=$MAGIC_CMD
13733
13734 # Used on cygwin: DLL creation program.
13735 DLLTOOL="$DLLTOOL"
13736
13737 # Used on cygwin: object dumper.
13738 OBJDUMP="$OBJDUMP"
13739
13740 # Used on cygwin: assembler.
13741 AS="$AS"
13742
13743 # The name of the directory that contains temporary libtool files.
13744 objdir=$objdir
13745
13746 # How to create reloadable object files.
13747 reload_flag=$lt_reload_flag
13748 reload_cmds=$lt_reload_cmds
13749
13750 # How to pass a linker flag through the compiler.
13751 wl=$lt_lt_prog_compiler_wl_CXX
13752
13753 # Object file suffix (normally "o").
13754 objext="$ac_objext"
13755
13756 # Old archive suffix (normally "a").
13757 libext="$libext"
13758
13759 # Shared library suffix (normally ".so").
13760 shrext_cmds='$shrext_cmds'
13761
13762 # Executable file suffix (normally "").
13763 exeext="$exeext"
13764
13765 # Additional compiler flags for building library objects.
13766 pic_flag=$lt_lt_prog_compiler_pic_CXX
13767 pic_mode=$pic_mode
13768
13769 # What is the maximum length of a command?
13770 max_cmd_len=$lt_cv_sys_max_cmd_len
13771
13772 # Does compiler simultaneously support -c and -o options?
13773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13774
13775 # Must we lock files when doing compilation?
13776 need_locks=$lt_need_locks
13777
13778 # Do we need the lib prefix for modules?
13779 need_lib_prefix=$need_lib_prefix
13780
13781 # Do we need a version for libraries?
13782 need_version=$need_version
13783
13784 # Whether dlopen is supported.
13785 dlopen_support=$enable_dlopen
13786
13787 # Whether dlopen of programs is supported.
13788 dlopen_self=$enable_dlopen_self
13789
13790 # Whether dlopen of statically linked programs is supported.
13791 dlopen_self_static=$enable_dlopen_self_static
13792
13793 # Compiler flag to prevent dynamic linking.
13794 link_static_flag=$lt_lt_prog_compiler_static_CXX
13795
13796 # Compiler flag to turn off builtin functions.
13797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13798
13799 # Compiler flag to allow reflexive dlopens.
13800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13801
13802 # Compiler flag to generate shared objects directly from archives.
13803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13804
13805 # Compiler flag to generate thread-safe objects.
13806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13807
13808 # Library versioning type.
13809 version_type=$version_type
13810
13811 # Format of library name prefix.
13812 libname_spec=$lt_libname_spec
13813
13814 # List of archive names.  First name is the real one, the rest are links.
13815 # The last name is the one that the linker finds with -lNAME.
13816 library_names_spec=$lt_library_names_spec
13817
13818 # The coded name of the library, if different from the real name.
13819 soname_spec=$lt_soname_spec
13820
13821 # Commands used to build and install an old-style archive.
13822 RANLIB=$lt_RANLIB
13823 old_archive_cmds=$lt_old_archive_cmds_CXX
13824 old_postinstall_cmds=$lt_old_postinstall_cmds
13825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13826
13827 # Create an old-style archive from a shared archive.
13828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13829
13830 # Create a temporary old-style archive to link instead of a shared archive.
13831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13832
13833 # Commands used to build and install a shared archive.
13834 archive_cmds=$lt_archive_cmds_CXX
13835 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13836 postinstall_cmds=$lt_postinstall_cmds
13837 postuninstall_cmds=$lt_postuninstall_cmds
13838
13839 # Commands used to build a loadable module (assumed same as above if empty)
13840 module_cmds=$lt_module_cmds_CXX
13841 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13842
13843 # Commands to strip libraries.
13844 old_striplib=$lt_old_striplib
13845 striplib=$lt_striplib
13846
13847 # Dependencies to place before the objects being linked to create a
13848 # shared library.
13849 predep_objects=$lt_predep_objects_CXX
13850
13851 # Dependencies to place after the objects being linked to create a
13852 # shared library.
13853 postdep_objects=$lt_postdep_objects_CXX
13854
13855 # Dependencies to place before the objects being linked to create a
13856 # shared library.
13857 predeps=$lt_predeps_CXX
13858
13859 # Dependencies to place after the objects being linked to create a
13860 # shared library.
13861 postdeps=$lt_postdeps_CXX
13862
13863 # The library search path used internally by the compiler when linking
13864 # a shared library.
13865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13866
13867 # Method to check whether dependent libraries are shared objects.
13868 deplibs_check_method=$lt_deplibs_check_method
13869
13870 # Command to use when deplibs_check_method == file_magic.
13871 file_magic_cmd=$lt_file_magic_cmd
13872
13873 # Flag that allows shared libraries with undefined symbols to be built.
13874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13875
13876 # Flag that forces no undefined symbols.
13877 no_undefined_flag=$lt_no_undefined_flag_CXX
13878
13879 # Commands used to finish a libtool library installation in a directory.
13880 finish_cmds=$lt_finish_cmds
13881
13882 # Same as above, but a single script fragment to be evaled but not shown.
13883 finish_eval=$lt_finish_eval
13884
13885 # Take the output of nm and produce a listing of raw symbols and C names.
13886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13887
13888 # Transform the output of nm in a proper C declaration
13889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13890
13891 # Transform the output of nm in a C name address pair
13892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13893
13894 # This is the shared library runtime path variable.
13895 runpath_var=$runpath_var
13896
13897 # This is the shared library path variable.
13898 shlibpath_var=$shlibpath_var
13899
13900 # Is shlibpath searched before the hard-coded library search path?
13901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13902
13903 # How to hardcode a shared library path into an executable.
13904 hardcode_action=$hardcode_action_CXX
13905
13906 # Whether we should hardcode library paths into libraries.
13907 hardcode_into_libs=$hardcode_into_libs
13908
13909 # Flag to hardcode \$libdir into a binary during linking.
13910 # This must work even if \$libdir does not exist.
13911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13912
13913 # If ld is used when linking, flag to hardcode \$libdir into
13914 # a binary during linking. This must work even if \$libdir does
13915 # not exist.
13916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13917
13918 # Whether we need a single -rpath flag with a separated argument.
13919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13920
13921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13922 # resulting binary.
13923 hardcode_direct=$hardcode_direct_CXX
13924
13925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13926 # resulting binary.
13927 hardcode_minus_L=$hardcode_minus_L_CXX
13928
13929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13930 # the resulting binary.
13931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13932
13933 # Set to yes if building a shared library automatically hardcodes DIR into the library
13934 # and all subsequent libraries and executables linked against it.
13935 hardcode_automatic=$hardcode_automatic_CXX
13936
13937 # Variables whose values should be saved in libtool wrapper scripts and
13938 # restored at relink time.
13939 variables_saved_for_relink="$variables_saved_for_relink"
13940
13941 # Whether libtool must link a program against all its dependency libraries.
13942 link_all_deplibs=$link_all_deplibs_CXX
13943
13944 # Compile-time system search path for libraries
13945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13946
13947 # Run-time system search path for libraries
13948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13949
13950 # Fix the shell variable \$srcfile for the compiler.
13951 fix_srcfile_path=$lt_fix_srcfile_path
13952
13953 # Set to yes if exported symbols are required.
13954 always_export_symbols=$always_export_symbols_CXX
13955
13956 # The commands to list exported symbols.
13957 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13958
13959 # The commands to extract the exported symbol list from a shared archive.
13960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13961
13962 # Symbols that should not be listed in the preloaded symbols.
13963 exclude_expsyms=$lt_exclude_expsyms_CXX
13964
13965 # Symbols that must always be exported.
13966 include_expsyms=$lt_include_expsyms_CXX
13967
13968 # ### END LIBTOOL TAG CONFIG: $tagname
13969
13970 __EOF__
13971
13972
13973 else
13974   # If there is no Makefile yet, we rely on a make rule to execute
13975   # `config.status --recheck' to rerun these tests and create the
13976   # libtool script then.
13977   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13978   if test -f "$ltmain_in"; then
13979     test -f Makefile && make "$ltmain"
13980   fi
13981 fi
13982
13983
13984 ac_ext=c
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990 CC=$lt_save_CC
13991 LDCXX=$LD
13992 LD=$lt_save_LD
13993 GCC=$lt_save_GCC
13994 with_gnu_ldcxx=$with_gnu_ld
13995 with_gnu_ld=$lt_save_with_gnu_ld
13996 lt_cv_path_LDCXX=$lt_cv_path_LD
13997 lt_cv_path_LD=$lt_save_path_LD
13998 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13999 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14000
14001         else
14002           tagname=""
14003         fi
14004         ;;
14005
14006       F77)
14007         if test -n "$F77" && test "X$F77" != "Xno"; then
14008
14009 ac_ext=f
14010 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14011 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14013
14014
14015 archive_cmds_need_lc_F77=no
14016 allow_undefined_flag_F77=
14017 always_export_symbols_F77=no
14018 archive_expsym_cmds_F77=
14019 export_dynamic_flag_spec_F77=
14020 hardcode_direct_F77=no
14021 hardcode_libdir_flag_spec_F77=
14022 hardcode_libdir_flag_spec_ld_F77=
14023 hardcode_libdir_separator_F77=
14024 hardcode_minus_L_F77=no
14025 hardcode_automatic_F77=no
14026 module_cmds_F77=
14027 module_expsym_cmds_F77=
14028 link_all_deplibs_F77=unknown
14029 old_archive_cmds_F77=$old_archive_cmds
14030 no_undefined_flag_F77=
14031 whole_archive_flag_spec_F77=
14032 enable_shared_with_static_runtimes_F77=no
14033
14034 # Source file extension for f77 test sources.
14035 ac_ext=f
14036
14037 # Object file extension for compiled f77 test sources.
14038 objext=o
14039 objext_F77=$objext
14040
14041 # Code to be used in simple compile tests
14042 lt_simple_compile_test_code="\
14043       subroutine t
14044       return
14045       end
14046 "
14047
14048 # Code to be used in simple link tests
14049 lt_simple_link_test_code="\
14050       program t
14051       end
14052 "
14053
14054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14055
14056 # If no C compiler was specified, use CC.
14057 LTCC=${LTCC-"$CC"}
14058
14059 # If no C compiler flags were specified, use CFLAGS.
14060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14061
14062 # Allow CC to be a program name with arguments.
14063 compiler=$CC
14064
14065
14066 # save warnings/boilerplate of simple test code
14067 ac_outfile=conftest.$ac_objext
14068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14070 _lt_compiler_boilerplate=`cat conftest.err`
14071 $rm conftest*
14072
14073 ac_outfile=conftest.$ac_objext
14074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14076 _lt_linker_boilerplate=`cat conftest.err`
14077 $rm conftest*
14078
14079
14080 # Allow CC to be a program name with arguments.
14081 lt_save_CC="$CC"
14082 CC=${F77-"f77"}
14083 compiler=$CC
14084 compiler_F77=$CC
14085 for cc_temp in $compiler""; do
14086   case $cc_temp in
14087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14089     \-*) ;;
14090     *) break;;
14091   esac
14092 done
14093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14094
14095
14096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14099 echo "${ECHO_T}$can_build_shared" >&6; }
14100
14101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14103 test "$can_build_shared" = "no" && enable_shared=no
14104
14105 # On AIX, shared libraries and static libraries use the same namespace, and
14106 # are all built from PIC.
14107 case $host_os in
14108 aix3*)
14109   test "$enable_shared" = yes && enable_static=no
14110   if test -n "$RANLIB"; then
14111     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14112     postinstall_cmds='$RANLIB $lib'
14113   fi
14114   ;;
14115 aix4* | aix5*)
14116   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14117     test "$enable_shared" = yes && enable_static=no
14118   fi
14119   ;;
14120 esac
14121 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14122 echo "${ECHO_T}$enable_shared" >&6; }
14123
14124 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14125 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14126 # Make sure either enable_shared or enable_static is yes.
14127 test "$enable_shared" = yes || enable_static=yes
14128 { echo "$as_me:$LINENO: result: $enable_static" >&5
14129 echo "${ECHO_T}$enable_static" >&6; }
14130
14131 GCC_F77="$G77"
14132 LD_F77="$LD"
14133
14134 lt_prog_compiler_wl_F77=
14135 lt_prog_compiler_pic_F77=
14136 lt_prog_compiler_static_F77=
14137
14138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14140
14141   if test "$GCC" = yes; then
14142     lt_prog_compiler_wl_F77='-Wl,'
14143     lt_prog_compiler_static_F77='-static'
14144
14145     case $host_os in
14146       aix*)
14147       # All AIX code is PIC.
14148       if test "$host_cpu" = ia64; then
14149         # AIX 5 now supports IA64 processor
14150         lt_prog_compiler_static_F77='-Bstatic'
14151       fi
14152       ;;
14153
14154     amigaos*)
14155       # FIXME: we need at least 68020 code to build shared libraries, but
14156       # adding the `-m68020' flag to GCC prevents building anything better,
14157       # like `-m68040'.
14158       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14159       ;;
14160
14161     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14162       # PIC is the default for these OSes.
14163       ;;
14164
14165     mingw* | cygwin* | pw32* | os2*)
14166       # This hack is so that the source file can tell whether it is being
14167       # built for inclusion in a dll (and should export symbols for example).
14168       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14169       # (--disable-auto-import) libraries
14170       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14171       ;;
14172
14173     darwin* | rhapsody*)
14174       # PIC is the default on this platform
14175       # Common symbols not allowed in MH_DYLIB files
14176       lt_prog_compiler_pic_F77='-fno-common'
14177       ;;
14178
14179     interix[3-9]*)
14180       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14181       # Instead, we relocate shared libraries at runtime.
14182       ;;
14183
14184     msdosdjgpp*)
14185       # Just because we use GCC doesn't mean we suddenly get shared libraries
14186       # on systems that don't support them.
14187       lt_prog_compiler_can_build_shared_F77=no
14188       enable_shared=no
14189       ;;
14190
14191     sysv4*MP*)
14192       if test -d /usr/nec; then
14193         lt_prog_compiler_pic_F77=-Kconform_pic
14194       fi
14195       ;;
14196
14197     hpux*)
14198       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14199       # not for PA HP-UX.
14200       case $host_cpu in
14201       hppa*64*|ia64*)
14202         # +Z the default
14203         ;;
14204       *)
14205         lt_prog_compiler_pic_F77='-fPIC'
14206         ;;
14207       esac
14208       ;;
14209
14210     *)
14211       lt_prog_compiler_pic_F77='-fPIC'
14212       ;;
14213     esac
14214   else
14215     # PORTME Check for flag to pass linker flags through the system compiler.
14216     case $host_os in
14217     aix*)
14218       lt_prog_compiler_wl_F77='-Wl,'
14219       if test "$host_cpu" = ia64; then
14220         # AIX 5 now supports IA64 processor
14221         lt_prog_compiler_static_F77='-Bstatic'
14222       else
14223         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14224       fi
14225       ;;
14226       darwin*)
14227         # PIC is the default on this platform
14228         # Common symbols not allowed in MH_DYLIB files
14229        case $cc_basename in
14230          xlc*)
14231          lt_prog_compiler_pic_F77='-qnocommon'
14232          lt_prog_compiler_wl_F77='-Wl,'
14233          ;;
14234        esac
14235        ;;
14236
14237     mingw* | cygwin* | pw32* | os2*)
14238       # This hack is so that the source file can tell whether it is being
14239       # built for inclusion in a dll (and should export symbols for example).
14240       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14241       ;;
14242
14243     hpux9* | hpux10* | hpux11*)
14244       lt_prog_compiler_wl_F77='-Wl,'
14245       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14246       # not for PA HP-UX.
14247       case $host_cpu in
14248       hppa*64*|ia64*)
14249         # +Z the default
14250         ;;
14251       *)
14252         lt_prog_compiler_pic_F77='+Z'
14253         ;;
14254       esac
14255       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14256       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14257       ;;
14258
14259     irix5* | irix6* | nonstopux*)
14260       lt_prog_compiler_wl_F77='-Wl,'
14261       # PIC (with -KPIC) is the default.
14262       lt_prog_compiler_static_F77='-non_shared'
14263       ;;
14264
14265     newsos6)
14266       lt_prog_compiler_pic_F77='-KPIC'
14267       lt_prog_compiler_static_F77='-Bstatic'
14268       ;;
14269
14270     linux* | k*bsd*-gnu)
14271       case $cc_basename in
14272       icc* | ecc*)
14273         lt_prog_compiler_wl_F77='-Wl,'
14274         lt_prog_compiler_pic_F77='-KPIC'
14275         lt_prog_compiler_static_F77='-static'
14276         ;;
14277       pgcc* | pgf77* | pgf90* | pgf95*)
14278         # Portland Group compilers (*not* the Pentium gcc compiler,
14279         # which looks to be a dead project)
14280         lt_prog_compiler_wl_F77='-Wl,'
14281         lt_prog_compiler_pic_F77='-fpic'
14282         lt_prog_compiler_static_F77='-Bstatic'
14283         ;;
14284       ccc*)
14285         lt_prog_compiler_wl_F77='-Wl,'
14286         # All Alpha code is PIC.
14287         lt_prog_compiler_static_F77='-non_shared'
14288         ;;
14289       *)
14290         case `$CC -V 2>&1 | sed 5q` in
14291         *Sun\ C*)
14292           # Sun C 5.9
14293           lt_prog_compiler_pic_F77='-KPIC'
14294           lt_prog_compiler_static_F77='-Bstatic'
14295           lt_prog_compiler_wl_F77='-Wl,'
14296           ;;
14297         *Sun\ F*)
14298           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14299           lt_prog_compiler_pic_F77='-KPIC'
14300           lt_prog_compiler_static_F77='-Bstatic'
14301           lt_prog_compiler_wl_F77=''
14302           ;;
14303         esac
14304         ;;
14305       esac
14306       ;;
14307
14308     osf3* | osf4* | osf5*)
14309       lt_prog_compiler_wl_F77='-Wl,'
14310       # All OSF/1 code is PIC.
14311       lt_prog_compiler_static_F77='-non_shared'
14312       ;;
14313
14314     rdos*)
14315       lt_prog_compiler_static_F77='-non_shared'
14316       ;;
14317
14318     solaris*)
14319       lt_prog_compiler_pic_F77='-KPIC'
14320       lt_prog_compiler_static_F77='-Bstatic'
14321       case $cc_basename in
14322       f77* | f90* | f95*)
14323         lt_prog_compiler_wl_F77='-Qoption ld ';;
14324       *)
14325         lt_prog_compiler_wl_F77='-Wl,';;
14326       esac
14327       ;;
14328
14329     sunos4*)
14330       lt_prog_compiler_wl_F77='-Qoption ld '
14331       lt_prog_compiler_pic_F77='-PIC'
14332       lt_prog_compiler_static_F77='-Bstatic'
14333       ;;
14334
14335     sysv4 | sysv4.2uw2* | sysv4.3*)
14336       lt_prog_compiler_wl_F77='-Wl,'
14337       lt_prog_compiler_pic_F77='-KPIC'
14338       lt_prog_compiler_static_F77='-Bstatic'
14339       ;;
14340
14341     sysv4*MP*)
14342       if test -d /usr/nec ;then
14343         lt_prog_compiler_pic_F77='-Kconform_pic'
14344         lt_prog_compiler_static_F77='-Bstatic'
14345       fi
14346       ;;
14347
14348     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14349       lt_prog_compiler_wl_F77='-Wl,'
14350       lt_prog_compiler_pic_F77='-KPIC'
14351       lt_prog_compiler_static_F77='-Bstatic'
14352       ;;
14353
14354     unicos*)
14355       lt_prog_compiler_wl_F77='-Wl,'
14356       lt_prog_compiler_can_build_shared_F77=no
14357       ;;
14358
14359     uts4*)
14360       lt_prog_compiler_pic_F77='-pic'
14361       lt_prog_compiler_static_F77='-Bstatic'
14362       ;;
14363
14364     *)
14365       lt_prog_compiler_can_build_shared_F77=no
14366       ;;
14367     esac
14368   fi
14369
14370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14371 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14372
14373 #
14374 # Check to make sure the PIC flag actually works.
14375 #
14376 if test -n "$lt_prog_compiler_pic_F77"; then
14377
14378 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14379 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14380 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   lt_prog_compiler_pic_works_F77=no
14384   ac_outfile=conftest.$ac_objext
14385    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14386    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14387    # Insert the option either (1) after the last *FLAGS variable, or
14388    # (2) before a word containing "conftest.", or (3) at the end.
14389    # Note that $ac_compile itself does not contain backslashes and begins
14390    # with a dollar sign (not a hyphen), so the echo should work correctly.
14391    # The option is referenced via a variable to avoid confusing sed.
14392    lt_compile=`echo "$ac_compile" | $SED \
14393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395    -e 's:$: $lt_compiler_flag:'`
14396    (eval echo "\"\$as_me:14396: $lt_compile\"" >&5)
14397    (eval "$lt_compile" 2>conftest.err)
14398    ac_status=$?
14399    cat conftest.err >&5
14400    echo "$as_me:14400: \$? = $ac_status" >&5
14401    if (exit $ac_status) && test -s "$ac_outfile"; then
14402      # The compiler can only warn and ignore the option if not recognized
14403      # So say no if there are warnings other than the usual output.
14404      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14405      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14406      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14407        lt_prog_compiler_pic_works_F77=yes
14408      fi
14409    fi
14410    $rm conftest*
14411
14412 fi
14413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14414 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14415
14416 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14417     case $lt_prog_compiler_pic_F77 in
14418      "" | " "*) ;;
14419      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14420      esac
14421 else
14422     lt_prog_compiler_pic_F77=
14423      lt_prog_compiler_can_build_shared_F77=no
14424 fi
14425
14426 fi
14427 case $host_os in
14428   # For platforms which do not support PIC, -DPIC is meaningless:
14429   *djgpp*)
14430     lt_prog_compiler_pic_F77=
14431     ;;
14432   *)
14433     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14434     ;;
14435 esac
14436
14437 #
14438 # Check to make sure the static flag actually works.
14439 #
14440 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14441 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14442 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14443 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   lt_prog_compiler_static_works_F77=no
14447    save_LDFLAGS="$LDFLAGS"
14448    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14449    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14450    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14451      # The linker can only warn and ignore the option if not recognized
14452      # So say no if there are warnings
14453      if test -s conftest.err; then
14454        # Append any errors to the config.log.
14455        cat conftest.err 1>&5
14456        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14457        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458        if diff conftest.exp conftest.er2 >/dev/null; then
14459          lt_prog_compiler_static_works_F77=yes
14460        fi
14461      else
14462        lt_prog_compiler_static_works_F77=yes
14463      fi
14464    fi
14465    $rm conftest*
14466    LDFLAGS="$save_LDFLAGS"
14467
14468 fi
14469 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14470 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14471
14472 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14473     :
14474 else
14475     lt_prog_compiler_static_F77=
14476 fi
14477
14478
14479 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14481 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484   lt_cv_prog_compiler_c_o_F77=no
14485    $rm -r conftest 2>/dev/null
14486    mkdir conftest
14487    cd conftest
14488    mkdir out
14489    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490
14491    lt_compiler_flag="-o out/conftest2.$ac_objext"
14492    # Insert the option either (1) after the last *FLAGS variable, or
14493    # (2) before a word containing "conftest.", or (3) at the end.
14494    # Note that $ac_compile itself does not contain backslashes and begins
14495    # with a dollar sign (not a hyphen), so the echo should work correctly.
14496    lt_compile=`echo "$ac_compile" | $SED \
14497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499    -e 's:$: $lt_compiler_flag:'`
14500    (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
14501    (eval "$lt_compile" 2>out/conftest.err)
14502    ac_status=$?
14503    cat out/conftest.err >&5
14504    echo "$as_me:14504: \$? = $ac_status" >&5
14505    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14506    then
14507      # The compiler can only warn and ignore the option if not recognized
14508      # So say no if there are warnings
14509      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14510      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14511      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14512        lt_cv_prog_compiler_c_o_F77=yes
14513      fi
14514    fi
14515    chmod u+w . 2>&5
14516    $rm conftest*
14517    # SGI C++ compiler will create directory out/ii_files/ for
14518    # template instantiation
14519    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14520    $rm out/* && rmdir out
14521    cd ..
14522    rmdir conftest
14523    $rm conftest*
14524
14525 fi
14526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14528
14529
14530 hard_links="nottested"
14531 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14532   # do not overwrite the value of need_locks provided by the user
14533   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14535   hard_links=yes
14536   $rm conftest*
14537   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14538   touch conftest.a
14539   ln conftest.a conftest.b 2>&5 || hard_links=no
14540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14541   { echo "$as_me:$LINENO: result: $hard_links" >&5
14542 echo "${ECHO_T}$hard_links" >&6; }
14543   if test "$hard_links" = no; then
14544     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14546     need_locks=warn
14547   fi
14548 else
14549   need_locks=no
14550 fi
14551
14552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14554
14555   runpath_var=
14556   allow_undefined_flag_F77=
14557   enable_shared_with_static_runtimes_F77=no
14558   archive_cmds_F77=
14559   archive_expsym_cmds_F77=
14560   old_archive_From_new_cmds_F77=
14561   old_archive_from_expsyms_cmds_F77=
14562   export_dynamic_flag_spec_F77=
14563   whole_archive_flag_spec_F77=
14564   thread_safe_flag_spec_F77=
14565   hardcode_libdir_flag_spec_F77=
14566   hardcode_libdir_flag_spec_ld_F77=
14567   hardcode_libdir_separator_F77=
14568   hardcode_direct_F77=no
14569   hardcode_minus_L_F77=no
14570   hardcode_shlibpath_var_F77=unsupported
14571   link_all_deplibs_F77=unknown
14572   hardcode_automatic_F77=no
14573   module_cmds_F77=
14574   module_expsym_cmds_F77=
14575   always_export_symbols_F77=no
14576   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14577   # include_expsyms should be a list of space-separated symbols to be *always*
14578   # included in the symbol list
14579   include_expsyms_F77=
14580   # exclude_expsyms can be an extended regexp of symbols to exclude
14581   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14582   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14583   # as well as any symbol that contains `d'.
14584   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14585   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14586   # platforms (ab)use it in PIC code, but their linkers get confused if
14587   # the symbol is explicitly referenced.  Since portable code cannot
14588   # rely on this symbol name, it's probably fine to never include it in
14589   # preloaded symbol tables.
14590   extract_expsyms_cmds=
14591   # Just being paranoid about ensuring that cc_basename is set.
14592   for cc_temp in $compiler""; do
14593   case $cc_temp in
14594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14596     \-*) ;;
14597     *) break;;
14598   esac
14599 done
14600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14601
14602   case $host_os in
14603   cygwin* | mingw* | pw32*)
14604     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14605     # When not using gcc, we currently assume that we are using
14606     # Microsoft Visual C++.
14607     if test "$GCC" != yes; then
14608       with_gnu_ld=no
14609     fi
14610     ;;
14611   interix*)
14612     # we just hope/assume this is gcc and not c89 (= MSVC++)
14613     with_gnu_ld=yes
14614     ;;
14615   openbsd*)
14616     with_gnu_ld=no
14617     ;;
14618   esac
14619
14620   ld_shlibs_F77=yes
14621   if test "$with_gnu_ld" = yes; then
14622     # If archive_cmds runs LD, not CC, wlarc should be empty
14623     wlarc='${wl}'
14624
14625     # Set some defaults for GNU ld with shared library support. These
14626     # are reset later if shared libraries are not supported. Putting them
14627     # here allows them to be overridden if necessary.
14628     runpath_var=LD_RUN_PATH
14629     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14630     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14631     # ancient GNU ld didn't support --whole-archive et. al.
14632     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14633         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14634       else
14635         whole_archive_flag_spec_F77=
14636     fi
14637     supports_anon_versioning=no
14638     case `$LD -v 2>/dev/null` in
14639       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14640       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14641       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14642       *\ 2.11.*) ;; # other 2.11 versions
14643       *) supports_anon_versioning=yes ;;
14644     esac
14645
14646     # See if GNU ld supports shared libraries.
14647     case $host_os in
14648     aix3* | aix4* | aix5*)
14649       # On AIX/PPC, the GNU linker is very broken
14650       if test "$host_cpu" != ia64; then
14651         ld_shlibs_F77=no
14652         cat <<EOF 1>&2
14653
14654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14655 *** to be unable to reliably create shared libraries on AIX.
14656 *** Therefore, libtool is disabling shared libraries support.  If you
14657 *** really care for shared libraries, you may want to modify your PATH
14658 *** so that a non-GNU linker is found, and then restart.
14659
14660 EOF
14661       fi
14662       ;;
14663
14664     amigaos*)
14665       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)'
14666       hardcode_libdir_flag_spec_F77='-L$libdir'
14667       hardcode_minus_L_F77=yes
14668
14669       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14670       # that the semantics of dynamic libraries on AmigaOS, at least up
14671       # to version 4, is to share data among multiple programs linked
14672       # with the same dynamic library.  Since this doesn't match the
14673       # behavior of shared libraries on other platforms, we can't use
14674       # them.
14675       ld_shlibs_F77=no
14676       ;;
14677
14678     beos*)
14679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14680         allow_undefined_flag_F77=unsupported
14681         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14682         # support --undefined.  This deserves some investigation.  FIXME
14683         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14684       else
14685         ld_shlibs_F77=no
14686       fi
14687       ;;
14688
14689     cygwin* | mingw* | pw32*)
14690       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14691       # as there is no search path for DLLs.
14692       hardcode_libdir_flag_spec_F77='-L$libdir'
14693       allow_undefined_flag_F77=unsupported
14694       always_export_symbols_F77=no
14695       enable_shared_with_static_runtimes_F77=yes
14696       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14697
14698       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14699         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14700         # If the export-symbols file already is a .def file (1st line
14701         # is EXPORTS), use it as is; otherwise, prepend...
14702         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14703           cp $export_symbols $output_objdir/$soname.def;
14704         else
14705           echo EXPORTS > $output_objdir/$soname.def;
14706           cat $export_symbols >> $output_objdir/$soname.def;
14707         fi~
14708         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709       else
14710         ld_shlibs_F77=no
14711       fi
14712       ;;
14713
14714     interix[3-9]*)
14715       hardcode_direct_F77=no
14716       hardcode_shlibpath_var_F77=no
14717       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14718       export_dynamic_flag_spec_F77='${wl}-E'
14719       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14720       # Instead, shared libraries are loaded at an image base (0x10000000 by
14721       # default) and relocated if they conflict, which is a slow very memory
14722       # consuming and fragmenting process.  To avoid this, we pick a random,
14723       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14724       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14725       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'
14726       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'
14727       ;;
14728
14729     gnu* | linux* | k*bsd*-gnu)
14730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14731         tmp_addflag=
14732         case $cc_basename,$host_cpu in
14733         pgcc*)                          # Portland Group C compiler
14734           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'
14735           tmp_addflag=' $pic_flag'
14736           ;;
14737         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14738           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'
14739           tmp_addflag=' $pic_flag -Mnomain' ;;
14740         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14741           tmp_addflag=' -i_dynamic' ;;
14742         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14743           tmp_addflag=' -i_dynamic -nofor_main' ;;
14744         ifc* | ifort*)                  # Intel Fortran compiler
14745           tmp_addflag=' -nofor_main' ;;
14746         esac
14747         case `$CC -V 2>&1 | sed 5q` in
14748         *Sun\ C*)                       # Sun C 5.9
14749           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14750           tmp_sharedflag='-G' ;;
14751         *Sun\ F*)                       # Sun Fortran 8.3
14752           tmp_sharedflag='-G' ;;
14753         *)
14754           tmp_sharedflag='-shared' ;;
14755         esac
14756         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14757
14758         if test $supports_anon_versioning = yes; then
14759           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14760   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761   $echo "local: *; };" >> $output_objdir/$libname.ver~
14762           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14763         fi
14764       else
14765         ld_shlibs_F77=no
14766       fi
14767       ;;
14768
14769     netbsd*)
14770       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14772         wlarc=
14773       else
14774         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776       fi
14777       ;;
14778
14779     solaris*)
14780       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781         ld_shlibs_F77=no
14782         cat <<EOF 1>&2
14783
14784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785 *** create shared libraries on Solaris systems.  Therefore, libtool
14786 *** is disabling shared libraries support.  We urge you to upgrade GNU
14787 *** binutils to release 2.9.1 or newer.  Another option is to modify
14788 *** your PATH or compiler configuration so that the native linker is
14789 *** used, and then restart.
14790
14791 EOF
14792       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14795       else
14796         ld_shlibs_F77=no
14797       fi
14798       ;;
14799
14800     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14801       case `$LD -v 2>&1` in
14802         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14803         ld_shlibs_F77=no
14804         cat <<_LT_EOF 1>&2
14805
14806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14807 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14808 *** is disabling shared libraries support.  We urge you to upgrade GNU
14809 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14810 *** your PATH or compiler configuration so that the native linker is
14811 *** used, and then restart.
14812
14813 _LT_EOF
14814         ;;
14815         *)
14816           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14818             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14819             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14820           else
14821             ld_shlibs_F77=no
14822           fi
14823         ;;
14824       esac
14825       ;;
14826
14827     sunos4*)
14828       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14829       wlarc=
14830       hardcode_direct_F77=yes
14831       hardcode_shlibpath_var_F77=no
14832       ;;
14833
14834     *)
14835       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14838       else
14839         ld_shlibs_F77=no
14840       fi
14841       ;;
14842     esac
14843
14844     if test "$ld_shlibs_F77" = no; then
14845       runpath_var=
14846       hardcode_libdir_flag_spec_F77=
14847       export_dynamic_flag_spec_F77=
14848       whole_archive_flag_spec_F77=
14849     fi
14850   else
14851     # PORTME fill in a description of your system's linker (not GNU ld)
14852     case $host_os in
14853     aix3*)
14854       allow_undefined_flag_F77=unsupported
14855       always_export_symbols_F77=yes
14856       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'
14857       # Note: this linker hardcodes the directories in LIBPATH if there
14858       # are no directories specified by -L.
14859       hardcode_minus_L_F77=yes
14860       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14861         # Neither direct hardcoding nor static linking is supported with a
14862         # broken collect2.
14863         hardcode_direct_F77=unsupported
14864       fi
14865       ;;
14866
14867     aix4* | aix5*)
14868       if test "$host_cpu" = ia64; then
14869         # On IA64, the linker does run time linking by default, so we don't
14870         # have to do anything special.
14871         aix_use_runtimelinking=no
14872         exp_sym_flag='-Bexport'
14873         no_entry_flag=""
14874       else
14875         # If we're using GNU nm, then we don't want the "-C" option.
14876         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14877         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14878           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'
14879         else
14880           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'
14881         fi
14882         aix_use_runtimelinking=no
14883
14884         # Test if we are trying to use run time linking or normal
14885         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14886         # need to do runtime linking.
14887         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14888           for ld_flag in $LDFLAGS; do
14889           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14890             aix_use_runtimelinking=yes
14891             break
14892           fi
14893           done
14894           ;;
14895         esac
14896
14897         exp_sym_flag='-bexport'
14898         no_entry_flag='-bnoentry'
14899       fi
14900
14901       # When large executables or shared objects are built, AIX ld can
14902       # have problems creating the table of contents.  If linking a library
14903       # or program results in "error TOC overflow" add -mminimal-toc to
14904       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14905       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14906
14907       archive_cmds_F77=''
14908       hardcode_direct_F77=yes
14909       hardcode_libdir_separator_F77=':'
14910       link_all_deplibs_F77=yes
14911
14912       if test "$GCC" = yes; then
14913         case $host_os in aix4.[012]|aix4.[012].*)
14914         # We only want to do this on AIX 4.2 and lower, the check
14915         # below for broken collect2 doesn't work under 4.3+
14916           collect2name=`${CC} -print-prog-name=collect2`
14917           if test -f "$collect2name" && \
14918            strings "$collect2name" | grep resolve_lib_name >/dev/null
14919           then
14920           # We have reworked collect2
14921           :
14922           else
14923           # We have old collect2
14924           hardcode_direct_F77=unsupported
14925           # It fails to find uninstalled libraries when the uninstalled
14926           # path is not listed in the libpath.  Setting hardcode_minus_L
14927           # to unsupported forces relinking
14928           hardcode_minus_L_F77=yes
14929           hardcode_libdir_flag_spec_F77='-L$libdir'
14930           hardcode_libdir_separator_F77=
14931           fi
14932           ;;
14933         esac
14934         shared_flag='-shared'
14935         if test "$aix_use_runtimelinking" = yes; then
14936           shared_flag="$shared_flag "'${wl}-G'
14937         fi
14938       else
14939         # not using gcc
14940         if test "$host_cpu" = ia64; then
14941         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942         # chokes on -Wl,-G. The following line is correct:
14943           shared_flag='-G'
14944         else
14945           if test "$aix_use_runtimelinking" = yes; then
14946             shared_flag='${wl}-G'
14947           else
14948             shared_flag='${wl}-bM:SRE'
14949           fi
14950         fi
14951       fi
14952
14953       # It seems that -bexpall does not export symbols beginning with
14954       # underscore (_), so it is better to generate a list of symbols to export.
14955       always_export_symbols_F77=yes
14956       if test "$aix_use_runtimelinking" = yes; then
14957         # Warning - without using the other runtime loading flags (-brtl),
14958         # -berok will link without error, but may produce a broken library.
14959         allow_undefined_flag_F77='-berok'
14960        # Determine the default libpath from the value encoded in an empty executable.
14961        cat >conftest.$ac_ext <<_ACEOF
14962       program main
14963
14964       end
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_link") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } && {
14980          test -z "$ac_f77_werror_flag" ||
14981          test ! -s conftest.err
14982        } && test -s conftest$ac_exeext &&
14983        $as_test_x conftest$ac_exeext; then
14984
14985 lt_aix_libpath_sed='
14986     /Import File Strings/,/^$/ {
14987         /^0/ {
14988             s/^0  *\(.*\)$/\1/
14989             p
14990         }
14991     }'
14992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14993 # Check for a 64-bit object if we didn't find anything.
14994 if test -z "$aix_libpath"; then
14995   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14996 fi
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001
15002 fi
15003
15004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15005       conftest$ac_exeext conftest.$ac_ext
15006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15007
15008        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15009         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"
15010        else
15011         if test "$host_cpu" = ia64; then
15012           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15013           allow_undefined_flag_F77="-z nodefs"
15014           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"
15015         else
15016          # Determine the default libpath from the value encoded in an empty executable.
15017          cat >conftest.$ac_ext <<_ACEOF
15018       program main
15019
15020       end
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029   (eval "$ac_link") 2>conftest.er1
15030   ac_status=$?
15031   grep -v '^ *+' conftest.er1 >conftest.err
15032   rm -f conftest.er1
15033   cat conftest.err >&5
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } && {
15036          test -z "$ac_f77_werror_flag" ||
15037          test ! -s conftest.err
15038        } && test -s conftest$ac_exeext &&
15039        $as_test_x conftest$ac_exeext; then
15040
15041 lt_aix_libpath_sed='
15042     /Import File Strings/,/^$/ {
15043         /^0/ {
15044             s/^0  *\(.*\)$/\1/
15045             p
15046         }
15047     }'
15048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 # Check for a 64-bit object if we didn't find anything.
15050 if test -z "$aix_libpath"; then
15051   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15052 fi
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057
15058 fi
15059
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061       conftest$ac_exeext conftest.$ac_ext
15062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15063
15064          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15065           # Warning - without using the other run time loading flags,
15066           # -berok will link without error, but may produce a broken library.
15067           no_undefined_flag_F77=' ${wl}-bernotok'
15068           allow_undefined_flag_F77=' ${wl}-berok'
15069           # Exported symbols can be pulled into shared objects from archives
15070           whole_archive_flag_spec_F77='$convenience'
15071           archive_cmds_need_lc_F77=yes
15072           # This is similar to how AIX traditionally builds its shared libraries.
15073           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'
15074         fi
15075       fi
15076       ;;
15077
15078     amigaos*)
15079       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)'
15080       hardcode_libdir_flag_spec_F77='-L$libdir'
15081       hardcode_minus_L_F77=yes
15082       # see comment about different semantics on the GNU ld section
15083       ld_shlibs_F77=no
15084       ;;
15085
15086     bsdi[45]*)
15087       export_dynamic_flag_spec_F77=-rdynamic
15088       ;;
15089
15090     cygwin* | mingw* | pw32*)
15091       # When not using gcc, we currently assume that we are using
15092       # Microsoft Visual C++.
15093       # hardcode_libdir_flag_spec is actually meaningless, as there is
15094       # no search path for DLLs.
15095       hardcode_libdir_flag_spec_F77=' '
15096       allow_undefined_flag_F77=unsupported
15097       # Tell ltmain to make .lib files, not .a files.
15098       libext=lib
15099       # Tell ltmain to make .dll files, not .so files.
15100       shrext_cmds=".dll"
15101       # FIXME: Setting linknames here is a bad hack.
15102       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15103       # The linker will automatically build a .lib file if we build a DLL.
15104       old_archive_From_new_cmds_F77='true'
15105       # FIXME: Should let the user specify the lib program.
15106       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15107       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15108       enable_shared_with_static_runtimes_F77=yes
15109       ;;
15110
15111     darwin* | rhapsody*)
15112       case $host_os in
15113         rhapsody* | darwin1.[012])
15114          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15115          ;;
15116        *) # Darwin 1.3 on
15117          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15118            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15119          else
15120            case ${MACOSX_DEPLOYMENT_TARGET} in
15121              10.[012])
15122                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15123                ;;
15124              10.*)
15125                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15126                ;;
15127            esac
15128          fi
15129          ;;
15130       esac
15131       archive_cmds_need_lc_F77=no
15132       hardcode_direct_F77=no
15133       hardcode_automatic_F77=yes
15134       hardcode_shlibpath_var_F77=unsupported
15135       whole_archive_flag_spec_F77=''
15136       link_all_deplibs_F77=yes
15137     if test "$GCC" = yes ; then
15138         output_verbose_link_cmd='echo'
15139         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15140       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15141       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15142       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}'
15143       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}'
15144     else
15145       case $cc_basename in
15146         xlc*)
15147          output_verbose_link_cmd='echo'
15148          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15149          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15150           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15151          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15152           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}'
15153           ;;
15154        *)
15155          ld_shlibs_F77=no
15156           ;;
15157       esac
15158     fi
15159       ;;
15160
15161     dgux*)
15162       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163       hardcode_libdir_flag_spec_F77='-L$libdir'
15164       hardcode_shlibpath_var_F77=no
15165       ;;
15166
15167     freebsd1*)
15168       ld_shlibs_F77=no
15169       ;;
15170
15171     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15172     # support.  Future versions do this automatically, but an explicit c++rt0.o
15173     # does not break anything, and helps significantly (at the cost of a little
15174     # extra space).
15175     freebsd2.2*)
15176       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15177       hardcode_libdir_flag_spec_F77='-R$libdir'
15178       hardcode_direct_F77=yes
15179       hardcode_shlibpath_var_F77=no
15180       ;;
15181
15182     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15183     freebsd2*)
15184       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185       hardcode_direct_F77=yes
15186       hardcode_minus_L_F77=yes
15187       hardcode_shlibpath_var_F77=no
15188       ;;
15189
15190     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15191     freebsd* | dragonfly*)
15192       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15193       hardcode_libdir_flag_spec_F77='-R$libdir'
15194       hardcode_direct_F77=yes
15195       hardcode_shlibpath_var_F77=no
15196       ;;
15197
15198     hpux9*)
15199       if test "$GCC" = yes; then
15200         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'
15201       else
15202         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'
15203       fi
15204       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15205       hardcode_libdir_separator_F77=:
15206       hardcode_direct_F77=yes
15207
15208       # hardcode_minus_L: Not really in the search PATH,
15209       # but as the default location of the library.
15210       hardcode_minus_L_F77=yes
15211       export_dynamic_flag_spec_F77='${wl}-E'
15212       ;;
15213
15214     hpux10*)
15215       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15216         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15217       else
15218         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15219       fi
15220       if test "$with_gnu_ld" = no; then
15221         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15222         hardcode_libdir_separator_F77=:
15223
15224         hardcode_direct_F77=yes
15225         export_dynamic_flag_spec_F77='${wl}-E'
15226
15227         # hardcode_minus_L: Not really in the search PATH,
15228         # but as the default location of the library.
15229         hardcode_minus_L_F77=yes
15230       fi
15231       ;;
15232
15233     hpux11*)
15234       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15235         case $host_cpu in
15236         hppa*64*)
15237           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15238           ;;
15239         ia64*)
15240           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15241           ;;
15242         *)
15243           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15244           ;;
15245         esac
15246       else
15247         case $host_cpu in
15248         hppa*64*)
15249           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250           ;;
15251         ia64*)
15252           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15253           ;;
15254         *)
15255           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15256           ;;
15257         esac
15258       fi
15259       if test "$with_gnu_ld" = no; then
15260         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15261         hardcode_libdir_separator_F77=:
15262
15263         case $host_cpu in
15264         hppa*64*|ia64*)
15265           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15266           hardcode_direct_F77=no
15267           hardcode_shlibpath_var_F77=no
15268           ;;
15269         *)
15270           hardcode_direct_F77=yes
15271           export_dynamic_flag_spec_F77='${wl}-E'
15272
15273           # hardcode_minus_L: Not really in the search PATH,
15274           # but as the default location of the library.
15275           hardcode_minus_L_F77=yes
15276           ;;
15277         esac
15278       fi
15279       ;;
15280
15281     irix5* | irix6* | nonstopux*)
15282       if test "$GCC" = yes; then
15283         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'
15284       else
15285         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'
15286         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15287       fi
15288       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15289       hardcode_libdir_separator_F77=:
15290       link_all_deplibs_F77=yes
15291       ;;
15292
15293     netbsd*)
15294       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15295         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15296       else
15297         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15298       fi
15299       hardcode_libdir_flag_spec_F77='-R$libdir'
15300       hardcode_direct_F77=yes
15301       hardcode_shlibpath_var_F77=no
15302       ;;
15303
15304     newsos6)
15305       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306       hardcode_direct_F77=yes
15307       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15308       hardcode_libdir_separator_F77=:
15309       hardcode_shlibpath_var_F77=no
15310       ;;
15311
15312     openbsd*)
15313       if test -f /usr/libexec/ld.so; then
15314         hardcode_direct_F77=yes
15315         hardcode_shlibpath_var_F77=no
15316         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15317           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15318           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15319           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15320           export_dynamic_flag_spec_F77='${wl}-E'
15321         else
15322           case $host_os in
15323            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15324              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325              hardcode_libdir_flag_spec_F77='-R$libdir'
15326              ;;
15327            *)
15328              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15330              ;;
15331           esac
15332         fi
15333       else
15334         ld_shlibs_F77=no
15335       fi
15336       ;;
15337
15338     os2*)
15339       hardcode_libdir_flag_spec_F77='-L$libdir'
15340       hardcode_minus_L_F77=yes
15341       allow_undefined_flag_F77=unsupported
15342       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'
15343       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15344       ;;
15345
15346     osf3*)
15347       if test "$GCC" = yes; then
15348         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15349         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'
15350       else
15351         allow_undefined_flag_F77=' -expect_unresolved \*'
15352         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'
15353       fi
15354       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15355       hardcode_libdir_separator_F77=:
15356       ;;
15357
15358     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15359       if test "$GCC" = yes; then
15360         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15361         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'
15362         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15363       else
15364         allow_undefined_flag_F77=' -expect_unresolved \*'
15365         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'
15366         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~
15367         $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'
15368
15369         # Both c and cxx compiler support -rpath directly
15370         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15371       fi
15372       hardcode_libdir_separator_F77=:
15373       ;;
15374
15375     solaris*)
15376       no_undefined_flag_F77=' -z text'
15377       if test "$GCC" = yes; then
15378         wlarc='${wl}'
15379         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15381           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15382       else
15383         wlarc=''
15384         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15386         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15387       fi
15388       hardcode_libdir_flag_spec_F77='-R$libdir'
15389       hardcode_shlibpath_var_F77=no
15390       case $host_os in
15391       solaris2.[0-5] | solaris2.[0-5].*) ;;
15392       *)
15393         # The compiler driver will combine and reorder linker options,
15394         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15395         # but is careful enough not to reorder.
15396         # Supported since Solaris 2.6 (maybe 2.5.1?)
15397         if test "$GCC" = yes; then
15398           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15399         else
15400           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15401         fi
15402         ;;
15403       esac
15404       link_all_deplibs_F77=yes
15405       ;;
15406
15407     sunos4*)
15408       if test "x$host_vendor" = xsequent; then
15409         # Use $CC to link under sequent, because it throws in some extra .o
15410         # files that make .init and .fini sections work.
15411         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15412       else
15413         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15414       fi
15415       hardcode_libdir_flag_spec_F77='-L$libdir'
15416       hardcode_direct_F77=yes
15417       hardcode_minus_L_F77=yes
15418       hardcode_shlibpath_var_F77=no
15419       ;;
15420
15421     sysv4)
15422       case $host_vendor in
15423         sni)
15424           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425           hardcode_direct_F77=yes # is this really true???
15426         ;;
15427         siemens)
15428           ## LD is ld it makes a PLAMLIB
15429           ## CC just makes a GrossModule.
15430           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15431           reload_cmds_F77='$CC -r -o $output$reload_objs'
15432           hardcode_direct_F77=no
15433         ;;
15434         motorola)
15435           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15437         ;;
15438       esac
15439       runpath_var='LD_RUN_PATH'
15440       hardcode_shlibpath_var_F77=no
15441       ;;
15442
15443     sysv4.3*)
15444       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445       hardcode_shlibpath_var_F77=no
15446       export_dynamic_flag_spec_F77='-Bexport'
15447       ;;
15448
15449     sysv4*MP*)
15450       if test -d /usr/nec; then
15451         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452         hardcode_shlibpath_var_F77=no
15453         runpath_var=LD_RUN_PATH
15454         hardcode_runpath_var=yes
15455         ld_shlibs_F77=yes
15456       fi
15457       ;;
15458
15459     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15460       no_undefined_flag_F77='${wl}-z,text'
15461       archive_cmds_need_lc_F77=no
15462       hardcode_shlibpath_var_F77=no
15463       runpath_var='LD_RUN_PATH'
15464
15465       if test "$GCC" = yes; then
15466         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15468       else
15469         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471       fi
15472       ;;
15473
15474     sysv5* | sco3.2v5* | sco5v6*)
15475       # Note: We can NOT use -z defs as we might desire, because we do not
15476       # link with -lc, and that would cause any symbols used from libc to
15477       # always be unresolved, which means just about no library would
15478       # ever link correctly.  If we're not using GNU ld we use -z text
15479       # though, which does catch some bad symbols but isn't as heavy-handed
15480       # as -z defs.
15481       no_undefined_flag_F77='${wl}-z,text'
15482       allow_undefined_flag_F77='${wl}-z,nodefs'
15483       archive_cmds_need_lc_F77=no
15484       hardcode_shlibpath_var_F77=no
15485       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15486       hardcode_libdir_separator_F77=':'
15487       link_all_deplibs_F77=yes
15488       export_dynamic_flag_spec_F77='${wl}-Bexport'
15489       runpath_var='LD_RUN_PATH'
15490
15491       if test "$GCC" = yes; then
15492         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494       else
15495         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497       fi
15498       ;;
15499
15500     uts4*)
15501       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502       hardcode_libdir_flag_spec_F77='-L$libdir'
15503       hardcode_shlibpath_var_F77=no
15504       ;;
15505
15506     *)
15507       ld_shlibs_F77=no
15508       ;;
15509     esac
15510   fi
15511
15512 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15513 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15514 test "$ld_shlibs_F77" = no && can_build_shared=no
15515
15516 #
15517 # Do we need to explicitly link libc?
15518 #
15519 case "x$archive_cmds_need_lc_F77" in
15520 x|xyes)
15521   # Assume -lc should be added
15522   archive_cmds_need_lc_F77=yes
15523
15524   if test "$enable_shared" = yes && test "$GCC" = yes; then
15525     case $archive_cmds_F77 in
15526     *'~'*)
15527       # FIXME: we may have to deal with multi-command sequences.
15528       ;;
15529     '$CC '*)
15530       # Test whether the compiler implicitly links with -lc since on some
15531       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15532       # to ld, don't add -lc before -lgcc.
15533       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15534 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15535       $rm conftest*
15536       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15537
15538       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539   (eval $ac_compile) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); } 2>conftest.err; then
15543         soname=conftest
15544         lib=conftest
15545         libobjs=conftest.$ac_objext
15546         deplibs=
15547         wl=$lt_prog_compiler_wl_F77
15548         pic_flag=$lt_prog_compiler_pic_F77
15549         compiler_flags=-v
15550         linker_flags=-v
15551         verstring=
15552         output_objdir=.
15553         libname=conftest
15554         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15555         allow_undefined_flag_F77=
15556         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15557   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }
15561         then
15562           archive_cmds_need_lc_F77=no
15563         else
15564           archive_cmds_need_lc_F77=yes
15565         fi
15566         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15567       else
15568         cat conftest.err 1>&5
15569       fi
15570       $rm conftest*
15571       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15572 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15573       ;;
15574     esac
15575   fi
15576   ;;
15577 esac
15578
15579 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15580 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15581 library_names_spec=
15582 libname_spec='lib$name'
15583 soname_spec=
15584 shrext_cmds=".so"
15585 postinstall_cmds=
15586 postuninstall_cmds=
15587 finish_cmds=
15588 finish_eval=
15589 shlibpath_var=
15590 shlibpath_overrides_runpath=unknown
15591 version_type=none
15592 dynamic_linker="$host_os ld.so"
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15594
15595 need_lib_prefix=unknown
15596 hardcode_into_libs=no
15597
15598 # when you set need_version to no, make sure it does not cause -set_version
15599 # flags to be left without arguments
15600 need_version=unknown
15601
15602 case $host_os in
15603 aix3*)
15604   version_type=linux
15605   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15606   shlibpath_var=LIBPATH
15607
15608   # AIX 3 has no versioning support, so we append a major version to the name.
15609   soname_spec='${libname}${release}${shared_ext}$major'
15610   ;;
15611
15612 aix4* | aix5*)
15613   version_type=linux
15614   need_lib_prefix=no
15615   need_version=no
15616   hardcode_into_libs=yes
15617   if test "$host_cpu" = ia64; then
15618     # AIX 5 supports IA64
15619     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15620     shlibpath_var=LD_LIBRARY_PATH
15621   else
15622     # With GCC up to 2.95.x, collect2 would create an import file
15623     # for dependence libraries.  The import file would start with
15624     # the line `#! .'.  This would cause the generated library to
15625     # depend on `.', always an invalid library.  This was fixed in
15626     # development snapshots of GCC prior to 3.0.
15627     case $host_os in
15628       aix4 | aix4.[01] | aix4.[01].*)
15629       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15630            echo ' yes '
15631            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15632         :
15633       else
15634         can_build_shared=no
15635       fi
15636       ;;
15637     esac
15638     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15639     # soname into executable. Probably we can add versioning support to
15640     # collect2, so additional links can be useful in future.
15641     if test "$aix_use_runtimelinking" = yes; then
15642       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15643       # instead of lib<name>.a to let people know that these are not
15644       # typical AIX shared libraries.
15645       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646     else
15647       # We preserve .a as extension for shared libraries through AIX4.2
15648       # and later when we are not doing run time linking.
15649       library_names_spec='${libname}${release}.a $libname.a'
15650       soname_spec='${libname}${release}${shared_ext}$major'
15651     fi
15652     shlibpath_var=LIBPATH
15653   fi
15654   ;;
15655
15656 amigaos*)
15657   library_names_spec='$libname.ixlibrary $libname.a'
15658   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15659   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'
15660   ;;
15661
15662 beos*)
15663   library_names_spec='${libname}${shared_ext}'
15664   dynamic_linker="$host_os ld.so"
15665   shlibpath_var=LIBRARY_PATH
15666   ;;
15667
15668 bsdi[45]*)
15669   version_type=linux
15670   need_version=no
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672   soname_spec='${libname}${release}${shared_ext}$major'
15673   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15674   shlibpath_var=LD_LIBRARY_PATH
15675   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15676   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15677   # the default ld.so.conf also contains /usr/contrib/lib and
15678   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15679   # libtool to hard-code these into programs
15680   ;;
15681
15682 cygwin* | mingw* | pw32*)
15683   version_type=windows
15684   shrext_cmds=".dll"
15685   need_version=no
15686   need_lib_prefix=no
15687
15688   case $GCC,$host_os in
15689   yes,cygwin* | yes,mingw* | yes,pw32*)
15690     library_names_spec='$libname.dll.a'
15691     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692     postinstall_cmds='base_file=`basename \${file}`~
15693       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15694       dldir=$destdir/`dirname \$dlpath`~
15695       test -d \$dldir || mkdir -p \$dldir~
15696       $install_prog $dir/$dlname \$dldir/$dlname~
15697       chmod a+x \$dldir/$dlname'
15698     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699       dlpath=$dir/\$dldll~
15700        $rm \$dlpath'
15701     shlibpath_overrides_runpath=yes
15702
15703     case $host_os in
15704     cygwin*)
15705       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15708       ;;
15709     mingw*)
15710       # MinGW DLLs use traditional 'lib' prefix
15711       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15713       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15714         # It is most probably a Windows format PATH printed by
15715         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15716         # path with ; separators, and with drive letters. We can handle the
15717         # drive letters (cygwin fileutils understands them), so leave them,
15718         # especially as we might pass files found there to a mingw objdump,
15719         # which wouldn't understand a cygwinified path. Ahh.
15720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15721       else
15722         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15723       fi
15724       ;;
15725     pw32*)
15726       # pw32 DLLs use 'pw' prefix rather than 'lib'
15727       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728       ;;
15729     esac
15730     ;;
15731
15732   *)
15733     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15734     ;;
15735   esac
15736   dynamic_linker='Win32 ld.exe'
15737   # FIXME: first we should search . and the directory the executable is in
15738   shlibpath_var=PATH
15739   ;;
15740
15741 darwin* | rhapsody*)
15742   dynamic_linker="$host_os dyld"
15743   version_type=darwin
15744   need_lib_prefix=no
15745   need_version=no
15746   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15747   soname_spec='${libname}${release}${major}$shared_ext'
15748   shlibpath_overrides_runpath=yes
15749   shlibpath_var=DYLD_LIBRARY_PATH
15750   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15751
15752   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15753   ;;
15754
15755 dgux*)
15756   version_type=linux
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   ;;
15763
15764 freebsd1*)
15765   dynamic_linker=no
15766   ;;
15767
15768 freebsd* | dragonfly*)
15769   # DragonFly does not have aout.  When/if they implement a new
15770   # versioning mechanism, adjust this.
15771   if test -x /usr/bin/objformat; then
15772     objformat=`/usr/bin/objformat`
15773   else
15774     case $host_os in
15775     freebsd[123]*) objformat=aout ;;
15776     *) objformat=elf ;;
15777     esac
15778   fi
15779   # Handle Gentoo/FreeBSD as it was Linux
15780   case $host_vendor in
15781     gentoo)
15782       version_type=linux ;;
15783     *)
15784       version_type=freebsd-$objformat ;;
15785   esac
15786
15787   case $version_type in
15788     freebsd-elf*)
15789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15790       need_version=no
15791       need_lib_prefix=no
15792       ;;
15793     freebsd-*)
15794       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15795       need_version=yes
15796       ;;
15797     linux)
15798       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15799       soname_spec='${libname}${release}${shared_ext}$major'
15800       need_lib_prefix=no
15801       need_version=no
15802       ;;
15803   esac
15804   shlibpath_var=LD_LIBRARY_PATH
15805   case $host_os in
15806   freebsd2*)
15807     shlibpath_overrides_runpath=yes
15808     ;;
15809   freebsd3.[01]* | freebsdelf3.[01]*)
15810     shlibpath_overrides_runpath=yes
15811     hardcode_into_libs=yes
15812     ;;
15813   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15814   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15815     shlibpath_overrides_runpath=no
15816     hardcode_into_libs=yes
15817     ;;
15818   *) # from 4.6 on, and DragonFly
15819     shlibpath_overrides_runpath=yes
15820     hardcode_into_libs=yes
15821     ;;
15822   esac
15823   ;;
15824
15825 gnu*)
15826   version_type=linux
15827   need_lib_prefix=no
15828   need_version=no
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   hardcode_into_libs=yes
15833   ;;
15834
15835 hpux9* | hpux10* | hpux11*)
15836   # Give a soname corresponding to the major version so that dld.sl refuses to
15837   # link against other versions.
15838   version_type=sunos
15839   need_lib_prefix=no
15840   need_version=no
15841   case $host_cpu in
15842   ia64*)
15843     shrext_cmds='.so'
15844     hardcode_into_libs=yes
15845     dynamic_linker="$host_os dld.so"
15846     shlibpath_var=LD_LIBRARY_PATH
15847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849     soname_spec='${libname}${release}${shared_ext}$major'
15850     if test "X$HPUX_IA64_MODE" = X32; then
15851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15852     else
15853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15854     fi
15855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15856     ;;
15857    hppa*64*)
15858      shrext_cmds='.sl'
15859      hardcode_into_libs=yes
15860      dynamic_linker="$host_os dld.sl"
15861      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15862      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15863      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864      soname_spec='${libname}${release}${shared_ext}$major'
15865      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15866      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15867      ;;
15868    *)
15869     shrext_cmds='.sl'
15870     dynamic_linker="$host_os dld.sl"
15871     shlibpath_var=SHLIB_PATH
15872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874     soname_spec='${libname}${release}${shared_ext}$major'
15875     ;;
15876   esac
15877   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15878   postinstall_cmds='chmod 555 $lib'
15879   ;;
15880
15881 interix[3-9]*)
15882   version_type=linux
15883   need_lib_prefix=no
15884   need_version=no
15885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15886   soname_spec='${libname}${release}${shared_ext}$major'
15887   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15888   shlibpath_var=LD_LIBRARY_PATH
15889   shlibpath_overrides_runpath=no
15890   hardcode_into_libs=yes
15891   ;;
15892
15893 irix5* | irix6* | nonstopux*)
15894   case $host_os in
15895     nonstopux*) version_type=nonstopux ;;
15896     *)
15897         if test "$lt_cv_prog_gnu_ld" = yes; then
15898                 version_type=linux
15899         else
15900                 version_type=irix
15901         fi ;;
15902   esac
15903   need_lib_prefix=no
15904   need_version=no
15905   soname_spec='${libname}${release}${shared_ext}$major'
15906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15907   case $host_os in
15908   irix5* | nonstopux*)
15909     libsuff= shlibsuff=
15910     ;;
15911   *)
15912     case $LD in # libtool.m4 will add one of these switches to LD
15913     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15914       libsuff= shlibsuff= libmagic=32-bit;;
15915     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15916       libsuff=32 shlibsuff=N32 libmagic=N32;;
15917     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15918       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15919     *) libsuff= shlibsuff= libmagic=never-match;;
15920     esac
15921     ;;
15922   esac
15923   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15924   shlibpath_overrides_runpath=no
15925   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15926   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15927   hardcode_into_libs=yes
15928   ;;
15929
15930 # No shared lib support for Linux oldld, aout, or coff.
15931 linux*oldld* | linux*aout* | linux*coff*)
15932   dynamic_linker=no
15933   ;;
15934
15935 # This must be Linux ELF.
15936 linux* | k*bsd*-gnu)
15937   version_type=linux
15938   need_lib_prefix=no
15939   need_version=no
15940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941   soname_spec='${libname}${release}${shared_ext}$major'
15942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15943   shlibpath_var=LD_LIBRARY_PATH
15944   shlibpath_overrides_runpath=no
15945   # This implies no fast_install, which is unacceptable.
15946   # Some rework will be needed to allow for fast_install
15947   # before this can be enabled.
15948   hardcode_into_libs=yes
15949
15950   # Append ld.so.conf contents to the search path
15951   if test -f /etc/ld.so.conf; then
15952     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15953     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15954   fi
15955
15956   # We used to test for /lib/ld.so.1 and disable shared libraries on
15957   # powerpc, because MkLinux only supported shared libraries with the
15958   # GNU dynamic linker.  Since this was broken with cross compilers,
15959   # most powerpc-linux boxes support dynamic linking these days and
15960   # people can always --disable-shared, the test was removed, and we
15961   # assume the GNU/Linux dynamic linker is in use.
15962   dynamic_linker='GNU/Linux ld.so'
15963   ;;
15964
15965 netbsd*)
15966   version_type=sunos
15967   need_lib_prefix=no
15968   need_version=no
15969   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15972     dynamic_linker='NetBSD (a.out) ld.so'
15973   else
15974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975     soname_spec='${libname}${release}${shared_ext}$major'
15976     dynamic_linker='NetBSD ld.elf_so'
15977   fi
15978   shlibpath_var=LD_LIBRARY_PATH
15979   shlibpath_overrides_runpath=yes
15980   hardcode_into_libs=yes
15981   ;;
15982
15983 newsos6)
15984   version_type=linux
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986   shlibpath_var=LD_LIBRARY_PATH
15987   shlibpath_overrides_runpath=yes
15988   ;;
15989
15990 nto-qnx*)
15991   version_type=linux
15992   need_lib_prefix=no
15993   need_version=no
15994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995   soname_spec='${libname}${release}${shared_ext}$major'
15996   shlibpath_var=LD_LIBRARY_PATH
15997   shlibpath_overrides_runpath=yes
15998   ;;
15999
16000 openbsd*)
16001   version_type=sunos
16002   sys_lib_dlsearch_path_spec="/usr/lib"
16003   need_lib_prefix=no
16004   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16005   case $host_os in
16006     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007     *)                         need_version=no  ;;
16008   esac
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16013     case $host_os in
16014       openbsd2.[89] | openbsd2.[89].*)
16015         shlibpath_overrides_runpath=no
16016         ;;
16017       *)
16018         shlibpath_overrides_runpath=yes
16019         ;;
16020       esac
16021   else
16022     shlibpath_overrides_runpath=yes
16023   fi
16024   ;;
16025
16026 os2*)
16027   libname_spec='$name'
16028   shrext_cmds=".dll"
16029   need_lib_prefix=no
16030   library_names_spec='$libname${shared_ext} $libname.a'
16031   dynamic_linker='OS/2 ld.exe'
16032   shlibpath_var=LIBPATH
16033   ;;
16034
16035 osf3* | osf4* | osf5*)
16036   version_type=osf
16037   need_lib_prefix=no
16038   need_version=no
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16044   ;;
16045
16046 rdos*)
16047   dynamic_linker=no
16048   ;;
16049
16050 solaris*)
16051   version_type=linux
16052   need_lib_prefix=no
16053   need_version=no
16054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055   soname_spec='${libname}${release}${shared_ext}$major'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   shlibpath_overrides_runpath=yes
16058   hardcode_into_libs=yes
16059   # ldd complains unless libraries are executable
16060   postinstall_cmds='chmod +x $lib'
16061   ;;
16062
16063 sunos4*)
16064   version_type=sunos
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   shlibpath_overrides_runpath=yes
16069   if test "$with_gnu_ld" = yes; then
16070     need_lib_prefix=no
16071   fi
16072   need_version=yes
16073   ;;
16074
16075 sysv4 | sysv4.3*)
16076   version_type=linux
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   soname_spec='${libname}${release}${shared_ext}$major'
16079   shlibpath_var=LD_LIBRARY_PATH
16080   case $host_vendor in
16081     sni)
16082       shlibpath_overrides_runpath=no
16083       need_lib_prefix=no
16084       export_dynamic_flag_spec='${wl}-Blargedynsym'
16085       runpath_var=LD_RUN_PATH
16086       ;;
16087     siemens)
16088       need_lib_prefix=no
16089       ;;
16090     motorola)
16091       need_lib_prefix=no
16092       need_version=no
16093       shlibpath_overrides_runpath=no
16094       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16095       ;;
16096   esac
16097   ;;
16098
16099 sysv4*MP*)
16100   if test -d /usr/nec ;then
16101     version_type=linux
16102     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16103     soname_spec='$libname${shared_ext}.$major'
16104     shlibpath_var=LD_LIBRARY_PATH
16105   fi
16106   ;;
16107
16108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16109   version_type=freebsd-elf
16110   need_lib_prefix=no
16111   need_version=no
16112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16113   soname_spec='${libname}${release}${shared_ext}$major'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   hardcode_into_libs=yes
16116   if test "$with_gnu_ld" = yes; then
16117     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16118     shlibpath_overrides_runpath=no
16119   else
16120     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16121     shlibpath_overrides_runpath=yes
16122     case $host_os in
16123       sco3.2v5*)
16124         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16125         ;;
16126     esac
16127   fi
16128   sys_lib_dlsearch_path_spec='/usr/lib'
16129   ;;
16130
16131 uts4*)
16132   version_type=linux
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134   soname_spec='${libname}${release}${shared_ext}$major'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   ;;
16137
16138 *)
16139   dynamic_linker=no
16140   ;;
16141 esac
16142 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16143 echo "${ECHO_T}$dynamic_linker" >&6; }
16144 test "$dynamic_linker" = no && can_build_shared=no
16145
16146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16147 if test "$GCC" = yes; then
16148   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16149 fi
16150
16151 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16152 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16153 hardcode_action_F77=
16154 if test -n "$hardcode_libdir_flag_spec_F77" || \
16155    test -n "$runpath_var_F77" || \
16156    test "X$hardcode_automatic_F77" = "Xyes" ; then
16157
16158   # We can hardcode non-existant directories.
16159   if test "$hardcode_direct_F77" != no &&
16160      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16161      # have to relink, otherwise we might link with an installed library
16162      # when we should be linking with a yet-to-be-installed one
16163      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16164      test "$hardcode_minus_L_F77" != no; then
16165     # Linking always hardcodes the temporary library directory.
16166     hardcode_action_F77=relink
16167   else
16168     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16169     hardcode_action_F77=immediate
16170   fi
16171 else
16172   # We cannot hardcode anything, or else we can only hardcode existing
16173   # directories.
16174   hardcode_action_F77=unsupported
16175 fi
16176 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16177 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16178
16179 if test "$hardcode_action_F77" = relink; then
16180   # Fast installation is not supported
16181   enable_fast_install=no
16182 elif test "$shlibpath_overrides_runpath" = yes ||
16183      test "$enable_shared" = no; then
16184   # Fast installation is not necessary
16185   enable_fast_install=needless
16186 fi
16187
16188
16189 # The else clause should only fire when bootstrapping the
16190 # libtool distribution, otherwise you forgot to ship ltmain.sh
16191 # with your package, and you will get complaints that there are
16192 # no rules to generate ltmain.sh.
16193 if test -f "$ltmain"; then
16194   # See if we are running on zsh, and set the options which allow our commands through
16195   # without removal of \ escapes.
16196   if test -n "${ZSH_VERSION+set}" ; then
16197     setopt NO_GLOB_SUBST
16198   fi
16199   # Now quote all the things that may contain metacharacters while being
16200   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16201   # variables and quote the copies for generation of the libtool script.
16202   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16203     SED SHELL STRIP \
16204     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16205     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16206     deplibs_check_method reload_flag reload_cmds need_locks \
16207     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16208     lt_cv_sys_global_symbol_to_c_name_address \
16209     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16210     old_postinstall_cmds old_postuninstall_cmds \
16211     compiler_F77 \
16212     CC_F77 \
16213     LD_F77 \
16214     lt_prog_compiler_wl_F77 \
16215     lt_prog_compiler_pic_F77 \
16216     lt_prog_compiler_static_F77 \
16217     lt_prog_compiler_no_builtin_flag_F77 \
16218     export_dynamic_flag_spec_F77 \
16219     thread_safe_flag_spec_F77 \
16220     whole_archive_flag_spec_F77 \
16221     enable_shared_with_static_runtimes_F77 \
16222     old_archive_cmds_F77 \
16223     old_archive_from_new_cmds_F77 \
16224     predep_objects_F77 \
16225     postdep_objects_F77 \
16226     predeps_F77 \
16227     postdeps_F77 \
16228     compiler_lib_search_path_F77 \
16229     archive_cmds_F77 \
16230     archive_expsym_cmds_F77 \
16231     postinstall_cmds_F77 \
16232     postuninstall_cmds_F77 \
16233     old_archive_from_expsyms_cmds_F77 \
16234     allow_undefined_flag_F77 \
16235     no_undefined_flag_F77 \
16236     export_symbols_cmds_F77 \
16237     hardcode_libdir_flag_spec_F77 \
16238     hardcode_libdir_flag_spec_ld_F77 \
16239     hardcode_libdir_separator_F77 \
16240     hardcode_automatic_F77 \
16241     module_cmds_F77 \
16242     module_expsym_cmds_F77 \
16243     lt_cv_prog_compiler_c_o_F77 \
16244     fix_srcfile_path_F77 \
16245     exclude_expsyms_F77 \
16246     include_expsyms_F77; do
16247
16248     case $var in
16249     old_archive_cmds_F77 | \
16250     old_archive_from_new_cmds_F77 | \
16251     archive_cmds_F77 | \
16252     archive_expsym_cmds_F77 | \
16253     module_cmds_F77 | \
16254     module_expsym_cmds_F77 | \
16255     old_archive_from_expsyms_cmds_F77 | \
16256     export_symbols_cmds_F77 | \
16257     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16258     postinstall_cmds | postuninstall_cmds | \
16259     old_postinstall_cmds | old_postuninstall_cmds | \
16260     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16261       # Double-quote double-evaled strings.
16262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16263       ;;
16264     *)
16265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16266       ;;
16267     esac
16268   done
16269
16270   case $lt_echo in
16271   *'\$0 --fallback-echo"')
16272     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16273     ;;
16274   esac
16275
16276 cfgfile="$ofile"
16277
16278   cat <<__EOF__ >> "$cfgfile"
16279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16280
16281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16282
16283 # Shell to use when invoking shell scripts.
16284 SHELL=$lt_SHELL
16285
16286 # Whether or not to build shared libraries.
16287 build_libtool_libs=$enable_shared
16288
16289 # Whether or not to build static libraries.
16290 build_old_libs=$enable_static
16291
16292 # Whether or not to add -lc for building shared libraries.
16293 build_libtool_need_lc=$archive_cmds_need_lc_F77
16294
16295 # Whether or not to disallow shared libs when runtime libs are static
16296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16297
16298 # Whether or not to optimize for fast installation.
16299 fast_install=$enable_fast_install
16300
16301 # The host system.
16302 host_alias=$host_alias
16303 host=$host
16304 host_os=$host_os
16305
16306 # The build system.
16307 build_alias=$build_alias
16308 build=$build
16309 build_os=$build_os
16310
16311 # An echo program that does not interpret backslashes.
16312 echo=$lt_echo
16313
16314 # The archiver.
16315 AR=$lt_AR
16316 AR_FLAGS=$lt_AR_FLAGS
16317
16318 # A C compiler.
16319 LTCC=$lt_LTCC
16320
16321 # LTCC compiler flags.
16322 LTCFLAGS=$lt_LTCFLAGS
16323
16324 # A language-specific compiler.
16325 CC=$lt_compiler_F77
16326
16327 # Is the compiler the GNU C compiler?
16328 with_gcc=$GCC_F77
16329
16330 # An ERE matcher.
16331 EGREP=$lt_EGREP
16332
16333 # The linker used to build libraries.
16334 LD=$lt_LD_F77
16335
16336 # Whether we need hard or soft links.
16337 LN_S=$lt_LN_S
16338
16339 # A BSD-compatible nm program.
16340 NM=$lt_NM
16341
16342 # A symbol stripping program
16343 STRIP=$lt_STRIP
16344
16345 # Used to examine libraries when file_magic_cmd begins "file"
16346 MAGIC_CMD=$MAGIC_CMD
16347
16348 # Used on cygwin: DLL creation program.
16349 DLLTOOL="$DLLTOOL"
16350
16351 # Used on cygwin: object dumper.
16352 OBJDUMP="$OBJDUMP"
16353
16354 # Used on cygwin: assembler.
16355 AS="$AS"
16356
16357 # The name of the directory that contains temporary libtool files.
16358 objdir=$objdir
16359
16360 # How to create reloadable object files.
16361 reload_flag=$lt_reload_flag
16362 reload_cmds=$lt_reload_cmds
16363
16364 # How to pass a linker flag through the compiler.
16365 wl=$lt_lt_prog_compiler_wl_F77
16366
16367 # Object file suffix (normally "o").
16368 objext="$ac_objext"
16369
16370 # Old archive suffix (normally "a").
16371 libext="$libext"
16372
16373 # Shared library suffix (normally ".so").
16374 shrext_cmds='$shrext_cmds'
16375
16376 # Executable file suffix (normally "").
16377 exeext="$exeext"
16378
16379 # Additional compiler flags for building library objects.
16380 pic_flag=$lt_lt_prog_compiler_pic_F77
16381 pic_mode=$pic_mode
16382
16383 # What is the maximum length of a command?
16384 max_cmd_len=$lt_cv_sys_max_cmd_len
16385
16386 # Does compiler simultaneously support -c and -o options?
16387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16388
16389 # Must we lock files when doing compilation?
16390 need_locks=$lt_need_locks
16391
16392 # Do we need the lib prefix for modules?
16393 need_lib_prefix=$need_lib_prefix
16394
16395 # Do we need a version for libraries?
16396 need_version=$need_version
16397
16398 # Whether dlopen is supported.
16399 dlopen_support=$enable_dlopen
16400
16401 # Whether dlopen of programs is supported.
16402 dlopen_self=$enable_dlopen_self
16403
16404 # Whether dlopen of statically linked programs is supported.
16405 dlopen_self_static=$enable_dlopen_self_static
16406
16407 # Compiler flag to prevent dynamic linking.
16408 link_static_flag=$lt_lt_prog_compiler_static_F77
16409
16410 # Compiler flag to turn off builtin functions.
16411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16412
16413 # Compiler flag to allow reflexive dlopens.
16414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16415
16416 # Compiler flag to generate shared objects directly from archives.
16417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16418
16419 # Compiler flag to generate thread-safe objects.
16420 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16421
16422 # Library versioning type.
16423 version_type=$version_type
16424
16425 # Format of library name prefix.
16426 libname_spec=$lt_libname_spec
16427
16428 # List of archive names.  First name is the real one, the rest are links.
16429 # The last name is the one that the linker finds with -lNAME.
16430 library_names_spec=$lt_library_names_spec
16431
16432 # The coded name of the library, if different from the real name.
16433 soname_spec=$lt_soname_spec
16434
16435 # Commands used to build and install an old-style archive.
16436 RANLIB=$lt_RANLIB
16437 old_archive_cmds=$lt_old_archive_cmds_F77
16438 old_postinstall_cmds=$lt_old_postinstall_cmds
16439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16440
16441 # Create an old-style archive from a shared archive.
16442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16443
16444 # Create a temporary old-style archive to link instead of a shared archive.
16445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16446
16447 # Commands used to build and install a shared archive.
16448 archive_cmds=$lt_archive_cmds_F77
16449 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16450 postinstall_cmds=$lt_postinstall_cmds
16451 postuninstall_cmds=$lt_postuninstall_cmds
16452
16453 # Commands used to build a loadable module (assumed same as above if empty)
16454 module_cmds=$lt_module_cmds_F77
16455 module_expsym_cmds=$lt_module_expsym_cmds_F77
16456
16457 # Commands to strip libraries.
16458 old_striplib=$lt_old_striplib
16459 striplib=$lt_striplib
16460
16461 # Dependencies to place before the objects being linked to create a
16462 # shared library.
16463 predep_objects=$lt_predep_objects_F77
16464
16465 # Dependencies to place after the objects being linked to create a
16466 # shared library.
16467 postdep_objects=$lt_postdep_objects_F77
16468
16469 # Dependencies to place before the objects being linked to create a
16470 # shared library.
16471 predeps=$lt_predeps_F77
16472
16473 # Dependencies to place after the objects being linked to create a
16474 # shared library.
16475 postdeps=$lt_postdeps_F77
16476
16477 # The library search path used internally by the compiler when linking
16478 # a shared library.
16479 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16480
16481 # Method to check whether dependent libraries are shared objects.
16482 deplibs_check_method=$lt_deplibs_check_method
16483
16484 # Command to use when deplibs_check_method == file_magic.
16485 file_magic_cmd=$lt_file_magic_cmd
16486
16487 # Flag that allows shared libraries with undefined symbols to be built.
16488 allow_undefined_flag=$lt_allow_undefined_flag_F77
16489
16490 # Flag that forces no undefined symbols.
16491 no_undefined_flag=$lt_no_undefined_flag_F77
16492
16493 # Commands used to finish a libtool library installation in a directory.
16494 finish_cmds=$lt_finish_cmds
16495
16496 # Same as above, but a single script fragment to be evaled but not shown.
16497 finish_eval=$lt_finish_eval
16498
16499 # Take the output of nm and produce a listing of raw symbols and C names.
16500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16501
16502 # Transform the output of nm in a proper C declaration
16503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16504
16505 # Transform the output of nm in a C name address pair
16506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16507
16508 # This is the shared library runtime path variable.
16509 runpath_var=$runpath_var
16510
16511 # This is the shared library path variable.
16512 shlibpath_var=$shlibpath_var
16513
16514 # Is shlibpath searched before the hard-coded library search path?
16515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16516
16517 # How to hardcode a shared library path into an executable.
16518 hardcode_action=$hardcode_action_F77
16519
16520 # Whether we should hardcode library paths into libraries.
16521 hardcode_into_libs=$hardcode_into_libs
16522
16523 # Flag to hardcode \$libdir into a binary during linking.
16524 # This must work even if \$libdir does not exist.
16525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16526
16527 # If ld is used when linking, flag to hardcode \$libdir into
16528 # a binary during linking. This must work even if \$libdir does
16529 # not exist.
16530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16531
16532 # Whether we need a single -rpath flag with a separated argument.
16533 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16534
16535 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16536 # resulting binary.
16537 hardcode_direct=$hardcode_direct_F77
16538
16539 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16540 # resulting binary.
16541 hardcode_minus_L=$hardcode_minus_L_F77
16542
16543 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16544 # the resulting binary.
16545 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16546
16547 # Set to yes if building a shared library automatically hardcodes DIR into the library
16548 # and all subsequent libraries and executables linked against it.
16549 hardcode_automatic=$hardcode_automatic_F77
16550
16551 # Variables whose values should be saved in libtool wrapper scripts and
16552 # restored at relink time.
16553 variables_saved_for_relink="$variables_saved_for_relink"
16554
16555 # Whether libtool must link a program against all its dependency libraries.
16556 link_all_deplibs=$link_all_deplibs_F77
16557
16558 # Compile-time system search path for libraries
16559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16560
16561 # Run-time system search path for libraries
16562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16563
16564 # Fix the shell variable \$srcfile for the compiler.
16565 fix_srcfile_path=$lt_fix_srcfile_path
16566
16567 # Set to yes if exported symbols are required.
16568 always_export_symbols=$always_export_symbols_F77
16569
16570 # The commands to list exported symbols.
16571 export_symbols_cmds=$lt_export_symbols_cmds_F77
16572
16573 # The commands to extract the exported symbol list from a shared archive.
16574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16575
16576 # Symbols that should not be listed in the preloaded symbols.
16577 exclude_expsyms=$lt_exclude_expsyms_F77
16578
16579 # Symbols that must always be exported.
16580 include_expsyms=$lt_include_expsyms_F77
16581
16582 # ### END LIBTOOL TAG CONFIG: $tagname
16583
16584 __EOF__
16585
16586
16587 else
16588   # If there is no Makefile yet, we rely on a make rule to execute
16589   # `config.status --recheck' to rerun these tests and create the
16590   # libtool script then.
16591   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16592   if test -f "$ltmain_in"; then
16593     test -f Makefile && make "$ltmain"
16594   fi
16595 fi
16596
16597
16598 ac_ext=c
16599 ac_cpp='$CPP $CPPFLAGS'
16600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16603
16604 CC="$lt_save_CC"
16605
16606         else
16607           tagname=""
16608         fi
16609         ;;
16610
16611       GCJ)
16612         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16613
16614
16615 # Source file extension for Java test sources.
16616 ac_ext=java
16617
16618 # Object file extension for compiled Java test sources.
16619 objext=o
16620 objext_GCJ=$objext
16621
16622 # Code to be used in simple compile tests
16623 lt_simple_compile_test_code="class foo {}"
16624
16625 # Code to be used in simple link tests
16626 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16627
16628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16629
16630 # If no C compiler was specified, use CC.
16631 LTCC=${LTCC-"$CC"}
16632
16633 # If no C compiler flags were specified, use CFLAGS.
16634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16635
16636 # Allow CC to be a program name with arguments.
16637 compiler=$CC
16638
16639
16640 # save warnings/boilerplate of simple test code
16641 ac_outfile=conftest.$ac_objext
16642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16644 _lt_compiler_boilerplate=`cat conftest.err`
16645 $rm conftest*
16646
16647 ac_outfile=conftest.$ac_objext
16648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16650 _lt_linker_boilerplate=`cat conftest.err`
16651 $rm conftest*
16652
16653
16654 # Allow CC to be a program name with arguments.
16655 lt_save_CC="$CC"
16656 CC=${GCJ-"gcj"}
16657 compiler=$CC
16658 compiler_GCJ=$CC
16659 for cc_temp in $compiler""; do
16660   case $cc_temp in
16661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16663     \-*) ;;
16664     *) break;;
16665   esac
16666 done
16667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16668
16669
16670 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16671 archive_cmds_need_lc_GCJ=no
16672
16673 old_archive_cmds_GCJ=$old_archive_cmds
16674
16675
16676 lt_prog_compiler_no_builtin_flag_GCJ=
16677
16678 if test "$GCC" = yes; then
16679   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16680
16681
16682 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16683 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16684 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   lt_cv_prog_compiler_rtti_exceptions=no
16688   ac_outfile=conftest.$ac_objext
16689    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16690    lt_compiler_flag="-fno-rtti -fno-exceptions"
16691    # Insert the option either (1) after the last *FLAGS variable, or
16692    # (2) before a word containing "conftest.", or (3) at the end.
16693    # Note that $ac_compile itself does not contain backslashes and begins
16694    # with a dollar sign (not a hyphen), so the echo should work correctly.
16695    # The option is referenced via a variable to avoid confusing sed.
16696    lt_compile=`echo "$ac_compile" | $SED \
16697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16699    -e 's:$: $lt_compiler_flag:'`
16700    (eval echo "\"\$as_me:16700: $lt_compile\"" >&5)
16701    (eval "$lt_compile" 2>conftest.err)
16702    ac_status=$?
16703    cat conftest.err >&5
16704    echo "$as_me:16704: \$? = $ac_status" >&5
16705    if (exit $ac_status) && test -s "$ac_outfile"; then
16706      # The compiler can only warn and ignore the option if not recognized
16707      # So say no if there are warnings other than the usual output.
16708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16709      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16710      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16711        lt_cv_prog_compiler_rtti_exceptions=yes
16712      fi
16713    fi
16714    $rm conftest*
16715
16716 fi
16717 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16719
16720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16721     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16722 else
16723     :
16724 fi
16725
16726 fi
16727
16728 lt_prog_compiler_wl_GCJ=
16729 lt_prog_compiler_pic_GCJ=
16730 lt_prog_compiler_static_GCJ=
16731
16732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16734
16735   if test "$GCC" = yes; then
16736     lt_prog_compiler_wl_GCJ='-Wl,'
16737     lt_prog_compiler_static_GCJ='-static'
16738
16739     case $host_os in
16740       aix*)
16741       # All AIX code is PIC.
16742       if test "$host_cpu" = ia64; then
16743         # AIX 5 now supports IA64 processor
16744         lt_prog_compiler_static_GCJ='-Bstatic'
16745       fi
16746       ;;
16747
16748     amigaos*)
16749       # FIXME: we need at least 68020 code to build shared libraries, but
16750       # adding the `-m68020' flag to GCC prevents building anything better,
16751       # like `-m68040'.
16752       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16753       ;;
16754
16755     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16756       # PIC is the default for these OSes.
16757       ;;
16758
16759     mingw* | cygwin* | pw32* | os2*)
16760       # This hack is so that the source file can tell whether it is being
16761       # built for inclusion in a dll (and should export symbols for example).
16762       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16763       # (--disable-auto-import) libraries
16764       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16765       ;;
16766
16767     darwin* | rhapsody*)
16768       # PIC is the default on this platform
16769       # Common symbols not allowed in MH_DYLIB files
16770       lt_prog_compiler_pic_GCJ='-fno-common'
16771       ;;
16772
16773     interix[3-9]*)
16774       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16775       # Instead, we relocate shared libraries at runtime.
16776       ;;
16777
16778     msdosdjgpp*)
16779       # Just because we use GCC doesn't mean we suddenly get shared libraries
16780       # on systems that don't support them.
16781       lt_prog_compiler_can_build_shared_GCJ=no
16782       enable_shared=no
16783       ;;
16784
16785     sysv4*MP*)
16786       if test -d /usr/nec; then
16787         lt_prog_compiler_pic_GCJ=-Kconform_pic
16788       fi
16789       ;;
16790
16791     hpux*)
16792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16793       # not for PA HP-UX.
16794       case $host_cpu in
16795       hppa*64*|ia64*)
16796         # +Z the default
16797         ;;
16798       *)
16799         lt_prog_compiler_pic_GCJ='-fPIC'
16800         ;;
16801       esac
16802       ;;
16803
16804     *)
16805       lt_prog_compiler_pic_GCJ='-fPIC'
16806       ;;
16807     esac
16808   else
16809     # PORTME Check for flag to pass linker flags through the system compiler.
16810     case $host_os in
16811     aix*)
16812       lt_prog_compiler_wl_GCJ='-Wl,'
16813       if test "$host_cpu" = ia64; then
16814         # AIX 5 now supports IA64 processor
16815         lt_prog_compiler_static_GCJ='-Bstatic'
16816       else
16817         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16818       fi
16819       ;;
16820       darwin*)
16821         # PIC is the default on this platform
16822         # Common symbols not allowed in MH_DYLIB files
16823        case $cc_basename in
16824          xlc*)
16825          lt_prog_compiler_pic_GCJ='-qnocommon'
16826          lt_prog_compiler_wl_GCJ='-Wl,'
16827          ;;
16828        esac
16829        ;;
16830
16831     mingw* | cygwin* | pw32* | os2*)
16832       # This hack is so that the source file can tell whether it is being
16833       # built for inclusion in a dll (and should export symbols for example).
16834       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16835       ;;
16836
16837     hpux9* | hpux10* | hpux11*)
16838       lt_prog_compiler_wl_GCJ='-Wl,'
16839       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16840       # not for PA HP-UX.
16841       case $host_cpu in
16842       hppa*64*|ia64*)
16843         # +Z the default
16844         ;;
16845       *)
16846         lt_prog_compiler_pic_GCJ='+Z'
16847         ;;
16848       esac
16849       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16850       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16851       ;;
16852
16853     irix5* | irix6* | nonstopux*)
16854       lt_prog_compiler_wl_GCJ='-Wl,'
16855       # PIC (with -KPIC) is the default.
16856       lt_prog_compiler_static_GCJ='-non_shared'
16857       ;;
16858
16859     newsos6)
16860       lt_prog_compiler_pic_GCJ='-KPIC'
16861       lt_prog_compiler_static_GCJ='-Bstatic'
16862       ;;
16863
16864     linux* | k*bsd*-gnu)
16865       case $cc_basename in
16866       icc* | ecc*)
16867         lt_prog_compiler_wl_GCJ='-Wl,'
16868         lt_prog_compiler_pic_GCJ='-KPIC'
16869         lt_prog_compiler_static_GCJ='-static'
16870         ;;
16871       pgcc* | pgf77* | pgf90* | pgf95*)
16872         # Portland Group compilers (*not* the Pentium gcc compiler,
16873         # which looks to be a dead project)
16874         lt_prog_compiler_wl_GCJ='-Wl,'
16875         lt_prog_compiler_pic_GCJ='-fpic'
16876         lt_prog_compiler_static_GCJ='-Bstatic'
16877         ;;
16878       ccc*)
16879         lt_prog_compiler_wl_GCJ='-Wl,'
16880         # All Alpha code is PIC.
16881         lt_prog_compiler_static_GCJ='-non_shared'
16882         ;;
16883       *)
16884         case `$CC -V 2>&1 | sed 5q` in
16885         *Sun\ C*)
16886           # Sun C 5.9
16887           lt_prog_compiler_pic_GCJ='-KPIC'
16888           lt_prog_compiler_static_GCJ='-Bstatic'
16889           lt_prog_compiler_wl_GCJ='-Wl,'
16890           ;;
16891         *Sun\ F*)
16892           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16893           lt_prog_compiler_pic_GCJ='-KPIC'
16894           lt_prog_compiler_static_GCJ='-Bstatic'
16895           lt_prog_compiler_wl_GCJ=''
16896           ;;
16897         esac
16898         ;;
16899       esac
16900       ;;
16901
16902     osf3* | osf4* | osf5*)
16903       lt_prog_compiler_wl_GCJ='-Wl,'
16904       # All OSF/1 code is PIC.
16905       lt_prog_compiler_static_GCJ='-non_shared'
16906       ;;
16907
16908     rdos*)
16909       lt_prog_compiler_static_GCJ='-non_shared'
16910       ;;
16911
16912     solaris*)
16913       lt_prog_compiler_pic_GCJ='-KPIC'
16914       lt_prog_compiler_static_GCJ='-Bstatic'
16915       case $cc_basename in
16916       f77* | f90* | f95*)
16917         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16918       *)
16919         lt_prog_compiler_wl_GCJ='-Wl,';;
16920       esac
16921       ;;
16922
16923     sunos4*)
16924       lt_prog_compiler_wl_GCJ='-Qoption ld '
16925       lt_prog_compiler_pic_GCJ='-PIC'
16926       lt_prog_compiler_static_GCJ='-Bstatic'
16927       ;;
16928
16929     sysv4 | sysv4.2uw2* | sysv4.3*)
16930       lt_prog_compiler_wl_GCJ='-Wl,'
16931       lt_prog_compiler_pic_GCJ='-KPIC'
16932       lt_prog_compiler_static_GCJ='-Bstatic'
16933       ;;
16934
16935     sysv4*MP*)
16936       if test -d /usr/nec ;then
16937         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16938         lt_prog_compiler_static_GCJ='-Bstatic'
16939       fi
16940       ;;
16941
16942     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16943       lt_prog_compiler_wl_GCJ='-Wl,'
16944       lt_prog_compiler_pic_GCJ='-KPIC'
16945       lt_prog_compiler_static_GCJ='-Bstatic'
16946       ;;
16947
16948     unicos*)
16949       lt_prog_compiler_wl_GCJ='-Wl,'
16950       lt_prog_compiler_can_build_shared_GCJ=no
16951       ;;
16952
16953     uts4*)
16954       lt_prog_compiler_pic_GCJ='-pic'
16955       lt_prog_compiler_static_GCJ='-Bstatic'
16956       ;;
16957
16958     *)
16959       lt_prog_compiler_can_build_shared_GCJ=no
16960       ;;
16961     esac
16962   fi
16963
16964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16965 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16966
16967 #
16968 # Check to make sure the PIC flag actually works.
16969 #
16970 if test -n "$lt_prog_compiler_pic_GCJ"; then
16971
16972 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16974 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16975   echo $ECHO_N "(cached) $ECHO_C" >&6
16976 else
16977   lt_prog_compiler_pic_works_GCJ=no
16978   ac_outfile=conftest.$ac_objext
16979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16980    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16981    # Insert the option either (1) after the last *FLAGS variable, or
16982    # (2) before a word containing "conftest.", or (3) at the end.
16983    # Note that $ac_compile itself does not contain backslashes and begins
16984    # with a dollar sign (not a hyphen), so the echo should work correctly.
16985    # The option is referenced via a variable to avoid confusing sed.
16986    lt_compile=`echo "$ac_compile" | $SED \
16987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16989    -e 's:$: $lt_compiler_flag:'`
16990    (eval echo "\"\$as_me:16990: $lt_compile\"" >&5)
16991    (eval "$lt_compile" 2>conftest.err)
16992    ac_status=$?
16993    cat conftest.err >&5
16994    echo "$as_me:16994: \$? = $ac_status" >&5
16995    if (exit $ac_status) && test -s "$ac_outfile"; then
16996      # The compiler can only warn and ignore the option if not recognized
16997      # So say no if there are warnings other than the usual output.
16998      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17001        lt_prog_compiler_pic_works_GCJ=yes
17002      fi
17003    fi
17004    $rm conftest*
17005
17006 fi
17007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17008 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17009
17010 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17011     case $lt_prog_compiler_pic_GCJ in
17012      "" | " "*) ;;
17013      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17014      esac
17015 else
17016     lt_prog_compiler_pic_GCJ=
17017      lt_prog_compiler_can_build_shared_GCJ=no
17018 fi
17019
17020 fi
17021 case $host_os in
17022   # For platforms which do not support PIC, -DPIC is meaningless:
17023   *djgpp*)
17024     lt_prog_compiler_pic_GCJ=
17025     ;;
17026   *)
17027     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17028     ;;
17029 esac
17030
17031 #
17032 # Check to make sure the static flag actually works.
17033 #
17034 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17035 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17037 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   lt_prog_compiler_static_works_GCJ=no
17041    save_LDFLAGS="$LDFLAGS"
17042    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17043    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17044    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17045      # The linker can only warn and ignore the option if not recognized
17046      # So say no if there are warnings
17047      if test -s conftest.err; then
17048        # Append any errors to the config.log.
17049        cat conftest.err 1>&5
17050        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17051        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17052        if diff conftest.exp conftest.er2 >/dev/null; then
17053          lt_prog_compiler_static_works_GCJ=yes
17054        fi
17055      else
17056        lt_prog_compiler_static_works_GCJ=yes
17057      fi
17058    fi
17059    $rm conftest*
17060    LDFLAGS="$save_LDFLAGS"
17061
17062 fi
17063 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17064 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17065
17066 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17067     :
17068 else
17069     lt_prog_compiler_static_GCJ=
17070 fi
17071
17072
17073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17075 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078   lt_cv_prog_compiler_c_o_GCJ=no
17079    $rm -r conftest 2>/dev/null
17080    mkdir conftest
17081    cd conftest
17082    mkdir out
17083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17084
17085    lt_compiler_flag="-o out/conftest2.$ac_objext"
17086    # Insert the option either (1) after the last *FLAGS variable, or
17087    # (2) before a word containing "conftest.", or (3) at the end.
17088    # Note that $ac_compile itself does not contain backslashes and begins
17089    # with a dollar sign (not a hyphen), so the echo should work correctly.
17090    lt_compile=`echo "$ac_compile" | $SED \
17091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17093    -e 's:$: $lt_compiler_flag:'`
17094    (eval echo "\"\$as_me:17094: $lt_compile\"" >&5)
17095    (eval "$lt_compile" 2>out/conftest.err)
17096    ac_status=$?
17097    cat out/conftest.err >&5
17098    echo "$as_me:17098: \$? = $ac_status" >&5
17099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17100    then
17101      # The compiler can only warn and ignore the option if not recognized
17102      # So say no if there are warnings
17103      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17104      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17105      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17106        lt_cv_prog_compiler_c_o_GCJ=yes
17107      fi
17108    fi
17109    chmod u+w . 2>&5
17110    $rm conftest*
17111    # SGI C++ compiler will create directory out/ii_files/ for
17112    # template instantiation
17113    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17114    $rm out/* && rmdir out
17115    cd ..
17116    rmdir conftest
17117    $rm conftest*
17118
17119 fi
17120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17122
17123
17124 hard_links="nottested"
17125 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17126   # do not overwrite the value of need_locks provided by the user
17127   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17129   hard_links=yes
17130   $rm conftest*
17131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17132   touch conftest.a
17133   ln conftest.a conftest.b 2>&5 || hard_links=no
17134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17135   { echo "$as_me:$LINENO: result: $hard_links" >&5
17136 echo "${ECHO_T}$hard_links" >&6; }
17137   if test "$hard_links" = no; then
17138     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17140     need_locks=warn
17141   fi
17142 else
17143   need_locks=no
17144 fi
17145
17146 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17148
17149   runpath_var=
17150   allow_undefined_flag_GCJ=
17151   enable_shared_with_static_runtimes_GCJ=no
17152   archive_cmds_GCJ=
17153   archive_expsym_cmds_GCJ=
17154   old_archive_From_new_cmds_GCJ=
17155   old_archive_from_expsyms_cmds_GCJ=
17156   export_dynamic_flag_spec_GCJ=
17157   whole_archive_flag_spec_GCJ=
17158   thread_safe_flag_spec_GCJ=
17159   hardcode_libdir_flag_spec_GCJ=
17160   hardcode_libdir_flag_spec_ld_GCJ=
17161   hardcode_libdir_separator_GCJ=
17162   hardcode_direct_GCJ=no
17163   hardcode_minus_L_GCJ=no
17164   hardcode_shlibpath_var_GCJ=unsupported
17165   link_all_deplibs_GCJ=unknown
17166   hardcode_automatic_GCJ=no
17167   module_cmds_GCJ=
17168   module_expsym_cmds_GCJ=
17169   always_export_symbols_GCJ=no
17170   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17171   # include_expsyms should be a list of space-separated symbols to be *always*
17172   # included in the symbol list
17173   include_expsyms_GCJ=
17174   # exclude_expsyms can be an extended regexp of symbols to exclude
17175   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17176   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17177   # as well as any symbol that contains `d'.
17178   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17179   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17180   # platforms (ab)use it in PIC code, but their linkers get confused if
17181   # the symbol is explicitly referenced.  Since portable code cannot
17182   # rely on this symbol name, it's probably fine to never include it in
17183   # preloaded symbol tables.
17184   extract_expsyms_cmds=
17185   # Just being paranoid about ensuring that cc_basename is set.
17186   for cc_temp in $compiler""; do
17187   case $cc_temp in
17188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17190     \-*) ;;
17191     *) break;;
17192   esac
17193 done
17194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17195
17196   case $host_os in
17197   cygwin* | mingw* | pw32*)
17198     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17199     # When not using gcc, we currently assume that we are using
17200     # Microsoft Visual C++.
17201     if test "$GCC" != yes; then
17202       with_gnu_ld=no
17203     fi
17204     ;;
17205   interix*)
17206     # we just hope/assume this is gcc and not c89 (= MSVC++)
17207     with_gnu_ld=yes
17208     ;;
17209   openbsd*)
17210     with_gnu_ld=no
17211     ;;
17212   esac
17213
17214   ld_shlibs_GCJ=yes
17215   if test "$with_gnu_ld" = yes; then
17216     # If archive_cmds runs LD, not CC, wlarc should be empty
17217     wlarc='${wl}'
17218
17219     # Set some defaults for GNU ld with shared library support. These
17220     # are reset later if shared libraries are not supported. Putting them
17221     # here allows them to be overridden if necessary.
17222     runpath_var=LD_RUN_PATH
17223     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17224     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17225     # ancient GNU ld didn't support --whole-archive et. al.
17226     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17227         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17228       else
17229         whole_archive_flag_spec_GCJ=
17230     fi
17231     supports_anon_versioning=no
17232     case `$LD -v 2>/dev/null` in
17233       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17234       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17235       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17236       *\ 2.11.*) ;; # other 2.11 versions
17237       *) supports_anon_versioning=yes ;;
17238     esac
17239
17240     # See if GNU ld supports shared libraries.
17241     case $host_os in
17242     aix3* | aix4* | aix5*)
17243       # On AIX/PPC, the GNU linker is very broken
17244       if test "$host_cpu" != ia64; then
17245         ld_shlibs_GCJ=no
17246         cat <<EOF 1>&2
17247
17248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17249 *** to be unable to reliably create shared libraries on AIX.
17250 *** Therefore, libtool is disabling shared libraries support.  If you
17251 *** really care for shared libraries, you may want to modify your PATH
17252 *** so that a non-GNU linker is found, and then restart.
17253
17254 EOF
17255       fi
17256       ;;
17257
17258     amigaos*)
17259       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)'
17260       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261       hardcode_minus_L_GCJ=yes
17262
17263       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17264       # that the semantics of dynamic libraries on AmigaOS, at least up
17265       # to version 4, is to share data among multiple programs linked
17266       # with the same dynamic library.  Since this doesn't match the
17267       # behavior of shared libraries on other platforms, we can't use
17268       # them.
17269       ld_shlibs_GCJ=no
17270       ;;
17271
17272     beos*)
17273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17274         allow_undefined_flag_GCJ=unsupported
17275         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17276         # support --undefined.  This deserves some investigation.  FIXME
17277         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17278       else
17279         ld_shlibs_GCJ=no
17280       fi
17281       ;;
17282
17283     cygwin* | mingw* | pw32*)
17284       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17285       # as there is no search path for DLLs.
17286       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17287       allow_undefined_flag_GCJ=unsupported
17288       always_export_symbols_GCJ=no
17289       enable_shared_with_static_runtimes_GCJ=yes
17290       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17291
17292       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17293         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17294         # If the export-symbols file already is a .def file (1st line
17295         # is EXPORTS), use it as is; otherwise, prepend...
17296         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17297           cp $export_symbols $output_objdir/$soname.def;
17298         else
17299           echo EXPORTS > $output_objdir/$soname.def;
17300           cat $export_symbols >> $output_objdir/$soname.def;
17301         fi~
17302         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17303       else
17304         ld_shlibs_GCJ=no
17305       fi
17306       ;;
17307
17308     interix[3-9]*)
17309       hardcode_direct_GCJ=no
17310       hardcode_shlibpath_var_GCJ=no
17311       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17312       export_dynamic_flag_spec_GCJ='${wl}-E'
17313       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17314       # Instead, shared libraries are loaded at an image base (0x10000000 by
17315       # default) and relocated if they conflict, which is a slow very memory
17316       # consuming and fragmenting process.  To avoid this, we pick a random,
17317       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17318       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17319       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'
17320       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'
17321       ;;
17322
17323     gnu* | linux* | k*bsd*-gnu)
17324       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17325         tmp_addflag=
17326         case $cc_basename,$host_cpu in
17327         pgcc*)                          # Portland Group C compiler
17328           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'
17329           tmp_addflag=' $pic_flag'
17330           ;;
17331         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17332           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'
17333           tmp_addflag=' $pic_flag -Mnomain' ;;
17334         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17335           tmp_addflag=' -i_dynamic' ;;
17336         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17337           tmp_addflag=' -i_dynamic -nofor_main' ;;
17338         ifc* | ifort*)                  # Intel Fortran compiler
17339           tmp_addflag=' -nofor_main' ;;
17340         esac
17341         case `$CC -V 2>&1 | sed 5q` in
17342         *Sun\ C*)                       # Sun C 5.9
17343           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17344           tmp_sharedflag='-G' ;;
17345         *Sun\ F*)                       # Sun Fortran 8.3
17346           tmp_sharedflag='-G' ;;
17347         *)
17348           tmp_sharedflag='-shared' ;;
17349         esac
17350         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17351
17352         if test $supports_anon_versioning = yes; then
17353           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17354   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17355   $echo "local: *; };" >> $output_objdir/$libname.ver~
17356           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17357         fi
17358       else
17359         ld_shlibs_GCJ=no
17360       fi
17361       ;;
17362
17363     netbsd*)
17364       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17365         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17366         wlarc=
17367       else
17368         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17369         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17370       fi
17371       ;;
17372
17373     solaris*)
17374       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17375         ld_shlibs_GCJ=no
17376         cat <<EOF 1>&2
17377
17378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17379 *** create shared libraries on Solaris systems.  Therefore, libtool
17380 *** is disabling shared libraries support.  We urge you to upgrade GNU
17381 *** binutils to release 2.9.1 or newer.  Another option is to modify
17382 *** your PATH or compiler configuration so that the native linker is
17383 *** used, and then restart.
17384
17385 EOF
17386       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17387         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17388         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17389       else
17390         ld_shlibs_GCJ=no
17391       fi
17392       ;;
17393
17394     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17395       case `$LD -v 2>&1` in
17396         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17397         ld_shlibs_GCJ=no
17398         cat <<_LT_EOF 1>&2
17399
17400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17401 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17402 *** is disabling shared libraries support.  We urge you to upgrade GNU
17403 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17404 *** your PATH or compiler configuration so that the native linker is
17405 *** used, and then restart.
17406
17407 _LT_EOF
17408         ;;
17409         *)
17410           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17412             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17413             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17414           else
17415             ld_shlibs_GCJ=no
17416           fi
17417         ;;
17418       esac
17419       ;;
17420
17421     sunos4*)
17422       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17423       wlarc=
17424       hardcode_direct_GCJ=yes
17425       hardcode_shlibpath_var_GCJ=no
17426       ;;
17427
17428     *)
17429       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17430         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17432       else
17433         ld_shlibs_GCJ=no
17434       fi
17435       ;;
17436     esac
17437
17438     if test "$ld_shlibs_GCJ" = no; then
17439       runpath_var=
17440       hardcode_libdir_flag_spec_GCJ=
17441       export_dynamic_flag_spec_GCJ=
17442       whole_archive_flag_spec_GCJ=
17443     fi
17444   else
17445     # PORTME fill in a description of your system's linker (not GNU ld)
17446     case $host_os in
17447     aix3*)
17448       allow_undefined_flag_GCJ=unsupported
17449       always_export_symbols_GCJ=yes
17450       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'
17451       # Note: this linker hardcodes the directories in LIBPATH if there
17452       # are no directories specified by -L.
17453       hardcode_minus_L_GCJ=yes
17454       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17455         # Neither direct hardcoding nor static linking is supported with a
17456         # broken collect2.
17457         hardcode_direct_GCJ=unsupported
17458       fi
17459       ;;
17460
17461     aix4* | aix5*)
17462       if test "$host_cpu" = ia64; then
17463         # On IA64, the linker does run time linking by default, so we don't
17464         # have to do anything special.
17465         aix_use_runtimelinking=no
17466         exp_sym_flag='-Bexport'
17467         no_entry_flag=""
17468       else
17469         # If we're using GNU nm, then we don't want the "-C" option.
17470         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17471         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17472           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'
17473         else
17474           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'
17475         fi
17476         aix_use_runtimelinking=no
17477
17478         # Test if we are trying to use run time linking or normal
17479         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17480         # need to do runtime linking.
17481         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17482           for ld_flag in $LDFLAGS; do
17483           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17484             aix_use_runtimelinking=yes
17485             break
17486           fi
17487           done
17488           ;;
17489         esac
17490
17491         exp_sym_flag='-bexport'
17492         no_entry_flag='-bnoentry'
17493       fi
17494
17495       # When large executables or shared objects are built, AIX ld can
17496       # have problems creating the table of contents.  If linking a library
17497       # or program results in "error TOC overflow" add -mminimal-toc to
17498       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17499       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17500
17501       archive_cmds_GCJ=''
17502       hardcode_direct_GCJ=yes
17503       hardcode_libdir_separator_GCJ=':'
17504       link_all_deplibs_GCJ=yes
17505
17506       if test "$GCC" = yes; then
17507         case $host_os in aix4.[012]|aix4.[012].*)
17508         # We only want to do this on AIX 4.2 and lower, the check
17509         # below for broken collect2 doesn't work under 4.3+
17510           collect2name=`${CC} -print-prog-name=collect2`
17511           if test -f "$collect2name" && \
17512            strings "$collect2name" | grep resolve_lib_name >/dev/null
17513           then
17514           # We have reworked collect2
17515           :
17516           else
17517           # We have old collect2
17518           hardcode_direct_GCJ=unsupported
17519           # It fails to find uninstalled libraries when the uninstalled
17520           # path is not listed in the libpath.  Setting hardcode_minus_L
17521           # to unsupported forces relinking
17522           hardcode_minus_L_GCJ=yes
17523           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17524           hardcode_libdir_separator_GCJ=
17525           fi
17526           ;;
17527         esac
17528         shared_flag='-shared'
17529         if test "$aix_use_runtimelinking" = yes; then
17530           shared_flag="$shared_flag "'${wl}-G'
17531         fi
17532       else
17533         # not using gcc
17534         if test "$host_cpu" = ia64; then
17535         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17536         # chokes on -Wl,-G. The following line is correct:
17537           shared_flag='-G'
17538         else
17539           if test "$aix_use_runtimelinking" = yes; then
17540             shared_flag='${wl}-G'
17541           else
17542             shared_flag='${wl}-bM:SRE'
17543           fi
17544         fi
17545       fi
17546
17547       # It seems that -bexpall does not export symbols beginning with
17548       # underscore (_), so it is better to generate a list of symbols to export.
17549       always_export_symbols_GCJ=yes
17550       if test "$aix_use_runtimelinking" = yes; then
17551         # Warning - without using the other runtime loading flags (-brtl),
17552         # -berok will link without error, but may produce a broken library.
17553         allow_undefined_flag_GCJ='-berok'
17554        # Determine the default libpath from the value encoded in an empty executable.
17555        cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561
17562 int
17563 main ()
17564 {
17565
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574   *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577   (eval "$ac_link") 2>conftest.er1
17578   ac_status=$?
17579   grep -v '^ *+' conftest.er1 >conftest.err
17580   rm -f conftest.er1
17581   cat conftest.err >&5
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } && {
17584          test -z "$ac_c_werror_flag" ||
17585          test ! -s conftest.err
17586        } && test -s conftest$ac_exeext &&
17587        $as_test_x conftest$ac_exeext; then
17588
17589 lt_aix_libpath_sed='
17590     /Import File Strings/,/^$/ {
17591         /^0/ {
17592             s/^0  *\(.*\)$/\1/
17593             p
17594         }
17595     }'
17596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17597 # Check for a 64-bit object if we didn't find anything.
17598 if test -z "$aix_libpath"; then
17599   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17600 fi
17601 else
17602   echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605
17606 fi
17607
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609       conftest$ac_exeext conftest.$ac_ext
17610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17611
17612        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613         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"
17614        else
17615         if test "$host_cpu" = ia64; then
17616           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617           allow_undefined_flag_GCJ="-z nodefs"
17618           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"
17619         else
17620          # Determine the default libpath from the value encoded in an empty executable.
17621          cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627
17628 int
17629 main ()
17630 {
17631
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_link") 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } && {
17650          test -z "$ac_c_werror_flag" ||
17651          test ! -s conftest.err
17652        } && test -s conftest$ac_exeext &&
17653        $as_test_x conftest$ac_exeext; then
17654
17655 lt_aix_libpath_sed='
17656     /Import File Strings/,/^$/ {
17657         /^0/ {
17658             s/^0  *\(.*\)$/\1/
17659             p
17660         }
17661     }'
17662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17663 # Check for a 64-bit object if we didn't find anything.
17664 if test -z "$aix_libpath"; then
17665   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17666 fi
17667 else
17668   echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675       conftest$ac_exeext conftest.$ac_ext
17676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17677
17678          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17679           # Warning - without using the other run time loading flags,
17680           # -berok will link without error, but may produce a broken library.
17681           no_undefined_flag_GCJ=' ${wl}-bernotok'
17682           allow_undefined_flag_GCJ=' ${wl}-berok'
17683           # Exported symbols can be pulled into shared objects from archives
17684           whole_archive_flag_spec_GCJ='$convenience'
17685           archive_cmds_need_lc_GCJ=yes
17686           # This is similar to how AIX traditionally builds its shared libraries.
17687           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'
17688         fi
17689       fi
17690       ;;
17691
17692     amigaos*)
17693       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)'
17694       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695       hardcode_minus_L_GCJ=yes
17696       # see comment about different semantics on the GNU ld section
17697       ld_shlibs_GCJ=no
17698       ;;
17699
17700     bsdi[45]*)
17701       export_dynamic_flag_spec_GCJ=-rdynamic
17702       ;;
17703
17704     cygwin* | mingw* | pw32*)
17705       # When not using gcc, we currently assume that we are using
17706       # Microsoft Visual C++.
17707       # hardcode_libdir_flag_spec is actually meaningless, as there is
17708       # no search path for DLLs.
17709       hardcode_libdir_flag_spec_GCJ=' '
17710       allow_undefined_flag_GCJ=unsupported
17711       # Tell ltmain to make .lib files, not .a files.
17712       libext=lib
17713       # Tell ltmain to make .dll files, not .so files.
17714       shrext_cmds=".dll"
17715       # FIXME: Setting linknames here is a bad hack.
17716       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17717       # The linker will automatically build a .lib file if we build a DLL.
17718       old_archive_From_new_cmds_GCJ='true'
17719       # FIXME: Should let the user specify the lib program.
17720       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17721       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17722       enable_shared_with_static_runtimes_GCJ=yes
17723       ;;
17724
17725     darwin* | rhapsody*)
17726       case $host_os in
17727         rhapsody* | darwin1.[012])
17728          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17729          ;;
17730        *) # Darwin 1.3 on
17731          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17732            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17733          else
17734            case ${MACOSX_DEPLOYMENT_TARGET} in
17735              10.[012])
17736                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17737                ;;
17738              10.*)
17739                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17740                ;;
17741            esac
17742          fi
17743          ;;
17744       esac
17745       archive_cmds_need_lc_GCJ=no
17746       hardcode_direct_GCJ=no
17747       hardcode_automatic_GCJ=yes
17748       hardcode_shlibpath_var_GCJ=unsupported
17749       whole_archive_flag_spec_GCJ=''
17750       link_all_deplibs_GCJ=yes
17751     if test "$GCC" = yes ; then
17752         output_verbose_link_cmd='echo'
17753         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17754       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17756       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}'
17757       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}'
17758     else
17759       case $cc_basename in
17760         xlc*)
17761          output_verbose_link_cmd='echo'
17762          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17763          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17764           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17765          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17766           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}'
17767           ;;
17768        *)
17769          ld_shlibs_GCJ=no
17770           ;;
17771       esac
17772     fi
17773       ;;
17774
17775     dgux*)
17776       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778       hardcode_shlibpath_var_GCJ=no
17779       ;;
17780
17781     freebsd1*)
17782       ld_shlibs_GCJ=no
17783       ;;
17784
17785     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17786     # support.  Future versions do this automatically, but an explicit c++rt0.o
17787     # does not break anything, and helps significantly (at the cost of a little
17788     # extra space).
17789     freebsd2.2*)
17790       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17791       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17792       hardcode_direct_GCJ=yes
17793       hardcode_shlibpath_var_GCJ=no
17794       ;;
17795
17796     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17797     freebsd2*)
17798       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17799       hardcode_direct_GCJ=yes
17800       hardcode_minus_L_GCJ=yes
17801       hardcode_shlibpath_var_GCJ=no
17802       ;;
17803
17804     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17805     freebsd* | dragonfly*)
17806       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17807       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808       hardcode_direct_GCJ=yes
17809       hardcode_shlibpath_var_GCJ=no
17810       ;;
17811
17812     hpux9*)
17813       if test "$GCC" = yes; then
17814         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'
17815       else
17816         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'
17817       fi
17818       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17819       hardcode_libdir_separator_GCJ=:
17820       hardcode_direct_GCJ=yes
17821
17822       # hardcode_minus_L: Not really in the search PATH,
17823       # but as the default location of the library.
17824       hardcode_minus_L_GCJ=yes
17825       export_dynamic_flag_spec_GCJ='${wl}-E'
17826       ;;
17827
17828     hpux10*)
17829       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17830         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17831       else
17832         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17833       fi
17834       if test "$with_gnu_ld" = no; then
17835         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17836         hardcode_libdir_separator_GCJ=:
17837
17838         hardcode_direct_GCJ=yes
17839         export_dynamic_flag_spec_GCJ='${wl}-E'
17840
17841         # hardcode_minus_L: Not really in the search PATH,
17842         # but as the default location of the library.
17843         hardcode_minus_L_GCJ=yes
17844       fi
17845       ;;
17846
17847     hpux11*)
17848       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17849         case $host_cpu in
17850         hppa*64*)
17851           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17852           ;;
17853         ia64*)
17854           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17855           ;;
17856         *)
17857           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17858           ;;
17859         esac
17860       else
17861         case $host_cpu in
17862         hppa*64*)
17863           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17864           ;;
17865         ia64*)
17866           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17867           ;;
17868         *)
17869           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17870           ;;
17871         esac
17872       fi
17873       if test "$with_gnu_ld" = no; then
17874         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17875         hardcode_libdir_separator_GCJ=:
17876
17877         case $host_cpu in
17878         hppa*64*|ia64*)
17879           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17880           hardcode_direct_GCJ=no
17881           hardcode_shlibpath_var_GCJ=no
17882           ;;
17883         *)
17884           hardcode_direct_GCJ=yes
17885           export_dynamic_flag_spec_GCJ='${wl}-E'
17886
17887           # hardcode_minus_L: Not really in the search PATH,
17888           # but as the default location of the library.
17889           hardcode_minus_L_GCJ=yes
17890           ;;
17891         esac
17892       fi
17893       ;;
17894
17895     irix5* | irix6* | nonstopux*)
17896       if test "$GCC" = yes; then
17897         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'
17898       else
17899         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'
17900         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17901       fi
17902       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17903       hardcode_libdir_separator_GCJ=:
17904       link_all_deplibs_GCJ=yes
17905       ;;
17906
17907     netbsd*)
17908       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17909         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17910       else
17911         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17912       fi
17913       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17914       hardcode_direct_GCJ=yes
17915       hardcode_shlibpath_var_GCJ=no
17916       ;;
17917
17918     newsos6)
17919       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17920       hardcode_direct_GCJ=yes
17921       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17922       hardcode_libdir_separator_GCJ=:
17923       hardcode_shlibpath_var_GCJ=no
17924       ;;
17925
17926     openbsd*)
17927       if test -f /usr/libexec/ld.so; then
17928         hardcode_direct_GCJ=yes
17929         hardcode_shlibpath_var_GCJ=no
17930         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17931           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17932           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17933           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17934           export_dynamic_flag_spec_GCJ='${wl}-E'
17935         else
17936           case $host_os in
17937            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17938              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17939              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940              ;;
17941            *)
17942              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17943              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17944              ;;
17945           esac
17946         fi
17947       else
17948         ld_shlibs_GCJ=no
17949       fi
17950       ;;
17951
17952     os2*)
17953       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17954       hardcode_minus_L_GCJ=yes
17955       allow_undefined_flag_GCJ=unsupported
17956       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'
17957       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17958       ;;
17959
17960     osf3*)
17961       if test "$GCC" = yes; then
17962         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17963         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'
17964       else
17965         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17966         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'
17967       fi
17968       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17969       hardcode_libdir_separator_GCJ=:
17970       ;;
17971
17972     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17973       if test "$GCC" = yes; then
17974         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17975         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'
17976         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17977       else
17978         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17979         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'
17980         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~
17981         $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'
17982
17983         # Both c and cxx compiler support -rpath directly
17984         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17985       fi
17986       hardcode_libdir_separator_GCJ=:
17987       ;;
17988
17989     solaris*)
17990       no_undefined_flag_GCJ=' -z text'
17991       if test "$GCC" = yes; then
17992         wlarc='${wl}'
17993         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17994         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17995           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17996       else
17997         wlarc=''
17998         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17999         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18000         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18001       fi
18002       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18003       hardcode_shlibpath_var_GCJ=no
18004       case $host_os in
18005       solaris2.[0-5] | solaris2.[0-5].*) ;;
18006       *)
18007         # The compiler driver will combine and reorder linker options,
18008         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18009         # but is careful enough not to reorder.
18010         # Supported since Solaris 2.6 (maybe 2.5.1?)
18011         if test "$GCC" = yes; then
18012           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18013         else
18014           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18015         fi
18016         ;;
18017       esac
18018       link_all_deplibs_GCJ=yes
18019       ;;
18020
18021     sunos4*)
18022       if test "x$host_vendor" = xsequent; then
18023         # Use $CC to link under sequent, because it throws in some extra .o
18024         # files that make .init and .fini sections work.
18025         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18026       else
18027         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18028       fi
18029       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18030       hardcode_direct_GCJ=yes
18031       hardcode_minus_L_GCJ=yes
18032       hardcode_shlibpath_var_GCJ=no
18033       ;;
18034
18035     sysv4)
18036       case $host_vendor in
18037         sni)
18038           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039           hardcode_direct_GCJ=yes # is this really true???
18040         ;;
18041         siemens)
18042           ## LD is ld it makes a PLAMLIB
18043           ## CC just makes a GrossModule.
18044           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18045           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18046           hardcode_direct_GCJ=no
18047         ;;
18048         motorola)
18049           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18050           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18051         ;;
18052       esac
18053       runpath_var='LD_RUN_PATH'
18054       hardcode_shlibpath_var_GCJ=no
18055       ;;
18056
18057     sysv4.3*)
18058       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059       hardcode_shlibpath_var_GCJ=no
18060       export_dynamic_flag_spec_GCJ='-Bexport'
18061       ;;
18062
18063     sysv4*MP*)
18064       if test -d /usr/nec; then
18065         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18066         hardcode_shlibpath_var_GCJ=no
18067         runpath_var=LD_RUN_PATH
18068         hardcode_runpath_var=yes
18069         ld_shlibs_GCJ=yes
18070       fi
18071       ;;
18072
18073     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18074       no_undefined_flag_GCJ='${wl}-z,text'
18075       archive_cmds_need_lc_GCJ=no
18076       hardcode_shlibpath_var_GCJ=no
18077       runpath_var='LD_RUN_PATH'
18078
18079       if test "$GCC" = yes; then
18080         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18081         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18082       else
18083         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18084         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18085       fi
18086       ;;
18087
18088     sysv5* | sco3.2v5* | sco5v6*)
18089       # Note: We can NOT use -z defs as we might desire, because we do not
18090       # link with -lc, and that would cause any symbols used from libc to
18091       # always be unresolved, which means just about no library would
18092       # ever link correctly.  If we're not using GNU ld we use -z text
18093       # though, which does catch some bad symbols but isn't as heavy-handed
18094       # as -z defs.
18095       no_undefined_flag_GCJ='${wl}-z,text'
18096       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18097       archive_cmds_need_lc_GCJ=no
18098       hardcode_shlibpath_var_GCJ=no
18099       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18100       hardcode_libdir_separator_GCJ=':'
18101       link_all_deplibs_GCJ=yes
18102       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18103       runpath_var='LD_RUN_PATH'
18104
18105       if test "$GCC" = yes; then
18106         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18107         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18108       else
18109         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18111       fi
18112       ;;
18113
18114     uts4*)
18115       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18116       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18117       hardcode_shlibpath_var_GCJ=no
18118       ;;
18119
18120     *)
18121       ld_shlibs_GCJ=no
18122       ;;
18123     esac
18124   fi
18125
18126 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18127 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18128 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18129
18130 #
18131 # Do we need to explicitly link libc?
18132 #
18133 case "x$archive_cmds_need_lc_GCJ" in
18134 x|xyes)
18135   # Assume -lc should be added
18136   archive_cmds_need_lc_GCJ=yes
18137
18138   if test "$enable_shared" = yes && test "$GCC" = yes; then
18139     case $archive_cmds_GCJ in
18140     *'~'*)
18141       # FIXME: we may have to deal with multi-command sequences.
18142       ;;
18143     '$CC '*)
18144       # Test whether the compiler implicitly links with -lc since on some
18145       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18146       # to ld, don't add -lc before -lgcc.
18147       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18148 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18149       $rm conftest*
18150       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18151
18152       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153   (eval $ac_compile) 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } 2>conftest.err; then
18157         soname=conftest
18158         lib=conftest
18159         libobjs=conftest.$ac_objext
18160         deplibs=
18161         wl=$lt_prog_compiler_wl_GCJ
18162         pic_flag=$lt_prog_compiler_pic_GCJ
18163         compiler_flags=-v
18164         linker_flags=-v
18165         verstring=
18166         output_objdir=.
18167         libname=conftest
18168         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18169         allow_undefined_flag_GCJ=
18170         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18171   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }
18175         then
18176           archive_cmds_need_lc_GCJ=no
18177         else
18178           archive_cmds_need_lc_GCJ=yes
18179         fi
18180         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18181       else
18182         cat conftest.err 1>&5
18183       fi
18184       $rm conftest*
18185       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18186 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18187       ;;
18188     esac
18189   fi
18190   ;;
18191 esac
18192
18193 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18194 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18195 library_names_spec=
18196 libname_spec='lib$name'
18197 soname_spec=
18198 shrext_cmds=".so"
18199 postinstall_cmds=
18200 postuninstall_cmds=
18201 finish_cmds=
18202 finish_eval=
18203 shlibpath_var=
18204 shlibpath_overrides_runpath=unknown
18205 version_type=none
18206 dynamic_linker="$host_os ld.so"
18207 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18208
18209 need_lib_prefix=unknown
18210 hardcode_into_libs=no
18211
18212 # when you set need_version to no, make sure it does not cause -set_version
18213 # flags to be left without arguments
18214 need_version=unknown
18215
18216 case $host_os in
18217 aix3*)
18218   version_type=linux
18219   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18220   shlibpath_var=LIBPATH
18221
18222   # AIX 3 has no versioning support, so we append a major version to the name.
18223   soname_spec='${libname}${release}${shared_ext}$major'
18224   ;;
18225
18226 aix4* | aix5*)
18227   version_type=linux
18228   need_lib_prefix=no
18229   need_version=no
18230   hardcode_into_libs=yes
18231   if test "$host_cpu" = ia64; then
18232     # AIX 5 supports IA64
18233     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18234     shlibpath_var=LD_LIBRARY_PATH
18235   else
18236     # With GCC up to 2.95.x, collect2 would create an import file
18237     # for dependence libraries.  The import file would start with
18238     # the line `#! .'.  This would cause the generated library to
18239     # depend on `.', always an invalid library.  This was fixed in
18240     # development snapshots of GCC prior to 3.0.
18241     case $host_os in
18242       aix4 | aix4.[01] | aix4.[01].*)
18243       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18244            echo ' yes '
18245            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18246         :
18247       else
18248         can_build_shared=no
18249       fi
18250       ;;
18251     esac
18252     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18253     # soname into executable. Probably we can add versioning support to
18254     # collect2, so additional links can be useful in future.
18255     if test "$aix_use_runtimelinking" = yes; then
18256       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18257       # instead of lib<name>.a to let people know that these are not
18258       # typical AIX shared libraries.
18259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260     else
18261       # We preserve .a as extension for shared libraries through AIX4.2
18262       # and later when we are not doing run time linking.
18263       library_names_spec='${libname}${release}.a $libname.a'
18264       soname_spec='${libname}${release}${shared_ext}$major'
18265     fi
18266     shlibpath_var=LIBPATH
18267   fi
18268   ;;
18269
18270 amigaos*)
18271   library_names_spec='$libname.ixlibrary $libname.a'
18272   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18273   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'
18274   ;;
18275
18276 beos*)
18277   library_names_spec='${libname}${shared_ext}'
18278   dynamic_linker="$host_os ld.so"
18279   shlibpath_var=LIBRARY_PATH
18280   ;;
18281
18282 bsdi[45]*)
18283   version_type=linux
18284   need_version=no
18285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286   soname_spec='${libname}${release}${shared_ext}$major'
18287   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18288   shlibpath_var=LD_LIBRARY_PATH
18289   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18290   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18291   # the default ld.so.conf also contains /usr/contrib/lib and
18292   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18293   # libtool to hard-code these into programs
18294   ;;
18295
18296 cygwin* | mingw* | pw32*)
18297   version_type=windows
18298   shrext_cmds=".dll"
18299   need_version=no
18300   need_lib_prefix=no
18301
18302   case $GCC,$host_os in
18303   yes,cygwin* | yes,mingw* | yes,pw32*)
18304     library_names_spec='$libname.dll.a'
18305     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18306     postinstall_cmds='base_file=`basename \${file}`~
18307       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18308       dldir=$destdir/`dirname \$dlpath`~
18309       test -d \$dldir || mkdir -p \$dldir~
18310       $install_prog $dir/$dlname \$dldir/$dlname~
18311       chmod a+x \$dldir/$dlname'
18312     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18313       dlpath=$dir/\$dldll~
18314        $rm \$dlpath'
18315     shlibpath_overrides_runpath=yes
18316
18317     case $host_os in
18318     cygwin*)
18319       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18320       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18321       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18322       ;;
18323     mingw*)
18324       # MinGW DLLs use traditional 'lib' prefix
18325       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18326       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18327       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18328         # It is most probably a Windows format PATH printed by
18329         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18330         # path with ; separators, and with drive letters. We can handle the
18331         # drive letters (cygwin fileutils understands them), so leave them,
18332         # especially as we might pass files found there to a mingw objdump,
18333         # which wouldn't understand a cygwinified path. Ahh.
18334         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18335       else
18336         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18337       fi
18338       ;;
18339     pw32*)
18340       # pw32 DLLs use 'pw' prefix rather than 'lib'
18341       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342       ;;
18343     esac
18344     ;;
18345
18346   *)
18347     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18348     ;;
18349   esac
18350   dynamic_linker='Win32 ld.exe'
18351   # FIXME: first we should search . and the directory the executable is in
18352   shlibpath_var=PATH
18353   ;;
18354
18355 darwin* | rhapsody*)
18356   dynamic_linker="$host_os dyld"
18357   version_type=darwin
18358   need_lib_prefix=no
18359   need_version=no
18360   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18361   soname_spec='${libname}${release}${major}$shared_ext'
18362   shlibpath_overrides_runpath=yes
18363   shlibpath_var=DYLD_LIBRARY_PATH
18364   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18365
18366   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18367   ;;
18368
18369 dgux*)
18370   version_type=linux
18371   need_lib_prefix=no
18372   need_version=no
18373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18374   soname_spec='${libname}${release}${shared_ext}$major'
18375   shlibpath_var=LD_LIBRARY_PATH
18376   ;;
18377
18378 freebsd1*)
18379   dynamic_linker=no
18380   ;;
18381
18382 freebsd* | dragonfly*)
18383   # DragonFly does not have aout.  When/if they implement a new
18384   # versioning mechanism, adjust this.
18385   if test -x /usr/bin/objformat; then
18386     objformat=`/usr/bin/objformat`
18387   else
18388     case $host_os in
18389     freebsd[123]*) objformat=aout ;;
18390     *) objformat=elf ;;
18391     esac
18392   fi
18393   # Handle Gentoo/FreeBSD as it was Linux
18394   case $host_vendor in
18395     gentoo)
18396       version_type=linux ;;
18397     *)
18398       version_type=freebsd-$objformat ;;
18399   esac
18400
18401   case $version_type in
18402     freebsd-elf*)
18403       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18404       need_version=no
18405       need_lib_prefix=no
18406       ;;
18407     freebsd-*)
18408       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18409       need_version=yes
18410       ;;
18411     linux)
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       need_lib_prefix=no
18415       need_version=no
18416       ;;
18417   esac
18418   shlibpath_var=LD_LIBRARY_PATH
18419   case $host_os in
18420   freebsd2*)
18421     shlibpath_overrides_runpath=yes
18422     ;;
18423   freebsd3.[01]* | freebsdelf3.[01]*)
18424     shlibpath_overrides_runpath=yes
18425     hardcode_into_libs=yes
18426     ;;
18427   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18428   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18429     shlibpath_overrides_runpath=no
18430     hardcode_into_libs=yes
18431     ;;
18432   *) # from 4.6 on, and DragonFly
18433     shlibpath_overrides_runpath=yes
18434     hardcode_into_libs=yes
18435     ;;
18436   esac
18437   ;;
18438
18439 gnu*)
18440   version_type=linux
18441   need_lib_prefix=no
18442   need_version=no
18443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18444   soname_spec='${libname}${release}${shared_ext}$major'
18445   shlibpath_var=LD_LIBRARY_PATH
18446   hardcode_into_libs=yes
18447   ;;
18448
18449 hpux9* | hpux10* | hpux11*)
18450   # Give a soname corresponding to the major version so that dld.sl refuses to
18451   # link against other versions.
18452   version_type=sunos
18453   need_lib_prefix=no
18454   need_version=no
18455   case $host_cpu in
18456   ia64*)
18457     shrext_cmds='.so'
18458     hardcode_into_libs=yes
18459     dynamic_linker="$host_os dld.so"
18460     shlibpath_var=LD_LIBRARY_PATH
18461     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18463     soname_spec='${libname}${release}${shared_ext}$major'
18464     if test "X$HPUX_IA64_MODE" = X32; then
18465       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18466     else
18467       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18468     fi
18469     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18470     ;;
18471    hppa*64*)
18472      shrext_cmds='.sl'
18473      hardcode_into_libs=yes
18474      dynamic_linker="$host_os dld.sl"
18475      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18476      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18477      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478      soname_spec='${libname}${release}${shared_ext}$major'
18479      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18480      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18481      ;;
18482    *)
18483     shrext_cmds='.sl'
18484     dynamic_linker="$host_os dld.sl"
18485     shlibpath_var=SHLIB_PATH
18486     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488     soname_spec='${libname}${release}${shared_ext}$major'
18489     ;;
18490   esac
18491   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18492   postinstall_cmds='chmod 555 $lib'
18493   ;;
18494
18495 interix[3-9]*)
18496   version_type=linux
18497   need_lib_prefix=no
18498   need_version=no
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500   soname_spec='${libname}${release}${shared_ext}$major'
18501   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18502   shlibpath_var=LD_LIBRARY_PATH
18503   shlibpath_overrides_runpath=no
18504   hardcode_into_libs=yes
18505   ;;
18506
18507 irix5* | irix6* | nonstopux*)
18508   case $host_os in
18509     nonstopux*) version_type=nonstopux ;;
18510     *)
18511         if test "$lt_cv_prog_gnu_ld" = yes; then
18512                 version_type=linux
18513         else
18514                 version_type=irix
18515         fi ;;
18516   esac
18517   need_lib_prefix=no
18518   need_version=no
18519   soname_spec='${libname}${release}${shared_ext}$major'
18520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18521   case $host_os in
18522   irix5* | nonstopux*)
18523     libsuff= shlibsuff=
18524     ;;
18525   *)
18526     case $LD in # libtool.m4 will add one of these switches to LD
18527     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18528       libsuff= shlibsuff= libmagic=32-bit;;
18529     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18530       libsuff=32 shlibsuff=N32 libmagic=N32;;
18531     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18532       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18533     *) libsuff= shlibsuff= libmagic=never-match;;
18534     esac
18535     ;;
18536   esac
18537   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18538   shlibpath_overrides_runpath=no
18539   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18540   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18541   hardcode_into_libs=yes
18542   ;;
18543
18544 # No shared lib support for Linux oldld, aout, or coff.
18545 linux*oldld* | linux*aout* | linux*coff*)
18546   dynamic_linker=no
18547   ;;
18548
18549 # This must be Linux ELF.
18550 linux* | k*bsd*-gnu)
18551   version_type=linux
18552   need_lib_prefix=no
18553   need_version=no
18554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18555   soname_spec='${libname}${release}${shared_ext}$major'
18556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18557   shlibpath_var=LD_LIBRARY_PATH
18558   shlibpath_overrides_runpath=no
18559   # This implies no fast_install, which is unacceptable.
18560   # Some rework will be needed to allow for fast_install
18561   # before this can be enabled.
18562   hardcode_into_libs=yes
18563
18564   # Append ld.so.conf contents to the search path
18565   if test -f /etc/ld.so.conf; then
18566     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18567     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18568   fi
18569
18570   # We used to test for /lib/ld.so.1 and disable shared libraries on
18571   # powerpc, because MkLinux only supported shared libraries with the
18572   # GNU dynamic linker.  Since this was broken with cross compilers,
18573   # most powerpc-linux boxes support dynamic linking these days and
18574   # people can always --disable-shared, the test was removed, and we
18575   # assume the GNU/Linux dynamic linker is in use.
18576   dynamic_linker='GNU/Linux ld.so'
18577   ;;
18578
18579 netbsd*)
18580   version_type=sunos
18581   need_lib_prefix=no
18582   need_version=no
18583   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18585     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18586     dynamic_linker='NetBSD (a.out) ld.so'
18587   else
18588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18589     soname_spec='${libname}${release}${shared_ext}$major'
18590     dynamic_linker='NetBSD ld.elf_so'
18591   fi
18592   shlibpath_var=LD_LIBRARY_PATH
18593   shlibpath_overrides_runpath=yes
18594   hardcode_into_libs=yes
18595   ;;
18596
18597 newsos6)
18598   version_type=linux
18599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600   shlibpath_var=LD_LIBRARY_PATH
18601   shlibpath_overrides_runpath=yes
18602   ;;
18603
18604 nto-qnx*)
18605   version_type=linux
18606   need_lib_prefix=no
18607   need_version=no
18608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609   soname_spec='${libname}${release}${shared_ext}$major'
18610   shlibpath_var=LD_LIBRARY_PATH
18611   shlibpath_overrides_runpath=yes
18612   ;;
18613
18614 openbsd*)
18615   version_type=sunos
18616   sys_lib_dlsearch_path_spec="/usr/lib"
18617   need_lib_prefix=no
18618   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18619   case $host_os in
18620     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18621     *)                         need_version=no  ;;
18622   esac
18623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18624   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18625   shlibpath_var=LD_LIBRARY_PATH
18626   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18627     case $host_os in
18628       openbsd2.[89] | openbsd2.[89].*)
18629         shlibpath_overrides_runpath=no
18630         ;;
18631       *)
18632         shlibpath_overrides_runpath=yes
18633         ;;
18634       esac
18635   else
18636     shlibpath_overrides_runpath=yes
18637   fi
18638   ;;
18639
18640 os2*)
18641   libname_spec='$name'
18642   shrext_cmds=".dll"
18643   need_lib_prefix=no
18644   library_names_spec='$libname${shared_ext} $libname.a'
18645   dynamic_linker='OS/2 ld.exe'
18646   shlibpath_var=LIBPATH
18647   ;;
18648
18649 osf3* | osf4* | osf5*)
18650   version_type=osf
18651   need_lib_prefix=no
18652   need_version=no
18653   soname_spec='${libname}${release}${shared_ext}$major'
18654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655   shlibpath_var=LD_LIBRARY_PATH
18656   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18657   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18658   ;;
18659
18660 rdos*)
18661   dynamic_linker=no
18662   ;;
18663
18664 solaris*)
18665   version_type=linux
18666   need_lib_prefix=no
18667   need_version=no
18668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669   soname_spec='${libname}${release}${shared_ext}$major'
18670   shlibpath_var=LD_LIBRARY_PATH
18671   shlibpath_overrides_runpath=yes
18672   hardcode_into_libs=yes
18673   # ldd complains unless libraries are executable
18674   postinstall_cmds='chmod +x $lib'
18675   ;;
18676
18677 sunos4*)
18678   version_type=sunos
18679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18681   shlibpath_var=LD_LIBRARY_PATH
18682   shlibpath_overrides_runpath=yes
18683   if test "$with_gnu_ld" = yes; then
18684     need_lib_prefix=no
18685   fi
18686   need_version=yes
18687   ;;
18688
18689 sysv4 | sysv4.3*)
18690   version_type=linux
18691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692   soname_spec='${libname}${release}${shared_ext}$major'
18693   shlibpath_var=LD_LIBRARY_PATH
18694   case $host_vendor in
18695     sni)
18696       shlibpath_overrides_runpath=no
18697       need_lib_prefix=no
18698       export_dynamic_flag_spec='${wl}-Blargedynsym'
18699       runpath_var=LD_RUN_PATH
18700       ;;
18701     siemens)
18702       need_lib_prefix=no
18703       ;;
18704     motorola)
18705       need_lib_prefix=no
18706       need_version=no
18707       shlibpath_overrides_runpath=no
18708       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18709       ;;
18710   esac
18711   ;;
18712
18713 sysv4*MP*)
18714   if test -d /usr/nec ;then
18715     version_type=linux
18716     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18717     soname_spec='$libname${shared_ext}.$major'
18718     shlibpath_var=LD_LIBRARY_PATH
18719   fi
18720   ;;
18721
18722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18723   version_type=freebsd-elf
18724   need_lib_prefix=no
18725   need_version=no
18726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18727   soname_spec='${libname}${release}${shared_ext}$major'
18728   shlibpath_var=LD_LIBRARY_PATH
18729   hardcode_into_libs=yes
18730   if test "$with_gnu_ld" = yes; then
18731     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18732     shlibpath_overrides_runpath=no
18733   else
18734     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18735     shlibpath_overrides_runpath=yes
18736     case $host_os in
18737       sco3.2v5*)
18738         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18739         ;;
18740     esac
18741   fi
18742   sys_lib_dlsearch_path_spec='/usr/lib'
18743   ;;
18744
18745 uts4*)
18746   version_type=linux
18747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748   soname_spec='${libname}${release}${shared_ext}$major'
18749   shlibpath_var=LD_LIBRARY_PATH
18750   ;;
18751
18752 *)
18753   dynamic_linker=no
18754   ;;
18755 esac
18756 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18757 echo "${ECHO_T}$dynamic_linker" >&6; }
18758 test "$dynamic_linker" = no && can_build_shared=no
18759
18760 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18761 if test "$GCC" = yes; then
18762   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18763 fi
18764
18765 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18766 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18767 hardcode_action_GCJ=
18768 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18769    test -n "$runpath_var_GCJ" || \
18770    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18771
18772   # We can hardcode non-existant directories.
18773   if test "$hardcode_direct_GCJ" != no &&
18774      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18775      # have to relink, otherwise we might link with an installed library
18776      # when we should be linking with a yet-to-be-installed one
18777      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18778      test "$hardcode_minus_L_GCJ" != no; then
18779     # Linking always hardcodes the temporary library directory.
18780     hardcode_action_GCJ=relink
18781   else
18782     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18783     hardcode_action_GCJ=immediate
18784   fi
18785 else
18786   # We cannot hardcode anything, or else we can only hardcode existing
18787   # directories.
18788   hardcode_action_GCJ=unsupported
18789 fi
18790 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18791 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18792
18793 if test "$hardcode_action_GCJ" = relink; then
18794   # Fast installation is not supported
18795   enable_fast_install=no
18796 elif test "$shlibpath_overrides_runpath" = yes ||
18797      test "$enable_shared" = no; then
18798   # Fast installation is not necessary
18799   enable_fast_install=needless
18800 fi
18801
18802
18803 # The else clause should only fire when bootstrapping the
18804 # libtool distribution, otherwise you forgot to ship ltmain.sh
18805 # with your package, and you will get complaints that there are
18806 # no rules to generate ltmain.sh.
18807 if test -f "$ltmain"; then
18808   # See if we are running on zsh, and set the options which allow our commands through
18809   # without removal of \ escapes.
18810   if test -n "${ZSH_VERSION+set}" ; then
18811     setopt NO_GLOB_SUBST
18812   fi
18813   # Now quote all the things that may contain metacharacters while being
18814   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18815   # variables and quote the copies for generation of the libtool script.
18816   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18817     SED SHELL STRIP \
18818     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18819     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18820     deplibs_check_method reload_flag reload_cmds need_locks \
18821     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18822     lt_cv_sys_global_symbol_to_c_name_address \
18823     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18824     old_postinstall_cmds old_postuninstall_cmds \
18825     compiler_GCJ \
18826     CC_GCJ \
18827     LD_GCJ \
18828     lt_prog_compiler_wl_GCJ \
18829     lt_prog_compiler_pic_GCJ \
18830     lt_prog_compiler_static_GCJ \
18831     lt_prog_compiler_no_builtin_flag_GCJ \
18832     export_dynamic_flag_spec_GCJ \
18833     thread_safe_flag_spec_GCJ \
18834     whole_archive_flag_spec_GCJ \
18835     enable_shared_with_static_runtimes_GCJ \
18836     old_archive_cmds_GCJ \
18837     old_archive_from_new_cmds_GCJ \
18838     predep_objects_GCJ \
18839     postdep_objects_GCJ \
18840     predeps_GCJ \
18841     postdeps_GCJ \
18842     compiler_lib_search_path_GCJ \
18843     archive_cmds_GCJ \
18844     archive_expsym_cmds_GCJ \
18845     postinstall_cmds_GCJ \
18846     postuninstall_cmds_GCJ \
18847     old_archive_from_expsyms_cmds_GCJ \
18848     allow_undefined_flag_GCJ \
18849     no_undefined_flag_GCJ \
18850     export_symbols_cmds_GCJ \
18851     hardcode_libdir_flag_spec_GCJ \
18852     hardcode_libdir_flag_spec_ld_GCJ \
18853     hardcode_libdir_separator_GCJ \
18854     hardcode_automatic_GCJ \
18855     module_cmds_GCJ \
18856     module_expsym_cmds_GCJ \
18857     lt_cv_prog_compiler_c_o_GCJ \
18858     fix_srcfile_path_GCJ \
18859     exclude_expsyms_GCJ \
18860     include_expsyms_GCJ; do
18861
18862     case $var in
18863     old_archive_cmds_GCJ | \
18864     old_archive_from_new_cmds_GCJ | \
18865     archive_cmds_GCJ | \
18866     archive_expsym_cmds_GCJ | \
18867     module_cmds_GCJ | \
18868     module_expsym_cmds_GCJ | \
18869     old_archive_from_expsyms_cmds_GCJ | \
18870     export_symbols_cmds_GCJ | \
18871     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18872     postinstall_cmds | postuninstall_cmds | \
18873     old_postinstall_cmds | old_postuninstall_cmds | \
18874     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18875       # Double-quote double-evaled strings.
18876       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18877       ;;
18878     *)
18879       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18880       ;;
18881     esac
18882   done
18883
18884   case $lt_echo in
18885   *'\$0 --fallback-echo"')
18886     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18887     ;;
18888   esac
18889
18890 cfgfile="$ofile"
18891
18892   cat <<__EOF__ >> "$cfgfile"
18893 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18894
18895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18896
18897 # Shell to use when invoking shell scripts.
18898 SHELL=$lt_SHELL
18899
18900 # Whether or not to build shared libraries.
18901 build_libtool_libs=$enable_shared
18902
18903 # Whether or not to build static libraries.
18904 build_old_libs=$enable_static
18905
18906 # Whether or not to add -lc for building shared libraries.
18907 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18908
18909 # Whether or not to disallow shared libs when runtime libs are static
18910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18911
18912 # Whether or not to optimize for fast installation.
18913 fast_install=$enable_fast_install
18914
18915 # The host system.
18916 host_alias=$host_alias
18917 host=$host
18918 host_os=$host_os
18919
18920 # The build system.
18921 build_alias=$build_alias
18922 build=$build
18923 build_os=$build_os
18924
18925 # An echo program that does not interpret backslashes.
18926 echo=$lt_echo
18927
18928 # The archiver.
18929 AR=$lt_AR
18930 AR_FLAGS=$lt_AR_FLAGS
18931
18932 # A C compiler.
18933 LTCC=$lt_LTCC
18934
18935 # LTCC compiler flags.
18936 LTCFLAGS=$lt_LTCFLAGS
18937
18938 # A language-specific compiler.
18939 CC=$lt_compiler_GCJ
18940
18941 # Is the compiler the GNU C compiler?
18942 with_gcc=$GCC_GCJ
18943
18944 # An ERE matcher.
18945 EGREP=$lt_EGREP
18946
18947 # The linker used to build libraries.
18948 LD=$lt_LD_GCJ
18949
18950 # Whether we need hard or soft links.
18951 LN_S=$lt_LN_S
18952
18953 # A BSD-compatible nm program.
18954 NM=$lt_NM
18955
18956 # A symbol stripping program
18957 STRIP=$lt_STRIP
18958
18959 # Used to examine libraries when file_magic_cmd begins "file"
18960 MAGIC_CMD=$MAGIC_CMD
18961
18962 # Used on cygwin: DLL creation program.
18963 DLLTOOL="$DLLTOOL"
18964
18965 # Used on cygwin: object dumper.
18966 OBJDUMP="$OBJDUMP"
18967
18968 # Used on cygwin: assembler.
18969 AS="$AS"
18970
18971 # The name of the directory that contains temporary libtool files.
18972 objdir=$objdir
18973
18974 # How to create reloadable object files.
18975 reload_flag=$lt_reload_flag
18976 reload_cmds=$lt_reload_cmds
18977
18978 # How to pass a linker flag through the compiler.
18979 wl=$lt_lt_prog_compiler_wl_GCJ
18980
18981 # Object file suffix (normally "o").
18982 objext="$ac_objext"
18983
18984 # Old archive suffix (normally "a").
18985 libext="$libext"
18986
18987 # Shared library suffix (normally ".so").
18988 shrext_cmds='$shrext_cmds'
18989
18990 # Executable file suffix (normally "").
18991 exeext="$exeext"
18992
18993 # Additional compiler flags for building library objects.
18994 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18995 pic_mode=$pic_mode
18996
18997 # What is the maximum length of a command?
18998 max_cmd_len=$lt_cv_sys_max_cmd_len
18999
19000 # Does compiler simultaneously support -c and -o options?
19001 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19002
19003 # Must we lock files when doing compilation?
19004 need_locks=$lt_need_locks
19005
19006 # Do we need the lib prefix for modules?
19007 need_lib_prefix=$need_lib_prefix
19008
19009 # Do we need a version for libraries?
19010 need_version=$need_version
19011
19012 # Whether dlopen is supported.
19013 dlopen_support=$enable_dlopen
19014
19015 # Whether dlopen of programs is supported.
19016 dlopen_self=$enable_dlopen_self
19017
19018 # Whether dlopen of statically linked programs is supported.
19019 dlopen_self_static=$enable_dlopen_self_static
19020
19021 # Compiler flag to prevent dynamic linking.
19022 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19023
19024 # Compiler flag to turn off builtin functions.
19025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19026
19027 # Compiler flag to allow reflexive dlopens.
19028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19029
19030 # Compiler flag to generate shared objects directly from archives.
19031 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19032
19033 # Compiler flag to generate thread-safe objects.
19034 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19035
19036 # Library versioning type.
19037 version_type=$version_type
19038
19039 # Format of library name prefix.
19040 libname_spec=$lt_libname_spec
19041
19042 # List of archive names.  First name is the real one, the rest are links.
19043 # The last name is the one that the linker finds with -lNAME.
19044 library_names_spec=$lt_library_names_spec
19045
19046 # The coded name of the library, if different from the real name.
19047 soname_spec=$lt_soname_spec
19048
19049 # Commands used to build and install an old-style archive.
19050 RANLIB=$lt_RANLIB
19051 old_archive_cmds=$lt_old_archive_cmds_GCJ
19052 old_postinstall_cmds=$lt_old_postinstall_cmds
19053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19054
19055 # Create an old-style archive from a shared archive.
19056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19057
19058 # Create a temporary old-style archive to link instead of a shared archive.
19059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19060
19061 # Commands used to build and install a shared archive.
19062 archive_cmds=$lt_archive_cmds_GCJ
19063 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19064 postinstall_cmds=$lt_postinstall_cmds
19065 postuninstall_cmds=$lt_postuninstall_cmds
19066
19067 # Commands used to build a loadable module (assumed same as above if empty)
19068 module_cmds=$lt_module_cmds_GCJ
19069 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19070
19071 # Commands to strip libraries.
19072 old_striplib=$lt_old_striplib
19073 striplib=$lt_striplib
19074
19075 # Dependencies to place before the objects being linked to create a
19076 # shared library.
19077 predep_objects=$lt_predep_objects_GCJ
19078
19079 # Dependencies to place after the objects being linked to create a
19080 # shared library.
19081 postdep_objects=$lt_postdep_objects_GCJ
19082
19083 # Dependencies to place before the objects being linked to create a
19084 # shared library.
19085 predeps=$lt_predeps_GCJ
19086
19087 # Dependencies to place after the objects being linked to create a
19088 # shared library.
19089 postdeps=$lt_postdeps_GCJ
19090
19091 # The library search path used internally by the compiler when linking
19092 # a shared library.
19093 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19094
19095 # Method to check whether dependent libraries are shared objects.
19096 deplibs_check_method=$lt_deplibs_check_method
19097
19098 # Command to use when deplibs_check_method == file_magic.
19099 file_magic_cmd=$lt_file_magic_cmd
19100
19101 # Flag that allows shared libraries with undefined symbols to be built.
19102 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19103
19104 # Flag that forces no undefined symbols.
19105 no_undefined_flag=$lt_no_undefined_flag_GCJ
19106
19107 # Commands used to finish a libtool library installation in a directory.
19108 finish_cmds=$lt_finish_cmds
19109
19110 # Same as above, but a single script fragment to be evaled but not shown.
19111 finish_eval=$lt_finish_eval
19112
19113 # Take the output of nm and produce a listing of raw symbols and C names.
19114 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19115
19116 # Transform the output of nm in a proper C declaration
19117 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19118
19119 # Transform the output of nm in a C name address pair
19120 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19121
19122 # This is the shared library runtime path variable.
19123 runpath_var=$runpath_var
19124
19125 # This is the shared library path variable.
19126 shlibpath_var=$shlibpath_var
19127
19128 # Is shlibpath searched before the hard-coded library search path?
19129 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19130
19131 # How to hardcode a shared library path into an executable.
19132 hardcode_action=$hardcode_action_GCJ
19133
19134 # Whether we should hardcode library paths into libraries.
19135 hardcode_into_libs=$hardcode_into_libs
19136
19137 # Flag to hardcode \$libdir into a binary during linking.
19138 # This must work even if \$libdir does not exist.
19139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19140
19141 # If ld is used when linking, flag to hardcode \$libdir into
19142 # a binary during linking. This must work even if \$libdir does
19143 # not exist.
19144 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19145
19146 # Whether we need a single -rpath flag with a separated argument.
19147 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19148
19149 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19150 # resulting binary.
19151 hardcode_direct=$hardcode_direct_GCJ
19152
19153 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19154 # resulting binary.
19155 hardcode_minus_L=$hardcode_minus_L_GCJ
19156
19157 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19158 # the resulting binary.
19159 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19160
19161 # Set to yes if building a shared library automatically hardcodes DIR into the library
19162 # and all subsequent libraries and executables linked against it.
19163 hardcode_automatic=$hardcode_automatic_GCJ
19164
19165 # Variables whose values should be saved in libtool wrapper scripts and
19166 # restored at relink time.
19167 variables_saved_for_relink="$variables_saved_for_relink"
19168
19169 # Whether libtool must link a program against all its dependency libraries.
19170 link_all_deplibs=$link_all_deplibs_GCJ
19171
19172 # Compile-time system search path for libraries
19173 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19174
19175 # Run-time system search path for libraries
19176 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19177
19178 # Fix the shell variable \$srcfile for the compiler.
19179 fix_srcfile_path=$lt_fix_srcfile_path
19180
19181 # Set to yes if exported symbols are required.
19182 always_export_symbols=$always_export_symbols_GCJ
19183
19184 # The commands to list exported symbols.
19185 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19186
19187 # The commands to extract the exported symbol list from a shared archive.
19188 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19189
19190 # Symbols that should not be listed in the preloaded symbols.
19191 exclude_expsyms=$lt_exclude_expsyms_GCJ
19192
19193 # Symbols that must always be exported.
19194 include_expsyms=$lt_include_expsyms_GCJ
19195
19196 # ### END LIBTOOL TAG CONFIG: $tagname
19197
19198 __EOF__
19199
19200
19201 else
19202   # If there is no Makefile yet, we rely on a make rule to execute
19203   # `config.status --recheck' to rerun these tests and create the
19204   # libtool script then.
19205   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19206   if test -f "$ltmain_in"; then
19207     test -f Makefile && make "$ltmain"
19208   fi
19209 fi
19210
19211
19212 ac_ext=c
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217
19218 CC="$lt_save_CC"
19219
19220         else
19221           tagname=""
19222         fi
19223         ;;
19224
19225       RC)
19226
19227
19228 # Source file extension for RC test sources.
19229 ac_ext=rc
19230
19231 # Object file extension for compiled RC test sources.
19232 objext=o
19233 objext_RC=$objext
19234
19235 # Code to be used in simple compile tests
19236 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19237
19238 # Code to be used in simple link tests
19239 lt_simple_link_test_code="$lt_simple_compile_test_code"
19240
19241 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19242
19243 # If no C compiler was specified, use CC.
19244 LTCC=${LTCC-"$CC"}
19245
19246 # If no C compiler flags were specified, use CFLAGS.
19247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19248
19249 # Allow CC to be a program name with arguments.
19250 compiler=$CC
19251
19252
19253 # save warnings/boilerplate of simple test code
19254 ac_outfile=conftest.$ac_objext
19255 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19257 _lt_compiler_boilerplate=`cat conftest.err`
19258 $rm conftest*
19259
19260 ac_outfile=conftest.$ac_objext
19261 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19263 _lt_linker_boilerplate=`cat conftest.err`
19264 $rm conftest*
19265
19266
19267 # Allow CC to be a program name with arguments.
19268 lt_save_CC="$CC"
19269 CC=${RC-"windres"}
19270 compiler=$CC
19271 compiler_RC=$CC
19272 for cc_temp in $compiler""; do
19273   case $cc_temp in
19274     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19275     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19276     \-*) ;;
19277     *) break;;
19278   esac
19279 done
19280 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19281
19282 lt_cv_prog_compiler_c_o_RC=yes
19283
19284 # The else clause should only fire when bootstrapping the
19285 # libtool distribution, otherwise you forgot to ship ltmain.sh
19286 # with your package, and you will get complaints that there are
19287 # no rules to generate ltmain.sh.
19288 if test -f "$ltmain"; then
19289   # See if we are running on zsh, and set the options which allow our commands through
19290   # without removal of \ escapes.
19291   if test -n "${ZSH_VERSION+set}" ; then
19292     setopt NO_GLOB_SUBST
19293   fi
19294   # Now quote all the things that may contain metacharacters while being
19295   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19296   # variables and quote the copies for generation of the libtool script.
19297   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19298     SED SHELL STRIP \
19299     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19300     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19301     deplibs_check_method reload_flag reload_cmds need_locks \
19302     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19303     lt_cv_sys_global_symbol_to_c_name_address \
19304     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19305     old_postinstall_cmds old_postuninstall_cmds \
19306     compiler_RC \
19307     CC_RC \
19308     LD_RC \
19309     lt_prog_compiler_wl_RC \
19310     lt_prog_compiler_pic_RC \
19311     lt_prog_compiler_static_RC \
19312     lt_prog_compiler_no_builtin_flag_RC \
19313     export_dynamic_flag_spec_RC \
19314     thread_safe_flag_spec_RC \
19315     whole_archive_flag_spec_RC \
19316     enable_shared_with_static_runtimes_RC \
19317     old_archive_cmds_RC \
19318     old_archive_from_new_cmds_RC \
19319     predep_objects_RC \
19320     postdep_objects_RC \
19321     predeps_RC \
19322     postdeps_RC \
19323     compiler_lib_search_path_RC \
19324     archive_cmds_RC \
19325     archive_expsym_cmds_RC \
19326     postinstall_cmds_RC \
19327     postuninstall_cmds_RC \
19328     old_archive_from_expsyms_cmds_RC \
19329     allow_undefined_flag_RC \
19330     no_undefined_flag_RC \
19331     export_symbols_cmds_RC \
19332     hardcode_libdir_flag_spec_RC \
19333     hardcode_libdir_flag_spec_ld_RC \
19334     hardcode_libdir_separator_RC \
19335     hardcode_automatic_RC \
19336     module_cmds_RC \
19337     module_expsym_cmds_RC \
19338     lt_cv_prog_compiler_c_o_RC \
19339     fix_srcfile_path_RC \
19340     exclude_expsyms_RC \
19341     include_expsyms_RC; do
19342
19343     case $var in
19344     old_archive_cmds_RC | \
19345     old_archive_from_new_cmds_RC | \
19346     archive_cmds_RC | \
19347     archive_expsym_cmds_RC | \
19348     module_cmds_RC | \
19349     module_expsym_cmds_RC | \
19350     old_archive_from_expsyms_cmds_RC | \
19351     export_symbols_cmds_RC | \
19352     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19353     postinstall_cmds | postuninstall_cmds | \
19354     old_postinstall_cmds | old_postuninstall_cmds | \
19355     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19356       # Double-quote double-evaled strings.
19357       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19358       ;;
19359     *)
19360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19361       ;;
19362     esac
19363   done
19364
19365   case $lt_echo in
19366   *'\$0 --fallback-echo"')
19367     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19368     ;;
19369   esac
19370
19371 cfgfile="$ofile"
19372
19373   cat <<__EOF__ >> "$cfgfile"
19374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19375
19376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19377
19378 # Shell to use when invoking shell scripts.
19379 SHELL=$lt_SHELL
19380
19381 # Whether or not to build shared libraries.
19382 build_libtool_libs=$enable_shared
19383
19384 # Whether or not to build static libraries.
19385 build_old_libs=$enable_static
19386
19387 # Whether or not to add -lc for building shared libraries.
19388 build_libtool_need_lc=$archive_cmds_need_lc_RC
19389
19390 # Whether or not to disallow shared libs when runtime libs are static
19391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19392
19393 # Whether or not to optimize for fast installation.
19394 fast_install=$enable_fast_install
19395
19396 # The host system.
19397 host_alias=$host_alias
19398 host=$host
19399 host_os=$host_os
19400
19401 # The build system.
19402 build_alias=$build_alias
19403 build=$build
19404 build_os=$build_os
19405
19406 # An echo program that does not interpret backslashes.
19407 echo=$lt_echo
19408
19409 # The archiver.
19410 AR=$lt_AR
19411 AR_FLAGS=$lt_AR_FLAGS
19412
19413 # A C compiler.
19414 LTCC=$lt_LTCC
19415
19416 # LTCC compiler flags.
19417 LTCFLAGS=$lt_LTCFLAGS
19418
19419 # A language-specific compiler.
19420 CC=$lt_compiler_RC
19421
19422 # Is the compiler the GNU C compiler?
19423 with_gcc=$GCC_RC
19424
19425 # An ERE matcher.
19426 EGREP=$lt_EGREP
19427
19428 # The linker used to build libraries.
19429 LD=$lt_LD_RC
19430
19431 # Whether we need hard or soft links.
19432 LN_S=$lt_LN_S
19433
19434 # A BSD-compatible nm program.
19435 NM=$lt_NM
19436
19437 # A symbol stripping program
19438 STRIP=$lt_STRIP
19439
19440 # Used to examine libraries when file_magic_cmd begins "file"
19441 MAGIC_CMD=$MAGIC_CMD
19442
19443 # Used on cygwin: DLL creation program.
19444 DLLTOOL="$DLLTOOL"
19445
19446 # Used on cygwin: object dumper.
19447 OBJDUMP="$OBJDUMP"
19448
19449 # Used on cygwin: assembler.
19450 AS="$AS"
19451
19452 # The name of the directory that contains temporary libtool files.
19453 objdir=$objdir
19454
19455 # How to create reloadable object files.
19456 reload_flag=$lt_reload_flag
19457 reload_cmds=$lt_reload_cmds
19458
19459 # How to pass a linker flag through the compiler.
19460 wl=$lt_lt_prog_compiler_wl_RC
19461
19462 # Object file suffix (normally "o").
19463 objext="$ac_objext"
19464
19465 # Old archive suffix (normally "a").
19466 libext="$libext"
19467
19468 # Shared library suffix (normally ".so").
19469 shrext_cmds='$shrext_cmds'
19470
19471 # Executable file suffix (normally "").
19472 exeext="$exeext"
19473
19474 # Additional compiler flags for building library objects.
19475 pic_flag=$lt_lt_prog_compiler_pic_RC
19476 pic_mode=$pic_mode
19477
19478 # What is the maximum length of a command?
19479 max_cmd_len=$lt_cv_sys_max_cmd_len
19480
19481 # Does compiler simultaneously support -c and -o options?
19482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19483
19484 # Must we lock files when doing compilation?
19485 need_locks=$lt_need_locks
19486
19487 # Do we need the lib prefix for modules?
19488 need_lib_prefix=$need_lib_prefix
19489
19490 # Do we need a version for libraries?
19491 need_version=$need_version
19492
19493 # Whether dlopen is supported.
19494 dlopen_support=$enable_dlopen
19495
19496 # Whether dlopen of programs is supported.
19497 dlopen_self=$enable_dlopen_self
19498
19499 # Whether dlopen of statically linked programs is supported.
19500 dlopen_self_static=$enable_dlopen_self_static
19501
19502 # Compiler flag to prevent dynamic linking.
19503 link_static_flag=$lt_lt_prog_compiler_static_RC
19504
19505 # Compiler flag to turn off builtin functions.
19506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19507
19508 # Compiler flag to allow reflexive dlopens.
19509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19510
19511 # Compiler flag to generate shared objects directly from archives.
19512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19513
19514 # Compiler flag to generate thread-safe objects.
19515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19516
19517 # Library versioning type.
19518 version_type=$version_type
19519
19520 # Format of library name prefix.
19521 libname_spec=$lt_libname_spec
19522
19523 # List of archive names.  First name is the real one, the rest are links.
19524 # The last name is the one that the linker finds with -lNAME.
19525 library_names_spec=$lt_library_names_spec
19526
19527 # The coded name of the library, if different from the real name.
19528 soname_spec=$lt_soname_spec
19529
19530 # Commands used to build and install an old-style archive.
19531 RANLIB=$lt_RANLIB
19532 old_archive_cmds=$lt_old_archive_cmds_RC
19533 old_postinstall_cmds=$lt_old_postinstall_cmds
19534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19535
19536 # Create an old-style archive from a shared archive.
19537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19538
19539 # Create a temporary old-style archive to link instead of a shared archive.
19540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19541
19542 # Commands used to build and install a shared archive.
19543 archive_cmds=$lt_archive_cmds_RC
19544 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19545 postinstall_cmds=$lt_postinstall_cmds
19546 postuninstall_cmds=$lt_postuninstall_cmds
19547
19548 # Commands used to build a loadable module (assumed same as above if empty)
19549 module_cmds=$lt_module_cmds_RC
19550 module_expsym_cmds=$lt_module_expsym_cmds_RC
19551
19552 # Commands to strip libraries.
19553 old_striplib=$lt_old_striplib
19554 striplib=$lt_striplib
19555
19556 # Dependencies to place before the objects being linked to create a
19557 # shared library.
19558 predep_objects=$lt_predep_objects_RC
19559
19560 # Dependencies to place after the objects being linked to create a
19561 # shared library.
19562 postdep_objects=$lt_postdep_objects_RC
19563
19564 # Dependencies to place before the objects being linked to create a
19565 # shared library.
19566 predeps=$lt_predeps_RC
19567
19568 # Dependencies to place after the objects being linked to create a
19569 # shared library.
19570 postdeps=$lt_postdeps_RC
19571
19572 # The library search path used internally by the compiler when linking
19573 # a shared library.
19574 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19575
19576 # Method to check whether dependent libraries are shared objects.
19577 deplibs_check_method=$lt_deplibs_check_method
19578
19579 # Command to use when deplibs_check_method == file_magic.
19580 file_magic_cmd=$lt_file_magic_cmd
19581
19582 # Flag that allows shared libraries with undefined symbols to be built.
19583 allow_undefined_flag=$lt_allow_undefined_flag_RC
19584
19585 # Flag that forces no undefined symbols.
19586 no_undefined_flag=$lt_no_undefined_flag_RC
19587
19588 # Commands used to finish a libtool library installation in a directory.
19589 finish_cmds=$lt_finish_cmds
19590
19591 # Same as above, but a single script fragment to be evaled but not shown.
19592 finish_eval=$lt_finish_eval
19593
19594 # Take the output of nm and produce a listing of raw symbols and C names.
19595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19596
19597 # Transform the output of nm in a proper C declaration
19598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19599
19600 # Transform the output of nm in a C name address pair
19601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19602
19603 # This is the shared library runtime path variable.
19604 runpath_var=$runpath_var
19605
19606 # This is the shared library path variable.
19607 shlibpath_var=$shlibpath_var
19608
19609 # Is shlibpath searched before the hard-coded library search path?
19610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19611
19612 # How to hardcode a shared library path into an executable.
19613 hardcode_action=$hardcode_action_RC
19614
19615 # Whether we should hardcode library paths into libraries.
19616 hardcode_into_libs=$hardcode_into_libs
19617
19618 # Flag to hardcode \$libdir into a binary during linking.
19619 # This must work even if \$libdir does not exist.
19620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19621
19622 # If ld is used when linking, flag to hardcode \$libdir into
19623 # a binary during linking. This must work even if \$libdir does
19624 # not exist.
19625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19626
19627 # Whether we need a single -rpath flag with a separated argument.
19628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19629
19630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19631 # resulting binary.
19632 hardcode_direct=$hardcode_direct_RC
19633
19634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19635 # resulting binary.
19636 hardcode_minus_L=$hardcode_minus_L_RC
19637
19638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19639 # the resulting binary.
19640 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19641
19642 # Set to yes if building a shared library automatically hardcodes DIR into the library
19643 # and all subsequent libraries and executables linked against it.
19644 hardcode_automatic=$hardcode_automatic_RC
19645
19646 # Variables whose values should be saved in libtool wrapper scripts and
19647 # restored at relink time.
19648 variables_saved_for_relink="$variables_saved_for_relink"
19649
19650 # Whether libtool must link a program against all its dependency libraries.
19651 link_all_deplibs=$link_all_deplibs_RC
19652
19653 # Compile-time system search path for libraries
19654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19655
19656 # Run-time system search path for libraries
19657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19658
19659 # Fix the shell variable \$srcfile for the compiler.
19660 fix_srcfile_path=$lt_fix_srcfile_path
19661
19662 # Set to yes if exported symbols are required.
19663 always_export_symbols=$always_export_symbols_RC
19664
19665 # The commands to list exported symbols.
19666 export_symbols_cmds=$lt_export_symbols_cmds_RC
19667
19668 # The commands to extract the exported symbol list from a shared archive.
19669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19670
19671 # Symbols that should not be listed in the preloaded symbols.
19672 exclude_expsyms=$lt_exclude_expsyms_RC
19673
19674 # Symbols that must always be exported.
19675 include_expsyms=$lt_include_expsyms_RC
19676
19677 # ### END LIBTOOL TAG CONFIG: $tagname
19678
19679 __EOF__
19680
19681
19682 else
19683   # If there is no Makefile yet, we rely on a make rule to execute
19684   # `config.status --recheck' to rerun these tests and create the
19685   # libtool script then.
19686   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19687   if test -f "$ltmain_in"; then
19688     test -f Makefile && make "$ltmain"
19689   fi
19690 fi
19691
19692
19693 ac_ext=c
19694 ac_cpp='$CPP $CPPFLAGS'
19695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19698
19699 CC="$lt_save_CC"
19700
19701         ;;
19702
19703       *)
19704         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19705 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19706    { (exit 1); exit 1; }; }
19707         ;;
19708       esac
19709
19710       # Append the new tag name to the list of available tags.
19711       if test -n "$tagname" ; then
19712       available_tags="$available_tags $tagname"
19713     fi
19714     fi
19715   done
19716   IFS="$lt_save_ifs"
19717
19718   # Now substitute the updated list of available tags.
19719   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19720     mv "${ofile}T" "$ofile"
19721     chmod +x "$ofile"
19722   else
19723     rm -f "${ofile}T"
19724     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19725 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19726    { (exit 1); exit 1; }; }
19727   fi
19728 fi
19729
19730
19731
19732 # This can be used to rebuild libtool when needed
19733 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19734
19735 # Always use our own libtool.
19736 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19737
19738 # Prevent multiple expansion
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763 ###############
19764 ## System checks
19765 ##
19766
19767   { echo "$as_me:$LINENO: result: " >&5
19768 echo "${ECHO_T}" >&6; }
19769   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19770 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19771
19772 ac_ext=c
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777 if test -n "$ac_tool_prefix"; then
19778   for ac_prog in xlC gcc cc
19779   do
19780     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19784 if test "${ac_cv_prog_CC+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   if test -n "$CC"; then
19788   ac_cv_prog_CC="$CC" # Let the user override the test.
19789 else
19790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19791 for as_dir in $PATH
19792 do
19793   IFS=$as_save_IFS
19794   test -z "$as_dir" && as_dir=.
19795   for ac_exec_ext in '' $ac_executable_extensions; do
19796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19797     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19799     break 2
19800   fi
19801 done
19802 done
19803 IFS=$as_save_IFS
19804
19805 fi
19806 fi
19807 CC=$ac_cv_prog_CC
19808 if test -n "$CC"; then
19809   { echo "$as_me:$LINENO: result: $CC" >&5
19810 echo "${ECHO_T}$CC" >&6; }
19811 else
19812   { echo "$as_me:$LINENO: result: no" >&5
19813 echo "${ECHO_T}no" >&6; }
19814 fi
19815
19816
19817     test -n "$CC" && break
19818   done
19819 fi
19820 if test -z "$CC"; then
19821   ac_ct_CC=$CC
19822   for ac_prog in xlC gcc cc
19823 do
19824   # Extract the first word of "$ac_prog", so it can be a program name with args.
19825 set dummy $ac_prog; ac_word=$2
19826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   if test -n "$ac_ct_CC"; then
19832   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19833 else
19834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19836 do
19837   IFS=$as_save_IFS
19838   test -z "$as_dir" && as_dir=.
19839   for ac_exec_ext in '' $ac_executable_extensions; do
19840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19841     ac_cv_prog_ac_ct_CC="$ac_prog"
19842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19843     break 2
19844   fi
19845 done
19846 done
19847 IFS=$as_save_IFS
19848
19849 fi
19850 fi
19851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19852 if test -n "$ac_ct_CC"; then
19853   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19854 echo "${ECHO_T}$ac_ct_CC" >&6; }
19855 else
19856   { echo "$as_me:$LINENO: result: no" >&5
19857 echo "${ECHO_T}no" >&6; }
19858 fi
19859
19860
19861   test -n "$ac_ct_CC" && break
19862 done
19863
19864   if test "x$ac_ct_CC" = x; then
19865     CC=""
19866   else
19867     case $cross_compiling:$ac_tool_warned in
19868 yes:)
19869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19870 whose name does not start with the host triplet.  If you think this
19871 configuration is useful to you, please write to autoconf@gnu.org." >&5
19872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19873 whose name does not start with the host triplet.  If you think this
19874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19875 ac_tool_warned=yes ;;
19876 esac
19877     CC=$ac_ct_CC
19878   fi
19879 fi
19880
19881
19882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19883 See \`config.log' for more details." >&5
19884 echo "$as_me: error: no acceptable C compiler found in \$PATH
19885 See \`config.log' for more details." >&2;}
19886    { (exit 1); exit 1; }; }
19887
19888 # Provide some information about the compiler.
19889 echo "$as_me:$LINENO: checking for C compiler version" >&5
19890 ac_compiler=`set X $ac_compile; echo $2`
19891 { (ac_try="$ac_compiler --version >&5"
19892 case "(($ac_try" in
19893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894   *) ac_try_echo=$ac_try;;
19895 esac
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897   (eval "$ac_compiler --version >&5") 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }
19901 { (ac_try="$ac_compiler -v >&5"
19902 case "(($ac_try" in
19903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904   *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907   (eval "$ac_compiler -v >&5") 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }
19911 { (ac_try="$ac_compiler -V >&5"
19912 case "(($ac_try" in
19913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914   *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917   (eval "$ac_compiler -V >&5") 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }
19921
19922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19925   echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933
19934 int
19935 main ()
19936 {
19937 #ifndef __GNUC__
19938        choke me
19939 #endif
19940
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest.$ac_objext
19946 if { (ac_try="$ac_compile"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_compile") 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } && {
19959          test -z "$ac_c_werror_flag" ||
19960          test ! -s conftest.err
19961        } && test -s conftest.$ac_objext; then
19962   ac_compiler_gnu=yes
19963 else
19964   echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967         ac_compiler_gnu=no
19968 fi
19969
19970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19972
19973 fi
19974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19976 GCC=`test $ac_compiler_gnu = yes && echo yes`
19977 ac_test_CFLAGS=${CFLAGS+set}
19978 ac_save_CFLAGS=$CFLAGS
19979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19981 if test "${ac_cv_prog_cc_g+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   ac_save_c_werror_flag=$ac_c_werror_flag
19985    ac_c_werror_flag=yes
19986    ac_cv_prog_cc_g=no
19987    CFLAGS="-g"
19988    cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994
19995 int
19996 main ()
19997 {
19998
19999   ;
20000   return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext
20004 if { (ac_try="$ac_compile"
20005 case "(($ac_try" in
20006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007   *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010   (eval "$ac_compile") 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } && {
20017          test -z "$ac_c_werror_flag" ||
20018          test ! -s conftest.err
20019        } && test -s conftest.$ac_objext; then
20020   ac_cv_prog_cc_g=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025         CFLAGS=""
20026       cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032
20033 int
20034 main ()
20035 {
20036
20037   ;
20038   return 0;
20039 }
20040 _ACEOF
20041 rm -f conftest.$ac_objext
20042 if { (ac_try="$ac_compile"
20043 case "(($ac_try" in
20044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045   *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048   (eval "$ac_compile") 2>conftest.er1
20049   ac_status=$?
20050   grep -v '^ *+' conftest.er1 >conftest.err
20051   rm -f conftest.er1
20052   cat conftest.err >&5
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } && {
20055          test -z "$ac_c_werror_flag" ||
20056          test ! -s conftest.err
20057        } && test -s conftest.$ac_objext; then
20058   :
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063         ac_c_werror_flag=$ac_save_c_werror_flag
20064          CFLAGS="-g"
20065          cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071
20072 int
20073 main ()
20074 {
20075
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_compile") 2>conftest.er1
20088   ac_status=$?
20089   grep -v '^ *+' conftest.er1 >conftest.err
20090   rm -f conftest.er1
20091   cat conftest.err >&5
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } && {
20094          test -z "$ac_c_werror_flag" ||
20095          test ! -s conftest.err
20096        } && test -s conftest.$ac_objext; then
20097   ac_cv_prog_cc_g=yes
20098 else
20099   echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20101
20102
20103 fi
20104
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106 fi
20107
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 fi
20110
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112    ac_c_werror_flag=$ac_save_c_werror_flag
20113 fi
20114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20116 if test "$ac_test_CFLAGS" = set; then
20117   CFLAGS=$ac_save_CFLAGS
20118 elif test $ac_cv_prog_cc_g = yes; then
20119   if test "$GCC" = yes; then
20120     CFLAGS="-g -O2"
20121   else
20122     CFLAGS="-g"
20123   fi
20124 else
20125   if test "$GCC" = yes; then
20126     CFLAGS="-O2"
20127   else
20128     CFLAGS=
20129   fi
20130 fi
20131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20133 if test "${ac_cv_prog_cc_c89+set}" = set; then
20134   echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136   ac_cv_prog_cc_c89=no
20137 ac_save_CC=$CC
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 #include <stdarg.h>
20145 #include <stdio.h>
20146 #include <sys/types.h>
20147 #include <sys/stat.h>
20148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20149 struct buf { int x; };
20150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20151 static char *e (p, i)
20152      char **p;
20153      int i;
20154 {
20155   return p[i];
20156 }
20157 static char *f (char * (*g) (char **, int), char **p, ...)
20158 {
20159   char *s;
20160   va_list v;
20161   va_start (v,p);
20162   s = g (p, va_arg (v,int));
20163   va_end (v);
20164   return s;
20165 }
20166
20167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20168    function prototypes and stuff, but not '\xHH' hex character constants.
20169    These don't provoke an error unfortunately, instead are silently treated
20170    as 'x'.  The following induces an error, until -std is added to get
20171    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20172    array size at least.  It's necessary to write '\x00'==0 to get something
20173    that's true only with -std.  */
20174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20175
20176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20177    inside strings and character constants.  */
20178 #define FOO(x) 'x'
20179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20180
20181 int test (int i, double x);
20182 struct s1 {int (*f) (int a);};
20183 struct s2 {int (*f) (double a);};
20184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20185 int argc;
20186 char **argv;
20187 int
20188 main ()
20189 {
20190 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20196         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20197 do
20198   CC="$ac_save_CC $ac_arg"
20199   rm -f conftest.$ac_objext
20200 if { (ac_try="$ac_compile"
20201 case "(($ac_try" in
20202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203   *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206   (eval "$ac_compile") 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } && {
20213          test -z "$ac_c_werror_flag" ||
20214          test ! -s conftest.err
20215        } && test -s conftest.$ac_objext; then
20216   ac_cv_prog_cc_c89=$ac_arg
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221
20222 fi
20223
20224 rm -f core conftest.err conftest.$ac_objext
20225   test "x$ac_cv_prog_cc_c89" != "xno" && break
20226 done
20227 rm -f conftest.$ac_ext
20228 CC=$ac_save_CC
20229
20230 fi
20231 # AC_CACHE_VAL
20232 case "x$ac_cv_prog_cc_c89" in
20233   x)
20234     { echo "$as_me:$LINENO: result: none needed" >&5
20235 echo "${ECHO_T}none needed" >&6; } ;;
20236   xno)
20237     { echo "$as_me:$LINENO: result: unsupported" >&5
20238 echo "${ECHO_T}unsupported" >&6; } ;;
20239   *)
20240     CC="$CC $ac_cv_prog_cc_c89"
20241     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20243 esac
20244
20245
20246 ac_ext=c
20247 ac_cpp='$CPP $CPPFLAGS'
20248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20251
20252 depcc="$CC"   am_compiler_list=
20253
20254 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20255 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20256 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20257   echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20260   # We make a subdir and do the tests there.  Otherwise we can end up
20261   # making bogus files that we don't know about and never remove.  For
20262   # instance it was reported that on HP-UX the gcc test will end up
20263   # making a dummy file named `D' -- because `-MD' means `put the output
20264   # in D'.
20265   mkdir conftest.dir
20266   # Copy depcomp to subdir because otherwise we won't find it if we're
20267   # using a relative directory.
20268   cp "$am_depcomp" conftest.dir
20269   cd conftest.dir
20270   # We will build objects and dependencies in a subdirectory because
20271   # it helps to detect inapplicable dependency modes.  For instance
20272   # both Tru64's cc and ICC support -MD to output dependencies as a
20273   # side effect of compilation, but ICC will put the dependencies in
20274   # the current directory while Tru64 will put them in the object
20275   # directory.
20276   mkdir sub
20277
20278   am_cv_CC_dependencies_compiler_type=none
20279   if test "$am_compiler_list" = ""; then
20280      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20281   fi
20282   for depmode in $am_compiler_list; do
20283     # Setup a source with many dependencies, because some compilers
20284     # like to wrap large dependency lists on column 80 (with \), and
20285     # we should not choose a depcomp mode which is confused by this.
20286     #
20287     # We need to recreate these files for each test, as the compiler may
20288     # overwrite some of them when testing with obscure command lines.
20289     # This happens at least with the AIX C compiler.
20290     : > sub/conftest.c
20291     for i in 1 2 3 4 5 6; do
20292       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20293       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20294       # Solaris 8's {/usr,}/bin/sh.
20295       touch sub/conftst$i.h
20296     done
20297     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20298
20299     case $depmode in
20300     nosideeffect)
20301       # after this tag, mechanisms are not by side-effect, so they'll
20302       # only be used when explicitly requested
20303       if test "x$enable_dependency_tracking" = xyes; then
20304         continue
20305       else
20306         break
20307       fi
20308       ;;
20309     none) break ;;
20310     esac
20311     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20312     # mode.  It turns out that the SunPro C++ compiler does not properly
20313     # handle `-M -o', and we need to detect this.
20314     if depmode=$depmode \
20315        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20316        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20317        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20318          >/dev/null 2>conftest.err &&
20319        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20320        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20321        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20322        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20323       # icc doesn't choke on unknown options, it will just issue warnings
20324       # or remarks (even with -Werror).  So we grep stderr for any message
20325       # that says an option was ignored or not supported.
20326       # When given -MP, icc 7.0 and 7.1 complain thusly:
20327       #   icc: Command line warning: ignoring option '-M'; no argument required
20328       # The diagnosis changed in icc 8.0:
20329       #   icc: Command line remark: option '-MP' not supported
20330       if (grep 'ignoring option' conftest.err ||
20331           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20332         am_cv_CC_dependencies_compiler_type=$depmode
20333         break
20334       fi
20335     fi
20336   done
20337
20338   cd ..
20339   rm -rf conftest.dir
20340 else
20341   am_cv_CC_dependencies_compiler_type=none
20342 fi
20343
20344 fi
20345 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20346 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20347 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20348
20349  if
20350   test "x$enable_dependency_tracking" != xno \
20351   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20352   am__fastdepCC_TRUE=
20353   am__fastdepCC_FALSE='#'
20354 else
20355   am__fastdepCC_TRUE='#'
20356   am__fastdepCC_FALSE=
20357 fi
20358
20359
20360 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20361 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20362 # Just in case
20363 sleep 1
20364 echo timestamp > conftest.file
20365 # Do `set' in a subshell so we don't clobber the current shell's
20366 # arguments.  Must try -L first in case configure is actually a
20367 # symlink; some systems play weird games with the mod time of symlinks
20368 # (eg FreeBSD returns the mod time of the symlink's containing
20369 # directory).
20370 if (
20371    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20372    if test "$*" = "X"; then
20373       # -L didn't work.
20374       set X `ls -t $srcdir/configure conftest.file`
20375    fi
20376    rm -f conftest.file
20377    if test "$*" != "X $srcdir/configure conftest.file" \
20378       && test "$*" != "X conftest.file $srcdir/configure"; then
20379
20380       # If neither matched, then we have a broken ls.  This can happen
20381       # if, for instance, CONFIG_SHELL is bash and it inherits a
20382       # broken ls alias from the environment.  This has actually
20383       # happened.  Such a system could not be considered "sane".
20384       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20385 alias in your environment" >&5
20386 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20387 alias in your environment" >&2;}
20388    { (exit 1); exit 1; }; }
20389    fi
20390
20391    test "$2" = conftest.file
20392    )
20393 then
20394    # Ok.
20395    :
20396 else
20397    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20398 Check your system clock" >&5
20399 echo "$as_me: error: newly created file is older than distributed files!
20400 Check your system clock" >&2;}
20401    { (exit 1); exit 1; }; }
20402 fi
20403 { echo "$as_me:$LINENO: result: yes" >&5
20404 echo "${ECHO_T}yes" >&6; }
20405 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20406 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20407 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20408 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   cat >conftest.make <<\_ACEOF
20412 SHELL = /bin/sh
20413 all:
20414         @echo '@@@%%%=$(MAKE)=@@@%%%'
20415 _ACEOF
20416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20418   *@@@%%%=?*=@@@%%%*)
20419     eval ac_cv_prog_make_${ac_make}_set=yes;;
20420   *)
20421     eval ac_cv_prog_make_${ac_make}_set=no;;
20422 esac
20423 rm -f conftest.make
20424 fi
20425 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20426   { echo "$as_me:$LINENO: result: yes" >&5
20427 echo "${ECHO_T}yes" >&6; }
20428   SET_MAKE=
20429 else
20430   { echo "$as_me:$LINENO: result: no" >&5
20431 echo "${ECHO_T}no" >&6; }
20432   SET_MAKE="MAKE=${MAKE-make}"
20433 fi
20434
20435
20436 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20437 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20438 if test "$cross_compiling" = yes; then
20439   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20440 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20441 else
20442   cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448 #include <stdio.h>
20449 int
20450 main ()
20451 {
20452 printf("%s",NULL);
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_link") 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468   { (case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473   (eval "$ac_try") 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define PRINTF_NULL_WORKING 1
20480 _ACEOF
20481
20482               { echo "$as_me:$LINENO: result: yes" >&5
20483 echo "${ECHO_T}yes" >&6; }
20484 else
20485   echo "$as_me: program exited with status $ac_status" >&5
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ( exit $ac_status )
20490 { echo "$as_me:$LINENO: result: no" >&5
20491 echo "${ECHO_T}no" >&6; }
20492 fi
20493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20494 fi
20495
20496
20497
20498
20499     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20500 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20501     if test "${ac_cv_va_copy+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504
20505     ac_cv_va_copy=""
20506
20507
20508
20509     if test ".$ac_cv_va_copy" = .; then
20510         if test "$cross_compiling" = yes; then
20511   ac_cv_va_copy="C99"
20512 else
20513   cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519
20520 #include <stdlib.h>
20521 #include <stdarg.h>
20522 #include <string.h>
20523 #define DO_VA_COPY(d, s) va_copy((d), (s))
20524 void test(char *str, ...)
20525 {
20526     va_list ap, ap2;
20527     int i;
20528     va_start(ap, str);
20529     DO_VA_COPY(ap2, ap);
20530     for (i = 1; i <= 9; i++) {
20531         int k = (int)va_arg(ap, int);
20532         if (k != i)
20533             abort();
20534     }
20535     DO_VA_COPY(ap, ap2);
20536     for (i = 1; i <= 9; i++) {
20537         int k = (int)va_arg(ap, int);
20538         if (k != i)
20539             abort();
20540     }
20541     va_end(ap);
20542 }
20543 int main(int argc, char *argv[])
20544 {
20545     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20546     exit(0);
20547 }
20548
20549 _ACEOF
20550 rm -f conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554   *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557   (eval "$ac_link") 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20561   { (case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_try") 2>&5
20567   ac_status=$?
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); }; }; then
20570   ac_cv_va_copy="C99"
20571 else
20572   echo "$as_me: program exited with status $ac_status" >&5
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 fi
20577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20578 fi
20579
20580
20581             fi
20582
20583
20584
20585
20586     if test ".$ac_cv_va_copy" = .; then
20587         if test "$cross_compiling" = yes; then
20588   ac_cv_va_copy="GCM"
20589 else
20590   cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h.  */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h.  */
20596
20597 #include <stdlib.h>
20598 #include <stdarg.h>
20599 #include <string.h>
20600 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20601 void test(char *str, ...)
20602 {
20603     va_list ap, ap2;
20604     int i;
20605     va_start(ap, str);
20606     DO_VA_COPY(ap2, ap);
20607     for (i = 1; i <= 9; i++) {
20608         int k = (int)va_arg(ap, int);
20609         if (k != i)
20610             abort();
20611     }
20612     DO_VA_COPY(ap, ap2);
20613     for (i = 1; i <= 9; i++) {
20614         int k = (int)va_arg(ap, int);
20615         if (k != i)
20616             abort();
20617     }
20618     va_end(ap);
20619 }
20620 int main(int argc, char *argv[])
20621 {
20622     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20623     exit(0);
20624 }
20625
20626 _ACEOF
20627 rm -f conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_link") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638   { (case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_try") 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); }; }; then
20647   ac_cv_va_copy="GCM"
20648 else
20649   echo "$as_me: program exited with status $ac_status" >&5
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 fi
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20655 fi
20656
20657
20658             fi
20659
20660
20661
20662
20663     if test ".$ac_cv_va_copy" = .; then
20664         if test "$cross_compiling" = yes; then
20665   ac_cv_va_copy="GCH"
20666 else
20667   cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673
20674 #include <stdlib.h>
20675 #include <stdarg.h>
20676 #include <string.h>
20677 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20678 void test(char *str, ...)
20679 {
20680     va_list ap, ap2;
20681     int i;
20682     va_start(ap, str);
20683     DO_VA_COPY(ap2, ap);
20684     for (i = 1; i <= 9; i++) {
20685         int k = (int)va_arg(ap, int);
20686         if (k != i)
20687             abort();
20688     }
20689     DO_VA_COPY(ap, ap2);
20690     for (i = 1; i <= 9; i++) {
20691         int k = (int)va_arg(ap, int);
20692         if (k != i)
20693             abort();
20694     }
20695     va_end(ap);
20696 }
20697 int main(int argc, char *argv[])
20698 {
20699     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20700     exit(0);
20701 }
20702
20703 _ACEOF
20704 rm -f conftest$ac_exeext
20705 if { (ac_try="$ac_link"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_link") 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20715   { (case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_try") 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   ac_cv_va_copy="GCH"
20725 else
20726   echo "$as_me: program exited with status $ac_status" >&5
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 fi
20731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20732 fi
20733
20734
20735             fi
20736
20737
20738
20739
20740     if test ".$ac_cv_va_copy" = .; then
20741         if test "$cross_compiling" = yes; then
20742   ac_cv_va_copy="GCB"
20743 else
20744   cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750
20751 #include <stdlib.h>
20752 #include <stdarg.h>
20753 #include <string.h>
20754 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20755 void test(char *str, ...)
20756 {
20757     va_list ap, ap2;
20758     int i;
20759     va_start(ap, str);
20760     DO_VA_COPY(ap2, ap);
20761     for (i = 1; i <= 9; i++) {
20762         int k = (int)va_arg(ap, int);
20763         if (k != i)
20764             abort();
20765     }
20766     DO_VA_COPY(ap, ap2);
20767     for (i = 1; i <= 9; i++) {
20768         int k = (int)va_arg(ap, int);
20769         if (k != i)
20770             abort();
20771     }
20772     va_end(ap);
20773 }
20774 int main(int argc, char *argv[])
20775 {
20776     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20777     exit(0);
20778 }
20779
20780 _ACEOF
20781 rm -f conftest$ac_exeext
20782 if { (ac_try="$ac_link"
20783 case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_link") 2>&5
20789   ac_status=$?
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20792   { (case "(($ac_try" in
20793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794   *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797   (eval "$ac_try") 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; }; then
20801   ac_cv_va_copy="GCB"
20802 else
20803   echo "$as_me: program exited with status $ac_status" >&5
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 fi
20808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20809 fi
20810
20811
20812             fi
20813
20814
20815
20816
20817     if test ".$ac_cv_va_copy" = .; then
20818         if test "$cross_compiling" = yes; then
20819   ac_cv_va_copy="ASS"
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827
20828 #include <stdlib.h>
20829 #include <stdarg.h>
20830 #include <string.h>
20831 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20832 void test(char *str, ...)
20833 {
20834     va_list ap, ap2;
20835     int i;
20836     va_start(ap, str);
20837     DO_VA_COPY(ap2, ap);
20838     for (i = 1; i <= 9; i++) {
20839         int k = (int)va_arg(ap, int);
20840         if (k != i)
20841             abort();
20842     }
20843     DO_VA_COPY(ap, ap2);
20844     for (i = 1; i <= 9; i++) {
20845         int k = (int)va_arg(ap, int);
20846         if (k != i)
20847             abort();
20848     }
20849     va_end(ap);
20850 }
20851 int main(int argc, char *argv[])
20852 {
20853     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20854     exit(0);
20855 }
20856
20857 _ACEOF
20858 rm -f conftest$ac_exeext
20859 if { (ac_try="$ac_link"
20860 case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_link") 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20869   { (case "(($ac_try" in
20870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871   *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874   (eval "$ac_try") 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; }; then
20878   ac_cv_va_copy="ASS"
20879 else
20880   echo "$as_me: program exited with status $ac_status" >&5
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 fi
20885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20886 fi
20887
20888
20889             fi
20890
20891
20892
20893
20894     if test ".$ac_cv_va_copy" = .; then
20895         if test "$cross_compiling" = yes; then
20896   ac_cv_va_copy="ASP"
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904
20905 #include <stdlib.h>
20906 #include <stdarg.h>
20907 #include <string.h>
20908 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20909 void test(char *str, ...)
20910 {
20911     va_list ap, ap2;
20912     int i;
20913     va_start(ap, str);
20914     DO_VA_COPY(ap2, ap);
20915     for (i = 1; i <= 9; i++) {
20916         int k = (int)va_arg(ap, int);
20917         if (k != i)
20918             abort();
20919     }
20920     DO_VA_COPY(ap, ap2);
20921     for (i = 1; i <= 9; i++) {
20922         int k = (int)va_arg(ap, int);
20923         if (k != i)
20924             abort();
20925     }
20926     va_end(ap);
20927 }
20928 int main(int argc, char *argv[])
20929 {
20930     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20931     exit(0);
20932 }
20933
20934 _ACEOF
20935 rm -f conftest$ac_exeext
20936 if { (ac_try="$ac_link"
20937 case "(($ac_try" in
20938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939   *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942   (eval "$ac_link") 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946   { (case "(($ac_try" in
20947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948   *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951   (eval "$ac_try") 2>&5
20952   ac_status=$?
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); }; }; then
20955   ac_cv_va_copy="ASP"
20956 else
20957   echo "$as_me: program exited with status $ac_status" >&5
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961 fi
20962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20963 fi
20964
20965
20966             fi
20967
20968
20969
20970
20971     if test ".$ac_cv_va_copy" = .; then
20972         if test "$cross_compiling" = yes; then
20973   ac_cv_va_copy="CPS"
20974 else
20975   cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981
20982 #include <stdlib.h>
20983 #include <stdarg.h>
20984 #include <string.h>
20985 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20986 void test(char *str, ...)
20987 {
20988     va_list ap, ap2;
20989     int i;
20990     va_start(ap, str);
20991     DO_VA_COPY(ap2, ap);
20992     for (i = 1; i <= 9; i++) {
20993         int k = (int)va_arg(ap, int);
20994         if (k != i)
20995             abort();
20996     }
20997     DO_VA_COPY(ap, ap2);
20998     for (i = 1; i <= 9; i++) {
20999         int k = (int)va_arg(ap, int);
21000         if (k != i)
21001             abort();
21002     }
21003     va_end(ap);
21004 }
21005 int main(int argc, char *argv[])
21006 {
21007     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21008     exit(0);
21009 }
21010
21011 _ACEOF
21012 rm -f conftest$ac_exeext
21013 if { (ac_try="$ac_link"
21014 case "(($ac_try" in
21015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016   *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019   (eval "$ac_link") 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023   { (case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028   (eval "$ac_try") 2>&5
21029   ac_status=$?
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; }; then
21032   ac_cv_va_copy="CPS"
21033 else
21034   echo "$as_me: program exited with status $ac_status" >&5
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 fi
21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040 fi
21041
21042
21043             fi
21044
21045
21046
21047
21048     if test ".$ac_cv_va_copy" = .; then
21049         if test "$cross_compiling" = yes; then
21050   ac_cv_va_copy="CPP"
21051 else
21052   cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058
21059 #include <stdlib.h>
21060 #include <stdarg.h>
21061 #include <string.h>
21062 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21063 void test(char *str, ...)
21064 {
21065     va_list ap, ap2;
21066     int i;
21067     va_start(ap, str);
21068     DO_VA_COPY(ap2, ap);
21069     for (i = 1; i <= 9; i++) {
21070         int k = (int)va_arg(ap, int);
21071         if (k != i)
21072             abort();
21073     }
21074     DO_VA_COPY(ap, ap2);
21075     for (i = 1; i <= 9; i++) {
21076         int k = (int)va_arg(ap, int);
21077         if (k != i)
21078             abort();
21079     }
21080     va_end(ap);
21081 }
21082 int main(int argc, char *argv[])
21083 {
21084     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21085     exit(0);
21086 }
21087
21088 _ACEOF
21089 rm -f conftest$ac_exeext
21090 if { (ac_try="$ac_link"
21091 case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_link") 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21100   { (case "(($ac_try" in
21101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102   *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105   (eval "$ac_try") 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_cv_va_copy="CPP"
21110 else
21111   echo "$as_me: program exited with status $ac_status" >&5
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 fi
21116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21117 fi
21118
21119
21120             fi
21121
21122     if test ".$ac_cv_va_copy" = .; then
21123         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21124 echo "$as_me: error: no working implementation found" >&2;}
21125    { (exit 1); exit 1; }; }
21126     fi
21127
21128 fi
21129
21130     if test ".$ac_cv_va_copy" = ".C99"; then
21131
21132 cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_VA_COPY 1
21134 _ACEOF
21135
21136   fi
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21140 _ACEOF
21141
21142
21143
21144     if test ".$ac_cv_va_copy" = ".C99"; then
21145       { echo "$as_me:$LINENO: result: yes" >&5
21146 echo "${ECHO_T}yes" >&6; }
21147   else
21148       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21149 echo "${ECHO_T}no (using fallback implementation)" >&6; }
21150   fi
21151
21152
21153 # Checks for header files.
21154 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21156 if test "${ac_cv_header_stdc+set}" = set; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159   cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h.  */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h.  */
21165 #include <stdlib.h>
21166 #include <stdarg.h>
21167 #include <string.h>
21168 #include <float.h>
21169
21170 int
21171 main ()
21172 {
21173
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_cv_header_stdc=yes
21196 else
21197   echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200         ac_cv_header_stdc=no
21201 fi
21202
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204
21205 if test $ac_cv_header_stdc = yes; then
21206   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21207   cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h.  */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h.  */
21213 #include <string.h>
21214
21215 _ACEOF
21216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21217   $EGREP "memchr" >/dev/null 2>&1; then
21218   :
21219 else
21220   ac_cv_header_stdc=no
21221 fi
21222 rm -f conftest*
21223
21224 fi
21225
21226 if test $ac_cv_header_stdc = yes; then
21227   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21228   cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 #include <stdlib.h>
21235
21236 _ACEOF
21237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21238   $EGREP "free" >/dev/null 2>&1; then
21239   :
21240 else
21241   ac_cv_header_stdc=no
21242 fi
21243 rm -f conftest*
21244
21245 fi
21246
21247 if test $ac_cv_header_stdc = yes; then
21248   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21249   if test "$cross_compiling" = yes; then
21250   :
21251 else
21252   cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h.  */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h.  */
21258 #include <ctype.h>
21259 #include <stdlib.h>
21260 #if ((' ' & 0x0FF) == 0x020)
21261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21263 #else
21264 # define ISLOWER(c) \
21265                    (('a' <= (c) && (c) <= 'i') \
21266                      || ('j' <= (c) && (c) <= 'r') \
21267                      || ('s' <= (c) && (c) <= 'z'))
21268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21269 #endif
21270
21271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21272 int
21273 main ()
21274 {
21275   int i;
21276   for (i = 0; i < 256; i++)
21277     if (XOR (islower (i), ISLOWER (i))
21278         || toupper (i) != TOUPPER (i))
21279       return 2;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_link") 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21294   { (case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299   (eval "$ac_try") 2>&5
21300   ac_status=$?
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); }; }; then
21303   :
21304 else
21305   echo "$as_me: program exited with status $ac_status" >&5
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309 ( exit $ac_status )
21310 ac_cv_header_stdc=no
21311 fi
21312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21313 fi
21314
21315
21316 fi
21317 fi
21318 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21319 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21320 if test $ac_cv_header_stdc = yes; then
21321
21322 cat >>confdefs.h <<\_ACEOF
21323 #define STDC_HEADERS 1
21324 _ACEOF
21325
21326 fi
21327
21328 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21329 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21330 if test "${ac_cv_header_time+set}" = set; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 #include <sys/types.h>
21340 #include <sys/time.h>
21341 #include <time.h>
21342
21343 int
21344 main ()
21345 {
21346 if ((struct tm *) 0)
21347 return 0;
21348   ;
21349   return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356   *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359   (eval "$ac_compile") 2>conftest.er1
21360   ac_status=$?
21361   grep -v '^ *+' conftest.er1 >conftest.err
21362   rm -f conftest.er1
21363   cat conftest.err >&5
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); } && {
21366          test -z "$ac_c_werror_flag" ||
21367          test ! -s conftest.err
21368        } && test -s conftest.$ac_objext; then
21369   ac_cv_header_time=yes
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374         ac_cv_header_time=no
21375 fi
21376
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 fi
21379 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21380 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21381 if test $ac_cv_header_time = yes; then
21382
21383 cat >>confdefs.h <<\_ACEOF
21384 #define TIME_WITH_SYS_TIME 1
21385 _ACEOF
21386
21387 fi
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399 for ac_header in sys/socket.h \
21400                   sys/stat.h \
21401                   windows.h winsock.h winsock2.h \
21402                   sys/time.h \
21403                   errno.h unistd.h \
21404                   execinfo.h\
21405                   signal.h
21406 do
21407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21409   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 fi
21414 ac_res=`eval echo '${'$as_ac_Header'}'`
21415                { echo "$as_me:$LINENO: result: $ac_res" >&5
21416 echo "${ECHO_T}$ac_res" >&6; }
21417 else
21418   # Is the header compilable?
21419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 $ac_includes_default
21428 #include <$ac_header>
21429 _ACEOF
21430 rm -f conftest.$ac_objext
21431 if { (ac_try="$ac_compile"
21432 case "(($ac_try" in
21433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434   *) ac_try_echo=$ac_try;;
21435 esac
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437   (eval "$ac_compile") 2>conftest.er1
21438   ac_status=$?
21439   grep -v '^ *+' conftest.er1 >conftest.err
21440   rm -f conftest.er1
21441   cat conftest.err >&5
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } && {
21444          test -z "$ac_c_werror_flag" ||
21445          test ! -s conftest.err
21446        } && test -s conftest.$ac_objext; then
21447   ac_header_compiler=yes
21448 else
21449   echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452         ac_header_compiler=no
21453 fi
21454
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6; }
21458
21459 # Is the header present?
21460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <$ac_header>
21469 _ACEOF
21470 if { (ac_try="$ac_cpp conftest.$ac_ext"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } >/dev/null && {
21483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21484          test ! -s conftest.err
21485        }; then
21486   ac_header_preproc=yes
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491   ac_header_preproc=no
21492 fi
21493
21494 rm -f conftest.err conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21496 echo "${ECHO_T}$ac_header_preproc" >&6; }
21497
21498 # So?  What about this header?
21499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21500   yes:no: )
21501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21505     ac_header_preproc=yes
21506     ;;
21507   no:yes:* )
21508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21510     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21511 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21514     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21515 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21518     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21520     ( cat <<\_ASBOX
21521 ## -------------------------------------------------- ##
21522 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21523 ## -------------------------------------------------- ##
21524 _ASBOX
21525      ) | sed "s/^/$as_me: WARNING:     /" >&2
21526     ;;
21527 esac
21528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531   echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533   eval "$as_ac_Header=\$ac_header_preproc"
21534 fi
21535 ac_res=`eval echo '${'$as_ac_Header'}'`
21536                { echo "$as_me:$LINENO: result: $ac_res" >&5
21537 echo "${ECHO_T}$ac_res" >&6; }
21538
21539 fi
21540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21541   cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21543 _ACEOF
21544
21545 fi
21546
21547 done
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557 for ac_func in gettimeofday usleep \
21558                 getdtablesize \
21559                 sysconf\
21560                 readv\
21561                 popen\
21562                 signal\
21563                 getline
21564 do
21565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21579 #define $ac_func innocuous_$ac_func
21580
21581 /* System header to define __stub macros and hopefully few prototypes,
21582     which can conflict with char $ac_func (); below.
21583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584     <limits.h> exists even on freestanding compilers.  */
21585
21586 #ifdef __STDC__
21587 # include <limits.h>
21588 #else
21589 # include <assert.h>
21590 #endif
21591
21592 #undef $ac_func
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595    Use char because int might match the return type of a GCC
21596    builtin and then its argument prototype would still apply.  */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char $ac_func ();
21601 /* The GNU C library defines this for functions which it implements
21602     to always fail with ENOSYS.  Some functions are actually named
21603     something starting with __ and the normal name is an alias.  */
21604 #if defined __stub_$ac_func || defined __stub___$ac_func
21605 choke me
21606 #endif
21607
21608 int
21609 main ()
21610 {
21611 return $ac_func ();
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620   *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623   (eval "$ac_link") 2>conftest.er1
21624   ac_status=$?
21625   grep -v '^ *+' conftest.er1 >conftest.err
21626   rm -f conftest.er1
21627   cat conftest.err >&5
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); } && {
21630          test -z "$ac_c_werror_flag" ||
21631          test ! -s conftest.err
21632        } && test -s conftest$ac_exeext &&
21633        $as_test_x conftest$ac_exeext; then
21634   eval "$as_ac_var=yes"
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         eval "$as_ac_var=no"
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643       conftest$ac_exeext conftest.$ac_ext
21644 fi
21645 ac_res=`eval echo '${'$as_ac_var'}'`
21646                { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_var'}'` = yes; then
21649   cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21651 _ACEOF
21652
21653 fi
21654 done
21655
21656
21657 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21658
21659
21660 for ac_func in snprintf vsnprintf
21661 do
21662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21676 #define $ac_func innocuous_$ac_func
21677
21678 /* System header to define __stub macros and hopefully few prototypes,
21679     which can conflict with char $ac_func (); below.
21680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21681     <limits.h> exists even on freestanding compilers.  */
21682
21683 #ifdef __STDC__
21684 # include <limits.h>
21685 #else
21686 # include <assert.h>
21687 #endif
21688
21689 #undef $ac_func
21690
21691 /* Override any GCC internal prototype to avoid an error.
21692    Use char because int might match the return type of a GCC
21693    builtin and then its argument prototype would still apply.  */
21694 #ifdef __cplusplus
21695 extern "C"
21696 #endif
21697 char $ac_func ();
21698 /* The GNU C library defines this for functions which it implements
21699     to always fail with ENOSYS.  Some functions are actually named
21700     something starting with __ and the normal name is an alias.  */
21701 #if defined __stub_$ac_func || defined __stub___$ac_func
21702 choke me
21703 #endif
21704
21705 int
21706 main ()
21707 {
21708 return $ac_func ();
21709   ;
21710   return 0;
21711 }
21712 _ACEOF
21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_link") 2>conftest.er1
21721   ac_status=$?
21722   grep -v '^ *+' conftest.er1 >conftest.err
21723   rm -f conftest.er1
21724   cat conftest.err >&5
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } && {
21727          test -z "$ac_c_werror_flag" ||
21728          test ! -s conftest.err
21729        } && test -s conftest$ac_exeext &&
21730        $as_test_x conftest$ac_exeext; then
21731   eval "$as_ac_var=yes"
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736         eval "$as_ac_var=no"
21737 fi
21738
21739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21740       conftest$ac_exeext conftest.$ac_ext
21741 fi
21742 ac_res=`eval echo '${'$as_ac_var'}'`
21743                { echo "$as_me:$LINENO: result: $ac_res" >&5
21744 echo "${ECHO_T}$ac_res" >&6; }
21745 if test `eval echo '${'$as_ac_var'}'` = yes; then
21746   cat >>confdefs.h <<_ACEOF
21747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21748 _ACEOF
21749
21750 fi
21751 done
21752
21753 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21754 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21755 if test "${ac_cv_have_working_snprintf+set}" = set; then
21756   echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758   if test "$cross_compiling" = yes; then
21759   ac_cv_have_working_snprintf=cross
21760 else
21761   cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 #include <stdio.h>
21768
21769 int main(void)
21770 {
21771     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21772     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21773     int i;
21774     i = snprintf (bufs, 2, "%s", "111");
21775     if (strcmp (bufs, "1")) exit (1);
21776     if (i != 3) exit (1);
21777     i = snprintf (bufd, 2, "%d", 111);
21778     if (strcmp (bufd, "1")) exit (1);
21779     if (i != 3) exit (1);
21780     exit(0);
21781 }
21782 _ACEOF
21783 rm -f conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787   *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790   (eval "$ac_link") 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794   { (case "(($ac_try" in
21795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796   *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799   (eval "$ac_try") 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); }; }; then
21803   ac_cv_have_working_snprintf=yes
21804 else
21805   echo "$as_me: program exited with status $ac_status" >&5
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 ( exit $ac_status )
21810 ac_cv_have_working_snprintf=no
21811 fi
21812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21813 fi
21814
21815
21816 fi
21817
21818 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21819 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21820 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21821 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21822 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21823   echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825   if test "$cross_compiling" = yes; then
21826   ac_cv_have_working_vsnprintf=cross
21827 else
21828   cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 #include <stdio.h>
21835 #include <stdarg.h>
21836
21837 int my_vsnprintf (char *buf, const char *tmpl, ...)
21838 {
21839     int i;
21840     va_list args;
21841     va_start (args, tmpl);
21842     i = vsnprintf (buf, 2, tmpl, args);
21843     va_end (args);
21844     return i;
21845 }
21846
21847 int main(void)
21848 {
21849     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21850     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21851     int i;
21852     i = my_vsnprintf (bufs, "%s", "111");
21853     if (strcmp (bufs, "1")) exit (1);
21854     if (i != 3) exit (1);
21855     i = my_vsnprintf (bufd, "%d", 111);
21856     if (strcmp (bufd, "1")) exit (1);
21857     if (i != 3) exit (1);
21858     exit(0);
21859 }
21860 _ACEOF
21861 rm -f conftest$ac_exeext
21862 if { (ac_try="$ac_link"
21863 case "(($ac_try" in
21864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865   *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868   (eval "$ac_link") 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21872   { (case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_try") 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   ac_cv_have_working_vsnprintf=yes
21882 else
21883   echo "$as_me: program exited with status $ac_status" >&5
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ( exit $ac_status )
21888 ac_cv_have_working_vsnprintf=no
21889 fi
21890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21891 fi
21892
21893
21894 fi
21895
21896 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21897 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21898 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21899   case " $LIBOBJS " in
21900   *" snprintf.$ac_objext "* ) ;;
21901   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21902  ;;
21903 esac
21904
21905   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21906 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21907
21908 cat >>confdefs.h <<\_ACEOF
21909 #define PREFER_PORTABLE_SNPRINTF 1
21910 _ACEOF
21911
21912 fi
21913 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21914 { echo "$as_me:$LINENO: checking for asprintf" >&5
21915 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21916 if test "${ac_cv_func_asprintf+set}" = set; then
21917   echo $ECHO_N "(cached) $ECHO_C" >&6
21918 else
21919   cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h.  */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h.  */
21925 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21927 #define asprintf innocuous_asprintf
21928
21929 /* System header to define __stub macros and hopefully few prototypes,
21930     which can conflict with char asprintf (); below.
21931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21932     <limits.h> exists even on freestanding compilers.  */
21933
21934 #ifdef __STDC__
21935 # include <limits.h>
21936 #else
21937 # include <assert.h>
21938 #endif
21939
21940 #undef asprintf
21941
21942 /* Override any GCC internal prototype to avoid an error.
21943    Use char because int might match the return type of a GCC
21944    builtin and then its argument prototype would still apply.  */
21945 #ifdef __cplusplus
21946 extern "C"
21947 #endif
21948 char asprintf ();
21949 /* The GNU C library defines this for functions which it implements
21950     to always fail with ENOSYS.  Some functions are actually named
21951     something starting with __ and the normal name is an alias.  */
21952 #if defined __stub_asprintf || defined __stub___asprintf
21953 choke me
21954 #endif
21955
21956 int
21957 main ()
21958 {
21959 return asprintf ();
21960   ;
21961   return 0;
21962 }
21963 _ACEOF
21964 rm -f conftest.$ac_objext conftest$ac_exeext
21965 if { (ac_try="$ac_link"
21966 case "(($ac_try" in
21967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968   *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971   (eval "$ac_link") 2>conftest.er1
21972   ac_status=$?
21973   grep -v '^ *+' conftest.er1 >conftest.err
21974   rm -f conftest.er1
21975   cat conftest.err >&5
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); } && {
21978          test -z "$ac_c_werror_flag" ||
21979          test ! -s conftest.err
21980        } && test -s conftest$ac_exeext &&
21981        $as_test_x conftest$ac_exeext; then
21982   ac_cv_func_asprintf=yes
21983 else
21984   echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21986
21987         ac_cv_func_asprintf=no
21988 fi
21989
21990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21991       conftest$ac_exeext conftest.$ac_ext
21992 fi
21993 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21994 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21995 if test $ac_cv_func_asprintf = yes; then
21996   :
21997 else
21998
21999 cat >>confdefs.h <<\_ACEOF
22000 #define NEED_ASPRINTF 1
22001 _ACEOF
22002
22003 fi
22004
22005 { echo "$as_me:$LINENO: checking for vasprintf" >&5
22006 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
22007 if test "${ac_cv_func_vasprintf+set}" = set; then
22008   echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010   cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h.  */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h.  */
22016 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
22017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22018 #define vasprintf innocuous_vasprintf
22019
22020 /* System header to define __stub macros and hopefully few prototypes,
22021     which can conflict with char vasprintf (); below.
22022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22023     <limits.h> exists even on freestanding compilers.  */
22024
22025 #ifdef __STDC__
22026 # include <limits.h>
22027 #else
22028 # include <assert.h>
22029 #endif
22030
22031 #undef vasprintf
22032
22033 /* Override any GCC internal prototype to avoid an error.
22034    Use char because int might match the return type of a GCC
22035    builtin and then its argument prototype would still apply.  */
22036 #ifdef __cplusplus
22037 extern "C"
22038 #endif
22039 char vasprintf ();
22040 /* The GNU C library defines this for functions which it implements
22041     to always fail with ENOSYS.  Some functions are actually named
22042     something starting with __ and the normal name is an alias.  */
22043 #if defined __stub_vasprintf || defined __stub___vasprintf
22044 choke me
22045 #endif
22046
22047 int
22048 main ()
22049 {
22050 return vasprintf ();
22051   ;
22052   return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (ac_try="$ac_link"
22057 case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062   (eval "$ac_link") 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } && {
22069          test -z "$ac_c_werror_flag" ||
22070          test ! -s conftest.err
22071        } && test -s conftest$ac_exeext &&
22072        $as_test_x conftest$ac_exeext; then
22073   ac_cv_func_vasprintf=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         ac_cv_func_vasprintf=no
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082       conftest$ac_exeext conftest.$ac_ext
22083 fi
22084 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
22085 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
22086 if test $ac_cv_func_vasprintf = yes; then
22087   :
22088 else
22089
22090 cat >>confdefs.h <<\_ACEOF
22091 #define NEED_VASPRINTF 1
22092 _ACEOF
22093
22094 fi
22095
22096
22097 # Checks for typedefs, structures, and compiler characteristics.
22098 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22099 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22100 if test "${ac_cv_c_const+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109
22110 int
22111 main ()
22112 {
22113 /* FIXME: Include the comments suggested by Paul. */
22114 #ifndef __cplusplus
22115   /* Ultrix mips cc rejects this.  */
22116   typedef int charset[2];
22117   const charset cs;
22118   /* SunOS 4.1.1 cc rejects this.  */
22119   char const *const *pcpcc;
22120   char **ppc;
22121   /* NEC SVR4.0.2 mips cc rejects this.  */
22122   struct point {int x, y;};
22123   static struct point const zero = {0,0};
22124   /* AIX XL C 1.02.0.0 rejects this.
22125      It does not let you subtract one const X* pointer from another in
22126      an arm of an if-expression whose if-part is not a constant
22127      expression */
22128   const char *g = "string";
22129   pcpcc = &g + (g ? g-g : 0);
22130   /* HPUX 7.0 cc rejects these. */
22131   ++pcpcc;
22132   ppc = (char**) pcpcc;
22133   pcpcc = (char const *const *) ppc;
22134   { /* SCO 3.2v4 cc rejects this.  */
22135     char *t;
22136     char const *s = 0 ? (char *) 0 : (char const *) 0;
22137
22138     *t++ = 0;
22139     if (s) return 0;
22140   }
22141   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22142     int x[] = {25, 17};
22143     const int *foo = &x[0];
22144     ++foo;
22145   }
22146   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22147     typedef const int *iptr;
22148     iptr p = 0;
22149     ++p;
22150   }
22151   { /* AIX XL C 1.02.0.0 rejects this saying
22152        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22153     struct s { int j; const int *ap[3]; };
22154     struct s *b; b->j = 5;
22155   }
22156   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22157     const int foo = 10;
22158     if (!foo) return 0;
22159   }
22160   return !cs[0] && !zero.x;
22161 #endif
22162
22163   ;
22164   return 0;
22165 }
22166 _ACEOF
22167 rm -f conftest.$ac_objext
22168 if { (ac_try="$ac_compile"
22169 case "(($ac_try" in
22170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171   *) ac_try_echo=$ac_try;;
22172 esac
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174   (eval "$ac_compile") 2>conftest.er1
22175   ac_status=$?
22176   grep -v '^ *+' conftest.er1 >conftest.err
22177   rm -f conftest.er1
22178   cat conftest.err >&5
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); } && {
22181          test -z "$ac_c_werror_flag" ||
22182          test ! -s conftest.err
22183        } && test -s conftest.$ac_objext; then
22184   ac_cv_c_const=yes
22185 else
22186   echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22188
22189         ac_cv_c_const=no
22190 fi
22191
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 fi
22194 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22195 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22196 if test $ac_cv_c_const = no; then
22197
22198 cat >>confdefs.h <<\_ACEOF
22199 #define const
22200 _ACEOF
22201
22202 fi
22203
22204 { echo "$as_me:$LINENO: checking for inline" >&5
22205 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22206 if test "${ac_cv_c_inline+set}" = set; then
22207   echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209   ac_cv_c_inline=no
22210 for ac_kw in inline __inline__ __inline; do
22211   cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h.  */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h.  */
22217 #ifndef __cplusplus
22218 typedef int foo_t;
22219 static $ac_kw foo_t static_foo () {return 0; }
22220 $ac_kw foo_t foo () {return 0; }
22221 #endif
22222
22223 _ACEOF
22224 rm -f conftest.$ac_objext
22225 if { (ac_try="$ac_compile"
22226 case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_compile") 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && {
22238          test -z "$ac_c_werror_flag" ||
22239          test ! -s conftest.err
22240        } && test -s conftest.$ac_objext; then
22241   ac_cv_c_inline=$ac_kw
22242 else
22243   echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22245
22246
22247 fi
22248
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250   test "$ac_cv_c_inline" != no && break
22251 done
22252
22253 fi
22254 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22255 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22256
22257
22258 case $ac_cv_c_inline in
22259   inline | yes) ;;
22260   *)
22261     case $ac_cv_c_inline in
22262       no) ac_val=;;
22263       *) ac_val=$ac_cv_c_inline;;
22264     esac
22265     cat >>confdefs.h <<_ACEOF
22266 #ifndef __cplusplus
22267 #define inline $ac_val
22268 #endif
22269 _ACEOF
22270     ;;
22271 esac
22272
22273 { echo "$as_me:$LINENO: checking for size_t" >&5
22274 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22275 if test "${ac_cv_type_size_t+set}" = set; then
22276   echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278   cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284 $ac_includes_default
22285 typedef size_t ac__type_new_;
22286 int
22287 main ()
22288 {
22289 if ((ac__type_new_ *) 0)
22290   return 0;
22291 if (sizeof (ac__type_new_))
22292   return 0;
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_compile") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } && {
22311          test -z "$ac_c_werror_flag" ||
22312          test ! -s conftest.err
22313        } && test -s conftest.$ac_objext; then
22314   ac_cv_type_size_t=yes
22315 else
22316   echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319         ac_cv_type_size_t=no
22320 fi
22321
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22323 fi
22324 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22325 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22326 if test $ac_cv_type_size_t = yes; then
22327   :
22328 else
22329
22330 cat >>confdefs.h <<_ACEOF
22331 #define size_t unsigned int
22332 _ACEOF
22333
22334 fi
22335
22336
22337 ###################################
22338 ## SimGrid and GRAS specific checks
22339 ##
22340
22341
22342   { echo "$as_me:$LINENO: result: " >&5
22343 echo "${ECHO_T}" >&6; }
22344   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22345 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22346
22347 # Check architecture signature begin
22348
22349 # Check for the architecture
22350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22351 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22352 if test "${ac_cv_c_bigendian+set}" = set; then
22353   echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355   # See if sys/param.h defines the BYTE_ORDER macro.
22356 cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 #include <sys/types.h>
22363 #include <sys/param.h>
22364
22365 int
22366 main ()
22367 {
22368 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22369         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22370  bogus endian macros
22371 #endif
22372
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_compile") 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } && {
22391          test -z "$ac_c_werror_flag" ||
22392          test ! -s conftest.err
22393        } && test -s conftest.$ac_objext; then
22394   # It does; now see whether it defined to BIG_ENDIAN or not.
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 <sys/types.h>
22402 #include <sys/param.h>
22403
22404 int
22405 main ()
22406 {
22407 #if BYTE_ORDER != BIG_ENDIAN
22408  not big endian
22409 #endif
22410
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419   *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422   (eval "$ac_compile") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest.$ac_objext; then
22432   ac_cv_c_bigendian=yes
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437         ac_cv_c_bigendian=no
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 else
22442   echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445         # It does not; compile a test program.
22446 if test "$cross_compiling" = yes; then
22447   # try to guess the endianness by grepping values into an object file
22448   ac_cv_c_bigendian=unknown
22449   cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h.  */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h.  */
22455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22461 int
22462 main ()
22463 {
22464  _ascii (); _ebcdic ();
22465   ;
22466   return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476   (eval "$ac_compile") 2>conftest.er1
22477   ac_status=$?
22478   grep -v '^ *+' conftest.er1 >conftest.err
22479   rm -f conftest.er1
22480   cat conftest.err >&5
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); } && {
22483          test -z "$ac_c_werror_flag" ||
22484          test ! -s conftest.err
22485        } && test -s conftest.$ac_objext; then
22486   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22487   ac_cv_c_bigendian=yes
22488 fi
22489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22490   if test "$ac_cv_c_bigendian" = unknown; then
22491     ac_cv_c_bigendian=no
22492   else
22493     # finding both strings is unlikely to happen, but who knows?
22494     ac_cv_c_bigendian=unknown
22495   fi
22496 fi
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 else
22506   cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h.  */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h.  */
22512 $ac_includes_default
22513 int
22514 main ()
22515 {
22516
22517   /* Are we little or big endian?  From Harbison&Steele.  */
22518   union
22519   {
22520     long int l;
22521     char c[sizeof (long int)];
22522   } u;
22523   u.l = 1;
22524   return u.c[sizeof (long int) - 1] == 1;
22525
22526   ;
22527   return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest$ac_exeext
22531 if { (ac_try="$ac_link"
22532 case "(($ac_try" in
22533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534   *) ac_try_echo=$ac_try;;
22535 esac
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537   (eval "$ac_link") 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22541   { (case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_try") 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; }; then
22550   ac_cv_c_bigendian=no
22551 else
22552   echo "$as_me: program exited with status $ac_status" >&5
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 ( exit $ac_status )
22557 ac_cv_c_bigendian=yes
22558 fi
22559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22560 fi
22561
22562
22563 fi
22564
22565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 fi
22567 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22568 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22569 case $ac_cv_c_bigendian in
22570   yes)
22571     endian=1 ;;
22572   no)
22573     endian=0 ;;
22574   *)
22575     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22576 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22577    { (exit 1); exit 1; }; } ;;
22578 esac
22579
22580
22581 cat >>confdefs.h <<_ACEOF
22582 #define GRAS_BIGENDIAN $endian
22583 _ACEOF
22584
22585
22586 { echo "$as_me:$LINENO: checking size of char" >&5
22587 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22588     if test "${ac_cv_sizeof_char+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22592    cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 #include "confdefs.h"
22599    #include <sys/types.h>
22600
22601
22602 int
22603 main ()
22604 {
22605 switch (0) case 0: case (sizeof (char) == $ac_size):;
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_sizeof_char=$ac_size
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636    if test x$ac_cv_sizeof_char != x ; then break; fi
22637   done
22638
22639 fi
22640
22641
22642 unspecif=$ac_cv_sizeof_char
22643 if test x$unspecif = x ; then
22644   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22645 echo "$as_me: error: cannot determine a size for char" >&2;}
22646    { (exit 1); exit 1; }; }
22647 fi
22648
22649     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22653    cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h.  */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h.  */
22659 #include "confdefs.h"
22660    #include <sys/types.h>
22661
22662
22663 int
22664 main ()
22665 {
22666 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22667   ;
22668   return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675   *) ac_try_echo=$ac_try;;
22676 esac
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678   (eval "$ac_compile") 2>conftest.er1
22679   ac_status=$?
22680   grep -v '^ *+' conftest.er1 >conftest.err
22681   rm -f conftest.er1
22682   cat conftest.err >&5
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } && {
22685          test -z "$ac_c_werror_flag" ||
22686          test ! -s conftest.err
22687        } && test -s conftest.$ac_objext; then
22688   ac_cv_sizeof_signed_char=$ac_size
22689 else
22690   echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22692
22693
22694 fi
22695
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22698   done
22699
22700 fi
22701
22702
22703 signed=$ac_cv_sizeof_signed_char
22704 if test x$signed = x ; then
22705   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22706 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22707    { (exit 1); exit 1; }; }
22708 fi
22709 if test x$unspecif != x$signed ; then
22710   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22711 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22712    { (exit 1); exit 1; }; }
22713 fi
22714
22715     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22719    cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725 #include "confdefs.h"
22726    #include <sys/types.h>
22727
22728
22729 int
22730 main ()
22731 {
22732 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22733   ;
22734   return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741   *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744   (eval "$ac_compile") 2>conftest.er1
22745   ac_status=$?
22746   grep -v '^ *+' conftest.er1 >conftest.err
22747   rm -f conftest.er1
22748   cat conftest.err >&5
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && {
22751          test -z "$ac_c_werror_flag" ||
22752          test ! -s conftest.err
22753        } && test -s conftest.$ac_objext; then
22754   ac_cv_sizeof_unsigned_char=$ac_size
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22764   done
22765
22766 fi
22767
22768
22769 unsigned=$ac_cv_sizeof_unsigned_char
22770 if test x$unsigned = x ; then
22771   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22772 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22773    { (exit 1); exit 1; }; }
22774 fi
22775 if test x$unsigned != x$signed ; then
22776   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22777 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22778    { (exit 1); exit 1; }; }
22779 fi
22780
22781 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22782 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22783                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22784 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22785
22786  if test "${ac_cv_struct_boundary_char+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22790    cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h.  */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h.  */
22796 #include "confdefs.h"
22797      #include <sys/types.h>
22798      struct s { char c; char i; };
22799
22800 int
22801 main ()
22802 {
22803 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812   *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815   (eval "$ac_compile") 2>conftest.er1
22816   ac_status=$?
22817   grep -v '^ *+' conftest.er1 >conftest.err
22818   rm -f conftest.er1
22819   cat conftest.err >&5
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); } && {
22822          test -z "$ac_c_werror_flag" ||
22823          test ! -s conftest.err
22824        } && test -s conftest.$ac_objext; then
22825   ac_cv_struct_boundary_char=$ac_size
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830
22831 fi
22832
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22835   done
22836
22837 fi
22838
22839  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22840 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22841  if test x$ac_cv_struct_boundary_char = x ; then
22842    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22843 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22844    { (exit 1); exit 1; }; }
22845  fi
22846
22847 { echo "$as_me:$LINENO: checking size of short int" >&5
22848 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22849     if test "${ac_cv_sizeof_short_int+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22853    cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h.  */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h.  */
22859 #include "confdefs.h"
22860    #include <sys/types.h>
22861
22862
22863 int
22864 main ()
22865 {
22866 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_compile") 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } && {
22885          test -z "$ac_c_werror_flag" ||
22886          test ! -s conftest.err
22887        } && test -s conftest.$ac_objext; then
22888   ac_cv_sizeof_short_int=$ac_size
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22898   done
22899
22900 fi
22901
22902
22903 unspecif=$ac_cv_sizeof_short_int
22904 if test x$unspecif = x ; then
22905   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22906 echo "$as_me: error: cannot determine a size for short int" >&2;}
22907    { (exit 1); exit 1; }; }
22908 fi
22909
22910     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22914    cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include "confdefs.h"
22921    #include <sys/types.h>
22922
22923
22924 int
22925 main ()
22926 {
22927 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_compile") 2>conftest.er1
22940   ac_status=$?
22941   grep -v '^ *+' conftest.er1 >conftest.err
22942   rm -f conftest.er1
22943   cat conftest.err >&5
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); } && {
22946          test -z "$ac_c_werror_flag" ||
22947          test ! -s conftest.err
22948        } && test -s conftest.$ac_objext; then
22949   ac_cv_sizeof_signed_short_int=$ac_size
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22959   done
22960
22961 fi
22962
22963
22964 signed=$ac_cv_sizeof_signed_short_int
22965 if test x$signed = x ; then
22966   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22967 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22968    { (exit 1); exit 1; }; }
22969 fi
22970 if test x$unspecif != x$signed ; then
22971   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22972 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22973    { (exit 1); exit 1; }; }
22974 fi
22975
22976     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22980    cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 #include "confdefs.h"
22987    #include <sys/types.h>
22988
22989
22990 int
22991 main ()
22992 {
22993 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005   (eval "$ac_compile") 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } && {
23012          test -z "$ac_c_werror_flag" ||
23013          test ! -s conftest.err
23014        } && test -s conftest.$ac_objext; then
23015   ac_cv_sizeof_unsigned_short_int=$ac_size
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020
23021 fi
23022
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
23025   done
23026
23027 fi
23028
23029
23030 unsigned=$ac_cv_sizeof_unsigned_short_int
23031 if test x$unsigned = x ; then
23032   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
23033 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
23034    { (exit 1); exit 1; }; }
23035 fi
23036 if test x$unsigned != x$signed ; then
23037   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
23038 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
23039    { (exit 1); exit 1; }; }
23040 fi
23041
23042 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
23043 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
23044              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
23045 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
23046
23047  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23051    cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057 #include "confdefs.h"
23058      #include <sys/types.h>
23059      struct s { char c; short int i; };
23060
23061 int
23062 main ()
23063 {
23064 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073   *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076   (eval "$ac_compile") 2>conftest.er1
23077   ac_status=$?
23078   grep -v '^ *+' conftest.er1 >conftest.err
23079   rm -f conftest.er1
23080   cat conftest.err >&5
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } && {
23083          test -z "$ac_c_werror_flag" ||
23084          test ! -s conftest.err
23085        } && test -s conftest.$ac_objext; then
23086   ac_cv_struct_boundary_short_int=$ac_size
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
23096   done
23097
23098 fi
23099
23100  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
23101 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
23102  if test x$ac_cv_struct_boundary_short_int = x ; then
23103    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
23104 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
23105    { (exit 1); exit 1; }; }
23106  fi
23107
23108 { echo "$as_me:$LINENO: checking size of int" >&5
23109 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23110     if test "${ac_cv_sizeof_int+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23114    cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #include "confdefs.h"
23121    #include <sys/types.h>
23122
23123
23124 int
23125 main ()
23126 {
23127 switch (0) case 0: case (sizeof (int) == $ac_size):;
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_compile") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && {
23146          test -z "$ac_c_werror_flag" ||
23147          test ! -s conftest.err
23148        } && test -s conftest.$ac_objext; then
23149   ac_cv_sizeof_int=$ac_size
23150 else
23151   echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154
23155 fi
23156
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158    if test x$ac_cv_sizeof_int != x ; then break; fi
23159   done
23160
23161 fi
23162
23163
23164 unspecif=$ac_cv_sizeof_int
23165 if test x$unspecif = x ; then
23166   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
23167 echo "$as_me: error: cannot determine a size for int" >&2;}
23168    { (exit 1); exit 1; }; }
23169 fi
23170
23171     if test "${ac_cv_sizeof_signed_int+set}" = set; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23175    cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h.  */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h.  */
23181 #include "confdefs.h"
23182    #include <sys/types.h>
23183
23184
23185 int
23186 main ()
23187 {
23188 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197   *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200   (eval "$ac_compile") 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } && {
23207          test -z "$ac_c_werror_flag" ||
23208          test ! -s conftest.err
23209        } && test -s conftest.$ac_objext; then
23210   ac_cv_sizeof_signed_int=$ac_size
23211 else
23212   echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215
23216 fi
23217
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
23220   done
23221
23222 fi
23223
23224
23225 signed=$ac_cv_sizeof_signed_int
23226 if test x$signed = x ; then
23227   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
23228 echo "$as_me: error: cannot determine a size for signed int" >&2;}
23229    { (exit 1); exit 1; }; }
23230 fi
23231 if test x$unspecif != x$signed ; then
23232   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
23233 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
23234    { (exit 1); exit 1; }; }
23235 fi
23236
23237     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23241    cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h.  */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h.  */
23247 #include "confdefs.h"
23248    #include <sys/types.h>
23249
23250
23251 int
23252 main ()
23253 {
23254 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263   *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266   (eval "$ac_compile") 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } && {
23273          test -z "$ac_c_werror_flag" ||
23274          test ! -s conftest.err
23275        } && test -s conftest.$ac_objext; then
23276   ac_cv_sizeof_unsigned_int=$ac_size
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281
23282 fi
23283
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23286   done
23287
23288 fi
23289
23290
23291 unsigned=$ac_cv_sizeof_unsigned_int
23292 if test x$unsigned = x ; then
23293   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23294 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23295    { (exit 1); exit 1; }; }
23296 fi
23297 if test x$unsigned != x$signed ; then
23298   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23299 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23300    { (exit 1); exit 1; }; }
23301 fi
23302
23303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23304 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23305                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23306 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23307
23308  if test "${ac_cv_struct_boundary_int+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23312    cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 #include "confdefs.h"
23319      #include <sys/types.h>
23320      struct s { char c; int i; };
23321
23322 int
23323 main ()
23324 {
23325 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23326   ;
23327   return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334   *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337   (eval "$ac_compile") 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } && {
23344          test -z "$ac_c_werror_flag" ||
23345          test ! -s conftest.err
23346        } && test -s conftest.$ac_objext; then
23347   ac_cv_struct_boundary_int=$ac_size
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23357   done
23358
23359 fi
23360
23361  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23362 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23363  if test x$ac_cv_struct_boundary_int = x ; then
23364    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23365 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23366    { (exit 1); exit 1; }; }
23367  fi
23368
23369 { echo "$as_me:$LINENO: checking size of long int" >&5
23370 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23371     if test "${ac_cv_sizeof_long_int+set}" = set; then
23372   echo $ECHO_N "(cached) $ECHO_C" >&6
23373 else
23374   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23375    cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 #include "confdefs.h"
23382    #include <sys/types.h>
23383
23384
23385 int
23386 main ()
23387 {
23388 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397   *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400   (eval "$ac_compile") 2>conftest.er1
23401   ac_status=$?
23402   grep -v '^ *+' conftest.er1 >conftest.err
23403   rm -f conftest.er1
23404   cat conftest.err >&5
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); } && {
23407          test -z "$ac_c_werror_flag" ||
23408          test ! -s conftest.err
23409        } && test -s conftest.$ac_objext; then
23410   ac_cv_sizeof_long_int=$ac_size
23411 else
23412   echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23420   done
23421
23422 fi
23423
23424
23425 unspecif=$ac_cv_sizeof_long_int
23426 if test x$unspecif = x ; then
23427   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23428 echo "$as_me: error: cannot determine a size for long int" >&2;}
23429    { (exit 1); exit 1; }; }
23430 fi
23431
23432     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23433   echo $ECHO_N "(cached) $ECHO_C" >&6
23434 else
23435   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23436    cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include "confdefs.h"
23443    #include <sys/types.h>
23444
23445
23446 int
23447 main ()
23448 {
23449 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_compile") 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } && {
23468          test -z "$ac_c_werror_flag" ||
23469          test ! -s conftest.err
23470        } && test -s conftest.$ac_objext; then
23471   ac_cv_sizeof_signed_long_int=$ac_size
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476
23477 fi
23478
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23481   done
23482
23483 fi
23484
23485
23486 signed=$ac_cv_sizeof_signed_long_int
23487 if test x$signed = x ; then
23488   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23489 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23490    { (exit 1); exit 1; }; }
23491 fi
23492 if test x$unspecif != x$signed ; then
23493   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23494 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23495    { (exit 1); exit 1; }; }
23496 fi
23497
23498     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23502    cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h.  */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h.  */
23508 #include "confdefs.h"
23509    #include <sys/types.h>
23510
23511
23512 int
23513 main ()
23514 {
23515 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524   *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527   (eval "$ac_compile") 2>conftest.er1
23528   ac_status=$?
23529   grep -v '^ *+' conftest.er1 >conftest.err
23530   rm -f conftest.er1
23531   cat conftest.err >&5
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } && {
23534          test -z "$ac_c_werror_flag" ||
23535          test ! -s conftest.err
23536        } && test -s conftest.$ac_objext; then
23537   ac_cv_sizeof_unsigned_long_int=$ac_size
23538 else
23539   echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23541
23542
23543 fi
23544
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23546    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23547   done
23548
23549 fi
23550
23551
23552 unsigned=$ac_cv_sizeof_unsigned_long_int
23553 if test x$unsigned = x ; then
23554   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23555 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23556    { (exit 1); exit 1; }; }
23557 fi
23558 if test x$unsigned != x$signed ; then
23559   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23560 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23561    { (exit 1); exit 1; }; }
23562 fi
23563
23564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23565 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23566               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23567 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23568
23569  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23570   echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23573    cat >conftest.$ac_ext <<_ACEOF
23574 /* confdefs.h.  */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h.  */
23579 #include "confdefs.h"
23580      #include <sys/types.h>
23581      struct s { char c; long int i; };
23582
23583 int
23584 main ()
23585 {
23586 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 rm -f conftest.$ac_objext
23592 if { (ac_try="$ac_compile"
23593 case "(($ac_try" in
23594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595   *) ac_try_echo=$ac_try;;
23596 esac
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598   (eval "$ac_compile") 2>conftest.er1
23599   ac_status=$?
23600   grep -v '^ *+' conftest.er1 >conftest.err
23601   rm -f conftest.er1
23602   cat conftest.err >&5
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); } && {
23605          test -z "$ac_c_werror_flag" ||
23606          test ! -s conftest.err
23607        } && test -s conftest.$ac_objext; then
23608   ac_cv_struct_boundary_long_int=$ac_size
23609 else
23610   echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23612
23613
23614 fi
23615
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23618   done
23619
23620 fi
23621
23622  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23623 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23624  if test x$ac_cv_struct_boundary_long_int = x ; then
23625    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23626 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23627    { (exit 1); exit 1; }; }
23628  fi
23629
23630 { echo "$as_me:$LINENO: checking size of long long int" >&5
23631 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23632     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23633   echo $ECHO_N "(cached) $ECHO_C" >&6
23634 else
23635   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23636    cat >conftest.$ac_ext <<_ACEOF
23637 /* confdefs.h.  */
23638 _ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h.  */
23642 #include "confdefs.h"
23643    #include <sys/types.h>
23644
23645
23646 int
23647 main ()
23648 {
23649 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23650   ;
23651   return 0;
23652 }
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658   *) ac_try_echo=$ac_try;;
23659 esac
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661   (eval "$ac_compile") 2>conftest.er1
23662   ac_status=$?
23663   grep -v '^ *+' conftest.er1 >conftest.err
23664   rm -f conftest.er1
23665   cat conftest.err >&5
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); } && {
23668          test -z "$ac_c_werror_flag" ||
23669          test ! -s conftest.err
23670        } && test -s conftest.$ac_objext; then
23671   ac_cv_sizeof_long_long_int=$ac_size
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676
23677 fi
23678
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23681   done
23682
23683 fi
23684
23685
23686 unspecif=$ac_cv_sizeof_long_long_int
23687 if test x$unspecif = x ; then
23688   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23689 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23690    { (exit 1); exit 1; }; }
23691 fi
23692
23693     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23694   echo $ECHO_N "(cached) $ECHO_C" >&6
23695 else
23696   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23697    cat >conftest.$ac_ext <<_ACEOF
23698 /* confdefs.h.  */
23699 _ACEOF
23700 cat confdefs.h >>conftest.$ac_ext
23701 cat >>conftest.$ac_ext <<_ACEOF
23702 /* end confdefs.h.  */
23703 #include "confdefs.h"
23704    #include <sys/types.h>
23705
23706
23707 int
23708 main ()
23709 {
23710 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23711   ;
23712   return 0;
23713 }
23714 _ACEOF
23715 rm -f conftest.$ac_objext
23716 if { (ac_try="$ac_compile"
23717 case "(($ac_try" in
23718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719   *) ac_try_echo=$ac_try;;
23720 esac
23721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23722   (eval "$ac_compile") 2>conftest.er1
23723   ac_status=$?
23724   grep -v '^ *+' conftest.er1 >conftest.err
23725   rm -f conftest.er1
23726   cat conftest.err >&5
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); } && {
23729          test -z "$ac_c_werror_flag" ||
23730          test ! -s conftest.err
23731        } && test -s conftest.$ac_objext; then
23732   ac_cv_sizeof_signed_long_long_int=$ac_size
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737
23738 fi
23739
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23742   done
23743
23744 fi
23745
23746
23747 signed=$ac_cv_sizeof_signed_long_long_int
23748 if test x$signed = x ; then
23749   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23750 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23751    { (exit 1); exit 1; }; }
23752 fi
23753 if test x$unspecif != x$signed ; then
23754   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23755 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23756    { (exit 1); exit 1; }; }
23757 fi
23758
23759     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23760   echo $ECHO_N "(cached) $ECHO_C" >&6
23761 else
23762   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23763    cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769 #include "confdefs.h"
23770    #include <sys/types.h>
23771
23772
23773 int
23774 main ()
23775 {
23776 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23777   ;
23778   return 0;
23779 }
23780 _ACEOF
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785   *) ac_try_echo=$ac_try;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788   (eval "$ac_compile") 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && {
23795          test -z "$ac_c_werror_flag" ||
23796          test ! -s conftest.err
23797        } && test -s conftest.$ac_objext; then
23798   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803
23804 fi
23805
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23808   done
23809
23810 fi
23811
23812
23813 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23814 if test x$unsigned = x ; then
23815   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23816 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23817    { (exit 1); exit 1; }; }
23818 fi
23819 if test x$unsigned != x$signed ; then
23820   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23821 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23822    { (exit 1); exit 1; }; }
23823 fi
23824
23825 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23826 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23827          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23828 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23829
23830  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23831   echo $ECHO_N "(cached) $ECHO_C" >&6
23832 else
23833   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23834    cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h.  */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h.  */
23840 #include "confdefs.h"
23841      #include <sys/types.h>
23842      struct s { char c; long long int i; };
23843
23844 int
23845 main ()
23846 {
23847 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23848   ;
23849   return 0;
23850 }
23851 _ACEOF
23852 rm -f conftest.$ac_objext
23853 if { (ac_try="$ac_compile"
23854 case "(($ac_try" in
23855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856   *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859   (eval "$ac_compile") 2>conftest.er1
23860   ac_status=$?
23861   grep -v '^ *+' conftest.er1 >conftest.err
23862   rm -f conftest.er1
23863   cat conftest.err >&5
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); } && {
23866          test -z "$ac_c_werror_flag" ||
23867          test ! -s conftest.err
23868        } && test -s conftest.$ac_objext; then
23869   ac_cv_struct_boundary_long_long_int=$ac_size
23870 else
23871   echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873
23874
23875 fi
23876
23877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23878    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23879   done
23880
23881 fi
23882
23883  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23884 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23885  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23886    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23887 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23888    { (exit 1); exit 1; }; }
23889  fi
23890
23891
23892     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23893 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23894
23895  if test "${ac_cv_struct_boundary_float+set}" = set; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23899    cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h.  */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h.  */
23905 #include "confdefs.h"
23906      #include <sys/types.h>
23907      struct s { char c; float i; };
23908
23909 int
23910 main ()
23911 {
23912 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23913   ;
23914   return 0;
23915 }
23916 _ACEOF
23917 rm -f conftest.$ac_objext
23918 if { (ac_try="$ac_compile"
23919 case "(($ac_try" in
23920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921   *) ac_try_echo=$ac_try;;
23922 esac
23923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924   (eval "$ac_compile") 2>conftest.er1
23925   ac_status=$?
23926   grep -v '^ *+' conftest.er1 >conftest.err
23927   rm -f conftest.er1
23928   cat conftest.err >&5
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } && {
23931          test -z "$ac_c_werror_flag" ||
23932          test ! -s conftest.err
23933        } && test -s conftest.$ac_objext; then
23934   ac_cv_struct_boundary_float=$ac_size
23935 else
23936   echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23938
23939
23940 fi
23941
23942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23943    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23944   done
23945
23946 fi
23947
23948  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23949 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23950  if test x$ac_cv_struct_boundary_float = x ; then
23951    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23952 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23953    { (exit 1); exit 1; }; }
23954  fi
23955                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23956 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23957
23958  if test "${ac_cv_struct_boundary_double+set}" = set; then
23959   echo $ECHO_N "(cached) $ECHO_C" >&6
23960 else
23961   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23962    cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h.  */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h.  */
23968 #include "confdefs.h"
23969      #include <sys/types.h>
23970      struct s { char c; double i; };
23971
23972 int
23973 main ()
23974 {
23975 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23976   ;
23977   return 0;
23978 }
23979 _ACEOF
23980 rm -f conftest.$ac_objext
23981 if { (ac_try="$ac_compile"
23982 case "(($ac_try" in
23983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984   *) ac_try_echo=$ac_try;;
23985 esac
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987   (eval "$ac_compile") 2>conftest.er1
23988   ac_status=$?
23989   grep -v '^ *+' conftest.er1 >conftest.err
23990   rm -f conftest.er1
23991   cat conftest.err >&5
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); } && {
23994          test -z "$ac_c_werror_flag" ||
23995          test ! -s conftest.err
23996        } && test -s conftest.$ac_objext; then
23997   ac_cv_struct_boundary_double=$ac_size
23998 else
23999   echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002
24003 fi
24004
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006    if test x$ac_cv_struct_boundary_double != x ; then break; fi
24007   done
24008
24009 fi
24010
24011  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
24012 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
24013  if test x$ac_cv_struct_boundary_double = x ; then
24014    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
24015 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
24016    { (exit 1); exit 1; }; }
24017  fi
24018
24019
24020 { echo "$as_me:$LINENO: checking size of void *" >&5
24021 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
24022     if test "${ac_cv_sizeof_void_p+set}" = set; then
24023   echo $ECHO_N "(cached) $ECHO_C" >&6
24024 else
24025   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24026    cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h.  */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h.  */
24032 #include "confdefs.h"
24033    #include <sys/types.h>
24034
24035
24036 int
24037 main ()
24038 {
24039 switch (0) case 0: case (sizeof (void *) == $ac_size):;
24040   ;
24041   return 0;
24042 }
24043 _ACEOF
24044 rm -f conftest.$ac_objext
24045 if { (ac_try="$ac_compile"
24046 case "(($ac_try" in
24047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048   *) ac_try_echo=$ac_try;;
24049 esac
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051   (eval "$ac_compile") 2>conftest.er1
24052   ac_status=$?
24053   grep -v '^ *+' conftest.er1 >conftest.err
24054   rm -f conftest.er1
24055   cat conftest.err >&5
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); } && {
24058          test -z "$ac_c_werror_flag" ||
24059          test ! -s conftest.err
24060        } && test -s conftest.$ac_objext; then
24061   ac_cv_sizeof_void_p=$ac_size
24062 else
24063   echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24065
24066
24067 fi
24068
24069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070    if test x$ac_cv_sizeof_void_p != x ; then break; fi
24071   done
24072
24073 fi
24074
24075
24076 if test x$ac_cv_sizeof_void_p = x ; then
24077   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
24078 echo "$as_me: error: cannot determine a size for void *" >&2;}
24079    { (exit 1); exit 1; }; }
24080 fi
24081 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24082 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
24083                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
24084 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
24085
24086  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
24087   echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24090    cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096 #include "confdefs.h"
24097      #include <sys/types.h>
24098      struct s { char c; void * i; };
24099
24100 int
24101 main ()
24102 {
24103 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
24104   ;
24105   return 0;
24106 }
24107 _ACEOF
24108 rm -f conftest.$ac_objext
24109 if { (ac_try="$ac_compile"
24110 case "(($ac_try" in
24111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112   *) ac_try_echo=$ac_try;;
24113 esac
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115   (eval "$ac_compile") 2>conftest.er1
24116   ac_status=$?
24117   grep -v '^ *+' conftest.er1 >conftest.err
24118   rm -f conftest.er1
24119   cat conftest.err >&5
24120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); } && {
24122          test -z "$ac_c_werror_flag" ||
24123          test ! -s conftest.err
24124        } && test -s conftest.$ac_objext; then
24125   ac_cv_struct_boundary_void_p=$ac_size
24126 else
24127   echo "$as_me: failed program was:" >&5
24128 sed 's/^/| /' conftest.$ac_ext >&5
24129
24130
24131 fi
24132
24133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
24135   done
24136
24137 fi
24138
24139  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
24140 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
24141  if test x$ac_cv_struct_boundary_void_p = x ; then
24142    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
24143 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
24144    { (exit 1); exit 1; }; }
24145  fi
24146
24147 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
24148 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
24149     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
24150   echo $ECHO_N "(cached) $ECHO_C" >&6
24151 else
24152   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24153    cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h.  */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h.  */
24159 #include "confdefs.h"
24160    #include <sys/types.h>
24161
24162
24163 int
24164 main ()
24165 {
24166 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
24167   ;
24168   return 0;
24169 }
24170 _ACEOF
24171 rm -f conftest.$ac_objext
24172 if { (ac_try="$ac_compile"
24173 case "(($ac_try" in
24174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175   *) ac_try_echo=$ac_try;;
24176 esac
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178   (eval "$ac_compile") 2>conftest.er1
24179   ac_status=$?
24180   grep -v '^ *+' conftest.er1 >conftest.err
24181   rm -f conftest.er1
24182   cat conftest.err >&5
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } && {
24185          test -z "$ac_c_werror_flag" ||
24186          test ! -s conftest.err
24187        } && test -s conftest.$ac_objext; then
24188   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
24189 else
24190   echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24192
24193
24194 fi
24195
24196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24197    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
24198   done
24199
24200 fi
24201
24202
24203 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
24204   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
24205 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
24206    { (exit 1); exit 1; }; }
24207 fi
24208 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
24209 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
24210
24211
24212
24213 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
24214 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
24215 if test x$endian = x1 ; then
24216   trace_endian=B
24217 else
24218   trace_endian=l
24219 fi
24220 gras_arch=unknown
24221 trace="$trace_endian"
24222
24223 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
24224
24225 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
24226 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
24227 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
24228 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
24229
24230 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
24231 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
24232
24233 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
24234
24235 # sizeof float/double are not tested since IEEE 754 is assumed.
24236 # Check README.IEEE for rational.
24237
24238 # The numbers after the _ in the arch name are the maximal packing boundary.
24239 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
24240 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
24241 case $trace in
24242   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
24243   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
24244   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
24245   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
24246
24247   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
24248
24249   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
24250   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
24251   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
24252   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
24253
24254   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
24255   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
24256 esac
24257 if test x$gras_arch = xunknown ; then
24258   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24259 echo "${ECHO_T}damnit ($trace)" >&6; }
24260   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24261 Please report this architecture trace ($trace) and what it corresponds to." >&5
24262 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24263 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24264    { (exit 1); exit 1; }; }
24265 fi
24266 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24267
24268 cat >>confdefs.h <<_ACEOF
24269 #define GRAS_THISARCH $gras_arch
24270 _ACEOF
24271
24272 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24273 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24274
24275  if test "$gras_size" = 32; then
24276   GRAS_ARCH_32_BITS_TRUE=
24277   GRAS_ARCH_32_BITS_FALSE='#'
24278 else
24279   GRAS_ARCH_32_BITS_TRUE='#'
24280   GRAS_ARCH_32_BITS_FALSE=
24281 fi
24282
24283
24284 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24285 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24286 ac_cv_sizeof_max=0
24287 for s in $ac_cv_sizeof_char \
24288          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24289          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24290          4 8; do
24291
24292   if test $ac_cv_sizeof_max -lt $s ; then
24293     ac_cv_sizeof_max=$s
24294   fi
24295 done
24296 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24297 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24298
24299 cat >>confdefs.h <<_ACEOF
24300 #define SIZEOF_MAX $ac_cv_sizeof_max
24301 _ACEOF
24302
24303
24304
24305 # Check architecture signature end
24306   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24307 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24308    cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h.  */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h.  */
24314 #include "confdefs.h"
24315         #include <sys/types.h>
24316         #include <stddef.h> /* offsetof() */
24317         struct s {char c; double d;};
24318
24319 int
24320 main ()
24321 {
24322 switch (0)
24323         case 0:
24324         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24325
24326   ;
24327   return 0;
24328 }
24329 _ACEOF
24330 rm -f conftest.$ac_objext
24331 if { (ac_try="$ac_compile"
24332 case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337   (eval "$ac_compile") 2>conftest.er1
24338   ac_status=$?
24339   grep -v '^ *+' conftest.er1 >conftest.err
24340   rm -f conftest.er1
24341   cat conftest.err >&5
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); } && {
24344          test -z "$ac_c_werror_flag" ||
24345          test ! -s conftest.err
24346        } && test -s conftest.$ac_objext; then
24347   gras_struct_packed=yes
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352         gras_struct_packed=no
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356
24357    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24358 echo "${ECHO_T}$gras_struct_packed" >&6; }
24359    if test x$gras_struct_packed = "xyes" ; then
24360      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24361 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24362    { (exit 1); exit 1; }; }
24363    fi
24364
24365    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24366 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24367    cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373 #include "confdefs.h"
24374         #include <sys/types.h>
24375         #include <stddef.h> /* offsetof() */
24376         struct s {double d; int i; char c;};
24377
24378 int
24379 main ()
24380 {
24381 switch (0)
24382         case 0:
24383         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24384
24385   ;
24386   return 0;
24387 }
24388 _ACEOF
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393   *) ac_try_echo=$ac_try;;
24394 esac
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396   (eval "$ac_compile") 2>conftest.er1
24397   ac_status=$?
24398   grep -v '^ *+' conftest.er1 >conftest.err
24399   rm -f conftest.er1
24400   cat conftest.err >&5
24401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); } && {
24403          test -z "$ac_c_werror_flag" ||
24404          test ! -s conftest.err
24405        } && test -s conftest.$ac_objext; then
24406   gras_struct_compact=yes
24407 else
24408   echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411         gras_struct_compact=no
24412 fi
24413
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24415
24416    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24417 echo "${ECHO_T}$gras_struct_compact" >&6; }
24418
24419    if test x$gras_struct_compact != xyes ; then
24420      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24421 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24422    { (exit 1); exit 1; }; }
24423    fi
24424
24425 cat >>confdefs.h <<_ACEOF
24426 #define GRAS_STRUCT_COMPACT 1
24427 _ACEOF
24428
24429    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24430 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24431
24432    cat >conftest.$ac_ext <<_ACEOF
24433 /* confdefs.h.  */
24434 _ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h.  */
24438 #include "confdefs.h"
24439       #include <sys/types.h>
24440         #include <stddef.h> /* offsetof() */
24441         struct s { double d; int i; char c[6]; };
24442
24443 int
24444 main ()
24445 {
24446 switch (0)
24447       case 0:
24448       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24449
24450   ;
24451   return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest.$ac_objext
24455 if { (ac_try="$ac_compile"
24456 case "(($ac_try" in
24457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458   *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461   (eval "$ac_compile") 2>conftest.er1
24462   ac_status=$?
24463   grep -v '^ *+' conftest.er1 >conftest.err
24464   rm -f conftest.er1
24465   cat conftest.err >&5
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); } && {
24468          test -z "$ac_c_werror_flag" ||
24469          test ! -s conftest.err
24470        } && test -s conftest.$ac_objext; then
24471   gras_array_straddle_struct=yes
24472 else
24473   echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24475
24476         gras_array_straddle_struct=no
24477 fi
24478
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480
24481    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24482 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24483
24484    if test x$gras_array_straddle_struct = xyes ; then
24485
24486 cat >>confdefs.h <<_ACEOF
24487 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24488 _ACEOF
24489
24490    else
24491      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24492 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24493    { (exit 1); exit 1; }; }
24494    fi
24495
24496
24497
24498
24499
24500   { echo "$as_me:$LINENO: result: " >&5
24501 echo "${ECHO_T}" >&6; }
24502   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24503 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24504
24505
24506
24507
24508 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24509 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24510 if test "${ac_cv_check_mcsc+set}" = set; then
24511   echo $ECHO_N "(cached) $ECHO_C" >&6
24512 else
24513
24514 if test "$cross_compiling" = yes; then
24515   ac_cv_check_mcsc=no
24516
24517 else
24518   cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h.  */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h.  */
24524
24525
24526 #include <stdio.h>
24527 #include <stdlib.h>
24528 #include <ucontext.h>
24529
24530 ucontext_t uc_child;
24531 ucontext_t uc_main;
24532
24533 void child(void *arg)
24534 {
24535     if (arg != (void *)12345)
24536         exit(1);
24537     if (swapcontext(&uc_child, &uc_main) != 0)
24538         exit(2);
24539 }
24540
24541 int main(int argc, char *argv[])
24542 {
24543     FILE *fp;
24544     void *stack;
24545
24546     /* the default is that it fails */
24547     if ((fp = fopen("conftestval", "w")) == NULL)
24548         exit(3);
24549     fprintf(fp, "no\n");
24550     fclose(fp);
24551
24552     /* configure a child user-space context */
24553     if ((stack = malloc(64*1024)) == NULL)
24554         exit(4);
24555     if (getcontext(&uc_child) != 0)
24556         exit(5);
24557     uc_child.uc_link = NULL;
24558     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24559     uc_child.uc_stack.ss_size = 32*1024;
24560     uc_child.uc_stack.ss_flags = 0;
24561     makecontext(&uc_child, child, 2, (void *)12345);
24562
24563     /* switch into the user context */
24564     if (swapcontext(&uc_main, &uc_child) != 0)
24565         exit(6);
24566
24567     /* Fine, child came home */
24568     if ((fp = fopen("conftestval", "w")) == NULL)
24569         exit(7);
24570     fprintf(fp, "yes\n");
24571     fclose(fp);
24572
24573     /* die successfully */
24574     exit(0);
24575 }
24576
24577 _ACEOF
24578 rm -f conftest$ac_exeext
24579 if { (ac_try="$ac_link"
24580 case "(($ac_try" in
24581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582   *) ac_try_echo=$ac_try;;
24583 esac
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585   (eval "$ac_link") 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24589   { (case "(($ac_try" in
24590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591   *) ac_try_echo=$ac_try;;
24592 esac
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594   (eval "$ac_try") 2>&5
24595   ac_status=$?
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); }; }; then
24598   ac_cv_check_mcsc=`cat conftestval`
24599 else
24600   echo "$as_me: program exited with status $ac_status" >&5
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24603
24604 ( exit $ac_status )
24605 ac_cv_check_mcsc=no
24606 fi
24607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24608 fi
24609
24610
24611 fi
24612 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24613 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24614 if test ".$ac_cv_check_mcsc" = .yes; then
24615     mcsc=yes
24616 else
24617     mcsc=no
24618 fi
24619
24620
24621
24622 for ac_header in pthread.h
24623 do
24624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24626   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 fi
24631 ac_res=`eval echo '${'$as_ac_Header'}'`
24632                { echo "$as_me:$LINENO: result: $ac_res" >&5
24633 echo "${ECHO_T}$ac_res" >&6; }
24634 else
24635   # Is the header compilable?
24636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24638 cat >conftest.$ac_ext <<_ACEOF
24639 /* confdefs.h.  */
24640 _ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h.  */
24644 $ac_includes_default
24645 #include <$ac_header>
24646 _ACEOF
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651   *) ac_try_echo=$ac_try;;
24652 esac
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654   (eval "$ac_compile") 2>conftest.er1
24655   ac_status=$?
24656   grep -v '^ *+' conftest.er1 >conftest.err
24657   rm -f conftest.er1
24658   cat conftest.err >&5
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); } && {
24661          test -z "$ac_c_werror_flag" ||
24662          test ! -s conftest.err
24663        } && test -s conftest.$ac_objext; then
24664   ac_header_compiler=yes
24665 else
24666   echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24668
24669         ac_header_compiler=no
24670 fi
24671
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24674 echo "${ECHO_T}$ac_header_compiler" >&6; }
24675
24676 # Is the header present?
24677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24679 cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 #include <$ac_header>
24686 _ACEOF
24687 if { (ac_try="$ac_cpp conftest.$ac_ext"
24688 case "(($ac_try" in
24689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690   *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24694   ac_status=$?
24695   grep -v '^ *+' conftest.er1 >conftest.err
24696   rm -f conftest.er1
24697   cat conftest.err >&5
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } >/dev/null && {
24700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24701          test ! -s conftest.err
24702        }; then
24703   ac_header_preproc=yes
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708   ac_header_preproc=no
24709 fi
24710
24711 rm -f conftest.err conftest.$ac_ext
24712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24713 echo "${ECHO_T}$ac_header_preproc" >&6; }
24714
24715 # So?  What about this header?
24716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24717   yes:no: )
24718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24722     ac_header_preproc=yes
24723     ;;
24724   no:yes:* )
24725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24737     ( cat <<\_ASBOX
24738 ## -------------------------------------------------- ##
24739 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24740 ## -------------------------------------------------- ##
24741 _ASBOX
24742      ) | sed "s/^/$as_me: WARNING:     /" >&2
24743     ;;
24744 esac
24745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24748   echo $ECHO_N "(cached) $ECHO_C" >&6
24749 else
24750   eval "$as_ac_Header=\$ac_header_preproc"
24751 fi
24752 ac_res=`eval echo '${'$as_ac_Header'}'`
24753                { echo "$as_me:$LINENO: result: $ac_res" >&5
24754 echo "${ECHO_T}$ac_res" >&6; }
24755
24756 fi
24757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24758   cat >>confdefs.h <<_ACEOF
24759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24760 _ACEOF
24761
24762 fi
24763
24764 done
24765
24766 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24767 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24768 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24769   echo $ECHO_N "(cached) $ECHO_C" >&6
24770 else
24771   ac_check_lib_save_LIBS=$LIBS
24772 LIBS="-lpthread  $LIBS"
24773 cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779
24780 /* Override any GCC internal prototype to avoid an error.
24781    Use char because int might match the return type of a GCC
24782    builtin and then its argument prototype would still apply.  */
24783 #ifdef __cplusplus
24784 extern "C"
24785 #endif
24786 char pthread_create ();
24787 int
24788 main ()
24789 {
24790 return pthread_create ();
24791   ;
24792   return 0;
24793 }
24794 _ACEOF
24795 rm -f conftest.$ac_objext conftest$ac_exeext
24796 if { (ac_try="$ac_link"
24797 case "(($ac_try" in
24798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24799   *) ac_try_echo=$ac_try;;
24800 esac
24801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24802   (eval "$ac_link") 2>conftest.er1
24803   ac_status=$?
24804   grep -v '^ *+' conftest.er1 >conftest.err
24805   rm -f conftest.er1
24806   cat conftest.err >&5
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); } && {
24809          test -z "$ac_c_werror_flag" ||
24810          test ! -s conftest.err
24811        } && test -s conftest$ac_exeext &&
24812        $as_test_x conftest$ac_exeext; then
24813   ac_cv_lib_pthread_pthread_create=yes
24814 else
24815   echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818         ac_cv_lib_pthread_pthread_create=no
24819 fi
24820
24821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24822       conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24824 fi
24825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24827 if test $ac_cv_lib_pthread_pthread_create = yes; then
24828   pthread=yes
24829 else
24830   pthread=no
24831 fi
24832
24833
24834
24835 if test ".$mcsc" = .yes; then
24836    mcsc=yes
24837 elif test ".$pthread" = .yes; then
24838    pthread=yes
24839 else
24840     ac_header=windows.h
24841     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24842     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24843       windows_context=yes
24844     else
24845       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24846 echo "$as_me: error: no appropriate backend found" >&2;}
24847    { (exit 1); exit 1; }; }
24848     fi
24849 fi
24850
24851
24852 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24853 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24854
24855
24856 # Check whether --with-pthread was given.
24857 if test "${with_pthread+set}" = set; then
24858   withval=$with_pthread; with_context=pthread
24859 fi
24860
24861
24862 # Check whether --with-pthread was given.
24863 if test "${with_pthread+set}" = set; then
24864   withval=$with_pthread; with_context=pthread
24865 fi
24866
24867
24868
24869 # Check whether --with-context was given.
24870 if test "${with_context+set}" = set; then
24871   withval=$with_context;
24872 else
24873   with_context=auto
24874 fi
24875
24876
24877 if test "x$with_context$mcsc" = "xucontextno" ; then
24878   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24879 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24880    { (exit 77); exit 77; }; }
24881 fi
24882
24883 case $with_context in
24884  ucontext) ;;
24885  pthread) ;;
24886  pthreads) ;;
24887  windows) ;;
24888  auto) with_context=ucontext;;
24889  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24890 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24891    { (exit 1); exit 1; }; } ;;
24892 esac
24893
24894 if test "x$with_context" = "xucontext" ; then
24895   if test ".$mcsc" = .yes; then
24896     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24897 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24898
24899 cat >>confdefs.h <<\_ACEOF
24900 #define CONTEXT_UCONTEXT 1
24901 _ACEOF
24902
24903   else
24904     if test ".$windows_context" = .yes ; then
24905       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24906 echo "${ECHO_T}use windows context portability layer." >&6; }
24907       with_context=windows
24908     else
24909       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24910 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24911       with_context=pthread
24912     fi
24913   fi
24914 fi
24915
24916 if test "x$with_context" = "xpthreads"; then
24917   with_context=pthread
24918 fi
24919 if test "x$with_context" = "xpthread"; then
24920
24921 for ac_header in pthread.h
24922 do
24923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24925   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24928   echo $ECHO_N "(cached) $ECHO_C" >&6
24929 fi
24930 ac_res=`eval echo '${'$as_ac_Header'}'`
24931                { echo "$as_me:$LINENO: result: $ac_res" >&5
24932 echo "${ECHO_T}$ac_res" >&6; }
24933 else
24934   # Is the header compilable?
24935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24937 cat >conftest.$ac_ext <<_ACEOF
24938 /* confdefs.h.  */
24939 _ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h.  */
24943 $ac_includes_default
24944 #include <$ac_header>
24945 _ACEOF
24946 rm -f conftest.$ac_objext
24947 if { (ac_try="$ac_compile"
24948 case "(($ac_try" in
24949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950   *) ac_try_echo=$ac_try;;
24951 esac
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953   (eval "$ac_compile") 2>conftest.er1
24954   ac_status=$?
24955   grep -v '^ *+' conftest.er1 >conftest.err
24956   rm -f conftest.er1
24957   cat conftest.err >&5
24958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959   (exit $ac_status); } && {
24960          test -z "$ac_c_werror_flag" ||
24961          test ! -s conftest.err
24962        } && test -s conftest.$ac_objext; then
24963   ac_header_compiler=yes
24964 else
24965   echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.$ac_ext >&5
24967
24968         ac_header_compiler=no
24969 fi
24970
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24973 echo "${ECHO_T}$ac_header_compiler" >&6; }
24974
24975 # Is the header present?
24976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24978 cat >conftest.$ac_ext <<_ACEOF
24979 /* confdefs.h.  */
24980 _ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h.  */
24984 #include <$ac_header>
24985 _ACEOF
24986 if { (ac_try="$ac_cpp conftest.$ac_ext"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } >/dev/null && {
24999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25000          test ! -s conftest.err
25001        }; then
25002   ac_header_preproc=yes
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007   ac_header_preproc=no
25008 fi
25009
25010 rm -f conftest.err conftest.$ac_ext
25011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25012 echo "${ECHO_T}$ac_header_preproc" >&6; }
25013
25014 # So?  What about this header?
25015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25016   yes:no: )
25017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25021     ac_header_preproc=yes
25022     ;;
25023   no:yes:* )
25024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25036     ( cat <<\_ASBOX
25037 ## -------------------------------------------------- ##
25038 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25039 ## -------------------------------------------------- ##
25040 _ASBOX
25041      ) | sed "s/^/$as_me: WARNING:     /" >&2
25042     ;;
25043 esac
25044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25047   echo $ECHO_N "(cached) $ECHO_C" >&6
25048 else
25049   eval "$as_ac_Header=\$ac_header_preproc"
25050 fi
25051 ac_res=`eval echo '${'$as_ac_Header'}'`
25052                { echo "$as_me:$LINENO: result: $ac_res" >&5
25053 echo "${ECHO_T}$ac_res" >&6; }
25054
25055 fi
25056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25057   cat >>confdefs.h <<_ACEOF
25058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25059 _ACEOF
25060
25061 fi
25062
25063 done
25064
25065
25066 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
25067 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
25068 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
25069   echo $ECHO_N "(cached) $ECHO_C" >&6
25070 else
25071   ac_check_lib_save_LIBS=$LIBS
25072 LIBS="-lpthread  $LIBS"
25073 cat >conftest.$ac_ext <<_ACEOF
25074 /* confdefs.h.  */
25075 _ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h.  */
25079
25080 /* Override any GCC internal prototype to avoid an error.
25081    Use char because int might match the return type of a GCC
25082    builtin and then its argument prototype would still apply.  */
25083 #ifdef __cplusplus
25084 extern "C"
25085 #endif
25086 char pthread_create ();
25087 int
25088 main ()
25089 {
25090 return pthread_create ();
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext conftest$ac_exeext
25096 if { (ac_try="$ac_link"
25097 case "(($ac_try" in
25098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099   *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102   (eval "$ac_link") 2>conftest.er1
25103   ac_status=$?
25104   grep -v '^ *+' conftest.er1 >conftest.err
25105   rm -f conftest.er1
25106   cat conftest.err >&5
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); } && {
25109          test -z "$ac_c_werror_flag" ||
25110          test ! -s conftest.err
25111        } && test -s conftest$ac_exeext &&
25112        $as_test_x conftest$ac_exeext; then
25113   ac_cv_lib_pthread_pthread_create=yes
25114 else
25115   echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25117
25118         ac_cv_lib_pthread_pthread_create=no
25119 fi
25120
25121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25122       conftest$ac_exeext conftest.$ac_ext
25123 LIBS=$ac_check_lib_save_LIBS
25124 fi
25125 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
25126 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
25127 if test $ac_cv_lib_pthread_pthread_create = yes; then
25128   cat >>confdefs.h <<_ACEOF
25129 #define HAVE_LIBPTHREAD 1
25130 _ACEOF
25131
25132   LIBS="-lpthread $LIBS"
25133
25134 else
25135   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25136 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25137    { (exit 1); exit 1; }; }
25138 fi
25139
25140
25141 cat >>confdefs.h <<\_ACEOF
25142 #define CONTEXT_THREADS 1
25143 _ACEOF
25144
25145   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25146 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25147 fi
25148  if test "x$with_context" != xucontext; then
25149   CONTEXT_THREADS_TRUE=
25150   CONTEXT_THREADS_FALSE='#'
25151 else
25152   CONTEXT_THREADS_TRUE='#'
25153   CONTEXT_THREADS_FALSE=
25154 fi
25155
25156
25157
25158 if test "x$with_context" = "xucontext" ; then
25159   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25160 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25161 if test "${ac_cv_check_stackgrowth+set}" = set; then
25162   echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164
25165 cross_compiling=no
25166 if test "$cross_compiling" = yes; then
25167   ac_cv_check_stackgrowth=down
25168
25169 else
25170   cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176
25177 #include <stdio.h>
25178 #include <stdlib.h>
25179 static int iterate = 10;
25180 static int growsdown(int *x)
25181 {
25182     auto int y;
25183     y = (x > &y);
25184     if (--iterate > 0)
25185         y = growsdown(&y);
25186     if (y != (x > &y))
25187         exit(1);
25188     return y;
25189 }
25190 int main(int argc, char *argv[])
25191 {
25192     FILE *f;
25193     auto int x;
25194     if ((f = fopen("conftestval", "w")) == NULL)
25195         exit(1);
25196     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25197     fclose(f);
25198     exit(0);
25199 }
25200
25201
25202 _ACEOF
25203 rm -f conftest$ac_exeext
25204 if { (ac_try="$ac_link"
25205 case "(($ac_try" in
25206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207   *) ac_try_echo=$ac_try;;
25208 esac
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210   (eval "$ac_link") 2>&5
25211   ac_status=$?
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25214   { (case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219   (eval "$ac_try") 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }; }; then
25223   ac_cv_check_stackgrowth=`cat conftestval`
25224 else
25225   echo "$as_me: program exited with status $ac_status" >&5
25226 echo "$as_me: failed program was:" >&5
25227 sed 's/^/| /' conftest.$ac_ext >&5
25228
25229 ( exit $ac_status )
25230 ac_cv_check_stackgrowth=down
25231 fi
25232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25233 fi
25234
25235
25236 fi
25237 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25238 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25239 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25240     val="-1"
25241 else
25242     val="+1"
25243 fi
25244
25245 cat >>confdefs.h <<_ACEOF
25246 #define PTH_STACKGROWTH $val
25247 _ACEOF
25248
25249
25250   if test ".$ac_cv_check_stackgrowth" = ".down"; then
25251       PTH_STACK_GROWTH="down"
25252   else
25253       PTH_STACK_GROWTH="up"
25254   fi
25255
25256
25257
25258
25259
25260
25261 for ac_func in makecontext
25262 do
25263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25267   echo $ECHO_N "(cached) $ECHO_C" >&6
25268 else
25269   cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h.  */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h.  */
25275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25277 #define $ac_func innocuous_$ac_func
25278
25279 /* System header to define __stub macros and hopefully few prototypes,
25280     which can conflict with char $ac_func (); below.
25281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282     <limits.h> exists even on freestanding compilers.  */
25283
25284 #ifdef __STDC__
25285 # include <limits.h>
25286 #else
25287 # include <assert.h>
25288 #endif
25289
25290 #undef $ac_func
25291
25292 /* Override any GCC internal prototype to avoid an error.
25293    Use char because int might match the return type of a GCC
25294    builtin and then its argument prototype would still apply.  */
25295 #ifdef __cplusplus
25296 extern "C"
25297 #endif
25298 char $ac_func ();
25299 /* The GNU C library defines this for functions which it implements
25300     to always fail with ENOSYS.  Some functions are actually named
25301     something starting with __ and the normal name is an alias.  */
25302 #if defined __stub_$ac_func || defined __stub___$ac_func
25303 choke me
25304 #endif
25305
25306 int
25307 main ()
25308 {
25309 return $ac_func ();
25310   ;
25311   return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321   (eval "$ac_link") 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } && {
25328          test -z "$ac_c_werror_flag" ||
25329          test ! -s conftest.err
25330        } && test -s conftest$ac_exeext &&
25331        $as_test_x conftest$ac_exeext; then
25332   eval "$as_ac_var=yes"
25333 else
25334   echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337         eval "$as_ac_var=no"
25338 fi
25339
25340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25341       conftest$ac_exeext conftest.$ac_ext
25342 fi
25343 ac_res=`eval echo '${'$as_ac_var'}'`
25344                { echo "$as_me:$LINENO: result: $ac_res" >&5
25345 echo "${ECHO_T}$ac_res" >&6; }
25346 if test `eval echo '${'$as_ac_var'}'` = yes; then
25347   cat >>confdefs.h <<_ACEOF
25348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25349 _ACEOF
25350
25351 fi
25352 done
25353
25354
25355 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25356 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25357 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25358   echo $ECHO_N "(cached) $ECHO_C" >&6
25359 else
25360
25361 if test ".$ac_cv_func_makecontext" = .no; then
25362         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25363 else
25364         OCFLAGS="$CFLAGS"
25365     CFLAGS="$CFLAGS -DTEST_makecontext"
25366     cross_compiling=no
25367         if test "$cross_compiling" = yes; then
25368
25369 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25370
25371 else
25372   cat >conftest.$ac_ext <<_ACEOF
25373 /* confdefs.h.  */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h.  */
25378
25379 #include <stdio.h>
25380 #include <stdlib.h>
25381 #include <string.h>
25382 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25383 #include <sys/types.h>
25384 #include <signal.h>
25385 #include <unistd.h>
25386 #endif
25387 #if defined(TEST_makecontext)
25388 #include <ucontext.h>
25389 #endif
25390 union alltypes {
25391     long   l;
25392     double d;
25393     void  *vp;
25394     void (*fp)(void);
25395     char  *cp;
25396 };
25397 static volatile char *handler_addr = (char *)0xDEAD;
25398 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25399 static volatile int handler_done = 0;
25400 void handler(int sig)
25401 {
25402     char garbage[1024];
25403     int i;
25404     auto int dummy;
25405     for (i = 0; i < 1024; i++)
25406         garbage[i] = 'X';
25407     handler_addr = (char *)&dummy;
25408     handler_done = 1;
25409     return;
25410 }
25411 #endif
25412 #if defined(TEST_makecontext)
25413 static ucontext_t uc_handler;
25414 static ucontext_t uc_main;
25415 void handler(void)
25416 {
25417     char garbage[1024];
25418     int i;
25419     auto int dummy;
25420     for (i = 0; i < 1024; i++)
25421         garbage[i] = 'X';
25422     handler_addr = (char *)&dummy;
25423     swapcontext(&uc_handler, &uc_main);
25424     return;
25425 }
25426 #endif
25427 int main(int argc, char *argv[])
25428 {
25429     FILE *f;
25430     char *skaddr;
25431     char *skbuf;
25432     int sksize;
25433     char result[1024];
25434     int i;
25435     sksize = 32768;
25436     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25437     if (skbuf == NULL)
25438         exit(1);
25439     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25440         skbuf[i] = 'A';
25441     skaddr = skbuf+sizeof(union alltypes);
25442 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25443     {
25444         struct sigaction sa;
25445 #if defined(TEST_sigstack)
25446         struct sigstack ss;
25447 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25448         stack_t ss;
25449 #else
25450         struct sigaltstack ss;
25451 #endif
25452 #if defined(TEST_sigstack)
25453         ss.ss_sp      = (void *)(skaddr + sksize);
25454         ss.ss_onstack = 0;
25455         if (sigstack(&ss, NULL) < 0)
25456             exit(1);
25457 #elif defined(TEST_sigaltstack)
25458         ss.ss_sp    = (void *)(skaddr + sksize);
25459         ss.ss_size  = sksize;
25460         ss.ss_flags = 0;
25461         if (sigaltstack(&ss, NULL) < 0)
25462             exit(1);
25463 #endif
25464         memset((void *)&sa, 0, sizeof(struct sigaction));
25465         sa.sa_handler = handler;
25466         sa.sa_flags = SA_ONSTACK;
25467         sigemptyset(&sa.sa_mask);
25468         sigaction(SIGUSR1, &sa, NULL);
25469         kill(getpid(), SIGUSR1);
25470         while (!handler_done)
25471             /*nop*/;
25472     }
25473 #endif
25474 #if defined(TEST_makecontext)
25475     {
25476         if (getcontext(&uc_handler) != 0)
25477             exit(1);
25478         uc_handler.uc_link = NULL;
25479         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25480         uc_handler.uc_stack.ss_size  = sksize;
25481         uc_handler.uc_stack.ss_flags = 0;
25482         makecontext(&uc_handler, handler, 1);
25483         swapcontext(&uc_main, &uc_handler);
25484     }
25485 #endif
25486     if (handler_addr == (char *)0xDEAD)
25487         exit(1);
25488     if (handler_addr < skaddr+sksize) {
25489         /* stack was placed into lower area */
25490         if (*(skaddr+sksize) != 'A')
25491              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25492                      sizeof(union alltypes), sizeof(union alltypes));
25493         else
25494              strcpy(result, "(skaddr)+(sksize),(sksize)");
25495     }
25496     else {
25497         /* stack was placed into higher area */
25498         if (*(skaddr+sksize*2) != 'A')
25499             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25500         else
25501             strcpy(result, "(skaddr),(sksize)");
25502     }
25503     if ((f = fopen("conftestval", "w")) == NULL)
25504         exit(1);
25505     fprintf(f, "%s\n", result);
25506     fclose(f);
25507     exit(0);
25508 }
25509
25510 _ACEOF
25511 rm -f conftest$ac_exeext
25512 if { (ac_try="$ac_link"
25513 case "(($ac_try" in
25514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25515   *) ac_try_echo=$ac_try;;
25516 esac
25517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25518   (eval "$ac_link") 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25522   { (case "(($ac_try" in
25523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524   *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527   (eval "$ac_try") 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }; }; then
25531
25532 ac_cv_stacksetup_makecontext=`cat conftestval`
25533 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25534
25535 else
25536   echo "$as_me: program exited with status $ac_status" >&5
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25539
25540 ( exit $ac_status )
25541
25542 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25543
25544 fi
25545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25546 fi
25547
25548
25549 CFLAGS="$OCFLAGS"
25550
25551 fi
25552 fi
25553 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25554 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25555 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25556 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25557 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25558 { echo "$as_me:$LINENO: result: $type" >&5
25559 echo "${ECHO_T}$type" >&6; }
25560 if test ".$verbose" = .yes; then
25561     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25562 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25563 fi
25564
25565 if test ".$verbose" = .yes; then
25566     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25567 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25568 fi
25569
25570
25571 fi
25572
25573 #########################################
25574 ## Check for libraries extra-dependencies
25575 ##
25576
25577
25578   { echo "$as_me:$LINENO: result: " >&5
25579 echo "${ECHO_T}" >&6; }
25580   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25581 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25582
25583
25584 SIMGRID_DEP=""
25585 SMPI_DEP=""
25586 GRAS_DEP=""
25587
25588 if test xpthread=xyes ; then
25589   # if the pthreads are usable
25590   if test "x$with_context" = "xpthread" ; then
25591     # if we use them to implement the xbt_context
25592     SIMGRID_DEP="-lpthread"
25593   fi
25594   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25595   if test "x$with_context" != "xwindows" ; then
25596     GRAS_DEP="-lpthread"
25597   fi
25598 fi
25599
25600 #########################################
25601 ## Build optional modules (gtnets)
25602 ##
25603 gtnets=no
25604
25605 # Check whether --with-gtnets was given.
25606 if test "${with_gtnets+set}" = set; then
25607   withval=$with_gtnets; gtnets_path="$withval"
25608 else
25609   gtnets_path="no"
25610 fi
25611
25612 if test "x$gtnets_path" = "xno" ; then
25613   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25614 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25615 else
25616   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25617 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25618   { echo "$as_me:$LINENO: checking for gtnets" >&5
25619 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25620   ac_ext=cpp
25621 ac_cpp='$CXXCPP $CPPFLAGS'
25622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25625
25626   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25627   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25628   LDFLAGS_SAV=$LDFLAGS
25629   CPPFLAGS_SAV=$CPPFLAGS
25630   CPPFLAGS+=$GTNETS_CPPFLAGS
25631   LDFLAGS+=$GTNETS_LDFLAGS
25632   cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638  #include <simulator.h>
25639
25640 int
25641 main ()
25642 {
25643 Simulator s; s.RunUntilNextCompletion();
25644   ;
25645   return 0;
25646 }
25647 _ACEOF
25648 rm -f conftest.$ac_objext conftest$ac_exeext
25649 if { (ac_try="$ac_link"
25650 case "(($ac_try" in
25651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652   *) ac_try_echo=$ac_try;;
25653 esac
25654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25655   (eval "$ac_link") 2>conftest.er1
25656   ac_status=$?
25657   grep -v '^ *+' conftest.er1 >conftest.err
25658   rm -f conftest.er1
25659   cat conftest.err >&5
25660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661   (exit $ac_status); } && {
25662          test -z "$ac_cxx_werror_flag" ||
25663          test ! -s conftest.err
25664        } && test -s conftest$ac_exeext &&
25665        $as_test_x conftest$ac_exeext; then
25666   gtnets=yes
25667 else
25668   echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25670
25671         gtnets=no
25672 fi
25673
25674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25675       conftest$ac_exeext conftest.$ac_ext
25676   CPPFLAGS=$CPPFLAGS_SAV
25677   LDFLAGS=$LDFLAGS_SAV
25678   ac_ext=c
25679 ac_cpp='$CPP $CPPFLAGS'
25680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25683
25684
25685   if test "x$gtnets" = xyes ; then
25686     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25687     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25688     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25689 echo "${ECHO_T}Found working gtnets library." >&6; }
25690
25691 cat >>confdefs.h <<\_ACEOF
25692 #define HAVE_GTNETS 1
25693 _ACEOF
25694
25695   else
25696     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25697 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25698   fi
25699 fi
25700  if test "x$gtnets" != xno; then
25701   HAVE_GTNETS_TRUE=
25702   HAVE_GTNETS_FALSE='#'
25703 else
25704   HAVE_GTNETS_TRUE='#'
25705   HAVE_GTNETS_FALSE=
25706 fi
25707
25708
25709 #########################################
25710 ## Build optional modules (csdp)
25711 ##
25712 csdp=no
25713
25714 # Check whether --with-csdp was given.
25715 if test "${with_csdp+set}" = set; then
25716   withval=$with_csdp; csdp_path="$withval"
25717 else
25718   csdp_path="no"
25719 fi
25720
25721 if test "x$csdp_path" = "xno" ; then
25722   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25723 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25724 else
25725   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25726 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25727   { echo "$as_me:$LINENO: checking for csdp" >&5
25728 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25729   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25730   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25731
25732   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25733 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25734 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25735   echo $ECHO_N "(cached) $ECHO_C" >&6
25736 else
25737   ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745
25746 /* Override any GCC internal prototype to avoid an error.
25747    Use char because int might match the return type of a GCC
25748    builtin and then its argument prototype would still apply.  */
25749 #ifdef __cplusplus
25750 extern "C"
25751 #endif
25752 char easy_sdp ();
25753 int
25754 main ()
25755 {
25756 return easy_sdp ();
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (ac_try="$ac_link"
25763 case "(($ac_try" in
25764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765   *) ac_try_echo=$ac_try;;
25766 esac
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768   (eval "$ac_link") 2>conftest.er1
25769   ac_status=$?
25770   grep -v '^ *+' conftest.er1 >conftest.err
25771   rm -f conftest.er1
25772   cat conftest.err >&5
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); } && {
25775          test -z "$ac_c_werror_flag" ||
25776          test ! -s conftest.err
25777        } && test -s conftest$ac_exeext &&
25778        $as_test_x conftest$ac_exeext; then
25779   ac_cv_lib_sdp_easy_sdp=yes
25780 else
25781   echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25783
25784         ac_cv_lib_sdp_easy_sdp=no
25785 fi
25786
25787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25788       conftest$ac_exeext conftest.$ac_ext
25789 LIBS=$ac_check_lib_save_LIBS
25790 fi
25791 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25792 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25793 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25794   csdp_lib=yes
25795 else
25796   csdp_lib=no
25797 fi
25798
25799
25800   CPPFLAGS_SAV=$CPPFLAGS
25801   CPPFLAGS+=$CSDP_CPPFLAGS
25802   if test "${ac_cv_header_declarations_h+set}" = set; then
25803   { echo "$as_me:$LINENO: checking for declarations.h" >&5
25804 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25805 if test "${ac_cv_header_declarations_h+set}" = set; then
25806   echo $ECHO_N "(cached) $ECHO_C" >&6
25807 fi
25808 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25809 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25810 else
25811   # Is the header compilable?
25812 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25813 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25814 cat >conftest.$ac_ext <<_ACEOF
25815 /* confdefs.h.  */
25816 _ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h.  */
25820 $ac_includes_default
25821 #include <declarations.h>
25822 _ACEOF
25823 rm -f conftest.$ac_objext
25824 if { (ac_try="$ac_compile"
25825 case "(($ac_try" in
25826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25827   *) ac_try_echo=$ac_try;;
25828 esac
25829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25830   (eval "$ac_compile") 2>conftest.er1
25831   ac_status=$?
25832   grep -v '^ *+' conftest.er1 >conftest.err
25833   rm -f conftest.er1
25834   cat conftest.err >&5
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); } && {
25837          test -z "$ac_c_werror_flag" ||
25838          test ! -s conftest.err
25839        } && test -s conftest.$ac_objext; then
25840   ac_header_compiler=yes
25841 else
25842   echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25844
25845         ac_header_compiler=no
25846 fi
25847
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25850 echo "${ECHO_T}$ac_header_compiler" >&6; }
25851
25852 # Is the header present?
25853 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25854 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25855 cat >conftest.$ac_ext <<_ACEOF
25856 /* confdefs.h.  */
25857 _ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h.  */
25861 #include <declarations.h>
25862 _ACEOF
25863 if { (ac_try="$ac_cpp conftest.$ac_ext"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } >/dev/null && {
25876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25877          test ! -s conftest.err
25878        }; then
25879   ac_header_preproc=yes
25880 else
25881   echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884   ac_header_preproc=no
25885 fi
25886
25887 rm -f conftest.err conftest.$ac_ext
25888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25889 echo "${ECHO_T}$ac_header_preproc" >&6; }
25890
25891 # So?  What about this header?
25892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25893   yes:no: )
25894     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25895 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25896     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25897 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25898     ac_header_preproc=yes
25899     ;;
25900   no:yes:* )
25901     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25902 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25903     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
25904 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
25905     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25906 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25907     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
25908 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25909     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25910 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25911     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25912 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25913     ( cat <<\_ASBOX
25914 ## -------------------------------------------------- ##
25915 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25916 ## -------------------------------------------------- ##
25917 _ASBOX
25918      ) | sed "s/^/$as_me: WARNING:     /" >&2
25919     ;;
25920 esac
25921 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25922 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25923 if test "${ac_cv_header_declarations_h+set}" = set; then
25924   echo $ECHO_N "(cached) $ECHO_C" >&6
25925 else
25926   ac_cv_header_declarations_h=$ac_header_preproc
25927 fi
25928 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25929 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25930
25931 fi
25932 if test $ac_cv_header_declarations_h = yes; then
25933   csdp_header=yes
25934 else
25935   csdp_header=no
25936 fi
25937
25938
25939   CPPFLAGS=$CPPFLAGS_SAV
25940
25941
25942
25943   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25944      csdp=yes;
25945   else
25946      csdp=no;
25947   fi
25948   if test "x$csdp" = xyes; then
25949     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25950     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25951     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25952 echo "${ECHO_T}Found working sdp library." >&6; }
25953
25954 cat >>confdefs.h <<\_ACEOF
25955 #define HAVE_SDP 1
25956 _ACEOF
25957
25958   else
25959     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25960 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25961   fi;
25962 fi
25963  if test x$csdp != xno; then
25964   HAVE_SDP_TRUE=
25965   HAVE_SDP_FALSE='#'
25966 else
25967   HAVE_SDP_TRUE='#'
25968   HAVE_SDP_FALSE=
25969 fi
25970
25971
25972
25973
25974
25975 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25976 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25977 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25978   echo $ECHO_N "(cached) $ECHO_C" >&6
25979 else
25980   ac_check_lib_save_LIBS=$LIBS
25981 LIBS="-lnsl  $LIBS"
25982 cat >conftest.$ac_ext <<_ACEOF
25983 /* confdefs.h.  */
25984 _ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h.  */
25988
25989 /* Override any GCC internal prototype to avoid an error.
25990    Use char because int might match the return type of a GCC
25991    builtin and then its argument prototype would still apply.  */
25992 #ifdef __cplusplus
25993 extern "C"
25994 #endif
25995 char gethostbyname ();
25996 int
25997 main ()
25998 {
25999 return gethostbyname ();
26000   ;
26001   return 0;
26002 }
26003 _ACEOF
26004 rm -f conftest.$ac_objext conftest$ac_exeext
26005 if { (ac_try="$ac_link"
26006 case "(($ac_try" in
26007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008   *) ac_try_echo=$ac_try;;
26009 esac
26010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26011   (eval "$ac_link") 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } && {
26018          test -z "$ac_c_werror_flag" ||
26019          test ! -s conftest.err
26020        } && test -s conftest$ac_exeext &&
26021        $as_test_x conftest$ac_exeext; then
26022   ac_cv_lib_nsl_gethostbyname=yes
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027         ac_cv_lib_nsl_gethostbyname=no
26028 fi
26029
26030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26031       conftest$ac_exeext conftest.$ac_ext
26032 LIBS=$ac_check_lib_save_LIBS
26033 fi
26034 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26035 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26036 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26037   GRAS_DEP="$GRAS_DEP -lnsl"
26038 fi
26039
26040 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26041 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26042 if test "${ac_cv_lib_socket_connect+set}" = set; then
26043   echo $ECHO_N "(cached) $ECHO_C" >&6
26044 else
26045   ac_check_lib_save_LIBS=$LIBS
26046 LIBS="-lsocket  $LIBS"
26047 cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053
26054 /* Override any GCC internal prototype to avoid an error.
26055    Use char because int might match the return type of a GCC
26056    builtin and then its argument prototype would still apply.  */
26057 #ifdef __cplusplus
26058 extern "C"
26059 #endif
26060 char connect ();
26061 int
26062 main ()
26063 {
26064 return connect ();
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 rm -f conftest.$ac_objext conftest$ac_exeext
26070 if { (ac_try="$ac_link"
26071 case "(($ac_try" in
26072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073   *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076   (eval "$ac_link") 2>conftest.er1
26077   ac_status=$?
26078   grep -v '^ *+' conftest.er1 >conftest.err
26079   rm -f conftest.er1
26080   cat conftest.err >&5
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); } && {
26083          test -z "$ac_c_werror_flag" ||
26084          test ! -s conftest.err
26085        } && test -s conftest$ac_exeext &&
26086        $as_test_x conftest$ac_exeext; then
26087   ac_cv_lib_socket_connect=yes
26088 else
26089   echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26091
26092         ac_cv_lib_socket_connect=no
26093 fi
26094
26095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26096       conftest$ac_exeext conftest.$ac_ext
26097 LIBS=$ac_check_lib_save_LIBS
26098 fi
26099 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26100 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26101 if test $ac_cv_lib_socket_connect = yes; then
26102   GRAS_DEP="$GRAS_DEP -lsocket"
26103 fi
26104
26105
26106 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
26107 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
26108 case $host_os in
26109   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
26110             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
26111             cat >>confdefs.h <<\_ACEOF
26112 #define CONTEXT_THREADS 1
26113 _ACEOF
26114 ;;
26115 esac
26116
26117 if test "x$GRAS_DEP" = x; then
26118    { echo "$as_me:$LINENO: result: none" >&5
26119 echo "${ECHO_T}none" >&6; }
26120 else
26121    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
26122 echo "${ECHO_T}$GRAS_DEP" >&6; }
26123 fi
26124
26125
26126 ##############################################
26127 ## Enhance maintainer mode and SUBST variables
26128 ## (must be placed after any compilation tests since our overprotective flags
26129 ##  let some tests fail)
26130
26131 # Check whether we are doing a regular build or a GRAMINE (minimal) one
26132 # Next line is modified by sed when building gramine source tree
26133 gramine_mode=no
26134 if test x$gramine_mode = xyes
26135 then
26136   USE_MAINTAINER_MODE=no
26137 fi
26138  if test x$gramine_mode != xno; then
26139   GRAMINE_MODE_TRUE=
26140   GRAMINE_MODE_FALSE='#'
26141 else
26142   GRAMINE_MODE_TRUE='#'
26143   GRAMINE_MODE_FALSE=
26144 fi
26145
26146
26147
26148 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26149 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26150     # Check whether --enable-maintainer-mode was given.
26151 if test "${enable_maintainer_mode+set}" = set; then
26152   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26153 else
26154   USE_MAINTAINER_MODE=no
26155 fi
26156
26157   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26158 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26159    if test $USE_MAINTAINER_MODE = yes; then
26160   MAINTAINER_MODE_TRUE=
26161   MAINTAINER_MODE_FALSE='#'
26162 else
26163   MAINTAINER_MODE_TRUE='#'
26164   MAINTAINER_MODE_FALSE=
26165 fi
26166
26167   MAINT=$MAINTAINER_MODE_TRUE
26168
26169
26170 if test x$USE_MAINTAINER_MODE = xyes
26171 then
26172    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26173    enable_compile_warnings=yes
26174 fi
26175
26176   # Check whether --enable-compile-warnings was given.
26177 if test "${enable_compile_warnings+set}" = set; then
26178   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26179 else
26180   enable_compile_warnings=no
26181 fi
26182
26183
26184   # Check whether --enable-compile-optimizations was given.
26185 if test "${enable_compile_optimizations+set}" = set; then
26186   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26187 else
26188   enable_compile_optimizations=auto
26189 fi
26190
26191
26192   if test "x$cflags_set" != "xyes" ; then
26193     # if user didn't specify CFLAGS explicitely
26194
26195     # AC PROG CC tests whether -g is accepted.
26196     # Cool, but it also tries to set -O2. I don't want it with gcc
26197     saveCFLAGS="$CFLAGS"
26198     CFLAGS=
26199     case " $saveCFLAGS " in
26200     *-g*) CFLAGS="-g" ;;
26201     esac
26202     case " $saveCFLAGS " in
26203     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
26204     esac
26205
26206     # damn AC PROG CC, why did you set -O??
26207     CFLAGS="-g"
26208   fi
26209
26210   if test "x$enable_compile_warnings" = "xyes" ; then
26211     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26212 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26213     warnCFLAGS=
26214     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26215       case " $CFLAGS " in
26216       *-Wall*) ;;
26217       *) warnCFLAGS="-Wall -Wunused" ;;
26218       esac
26219
26220       ## -W is not all that useful.  And it cannot be controlled
26221       ## with individual -Wno-xxx flags, unlike -Wall
26222
26223       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26224       ## -Wshadow chokes on try{ try{} } constructs
26225       if test "x$enable_compile_warnings" = "xyes"; then
26226         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
26227         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26228         -Wno-unused-function  \
26229         -Werror \
26230         | sed 's/ +/ /g'`
26231         # -Wno-unused-variable  -Wno-unused-label
26232       fi
26233     fi
26234     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26235 echo "${ECHO_T}$warnCFLAGS" >&6; }
26236     # placed before since gcc remembers the last one on conflict
26237     CFLAGS="$warnCFLAGS $CFLAGS"
26238   fi
26239
26240   if test "x$enable_compile_optimizations" = "xyes" ||
26241      test "x$enable_compile_optimizations" = "xauto" ; then
26242     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26243 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26244     optCFLAGS=
26245     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26246         case " $CFLAGS " in
26247         *-O*) ;;
26248         *) optCFLAGS="$optCFLAGS -O3" ;;
26249         esac
26250         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26251
26252         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26253         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26254         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26255           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26256           # but the check would be too complicated to get 3.4.
26257           # Instead, rule out any 3.x compiler.
26258
26259           # Note that the flag didn't exist before gcc 3.0
26260           optCFLAGS="$optCFLAGS -fno-loop-optimize"
26261         fi
26262             fi
26263     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26264 echo "${ECHO_T}$optCFLAGS" >&6; }
26265     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26266     if test "x$cflags_set" != "xyes" ; then
26267       CFLAGS="$optCFLAGS $CFLAGS"
26268     fi
26269   fi
26270
26271   if test x$lt_cv_prog_gnu_ld = xyes ; then
26272     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26273   else
26274     LD_DYNAMIC_FLAGS=
26275   fi
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292   { echo "$as_me:$LINENO: result: " >&5
26293 echo "${ECHO_T}" >&6; }
26294   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26295 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26296
26297 # Java cruft
26298 # Check whether --enable-java was given.
26299 if test "${enable_java+set}" = set; then
26300   enableval=$enable_java; want_java=$enableval
26301 else
26302   want_java=yes
26303 fi
26304
26305 if test "x$want_java" != "xyes" ; then
26306    { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26307 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26308    { echo "$as_me:$LINENO: result: disabled by user" >&5
26309 echo "${ECHO_T}disabled by user" >&6; }
26310    use_java="disabled by user"
26311 else
26312   # Extract the first word of "javac", so it can be a program name with args.
26313 set dummy javac; ac_word=$2
26314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26316 if test "${ac_cv_path_JAVAC+set}" = set; then
26317   echo $ECHO_N "(cached) $ECHO_C" >&6
26318 else
26319   case $JAVAC in
26320   [\\/]* | ?:[\\/]*)
26321   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26322   ;;
26323   *)
26324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26325 for as_dir in $PATH
26326 do
26327   IFS=$as_save_IFS
26328   test -z "$as_dir" && as_dir=.
26329   for ac_exec_ext in '' $ac_executable_extensions; do
26330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26331     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26333     break 2
26334   fi
26335 done
26336 done
26337 IFS=$as_save_IFS
26338
26339   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26340   ;;
26341 esac
26342 fi
26343 JAVAC=$ac_cv_path_JAVAC
26344 if test -n "$JAVAC"; then
26345   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26346 echo "${ECHO_T}$JAVAC" >&6; }
26347 else
26348   { echo "$as_me:$LINENO: result: no" >&5
26349 echo "${ECHO_T}no" >&6; }
26350 fi
26351
26352
26353   # Extract the first word of "java ", so it can be a program name with args.
26354 set dummy java ; ac_word=$2
26355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26357 if test "${ac_cv_path_JAVA+set}" = set; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 else
26360   case $JAVA in
26361   [\\/]* | ?:[\\/]*)
26362   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26363   ;;
26364   *)
26365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26366 for as_dir in $PATH
26367 do
26368   IFS=$as_save_IFS
26369   test -z "$as_dir" && as_dir=.
26370   for ac_exec_ext in '' $ac_executable_extensions; do
26371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26372     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26374     break 2
26375   fi
26376 done
26377 done
26378 IFS=$as_save_IFS
26379
26380   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26381   ;;
26382 esac
26383 fi
26384 JAVA=$ac_cv_path_JAVA
26385 if test -n "$JAVA"; then
26386   { echo "$as_me:$LINENO: result: $JAVA" >&5
26387 echo "${ECHO_T}$JAVA" >&6; }
26388 else
26389   { echo "$as_me:$LINENO: result: no" >&5
26390 echo "${ECHO_T}no" >&6; }
26391 fi
26392
26393
26394   # Extract the first word of "jar  ", so it can be a program name with args.
26395 set dummy jar  ; ac_word=$2
26396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26398 if test "${ac_cv_path_JAR+set}" = set; then
26399   echo $ECHO_N "(cached) $ECHO_C" >&6
26400 else
26401   case $JAR in
26402   [\\/]* | ?:[\\/]*)
26403   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26404   ;;
26405   *)
26406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26407 for as_dir in $PATH
26408 do
26409   IFS=$as_save_IFS
26410   test -z "$as_dir" && as_dir=.
26411   for ac_exec_ext in '' $ac_executable_extensions; do
26412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26413     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26415     break 2
26416   fi
26417 done
26418 done
26419 IFS=$as_save_IFS
26420
26421   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26422   ;;
26423 esac
26424 fi
26425 JAR=$ac_cv_path_JAR
26426 if test -n "$JAR"; then
26427   { echo "$as_me:$LINENO: result: $JAR" >&5
26428 echo "${ECHO_T}$JAR" >&6; }
26429 else
26430   { echo "$as_me:$LINENO: result: no" >&5
26431 echo "${ECHO_T}no" >&6; }
26432 fi
26433
26434
26435
26436 for ac_header in jni.h
26437 do
26438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26443   echo $ECHO_N "(cached) $ECHO_C" >&6
26444 fi
26445 ac_res=`eval echo '${'$as_ac_Header'}'`
26446                { echo "$as_me:$LINENO: result: $ac_res" >&5
26447 echo "${ECHO_T}$ac_res" >&6; }
26448 else
26449   # Is the header compilable?
26450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26452 cat >conftest.$ac_ext <<_ACEOF
26453 /* confdefs.h.  */
26454 _ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h.  */
26458 $ac_includes_default
26459 #include <$ac_header>
26460 _ACEOF
26461 rm -f conftest.$ac_objext
26462 if { (ac_try="$ac_compile"
26463 case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_compile") 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } && {
26475          test -z "$ac_c_werror_flag" ||
26476          test ! -s conftest.err
26477        } && test -s conftest.$ac_objext; then
26478   ac_header_compiler=yes
26479 else
26480   echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26482
26483         ac_header_compiler=no
26484 fi
26485
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26488 echo "${ECHO_T}$ac_header_compiler" >&6; }
26489
26490 # Is the header present?
26491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26493 cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499 #include <$ac_header>
26500 _ACEOF
26501 if { (ac_try="$ac_cpp conftest.$ac_ext"
26502 case "(($ac_try" in
26503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504   *) ac_try_echo=$ac_try;;
26505 esac
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26508   ac_status=$?
26509   grep -v '^ *+' conftest.er1 >conftest.err
26510   rm -f conftest.er1
26511   cat conftest.err >&5
26512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); } >/dev/null && {
26514          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26515          test ! -s conftest.err
26516        }; then
26517   ac_header_preproc=yes
26518 else
26519   echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26521
26522   ac_header_preproc=no
26523 fi
26524
26525 rm -f conftest.err conftest.$ac_ext
26526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26527 echo "${ECHO_T}$ac_header_preproc" >&6; }
26528
26529 # So?  What about this header?
26530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26531   yes:no: )
26532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26536     ac_header_preproc=yes
26537     ;;
26538   no:yes:* )
26539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26551     ( cat <<\_ASBOX
26552 ## -------------------------------------------------- ##
26553 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26554 ## -------------------------------------------------- ##
26555 _ASBOX
26556      ) | sed "s/^/$as_me: WARNING:     /" >&2
26557     ;;
26558 esac
26559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26562   echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564   eval "$as_ac_Header=\$ac_header_preproc"
26565 fi
26566 ac_res=`eval echo '${'$as_ac_Header'}'`
26567                { echo "$as_me:$LINENO: result: $ac_res" >&5
26568 echo "${ECHO_T}$ac_res" >&6; }
26569
26570 fi
26571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26572   cat >>confdefs.h <<_ACEOF
26573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26574 _ACEOF
26575
26576 fi
26577
26578 done
26579
26580   { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26581 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26582   if test -n "$JAVAC"   \
26583      && test -n "$JAVA" \
26584      && test -n "$JAR"  \
26585      && test "x$ac_cv_header_jni_h" = "xyes" ; then
26586
26587      use_java="yes"
26588   else
26589      use_java="no"
26590   fi
26591   { echo "$as_me:$LINENO: result: $use_java" >&5
26592 echo "${ECHO_T}$use_java" >&6; }
26593 fi
26594  if test "x$use_java" = "xyes"; then
26595   HAVE_JAVA_TRUE=
26596   HAVE_JAVA_FALSE='#'
26597 else
26598   HAVE_JAVA_TRUE='#'
26599   HAVE_JAVA_FALSE=
26600 fi
26601
26602
26603 #####################
26604 ## Check for programs
26605 ##
26606
26607
26608   { echo "$as_me:$LINENO: result: " >&5
26609 echo "${ECHO_T}" >&6; }
26610   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26611 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26612
26613 # Extract the first word of "bash", so it can be a program name with args.
26614 set dummy bash; ac_word=$2
26615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26617 if test "${ac_cv_prog_BASH+set}" = set; then
26618   echo $ECHO_N "(cached) $ECHO_C" >&6
26619 else
26620   if test -n "$BASH"; then
26621   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26622 else
26623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26624 for as_dir in $PATH
26625 do
26626   IFS=$as_save_IFS
26627   test -z "$as_dir" && as_dir=.
26628   for ac_exec_ext in '' $ac_executable_extensions; do
26629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26630     ac_cv_prog_BASH="`which bash`"
26631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26632     break 2
26633   fi
26634 done
26635 done
26636 IFS=$as_save_IFS
26637
26638   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26639 fi
26640 fi
26641 BASH=$ac_cv_prog_BASH
26642 if test -n "$BASH"; then
26643   { echo "$as_me:$LINENO: result: $BASH" >&5
26644 echo "${ECHO_T}$BASH" >&6; }
26645 else
26646   { echo "$as_me:$LINENO: result: no" >&5
26647 echo "${ECHO_T}no" >&6; }
26648 fi
26649
26650
26651 WARNING="This file is generated, do not edit"
26652
26653
26654
26655 # Can we rebuild the parsers?
26656 # We really want flex and refuse other lex. So, the parser is portable and
26657 # does not induce extra lib dependency
26658 for ac_prog in flex lex
26659 do
26660   # Extract the first word of "$ac_prog", so it can be a program name with args.
26661 set dummy $ac_prog; ac_word=$2
26662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26664 if test "${ac_cv_prog_LEX+set}" = set; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 else
26667   if test -n "$LEX"; then
26668   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26669 else
26670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26671 for as_dir in $PATH
26672 do
26673   IFS=$as_save_IFS
26674   test -z "$as_dir" && as_dir=.
26675   for ac_exec_ext in '' $ac_executable_extensions; do
26676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26677     ac_cv_prog_LEX="$ac_prog"
26678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26679     break 2
26680   fi
26681 done
26682 done
26683 IFS=$as_save_IFS
26684
26685 fi
26686 fi
26687 LEX=$ac_cv_prog_LEX
26688 if test -n "$LEX"; then
26689   { echo "$as_me:$LINENO: result: $LEX" >&5
26690 echo "${ECHO_T}$LEX" >&6; }
26691 else
26692   { echo "$as_me:$LINENO: result: no" >&5
26693 echo "${ECHO_T}no" >&6; }
26694 fi
26695
26696
26697   test -n "$LEX" && break
26698 done
26699 test -n "$LEX" || LEX=":"
26700
26701 if test "x$LEX" != "x:"; then
26702   cat >conftest.l <<_ACEOF
26703 %%
26704 a { ECHO; }
26705 b { REJECT; }
26706 c { yymore (); }
26707 d { yyless (1); }
26708 e { yyless (input () != 0); }
26709 f { unput (yytext[0]); }
26710 . { BEGIN INITIAL; }
26711 %%
26712 #ifdef YYTEXT_POINTER
26713 extern char *yytext;
26714 #endif
26715 int
26716 main (void)
26717 {
26718   return ! yylex () + ! yywrap ();
26719 }
26720 _ACEOF
26721 { (ac_try="$LEX conftest.l"
26722 case "(($ac_try" in
26723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724   *) ac_try_echo=$ac_try;;
26725 esac
26726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26727   (eval "$LEX conftest.l") 2>&5
26728   ac_status=$?
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); }
26731 { echo "$as_me:$LINENO: checking lex output file root" >&5
26732 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26733 if test "${ac_cv_prog_lex_root+set}" = set; then
26734   echo $ECHO_N "(cached) $ECHO_C" >&6
26735 else
26736
26737 if test -f lex.yy.c; then
26738   ac_cv_prog_lex_root=lex.yy
26739 elif test -f lexyy.c; then
26740   ac_cv_prog_lex_root=lexyy
26741 else
26742   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26743 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26744    { (exit 1); exit 1; }; }
26745 fi
26746 fi
26747 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26748 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26749 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26750
26751 if test -z "${LEXLIB+set}"; then
26752   { echo "$as_me:$LINENO: checking lex library" >&5
26753 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26754 if test "${ac_cv_lib_lex+set}" = set; then
26755   echo $ECHO_N "(cached) $ECHO_C" >&6
26756 else
26757
26758     ac_save_LIBS=$LIBS
26759     ac_cv_lib_lex='none needed'
26760     for ac_lib in '' -lfl -ll; do
26761       LIBS="$ac_lib $ac_save_LIBS"
26762       cat >conftest.$ac_ext <<_ACEOF
26763 `cat $LEX_OUTPUT_ROOT.c`
26764 _ACEOF
26765 rm -f conftest.$ac_objext conftest$ac_exeext
26766 if { (ac_try="$ac_link"
26767 case "(($ac_try" in
26768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769   *) ac_try_echo=$ac_try;;
26770 esac
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772   (eval "$ac_link") 2>conftest.er1
26773   ac_status=$?
26774   grep -v '^ *+' conftest.er1 >conftest.err
26775   rm -f conftest.er1
26776   cat conftest.err >&5
26777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778   (exit $ac_status); } && {
26779          test -z "$ac_c_werror_flag" ||
26780          test ! -s conftest.err
26781        } && test -s conftest$ac_exeext &&
26782        $as_test_x conftest$ac_exeext; then
26783   ac_cv_lib_lex=$ac_lib
26784 else
26785   echo "$as_me: failed program was:" >&5
26786 sed 's/^/| /' conftest.$ac_ext >&5
26787
26788
26789 fi
26790
26791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26792       conftest$ac_exeext conftest.$ac_ext
26793       test "$ac_cv_lib_lex" != 'none needed' && break
26794     done
26795     LIBS=$ac_save_LIBS
26796
26797 fi
26798 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26799 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26800   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26801 fi
26802
26803
26804 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26805 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26806 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   # POSIX says lex can declare yytext either as a pointer or an array; the
26810 # default is implementation-dependent.  Figure out which it is, since
26811 # not all implementations provide the %pointer and %array declarations.
26812 ac_cv_prog_lex_yytext_pointer=no
26813 ac_save_LIBS=$LIBS
26814 LIBS="$LEXLIB $ac_save_LIBS"
26815 cat >conftest.$ac_ext <<_ACEOF
26816 #define YYTEXT_POINTER 1
26817 `cat $LEX_OUTPUT_ROOT.c`
26818 _ACEOF
26819 rm -f conftest.$ac_objext conftest$ac_exeext
26820 if { (ac_try="$ac_link"
26821 case "(($ac_try" in
26822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823   *) ac_try_echo=$ac_try;;
26824 esac
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826   (eval "$ac_link") 2>conftest.er1
26827   ac_status=$?
26828   grep -v '^ *+' conftest.er1 >conftest.err
26829   rm -f conftest.er1
26830   cat conftest.err >&5
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); } && {
26833          test -z "$ac_c_werror_flag" ||
26834          test ! -s conftest.err
26835        } && test -s conftest$ac_exeext &&
26836        $as_test_x conftest$ac_exeext; then
26837   ac_cv_prog_lex_yytext_pointer=yes
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842
26843 fi
26844
26845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26846       conftest$ac_exeext conftest.$ac_ext
26847 LIBS=$ac_save_LIBS
26848
26849 fi
26850 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26851 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26852 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26853
26854 cat >>confdefs.h <<\_ACEOF
26855 #define YYTEXT_POINTER 1
26856 _ACEOF
26857
26858 fi
26859 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26860
26861 fi
26862
26863   if test "$LEX" != flex; then
26864     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26865 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26866     LEX=${am_missing_run}flex
26867     LEXLIB=''
26868
26869   else
26870     if test "x2.5.30" != "x" ; then
26871                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26872
26873       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26874       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26875       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26876
26877       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26878       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26879       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26880
26881       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26882          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26883          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26884       then
26885         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26886 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26887         LEX=${am_missing_run}flex
26888         LEXLIB=''
26889
26890       else
26891         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26892 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26893       fi
26894     fi
26895   fi
26896
26897
26898 # Can we rebuild the xml-lexers from the XML specification?
26899 # if not, simply touch the flex source files (which are distributed in
26900 #  tarballs even if generated by flexml) and hope for the best.
26901 # Extract the first word of "flexml", so it can be a program name with args.
26902 set dummy flexml; ac_word=$2
26903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26905 if test "${ac_cv_prog_FLEXML+set}" = set; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   if test -n "$FLEXML"; then
26909   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26910 else
26911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26912 for as_dir in $PATH
26913 do
26914   IFS=$as_save_IFS
26915   test -z "$as_dir" && as_dir=.
26916   for ac_exec_ext in '' $ac_executable_extensions; do
26917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26918     ac_cv_prog_FLEXML="`which flexml`"
26919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26920     break 2
26921   fi
26922 done
26923 done
26924 IFS=$as_save_IFS
26925
26926   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26927 fi
26928 fi
26929 FLEXML=$ac_cv_prog_FLEXML
26930 if test -n "$FLEXML"; then
26931   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26932 echo "${ECHO_T}$FLEXML" >&6; }
26933 else
26934   { echo "$as_me:$LINENO: result: no" >&5
26935 echo "${ECHO_T}no" >&6; }
26936 fi
26937
26938
26939  if test x$FLEXML != xNOTFOUND; then
26940   HAVE_FLEXML_TRUE=
26941   HAVE_FLEXML_FALSE='#'
26942 else
26943   HAVE_FLEXML_TRUE='#'
26944   HAVE_FLEXML_FALSE=
26945 fi
26946
26947
26948 if test x$USE_MAINTAINER_MODE = xyes
26949 then
26950    # Check for doxygen when in maintainer mode since dist* targets fail
26951    # without it
26952    # Extract the first word of "doxygen", so it can be a program name with args.
26953 set dummy doxygen; ac_word=$2
26954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26956 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26957   echo $ECHO_N "(cached) $ECHO_C" >&6
26958 else
26959   case $DOXYGEN in
26960   [\\/]* | ?:[\\/]*)
26961   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26962   ;;
26963   *)
26964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26965 for as_dir in $PATH
26966 do
26967   IFS=$as_save_IFS
26968   test -z "$as_dir" && as_dir=.
26969   for ac_exec_ext in '' $ac_executable_extensions; do
26970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26971     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26973     break 2
26974   fi
26975 done
26976 done
26977 IFS=$as_save_IFS
26978
26979   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26980   ;;
26981 esac
26982 fi
26983 DOXYGEN=$ac_cv_path_DOXYGEN
26984 if test -n "$DOXYGEN"; then
26985   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26986 echo "${ECHO_T}$DOXYGEN" >&6; }
26987 else
26988   { echo "$as_me:$LINENO: result: no" >&5
26989 echo "${ECHO_T}no" >&6; }
26990 fi
26991
26992
26993    if test x$DOXYGEN = x ; then
26994      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26995 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26996    { (exit 1); exit 1; }; }
26997    fi
26998 fi
26999
27000 # Can we extract really usable backtraces? (also need the popen function)
27001 # Extract the first word of "addr2line", so it can be a program name with args.
27002 set dummy addr2line; ac_word=$2
27003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27005 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
27006   echo $ECHO_N "(cached) $ECHO_C" >&6
27007 else
27008   case $ADDR2LINE in
27009   [\\/]* | ?:[\\/]*)
27010   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
27011   ;;
27012   *)
27013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27014 for as_dir in $PATH
27015 do
27016   IFS=$as_save_IFS
27017   test -z "$as_dir" && as_dir=.
27018   for ac_exec_ext in '' $ac_executable_extensions; do
27019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27020     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
27021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27022     break 2
27023   fi
27024 done
27025 done
27026 IFS=$as_save_IFS
27027
27028   ;;
27029 esac
27030 fi
27031 ADDR2LINE=$ac_cv_path_ADDR2LINE
27032 if test -n "$ADDR2LINE"; then
27033   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
27034 echo "${ECHO_T}$ADDR2LINE" >&6; }
27035 else
27036   { echo "$as_me:$LINENO: result: no" >&5
27037 echo "${ECHO_T}no" >&6; }
27038 fi
27039
27040
27041 if test x$ADDR2LINE != x ; then
27042
27043 cat >>confdefs.h <<_ACEOF
27044 #define ADDR2LINE "$ADDR2LINE"
27045 _ACEOF
27046
27047 fi
27048
27049
27050 # Can we make status line about the compilation result?
27051 # Extract the first word of "md5sum", so it can be a program name with args.
27052 set dummy md5sum; ac_word=$2
27053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27055 if test "${ac_cv_prog_MD5SUM+set}" = set; then
27056   echo $ECHO_N "(cached) $ECHO_C" >&6
27057 else
27058   if test -n "$MD5SUM"; then
27059   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
27060 else
27061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27062 for as_dir in $PATH
27063 do
27064   IFS=$as_save_IFS
27065   test -z "$as_dir" && as_dir=.
27066   for ac_exec_ext in '' $ac_executable_extensions; do
27067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27068     ac_cv_prog_MD5SUM="`which md5sum`"
27069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27070     break 2
27071   fi
27072 done
27073 done
27074 IFS=$as_save_IFS
27075
27076 fi
27077 fi
27078 MD5SUM=$ac_cv_prog_MD5SUM
27079 if test -n "$MD5SUM"; then
27080   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
27081 echo "${ECHO_T}$MD5SUM" >&6; }
27082 else
27083   { echo "$as_me:$LINENO: result: no" >&5
27084 echo "${ECHO_T}no" >&6; }
27085 fi
27086
27087
27088 if test x$MD5SUM != xno ; then
27089   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
27090                  xargs cat| $MD5SUM | sed 's/ .*$//'`
27091 else
27092   build_version="no_md5sum_binary"
27093 fi
27094 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
27095
27096
27097 ###################
27098 ## Makes the output
27099 ##
27100
27101
27102 #
27103 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
27104 #  src/amok/Makefile
27105
27106
27107   { echo "$as_me:$LINENO: result: " >&5
27108 echo "${ECHO_T}" >&6; }
27109   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27110 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27111
27112
27113 # Core of the libraries
27114
27115 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
27116
27117
27118 # Tools being embeeded in gramine (stub generator)
27119 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27120
27121
27122
27123 # GRAMINE_CUT_BEGIN
27124
27125 # Tools NOT being embeeded in gramine
27126 ac_config_files="$ac_config_files tools/graspe-slave"
27127
27128
27129 # Testsuite
27130
27131 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
27132
27133
27134 # Documentation
27135 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27136
27137
27138 # Examples
27139
27140 #      examples/gras/p2p/Makefile
27141 #      examples/gras/p2p/chord/Makefile
27142 #      examples/gras/p2p/can/Makefile
27143
27144 if test "x$use_java" = "xyes" ; then
27145 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
27146
27147 fi
27148
27149 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
27150
27151
27152
27153 # GRAMINE_CUT_END
27154
27155 cat >confcache <<\_ACEOF
27156 # This file is a shell script that caches the results of configure
27157 # tests run on this system so they can be shared between configure
27158 # scripts and configure runs, see configure's option --config-cache.
27159 # It is not useful on other systems.  If it contains results you don't
27160 # want to keep, you may remove or edit it.
27161 #
27162 # config.status only pays attention to the cache file if you give it
27163 # the --recheck option to rerun configure.
27164 #
27165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27167 # following values.
27168
27169 _ACEOF
27170
27171 # The following way of writing the cache mishandles newlines in values,
27172 # but we know of no workaround that is simple, portable, and efficient.
27173 # So, we kill variables containing newlines.
27174 # Ultrix sh set writes to stderr and can't be redirected directly,
27175 # and sets the high bit in the cache file unless we assign to the vars.
27176 (
27177   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27178     eval ac_val=\$$ac_var
27179     case $ac_val in #(
27180     *${as_nl}*)
27181       case $ac_var in #(
27182       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27183 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27184       esac
27185       case $ac_var in #(
27186       _ | IFS | as_nl) ;; #(
27187       *) $as_unset $ac_var ;;
27188       esac ;;
27189     esac
27190   done
27191
27192   (set) 2>&1 |
27193     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27194     *${as_nl}ac_space=\ *)
27195       # `set' does not quote correctly, so add quotes (double-quote
27196       # substitution turns \\\\ into \\, and sed turns \\ into \).
27197       sed -n \
27198         "s/'/'\\\\''/g;
27199           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27200       ;; #(
27201     *)
27202       # `set' quotes correctly as required by POSIX, so do not add quotes.
27203       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27204       ;;
27205     esac |
27206     sort
27207 ) |
27208   sed '
27209      /^ac_cv_env_/b end
27210      t clear
27211      :clear
27212      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27213      t end
27214      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27215      :end' >>confcache
27216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27217   if test -w "$cache_file"; then
27218     test "x$cache_file" != "x/dev/null" &&
27219       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27220 echo "$as_me: updating cache $cache_file" >&6;}
27221     cat confcache >$cache_file
27222   else
27223     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27224 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27225   fi
27226 fi
27227 rm -f confcache
27228
27229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27230 # Let make expand exec_prefix.
27231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27232
27233 DEFS=-DHAVE_CONFIG_H
27234
27235 ac_libobjs=
27236 ac_ltlibobjs=
27237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27238   # 1. Remove the extension, and $U if already installed.
27239   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27240   ac_i=`echo "$ac_i" | sed "$ac_script"`
27241   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27242   #    will be set to the directory where LIBOBJS objects are built.
27243   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27244   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27245 done
27246 LIBOBJS=$ac_libobjs
27247
27248 LTLIBOBJS=$ac_ltlibobjs
27249
27250
27251 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27252   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27253 Usually this means the macro was only invoked conditionally." >&5
27254 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27255 Usually this means the macro was only invoked conditionally." >&2;}
27256    { (exit 1); exit 1; }; }
27257 fi
27258 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27259   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27260 Usually this means the macro was only invoked conditionally." >&5
27261 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27262 Usually this means the macro was only invoked conditionally." >&2;}
27263    { (exit 1); exit 1; }; }
27264 fi
27265 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27266   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27267 Usually this means the macro was only invoked conditionally." >&5
27268 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27269 Usually this means the macro was only invoked conditionally." >&2;}
27270    { (exit 1); exit 1; }; }
27271 fi
27272 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27273   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27274 Usually this means the macro was only invoked conditionally." >&5
27275 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27276 Usually this means the macro was only invoked conditionally." >&2;}
27277    { (exit 1); exit 1; }; }
27278 fi
27279 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27280   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27281 Usually this means the macro was only invoked conditionally." >&5
27282 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27283 Usually this means the macro was only invoked conditionally." >&2;}
27284    { (exit 1); exit 1; }; }
27285 fi
27286 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27287   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27288 Usually this means the macro was only invoked conditionally." >&5
27289 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27290 Usually this means the macro was only invoked conditionally." >&2;}
27291    { (exit 1); exit 1; }; }
27292 fi
27293 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27294   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27295 Usually this means the macro was only invoked conditionally." >&5
27296 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27297 Usually this means the macro was only invoked conditionally." >&2;}
27298    { (exit 1); exit 1; }; }
27299 fi
27300 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27301   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27302 Usually this means the macro was only invoked conditionally." >&5
27303 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27304 Usually this means the macro was only invoked conditionally." >&2;}
27305    { (exit 1); exit 1; }; }
27306 fi
27307 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27308   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27309 Usually this means the macro was only invoked conditionally." >&5
27310 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27311 Usually this means the macro was only invoked conditionally." >&2;}
27312    { (exit 1); exit 1; }; }
27313 fi
27314 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27315   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27316 Usually this means the macro was only invoked conditionally." >&5
27317 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27318 Usually this means the macro was only invoked conditionally." >&2;}
27319    { (exit 1); exit 1; }; }
27320 fi
27321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27322   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27323 Usually this means the macro was only invoked conditionally." >&5
27324 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27325 Usually this means the macro was only invoked conditionally." >&2;}
27326    { (exit 1); exit 1; }; }
27327 fi
27328 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27329   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27330 Usually this means the macro was only invoked conditionally." >&5
27331 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27332 Usually this means the macro was only invoked conditionally." >&2;}
27333    { (exit 1); exit 1; }; }
27334 fi
27335 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27336   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27337 Usually this means the macro was only invoked conditionally." >&5
27338 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27339 Usually this means the macro was only invoked conditionally." >&2;}
27340    { (exit 1); exit 1; }; }
27341 fi
27342
27343 : ${CONFIG_STATUS=./config.status}
27344 ac_clean_files_save=$ac_clean_files
27345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27348 cat >$CONFIG_STATUS <<_ACEOF
27349 #! $SHELL
27350 # Generated by $as_me.
27351 # Run this file to recreate the current configuration.
27352 # Compiler output produced by configure, useful for debugging
27353 # configure, is in config.log if it exists.
27354
27355 debug=false
27356 ac_cs_recheck=false
27357 ac_cs_silent=false
27358 SHELL=\${CONFIG_SHELL-$SHELL}
27359 _ACEOF
27360
27361 cat >>$CONFIG_STATUS <<\_ACEOF
27362 ## --------------------- ##
27363 ## M4sh Initialization.  ##
27364 ## --------------------- ##
27365
27366 # Be more Bourne compatible
27367 DUALCASE=1; export DUALCASE # for MKS sh
27368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27369   emulate sh
27370   NULLCMD=:
27371   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27372   # is contrary to our usage.  Disable this feature.
27373   alias -g '${1+"$@"}'='"$@"'
27374   setopt NO_GLOB_SUBST
27375 else
27376   case `(set -o) 2>/dev/null` in
27377   *posix*) set -o posix ;;
27378 esac
27379
27380 fi
27381
27382
27383
27384
27385 # PATH needs CR
27386 # Avoid depending upon Character Ranges.
27387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27390 as_cr_digits='0123456789'
27391 as_cr_alnum=$as_cr_Letters$as_cr_digits
27392
27393 # The user is always right.
27394 if test "${PATH_SEPARATOR+set}" != set; then
27395   echo "#! /bin/sh" >conf$$.sh
27396   echo  "exit 0"   >>conf$$.sh
27397   chmod +x conf$$.sh
27398   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27399     PATH_SEPARATOR=';'
27400   else
27401     PATH_SEPARATOR=:
27402   fi
27403   rm -f conf$$.sh
27404 fi
27405
27406 # Support unset when possible.
27407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27408   as_unset=unset
27409 else
27410   as_unset=false
27411 fi
27412
27413
27414 # IFS
27415 # We need space, tab and new line, in precisely that order.  Quoting is
27416 # there to prevent editors from complaining about space-tab.
27417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27418 # splitting by setting IFS to empty value.)
27419 as_nl='
27420 '
27421 IFS=" ""        $as_nl"
27422
27423 # Find who we are.  Look in the path if we contain no directory separator.
27424 case $0 in
27425   *[\\/]* ) as_myself=$0 ;;
27426   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27427 for as_dir in $PATH
27428 do
27429   IFS=$as_save_IFS
27430   test -z "$as_dir" && as_dir=.
27431   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27432 done
27433 IFS=$as_save_IFS
27434
27435      ;;
27436 esac
27437 # We did not find ourselves, most probably we were run as `sh COMMAND'
27438 # in which case we are not to be found in the path.
27439 if test "x$as_myself" = x; then
27440   as_myself=$0
27441 fi
27442 if test ! -f "$as_myself"; then
27443   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27444   { (exit 1); exit 1; }
27445 fi
27446
27447 # Work around bugs in pre-3.0 UWIN ksh.
27448 for as_var in ENV MAIL MAILPATH
27449 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27450 done
27451 PS1='$ '
27452 PS2='> '
27453 PS4='+ '
27454
27455 # NLS nuisances.
27456 for as_var in \
27457   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27458   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27459   LC_TELEPHONE LC_TIME
27460 do
27461   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27462     eval $as_var=C; export $as_var
27463   else
27464     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27465   fi
27466 done
27467
27468 # Required to use basename.
27469 if expr a : '\(a\)' >/dev/null 2>&1 &&
27470    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27471   as_expr=expr
27472 else
27473   as_expr=false
27474 fi
27475
27476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27477   as_basename=basename
27478 else
27479   as_basename=false
27480 fi
27481
27482
27483 # Name of the executable.
27484 as_me=`$as_basename -- "$0" ||
27485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27486          X"$0" : 'X\(//\)$' \| \
27487          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27488 echo X/"$0" |
27489     sed '/^.*\/\([^/][^/]*\)\/*$/{
27490             s//\1/
27491             q
27492           }
27493           /^X\/\(\/\/\)$/{
27494             s//\1/
27495             q
27496           }
27497           /^X\/\(\/\).*/{
27498             s//\1/
27499             q
27500           }
27501           s/.*/./; q'`
27502
27503 # CDPATH.
27504 $as_unset CDPATH
27505
27506
27507
27508   as_lineno_1=$LINENO
27509   as_lineno_2=$LINENO
27510   test "x$as_lineno_1" != "x$as_lineno_2" &&
27511   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27512
27513   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27514   # uniformly replaced by the line number.  The first 'sed' inserts a
27515   # line-number line after each line using $LINENO; the second 'sed'
27516   # does the real work.  The second script uses 'N' to pair each
27517   # line-number line with the line containing $LINENO, and appends
27518   # trailing '-' during substitution so that $LINENO is not a special
27519   # case at line end.
27520   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27521   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27522   # E. McMahon (1931-1989) for sed's syntax.  :-)
27523   sed -n '
27524     p
27525     /[$]LINENO/=
27526   ' <$as_myself |
27527     sed '
27528       s/[$]LINENO.*/&-/
27529       t lineno
27530       b
27531       :lineno
27532       N
27533       :loop
27534       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27535       t loop
27536       s/-\n.*//
27537     ' >$as_me.lineno &&
27538   chmod +x "$as_me.lineno" ||
27539     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27540    { (exit 1); exit 1; }; }
27541
27542   # Don't try to exec as it changes $[0], causing all sort of problems
27543   # (the dirname of $[0] is not the place where we might find the
27544   # original and so on.  Autoconf is especially sensitive to this).
27545   . "./$as_me.lineno"
27546   # Exit status is that of the last command.
27547   exit
27548 }
27549
27550
27551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27552   as_dirname=dirname
27553 else
27554   as_dirname=false
27555 fi
27556
27557 ECHO_C= ECHO_N= ECHO_T=
27558 case `echo -n x` in
27559 -n*)
27560   case `echo 'x\c'` in
27561   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27562   *)   ECHO_C='\c';;
27563   esac;;
27564 *)
27565   ECHO_N='-n';;
27566 esac
27567
27568 if expr a : '\(a\)' >/dev/null 2>&1 &&
27569    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27570   as_expr=expr
27571 else
27572   as_expr=false
27573 fi
27574
27575 rm -f conf$$ conf$$.exe conf$$.file
27576 if test -d conf$$.dir; then
27577   rm -f conf$$.dir/conf$$.file
27578 else
27579   rm -f conf$$.dir
27580   mkdir conf$$.dir
27581 fi
27582 echo >conf$$.file
27583 if ln -s conf$$.file conf$$ 2>/dev/null; then
27584   as_ln_s='ln -s'
27585   # ... but there are two gotchas:
27586   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27587   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27588   # In both cases, we have to default to `cp -p'.
27589   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27590     as_ln_s='cp -p'
27591 elif ln conf$$.file conf$$ 2>/dev/null; then
27592   as_ln_s=ln
27593 else
27594   as_ln_s='cp -p'
27595 fi
27596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27597 rmdir conf$$.dir 2>/dev/null
27598
27599 if mkdir -p . 2>/dev/null; then
27600   as_mkdir_p=:
27601 else
27602   test -d ./-p && rmdir ./-p
27603   as_mkdir_p=false
27604 fi
27605
27606 if test -x / >/dev/null 2>&1; then
27607   as_test_x='test -x'
27608 else
27609   if ls -dL / >/dev/null 2>&1; then
27610     as_ls_L_option=L
27611   else
27612     as_ls_L_option=
27613   fi
27614   as_test_x='
27615     eval sh -c '\''
27616       if test -d "$1"; then
27617         test -d "$1/.";
27618       else
27619         case $1 in
27620         -*)set "./$1";;
27621         esac;
27622         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27623         ???[sx]*):;;*)false;;esac;fi
27624     '\'' sh
27625   '
27626 fi
27627 as_executable_p=$as_test_x
27628
27629 # Sed expression to map a string onto a valid CPP name.
27630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27631
27632 # Sed expression to map a string onto a valid variable name.
27633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27634
27635
27636 exec 6>&1
27637
27638 # Save the log message, to keep $[0] and so on meaningful, and to
27639 # report actual input values of CONFIG_FILES etc. instead of their
27640 # values after options handling.
27641 ac_log="
27642 This file was extended by simgrid $as_me 3.3-cvs, which was
27643 generated by GNU Autoconf 2.61.  Invocation command line was
27644
27645   CONFIG_FILES    = $CONFIG_FILES
27646   CONFIG_HEADERS  = $CONFIG_HEADERS
27647   CONFIG_LINKS    = $CONFIG_LINKS
27648   CONFIG_COMMANDS = $CONFIG_COMMANDS
27649   $ $0 $@
27650
27651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27652 "
27653
27654 _ACEOF
27655
27656 cat >>$CONFIG_STATUS <<_ACEOF
27657 # Files that config.status was made for.
27658 config_files="$ac_config_files"
27659 config_headers="$ac_config_headers"
27660 config_commands="$ac_config_commands"
27661
27662 _ACEOF
27663
27664 cat >>$CONFIG_STATUS <<\_ACEOF
27665 ac_cs_usage="\
27666 \`$as_me' instantiates files from templates according to the
27667 current configuration.
27668
27669 Usage: $0 [OPTIONS] [FILE]...
27670
27671   -h, --help       print this help, then exit
27672   -V, --version    print version number and configuration settings, then exit
27673   -q, --quiet      do not print progress messages
27674   -d, --debug      don't remove temporary files
27675       --recheck    update $as_me by reconfiguring in the same conditions
27676   --file=FILE[:TEMPLATE]
27677                    instantiate the configuration file FILE
27678   --header=FILE[:TEMPLATE]
27679                    instantiate the configuration header FILE
27680
27681 Configuration files:
27682 $config_files
27683
27684 Configuration headers:
27685 $config_headers
27686
27687 Configuration commands:
27688 $config_commands
27689
27690 Report bugs to <bug-autoconf@gnu.org>."
27691
27692 _ACEOF
27693 cat >>$CONFIG_STATUS <<_ACEOF
27694 ac_cs_version="\\
27695 simgrid config.status 3.3-cvs
27696 configured by $0, generated by GNU Autoconf 2.61,
27697   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27698
27699 Copyright (C) 2006 Free Software Foundation, Inc.
27700 This config.status script is free software; the Free Software Foundation
27701 gives unlimited permission to copy, distribute and modify it."
27702
27703 ac_pwd='$ac_pwd'
27704 srcdir='$srcdir'
27705 INSTALL='$INSTALL'
27706 MKDIR_P='$MKDIR_P'
27707 _ACEOF
27708
27709 cat >>$CONFIG_STATUS <<\_ACEOF
27710 # If no file are specified by the user, then we need to provide default
27711 # value.  By we need to know if files were specified by the user.
27712 ac_need_defaults=:
27713 while test $# != 0
27714 do
27715   case $1 in
27716   --*=*)
27717     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27718     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27719     ac_shift=:
27720     ;;
27721   *)
27722     ac_option=$1
27723     ac_optarg=$2
27724     ac_shift=shift
27725     ;;
27726   esac
27727
27728   case $ac_option in
27729   # Handling of the options.
27730   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27731     ac_cs_recheck=: ;;
27732   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27733     echo "$ac_cs_version"; exit ;;
27734   --debug | --debu | --deb | --de | --d | -d )
27735     debug=: ;;
27736   --file | --fil | --fi | --f )
27737     $ac_shift
27738     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27739     ac_need_defaults=false;;
27740   --header | --heade | --head | --hea )
27741     $ac_shift
27742     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27743     ac_need_defaults=false;;
27744   --he | --h)
27745     # Conflict between --help and --header
27746     { echo "$as_me: error: ambiguous option: $1
27747 Try \`$0 --help' for more information." >&2
27748    { (exit 1); exit 1; }; };;
27749   --help | --hel | -h )
27750     echo "$ac_cs_usage"; exit ;;
27751   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27752   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27753     ac_cs_silent=: ;;
27754
27755   # This is an error.
27756   -*) { echo "$as_me: error: unrecognized option: $1
27757 Try \`$0 --help' for more information." >&2
27758    { (exit 1); exit 1; }; } ;;
27759
27760   *) ac_config_targets="$ac_config_targets $1"
27761      ac_need_defaults=false ;;
27762
27763   esac
27764   shift
27765 done
27766
27767 ac_configure_extra_args=
27768
27769 if $ac_cs_silent; then
27770   exec 6>/dev/null
27771   ac_configure_extra_args="$ac_configure_extra_args --silent"
27772 fi
27773
27774 _ACEOF
27775 cat >>$CONFIG_STATUS <<_ACEOF
27776 if \$ac_cs_recheck; then
27777   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27778   CONFIG_SHELL=$SHELL
27779   export CONFIG_SHELL
27780   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27781 fi
27782
27783 _ACEOF
27784 cat >>$CONFIG_STATUS <<\_ACEOF
27785 exec 5>>config.log
27786 {
27787   echo
27788   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27789 ## Running $as_me. ##
27790 _ASBOX
27791   echo "$ac_log"
27792 } >&5
27793
27794 _ACEOF
27795 cat >>$CONFIG_STATUS <<_ACEOF
27796 #
27797 # INIT-COMMANDS
27798 #
27799 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27800
27801 _ACEOF
27802
27803 cat >>$CONFIG_STATUS <<\_ACEOF
27804
27805 # Handling of arguments.
27806 for ac_config_target in $ac_config_targets
27807 do
27808   case $ac_config_target in
27809     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27810     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27811     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27812     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27813     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27814     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27815     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27816     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27817     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27818     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27819     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27820     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27821     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27822     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27823     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27824     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27825     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27826     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27827     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27828     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27829     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27830     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27831     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27832     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27833     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27834     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27835     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27836     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27837     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27838     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27839     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27840     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27841     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27842     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27843     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27844     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27845     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27846     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27847     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27848     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27849     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27850     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27851     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27852
27853   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27854 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27855    { (exit 1); exit 1; }; };;
27856   esac
27857 done
27858
27859
27860 # If the user did not use the arguments to specify the items to instantiate,
27861 # then the envvar interface is used.  Set only those that are not.
27862 # We use the long form for the default assignment because of an extremely
27863 # bizarre bug on SunOS 4.1.3.
27864 if $ac_need_defaults; then
27865   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27866   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27867   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27868 fi
27869
27870 # Have a temporary directory for convenience.  Make it in the build tree
27871 # simply because there is no reason against having it here, and in addition,
27872 # creating and moving files from /tmp can sometimes cause problems.
27873 # Hook for its removal unless debugging.
27874 # Note that there is a small window in which the directory will not be cleaned:
27875 # after its creation but before its name has been assigned to `$tmp'.
27876 $debug ||
27877 {
27878   tmp=
27879   trap 'exit_status=$?
27880   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27881 ' 0
27882   trap '{ (exit 1); exit 1; }' 1 2 13 15
27883 }
27884 # Create a (secure) tmp directory for tmp files.
27885
27886 {
27887   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27888   test -n "$tmp" && test -d "$tmp"
27889 }  ||
27890 {
27891   tmp=./conf$$-$RANDOM
27892   (umask 077 && mkdir "$tmp")
27893 } ||
27894 {
27895    echo "$me: cannot create a temporary directory in ." >&2
27896    { (exit 1); exit 1; }
27897 }
27898
27899 #
27900 # Set up the sed scripts for CONFIG_FILES section.
27901 #
27902
27903 # No need to generate the scripts if there are no CONFIG_FILES.
27904 # This happens for instance when ./config.status config.h
27905 if test -n "$CONFIG_FILES"; then
27906
27907 _ACEOF
27908
27909
27910
27911 ac_delim='%!_!# '
27912 for ac_last_try in false false false false false :; do
27913   cat >conf$$subs.sed <<_ACEOF
27914 SHELL!$SHELL$ac_delim
27915 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27916 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27917 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27918 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27919 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27920 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27921 exec_prefix!$exec_prefix$ac_delim
27922 prefix!$prefix$ac_delim
27923 program_transform_name!$program_transform_name$ac_delim
27924 bindir!$bindir$ac_delim
27925 sbindir!$sbindir$ac_delim
27926 libexecdir!$libexecdir$ac_delim
27927 datarootdir!$datarootdir$ac_delim
27928 datadir!$datadir$ac_delim
27929 sysconfdir!$sysconfdir$ac_delim
27930 sharedstatedir!$sharedstatedir$ac_delim
27931 localstatedir!$localstatedir$ac_delim
27932 includedir!$includedir$ac_delim
27933 oldincludedir!$oldincludedir$ac_delim
27934 docdir!$docdir$ac_delim
27935 infodir!$infodir$ac_delim
27936 htmldir!$htmldir$ac_delim
27937 dvidir!$dvidir$ac_delim
27938 pdfdir!$pdfdir$ac_delim
27939 psdir!$psdir$ac_delim
27940 libdir!$libdir$ac_delim
27941 localedir!$localedir$ac_delim
27942 mandir!$mandir$ac_delim
27943 DEFS!$DEFS$ac_delim
27944 ECHO_C!$ECHO_C$ac_delim
27945 ECHO_N!$ECHO_N$ac_delim
27946 ECHO_T!$ECHO_T$ac_delim
27947 LIBS!$LIBS$ac_delim
27948 build_alias!$build_alias$ac_delim
27949 host_alias!$host_alias$ac_delim
27950 target_alias!$target_alias$ac_delim
27951 build!$build$ac_delim
27952 build_cpu!$build_cpu$ac_delim
27953 build_vendor!$build_vendor$ac_delim
27954 build_os!$build_os$ac_delim
27955 host!$host$ac_delim
27956 host_cpu!$host_cpu$ac_delim
27957 host_vendor!$host_vendor$ac_delim
27958 host_os!$host_os$ac_delim
27959 target!$target$ac_delim
27960 target_cpu!$target_cpu$ac_delim
27961 target_vendor!$target_vendor$ac_delim
27962 target_os!$target_os$ac_delim
27963 GCJ!$GCJ$ac_delim
27964 GCJFLAGS!$GCJFLAGS$ac_delim
27965 am__leading_dot!$am__leading_dot$ac_delim
27966 DEPDIR!$DEPDIR$ac_delim
27967 am__include!$am__include$ac_delim
27968 am__quote!$am__quote$ac_delim
27969 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27970 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27971 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27972 GCJDEPMODE!$GCJDEPMODE$ac_delim
27973 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27974 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27975 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27976 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27977 INSTALL_DATA!$INSTALL_DATA$ac_delim
27978 am__isrc!$am__isrc$ac_delim
27979 CYGPATH_W!$CYGPATH_W$ac_delim
27980 PACKAGE!$PACKAGE$ac_delim
27981 VERSION!$VERSION$ac_delim
27982 ACLOCAL!$ACLOCAL$ac_delim
27983 AUTOCONF!$AUTOCONF$ac_delim
27984 AUTOMAKE!$AUTOMAKE$ac_delim
27985 AUTOHEADER!$AUTOHEADER$ac_delim
27986 MAKEINFO!$MAKEINFO$ac_delim
27987 install_sh!$install_sh$ac_delim
27988 STRIP!$STRIP$ac_delim
27989 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27990 mkdir_p!$mkdir_p$ac_delim
27991 AWK!$AWK$ac_delim
27992 SET_MAKE!$SET_MAKE$ac_delim
27993 AMTAR!$AMTAR$ac_delim
27994 am__tar!$am__tar$ac_delim
27995 am__untar!$am__untar$ac_delim
27996 CC!$CC$ac_delim
27997 CFLAGS!$CFLAGS$ac_delim
27998 LDFLAGS!$LDFLAGS$ac_delim
27999 CPPFLAGS!$CPPFLAGS$ac_delim
28000 ac_ct_CC!$ac_ct_CC$ac_delim
28001 EXEEXT!$EXEEXT$ac_delim
28002 OBJEXT!$OBJEXT$ac_delim
28003 CCDEPMODE!$CCDEPMODE$ac_delim
28004 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28005 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28006 SED!$SED$ac_delim
28007 GREP!$GREP$ac_delim
28008 EGREP!$EGREP$ac_delim
28009 LN_S!$LN_S$ac_delim
28010 ECHO!$ECHO$ac_delim
28011 _ACEOF
28012
28013   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28014     break
28015   elif $ac_last_try; then
28016     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28017 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28018    { (exit 1); exit 1; }; }
28019   else
28020     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28021   fi
28022 done
28023
28024 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28025 if test -n "$ac_eof"; then
28026   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28027   ac_eof=`expr $ac_eof + 1`
28028 fi
28029
28030 cat >>$CONFIG_STATUS <<_ACEOF
28031 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28033 _ACEOF
28034 sed '
28035 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28036 s/^/s,@/; s/!/@,|#_!!_#|/
28037 :n
28038 t n
28039 s/'"$ac_delim"'$/,g/; t
28040 s/$/\\/; p
28041 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28042 ' >>$CONFIG_STATUS <conf$$subs.sed
28043 rm -f conf$$subs.sed
28044 cat >>$CONFIG_STATUS <<_ACEOF
28045 CEOF$ac_eof
28046 _ACEOF
28047
28048
28049 ac_delim='%!_!# '
28050 for ac_last_try in false false false false false :; do
28051   cat >conf$$subs.sed <<_ACEOF
28052 AR!$AR$ac_delim
28053 RANLIB!$RANLIB$ac_delim
28054 DLLTOOL!$DLLTOOL$ac_delim
28055 AS!$AS$ac_delim
28056 OBJDUMP!$OBJDUMP$ac_delim
28057 CPP!$CPP$ac_delim
28058 CXX!$CXX$ac_delim
28059 CXXFLAGS!$CXXFLAGS$ac_delim
28060 ac_ct_CXX!$ac_ct_CXX$ac_delim
28061 CXXDEPMODE!$CXXDEPMODE$ac_delim
28062 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28063 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28064 CXXCPP!$CXXCPP$ac_delim
28065 LIBTOOL!$LIBTOOL$ac_delim
28066 LIBOBJS!$LIBOBJS$ac_delim
28067 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
28068 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
28069 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
28070 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
28071 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
28072 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
28073 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
28074 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
28075 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
28076 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
28077 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
28078 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
28079 SMPI_DEP!$SMPI_DEP$ac_delim
28080 GRAS_DEP!$GRAS_DEP$ac_delim
28081 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
28082 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
28083 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28084 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28085 MAINT!$MAINT$ac_delim
28086 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
28087 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
28088 abs_builddir!$abs_builddir$ac_delim
28089 abs_srcdir!$abs_srcdir$ac_delim
28090 abs_top_builddir!$abs_top_builddir$ac_delim
28091 abs_top_srcdir!$abs_top_srcdir$ac_delim
28092 JAVAC!$JAVAC$ac_delim
28093 JAVA!$JAVA$ac_delim
28094 JAR!$JAR$ac_delim
28095 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28096 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28097 BASH!$BASH$ac_delim
28098 WARNING!$WARNING$ac_delim
28099 LEX!$LEX$ac_delim
28100 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28101 LEXLIB!$LEXLIB$ac_delim
28102 FLEXML!$FLEXML$ac_delim
28103 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28104 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28105 DOXYGEN!$DOXYGEN$ac_delim
28106 ADDR2LINE!$ADDR2LINE$ac_delim
28107 ac_configure_args!$ac_configure_args$ac_delim
28108 MD5SUM!$MD5SUM$ac_delim
28109 build_id!$build_id$ac_delim
28110 LTLIBOBJS!$LTLIBOBJS$ac_delim
28111 _ACEOF
28112
28113   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
28114     break
28115   elif $ac_last_try; then
28116     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28118    { (exit 1); exit 1; }; }
28119   else
28120     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28121   fi
28122 done
28123
28124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28125 if test -n "$ac_eof"; then
28126   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28127   ac_eof=`expr $ac_eof + 1`
28128 fi
28129
28130 cat >>$CONFIG_STATUS <<_ACEOF
28131 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28133 _ACEOF
28134 sed '
28135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28136 s/^/s,@/; s/!/@,|#_!!_#|/
28137 :n
28138 t n
28139 s/'"$ac_delim"'$/,g/; t
28140 s/$/\\/; p
28141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28142 ' >>$CONFIG_STATUS <conf$$subs.sed
28143 rm -f conf$$subs.sed
28144 cat >>$CONFIG_STATUS <<_ACEOF
28145 :end
28146 s/|#_!!_#|//g
28147 CEOF$ac_eof
28148 _ACEOF
28149
28150
28151 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28152 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28153 # trailing colons and then remove the whole line if VPATH becomes empty
28154 # (actually we leave an empty line to preserve line numbers).
28155 if test "x$srcdir" = x.; then
28156   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28157 s/:*\$(srcdir):*/:/
28158 s/:*\${srcdir}:*/:/
28159 s/:*@srcdir@:*/:/
28160 s/^\([^=]*=[     ]*\):*/\1/
28161 s/:*$//
28162 s/^[^=]*=[       ]*$//
28163 }'
28164 fi
28165
28166 cat >>$CONFIG_STATUS <<\_ACEOF
28167 fi # test -n "$CONFIG_FILES"
28168
28169
28170 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28171 do
28172   case $ac_tag in
28173   :[FHLC]) ac_mode=$ac_tag; continue;;
28174   esac
28175   case $ac_mode$ac_tag in
28176   :[FHL]*:*);;
28177   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28178 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28179    { (exit 1); exit 1; }; };;
28180   :[FH]-) ac_tag=-:-;;
28181   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28182   esac
28183   ac_save_IFS=$IFS
28184   IFS=:
28185   set x $ac_tag
28186   IFS=$ac_save_IFS
28187   shift
28188   ac_file=$1
28189   shift
28190
28191   case $ac_mode in
28192   :L) ac_source=$1;;
28193   :[FH])
28194     ac_file_inputs=
28195     for ac_f
28196     do
28197       case $ac_f in
28198       -) ac_f="$tmp/stdin";;
28199       *) # Look for the file first in the build tree, then in the source tree
28200          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28201          # because $ac_f cannot contain `:'.
28202          test -f "$ac_f" ||
28203            case $ac_f in
28204            [\\/$]*) false;;
28205            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28206            esac ||
28207            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28208 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28209    { (exit 1); exit 1; }; };;
28210       esac
28211       ac_file_inputs="$ac_file_inputs $ac_f"
28212     done
28213
28214     # Let's still pretend it is `configure' which instantiates (i.e., don't
28215     # use $as_me), people would be surprised to read:
28216     #    /* config.h.  Generated by config.status.  */
28217     configure_input="Generated from "`IFS=:
28218           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28219     if test x"$ac_file" != x-; then
28220       configure_input="$ac_file.  $configure_input"
28221       { echo "$as_me:$LINENO: creating $ac_file" >&5
28222 echo "$as_me: creating $ac_file" >&6;}
28223     fi
28224
28225     case $ac_tag in
28226     *:-:* | *:-) cat >"$tmp/stdin";;
28227     esac
28228     ;;
28229   esac
28230
28231   ac_dir=`$as_dirname -- "$ac_file" ||
28232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28233          X"$ac_file" : 'X\(//\)[^/]' \| \
28234          X"$ac_file" : 'X\(//\)$' \| \
28235          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28236 echo X"$ac_file" |
28237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28238             s//\1/
28239             q
28240           }
28241           /^X\(\/\/\)[^/].*/{
28242             s//\1/
28243             q
28244           }
28245           /^X\(\/\/\)$/{
28246             s//\1/
28247             q
28248           }
28249           /^X\(\/\).*/{
28250             s//\1/
28251             q
28252           }
28253           s/.*/./; q'`
28254   { as_dir="$ac_dir"
28255   case $as_dir in #(
28256   -*) as_dir=./$as_dir;;
28257   esac
28258   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28259     as_dirs=
28260     while :; do
28261       case $as_dir in #(
28262       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28263       *) as_qdir=$as_dir;;
28264       esac
28265       as_dirs="'$as_qdir' $as_dirs"
28266       as_dir=`$as_dirname -- "$as_dir" ||
28267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28268          X"$as_dir" : 'X\(//\)[^/]' \| \
28269          X"$as_dir" : 'X\(//\)$' \| \
28270          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28271 echo X"$as_dir" |
28272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28273             s//\1/
28274             q
28275           }
28276           /^X\(\/\/\)[^/].*/{
28277             s//\1/
28278             q
28279           }
28280           /^X\(\/\/\)$/{
28281             s//\1/
28282             q
28283           }
28284           /^X\(\/\).*/{
28285             s//\1/
28286             q
28287           }
28288           s/.*/./; q'`
28289       test -d "$as_dir" && break
28290     done
28291     test -z "$as_dirs" || eval "mkdir $as_dirs"
28292   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28293 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28294    { (exit 1); exit 1; }; }; }
28295   ac_builddir=.
28296
28297 case "$ac_dir" in
28298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28299 *)
28300   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28301   # A ".." for each directory in $ac_dir_suffix.
28302   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28303   case $ac_top_builddir_sub in
28304   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28305   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28306   esac ;;
28307 esac
28308 ac_abs_top_builddir=$ac_pwd
28309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28310 # for backward compatibility:
28311 ac_top_builddir=$ac_top_build_prefix
28312
28313 case $srcdir in
28314   .)  # We are building in place.
28315     ac_srcdir=.
28316     ac_top_srcdir=$ac_top_builddir_sub
28317     ac_abs_top_srcdir=$ac_pwd ;;
28318   [\\/]* | ?:[\\/]* )  # Absolute name.
28319     ac_srcdir=$srcdir$ac_dir_suffix;
28320     ac_top_srcdir=$srcdir
28321     ac_abs_top_srcdir=$srcdir ;;
28322   *) # Relative name.
28323     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28324     ac_top_srcdir=$ac_top_build_prefix$srcdir
28325     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28326 esac
28327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28328
28329
28330   case $ac_mode in
28331   :F)
28332   #
28333   # CONFIG_FILE
28334   #
28335
28336   case $INSTALL in
28337   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28338   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28339   esac
28340   ac_MKDIR_P=$MKDIR_P
28341   case $MKDIR_P in
28342   [\\/$]* | ?:[\\/]* ) ;;
28343   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28344   esac
28345 _ACEOF
28346
28347 cat >>$CONFIG_STATUS <<\_ACEOF
28348 # If the template does not know about datarootdir, expand it.
28349 # FIXME: This hack should be removed a few years after 2.60.
28350 ac_datarootdir_hack=; ac_datarootdir_seen=
28351
28352 case `sed -n '/datarootdir/ {
28353   p
28354   q
28355 }
28356 /@datadir@/p
28357 /@docdir@/p
28358 /@infodir@/p
28359 /@localedir@/p
28360 /@mandir@/p
28361 ' $ac_file_inputs` in
28362 *datarootdir*) ac_datarootdir_seen=yes;;
28363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28364   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28365 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28366 _ACEOF
28367 cat >>$CONFIG_STATUS <<_ACEOF
28368   ac_datarootdir_hack='
28369   s&@datadir@&$datadir&g
28370   s&@docdir@&$docdir&g
28371   s&@infodir@&$infodir&g
28372   s&@localedir@&$localedir&g
28373   s&@mandir@&$mandir&g
28374     s&\\\${datarootdir}&$datarootdir&g' ;;
28375 esac
28376 _ACEOF
28377
28378 # Neutralize VPATH when `$srcdir' = `.'.
28379 # Shell code in configure.ac might set extrasub.
28380 # FIXME: do we really want to maintain this feature?
28381 cat >>$CONFIG_STATUS <<_ACEOF
28382   sed "$ac_vpsub
28383 $extrasub
28384 _ACEOF
28385 cat >>$CONFIG_STATUS <<\_ACEOF
28386 :t
28387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28388 s&@configure_input@&$configure_input&;t t
28389 s&@top_builddir@&$ac_top_builddir_sub&;t t
28390 s&@srcdir@&$ac_srcdir&;t t
28391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28392 s&@top_srcdir@&$ac_top_srcdir&;t t
28393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28394 s&@builddir@&$ac_builddir&;t t
28395 s&@abs_builddir@&$ac_abs_builddir&;t t
28396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28397 s&@INSTALL@&$ac_INSTALL&;t t
28398 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28399 $ac_datarootdir_hack
28400 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28401
28402 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28403   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28404   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28405   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28406 which seems to be undefined.  Please make sure it is defined." >&5
28407 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28408 which seems to be undefined.  Please make sure it is defined." >&2;}
28409
28410   rm -f "$tmp/stdin"
28411   case $ac_file in
28412   -) cat "$tmp/out"; rm -f "$tmp/out";;
28413   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28414   esac
28415  ;;
28416   :H)
28417   #
28418   # CONFIG_HEADER
28419   #
28420 _ACEOF
28421
28422 # Transform confdefs.h into a sed script `conftest.defines', that
28423 # substitutes the proper values into config.h.in to produce config.h.
28424 rm -f conftest.defines conftest.tail
28425 # First, append a space to every undef/define line, to ease matching.
28426 echo 's/$/ /' >conftest.defines
28427 # Then, protect against being on the right side of a sed subst, or in
28428 # an unquoted here document, in config.status.  If some macros were
28429 # called several times there might be several #defines for the same
28430 # symbol, which is useless.  But do not sort them, since the last
28431 # AC_DEFINE must be honored.
28432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28433 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28434 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28435 # PARAMS is the parameter list in the macro definition--in most cases, it's
28436 # just an empty string.
28437 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28438 ac_dB='\\)[      (].*,\\1define\\2'
28439 ac_dC=' '
28440 ac_dD=' ,'
28441
28442 uniq confdefs.h |
28443   sed -n '
28444         t rset
28445         :rset
28446         s/^[     ]*#[    ]*define[       ][      ]*//
28447         t ok
28448         d
28449         :ok
28450         s/[\\&,]/\\&/g
28451         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28452         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28453   ' >>conftest.defines
28454
28455 # Remove the space that was appended to ease matching.
28456 # Then replace #undef with comments.  This is necessary, for
28457 # example, in the case of _POSIX_SOURCE, which is predefined and required
28458 # on some systems where configure will not decide to define it.
28459 # (The regexp can be short, since the line contains either #define or #undef.)
28460 echo 's/ $//
28461 s,^[     #]*u.*,/* & */,' >>conftest.defines
28462
28463 # Break up conftest.defines:
28464 ac_max_sed_lines=50
28465
28466 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28467 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28468 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28469 # et cetera.
28470 ac_in='$ac_file_inputs'
28471 ac_out='"$tmp/out1"'
28472 ac_nxt='"$tmp/out2"'
28473
28474 while :
28475 do
28476   # Write a here document:
28477     cat >>$CONFIG_STATUS <<_ACEOF
28478     # First, check the format of the line:
28479     cat >"\$tmp/defines.sed" <<\\CEOF
28480 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28481 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28482 b
28483 :def
28484 _ACEOF
28485   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28486   echo 'CEOF
28487     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28488   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28489   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28490   grep . conftest.tail >/dev/null || break
28491   rm -f conftest.defines
28492   mv conftest.tail conftest.defines
28493 done
28494 rm -f conftest.defines conftest.tail
28495
28496 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28497 cat >>$CONFIG_STATUS <<\_ACEOF
28498   if test x"$ac_file" != x-; then
28499     echo "/* $configure_input  */" >"$tmp/config.h"
28500     cat "$ac_result" >>"$tmp/config.h"
28501     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28502       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28503 echo "$as_me: $ac_file is unchanged" >&6;}
28504     else
28505       rm -f $ac_file
28506       mv "$tmp/config.h" $ac_file
28507     fi
28508   else
28509     echo "/* $configure_input  */"
28510     cat "$ac_result"
28511   fi
28512   rm -f "$tmp/out12"
28513 # Compute $ac_file's index in $config_headers.
28514 _am_stamp_count=1
28515 for _am_header in $config_headers :; do
28516   case $_am_header in
28517     $ac_file | $ac_file:* )
28518       break ;;
28519     * )
28520       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28521   esac
28522 done
28523 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28524 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28525          X$ac_file : 'X\(//\)[^/]' \| \
28526          X$ac_file : 'X\(//\)$' \| \
28527          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28528 echo X$ac_file |
28529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28530             s//\1/
28531             q
28532           }
28533           /^X\(\/\/\)[^/].*/{
28534             s//\1/
28535             q
28536           }
28537           /^X\(\/\/\)$/{
28538             s//\1/
28539             q
28540           }
28541           /^X\(\/\).*/{
28542             s//\1/
28543             q
28544           }
28545           s/.*/./; q'`/stamp-h$_am_stamp_count
28546  ;;
28547
28548   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28549 echo "$as_me: executing $ac_file commands" >&6;}
28550  ;;
28551   esac
28552
28553
28554   case $ac_file$ac_mode in
28555     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28556   # Strip MF so we end up with the name of the file.
28557   mf=`echo "$mf" | sed -e 's/:.*$//'`
28558   # Check whether this is an Automake generated Makefile or not.
28559   # We used to match only the files named `Makefile.in', but
28560   # some people rename them; so instead we look at the file content.
28561   # Grep'ing the first line is not enough: some people post-process
28562   # each Makefile.in and add a new line on top of each file to say so.
28563   # Grep'ing the whole file is not good either: AIX grep has a line
28564   # limit of 2048, but all sed's we know have understand at least 4000.
28565   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28566     dirpart=`$as_dirname -- "$mf" ||
28567 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28568          X"$mf" : 'X\(//\)[^/]' \| \
28569          X"$mf" : 'X\(//\)$' \| \
28570          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28571 echo X"$mf" |
28572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28573             s//\1/
28574             q
28575           }
28576           /^X\(\/\/\)[^/].*/{
28577             s//\1/
28578             q
28579           }
28580           /^X\(\/\/\)$/{
28581             s//\1/
28582             q
28583           }
28584           /^X\(\/\).*/{
28585             s//\1/
28586             q
28587           }
28588           s/.*/./; q'`
28589   else
28590     continue
28591   fi
28592   # Extract the definition of DEPDIR, am__include, and am__quote
28593   # from the Makefile without running `make'.
28594   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28595   test -z "$DEPDIR" && continue
28596   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28597   test -z "am__include" && continue
28598   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28599   # When using ansi2knr, U may be empty or an underscore; expand it
28600   U=`sed -n 's/^U = //p' < "$mf"`
28601   # Find all dependency output files, they are included files with
28602   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28603   # simplest approach to changing $(DEPDIR) to its actual value in the
28604   # expansion.
28605   for file in `sed -n "
28606     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28607        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28608     # Make sure the directory exists.
28609     test -f "$dirpart/$file" && continue
28610     fdir=`$as_dirname -- "$file" ||
28611 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28612          X"$file" : 'X\(//\)[^/]' \| \
28613          X"$file" : 'X\(//\)$' \| \
28614          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28615 echo X"$file" |
28616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28617             s//\1/
28618             q
28619           }
28620           /^X\(\/\/\)[^/].*/{
28621             s//\1/
28622             q
28623           }
28624           /^X\(\/\/\)$/{
28625             s//\1/
28626             q
28627           }
28628           /^X\(\/\).*/{
28629             s//\1/
28630             q
28631           }
28632           s/.*/./; q'`
28633     { as_dir=$dirpart/$fdir
28634   case $as_dir in #(
28635   -*) as_dir=./$as_dir;;
28636   esac
28637   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28638     as_dirs=
28639     while :; do
28640       case $as_dir in #(
28641       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28642       *) as_qdir=$as_dir;;
28643       esac
28644       as_dirs="'$as_qdir' $as_dirs"
28645       as_dir=`$as_dirname -- "$as_dir" ||
28646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28647          X"$as_dir" : 'X\(//\)[^/]' \| \
28648          X"$as_dir" : 'X\(//\)$' \| \
28649          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28650 echo X"$as_dir" |
28651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28652             s//\1/
28653             q
28654           }
28655           /^X\(\/\/\)[^/].*/{
28656             s//\1/
28657             q
28658           }
28659           /^X\(\/\/\)$/{
28660             s//\1/
28661             q
28662           }
28663           /^X\(\/\).*/{
28664             s//\1/
28665             q
28666           }
28667           s/.*/./; q'`
28668       test -d "$as_dir" && break
28669     done
28670     test -z "$as_dirs" || eval "mkdir $as_dirs"
28671   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28672 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28673    { (exit 1); exit 1; }; }; }
28674     # echo "creating $dirpart/$file"
28675     echo '# dummy' > "$dirpart/$file"
28676   done
28677 done
28678  ;;
28679     "tools/graspe-slave":F)
28680     for file in                                                 \
28681      tools/graspe-slave           tools/graspe-master           \
28682     ; do                                                        \
28683       test -e $file && chmod +x $file;                          \
28684     done
28685  ;;
28686     "testsuite/Makefile":F)
28687     for file in                                                 \
28688      testsuite/run_tests                                        \
28689      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28690     ; do                                                        \
28691       test -e $file && chmod +x $file;                          \
28692     done
28693  ;;
28694     "testsuite/run_tests":F)
28695     for file in                                                 \
28696      testsuite/run_tests                                        \
28697      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28698     ; do                                                        \
28699       test -e $file && chmod +x $file;                          \
28700     done
28701  ;;
28702     "testsuite/gras/trp_tcp_usage":F)
28703     for file in                                                 \
28704      testsuite/run_tests                                        \
28705      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28706     ; do                                                        \
28707       test -e $file && chmod +x $file;                          \
28708     done
28709  ;;
28710     "testsuite/gras/trp_file_usage":F)
28711     for file in                                                 \
28712      testsuite/run_tests                                        \
28713      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28714     ; do                                                        \
28715       test -e $file && chmod +x $file;                          \
28716     done
28717  ;;
28718     "examples/Makefile":F)
28719     for file in                                                 \
28720      \
28721      examples/simdag/test_simdag                                \
28722      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28723      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28724     ; do                                                        \
28725       test -e $file && chmod +x $file;                          \
28726     done
28727  ;;
28728     "examples/msg/Makefile":F)
28729     for file in                                                 \
28730      \
28731      examples/simdag/test_simdag                                \
28732      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28733      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28734     ; do                                                        \
28735       test -e $file && chmod +x $file;                          \
28736     done
28737  ;;
28738     "examples/simdag/Makefile":F)
28739     for file in                                                 \
28740      \
28741      examples/simdag/test_simdag                                \
28742      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28743      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28744     ; do                                                        \
28745       test -e $file && chmod +x $file;                          \
28746     done
28747  ;;
28748     "examples/simdag/test_simdag":F)
28749     for file in                                                 \
28750      \
28751      examples/simdag/test_simdag                                \
28752      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28753      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28754     ; do                                                        \
28755       test -e $file && chmod +x $file;                          \
28756     done
28757  ;;
28758     "examples/gras/Makefile":F)
28759     for file in                                                 \
28760      \
28761      examples/simdag/test_simdag                                \
28762      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28763      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28764     ; do                                                        \
28765       test -e $file && chmod +x $file;                          \
28766     done
28767  ;;
28768     "examples/gras/ping/Makefile":F)
28769     for file in                                                 \
28770      \
28771      examples/simdag/test_simdag                                \
28772      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28773      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28774     ; do                                                        \
28775       test -e $file && chmod +x $file;                          \
28776     done
28777  ;;
28778     "examples/gras/rpc/Makefile":F)
28779     for file in                                                 \
28780      \
28781      examples/simdag/test_simdag                                \
28782      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28783      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28784     ; do                                                        \
28785       test -e $file && chmod +x $file;                          \
28786     done
28787  ;;
28788     "examples/gras/spawn/Makefile":F)
28789     for file in                                                 \
28790      \
28791      examples/simdag/test_simdag                                \
28792      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28793      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28794     ; do                                                        \
28795       test -e $file && chmod +x $file;                          \
28796     done
28797  ;;
28798     "examples/gras/synchro/Makefile":F)
28799     for file in                                                 \
28800      \
28801      examples/simdag/test_simdag                                \
28802      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28803      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28804     ; do                                                        \
28805       test -e $file && chmod +x $file;                          \
28806     done
28807  ;;
28808     "examples/gras/timer/Makefile":F)
28809     for file in                                                 \
28810      \
28811      examples/simdag/test_simdag                                \
28812      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28813      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28814     ; do                                                        \
28815       test -e $file && chmod +x $file;                          \
28816     done
28817  ;;
28818     "examples/gras/chrono/Makefile":F)
28819     for file in                                                 \
28820      \
28821      examples/simdag/test_simdag                                \
28822      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28823      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28824     ; do                                                        \
28825       test -e $file && chmod +x $file;                          \
28826     done
28827  ;;
28828     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28829     for file in                                                 \
28830      \
28831      examples/simdag/test_simdag                                \
28832      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28833      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28834     ; do                                                        \
28835       test -e $file && chmod +x $file;                          \
28836     done
28837  ;;
28838     "examples/gras/mmrpc/Makefile":F)
28839     for file in                                                 \
28840      \
28841      examples/simdag/test_simdag                                \
28842      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28843      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28844     ; do                                                        \
28845       test -e $file && chmod +x $file;                          \
28846     done
28847  ;;
28848     "examples/gras/pmm/Makefile":F)
28849     for file in                                                 \
28850      \
28851      examples/simdag/test_simdag                                \
28852      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28853      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28854     ; do                                                        \
28855       test -e $file && chmod +x $file;                          \
28856     done
28857  ;;
28858     "examples/gras/all2all/Makefile":F)
28859     for file in                                                 \
28860      \
28861      examples/simdag/test_simdag                                \
28862      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28863      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28864     ; do                                                        \
28865       test -e $file && chmod +x $file;                          \
28866     done
28867  ;;
28868     "examples/amok/Makefile":F)
28869     for file in                                                 \
28870      \
28871      examples/simdag/test_simdag                                \
28872      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28873      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28874     ; do                                                        \
28875       test -e $file && chmod +x $file;                          \
28876     done
28877  ;;
28878     "examples/amok/bandwidth/Makefile":F)
28879     for file in                                                 \
28880      \
28881      examples/simdag/test_simdag                                \
28882      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28883      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28884     ; do                                                        \
28885       test -e $file && chmod +x $file;                          \
28886     done
28887  ;;
28888     "examples/amok/bandwidth/test_sg":F)
28889     for file in                                                 \
28890      \
28891      examples/simdag/test_simdag                                \
28892      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28893      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28894     ; do                                                        \
28895       test -e $file && chmod +x $file;                          \
28896     done
28897  ;;
28898     "examples/amok/bandwidth/test_rl":F)
28899     for file in                                                 \
28900      \
28901      examples/simdag/test_simdag                                \
28902      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28903      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28904     ; do                                                        \
28905       test -e $file && chmod +x $file;                          \
28906     done
28907  ;;
28908     "examples/amok/saturate/Makefile":F)
28909     for file in                                                 \
28910      \
28911      examples/simdag/test_simdag                                \
28912      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28913      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28914     ; do                                                        \
28915       test -e $file && chmod +x $file;                          \
28916     done
28917  ;;
28918     "examples/amok/saturate/test_sg":F)
28919     for file in                                                 \
28920      \
28921      examples/simdag/test_simdag                                \
28922      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28923      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28924     ; do                                                        \
28925       test -e $file && chmod +x $file;                          \
28926     done
28927  ;;
28928     "examples/amok/saturate/test_rl":F)
28929     for file in                                                 \
28930      \
28931      examples/simdag/test_simdag                                \
28932      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28933      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28934     ; do                                                        \
28935       test -e $file && chmod +x $file;                          \
28936     done
28937  ;;
28938
28939   esac
28940 done # for ac_tag
28941
28942
28943 { (exit 0); exit 0; }
28944 _ACEOF
28945 chmod +x $CONFIG_STATUS
28946 ac_clean_files=$ac_clean_files_save
28947
28948
28949 # configure is writing to config.log, and then calls config.status.
28950 # config.status does its own redirection, appending to config.log.
28951 # Unfortunately, on DOS this fails, as config.log is still kept open
28952 # by configure, so config.status won't be able to write to it; its
28953 # output is simply discarded.  So we exec the FD to /dev/null,
28954 # effectively closing config.log, so it can be properly (re)opened and
28955 # appended to by config.status.  When coming back to configure, we
28956 # need to make the FD available again.
28957 if test "$no_create" != yes; then
28958   ac_cs_success=:
28959   ac_config_status_args=
28960   test "$silent" = yes &&
28961     ac_config_status_args="$ac_config_status_args --quiet"
28962   exec 5>/dev/null
28963   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28964   exec 5>>config.log
28965   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28966   # would make configure fail if this is the last instruction.
28967   $ac_cs_success || { (exit 1); exit 1; }
28968 fi
28969
28970
28971 echo "
28972
28973 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28974
28975         Compiler:        ${CC} (version: ${GCC_VERSION})
28976
28977         CFlags:          ${CFLAGS}
28978         CPPFlags:        ${CPPFLAGS}
28979         LDFlags:         ${LDFLAGS}
28980
28981         Context backend: ${with_context}
28982 "
28983
28984 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28985   echo "WARNING:"
28986   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28987   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28988   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28989   echo "WARNING:"
28990   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28991   echo "WARNING:"
28992 fi
28993 echo $build_id > stamp.configure
28994
28995 exit 0;