Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revalidate output. There is no task root in this exemple... probably an old cleanup...
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 5053 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-svn.
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-svn'
735 PACKAGE_STRING='simgrid 3.3-svn'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 CPP
877 CXX
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
884 LIBTOOL
885 LIBOBJS
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
888 IS_WINDOWS_TRUE
889 IS_WINDOWS_FALSE
890 CONTEXT_THREADS_TRUE
891 CONTEXT_THREADS_FALSE
892 PTH_STACK_GROWTH
893 pth_skaddr_makecontext
894 pth_sksize_makecontext
895 HAVE_GTNETS_TRUE
896 HAVE_GTNETS_FALSE
897 HAVE_SDP_TRUE
898 HAVE_SDP_FALSE
899 SIMGRID_DEP
900 SMPI_DEP
901 GRAS_DEP
902 GRAMINE_MODE_TRUE
903 GRAMINE_MODE_FALSE
904 MAINTAINER_MODE_TRUE
905 MAINTAINER_MODE_FALSE
906 MAINT
907 LD_DYNAMIC_FLAGS
908 AM_CPPFLAGS
909 abs_builddir
910 abs_srcdir
911 abs_top_builddir
912 abs_top_srcdir
913 BOTBUILD_MODE_TRUE
914 BOTBUILD_MODE_FALSE
915 JAVAC
916 JAVA
917 JAR
918 HAVE_JAVA_TRUE
919 HAVE_JAVA_FALSE
920 BASH
921 WARNING
922 LEX
923 LEX_OUTPUT_ROOT
924 LEXLIB
925 FLEXML
926 HAVE_FLEXML_TRUE
927 HAVE_FLEXML_FALSE
928 DOXYGEN
929 ADDR2LINE
930 ac_configure_args
931 MD5SUM
932 build_id
933 LTLIBOBJS'
934 ac_subst_files=''
935       ac_precious_vars='build_alias
936 host_alias
937 target_alias
938 CC
939 CFLAGS
940 LDFLAGS
941 LIBS
942 CPPFLAGS
943 CPP
944 CXX
945 CXXFLAGS
946 CCC
947 CXXCPP'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000   # If the previous option needs an argument, assign it.
1001   if test -n "$ac_prev"; then
1002     eval $ac_prev=\$ac_option
1003     ac_prev=
1004     continue
1005   fi
1006
1007   case $ac_option in
1008   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055    { (exit 1); exit 1; }; }
1056     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057     eval enable_$ac_feature=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074    { (exit 1); exit 1; }; }
1075     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076     eval enable_$ac_feature=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       { echo "$as_me: error: invalid package name: $ac_package" >&2
1271    { (exit 1); exit 1; }; }
1272     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273     eval with_$ac_package=\$ac_optarg ;;
1274
1275   -without-* | --without-*)
1276     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282     eval with_$ac_package=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304    { (exit 1); exit 1; }; }
1305     ;;
1306
1307   *=*)
1308     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312    { (exit 1); exit 1; }; }
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   { echo "$as_me: error: missing argument to $ac_option" >&2
1330    { (exit 1); exit 1; }; }
1331 fi
1332
1333 # Be sure to have absolute directory names.
1334 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335                 datadir sysconfdir sharedstatedir localstatedir includedir \
1336                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337                 libdir localedir mandir
1338 do
1339   eval ac_val=\$$ac_var
1340   case $ac_val in
1341     [\\/$]* | ?:[\\/]* )  continue;;
1342     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343   esac
1344   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345    { (exit 1); exit 1; }; }
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357   if test "x$build_alias" = x; then
1358     cross_compiling=maybe
1359     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360     If a cross compiler is detected then cross compile mode will be used." >&2
1361   elif test "x$build_alias" != "x$host_alias"; then
1362     cross_compiling=yes
1363   fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375   { echo "$as_me: error: Working directory cannot be determined" >&2
1376    { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   { echo "$as_me: error: pwd does not report name of working directory" >&2
1379    { (exit 1); exit 1; }; }
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$0" : 'X\(//\)[^/]' \| \
1389          X"$0" : 'X\(//\)$' \| \
1390          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391 echo X"$0" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419    { (exit 1); exit 1; }; }
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424    { (exit 1); exit 1; }; }
1425         pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428   srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures simgrid 3.3-svn to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR           user executables [EPREFIX/bin]
1485   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR       program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1488   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR           object code libraries [EPREFIX/lib]
1491   --includedir=DIR       C header files [PREFIX/include]
1492   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR          info documentation [DATAROOTDIR/info]
1496   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR           man documentation [DATAROOTDIR/man]
1498   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1499   --htmldir=DIR          html documentation [DOCDIR]
1500   --dvidir=DIR           dvi documentation [DOCDIR]
1501   --pdfdir=DIR           pdf documentation [DOCDIR]
1502   --psdir=DIR            ps documentation [DOCDIR]
1503 _ACEOF
1504
1505   cat <<\_ACEOF
1506
1507 Program names:
1508   --program-prefix=PREFIX            prepend PREFIX to installed program names
1509   --program-suffix=SUFFIX            append SUFFIX to installed program names
1510   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1511
1512 System types:
1513   --build=BUILD     configure for building on BUILD [guessed]
1514   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515   --target=TARGET   configure for building compilers for TARGET [HOST]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520   case $ac_init_help in
1521      short | recursive ) echo "Configuration of simgrid 3.3-svn:";;
1522    esac
1523   cat <<\_ACEOF
1524
1525 Optional Features:
1526   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528   --disable-dependency-tracking  speeds up one-time build
1529   --enable-dependency-tracking   do not reject slow dependency extractors
1530   --enable-shared[=PKGS]  build shared libraries [default=yes]
1531   --enable-static[=PKGS]  build static libraries [default=yes]
1532   --enable-fast-install[=PKGS]
1533                           optimize for fast installation [default=yes]
1534   --disable-libtool-lock  avoid locking (might break parallel builds)
1535   --enable-maintainer-mode  enable make rules and dependencies not useful
1536                           (and sometimes confusing) to the casual installer
1537   --enable-compile-warnings
1538                           use compiler warnings (default=no, unless in
1539                           maintainer mode)
1540   --disable-compile-optimizations
1541                           use compiler optimizations (default=yes, unless if
1542                           CFLAGS is explicitly set)
1543   --enable-botbuild       Compilation mode for build daemons -- do not use it
1544   --disable-java          To not compile the Java bindings even if the tools
1545                           are found
1546
1547 Optional Packages:
1548   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1549   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1550   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1551   --with-pic              try to use only PIC/non-PIC objects [default=use
1552                           both]
1553   --with-tags[=TAGS]      include additional configurations [automatic]
1554   --with-pthread   Use pthread instead of ucontext.
1555   --with-pthreads   Use pthread instead of ucontext.
1556   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1557   --with-gtnets           Path to GTNetS installation (default to empty, ie
1558                           not using GTNetS)
1559   --with-csdp             Path to csdp installation (default to empty, i.e.
1560                           not using csdp)
1561
1562 Some influential environment variables:
1563   CC          C compiler command
1564   CFLAGS      C compiler flags
1565   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1566               nonstandard directory <lib dir>
1567   LIBS        libraries to pass to the linker, e.g. -l<library>
1568   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569               you have headers in a nonstandard directory <include dir>
1570   CPP         C preprocessor
1571   CXX         C++ compiler command
1572   CXXFLAGS    C++ compiler flags
1573   CXXCPP      C++ preprocessor
1574
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584   # If there are subdirs, report their specific --help.
1585   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586     test -d "$ac_dir" || continue
1587     ac_builddir=.
1588
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *)
1592   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593   # A ".." for each directory in $ac_dir_suffix.
1594   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595   case $ac_top_builddir_sub in
1596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598   esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1604
1605 case $srcdir in
1606   .)  # We are building in place.
1607     ac_srcdir=.
1608     ac_top_srcdir=$ac_top_builddir_sub
1609     ac_abs_top_srcdir=$ac_pwd ;;
1610   [\\/]* | ?:[\\/]* )  # Absolute name.
1611     ac_srcdir=$srcdir$ac_dir_suffix;
1612     ac_top_srcdir=$srcdir
1613     ac_abs_top_srcdir=$srcdir ;;
1614   *) # Relative name.
1615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616     ac_top_srcdir=$ac_top_build_prefix$srcdir
1617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621     cd "$ac_dir" || { ac_status=$?; continue; }
1622     # Check for guested configure.
1623     if test -f "$ac_srcdir/configure.gnu"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626     elif test -f "$ac_srcdir/configure"; then
1627       echo &&
1628       $SHELL "$ac_srcdir/configure" --help=recursive
1629     else
1630       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631     fi || ac_status=$?
1632     cd "$ac_pwd" || { ac_status=$?; break; }
1633   done
1634 fi
1635
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638   cat <<\_ACEOF
1639 simgrid configure 3.3-svn
1640 generated by GNU Autoconf 2.61
1641
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1646 _ACEOF
1647   exit
1648 fi
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1652
1653 It was created by simgrid $as_me 3.3-svn, which was
1654 generated by GNU Autoconf 2.61.  Invocation command line was
1655
1656   $ $0 $@
1657
1658 _ACEOF
1659 exec 5>>config.log
1660 {
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1665
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1674
1675 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1676 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1679 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1680 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1681 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1682
1683 _ASUNAME
1684
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1693
1694 } >&5
1695
1696 cat >&5 <<_ACEOF
1697
1698
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1702
1703 _ACEOF
1704
1705
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1716 do
1717   for ac_arg
1718   do
1719     case $ac_arg in
1720     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722     | -silent | --silent | --silen | --sile | --sil)
1723       continue ;;
1724     *\'*)
1725       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726     esac
1727     case $ac_pass in
1728     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729     2)
1730       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731       if test $ac_must_keep_next = true; then
1732         ac_must_keep_next=false # Got value, back to normal.
1733       else
1734         case $ac_arg in
1735           *=* | --config-cache | -C | -disable-* | --disable-* \
1736           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738           | -with-* | --with-* | -without-* | --without-* | --x)
1739             case "$ac_configure_args0 " in
1740               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741             esac
1742             ;;
1743           -* ) ac_must_keep_next=true ;;
1744         esac
1745       fi
1746       ac_configure_args="$ac_configure_args '$ac_arg'"
1747       ;;
1748     esac
1749   done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log.  We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760   # Save into config.log some information that might help in debugging.
1761   {
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769     echo
1770     # The following way of writing the cache mishandles newlines in values,
1771 (
1772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773     eval ac_val=\$$ac_var
1774     case $ac_val in #(
1775     *${as_nl}*)
1776       case $ac_var in #(
1777       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779       esac
1780       case $ac_var in #(
1781       _ | IFS | as_nl) ;; #(
1782       *) $as_unset $ac_var ;;
1783       esac ;;
1784     esac
1785   done
1786   (set) 2>&1 |
1787     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788     *${as_nl}ac_space=\ *)
1789       sed -n \
1790         "s/'\''/'\''\\\\'\'''\''/g;
1791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792       ;; #(
1793     *)
1794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795       ;;
1796     esac |
1797     sort
1798 )
1799     echo
1800
1801     cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806     echo
1807     for ac_var in $ac_subst_vars
1808     do
1809       eval ac_val=\$$ac_var
1810       case $ac_val in
1811       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812       esac
1813       echo "$ac_var='\''$ac_val'\''"
1814     done | sort
1815     echo
1816
1817     if test -n "$ac_subst_files"; then
1818       cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823       echo
1824       for ac_var in $ac_subst_files
1825       do
1826         eval ac_val=\$$ac_var
1827         case $ac_val in
1828         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829         esac
1830         echo "$ac_var='\''$ac_val'\''"
1831       done | sort
1832       echo
1833     fi
1834
1835     if test -s confdefs.h; then
1836       cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841       echo
1842       cat confdefs.h
1843       echo
1844     fi
1845     test "$ac_signal" != 0 &&
1846       echo "$as_me: caught signal $ac_signal"
1847     echo "$as_me: exit $exit_status"
1848   } >&5
1849   rm -f core *.core core.conftest.* &&
1850     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851     exit $exit_status
1852 ' 0
1853 for ac_signal in 1 2 13 15; do
1854   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1857
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1860
1861 # Predefined preprocessor variables.
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1886
1887
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891   set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 else
1895   set x "$ac_default_prefix/share/config.site" \
1896         "$ac_default_prefix/etc/config.site"
1897 fi
1898 shift
1899 for ac_site_file
1900 do
1901   if test -r "$ac_site_file"; then
1902     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904     sed 's/^/| /' "$ac_site_file" >&5
1905     . "$ac_site_file"
1906   fi
1907 done
1908
1909 if test -r "$cache_file"; then
1910   # Some versions of bash will fail to source /dev/null (special
1911   # files actually), so we avoid doing that.
1912   if test -f "$cache_file"; then
1913     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1915     case $cache_file in
1916       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917       *)                      . "./$cache_file";;
1918     esac
1919   fi
1920 else
1921   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1923   >$cache_file
1924 fi
1925
1926 # Check that the precious variables saved in the cache have kept the same
1927 # value.
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931   eval ac_new_set=\$ac_env_${ac_var}_set
1932   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933   eval ac_new_val=\$ac_env_${ac_var}_value
1934   case $ac_old_set,$ac_new_set in
1935     set,)
1936       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938       ac_cache_corrupted=: ;;
1939     ,set)
1940       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942       ac_cache_corrupted=: ;;
1943     ,);;
1944     *)
1945       if test "x$ac_old_val" != "x$ac_new_val"; then
1946         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1949 echo "$as_me:   former value:  $ac_old_val" >&2;}
1950         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1951 echo "$as_me:   current value: $ac_new_val" >&2;}
1952         ac_cache_corrupted=:
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999 ac_ext=c
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
2005
2006
2007 ac_config_headers="$ac_config_headers src/gras_config.h"
2008
2009 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2010
2011
2012 ac_aux_dir=
2013 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2014   if 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/install.sh"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/install.sh -c"
2021     break
2022   elif test -f "$ac_dir/shtool"; then
2023     ac_aux_dir=$ac_dir
2024     ac_install_sh="$ac_aux_dir/shtool install -c"
2025     break
2026   fi
2027 done
2028 if test -z "$ac_aux_dir"; then
2029   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2030 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2041
2042
2043 # Make sure we can run config.sub.
2044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2045   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2046 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2047    { (exit 1); exit 1; }; }
2048
2049 { echo "$as_me:$LINENO: checking build system type" >&5
2050 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2051 if test "${ac_cv_build+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   ac_build_alias=$build_alias
2055 test "x$ac_build_alias" = x &&
2056   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2057 test "x$ac_build_alias" = x &&
2058   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2059 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2060    { (exit 1); exit 1; }; }
2061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2062   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2063 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2064    { (exit 1); exit 1; }; }
2065
2066 fi
2067 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2068 echo "${ECHO_T}$ac_cv_build" >&6; }
2069 case $ac_cv_build in
2070 *-*-*) ;;
2071 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2072 echo "$as_me: error: invalid value of canonical build" >&2;}
2073    { (exit 1); exit 1; }; };;
2074 esac
2075 build=$ac_cv_build
2076 ac_save_IFS=$IFS; IFS='-'
2077 set x $ac_cv_build
2078 shift
2079 build_cpu=$1
2080 build_vendor=$2
2081 shift; shift
2082 # Remember, the first character of IFS is used to create $*,
2083 # except with old shells:
2084 build_os=$*
2085 IFS=$ac_save_IFS
2086 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2087
2088
2089 { echo "$as_me:$LINENO: checking host system type" >&5
2090 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2091 if test "${ac_cv_host+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test "x$host_alias" = x; then
2095   ac_cv_host=$ac_cv_build
2096 else
2097   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2098     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2099 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2100    { (exit 1); exit 1; }; }
2101 fi
2102
2103 fi
2104 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2105 echo "${ECHO_T}$ac_cv_host" >&6; }
2106 case $ac_cv_host in
2107 *-*-*) ;;
2108 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2109 echo "$as_me: error: invalid value of canonical host" >&2;}
2110    { (exit 1); exit 1; }; };;
2111 esac
2112 host=$ac_cv_host
2113 ac_save_IFS=$IFS; IFS='-'
2114 set x $ac_cv_host
2115 shift
2116 host_cpu=$1
2117 host_vendor=$2
2118 shift; shift
2119 # Remember, the first character of IFS is used to create $*,
2120 # except with old shells:
2121 host_os=$*
2122 IFS=$ac_save_IFS
2123 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2124
2125
2126 { echo "$as_me:$LINENO: checking target system type" >&5
2127 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_target+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   if test "x$target_alias" = x; then
2132   ac_cv_target=$ac_cv_host
2133 else
2134   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2135     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2137    { (exit 1); exit 1; }; }
2138 fi
2139
2140 fi
2141 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2142 echo "${ECHO_T}$ac_cv_target" >&6; }
2143 case $ac_cv_target in
2144 *-*-*) ;;
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2146 echo "$as_me: error: invalid value of canonical target" >&2;}
2147    { (exit 1); exit 1; }; };;
2148 esac
2149 target=$ac_cv_target
2150 ac_save_IFS=$IFS; IFS='-'
2151 set x $ac_cv_target
2152 shift
2153 target_cpu=$1
2154 target_vendor=$2
2155 shift; shift
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2158 target_os=$*
2159 IFS=$ac_save_IFS
2160 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2161
2162
2163 # The aliases save the names the user supplied, while $host etc.
2164 # will get canonicalized.
2165 test -n "$target_alias" &&
2166   test "$program_prefix$program_suffix$program_transform_name" = \
2167     NONENONEs,x,x, &&
2168   program_prefix=${target_alias}-
2169 ac_ext=c
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174
2175 rm -rf .tst 2>/dev/null
2176 mkdir .tst 2>/dev/null
2177 if test -d .tst; then
2178   am__leading_dot=.
2179 else
2180   am__leading_dot=_
2181 fi
2182 rmdir .tst 2>/dev/null
2183
2184 DEPDIR="${am__leading_dot}deps"
2185
2186 ac_config_commands="$ac_config_commands depfiles"
2187
2188
2189 am_make=${MAKE-make}
2190 cat > confinc << 'END'
2191 am__doit:
2192         @echo done
2193 .PHONY: am__doit
2194 END
2195 # If we don't find an include directive, just comment out the code.
2196 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2197 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2198 am__include="#"
2199 am__quote=
2200 _am_result=none
2201 # First try GNU make style include.
2202 echo "include confinc" > confmf
2203 # We grep out `Entering directory' and `Leaving directory'
2204 # messages which can occur if `w' ends up in MAKEFLAGS.
2205 # In particular we don't look at `^make:' because GNU make might
2206 # be invoked under some other name (usually "gmake"), in which
2207 # case it prints its new name instead of `make'.
2208 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2209    am__include=include
2210    am__quote=
2211    _am_result=GNU
2212 fi
2213 # Now try BSD make style include.
2214 if test "$am__include" = "#"; then
2215    echo '.include "confinc"' > confmf
2216    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2217       am__include=.include
2218       am__quote="\""
2219       _am_result=BSD
2220    fi
2221 fi
2222
2223
2224 { echo "$as_me:$LINENO: result: $_am_result" >&5
2225 echo "${ECHO_T}$_am_result" >&6; }
2226 rm -f confinc confmf
2227
2228 # Check whether --enable-dependency-tracking was given.
2229 if test "${enable_dependency_tracking+set}" = set; then
2230   enableval=$enable_dependency_tracking;
2231 fi
2232
2233 if test "x$enable_dependency_tracking" != xno; then
2234   am_depcomp="$ac_aux_dir/depcomp"
2235   AMDEPBACKSLASH='\'
2236 fi
2237  if test "x$enable_dependency_tracking" != xno; then
2238   AMDEP_TRUE=
2239   AMDEP_FALSE='#'
2240 else
2241   AMDEP_TRUE='#'
2242   AMDEP_FALSE=
2243 fi
2244
2245
2246
2247 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2248 do
2249   # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2253 if test "${ac_cv_prog_GCJ+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   if test -n "$GCJ"; then
2257   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     ac_cv_prog_GCJ="$ac_prog"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274 fi
2275 fi
2276 GCJ=$ac_cv_prog_GCJ
2277 if test -n "$GCJ"; then
2278   { echo "$as_me:$LINENO: result: $GCJ" >&5
2279 echo "${ECHO_T}$GCJ" >&6; }
2280 else
2281   { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283 fi
2284
2285
2286   test -n "$GCJ" && break
2287 done
2288 test -n "$GCJ" || GCJ="gcj"
2289
2290 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2291 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2292    { (exit 1); exit 1; }; }
2293 if test "x${GCJFLAGS-unset}" = xunset; then
2294    GCJFLAGS="-g -O2"
2295 fi
2296
2297
2298 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2299
2300 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2301 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2302 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2306   # We make a subdir and do the tests there.  Otherwise we can end up
2307   # making bogus files that we don't know about and never remove.  For
2308   # instance it was reported that on HP-UX the gcc test will end up
2309   # making a dummy file named `D' -- because `-MD' means `put the output
2310   # in D'.
2311   mkdir conftest.dir
2312   # Copy depcomp to subdir because otherwise we won't find it if we're
2313   # using a relative directory.
2314   cp "$am_depcomp" conftest.dir
2315   cd conftest.dir
2316   # We will build objects and dependencies in a subdirectory because
2317   # it helps to detect inapplicable dependency modes.  For instance
2318   # both Tru64's cc and ICC support -MD to output dependencies as a
2319   # side effect of compilation, but ICC will put the dependencies in
2320   # the current directory while Tru64 will put them in the object
2321   # directory.
2322   mkdir sub
2323
2324   am_cv_GCJ_dependencies_compiler_type=none
2325   if test "$am_compiler_list" = ""; then
2326      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2327   fi
2328   for depmode in $am_compiler_list; do
2329     # Setup a source with many dependencies, because some compilers
2330     # like to wrap large dependency lists on column 80 (with \), and
2331     # we should not choose a depcomp mode which is confused by this.
2332     #
2333     # We need to recreate these files for each test, as the compiler may
2334     # overwrite some of them when testing with obscure command lines.
2335     # This happens at least with the AIX C compiler.
2336     : > sub/conftest.c
2337     for i in 1 2 3 4 5 6; do
2338       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2339       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2340       # Solaris 8's {/usr,}/bin/sh.
2341       touch sub/conftst$i.h
2342     done
2343     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2344
2345     case $depmode in
2346     nosideeffect)
2347       # after this tag, mechanisms are not by side-effect, so they'll
2348       # only be used when explicitly requested
2349       if test "x$enable_dependency_tracking" = xyes; then
2350         continue
2351       else
2352         break
2353       fi
2354       ;;
2355     none) break ;;
2356     esac
2357     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2358     # mode.  It turns out that the SunPro C++ compiler does not properly
2359     # handle `-M -o', and we need to detect this.
2360     if depmode=$depmode \
2361        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2362        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2363        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2364          >/dev/null 2>conftest.err &&
2365        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2366        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2367        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2368        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2369       # icc doesn't choke on unknown options, it will just issue warnings
2370       # or remarks (even with -Werror).  So we grep stderr for any message
2371       # that says an option was ignored or not supported.
2372       # When given -MP, icc 7.0 and 7.1 complain thusly:
2373       #   icc: Command line warning: ignoring option '-M'; no argument required
2374       # The diagnosis changed in icc 8.0:
2375       #   icc: Command line remark: option '-MP' not supported
2376       if (grep 'ignoring option' conftest.err ||
2377           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2378         am_cv_GCJ_dependencies_compiler_type=$depmode
2379         break
2380       fi
2381     fi
2382   done
2383
2384   cd ..
2385   rm -rf conftest.dir
2386 else
2387   am_cv_GCJ_dependencies_compiler_type=none
2388 fi
2389
2390 fi
2391 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2392 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2393 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2394
2395  if
2396   test "x$enable_dependency_tracking" != xno \
2397   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2398   am__fastdepGCJ_TRUE=
2399   am__fastdepGCJ_FALSE='#'
2400 else
2401   am__fastdepGCJ_TRUE='#'
2402   am__fastdepGCJ_FALSE=
2403 fi
2404
2405
2406
2407
2408 am__api_version='1.10'
2409
2410 # Find a good install program.  We prefer a C program (faster),
2411 # so one script is as good as another.  But avoid the broken or
2412 # incompatible versions:
2413 # SysV /etc/install, /usr/sbin/install
2414 # SunOS /usr/etc/install
2415 # IRIX /sbin/install
2416 # AIX /bin/install
2417 # AmigaOS /C/install, which installs bootblocks on floppy discs
2418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2421 # OS/2's system install, which has a completely different semantic
2422 # ./install, which can be erroneously created by make from ./install.sh.
2423 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2424 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2425 if test -z "$INSTALL"; then
2426 if test "${ac_cv_path_install+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
2433   test -z "$as_dir" && as_dir=.
2434   # Account for people who put trailing slashes in PATH elements.
2435 case $as_dir/ in
2436   ./ | .// | /cC/* | \
2437   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2438   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2439   /usr/ucb/* ) ;;
2440   *)
2441     # OSF1 and SCO ODT 3.0 have their own names for install.
2442     # Don't use installbsd from OSF since it installs stuff as root
2443     # by default.
2444     for ac_prog in ginstall scoinst install; do
2445       for ac_exec_ext in '' $ac_executable_extensions; do
2446         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2447           if test $ac_prog = install &&
2448             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449             # AIX install.  It has an incompatible calling convention.
2450             :
2451           elif test $ac_prog = install &&
2452             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453             # program-specific install script used by HP pwplus--don't use.
2454             :
2455           else
2456             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2457             break 3
2458           fi
2459         fi
2460       done
2461     done
2462     ;;
2463 esac
2464 done
2465 IFS=$as_save_IFS
2466
2467
2468 fi
2469   if test "${ac_cv_path_install+set}" = set; then
2470     INSTALL=$ac_cv_path_install
2471   else
2472     # As a last resort, use the slow shell script.  Don't cache a
2473     # value for INSTALL within a source directory, because that will
2474     # break other packages using the cache if that directory is
2475     # removed, or if the value is a relative name.
2476     INSTALL=$ac_install_sh
2477   fi
2478 fi
2479 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2480 echo "${ECHO_T}$INSTALL" >&6; }
2481
2482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2483 # It thinks the first close brace ends the variable substitution.
2484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2485
2486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2487
2488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2489
2490 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2491 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2492 # Just in case
2493 sleep 1
2494 echo timestamp > conftest.file
2495 # Do `set' in a subshell so we don't clobber the current shell's
2496 # arguments.  Must try -L first in case configure is actually a
2497 # symlink; some systems play weird games with the mod time of symlinks
2498 # (eg FreeBSD returns the mod time of the symlink's containing
2499 # directory).
2500 if (
2501    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2502    if test "$*" = "X"; then
2503       # -L didn't work.
2504       set X `ls -t $srcdir/configure conftest.file`
2505    fi
2506    rm -f conftest.file
2507    if test "$*" != "X $srcdir/configure conftest.file" \
2508       && test "$*" != "X conftest.file $srcdir/configure"; then
2509
2510       # If neither matched, then we have a broken ls.  This can happen
2511       # if, for instance, CONFIG_SHELL is bash and it inherits a
2512       # broken ls alias from the environment.  This has actually
2513       # happened.  Such a system could not be considered "sane".
2514       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2515 alias in your environment" >&5
2516 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2517 alias in your environment" >&2;}
2518    { (exit 1); exit 1; }; }
2519    fi
2520
2521    test "$2" = conftest.file
2522    )
2523 then
2524    # Ok.
2525    :
2526 else
2527    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2528 Check your system clock" >&5
2529 echo "$as_me: error: newly created file is older than distributed files!
2530 Check your system clock" >&2;}
2531    { (exit 1); exit 1; }; }
2532 fi
2533 { echo "$as_me:$LINENO: result: yes" >&5
2534 echo "${ECHO_T}yes" >&6; }
2535 test "$program_prefix" != NONE &&
2536   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.  echo might interpret backslashes.
2541 # By default was `s,x,x', remove it if useless.
2542 cat <<\_ACEOF >conftest.sed
2543 s/[\\$]/&&/g;s/;s,x,x,$//
2544 _ACEOF
2545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2546 rm -f conftest.sed
2547
2548 # expand $ac_aux_dir to an absolute path
2549 am_aux_dir=`cd $ac_aux_dir && pwd`
2550
2551 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2552 # Use eval to expand $SHELL
2553 if eval "$MISSING --run true"; then
2554   am_missing_run="$MISSING --run "
2555 else
2556   am_missing_run=
2557   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2558 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2559 fi
2560
2561 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2562 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2563 if test -z "$MKDIR_P"; then
2564   if test "${ac_cv_path_mkdir+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572   for ac_prog in mkdir gmkdir; do
2573          for ac_exec_ext in '' $ac_executable_extensions; do
2574            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2575            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2576              'mkdir (GNU coreutils) '* | \
2577              'mkdir (coreutils) '* | \
2578              'mkdir (fileutils) '4.1*)
2579                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2580                break 3;;
2581            esac
2582          done
2583        done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588
2589   if test "${ac_cv_path_mkdir+set}" = set; then
2590     MKDIR_P="$ac_cv_path_mkdir -p"
2591   else
2592     # As a last resort, use the slow shell script.  Don't cache a
2593     # value for MKDIR_P within a source directory, because that will
2594     # break other packages using the cache if that directory is
2595     # removed, or if the value is a relative name.
2596     test -d ./--version && rmdir ./--version
2597     MKDIR_P="$ac_install_sh -d"
2598   fi
2599 fi
2600 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2601 echo "${ECHO_T}$MKDIR_P" >&6; }
2602
2603 mkdir_p="$MKDIR_P"
2604 case $mkdir_p in
2605   [\\/$]* | ?:[\\/]*) ;;
2606   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2607 esac
2608
2609 for ac_prog in gawk mawk nawk awk
2610 do
2611   # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_AWK+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$AWK"; then
2619   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628     ac_cv_prog_AWK="$ac_prog"
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640   { echo "$as_me:$LINENO: result: $AWK" >&5
2641 echo "${ECHO_T}$AWK" >&6; }
2642 else
2643   { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2645 fi
2646
2647
2648   test -n "$AWK" && break
2649 done
2650
2651 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660         @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664   *@@@%%%=?*=@@@%%%*)
2665     eval ac_cv_prog_make_${ac_make}_set=yes;;
2666   *)
2667     eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672   { echo "$as_me:$LINENO: result: yes" >&5
2673 echo "${ECHO_T}yes" >&6; }
2674   SET_MAKE=
2675 else
2676   { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678   SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2682   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2683   # is not polluted with repeated "-I."
2684   am__isrc=' -I$(srcdir)'
2685   # test to see if srcdir already configured
2686   if test -f $srcdir/config.status; then
2687     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2688 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2689    { (exit 1); exit 1; }; }
2690   fi
2691 fi
2692
2693 # test whether we have cygpath
2694 if test -z "$CYGPATH_W"; then
2695   if (cygpath --version) >/dev/null 2>/dev/null; then
2696     CYGPATH_W='cygpath -w'
2697   else
2698     CYGPATH_W=echo
2699   fi
2700 fi
2701
2702
2703 # Define the identity of the package.
2704  PACKAGE='simgrid'
2705  VERSION='3.3-svn'
2706
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE "$PACKAGE"
2710 _ACEOF
2711
2712
2713 cat >>confdefs.h <<_ACEOF
2714 #define VERSION "$VERSION"
2715 _ACEOF
2716
2717 # Some tools Automake needs.
2718
2719 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2720
2721
2722 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2723
2724
2725 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2726
2727
2728 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2729
2730
2731 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2732
2733 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2734
2735 # Installed binaries are usually stripped using `strip' when the user
2736 # run `make install-strip'.  However `strip' might not be the right
2737 # tool to use in cross-compilation environments, therefore Automake
2738 # will honor the `STRIP' environment variable to overrule this program.
2739 if test "$cross_compiling" != no; then
2740   if test -n "$ac_tool_prefix"; then
2741   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}strip; ac_word=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_STRIP+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   if test -n "$STRIP"; then
2749   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 STRIP=$ac_cv_prog_STRIP
2769 if test -n "$STRIP"; then
2770   { echo "$as_me:$LINENO: result: $STRIP" >&5
2771 echo "${ECHO_T}$STRIP" >&6; }
2772 else
2773   { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2775 fi
2776
2777
2778 fi
2779 if test -z "$ac_cv_prog_STRIP"; then
2780   ac_ct_STRIP=$STRIP
2781   # Extract the first word of "strip", so it can be a program name with args.
2782 set dummy strip; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   if test -n "$ac_ct_STRIP"; then
2789   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796   for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     ac_cv_prog_ac_ct_STRIP="strip"
2799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2809 if test -n "$ac_ct_STRIP"; then
2810   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2811 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2812 else
2813   { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2815 fi
2816
2817   if test "x$ac_ct_STRIP" = x; then
2818     STRIP=":"
2819   else
2820     case $cross_compiling:$ac_tool_warned in
2821 yes:)
2822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet.  If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&5
2825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2826 whose name does not start with the host triplet.  If you think this
2827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2828 ac_tool_warned=yes ;;
2829 esac
2830     STRIP=$ac_ct_STRIP
2831   fi
2832 else
2833   STRIP="$ac_cv_prog_STRIP"
2834 fi
2835
2836 fi
2837 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2838
2839 # We need awk for the "check" target.  The system "awk" is bad on
2840 # some platforms.
2841 # Always define AMTAR for backward compatibility.
2842
2843 AMTAR=${AMTAR-"${am_missing_run}tar"}
2844
2845 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2846
2847
2848
2849
2850
2851
2852 ACLOCAL="$ACLOCAL -I acmacro"
2853
2854
2855
2856
2857
2858
2859 # Check whether --enable-shared was given.
2860 if test "${enable_shared+set}" = set; then
2861   enableval=$enable_shared; p=${PACKAGE-default}
2862     case $enableval in
2863     yes) enable_shared=yes ;;
2864     no) enable_shared=no ;;
2865     *)
2866       enable_shared=no
2867       # Look at the argument we got.  We use all the common list separators.
2868       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2869       for pkg in $enableval; do
2870         IFS="$lt_save_ifs"
2871         if test "X$pkg" = "X$p"; then
2872           enable_shared=yes
2873         fi
2874       done
2875       IFS="$lt_save_ifs"
2876       ;;
2877     esac
2878 else
2879   enable_shared=yes
2880 fi
2881
2882
2883 # Check whether --enable-static was given.
2884 if test "${enable_static+set}" = set; then
2885   enableval=$enable_static; p=${PACKAGE-default}
2886     case $enableval in
2887     yes) enable_static=yes ;;
2888     no) enable_static=no ;;
2889     *)
2890      enable_static=no
2891       # Look at the argument we got.  We use all the common list separators.
2892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2893       for pkg in $enableval; do
2894         IFS="$lt_save_ifs"
2895         if test "X$pkg" = "X$p"; then
2896           enable_static=yes
2897         fi
2898       done
2899       IFS="$lt_save_ifs"
2900       ;;
2901     esac
2902 else
2903   enable_static=yes
2904 fi
2905
2906
2907 # Check whether --enable-fast-install was given.
2908 if test "${enable_fast_install+set}" = set; then
2909   enableval=$enable_fast_install; p=${PACKAGE-default}
2910     case $enableval in
2911     yes) enable_fast_install=yes ;;
2912     no) enable_fast_install=no ;;
2913     *)
2914       enable_fast_install=no
2915       # Look at the argument we got.  We use all the common list separators.
2916       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2917       for pkg in $enableval; do
2918         IFS="$lt_save_ifs"
2919         if test "X$pkg" = "X$p"; then
2920           enable_fast_install=yes
2921         fi
2922       done
2923       IFS="$lt_save_ifs"
2924       ;;
2925     esac
2926 else
2927   enable_fast_install=yes
2928 fi
2929
2930
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   if test -n "$CC"; then
2945   ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952   for ac_exec_ext in '' $ac_executable_extensions; do
2953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966   { echo "$as_me:$LINENO: result: $CC" >&5
2967 echo "${ECHO_T}$CC" >&6; }
2968 else
2969   { echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$ac_cv_prog_CC"; then
2976   ac_ct_CC=$CC
2977   # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   if test -n "$ac_ct_CC"; then
2985   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990   IFS=$as_save_IFS
2991   test -z "$as_dir" && as_dir=.
2992   for ac_exec_ext in '' $ac_executable_extensions; do
2993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994     ac_cv_prog_ac_ct_CC="gcc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6; }
3008 else
3009   { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3011 fi
3012
3013   if test "x$ac_ct_CC" = x; then
3014     CC=""
3015   else
3016     case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet.  If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&5
3021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet.  If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3024 ac_tool_warned=yes ;;
3025 esac
3026     CC=$ac_ct_CC
3027   fi
3028 else
3029   CC="$ac_cv_prog_CC"
3030 fi
3031
3032 if test -z "$CC"; then
3033           if test -n "$ac_tool_prefix"; then
3034     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}cc; ac_word=$2
3036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if test -n "$CC"; then
3042   ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049   for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_CC="${ac_tool_prefix}cc"
3052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063   { echo "$as_me:$LINENO: result: $CC" >&5
3064 echo "${ECHO_T}$CC" >&6; }
3065 else
3066   { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3068 fi
3069
3070
3071   fi
3072 fi
3073 if test -z "$CC"; then
3074   # Extract the first word of "cc", so it can be a program name with args.
3075 set dummy cc; ac_word=$2
3076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084   ac_prog_rejected=no
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093        ac_prog_rejected=yes
3094        continue
3095      fi
3096     ac_cv_prog_CC="cc"
3097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 if test $ac_prog_rejected = yes; then
3105   # We found a bogon in the path, so make sure we never use it.
3106   set dummy $ac_cv_prog_CC
3107   shift
3108   if test $# != 0; then
3109     # We chose a different compiler from the bogus one.
3110     # However, it has the same basename, so the bogon will be chosen
3111     # first if we set CC to just the basename; use the full file name.
3112     shift
3113     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114   fi
3115 fi
3116 fi
3117 fi
3118 CC=$ac_cv_prog_CC
3119 if test -n "$CC"; then
3120   { echo "$as_me:$LINENO: result: $CC" >&5
3121 echo "${ECHO_T}$CC" >&6; }
3122 else
3123   { echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6; }
3125 fi
3126
3127
3128 fi
3129 if test -z "$CC"; then
3130   if test -n "$ac_tool_prefix"; then
3131   for ac_prog in cl.exe
3132   do
3133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162   { echo "$as_me:$LINENO: result: $CC" >&5
3163 echo "${ECHO_T}$CC" >&6; }
3164 else
3165   { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3167 fi
3168
3169
3170     test -n "$CC" && break
3171   done
3172 fi
3173 if test -z "$CC"; then
3174   ac_ct_CC=$CC
3175   for ac_prog in cl.exe
3176 do
3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_CC"; then
3185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_ac_ct_CC="$ac_prog"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 echo "${ECHO_T}$ac_ct_CC" >&6; }
3208 else
3209   { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3211 fi
3212
3213
3214   test -n "$ac_ct_CC" && break
3215 done
3216
3217   if test "x$ac_ct_CC" = x; then
3218     CC=""
3219   else
3220     case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet.  If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&5
3225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3226 whose name does not start with the host triplet.  If you think this
3227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230     CC=$ac_ct_CC
3231   fi
3232 fi
3233
3234 fi
3235
3236
3237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241    { (exit 1); exit 1; }; }
3242
3243 # Provide some information about the compiler.
3244 echo "$as_me:$LINENO: checking for C compiler version" >&5
3245 ac_compiler=`set X $ac_compile; echo $2`
3246 { (ac_try="$ac_compiler --version >&5"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_compiler --version >&5") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }
3256 { (ac_try="$ac_compiler -v >&5"
3257 case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262   (eval "$ac_compiler -v >&5") 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }
3266 { (ac_try="$ac_compiler -V >&5"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_compiler -V >&5") 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300 #
3301 # List of possible output files, starting from the most likely.
3302 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3303 # only as a last resort.  b.out is created by i960 compilers.
3304 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3305 #
3306 # The IRIX 6 linker writes into existing files which may not be
3307 # executable, retaining their permissions.  Remove them first so a
3308 # subsequent execution test works.
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3311 do
3312   case $ac_file in
3313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3314     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315   esac
3316 done
3317 rm -f $ac_rmfiles
3318
3319 if { (ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; then
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364
3365 { echo "$as_me:$LINENO: result: $ac_file" >&5
3366 echo "${ECHO_T}$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368   echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&5
3373 echo "$as_me: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&2;}
3375    { (exit 77); exit 77; }; }
3376 fi
3377
3378 ac_exeext=$ac_cv_exeext
3379
3380 # Check that the compiler produces executables we can run.  If not, either
3381 # the compiler is broken, or we cross compile.
3382 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3383 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3384 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3385 # If not cross compiling, check that we can run a simple program.
3386 if test "$cross_compiling" != yes; then
3387   if { ac_try='./$ac_file'
3388   { (case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_try") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; }; then
3397     cross_compiling=no
3398   else
3399     if test "$cross_compiling" = maybe; then
3400         cross_compiling=yes
3401     else
3402         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&5
3405 echo "$as_me: error: cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." >&2;}
3408    { (exit 1); exit 1; }; }
3409     fi
3410   fi
3411 fi
3412 { echo "$as_me:$LINENO: result: yes" >&5
3413 echo "${ECHO_T}yes" >&6; }
3414
3415 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run.  If not, either
3418 # the compiler is broken, or we cross compile.
3419 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3420 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3421 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3422 echo "${ECHO_T}$cross_compiling" >&6; }
3423
3424 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3425 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3426 if { (ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_link") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; then
3436   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 # `rm'.
3440 for ac_file in conftest.exe conftest conftest.*; do
3441   test -f "$ac_file" || continue
3442   case $ac_file in
3443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3444     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445           break;;
3446     * ) break;;
3447   esac
3448 done
3449 else
3450   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 rm -f conftest$ac_cv_exeext
3458 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3459 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3460
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3463 ac_exeext=$EXEEXT
3464 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3465 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3466 if test "${ac_cv_objext+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.o conftest.obj
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491   (eval "$ac_compile") 2>&5
3492   ac_status=$?
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); }; then
3495   for ac_file in conftest.o conftest.obj conftest.*; do
3496   test -f "$ac_file" || continue;
3497   case $ac_file in
3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3499     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500        break;;
3501   esac
3502 done
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3508 See \`config.log' for more details." >&5
3509 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3510 See \`config.log' for more details." >&2;}
3511    { (exit 1); exit 1; }; }
3512 fi
3513
3514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3515 fi
3516 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3517 echo "${ECHO_T}$ac_cv_objext" >&6; }
3518 OBJEXT=$ac_cv_objext
3519 ac_objext=$OBJEXT
3520 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535 #ifndef __GNUC__
3536        choke me
3537 #endif
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (ac_try="$ac_compile"
3545 case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_compile") 2>conftest.er1
3551   ac_status=$?
3552   grep -v '^ *+' conftest.er1 >conftest.err
3553   rm -f conftest.er1
3554   cat conftest.err >&5
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); } && {
3557          test -z "$ac_c_werror_flag" ||
3558          test ! -s conftest.err
3559        } && test -s conftest.$ac_objext; then
3560   ac_compiler_gnu=yes
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565         ac_compiler_gnu=no
3566 fi
3567
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3570
3571 fi
3572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3574 GCC=`test $ac_compiler_gnu = yes && echo yes`
3575 ac_test_CFLAGS=${CFLAGS+set}
3576 ac_save_CFLAGS=$CFLAGS
3577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3579 if test "${ac_cv_prog_cc_g+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   ac_save_c_werror_flag=$ac_c_werror_flag
3583    ac_c_werror_flag=yes
3584    ac_cv_prog_cc_g=no
3585    CFLAGS="-g"
3586    cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h.  */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h.  */
3592
3593 int
3594 main ()
3595 {
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_compile") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } && {
3615          test -z "$ac_c_werror_flag" ||
3616          test ! -s conftest.err
3617        } && test -s conftest.$ac_objext; then
3618   ac_cv_prog_cc_g=yes
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623         CFLAGS=""
3624       cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646   (eval "$ac_compile") 2>conftest.er1
3647   ac_status=$?
3648   grep -v '^ *+' conftest.er1 >conftest.err
3649   rm -f conftest.er1
3650   cat conftest.err >&5
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } && {
3653          test -z "$ac_c_werror_flag" ||
3654          test ! -s conftest.err
3655        } && test -s conftest.$ac_objext; then
3656   :
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661         ac_c_werror_flag=$ac_save_c_werror_flag
3662          CFLAGS="-g"
3663          cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669
3670 int
3671 main ()
3672 {
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685   (eval "$ac_compile") 2>conftest.er1
3686   ac_status=$?
3687   grep -v '^ *+' conftest.er1 >conftest.err
3688   rm -f conftest.er1
3689   cat conftest.err >&5
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); } && {
3692          test -z "$ac_c_werror_flag" ||
3693          test ! -s conftest.err
3694        } && test -s conftest.$ac_objext; then
3695   ac_cv_prog_cc_g=yes
3696 else
3697   echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700
3701 fi
3702
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 fi
3705
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 fi
3708
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710    ac_c_werror_flag=$ac_save_c_werror_flag
3711 fi
3712 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3714 if test "$ac_test_CFLAGS" = set; then
3715   CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717   if test "$GCC" = yes; then
3718     CFLAGS="-g -O2"
3719   else
3720     CFLAGS="-g"
3721   fi
3722 else
3723   if test "$GCC" = yes; then
3724     CFLAGS="-O2"
3725   else
3726     CFLAGS=
3727   fi
3728 fi
3729 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3730 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3731 if test "${ac_cv_prog_cc_c89+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   ac_cv_prog_cc_c89=no
3735 ac_save_CC=$CC
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h.  */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h.  */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750      char **p;
3751      int i;
3752 {
3753   return p[i];
3754 }
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3756 {
3757   char *s;
3758   va_list v;
3759   va_start (v,p);
3760   s = g (p, va_arg (v,int));
3761   va_end (v);
3762   return s;
3763 }
3764
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3766    function prototypes and stuff, but not '\xHH' hex character constants.
3767    These don't provoke an error unfortunately, instead are silently treated
3768    as 'x'.  The following induces an error, until -std is added to get
3769    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3770    array size at least.  It's necessary to write '\x00'==0 to get something
3771    that's true only with -std.  */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775    inside strings and character constants.  */
3776 #define FOO(x) 'x'
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 int argc;
3784 char **argv;
3785 int
3786 main ()
3787 {
3788 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 do
3796   CC="$ac_save_CC $ac_arg"
3797   rm -f conftest.$ac_objext
3798 if { (ac_try="$ac_compile"
3799 case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804   (eval "$ac_compile") 2>conftest.er1
3805   ac_status=$?
3806   grep -v '^ *+' conftest.er1 >conftest.err
3807   rm -f conftest.er1
3808   cat conftest.err >&5
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); } && {
3811          test -z "$ac_c_werror_flag" ||
3812          test ! -s conftest.err
3813        } && test -s conftest.$ac_objext; then
3814   ac_cv_prog_cc_c89=$ac_arg
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819
3820 fi
3821
3822 rm -f core conftest.err conftest.$ac_objext
3823   test "x$ac_cv_prog_cc_c89" != "xno" && break
3824 done
3825 rm -f conftest.$ac_ext
3826 CC=$ac_save_CC
3827
3828 fi
3829 # AC_CACHE_VAL
3830 case "x$ac_cv_prog_cc_c89" in
3831   x)
3832     { echo "$as_me:$LINENO: result: none needed" >&5
3833 echo "${ECHO_T}none needed" >&6; } ;;
3834   xno)
3835     { echo "$as_me:$LINENO: result: unsupported" >&5
3836 echo "${ECHO_T}unsupported" >&6; } ;;
3837   *)
3838     CC="$CC $ac_cv_prog_cc_c89"
3839     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3840 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3841 esac
3842
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850 depcc="$CC"   am_compiler_list=
3851
3852 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3853 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3854 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3858   # We make a subdir and do the tests there.  Otherwise we can end up
3859   # making bogus files that we don't know about and never remove.  For
3860   # instance it was reported that on HP-UX the gcc test will end up
3861   # making a dummy file named `D' -- because `-MD' means `put the output
3862   # in D'.
3863   mkdir conftest.dir
3864   # Copy depcomp to subdir because otherwise we won't find it if we're
3865   # using a relative directory.
3866   cp "$am_depcomp" conftest.dir
3867   cd conftest.dir
3868   # We will build objects and dependencies in a subdirectory because
3869   # it helps to detect inapplicable dependency modes.  For instance
3870   # both Tru64's cc and ICC support -MD to output dependencies as a
3871   # side effect of compilation, but ICC will put the dependencies in
3872   # the current directory while Tru64 will put them in the object
3873   # directory.
3874   mkdir sub
3875
3876   am_cv_CC_dependencies_compiler_type=none
3877   if test "$am_compiler_list" = ""; then
3878      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3879   fi
3880   for depmode in $am_compiler_list; do
3881     # Setup a source with many dependencies, because some compilers
3882     # like to wrap large dependency lists on column 80 (with \), and
3883     # we should not choose a depcomp mode which is confused by this.
3884     #
3885     # We need to recreate these files for each test, as the compiler may
3886     # overwrite some of them when testing with obscure command lines.
3887     # This happens at least with the AIX C compiler.
3888     : > sub/conftest.c
3889     for i in 1 2 3 4 5 6; do
3890       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3892       # Solaris 8's {/usr,}/bin/sh.
3893       touch sub/conftst$i.h
3894     done
3895     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3896
3897     case $depmode in
3898     nosideeffect)
3899       # after this tag, mechanisms are not by side-effect, so they'll
3900       # only be used when explicitly requested
3901       if test "x$enable_dependency_tracking" = xyes; then
3902         continue
3903       else
3904         break
3905       fi
3906       ;;
3907     none) break ;;
3908     esac
3909     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3910     # mode.  It turns out that the SunPro C++ compiler does not properly
3911     # handle `-M -o', and we need to detect this.
3912     if depmode=$depmode \
3913        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3914        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3915        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3916          >/dev/null 2>conftest.err &&
3917        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3918        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3919        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3920        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3921       # icc doesn't choke on unknown options, it will just issue warnings
3922       # or remarks (even with -Werror).  So we grep stderr for any message
3923       # that says an option was ignored or not supported.
3924       # When given -MP, icc 7.0 and 7.1 complain thusly:
3925       #   icc: Command line warning: ignoring option '-M'; no argument required
3926       # The diagnosis changed in icc 8.0:
3927       #   icc: Command line remark: option '-MP' not supported
3928       if (grep 'ignoring option' conftest.err ||
3929           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3930         am_cv_CC_dependencies_compiler_type=$depmode
3931         break
3932       fi
3933     fi
3934   done
3935
3936   cd ..
3937   rm -rf conftest.dir
3938 else
3939   am_cv_CC_dependencies_compiler_type=none
3940 fi
3941
3942 fi
3943 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3944 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3945 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3946
3947  if
3948   test "x$enable_dependency_tracking" != xno \
3949   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3950   am__fastdepCC_TRUE=
3951   am__fastdepCC_FALSE='#'
3952 else
3953   am__fastdepCC_TRUE='#'
3954   am__fastdepCC_FALSE=
3955 fi
3956
3957
3958 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3959 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3960 if test "${lt_cv_path_SED+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   # Loop through the user's path and test for sed and gsed.
3964 # Then use that list of sed's as ones to test for truncation.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for lt_ac_prog in sed gsed; do
3971     for ac_exec_ext in '' $ac_executable_extensions; do
3972       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3973         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3974       fi
3975     done
3976   done
3977 done
3978 lt_ac_max=0
3979 lt_ac_count=0
3980 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3981 # along with /bin/sed that truncates output.
3982 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3983   test ! -f $lt_ac_sed && continue
3984   cat /dev/null > conftest.in
3985   lt_ac_count=0
3986   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3987   # Check for GNU sed and select it if it is found.
3988   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3989     lt_cv_path_SED=$lt_ac_sed
3990     break
3991   fi
3992   while true; do
3993     cat conftest.in conftest.in >conftest.tmp
3994     mv conftest.tmp conftest.in
3995     cp conftest.in conftest.nl
3996     echo >>conftest.nl
3997     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3998     cmp -s conftest.out conftest.nl || break
3999     # 10000 chars as input seems more than enough
4000     test $lt_ac_count -gt 10 && break
4001     lt_ac_count=`expr $lt_ac_count + 1`
4002     if test $lt_ac_count -gt $lt_ac_max; then
4003       lt_ac_max=$lt_ac_count
4004       lt_cv_path_SED=$lt_ac_sed
4005     fi
4006   done
4007 done
4008
4009 fi
4010
4011 SED=$lt_cv_path_SED
4012 { echo "$as_me:$LINENO: result: $SED" >&5
4013 echo "${ECHO_T}$SED" >&6; }
4014
4015 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4016 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_GREP+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   # Extract the first word of "grep ggrep" to use in msg output
4021 if test -z "$GREP"; then
4022 set dummy grep ggrep; ac_prog_name=$2
4023 if test "${ac_cv_path_GREP+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   ac_path_GREP_found=false
4027 # Loop through the user's path and test for each of PROGNAME-LIST
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_prog in grep ggrep; do
4034   for ac_exec_ext in '' $ac_executable_extensions; do
4035     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4036     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4037     # Check for GNU ac_path_GREP and select it if it is found.
4038   # Check for GNU $ac_path_GREP
4039 case `"$ac_path_GREP" --version 2>&1` in
4040 *GNU*)
4041   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4042 *)
4043   ac_count=0
4044   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045   while :
4046   do
4047     cat "conftest.in" "conftest.in" >"conftest.tmp"
4048     mv "conftest.tmp" "conftest.in"
4049     cp "conftest.in" "conftest.nl"
4050     echo 'GREP' >> "conftest.nl"
4051     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053     ac_count=`expr $ac_count + 1`
4054     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4055       # Best one so far, save it but keep looking for a better one
4056       ac_cv_path_GREP="$ac_path_GREP"
4057       ac_path_GREP_max=$ac_count
4058     fi
4059     # 10*(2^10) chars as input seems more than enough
4060     test $ac_count -gt 10 && break
4061   done
4062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 esac
4064
4065
4066     $ac_path_GREP_found && break 3
4067   done
4068 done
4069
4070 done
4071 IFS=$as_save_IFS
4072
4073
4074 fi
4075
4076 GREP="$ac_cv_path_GREP"
4077 if test -z "$GREP"; then
4078   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4079 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4080    { (exit 1); exit 1; }; }
4081 fi
4082
4083 else
4084   ac_cv_path_GREP=$GREP
4085 fi
4086
4087
4088 fi
4089 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4090 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4091  GREP="$ac_cv_path_GREP"
4092
4093
4094 { echo "$as_me:$LINENO: checking for egrep" >&5
4095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4096 if test "${ac_cv_path_EGREP+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4100    then ac_cv_path_EGREP="$GREP -E"
4101    else
4102      # Extract the first word of "egrep" to use in msg output
4103 if test -z "$EGREP"; then
4104 set dummy egrep; ac_prog_name=$2
4105 if test "${ac_cv_path_EGREP+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   ac_path_EGREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_prog in egrep; do
4116   for ac_exec_ext in '' $ac_executable_extensions; do
4117     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119     # Check for GNU ac_path_EGREP and select it if it is found.
4120   # Check for GNU $ac_path_EGREP
4121 case `"$ac_path_EGREP" --version 2>&1` in
4122 *GNU*)
4123   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124 *)
4125   ac_count=0
4126   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4127   while :
4128   do
4129     cat "conftest.in" "conftest.in" >"conftest.tmp"
4130     mv "conftest.tmp" "conftest.in"
4131     cp "conftest.in" "conftest.nl"
4132     echo 'EGREP' >> "conftest.nl"
4133     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135     ac_count=`expr $ac_count + 1`
4136     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137       # Best one so far, save it but keep looking for a better one
4138       ac_cv_path_EGREP="$ac_path_EGREP"
4139       ac_path_EGREP_max=$ac_count
4140     fi
4141     # 10*(2^10) chars as input seems more than enough
4142     test $ac_count -gt 10 && break
4143   done
4144   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 esac
4146
4147
4148     $ac_path_EGREP_found && break 3
4149   done
4150 done
4151
4152 done
4153 IFS=$as_save_IFS
4154
4155
4156 fi
4157
4158 EGREP="$ac_cv_path_EGREP"
4159 if test -z "$EGREP"; then
4160   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4161 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4162    { (exit 1); exit 1; }; }
4163 fi
4164
4165 else
4166   ac_cv_path_EGREP=$EGREP
4167 fi
4168
4169
4170    fi
4171 fi
4172 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4173 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4174  EGREP="$ac_cv_path_EGREP"
4175
4176
4177
4178 # Check whether --with-gnu-ld was given.
4179 if test "${with_gnu_ld+set}" = set; then
4180   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4181 else
4182   with_gnu_ld=no
4183 fi
4184
4185 ac_prog=ld
4186 if test "$GCC" = yes; then
4187   # Check if gcc -print-prog-name=ld gives a path.
4188   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4190   case $host in
4191   *-*-mingw*)
4192     # gcc leaves a trailing carriage return which upsets mingw
4193     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4194   *)
4195     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4196   esac
4197   case $ac_prog in
4198     # Accept absolute paths.
4199     [\\/]* | ?:[\\/]*)
4200       re_direlt='/[^/][^/]*/\.\./'
4201       # Canonicalize the pathname of ld
4202       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4203       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4204         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4205       done
4206       test -z "$LD" && LD="$ac_prog"
4207       ;;
4208   "")
4209     # If it fails, then pretend we aren't using GCC.
4210     ac_prog=ld
4211     ;;
4212   *)
4213     # If it is relative, then search for the first ld in PATH.
4214     with_gnu_ld=unknown
4215     ;;
4216   esac
4217 elif test "$with_gnu_ld" = yes; then
4218   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4220 else
4221   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4223 fi
4224 if test "${lt_cv_path_LD+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   if test -z "$LD"; then
4228   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229   for ac_dir in $PATH; do
4230     IFS="$lt_save_ifs"
4231     test -z "$ac_dir" && ac_dir=.
4232     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4233       lt_cv_path_LD="$ac_dir/$ac_prog"
4234       # Check to see if the program is GNU ld.  I'd rather use --version,
4235       # but apparently some variants of GNU ld only accept -v.
4236       # Break only if it was the GNU/non-GNU ld that we prefer.
4237       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4238       *GNU* | *'with BFD'*)
4239         test "$with_gnu_ld" != no && break
4240         ;;
4241       *)
4242         test "$with_gnu_ld" != yes && break
4243         ;;
4244       esac
4245     fi
4246   done
4247   IFS="$lt_save_ifs"
4248 else
4249   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4250 fi
4251 fi
4252
4253 LD="$lt_cv_path_LD"
4254 if test -n "$LD"; then
4255   { echo "$as_me:$LINENO: result: $LD" >&5
4256 echo "${ECHO_T}$LD" >&6; }
4257 else
4258   { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4260 fi
4261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4263    { (exit 1); exit 1; }; }
4264 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4270 case `$LD -v 2>&1 </dev/null` in
4271 *GNU* | *'with BFD'*)
4272   lt_cv_prog_gnu_ld=yes
4273   ;;
4274 *)
4275   lt_cv_prog_gnu_ld=no
4276   ;;
4277 esac
4278 fi
4279 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4281 with_gnu_ld=$lt_cv_prog_gnu_ld
4282
4283
4284 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4285 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4286 if test "${lt_cv_ld_reload_flag+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   lt_cv_ld_reload_flag='-r'
4290 fi
4291 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4292 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4293 reload_flag=$lt_cv_ld_reload_flag
4294 case $reload_flag in
4295 "" | " "*) ;;
4296 *) reload_flag=" $reload_flag" ;;
4297 esac
4298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299 case $host_os in
4300   darwin*)
4301     if test "$GCC" = yes; then
4302       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4303     else
4304       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4305     fi
4306     ;;
4307 esac
4308
4309 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4310 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4311 if test "${lt_cv_path_NM+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   if test -n "$NM"; then
4315   # Let the user override the test.
4316   lt_cv_path_NM="$NM"
4317 else
4318   lt_nm_to_check="${ac_tool_prefix}nm"
4319   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4320     lt_nm_to_check="$lt_nm_to_check nm"
4321   fi
4322   for lt_tmp_nm in $lt_nm_to_check; do
4323     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4324     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4325       IFS="$lt_save_ifs"
4326       test -z "$ac_dir" && ac_dir=.
4327       tmp_nm="$ac_dir/$lt_tmp_nm"
4328       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4329         # Check to see if the nm accepts a BSD-compat flag.
4330         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4331         #   nm: unknown option "B" ignored
4332         # Tru64's nm complains that /dev/null is an invalid object file
4333         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4334         */dev/null* | *'Invalid file or object type'*)
4335           lt_cv_path_NM="$tmp_nm -B"
4336           break
4337           ;;
4338         *)
4339           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4340           */dev/null*)
4341             lt_cv_path_NM="$tmp_nm -p"
4342             break
4343             ;;
4344           *)
4345             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4346             continue # so that we can try to find one that supports BSD flags
4347             ;;
4348           esac
4349           ;;
4350         esac
4351       fi
4352     done
4353     IFS="$lt_save_ifs"
4354   done
4355   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4356 fi
4357 fi
4358 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4359 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4360 NM="$lt_cv_path_NM"
4361
4362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4364 LN_S=$as_ln_s
4365 if test "$LN_S" = "ln -s"; then
4366   { echo "$as_me:$LINENO: result: yes" >&5
4367 echo "${ECHO_T}yes" >&6; }
4368 else
4369   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4370 echo "${ECHO_T}no, using $LN_S" >&6; }
4371 fi
4372
4373 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4374 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4375 if test "${lt_cv_deplibs_check_method+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   lt_cv_file_magic_cmd='$MAGIC_CMD'
4379 lt_cv_file_magic_test_file=
4380 lt_cv_deplibs_check_method='unknown'
4381 # Need to set the preceding variable on all platforms that support
4382 # interlibrary dependencies.
4383 # 'none' -- dependencies not supported.
4384 # `unknown' -- same as none, but documents that we really don't know.
4385 # 'pass_all' -- all dependencies passed with no checks.
4386 # 'test_compile' -- check by making test program.
4387 # 'file_magic [[regex]]' -- check by looking for files in library path
4388 # which responds to the $file_magic_cmd with a given extended regex.
4389 # If you have `file' or equivalent on your system and you're not sure
4390 # whether `pass_all' will *always* work, you probably want this one.
4391
4392 case $host_os in
4393 aix4* | aix5*)
4394   lt_cv_deplibs_check_method=pass_all
4395   ;;
4396
4397 beos*)
4398   lt_cv_deplibs_check_method=pass_all
4399   ;;
4400
4401 bsdi[45]*)
4402   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4403   lt_cv_file_magic_cmd='/usr/bin/file -L'
4404   lt_cv_file_magic_test_file=/shlib/libc.so
4405   ;;
4406
4407 cygwin*)
4408   # func_win32_libid is a shell function defined in ltmain.sh
4409   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4410   lt_cv_file_magic_cmd='func_win32_libid'
4411   ;;
4412
4413 mingw* | pw32*)
4414   # Base MSYS/MinGW do not provide the 'file' command needed by
4415   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4416   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4417   lt_cv_file_magic_cmd='$OBJDUMP -f'
4418   ;;
4419
4420 darwin* | rhapsody*)
4421   lt_cv_deplibs_check_method=pass_all
4422   ;;
4423
4424 freebsd* | dragonfly*)
4425   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4426     case $host_cpu in
4427     i*86 )
4428       # Not sure whether the presence of OpenBSD here was a mistake.
4429       # Let's accept both of them until this is cleared up.
4430       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4431       lt_cv_file_magic_cmd=/usr/bin/file
4432       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4433       ;;
4434     esac
4435   else
4436     lt_cv_deplibs_check_method=pass_all
4437   fi
4438   ;;
4439
4440 gnu*)
4441   lt_cv_deplibs_check_method=pass_all
4442   ;;
4443
4444 hpux10.20* | hpux11*)
4445   lt_cv_file_magic_cmd=/usr/bin/file
4446   case $host_cpu in
4447   ia64*)
4448     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4449     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4450     ;;
4451   hppa*64*)
4452     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]'
4453     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4454     ;;
4455   *)
4456     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4457     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4458     ;;
4459   esac
4460   ;;
4461
4462 interix3*)
4463   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4464   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4465   ;;
4466
4467 irix5* | irix6* | nonstopux*)
4468   case $LD in
4469   *-32|*"-32 ") libmagic=32-bit;;
4470   *-n32|*"-n32 ") libmagic=N32;;
4471   *-64|*"-64 ") libmagic=64-bit;;
4472   *) libmagic=never-match;;
4473   esac
4474   lt_cv_deplibs_check_method=pass_all
4475   ;;
4476
4477 # This must be Linux ELF.
4478 linux* | k*bsd*-gnu)
4479   lt_cv_deplibs_check_method=pass_all
4480   ;;
4481
4482 netbsd* | netbsdelf*-gnu)
4483   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4484     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4485   else
4486     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4487   fi
4488   ;;
4489
4490 newos6*)
4491   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4492   lt_cv_file_magic_cmd=/usr/bin/file
4493   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4494   ;;
4495
4496 nto-qnx*)
4497   lt_cv_deplibs_check_method=unknown
4498   ;;
4499
4500 openbsd*)
4501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4502     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4503   else
4504     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4505   fi
4506   ;;
4507
4508 osf3* | osf4* | osf5*)
4509   lt_cv_deplibs_check_method=pass_all
4510   ;;
4511
4512 solaris*)
4513   lt_cv_deplibs_check_method=pass_all
4514   ;;
4515
4516 sysv4 | sysv4.3*)
4517   case $host_vendor in
4518   motorola)
4519     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]'
4520     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4521     ;;
4522   ncr)
4523     lt_cv_deplibs_check_method=pass_all
4524     ;;
4525   sequent)
4526     lt_cv_file_magic_cmd='/bin/file'
4527     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4528     ;;
4529   sni)
4530     lt_cv_file_magic_cmd='/bin/file'
4531     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4532     lt_cv_file_magic_test_file=/lib/libc.so
4533     ;;
4534   siemens)
4535     lt_cv_deplibs_check_method=pass_all
4536     ;;
4537   pc)
4538     lt_cv_deplibs_check_method=pass_all
4539     ;;
4540   esac
4541   ;;
4542
4543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4544   lt_cv_deplibs_check_method=pass_all
4545   ;;
4546 esac
4547
4548 fi
4549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4551 file_magic_cmd=$lt_cv_file_magic_cmd
4552 deplibs_check_method=$lt_cv_deplibs_check_method
4553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4554
4555
4556
4557
4558 # If no C compiler was specified, use CC.
4559 LTCC=${LTCC-"$CC"}
4560
4561 # If no C compiler flags were specified, use CFLAGS.
4562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4563
4564 # Allow CC to be a program name with arguments.
4565 compiler=$CC
4566
4567
4568 # Check whether --enable-libtool-lock was given.
4569 if test "${enable_libtool_lock+set}" = set; then
4570   enableval=$enable_libtool_lock;
4571 fi
4572
4573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4574
4575 # Some flags need to be propagated to the compiler or linker for good
4576 # libtool support.
4577 case $host in
4578 ia64-*-hpux*)
4579   # Find out which ABI we are using.
4580   echo 'int i;' > conftest.$ac_ext
4581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; then
4586     case `/usr/bin/file conftest.$ac_objext` in
4587     *ELF-32*)
4588       HPUX_IA64_MODE="32"
4589       ;;
4590     *ELF-64*)
4591       HPUX_IA64_MODE="64"
4592       ;;
4593     esac
4594   fi
4595   rm -rf conftest*
4596   ;;
4597 *-*-irix6*)
4598   # Find out which ABI we are using.
4599   echo '#line 4599 "configure"' > conftest.$ac_ext
4600   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601   (eval $ac_compile) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; then
4605    if test "$lt_cv_prog_gnu_ld" = yes; then
4606     case `/usr/bin/file conftest.$ac_objext` in
4607     *32-bit*)
4608       LD="${LD-ld} -melf32bsmip"
4609       ;;
4610     *N32*)
4611       LD="${LD-ld} -melf32bmipn32"
4612       ;;
4613     *64-bit*)
4614       LD="${LD-ld} -melf64bmip"
4615       ;;
4616     esac
4617    else
4618     case `/usr/bin/file conftest.$ac_objext` in
4619     *32-bit*)
4620       LD="${LD-ld} -32"
4621       ;;
4622     *N32*)
4623       LD="${LD-ld} -n32"
4624       ;;
4625     *64-bit*)
4626       LD="${LD-ld} -64"
4627       ;;
4628     esac
4629    fi
4630   fi
4631   rm -rf conftest*
4632   ;;
4633
4634 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4635   # Find out which ABI we are using.
4636   echo 'int i;' > conftest.$ac_ext
4637   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; then
4642     case `/usr/bin/file conftest.o` in
4643     *32-bit*)
4644       case $host in
4645         x86_64-*linux*)
4646           LD="${LD-ld} -m elf_i386"
4647           ;;
4648         ppc64-*linux*|powerpc64-*linux*)
4649           LD="${LD-ld} -m elf32ppclinux"
4650           ;;
4651         s390x-*linux*)
4652           LD="${LD-ld} -m elf_s390"
4653           ;;
4654         sparc64-*linux*)
4655           LD="${LD-ld} -m elf32_sparc"
4656           ;;
4657       esac
4658       ;;
4659     *64-bit*)
4660       case $host in
4661         x86_64-*linux*)
4662           LD="${LD-ld} -m elf_x86_64"
4663           ;;
4664         ppc*-*linux*|powerpc*-*linux*)
4665           LD="${LD-ld} -m elf64ppc"
4666           ;;
4667         s390*-*linux*)
4668           LD="${LD-ld} -m elf64_s390"
4669           ;;
4670         sparc*-*linux*)
4671           LD="${LD-ld} -m elf64_sparc"
4672           ;;
4673       esac
4674       ;;
4675     esac
4676   fi
4677   rm -rf conftest*
4678   ;;
4679
4680 *-*-sco3.2v5*)
4681   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4682   SAVE_CFLAGS="$CFLAGS"
4683   CFLAGS="$CFLAGS -belf"
4684   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4685 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4686 if test "${lt_cv_cc_needs_belf+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694
4695      cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701
4702 int
4703 main ()
4704 {
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_link") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && {
4724          test -z "$ac_c_werror_flag" ||
4725          test ! -s conftest.err
4726        } && test -s conftest$ac_exeext &&
4727        $as_test_x conftest$ac_exeext; then
4728   lt_cv_cc_needs_belf=yes
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733         lt_cv_cc_needs_belf=no
4734 fi
4735
4736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4737       conftest$ac_exeext conftest.$ac_ext
4738      ac_ext=c
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743
4744 fi
4745 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4746 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4747   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4748     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4749     CFLAGS="$SAVE_CFLAGS"
4750   fi
4751   ;;
4752 sparc*-*solaris*)
4753   # Find out which ABI we are using.
4754   echo 'int i;' > conftest.$ac_ext
4755   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756   (eval $ac_compile) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; then
4760     case `/usr/bin/file conftest.o` in
4761     *64-bit*)
4762       case $lt_cv_prog_gnu_ld in
4763       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4764       *)    LD="${LD-ld} -64" ;;
4765       esac
4766       ;;
4767     esac
4768   fi
4769   rm -rf conftest*
4770   ;;
4771
4772 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4773   if test -n "$ac_tool_prefix"; then
4774   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4778 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4779   echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781   if test -n "$DLLTOOL"; then
4782   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 DLLTOOL=$ac_cv_prog_DLLTOOL
4802 if test -n "$DLLTOOL"; then
4803   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4804 echo "${ECHO_T}$DLLTOOL" >&6; }
4805 else
4806   { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4808 fi
4809
4810
4811 fi
4812 if test -z "$ac_cv_prog_DLLTOOL"; then
4813   ac_ct_DLLTOOL=$DLLTOOL
4814   # Extract the first word of "dlltool", so it can be a program name with args.
4815 set dummy dlltool; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   if test -n "$ac_ct_DLLTOOL"; then
4822   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4842 if test -n "$ac_ct_DLLTOOL"; then
4843   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4844 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4845 else
4846   { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4848 fi
4849
4850   if test "x$ac_ct_DLLTOOL" = x; then
4851     DLLTOOL="false"
4852   else
4853     case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4856 whose name does not start with the host triplet.  If you think this
4857 configuration is useful to you, please write to autoconf@gnu.org." >&5
4858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4859 whose name does not start with the host triplet.  If you think this
4860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4861 ac_tool_warned=yes ;;
4862 esac
4863     DLLTOOL=$ac_ct_DLLTOOL
4864   fi
4865 else
4866   DLLTOOL="$ac_cv_prog_DLLTOOL"
4867 fi
4868
4869   if test -n "$ac_tool_prefix"; then
4870   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}as; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_AS+set}" = set; then
4875   echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877   if test -n "$AS"; then
4878   ac_cv_prog_AS="$AS" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885   for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_prog_AS="${ac_tool_prefix}as"
4888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 AS=$ac_cv_prog_AS
4898 if test -n "$AS"; then
4899   { echo "$as_me:$LINENO: result: $AS" >&5
4900 echo "${ECHO_T}$AS" >&6; }
4901 else
4902   { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4904 fi
4905
4906
4907 fi
4908 if test -z "$ac_cv_prog_AS"; then
4909   ac_ct_AS=$AS
4910   # Extract the first word of "as", so it can be a program name with args.
4911 set dummy as; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   if test -n "$ac_ct_AS"; then
4918   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925   for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_prog_ac_ct_AS="as"
4928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4938 if test -n "$ac_ct_AS"; then
4939   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4940 echo "${ECHO_T}$ac_ct_AS" >&6; }
4941 else
4942   { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4944 fi
4945
4946   if test "x$ac_ct_AS" = x; then
4947     AS="false"
4948   else
4949     case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4952 whose name does not start with the host triplet.  If you think this
4953 configuration is useful to you, please write to autoconf@gnu.org." >&5
4954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4955 whose name does not start with the host triplet.  If you think this
4956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4957 ac_tool_warned=yes ;;
4958 esac
4959     AS=$ac_ct_AS
4960   fi
4961 else
4962   AS="$ac_cv_prog_AS"
4963 fi
4964
4965   if test -n "$ac_tool_prefix"; then
4966   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -n "$OBJDUMP"; then
4974   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 OBJDUMP=$ac_cv_prog_OBJDUMP
4994 if test -n "$OBJDUMP"; then
4995   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4996 echo "${ECHO_T}$OBJDUMP" >&6; }
4997 else
4998   { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5000 fi
5001
5002
5003 fi
5004 if test -z "$ac_cv_prog_OBJDUMP"; then
5005   ac_ct_OBJDUMP=$OBJDUMP
5006   # Extract the first word of "objdump", so it can be a program name with args.
5007 set dummy objdump; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   if test -n "$ac_ct_OBJDUMP"; then
5014   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019   IFS=$as_save_IFS
5020   test -z "$as_dir" && as_dir=.
5021   for ac_exec_ext in '' $ac_executable_extensions; do
5022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025     break 2
5026   fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5034 if test -n "$ac_ct_OBJDUMP"; then
5035   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5036 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042   if test "x$ac_ct_OBJDUMP" = x; then
5043     OBJDUMP="false"
5044   else
5045     case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet.  If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&5
5050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet.  If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5053 ac_tool_warned=yes ;;
5054 esac
5055     OBJDUMP=$ac_ct_OBJDUMP
5056   fi
5057 else
5058   OBJDUMP="$ac_cv_prog_OBJDUMP"
5059 fi
5060
5061   ;;
5062
5063 esac
5064
5065 need_locks="$enable_libtool_lock"
5066
5067
5068 ac_ext=c
5069 ac_cpp='$CPP $CPPFLAGS'
5070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5075 # On Suns, sometimes $CPP names a directory.
5076 if test -n "$CPP" && test -d "$CPP"; then
5077   CPP=
5078 fi
5079 if test -z "$CPP"; then
5080   if test "${ac_cv_prog_CPP+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083       # Double quotes because CPP needs to be expanded
5084     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5085     do
5086       ac_preproc_ok=false
5087 for ac_c_preproc_warn_flag in '' yes
5088 do
5089   # Use a header file that comes with gcc, so configuring glibc
5090   # with a fresh cross-compiler works.
5091   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092   # <limits.h> exists even on freestanding compilers.
5093   # On the NeXT, cc -E runs the code through the compiler's parser,
5094   # not just through cpp. "Syntax error" is here to catch this case.
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 #ifdef __STDC__
5102 # include <limits.h>
5103 #else
5104 # include <assert.h>
5105 #endif
5106                      Syntax error
5107 _ACEOF
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5109 case "(($ac_try" in
5110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111   *) ac_try_echo=$ac_try;;
5112 esac
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115   ac_status=$?
5116   grep -v '^ *+' conftest.er1 >conftest.err
5117   rm -f conftest.er1
5118   cat conftest.err >&5
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } >/dev/null && {
5121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5122          test ! -s conftest.err
5123        }; then
5124   :
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129   # Broken: fails on valid input.
5130 continue
5131 fi
5132
5133 rm -f conftest.err conftest.$ac_ext
5134
5135   # OK, works on sane cases.  Now check whether nonexistent headers
5136   # can be detected and how.
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 #include <ac_nonexistent.h>
5144 _ACEOF
5145 if { (ac_try="$ac_cpp conftest.$ac_ext"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } >/dev/null && {
5158          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5159          test ! -s conftest.err
5160        }; then
5161   # Broken: success on invalid input.
5162 continue
5163 else
5164   echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167   # Passes both tests.
5168 ac_preproc_ok=:
5169 break
5170 fi
5171
5172 rm -f conftest.err conftest.$ac_ext
5173
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5178   break
5179 fi
5180
5181     done
5182     ac_cv_prog_CPP=$CPP
5183
5184 fi
5185   CPP=$ac_cv_prog_CPP
5186 else
5187   ac_cv_prog_CPP=$CPP
5188 fi
5189 { echo "$as_me:$LINENO: result: $CPP" >&5
5190 echo "${ECHO_T}$CPP" >&6; }
5191 ac_preproc_ok=false
5192 for ac_c_preproc_warn_flag in '' yes
5193 do
5194   # Use a header file that comes with gcc, so configuring glibc
5195   # with a fresh cross-compiler works.
5196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197   # <limits.h> exists even on freestanding compilers.
5198   # On the NeXT, cc -E runs the code through the compiler's parser,
5199   # not just through cpp. "Syntax error" is here to catch this case.
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 #ifdef __STDC__
5207 # include <limits.h>
5208 #else
5209 # include <assert.h>
5210 #endif
5211                      Syntax error
5212 _ACEOF
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5214 case "(($ac_try" in
5215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216   *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } >/dev/null && {
5226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5227          test ! -s conftest.err
5228        }; then
5229   :
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234   # Broken: fails on valid input.
5235 continue
5236 fi
5237
5238 rm -f conftest.err conftest.$ac_ext
5239
5240   # OK, works on sane cases.  Now check whether nonexistent headers
5241   # can be detected and how.
5242   cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 #include <ac_nonexistent.h>
5249 _ACEOF
5250 if { (ac_try="$ac_cpp conftest.$ac_ext"
5251 case "(($ac_try" in
5252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253   *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5257   ac_status=$?
5258   grep -v '^ *+' conftest.er1 >conftest.err
5259   rm -f conftest.er1
5260   cat conftest.err >&5
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } >/dev/null && {
5263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5264          test ! -s conftest.err
5265        }; then
5266   # Broken: success on invalid input.
5267 continue
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272   # Passes both tests.
5273 ac_preproc_ok=:
5274 break
5275 fi
5276
5277 rm -f conftest.err conftest.$ac_ext
5278
5279 done
5280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5281 rm -f conftest.err conftest.$ac_ext
5282 if $ac_preproc_ok; then
5283   :
5284 else
5285   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5286 See \`config.log' for more details." >&5
5287 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5288 See \`config.log' for more details." >&2;}
5289    { (exit 1); exit 1; }; }
5290 fi
5291
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297
5298
5299 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 #include <stdlib.h>
5311 #include <stdarg.h>
5312 #include <string.h>
5313 #include <float.h>
5314
5315 int
5316 main ()
5317 {
5318
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5325 case "(($ac_try" in
5326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327   *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330   (eval "$ac_compile") 2>conftest.er1
5331   ac_status=$?
5332   grep -v '^ *+' conftest.er1 >conftest.err
5333   rm -f conftest.er1
5334   cat conftest.err >&5
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } && {
5337          test -z "$ac_c_werror_flag" ||
5338          test ! -s conftest.err
5339        } && test -s conftest.$ac_objext; then
5340   ac_cv_header_stdc=yes
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345         ac_cv_header_stdc=no
5346 fi
5347
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349
5350 if test $ac_cv_header_stdc = yes; then
5351   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5352   cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358 #include <string.h>
5359
5360 _ACEOF
5361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362   $EGREP "memchr" >/dev/null 2>&1; then
5363   :
5364 else
5365   ac_cv_header_stdc=no
5366 fi
5367 rm -f conftest*
5368
5369 fi
5370
5371 if test $ac_cv_header_stdc = yes; then
5372   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 #include <stdlib.h>
5380
5381 _ACEOF
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383   $EGREP "free" >/dev/null 2>&1; then
5384   :
5385 else
5386   ac_cv_header_stdc=no
5387 fi
5388 rm -f conftest*
5389
5390 fi
5391
5392 if test $ac_cv_header_stdc = yes; then
5393   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394   if test "$cross_compiling" = yes; then
5395   :
5396 else
5397   cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403 #include <ctype.h>
5404 #include <stdlib.h>
5405 #if ((' ' & 0x0FF) == 0x020)
5406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5408 #else
5409 # define ISLOWER(c) \
5410                    (('a' <= (c) && (c) <= 'i') \
5411                      || ('j' <= (c) && (c) <= 'r') \
5412                      || ('s' <= (c) && (c) <= 'z'))
5413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5414 #endif
5415
5416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5417 int
5418 main ()
5419 {
5420   int i;
5421   for (i = 0; i < 256; i++)
5422     if (XOR (islower (i), ISLOWER (i))
5423         || toupper (i) != TOUPPER (i))
5424       return 2;
5425   return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5430 case "(($ac_try" in
5431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432   *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435   (eval "$ac_link") 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5439   { (case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_try") 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; }; then
5448   :
5449 else
5450   echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ( exit $ac_status )
5455 ac_cv_header_stdc=no
5456 fi
5457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5458 fi
5459
5460
5461 fi
5462 fi
5463 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5464 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5465 if test $ac_cv_header_stdc = yes; then
5466
5467 cat >>confdefs.h <<\_ACEOF
5468 #define STDC_HEADERS 1
5469 _ACEOF
5470
5471 fi
5472
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5484                   inttypes.h stdint.h unistd.h
5485 do
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5490   echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492   cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498 $ac_includes_default
5499
5500 #include <$ac_header>
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_compile") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } && {
5516          test -z "$ac_c_werror_flag" ||
5517          test ! -s conftest.err
5518        } && test -s conftest.$ac_objext; then
5519   eval "$as_ac_Header=yes"
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524         eval "$as_ac_Header=no"
5525 fi
5526
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 fi
5529 ac_res=`eval echo '${'$as_ac_Header'}'`
5530                { echo "$as_me:$LINENO: result: $ac_res" >&5
5531 echo "${ECHO_T}$ac_res" >&6; }
5532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533   cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5535 _ACEOF
5536
5537 fi
5538
5539 done
5540
5541
5542
5543 for ac_header in dlfcn.h
5544 do
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 fi
5552 ac_res=`eval echo '${'$as_ac_Header'}'`
5553                { echo "$as_me:$LINENO: result: $ac_res" >&5
5554 echo "${ECHO_T}$ac_res" >&6; }
5555 else
5556   # Is the header compilable?
5557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 $ac_includes_default
5566 #include <$ac_header>
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compile") 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } && {
5582          test -z "$ac_c_werror_flag" ||
5583          test ! -s conftest.err
5584        } && test -s conftest.$ac_objext; then
5585   ac_header_compiler=yes
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590         ac_header_compiler=no
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5595 echo "${ECHO_T}$ac_header_compiler" >&6; }
5596
5597 # Is the header present?
5598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h.  */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h.  */
5606 #include <$ac_header>
5607 _ACEOF
5608 if { (ac_try="$ac_cpp conftest.$ac_ext"
5609 case "(($ac_try" in
5610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611   *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5615   ac_status=$?
5616   grep -v '^ *+' conftest.er1 >conftest.err
5617   rm -f conftest.er1
5618   cat conftest.err >&5
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } >/dev/null && {
5621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5622          test ! -s conftest.err
5623        }; then
5624   ac_header_preproc=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629   ac_header_preproc=no
5630 fi
5631
5632 rm -f conftest.err conftest.$ac_ext
5633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5634 echo "${ECHO_T}$ac_header_preproc" >&6; }
5635
5636 # So?  What about this header?
5637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5638   yes:no: )
5639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5643     ac_header_preproc=yes
5644     ;;
5645   no:yes:* )
5646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5658     ( cat <<\_ASBOX
5659 ## -------------------------------------------------- ##
5660 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5661 ## -------------------------------------------------- ##
5662 _ASBOX
5663      ) | sed "s/^/$as_me: WARNING:     /" >&2
5664     ;;
5665 esac
5666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   eval "$as_ac_Header=\$ac_header_preproc"
5672 fi
5673 ac_res=`eval echo '${'$as_ac_Header'}'`
5674                { echo "$as_me:$LINENO: result: $ac_res" >&5
5675 echo "${ECHO_T}$ac_res" >&6; }
5676
5677 fi
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679   cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 _ACEOF
5682
5683 fi
5684
5685 done
5686
5687 ac_ext=cpp
5688 ac_cpp='$CXXCPP $CPPFLAGS'
5689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692 if test -z "$CXX"; then
5693   if test -n "$CCC"; then
5694     CXX=$CCC
5695   else
5696     if test -n "$ac_tool_prefix"; then
5697   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5698   do
5699     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703 if test "${ac_cv_prog_CXX+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   if test -n "$CXX"; then
5707   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714   for ac_exec_ext in '' $ac_executable_extensions; do
5715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 CXX=$ac_cv_prog_CXX
5727 if test -n "$CXX"; then
5728   { echo "$as_me:$LINENO: result: $CXX" >&5
5729 echo "${ECHO_T}$CXX" >&6; }
5730 else
5731   { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5733 fi
5734
5735
5736     test -n "$CXX" && break
5737   done
5738 fi
5739 if test -z "$CXX"; then
5740   ac_ct_CXX=$CXX
5741   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5742 do
5743   # Extract the first word of "$ac_prog", so it can be a program name with args.
5744 set dummy $ac_prog; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -n "$ac_ct_CXX"; then
5751   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_prog_ac_ct_CXX="$ac_prog"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5771 if test -n "$ac_ct_CXX"; then
5772   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5773 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5777 fi
5778
5779
5780   test -n "$ac_ct_CXX" && break
5781 done
5782
5783   if test "x$ac_ct_CXX" = x; then
5784     CXX="g++"
5785   else
5786     case $cross_compiling:$ac_tool_warned in
5787 yes:)
5788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5789 whose name does not start with the host triplet.  If you think this
5790 configuration is useful to you, please write to autoconf@gnu.org." >&5
5791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5792 whose name does not start with the host triplet.  If you think this
5793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5794 ac_tool_warned=yes ;;
5795 esac
5796     CXX=$ac_ct_CXX
5797   fi
5798 fi
5799
5800   fi
5801 fi
5802 # Provide some information about the compiler.
5803 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5804 ac_compiler=`set X $ac_compile; echo $2`
5805 { (ac_try="$ac_compiler --version >&5"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811   (eval "$ac_compiler --version >&5") 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }
5815 { (ac_try="$ac_compiler -v >&5"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compiler -v >&5") 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }
5825 { (ac_try="$ac_compiler -V >&5"
5826 case "(($ac_try" in
5827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828   *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831   (eval "$ac_compiler -V >&5") 2>&5
5832   ac_status=$?
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); }
5835
5836 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5837 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5838 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847
5848 int
5849 main ()
5850 {
5851 #ifndef __GNUC__
5852        choke me
5853 #endif
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_compile") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } && {
5873          test -z "$ac_cxx_werror_flag" ||
5874          test ! -s conftest.err
5875        } && test -s conftest.$ac_objext; then
5876   ac_compiler_gnu=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881         ac_compiler_gnu=no
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5886
5887 fi
5888 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5889 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5890 GXX=`test $ac_compiler_gnu = yes && echo yes`
5891 ac_test_CXXFLAGS=${CXXFLAGS+set}
5892 ac_save_CXXFLAGS=$CXXFLAGS
5893 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5894 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_cxx_g+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5899    ac_cxx_werror_flag=yes
5900    ac_cv_prog_cxx_g=no
5901    CXXFLAGS="-g"
5902    cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908
5909 int
5910 main ()
5911 {
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5919 case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924   (eval "$ac_compile") 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } && {
5931          test -z "$ac_cxx_werror_flag" ||
5932          test ! -s conftest.err
5933        } && test -s conftest.$ac_objext; then
5934   ac_cv_prog_cxx_g=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939         CXXFLAGS=""
5940       cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h.  */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h.  */
5946
5947 int
5948 main ()
5949 {
5950
5951   ;
5952   return 0;
5953 }
5954 _ACEOF
5955 rm -f conftest.$ac_objext
5956 if { (ac_try="$ac_compile"
5957 case "(($ac_try" in
5958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959   *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962   (eval "$ac_compile") 2>conftest.er1
5963   ac_status=$?
5964   grep -v '^ *+' conftest.er1 >conftest.err
5965   rm -f conftest.er1
5966   cat conftest.err >&5
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); } && {
5969          test -z "$ac_cxx_werror_flag" ||
5970          test ! -s conftest.err
5971        } && test -s conftest.$ac_objext; then
5972   :
5973 else
5974   echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5978          CXXFLAGS="-g"
5979          cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985
5986 int
5987 main ()
5988 {
5989
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5996 case "(($ac_try" in
5997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998   *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001   (eval "$ac_compile") 2>conftest.er1
6002   ac_status=$?
6003   grep -v '^ *+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } && {
6008          test -z "$ac_cxx_werror_flag" ||
6009          test ! -s conftest.err
6010        } && test -s conftest.$ac_objext; then
6011   ac_cv_prog_cxx_g=yes
6012 else
6013   echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 fi
6021
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6027 fi
6028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6029 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6030 if test "$ac_test_CXXFLAGS" = set; then
6031   CXXFLAGS=$ac_save_CXXFLAGS
6032 elif test $ac_cv_prog_cxx_g = yes; then
6033   if test "$GXX" = yes; then
6034     CXXFLAGS="-g -O2"
6035   else
6036     CXXFLAGS="-g"
6037   fi
6038 else
6039   if test "$GXX" = yes; then
6040     CXXFLAGS="-O2"
6041   else
6042     CXXFLAGS=
6043   fi
6044 fi
6045 ac_ext=cpp
6046 ac_cpp='$CXXCPP $CPPFLAGS'
6047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6050
6051 depcc="$CXX"  am_compiler_list=
6052
6053 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6054 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6055 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6059   # We make a subdir and do the tests there.  Otherwise we can end up
6060   # making bogus files that we don't know about and never remove.  For
6061   # instance it was reported that on HP-UX the gcc test will end up
6062   # making a dummy file named `D' -- because `-MD' means `put the output
6063   # in D'.
6064   mkdir conftest.dir
6065   # Copy depcomp to subdir because otherwise we won't find it if we're
6066   # using a relative directory.
6067   cp "$am_depcomp" conftest.dir
6068   cd conftest.dir
6069   # We will build objects and dependencies in a subdirectory because
6070   # it helps to detect inapplicable dependency modes.  For instance
6071   # both Tru64's cc and ICC support -MD to output dependencies as a
6072   # side effect of compilation, but ICC will put the dependencies in
6073   # the current directory while Tru64 will put them in the object
6074   # directory.
6075   mkdir sub
6076
6077   am_cv_CXX_dependencies_compiler_type=none
6078   if test "$am_compiler_list" = ""; then
6079      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6080   fi
6081   for depmode in $am_compiler_list; do
6082     # Setup a source with many dependencies, because some compilers
6083     # like to wrap large dependency lists on column 80 (with \), and
6084     # we should not choose a depcomp mode which is confused by this.
6085     #
6086     # We need to recreate these files for each test, as the compiler may
6087     # overwrite some of them when testing with obscure command lines.
6088     # This happens at least with the AIX C compiler.
6089     : > sub/conftest.c
6090     for i in 1 2 3 4 5 6; do
6091       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6092       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6093       # Solaris 8's {/usr,}/bin/sh.
6094       touch sub/conftst$i.h
6095     done
6096     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6097
6098     case $depmode in
6099     nosideeffect)
6100       # after this tag, mechanisms are not by side-effect, so they'll
6101       # only be used when explicitly requested
6102       if test "x$enable_dependency_tracking" = xyes; then
6103         continue
6104       else
6105         break
6106       fi
6107       ;;
6108     none) break ;;
6109     esac
6110     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6111     # mode.  It turns out that the SunPro C++ compiler does not properly
6112     # handle `-M -o', and we need to detect this.
6113     if depmode=$depmode \
6114        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6115        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6116        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6117          >/dev/null 2>conftest.err &&
6118        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6119        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6120        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6121        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6122       # icc doesn't choke on unknown options, it will just issue warnings
6123       # or remarks (even with -Werror).  So we grep stderr for any message
6124       # that says an option was ignored or not supported.
6125       # When given -MP, icc 7.0 and 7.1 complain thusly:
6126       #   icc: Command line warning: ignoring option '-M'; no argument required
6127       # The diagnosis changed in icc 8.0:
6128       #   icc: Command line remark: option '-MP' not supported
6129       if (grep 'ignoring option' conftest.err ||
6130           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6131         am_cv_CXX_dependencies_compiler_type=$depmode
6132         break
6133       fi
6134     fi
6135   done
6136
6137   cd ..
6138   rm -rf conftest.dir
6139 else
6140   am_cv_CXX_dependencies_compiler_type=none
6141 fi
6142
6143 fi
6144 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6145 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6146 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6147
6148  if
6149   test "x$enable_dependency_tracking" != xno \
6150   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6151   am__fastdepCXX_TRUE=
6152   am__fastdepCXX_FALSE='#'
6153 else
6154   am__fastdepCXX_TRUE='#'
6155   am__fastdepCXX_FALSE=
6156 fi
6157
6158
6159
6160
6161 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6162     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6163     (test "X$CXX" != "Xg++"))) ; then
6164   ac_ext=cpp
6165 ac_cpp='$CXXCPP $CPPFLAGS'
6166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6169 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6170 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6171 if test -z "$CXXCPP"; then
6172   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175       # Double quotes because CXXCPP needs to be expanded
6176     for CXXCPP in "$CXX -E" "/lib/cpp"
6177     do
6178       ac_preproc_ok=false
6179 for ac_cxx_preproc_warn_flag in '' yes
6180 do
6181   # Use a header file that comes with gcc, so configuring glibc
6182   # with a fresh cross-compiler works.
6183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184   # <limits.h> exists even on freestanding compilers.
6185   # On the NeXT, cc -E runs the code through the compiler's parser,
6186   # not just through cpp. "Syntax error" is here to catch this case.
6187   cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6198                      Syntax error
6199 _ACEOF
6200 if { (ac_try="$ac_cpp conftest.$ac_ext"
6201 case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } >/dev/null && {
6213          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6214          test ! -s conftest.err
6215        }; then
6216   :
6217 else
6218   echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221   # Broken: fails on valid input.
6222 continue
6223 fi
6224
6225 rm -f conftest.err conftest.$ac_ext
6226
6227   # OK, works on sane cases.  Now check whether nonexistent headers
6228   # can be detected and how.
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #include <ac_nonexistent.h>
6236 _ACEOF
6237 if { (ac_try="$ac_cpp conftest.$ac_ext"
6238 case "(($ac_try" in
6239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240   *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } >/dev/null && {
6250          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6251          test ! -s conftest.err
6252        }; then
6253   # Broken: success on invalid input.
6254 continue
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259   # Passes both tests.
6260 ac_preproc_ok=:
6261 break
6262 fi
6263
6264 rm -f conftest.err conftest.$ac_ext
6265
6266 done
6267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6268 rm -f conftest.err conftest.$ac_ext
6269 if $ac_preproc_ok; then
6270   break
6271 fi
6272
6273     done
6274     ac_cv_prog_CXXCPP=$CXXCPP
6275
6276 fi
6277   CXXCPP=$ac_cv_prog_CXXCPP
6278 else
6279   ac_cv_prog_CXXCPP=$CXXCPP
6280 fi
6281 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6282 echo "${ECHO_T}$CXXCPP" >&6; }
6283 ac_preproc_ok=false
6284 for ac_cxx_preproc_warn_flag in '' yes
6285 do
6286   # Use a header file that comes with gcc, so configuring glibc
6287   # with a fresh cross-compiler works.
6288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289   # <limits.h> exists even on freestanding compilers.
6290   # On the NeXT, cc -E runs the code through the compiler's parser,
6291   # not just through cpp. "Syntax error" is here to catch this case.
6292   cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298 #ifdef __STDC__
6299 # include <limits.h>
6300 #else
6301 # include <assert.h>
6302 #endif
6303                      Syntax error
6304 _ACEOF
6305 if { (ac_try="$ac_cpp conftest.$ac_ext"
6306 case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } >/dev/null && {
6318          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6319          test ! -s conftest.err
6320        }; then
6321   :
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326   # Broken: fails on valid input.
6327 continue
6328 fi
6329
6330 rm -f conftest.err conftest.$ac_ext
6331
6332   # OK, works on sane cases.  Now check whether nonexistent headers
6333   # can be detected and how.
6334   cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 #include <ac_nonexistent.h>
6341 _ACEOF
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6343 case "(($ac_try" in
6344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345   *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } >/dev/null && {
6355          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6356          test ! -s conftest.err
6357        }; then
6358   # Broken: success on invalid input.
6359 continue
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364   # Passes both tests.
6365 ac_preproc_ok=:
6366 break
6367 fi
6368
6369 rm -f conftest.err conftest.$ac_ext
6370
6371 done
6372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6373 rm -f conftest.err conftest.$ac_ext
6374 if $ac_preproc_ok; then
6375   :
6376 else
6377   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6378 See \`config.log' for more details." >&5
6379 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6380 See \`config.log' for more details." >&2;}
6381    { (exit 1); exit 1; }; }
6382 fi
6383
6384 ac_ext=cpp
6385 ac_cpp='$CXXCPP $CPPFLAGS'
6386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6389
6390 fi
6391
6392
6393
6394
6395
6396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6397
6398 # find the maximum length of command line arguments
6399 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404     i=0
6405   teststring="ABCD"
6406
6407   case $build_os in
6408   msdosdjgpp*)
6409     # On DJGPP, this test can blow up pretty badly due to problems in libc
6410     # (any single argument exceeding 2000 bytes causes a buffer overrun
6411     # during glob expansion).  Even if it were fixed, the result of this
6412     # check would be larger than it should be.
6413     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6414     ;;
6415
6416   gnu*)
6417     # Under GNU Hurd, this test is not required because there is
6418     # no limit to the length of command line arguments.
6419     # Libtool will interpret -1 as no limit whatsoever
6420     lt_cv_sys_max_cmd_len=-1;
6421     ;;
6422
6423   cygwin* | mingw*)
6424     # On Win9x/ME, this test blows up -- it succeeds, but takes
6425     # about 5 minutes as the teststring grows exponentially.
6426     # Worse, since 9x/ME are not pre-emptively multitasking,
6427     # you end up with a "frozen" computer, even though with patience
6428     # the test eventually succeeds (with a max line length of 256k).
6429     # Instead, let's just punt: use the minimum linelength reported by
6430     # all of the supported platforms: 8192 (on NT/2K/XP).
6431     lt_cv_sys_max_cmd_len=8192;
6432     ;;
6433
6434   amigaos*)
6435     # On AmigaOS with pdksh, this test takes hours, literally.
6436     # So we just punt and use a minimum line length of 8192.
6437     lt_cv_sys_max_cmd_len=8192;
6438     ;;
6439
6440   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6441     # This has been around since 386BSD, at least.  Likely further.
6442     if test -x /sbin/sysctl; then
6443       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6444     elif test -x /usr/sbin/sysctl; then
6445       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6446     else
6447       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6448     fi
6449     # And add a safety zone
6450     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6451     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6452     ;;
6453
6454   interix*)
6455     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6456     lt_cv_sys_max_cmd_len=196608
6457     ;;
6458
6459   osf*)
6460     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6461     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6462     # nice to cause kernel panics so lets avoid the loop below.
6463     # First set a reasonable default.
6464     lt_cv_sys_max_cmd_len=16384
6465     #
6466     if test -x /sbin/sysconfig; then
6467       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6468         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6469       esac
6470     fi
6471     ;;
6472   sco3.2v5*)
6473     lt_cv_sys_max_cmd_len=102400
6474     ;;
6475   sysv5* | sco5v6* | sysv4.2uw2*)
6476     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6477     if test -n "$kargmax"; then
6478       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6479     else
6480       lt_cv_sys_max_cmd_len=32768
6481     fi
6482     ;;
6483   *)
6484     # If test is not a shell built-in, we'll probably end up computing a
6485     # maximum length that is only half of the actual maximum length, but
6486     # we can't tell.
6487     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6488     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6489                = "XX$teststring") >/dev/null 2>&1 &&
6490             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6491             lt_cv_sys_max_cmd_len=$new_result &&
6492             test $i != 17 # 1/2 MB should be enough
6493     do
6494       i=`expr $i + 1`
6495       teststring=$teststring$teststring
6496     done
6497     teststring=
6498     # Add a significant safety factor because C++ compilers can tack on massive
6499     # amounts of additional arguments before passing them to the linker.
6500     # It appears as though 1/2 is a usable value.
6501     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6502     ;;
6503   esac
6504
6505 fi
6506
6507 if test -n $lt_cv_sys_max_cmd_len ; then
6508   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6509 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6510 else
6511   { echo "$as_me:$LINENO: result: none" >&5
6512 echo "${ECHO_T}none" >&6; }
6513 fi
6514
6515
6516
6517
6518 # Check for command to grab the raw symbol name followed by C symbol from nm.
6519 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6520 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6521 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524
6525 # These are sane defaults that work on at least a few old systems.
6526 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6527
6528 # Character class describing NM global symbol codes.
6529 symcode='[BCDEGRST]'
6530
6531 # Regexp to match symbols that can be accessed directly from C.
6532 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6533
6534 # Transform an extracted symbol line into a proper C declaration
6535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6536
6537 # Transform an extracted symbol line into symbol name and symbol address
6538 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'"
6539
6540 # Define system-specific variables.
6541 case $host_os in
6542 aix*)
6543   symcode='[BCDT]'
6544   ;;
6545 cygwin* | mingw* | pw32*)
6546   symcode='[ABCDGISTW]'
6547   ;;
6548 hpux*) # Its linker distinguishes data from code symbols
6549   if test "$host_cpu" = ia64; then
6550     symcode='[ABCDEGRST]'
6551   fi
6552   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6553   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6554   ;;
6555 linux* | k*bsd*-gnu)
6556   if test "$host_cpu" = ia64; then
6557     symcode='[ABCDGIRSTW]'
6558     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6559     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'"
6560   fi
6561   ;;
6562 irix* | nonstopux*)
6563   symcode='[BCDEGRST]'
6564   ;;
6565 osf*)
6566   symcode='[BCDEGQRST]'
6567   ;;
6568 solaris*)
6569   symcode='[BDRT]'
6570   ;;
6571 sco3.2v5*)
6572   symcode='[DT]'
6573   ;;
6574 sysv4.2uw2*)
6575   symcode='[DT]'
6576   ;;
6577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6578   symcode='[ABDT]'
6579   ;;
6580 sysv4)
6581   symcode='[DFNSTU]'
6582   ;;
6583 esac
6584
6585 # Handle CRLF in mingw tool chain
6586 opt_cr=
6587 case $build_os in
6588 mingw*)
6589   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6590   ;;
6591 esac
6592
6593 # If we're using GNU nm, then use its standard symbol codes.
6594 case `$NM -V 2>&1` in
6595 *GNU* | *'with BFD'*)
6596   symcode='[ABCDGIRSTW]' ;;
6597 esac
6598
6599 # Try without a prefix undercore, then with it.
6600 for ac_symprfx in "" "_"; do
6601
6602   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6603   symxfrm="\\1 $ac_symprfx\\2 \\2"
6604
6605   # Write the raw and C identifiers.
6606   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6607
6608   # Check to see that the pipe works correctly.
6609   pipe_works=no
6610
6611   rm -f conftest*
6612   cat > conftest.$ac_ext <<EOF
6613 #ifdef __cplusplus
6614 extern "C" {
6615 #endif
6616 char nm_test_var;
6617 void nm_test_func(){}
6618 #ifdef __cplusplus
6619 }
6620 #endif
6621 int main(){nm_test_var='a';nm_test_func();return(0);}
6622 EOF
6623
6624   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625   (eval $ac_compile) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); }; then
6629     # Now try to grab the symbols.
6630     nlist=conftest.nm
6631     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6632   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } && test -s "$nlist"; then
6636       # Try sorting and uniquifying the output.
6637       if sort "$nlist" | uniq > "$nlist"T; then
6638         mv -f "$nlist"T "$nlist"
6639       else
6640         rm -f "$nlist"T
6641       fi
6642
6643       # Make sure that we snagged all the symbols we need.
6644       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6645         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6646           cat <<EOF > conftest.$ac_ext
6647 #ifdef __cplusplus
6648 extern "C" {
6649 #endif
6650
6651 EOF
6652           # Now generate the symbol file.
6653           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6654
6655           cat <<EOF >> conftest.$ac_ext
6656 #if defined (__STDC__) && __STDC__
6657 # define lt_ptr_t void *
6658 #else
6659 # define lt_ptr_t char *
6660 # define const
6661 #endif
6662
6663 /* The mapping between symbol names and symbols. */
6664 const struct {
6665   const char *name;
6666   lt_ptr_t address;
6667 }
6668 lt_preloaded_symbols[] =
6669 {
6670 EOF
6671           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6672           cat <<\EOF >> conftest.$ac_ext
6673   {0, (lt_ptr_t) 0}
6674 };
6675
6676 #ifdef __cplusplus
6677 }
6678 #endif
6679 EOF
6680           # Now try linking the two files.
6681           mv conftest.$ac_objext conftstm.$ac_objext
6682           lt_save_LIBS="$LIBS"
6683           lt_save_CFLAGS="$CFLAGS"
6684           LIBS="conftstm.$ac_objext"
6685           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6686           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687   (eval $ac_link) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6691             pipe_works=yes
6692           fi
6693           LIBS="$lt_save_LIBS"
6694           CFLAGS="$lt_save_CFLAGS"
6695         else
6696           echo "cannot find nm_test_func in $nlist" >&5
6697         fi
6698       else
6699         echo "cannot find nm_test_var in $nlist" >&5
6700       fi
6701     else
6702       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6703     fi
6704   else
6705     echo "$progname: failed program was:" >&5
6706     cat conftest.$ac_ext >&5
6707   fi
6708   rm -f conftest* conftst*
6709
6710   # Do not use the global_symbol_pipe unless it works.
6711   if test "$pipe_works" = yes; then
6712     break
6713   else
6714     lt_cv_sys_global_symbol_pipe=
6715   fi
6716 done
6717
6718 fi
6719
6720 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6721   lt_cv_sys_global_symbol_to_cdecl=
6722 fi
6723 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6724   { echo "$as_me:$LINENO: result: failed" >&5
6725 echo "${ECHO_T}failed" >&6; }
6726 else
6727   { echo "$as_me:$LINENO: result: ok" >&5
6728 echo "${ECHO_T}ok" >&6; }
6729 fi
6730
6731 { echo "$as_me:$LINENO: checking for objdir" >&5
6732 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6733 if test "${lt_cv_objdir+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   rm -f .libs 2>/dev/null
6737 mkdir .libs 2>/dev/null
6738 if test -d .libs; then
6739   lt_cv_objdir=.libs
6740 else
6741   # MS-DOS does not allow filenames that begin with a dot.
6742   lt_cv_objdir=_libs
6743 fi
6744 rmdir .libs 2>/dev/null
6745 fi
6746 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6747 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6748 objdir=$lt_cv_objdir
6749
6750
6751
6752
6753
6754 case $host_os in
6755 aix3*)
6756   # AIX sometimes has problems with the GCC collect2 program.  For some
6757   # reason, if we set the COLLECT_NAMES environment variable, the problems
6758   # vanish in a puff of smoke.
6759   if test "X${COLLECT_NAMES+set}" != Xset; then
6760     COLLECT_NAMES=
6761     export COLLECT_NAMES
6762   fi
6763   ;;
6764 esac
6765
6766 # Sed substitution that helps us do robust quoting.  It backslashifies
6767 # metacharacters that are still active within double-quoted strings.
6768 Xsed='sed -e 1s/^X//'
6769 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6770
6771 # Same as above, but do not quote variable references.
6772 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6773
6774 # Sed substitution to delay expansion of an escaped shell variable in a
6775 # double_quote_subst'ed string.
6776 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6777
6778 # Sed substitution to avoid accidental globbing in evaled expressions
6779 no_glob_subst='s/\*/\\\*/g'
6780
6781 # Constants:
6782 rm="rm -f"
6783
6784 # Global variables:
6785 default_ofile=libtool
6786 can_build_shared=yes
6787
6788 # All known linkers require a `.a' archive for static linking (except MSVC,
6789 # which needs '.lib').
6790 libext=a
6791 ltmain="$ac_aux_dir/ltmain.sh"
6792 ofile="$default_ofile"
6793 with_gnu_ld="$lt_cv_prog_gnu_ld"
6794
6795 if test -n "$ac_tool_prefix"; then
6796   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ar; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_AR+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   if test -n "$AR"; then
6804   ac_cv_prog_AR="$AR" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_prog_AR="${ac_tool_prefix}ar"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 AR=$ac_cv_prog_AR
6824 if test -n "$AR"; then
6825   { echo "$as_me:$LINENO: result: $AR" >&5
6826 echo "${ECHO_T}$AR" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_AR"; then
6835   ac_ct_AR=$AR
6836   # Extract the first word of "ar", so it can be a program name with args.
6837 set dummy ar; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843   if test -n "$ac_ct_AR"; then
6844   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851   for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_ac_ct_AR="ar"
6854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6864 if test -n "$ac_ct_AR"; then
6865   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6866 echo "${ECHO_T}$ac_ct_AR" >&6; }
6867 else
6868   { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6870 fi
6871
6872   if test "x$ac_ct_AR" = x; then
6873     AR="false"
6874   else
6875     case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet.  If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&5
6880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet.  If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885     AR=$ac_ct_AR
6886   fi
6887 else
6888   AR="$ac_cv_prog_AR"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_RANLIB+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   if test -n "$RANLIB"; then
6900   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907   for ac_exec_ext in '' $ac_executable_extensions; do
6908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 RANLIB=$ac_cv_prog_RANLIB
6920 if test -n "$RANLIB"; then
6921   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6922 echo "${ECHO_T}$RANLIB" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_RANLIB"; then
6931   ac_ct_RANLIB=$RANLIB
6932   # Extract the first word of "ranlib", so it can be a program name with args.
6933 set dummy ranlib; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   if test -n "$ac_ct_RANLIB"; then
6940   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947   for ac_exec_ext in '' $ac_executable_extensions; do
6948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949     ac_cv_prog_ac_ct_RANLIB="ranlib"
6950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6960 if test -n "$ac_ct_RANLIB"; then
6961   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6962 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6963 else
6964   { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6966 fi
6967
6968   if test "x$ac_ct_RANLIB" = x; then
6969     RANLIB=":"
6970   else
6971     case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet.  If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&5
6976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6977 whose name does not start with the host triplet.  If you think this
6978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981     RANLIB=$ac_ct_RANLIB
6982   fi
6983 else
6984   RANLIB="$ac_cv_prog_RANLIB"
6985 fi
6986
6987 if test -n "$ac_tool_prefix"; then
6988   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}strip; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_STRIP+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test -n "$STRIP"; then
6996   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 STRIP=$ac_cv_prog_STRIP
7016 if test -n "$STRIP"; then
7017   { echo "$as_me:$LINENO: result: $STRIP" >&5
7018 echo "${ECHO_T}$STRIP" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_STRIP"; then
7027   ac_ct_STRIP=$STRIP
7028   # Extract the first word of "strip", so it can be a program name with args.
7029 set dummy strip; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   if test -n "$ac_ct_STRIP"; then
7036   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_prog_ac_ct_STRIP="strip"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7056 if test -n "$ac_ct_STRIP"; then
7057   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7058 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064   if test "x$ac_ct_STRIP" = x; then
7065     STRIP=":"
7066   else
7067     case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet.  If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet.  If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077     STRIP=$ac_ct_STRIP
7078   fi
7079 else
7080   STRIP="$ac_cv_prog_STRIP"
7081 fi
7082
7083
7084 old_CC="$CC"
7085 old_CFLAGS="$CFLAGS"
7086
7087 # Set sane defaults for various variables
7088 test -z "$AR" && AR=ar
7089 test -z "$AR_FLAGS" && AR_FLAGS=cru
7090 test -z "$AS" && AS=as
7091 test -z "$CC" && CC=cc
7092 test -z "$LTCC" && LTCC=$CC
7093 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7094 test -z "$DLLTOOL" && DLLTOOL=dlltool
7095 test -z "$LD" && LD=ld
7096 test -z "$LN_S" && LN_S="ln -s"
7097 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7098 test -z "$NM" && NM=nm
7099 test -z "$SED" && SED=sed
7100 test -z "$OBJDUMP" && OBJDUMP=objdump
7101 test -z "$RANLIB" && RANLIB=:
7102 test -z "$STRIP" && STRIP=:
7103 test -z "$ac_objext" && ac_objext=o
7104
7105 # Determine commands to create old-style static archives.
7106 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7107 old_postinstall_cmds='chmod 644 $oldlib'
7108 old_postuninstall_cmds=
7109
7110 if test -n "$RANLIB"; then
7111   case $host_os in
7112   openbsd*)
7113     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7114     ;;
7115   *)
7116     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7117     ;;
7118   esac
7119   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7120 fi
7121
7122 for cc_temp in $compiler""; do
7123   case $cc_temp in
7124     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7125     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7126     \-*) ;;
7127     *) break;;
7128   esac
7129 done
7130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7131
7132
7133 # Only perform the check for file, if the check method requires it
7134 case $deplibs_check_method in
7135 file_magic*)
7136   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7137     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7138 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7139 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   case $MAGIC_CMD in
7143 [\\/*] |  ?:[\\/]*)
7144   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7145   ;;
7146 *)
7147   lt_save_MAGIC_CMD="$MAGIC_CMD"
7148   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150   for ac_dir in $ac_dummy; do
7151     IFS="$lt_save_ifs"
7152     test -z "$ac_dir" && ac_dir=.
7153     if test -f $ac_dir/${ac_tool_prefix}file; then
7154       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7155       if test -n "$file_magic_test_file"; then
7156         case $deplibs_check_method in
7157         "file_magic "*)
7158           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7159           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161             $EGREP "$file_magic_regex" > /dev/null; then
7162             :
7163           else
7164             cat <<EOF 1>&2
7165
7166 *** Warning: the command libtool uses to detect shared libraries,
7167 *** $file_magic_cmd, produces output that libtool cannot recognize.
7168 *** The result is that libtool may fail to recognize shared libraries
7169 *** as such.  This will affect the creation of libtool libraries that
7170 *** depend on shared libraries, but programs linked with such libtool
7171 *** libraries will work regardless of this problem.  Nevertheless, you
7172 *** may want to report the problem to your system manager and/or to
7173 *** bug-libtool@gnu.org
7174
7175 EOF
7176           fi ;;
7177         esac
7178       fi
7179       break
7180     fi
7181   done
7182   IFS="$lt_save_ifs"
7183   MAGIC_CMD="$lt_save_MAGIC_CMD"
7184   ;;
7185 esac
7186 fi
7187
7188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189 if test -n "$MAGIC_CMD"; then
7190   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7191 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197 if test -z "$lt_cv_path_MAGIC_CMD"; then
7198   if test -n "$ac_tool_prefix"; then
7199     { echo "$as_me:$LINENO: checking for file" >&5
7200 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   case $MAGIC_CMD in
7205 [\\/*] |  ?:[\\/]*)
7206   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7207   ;;
7208 *)
7209   lt_save_MAGIC_CMD="$MAGIC_CMD"
7210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7212   for ac_dir in $ac_dummy; do
7213     IFS="$lt_save_ifs"
7214     test -z "$ac_dir" && ac_dir=.
7215     if test -f $ac_dir/file; then
7216       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7217       if test -n "$file_magic_test_file"; then
7218         case $deplibs_check_method in
7219         "file_magic "*)
7220           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7223             $EGREP "$file_magic_regex" > /dev/null; then
7224             :
7225           else
7226             cat <<EOF 1>&2
7227
7228 *** Warning: the command libtool uses to detect shared libraries,
7229 *** $file_magic_cmd, produces output that libtool cannot recognize.
7230 *** The result is that libtool may fail to recognize shared libraries
7231 *** as such.  This will affect the creation of libtool libraries that
7232 *** depend on shared libraries, but programs linked with such libtool
7233 *** libraries will work regardless of this problem.  Nevertheless, you
7234 *** may want to report the problem to your system manager and/or to
7235 *** bug-libtool@gnu.org
7236
7237 EOF
7238           fi ;;
7239         esac
7240       fi
7241       break
7242     fi
7243   done
7244   IFS="$lt_save_ifs"
7245   MAGIC_CMD="$lt_save_MAGIC_CMD"
7246   ;;
7247 esac
7248 fi
7249
7250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251 if test -n "$MAGIC_CMD"; then
7252   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7253 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7254 else
7255   { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7257 fi
7258
7259   else
7260     MAGIC_CMD=:
7261   fi
7262 fi
7263
7264   fi
7265   ;;
7266 esac
7267
7268 enable_dlopen=no
7269 enable_win32_dll=yes
7270
7271 # Check whether --enable-libtool-lock was given.
7272 if test "${enable_libtool_lock+set}" = set; then
7273   enableval=$enable_libtool_lock;
7274 fi
7275
7276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7277
7278
7279 # Check whether --with-pic was given.
7280 if test "${with_pic+set}" = set; then
7281   withval=$with_pic; pic_mode="$withval"
7282 else
7283   pic_mode=default
7284 fi
7285
7286 test -z "$pic_mode" && pic_mode=default
7287
7288 # Use C for the default configuration in the libtool script
7289 tagname=
7290 lt_save_CC="$CC"
7291 ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297
7298 # Source file extension for C test sources.
7299 ac_ext=c
7300
7301 # Object file extension for compiled C test sources.
7302 objext=o
7303 objext=$objext
7304
7305 # Code to be used in simple compile tests
7306 lt_simple_compile_test_code="int some_variable = 0;\n"
7307
7308 # Code to be used in simple link tests
7309 lt_simple_link_test_code='int main(){return(0);}\n'
7310
7311
7312 # If no C compiler was specified, use CC.
7313 LTCC=${LTCC-"$CC"}
7314
7315 # If no C compiler flags were specified, use CFLAGS.
7316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7317
7318 # Allow CC to be a program name with arguments.
7319 compiler=$CC
7320
7321
7322 # save warnings/boilerplate of simple test code
7323 ac_outfile=conftest.$ac_objext
7324 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7326 _lt_compiler_boilerplate=`cat conftest.err`
7327 $rm conftest*
7328
7329 ac_outfile=conftest.$ac_objext
7330 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7332 _lt_linker_boilerplate=`cat conftest.err`
7333 $rm conftest*
7334
7335
7336
7337 lt_prog_compiler_no_builtin_flag=
7338
7339 if test "$GCC" = yes; then
7340   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7341
7342
7343 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7344 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7345 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   lt_cv_prog_compiler_rtti_exceptions=no
7349   ac_outfile=conftest.$ac_objext
7350    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7351    lt_compiler_flag="-fno-rtti -fno-exceptions"
7352    # Insert the option either (1) after the last *FLAGS variable, or
7353    # (2) before a word containing "conftest.", or (3) at the end.
7354    # Note that $ac_compile itself does not contain backslashes and begins
7355    # with a dollar sign (not a hyphen), so the echo should work correctly.
7356    # The option is referenced via a variable to avoid confusing sed.
7357    lt_compile=`echo "$ac_compile" | $SED \
7358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7360    -e 's:$: $lt_compiler_flag:'`
7361    (eval echo "\"\$as_me:7361: $lt_compile\"" >&5)
7362    (eval "$lt_compile" 2>conftest.err)
7363    ac_status=$?
7364    cat conftest.err >&5
7365    echo "$as_me:7365: \$? = $ac_status" >&5
7366    if (exit $ac_status) && test -s "$ac_outfile"; then
7367      # The compiler can only warn and ignore the option if not recognized
7368      # So say no if there are warnings other than the usual output.
7369      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7372        lt_cv_prog_compiler_rtti_exceptions=yes
7373      fi
7374    fi
7375    $rm conftest*
7376
7377 fi
7378 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7379 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7380
7381 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7382     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7383 else
7384     :
7385 fi
7386
7387 fi
7388
7389 lt_prog_compiler_wl=
7390 lt_prog_compiler_pic=
7391 lt_prog_compiler_static=
7392
7393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7395
7396   if test "$GCC" = yes; then
7397     lt_prog_compiler_wl='-Wl,'
7398     lt_prog_compiler_static='-static'
7399
7400     case $host_os in
7401       aix*)
7402       # All AIX code is PIC.
7403       if test "$host_cpu" = ia64; then
7404         # AIX 5 now supports IA64 processor
7405         lt_prog_compiler_static='-Bstatic'
7406       fi
7407       ;;
7408
7409     amigaos*)
7410       # FIXME: we need at least 68020 code to build shared libraries, but
7411       # adding the `-m68020' flag to GCC prevents building anything better,
7412       # like `-m68040'.
7413       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7414       ;;
7415
7416     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7417       # PIC is the default for these OSes.
7418       ;;
7419
7420     mingw* | pw32* | os2*)
7421       # This hack is so that the source file can tell whether it is being
7422       # built for inclusion in a dll (and should export symbols for example).
7423       lt_prog_compiler_pic='-DDLL_EXPORT'
7424       ;;
7425
7426     darwin* | rhapsody*)
7427       # PIC is the default on this platform
7428       # Common symbols not allowed in MH_DYLIB files
7429       lt_prog_compiler_pic='-fno-common'
7430       ;;
7431
7432     interix3*)
7433       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7434       # Instead, we relocate shared libraries at runtime.
7435       ;;
7436
7437     msdosdjgpp*)
7438       # Just because we use GCC doesn't mean we suddenly get shared libraries
7439       # on systems that don't support them.
7440       lt_prog_compiler_can_build_shared=no
7441       enable_shared=no
7442       ;;
7443
7444     sysv4*MP*)
7445       if test -d /usr/nec; then
7446         lt_prog_compiler_pic=-Kconform_pic
7447       fi
7448       ;;
7449
7450     hpux*)
7451       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7452       # not for PA HP-UX.
7453       case $host_cpu in
7454       hppa*64*|ia64*)
7455         # +Z the default
7456         ;;
7457       *)
7458         lt_prog_compiler_pic='-fPIC'
7459         ;;
7460       esac
7461       ;;
7462
7463     *)
7464       lt_prog_compiler_pic='-fPIC'
7465       ;;
7466     esac
7467   else
7468     # PORTME Check for flag to pass linker flags through the system compiler.
7469     case $host_os in
7470     aix*)
7471       lt_prog_compiler_wl='-Wl,'
7472       if test "$host_cpu" = ia64; then
7473         # AIX 5 now supports IA64 processor
7474         lt_prog_compiler_static='-Bstatic'
7475       else
7476         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7477       fi
7478       ;;
7479       darwin*)
7480         # PIC is the default on this platform
7481         # Common symbols not allowed in MH_DYLIB files
7482        case $cc_basename in
7483          xlc*)
7484          lt_prog_compiler_pic='-qnocommon'
7485          lt_prog_compiler_wl='-Wl,'
7486          ;;
7487        esac
7488        ;;
7489
7490     mingw* | pw32* | os2*)
7491       # This hack is so that the source file can tell whether it is being
7492       # built for inclusion in a dll (and should export symbols for example).
7493       lt_prog_compiler_pic='-DDLL_EXPORT'
7494       ;;
7495
7496     hpux9* | hpux10* | hpux11*)
7497       lt_prog_compiler_wl='-Wl,'
7498       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7499       # not for PA HP-UX.
7500       case $host_cpu in
7501       hppa*64*|ia64*)
7502         # +Z the default
7503         ;;
7504       *)
7505         lt_prog_compiler_pic='+Z'
7506         ;;
7507       esac
7508       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7509       lt_prog_compiler_static='${wl}-a ${wl}archive'
7510       ;;
7511
7512     irix5* | irix6* | nonstopux*)
7513       lt_prog_compiler_wl='-Wl,'
7514       # PIC (with -KPIC) is the default.
7515       lt_prog_compiler_static='-non_shared'
7516       ;;
7517
7518     newsos6)
7519       lt_prog_compiler_pic='-KPIC'
7520       lt_prog_compiler_static='-Bstatic'
7521       ;;
7522
7523     linux* | k*bsd*-gnu)
7524       case $cc_basename in
7525       icc* | ecc*)
7526         lt_prog_compiler_wl='-Wl,'
7527         lt_prog_compiler_pic='-KPIC'
7528         lt_prog_compiler_static='-static'
7529         ;;
7530       pgcc* | pgf77* | pgf90* | pgf95*)
7531         # Portland Group compilers (*not* the Pentium gcc compiler,
7532         # which looks to be a dead project)
7533         lt_prog_compiler_wl='-Wl,'
7534         lt_prog_compiler_pic='-fpic'
7535         lt_prog_compiler_static='-Bstatic'
7536         ;;
7537       ccc*)
7538         lt_prog_compiler_wl='-Wl,'
7539         # All Alpha code is PIC.
7540         lt_prog_compiler_static='-non_shared'
7541         ;;
7542       esac
7543       ;;
7544
7545     osf3* | osf4* | osf5*)
7546       lt_prog_compiler_wl='-Wl,'
7547       # All OSF/1 code is PIC.
7548       lt_prog_compiler_static='-non_shared'
7549       ;;
7550
7551     solaris*)
7552       lt_prog_compiler_pic='-KPIC'
7553       lt_prog_compiler_static='-Bstatic'
7554       case $cc_basename in
7555       f77* | f90* | f95*)
7556         lt_prog_compiler_wl='-Qoption ld ';;
7557       *)
7558         lt_prog_compiler_wl='-Wl,';;
7559       esac
7560       ;;
7561
7562     sunos4*)
7563       lt_prog_compiler_wl='-Qoption ld '
7564       lt_prog_compiler_pic='-PIC'
7565       lt_prog_compiler_static='-Bstatic'
7566       ;;
7567
7568     sysv4 | sysv4.2uw2* | sysv4.3*)
7569       lt_prog_compiler_wl='-Wl,'
7570       lt_prog_compiler_pic='-KPIC'
7571       lt_prog_compiler_static='-Bstatic'
7572       ;;
7573
7574     sysv4*MP*)
7575       if test -d /usr/nec ;then
7576         lt_prog_compiler_pic='-Kconform_pic'
7577         lt_prog_compiler_static='-Bstatic'
7578       fi
7579       ;;
7580
7581     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7582       lt_prog_compiler_wl='-Wl,'
7583       lt_prog_compiler_pic='-KPIC'
7584       lt_prog_compiler_static='-Bstatic'
7585       ;;
7586
7587     unicos*)
7588       lt_prog_compiler_wl='-Wl,'
7589       lt_prog_compiler_can_build_shared=no
7590       ;;
7591
7592     uts4*)
7593       lt_prog_compiler_pic='-pic'
7594       lt_prog_compiler_static='-Bstatic'
7595       ;;
7596
7597     *)
7598       lt_prog_compiler_can_build_shared=no
7599       ;;
7600     esac
7601   fi
7602
7603 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7604 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7605
7606 #
7607 # Check to make sure the PIC flag actually works.
7608 #
7609 if test -n "$lt_prog_compiler_pic"; then
7610
7611 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7612 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7613 if test "${lt_prog_compiler_pic_works+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   lt_prog_compiler_pic_works=no
7617   ac_outfile=conftest.$ac_objext
7618    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7619    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7620    # Insert the option either (1) after the last *FLAGS variable, or
7621    # (2) before a word containing "conftest.", or (3) at the end.
7622    # Note that $ac_compile itself does not contain backslashes and begins
7623    # with a dollar sign (not a hyphen), so the echo should work correctly.
7624    # The option is referenced via a variable to avoid confusing sed.
7625    lt_compile=`echo "$ac_compile" | $SED \
7626    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7627    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7628    -e 's:$: $lt_compiler_flag:'`
7629    (eval echo "\"\$as_me:7629: $lt_compile\"" >&5)
7630    (eval "$lt_compile" 2>conftest.err)
7631    ac_status=$?
7632    cat conftest.err >&5
7633    echo "$as_me:7633: \$? = $ac_status" >&5
7634    if (exit $ac_status) && test -s "$ac_outfile"; then
7635      # The compiler can only warn and ignore the option if not recognized
7636      # So say no if there are warnings other than the usual output.
7637      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7638      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7639      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7640        lt_prog_compiler_pic_works=yes
7641      fi
7642    fi
7643    $rm conftest*
7644
7645 fi
7646 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7647 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7648
7649 if test x"$lt_prog_compiler_pic_works" = xyes; then
7650     case $lt_prog_compiler_pic in
7651      "" | " "*) ;;
7652      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7653      esac
7654 else
7655     lt_prog_compiler_pic=
7656      lt_prog_compiler_can_build_shared=no
7657 fi
7658
7659 fi
7660 case $host_os in
7661   # For platforms which do not support PIC, -DPIC is meaningless:
7662   *djgpp*)
7663     lt_prog_compiler_pic=
7664     ;;
7665   *)
7666     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7667     ;;
7668 esac
7669
7670 #
7671 # Check to make sure the static flag actually works.
7672 #
7673 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7674 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7675 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7676 if test "${lt_prog_compiler_static_works+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   lt_prog_compiler_static_works=no
7680    save_LDFLAGS="$LDFLAGS"
7681    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7682    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7683    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7684      # The linker can only warn and ignore the option if not recognized
7685      # So say no if there are warnings
7686      if test -s conftest.err; then
7687        # Append any errors to the config.log.
7688        cat conftest.err 1>&5
7689        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7690        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7691        if diff conftest.exp conftest.er2 >/dev/null; then
7692          lt_prog_compiler_static_works=yes
7693        fi
7694      else
7695        lt_prog_compiler_static_works=yes
7696      fi
7697    fi
7698    $rm conftest*
7699    LDFLAGS="$save_LDFLAGS"
7700
7701 fi
7702 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7703 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7704
7705 if test x"$lt_prog_compiler_static_works" = xyes; then
7706     :
7707 else
7708     lt_prog_compiler_static=
7709 fi
7710
7711
7712 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7713 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7714 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   lt_cv_prog_compiler_c_o=no
7718    $rm -r conftest 2>/dev/null
7719    mkdir conftest
7720    cd conftest
7721    mkdir out
7722    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7723
7724    lt_compiler_flag="-o out/conftest2.$ac_objext"
7725    # Insert the option either (1) after the last *FLAGS variable, or
7726    # (2) before a word containing "conftest.", or (3) at the end.
7727    # Note that $ac_compile itself does not contain backslashes and begins
7728    # with a dollar sign (not a hyphen), so the echo should work correctly.
7729    lt_compile=`echo "$ac_compile" | $SED \
7730    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7731    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7732    -e 's:$: $lt_compiler_flag:'`
7733    (eval echo "\"\$as_me:7733: $lt_compile\"" >&5)
7734    (eval "$lt_compile" 2>out/conftest.err)
7735    ac_status=$?
7736    cat out/conftest.err >&5
7737    echo "$as_me:7737: \$? = $ac_status" >&5
7738    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7739    then
7740      # The compiler can only warn and ignore the option if not recognized
7741      # So say no if there are warnings
7742      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7743      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7744      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7745        lt_cv_prog_compiler_c_o=yes
7746      fi
7747    fi
7748    chmod u+w . 2>&5
7749    $rm conftest*
7750    # SGI C++ compiler will create directory out/ii_files/ for
7751    # template instantiation
7752    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7753    $rm out/* && rmdir out
7754    cd ..
7755    rmdir conftest
7756    $rm conftest*
7757
7758 fi
7759 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7760 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7761
7762
7763 hard_links="nottested"
7764 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7765   # do not overwrite the value of need_locks provided by the user
7766   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7767 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7768   hard_links=yes
7769   $rm conftest*
7770   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7771   touch conftest.a
7772   ln conftest.a conftest.b 2>&5 || hard_links=no
7773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7774   { echo "$as_me:$LINENO: result: $hard_links" >&5
7775 echo "${ECHO_T}$hard_links" >&6; }
7776   if test "$hard_links" = no; then
7777     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7778 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7779     need_locks=warn
7780   fi
7781 else
7782   need_locks=no
7783 fi
7784
7785 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7786 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7787
7788   runpath_var=
7789   allow_undefined_flag=
7790   enable_shared_with_static_runtimes=no
7791   archive_cmds=
7792   archive_expsym_cmds=
7793   old_archive_From_new_cmds=
7794   old_archive_from_expsyms_cmds=
7795   export_dynamic_flag_spec=
7796   whole_archive_flag_spec=
7797   thread_safe_flag_spec=
7798   hardcode_libdir_flag_spec=
7799   hardcode_libdir_flag_spec_ld=
7800   hardcode_libdir_separator=
7801   hardcode_direct=no
7802   hardcode_minus_L=no
7803   hardcode_shlibpath_var=unsupported
7804   link_all_deplibs=unknown
7805   hardcode_automatic=no
7806   module_cmds=
7807   module_expsym_cmds=
7808   always_export_symbols=no
7809   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7810   # include_expsyms should be a list of space-separated symbols to be *always*
7811   # included in the symbol list
7812   include_expsyms=
7813   # exclude_expsyms can be an extended regexp of symbols to exclude
7814   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7815   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7816   # as well as any symbol that contains `d'.
7817   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7818   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7819   # platforms (ab)use it in PIC code, but their linkers get confused if
7820   # the symbol is explicitly referenced.  Since portable code cannot
7821   # rely on this symbol name, it's probably fine to never include it in
7822   # preloaded symbol tables.
7823   extract_expsyms_cmds=
7824   # Just being paranoid about ensuring that cc_basename is set.
7825   for cc_temp in $compiler""; do
7826   case $cc_temp in
7827     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7828     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7829     \-*) ;;
7830     *) break;;
7831   esac
7832 done
7833 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7834
7835   case $host_os in
7836   cygwin* | mingw* | pw32*)
7837     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7838     # When not using gcc, we currently assume that we are using
7839     # Microsoft Visual C++.
7840     if test "$GCC" != yes; then
7841       with_gnu_ld=no
7842     fi
7843     ;;
7844   interix*)
7845     # we just hope/assume this is gcc and not c89 (= MSVC++)
7846     with_gnu_ld=yes
7847     ;;
7848   openbsd*)
7849     with_gnu_ld=no
7850     ;;
7851   esac
7852
7853   ld_shlibs=yes
7854   if test "$with_gnu_ld" = yes; then
7855     # If archive_cmds runs LD, not CC, wlarc should be empty
7856     wlarc='${wl}'
7857
7858     # Set some defaults for GNU ld with shared library support. These
7859     # are reset later if shared libraries are not supported. Putting them
7860     # here allows them to be overridden if necessary.
7861     runpath_var=LD_RUN_PATH
7862     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7863     export_dynamic_flag_spec='${wl}--export-dynamic'
7864     # ancient GNU ld didn't support --whole-archive et. al.
7865     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7866         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7867       else
7868         whole_archive_flag_spec=
7869     fi
7870     supports_anon_versioning=no
7871     case `$LD -v 2>/dev/null` in
7872       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7873       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7874       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7875       *\ 2.11.*) ;; # other 2.11 versions
7876       *) supports_anon_versioning=yes ;;
7877     esac
7878
7879     # See if GNU ld supports shared libraries.
7880     case $host_os in
7881     aix3* | aix4* | aix5*)
7882       # On AIX/PPC, the GNU linker is very broken
7883       if test "$host_cpu" != ia64; then
7884         ld_shlibs=no
7885         cat <<EOF 1>&2
7886
7887 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7888 *** to be unable to reliably create shared libraries on AIX.
7889 *** Therefore, libtool is disabling shared libraries support.  If you
7890 *** really care for shared libraries, you may want to modify your PATH
7891 *** so that a non-GNU linker is found, and then restart.
7892
7893 EOF
7894       fi
7895       ;;
7896
7897     amigaos*)
7898       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)'
7899       hardcode_libdir_flag_spec='-L$libdir'
7900       hardcode_minus_L=yes
7901
7902       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7903       # that the semantics of dynamic libraries on AmigaOS, at least up
7904       # to version 4, is to share data among multiple programs linked
7905       # with the same dynamic library.  Since this doesn't match the
7906       # behavior of shared libraries on other platforms, we can't use
7907       # them.
7908       ld_shlibs=no
7909       ;;
7910
7911     beos*)
7912       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7913         allow_undefined_flag=unsupported
7914         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7915         # support --undefined.  This deserves some investigation.  FIXME
7916         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7917       else
7918         ld_shlibs=no
7919       fi
7920       ;;
7921
7922     cygwin* | mingw* | pw32*)
7923       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7924       # as there is no search path for DLLs.
7925       hardcode_libdir_flag_spec='-L$libdir'
7926       allow_undefined_flag=unsupported
7927       always_export_symbols=no
7928       enable_shared_with_static_runtimes=yes
7929       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7930
7931       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7932         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7933         # If the export-symbols file already is a .def file (1st line
7934         # is EXPORTS), use it as is; otherwise, prepend...
7935         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7936           cp $export_symbols $output_objdir/$soname.def;
7937         else
7938           echo EXPORTS > $output_objdir/$soname.def;
7939           cat $export_symbols >> $output_objdir/$soname.def;
7940         fi~
7941         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7942       else
7943         ld_shlibs=no
7944       fi
7945       ;;
7946
7947     interix3*)
7948       hardcode_direct=no
7949       hardcode_shlibpath_var=no
7950       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7951       export_dynamic_flag_spec='${wl}-E'
7952       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7953       # Instead, shared libraries are loaded at an image base (0x10000000 by
7954       # default) and relocated if they conflict, which is a slow very memory
7955       # consuming and fragmenting process.  To avoid this, we pick a random,
7956       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7957       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7958       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7959       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'
7960       ;;
7961
7962     linux* | k*bsd*-gnu)
7963       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7964         tmp_addflag=
7965         case $cc_basename,$host_cpu in
7966         pgcc*)                          # Portland Group C compiler
7967           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'
7968           tmp_addflag=' $pic_flag'
7969           ;;
7970         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7971           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'
7972           tmp_addflag=' $pic_flag -Mnomain' ;;
7973         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7974           tmp_addflag=' -i_dynamic' ;;
7975         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7976           tmp_addflag=' -i_dynamic -nofor_main' ;;
7977         ifc* | ifort*)                  # Intel Fortran compiler
7978           tmp_addflag=' -nofor_main' ;;
7979         esac
7980         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981
7982         if test $supports_anon_versioning = yes; then
7983           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7984   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7985   $echo "local: *; };" >> $output_objdir/$libname.ver~
7986           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7987         fi
7988         link_all_deplibs=no
7989       else
7990         ld_shlibs=no
7991       fi
7992       ;;
7993
7994     netbsd* | netbsdelf*-gnu)
7995       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7996         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7997         wlarc=
7998       else
7999         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8000         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8001       fi
8002       ;;
8003
8004     solaris*)
8005       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8006         ld_shlibs=no
8007         cat <<EOF 1>&2
8008
8009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8010 *** create shared libraries on Solaris systems.  Therefore, libtool
8011 *** is disabling shared libraries support.  We urge you to upgrade GNU
8012 *** binutils to release 2.9.1 or newer.  Another option is to modify
8013 *** your PATH or compiler configuration so that the native linker is
8014 *** used, and then restart.
8015
8016 EOF
8017       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8018         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8020       else
8021         ld_shlibs=no
8022       fi
8023       ;;
8024
8025     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8026       case `$LD -v 2>&1` in
8027         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8028         ld_shlibs=no
8029         cat <<_LT_EOF 1>&2
8030
8031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8032 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8033 *** is disabling shared libraries support.  We urge you to upgrade GNU
8034 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8035 *** your PATH or compiler configuration so that the native linker is
8036 *** used, and then restart.
8037
8038 _LT_EOF
8039         ;;
8040         *)
8041           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8042             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8043             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8044             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8045           else
8046             ld_shlibs=no
8047           fi
8048         ;;
8049       esac
8050       ;;
8051
8052     sunos4*)
8053       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8054       wlarc=
8055       hardcode_direct=yes
8056       hardcode_shlibpath_var=no
8057       ;;
8058
8059     *)
8060       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8063       else
8064         ld_shlibs=no
8065       fi
8066       ;;
8067     esac
8068
8069     if test "$ld_shlibs" = no; then
8070       runpath_var=
8071       hardcode_libdir_flag_spec=
8072       export_dynamic_flag_spec=
8073       whole_archive_flag_spec=
8074     fi
8075   else
8076     # PORTME fill in a description of your system's linker (not GNU ld)
8077     case $host_os in
8078     aix3*)
8079       allow_undefined_flag=unsupported
8080       always_export_symbols=yes
8081       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'
8082       # Note: this linker hardcodes the directories in LIBPATH if there
8083       # are no directories specified by -L.
8084       hardcode_minus_L=yes
8085       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8086         # Neither direct hardcoding nor static linking is supported with a
8087         # broken collect2.
8088         hardcode_direct=unsupported
8089       fi
8090       ;;
8091
8092     aix4* | aix5*)
8093       if test "$host_cpu" = ia64; then
8094         # On IA64, the linker does run time linking by default, so we don't
8095         # have to do anything special.
8096         aix_use_runtimelinking=no
8097         exp_sym_flag='-Bexport'
8098         no_entry_flag=""
8099       else
8100         # If we're using GNU nm, then we don't want the "-C" option.
8101         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8102         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8103           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'
8104         else
8105           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'
8106         fi
8107         aix_use_runtimelinking=no
8108
8109         # Test if we are trying to use run time linking or normal
8110         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8111         # need to do runtime linking.
8112         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8113           for ld_flag in $LDFLAGS; do
8114           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8115             aix_use_runtimelinking=yes
8116             break
8117           fi
8118           done
8119           ;;
8120         esac
8121
8122         exp_sym_flag='-bexport'
8123         no_entry_flag='-bnoentry'
8124       fi
8125
8126       # When large executables or shared objects are built, AIX ld can
8127       # have problems creating the table of contents.  If linking a library
8128       # or program results in "error TOC overflow" add -mminimal-toc to
8129       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8130       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8131
8132       archive_cmds=''
8133       hardcode_direct=yes
8134       hardcode_libdir_separator=':'
8135       link_all_deplibs=yes
8136
8137       if test "$GCC" = yes; then
8138         case $host_os in aix4.[012]|aix4.[012].*)
8139         # We only want to do this on AIX 4.2 and lower, the check
8140         # below for broken collect2 doesn't work under 4.3+
8141           collect2name=`${CC} -print-prog-name=collect2`
8142           if test -f "$collect2name" && \
8143            strings "$collect2name" | grep resolve_lib_name >/dev/null
8144           then
8145           # We have reworked collect2
8146           hardcode_direct=yes
8147           else
8148           # We have old collect2
8149           hardcode_direct=unsupported
8150           # It fails to find uninstalled libraries when the uninstalled
8151           # path is not listed in the libpath.  Setting hardcode_minus_L
8152           # to unsupported forces relinking
8153           hardcode_minus_L=yes
8154           hardcode_libdir_flag_spec='-L$libdir'
8155           hardcode_libdir_separator=
8156           fi
8157           ;;
8158         esac
8159         shared_flag='-shared'
8160         if test "$aix_use_runtimelinking" = yes; then
8161           shared_flag="$shared_flag "'${wl}-G'
8162         fi
8163       else
8164         # not using gcc
8165         if test "$host_cpu" = ia64; then
8166         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8167         # chokes on -Wl,-G. The following line is correct:
8168           shared_flag='-G'
8169         else
8170           if test "$aix_use_runtimelinking" = yes; then
8171             shared_flag='${wl}-G'
8172           else
8173             shared_flag='${wl}-bM:SRE'
8174           fi
8175         fi
8176       fi
8177
8178       # It seems that -bexpall does not export symbols beginning with
8179       # underscore (_), so it is better to generate a list of symbols to export.
8180       always_export_symbols=yes
8181       if test "$aix_use_runtimelinking" = yes; then
8182         # Warning - without using the other runtime loading flags (-brtl),
8183         # -berok will link without error, but may produce a broken library.
8184         allow_undefined_flag='-berok'
8185        # Determine the default libpath from the value encoded in an empty executable.
8186        cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192
8193 int
8194 main ()
8195 {
8196
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8203 case "(($ac_try" in
8204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205   *) ac_try_echo=$ac_try;;
8206 esac
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208   (eval "$ac_link") 2>conftest.er1
8209   ac_status=$?
8210   grep -v '^ *+' conftest.er1 >conftest.err
8211   rm -f conftest.er1
8212   cat conftest.err >&5
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } && {
8215          test -z "$ac_c_werror_flag" ||
8216          test ! -s conftest.err
8217        } && test -s conftest$ac_exeext &&
8218        $as_test_x conftest$ac_exeext; then
8219
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8221 }'`
8222 # Check for a 64-bit object if we didn't find anything.
8223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8224 }'`; fi
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233       conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8235
8236        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237         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"
8238        else
8239         if test "$host_cpu" = ia64; then
8240           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241           allow_undefined_flag="-z nodefs"
8242           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"
8243         else
8244          # Determine the default libpath from the value encoded in an empty executable.
8245          cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251
8252 int
8253 main ()
8254 {
8255
8256   ;
8257   return 0;
8258 }
8259 _ACEOF
8260 rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8262 case "(($ac_try" in
8263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264   *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267   (eval "$ac_link") 2>conftest.er1
8268   ac_status=$?
8269   grep -v '^ *+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } && {
8274          test -z "$ac_c_werror_flag" ||
8275          test ! -s conftest.err
8276        } && test -s conftest$ac_exeext &&
8277        $as_test_x conftest$ac_exeext; then
8278
8279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8280 }'`
8281 # Check for a 64-bit object if we didn't find anything.
8282 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8283 }'`; fi
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288
8289 fi
8290
8291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8292       conftest$ac_exeext conftest.$ac_ext
8293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8294
8295          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8296           # Warning - without using the other run time loading flags,
8297           # -berok will link without error, but may produce a broken library.
8298           no_undefined_flag=' ${wl}-bernotok'
8299           allow_undefined_flag=' ${wl}-berok'
8300           # Exported symbols can be pulled into shared objects from archives
8301           whole_archive_flag_spec='$convenience'
8302           archive_cmds_need_lc=yes
8303           # This is similar to how AIX traditionally builds its shared libraries.
8304           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'
8305         fi
8306       fi
8307       ;;
8308
8309     amigaos*)
8310       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)'
8311       hardcode_libdir_flag_spec='-L$libdir'
8312       hardcode_minus_L=yes
8313       # see comment about different semantics on the GNU ld section
8314       ld_shlibs=no
8315       ;;
8316
8317     bsdi[45]*)
8318       export_dynamic_flag_spec=-rdynamic
8319       ;;
8320
8321     cygwin* | mingw* | pw32*)
8322       # When not using gcc, we currently assume that we are using
8323       # Microsoft Visual C++.
8324       # hardcode_libdir_flag_spec is actually meaningless, as there is
8325       # no search path for DLLs.
8326       hardcode_libdir_flag_spec=' '
8327       allow_undefined_flag=unsupported
8328       # Tell ltmain to make .lib files, not .a files.
8329       libext=lib
8330       # Tell ltmain to make .dll files, not .so files.
8331       shrext_cmds=".dll"
8332       # FIXME: Setting linknames here is a bad hack.
8333       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8334       # The linker will automatically build a .lib file if we build a DLL.
8335       old_archive_From_new_cmds='true'
8336       # FIXME: Should let the user specify the lib program.
8337       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8338       fix_srcfile_path='`cygpath -w "$srcfile"`'
8339       enable_shared_with_static_runtimes=yes
8340       ;;
8341
8342     darwin* | rhapsody*)
8343       case $host_os in
8344         rhapsody* | darwin1.[012])
8345          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8346          ;;
8347        *) # Darwin 1.3 on
8348          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8349            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8350          else
8351            case ${MACOSX_DEPLOYMENT_TARGET} in
8352              10.[012])
8353                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8354                ;;
8355              10.*)
8356                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8357                ;;
8358            esac
8359          fi
8360          ;;
8361       esac
8362       archive_cmds_need_lc=no
8363       hardcode_direct=no
8364       hardcode_automatic=yes
8365       hardcode_shlibpath_var=unsupported
8366       whole_archive_flag_spec=''
8367       link_all_deplibs=yes
8368     if test "$GCC" = yes ; then
8369         output_verbose_link_cmd='echo'
8370         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8371       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8372       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8373       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}'
8374       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}'
8375     else
8376       case $cc_basename in
8377         xlc*)
8378          output_verbose_link_cmd='echo'
8379          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8380          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8381           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8382          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8383           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}'
8384           ;;
8385        *)
8386          ld_shlibs=no
8387           ;;
8388       esac
8389     fi
8390       ;;
8391
8392     dgux*)
8393       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394       hardcode_libdir_flag_spec='-L$libdir'
8395       hardcode_shlibpath_var=no
8396       ;;
8397
8398     freebsd1*)
8399       ld_shlibs=no
8400       ;;
8401
8402     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8403     # support.  Future versions do this automatically, but an explicit c++rt0.o
8404     # does not break anything, and helps significantly (at the cost of a little
8405     # extra space).
8406     freebsd2.2*)
8407       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8408       hardcode_libdir_flag_spec='-R$libdir'
8409       hardcode_direct=yes
8410       hardcode_shlibpath_var=no
8411       ;;
8412
8413     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8414     freebsd2*)
8415       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8416       hardcode_direct=yes
8417       hardcode_minus_L=yes
8418       hardcode_shlibpath_var=no
8419       ;;
8420
8421     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8422     freebsd* | dragonfly*)
8423       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8424       hardcode_libdir_flag_spec='-R$libdir'
8425       hardcode_direct=yes
8426       hardcode_shlibpath_var=no
8427       ;;
8428
8429     hpux9*)
8430       if test "$GCC" = yes; then
8431         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'
8432       else
8433         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'
8434       fi
8435       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8436       hardcode_libdir_separator=:
8437       hardcode_direct=yes
8438
8439       # hardcode_minus_L: Not really in the search PATH,
8440       # but as the default location of the library.
8441       hardcode_minus_L=yes
8442       export_dynamic_flag_spec='${wl}-E'
8443       ;;
8444
8445     hpux10*)
8446       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8447         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8448       else
8449         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8450       fi
8451       if test "$with_gnu_ld" = no; then
8452         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8453         hardcode_libdir_separator=:
8454
8455         hardcode_direct=yes
8456         export_dynamic_flag_spec='${wl}-E'
8457
8458         # hardcode_minus_L: Not really in the search PATH,
8459         # but as the default location of the library.
8460         hardcode_minus_L=yes
8461       fi
8462       ;;
8463
8464     hpux11*)
8465       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8466         case $host_cpu in
8467         hppa*64*)
8468           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469           ;;
8470         ia64*)
8471           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8472           ;;
8473         *)
8474           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8475           ;;
8476         esac
8477       else
8478         case $host_cpu in
8479         hppa*64*)
8480           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8481           ;;
8482         ia64*)
8483           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8484           ;;
8485         *)
8486           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8487           ;;
8488         esac
8489       fi
8490       if test "$with_gnu_ld" = no; then
8491         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8492         hardcode_libdir_separator=:
8493
8494         case $host_cpu in
8495         hppa*64*|ia64*)
8496           hardcode_libdir_flag_spec_ld='+b $libdir'
8497           hardcode_direct=no
8498           hardcode_shlibpath_var=no
8499           ;;
8500         *)
8501           hardcode_direct=yes
8502           export_dynamic_flag_spec='${wl}-E'
8503
8504           # hardcode_minus_L: Not really in the search PATH,
8505           # but as the default location of the library.
8506           hardcode_minus_L=yes
8507           ;;
8508         esac
8509       fi
8510       ;;
8511
8512     irix5* | irix6* | nonstopux*)
8513       if test "$GCC" = yes; then
8514         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'
8515       else
8516         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'
8517         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8518       fi
8519       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8520       hardcode_libdir_separator=:
8521       link_all_deplibs=yes
8522       ;;
8523
8524     netbsd* | netbsdelf*-gnu)
8525       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8526         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8527       else
8528         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8529       fi
8530       hardcode_libdir_flag_spec='-R$libdir'
8531       hardcode_direct=yes
8532       hardcode_shlibpath_var=no
8533       ;;
8534
8535     newsos6)
8536       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8537       hardcode_direct=yes
8538       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8539       hardcode_libdir_separator=:
8540       hardcode_shlibpath_var=no
8541       ;;
8542
8543     openbsd*)
8544       hardcode_direct=yes
8545       hardcode_shlibpath_var=no
8546       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8547         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8548         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8549         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8550         export_dynamic_flag_spec='${wl}-E'
8551       else
8552        case $host_os in
8553          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8554            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8555            hardcode_libdir_flag_spec='-R$libdir'
8556            ;;
8557          *)
8558            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8560            ;;
8561        esac
8562       fi
8563       ;;
8564
8565     os2*)
8566       hardcode_libdir_flag_spec='-L$libdir'
8567       hardcode_minus_L=yes
8568       allow_undefined_flag=unsupported
8569       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'
8570       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8571       ;;
8572
8573     osf3*)
8574       if test "$GCC" = yes; then
8575         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8576         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'
8577       else
8578         allow_undefined_flag=' -expect_unresolved \*'
8579         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'
8580       fi
8581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582       hardcode_libdir_separator=:
8583       ;;
8584
8585     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8586       if test "$GCC" = yes; then
8587         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588         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'
8589         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8590       else
8591         allow_undefined_flag=' -expect_unresolved \*'
8592         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'
8593         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8594         $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'
8595
8596         # Both c and cxx compiler support -rpath directly
8597         hardcode_libdir_flag_spec='-rpath $libdir'
8598       fi
8599       hardcode_libdir_separator=:
8600       ;;
8601
8602     solaris*)
8603       no_undefined_flag=' -z text'
8604       if test "$GCC" = yes; then
8605         wlarc='${wl}'
8606         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8608           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8609       else
8610         wlarc=''
8611         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8613         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8614       fi
8615       hardcode_libdir_flag_spec='-R$libdir'
8616       hardcode_shlibpath_var=no
8617       case $host_os in
8618       solaris2.[0-5] | solaris2.[0-5].*) ;;
8619       *)
8620         # The compiler driver will combine linker options so we
8621         # cannot just pass the convience library names through
8622         # without $wl, iff we do not link with $LD.
8623         # Luckily, gcc supports the same syntax we need for Sun Studio.
8624         # Supported since Solaris 2.6 (maybe 2.5.1?)
8625         case $wlarc in
8626         '')
8627           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8628         *)
8629           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8630         esac ;;
8631       esac
8632       link_all_deplibs=yes
8633       ;;
8634
8635     sunos4*)
8636       if test "x$host_vendor" = xsequent; then
8637         # Use $CC to link under sequent, because it throws in some extra .o
8638         # files that make .init and .fini sections work.
8639         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8640       else
8641         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8642       fi
8643       hardcode_libdir_flag_spec='-L$libdir'
8644       hardcode_direct=yes
8645       hardcode_minus_L=yes
8646       hardcode_shlibpath_var=no
8647       ;;
8648
8649     sysv4)
8650       case $host_vendor in
8651         sni)
8652           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653           hardcode_direct=yes # is this really true???
8654         ;;
8655         siemens)
8656           ## LD is ld it makes a PLAMLIB
8657           ## CC just makes a GrossModule.
8658           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8659           reload_cmds='$CC -r -o $output$reload_objs'
8660           hardcode_direct=no
8661         ;;
8662         motorola)
8663           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8665         ;;
8666       esac
8667       runpath_var='LD_RUN_PATH'
8668       hardcode_shlibpath_var=no
8669       ;;
8670
8671     sysv4.3*)
8672       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8673       hardcode_shlibpath_var=no
8674       export_dynamic_flag_spec='-Bexport'
8675       ;;
8676
8677     sysv4*MP*)
8678       if test -d /usr/nec; then
8679         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680         hardcode_shlibpath_var=no
8681         runpath_var=LD_RUN_PATH
8682         hardcode_runpath_var=yes
8683         ld_shlibs=yes
8684       fi
8685       ;;
8686
8687     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8688       no_undefined_flag='${wl}-z,text'
8689       archive_cmds_need_lc=no
8690       hardcode_shlibpath_var=no
8691       runpath_var='LD_RUN_PATH'
8692
8693       if test "$GCC" = yes; then
8694         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8696       else
8697         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8698         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8699       fi
8700       ;;
8701
8702     sysv5* | sco3.2v5* | sco5v6*)
8703       # Note: We can NOT use -z defs as we might desire, because we do not
8704       # link with -lc, and that would cause any symbols used from libc to
8705       # always be unresolved, which means just about no library would
8706       # ever link correctly.  If we're not using GNU ld we use -z text
8707       # though, which does catch some bad symbols but isn't as heavy-handed
8708       # as -z defs.
8709       no_undefined_flag='${wl}-z,text'
8710       allow_undefined_flag='${wl}-z,nodefs'
8711       archive_cmds_need_lc=no
8712       hardcode_shlibpath_var=no
8713       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8714       hardcode_libdir_separator=':'
8715       link_all_deplibs=yes
8716       export_dynamic_flag_spec='${wl}-Bexport'
8717       runpath_var='LD_RUN_PATH'
8718
8719       if test "$GCC" = yes; then
8720         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722       else
8723         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725       fi
8726       ;;
8727
8728     uts4*)
8729       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730       hardcode_libdir_flag_spec='-L$libdir'
8731       hardcode_shlibpath_var=no
8732       ;;
8733
8734     *)
8735       ld_shlibs=no
8736       ;;
8737     esac
8738   fi
8739
8740 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8741 echo "${ECHO_T}$ld_shlibs" >&6; }
8742 test "$ld_shlibs" = no && can_build_shared=no
8743
8744 #
8745 # Do we need to explicitly link libc?
8746 #
8747 case "x$archive_cmds_need_lc" in
8748 x|xyes)
8749   # Assume -lc should be added
8750   archive_cmds_need_lc=yes
8751
8752   if test "$enable_shared" = yes && test "$GCC" = yes; then
8753     case $archive_cmds in
8754     *'~'*)
8755       # FIXME: we may have to deal with multi-command sequences.
8756       ;;
8757     '$CC '*)
8758       # Test whether the compiler implicitly links with -lc since on some
8759       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8760       # to ld, don't add -lc before -lgcc.
8761       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8762 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8763       $rm conftest*
8764       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8765
8766       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767   (eval $ac_compile) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } 2>conftest.err; then
8771         soname=conftest
8772         lib=conftest
8773         libobjs=conftest.$ac_objext
8774         deplibs=
8775         wl=$lt_prog_compiler_wl
8776         pic_flag=$lt_prog_compiler_pic
8777         compiler_flags=-v
8778         linker_flags=-v
8779         verstring=
8780         output_objdir=.
8781         libname=conftest
8782         lt_save_allow_undefined_flag=$allow_undefined_flag
8783         allow_undefined_flag=
8784         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8785   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }
8789         then
8790           archive_cmds_need_lc=no
8791         else
8792           archive_cmds_need_lc=yes
8793         fi
8794         allow_undefined_flag=$lt_save_allow_undefined_flag
8795       else
8796         cat conftest.err 1>&5
8797       fi
8798       $rm conftest*
8799       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8800 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8801       ;;
8802     esac
8803   fi
8804   ;;
8805 esac
8806
8807 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8808 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8809 library_names_spec=
8810 libname_spec='lib$name'
8811 soname_spec=
8812 shrext_cmds=".so"
8813 postinstall_cmds=
8814 postuninstall_cmds=
8815 finish_cmds=
8816 finish_eval=
8817 shlibpath_var=
8818 shlibpath_overrides_runpath=unknown
8819 version_type=none
8820 dynamic_linker="$host_os ld.so"
8821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8822 if test "$GCC" = yes; then
8823   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8824   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8825     # if the path contains ";" then we assume it to be the separator
8826     # otherwise default to the standard path separator (i.e. ":") - it is
8827     # assumed that no part of a normal pathname contains ";" but that should
8828     # okay in the real world where ";" in dirpaths is itself problematic.
8829     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8830   else
8831     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8832   fi
8833 else
8834   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8835 fi
8836 need_lib_prefix=unknown
8837 hardcode_into_libs=no
8838
8839 # when you set need_version to no, make sure it does not cause -set_version
8840 # flags to be left without arguments
8841 need_version=unknown
8842
8843 case $host_os in
8844 aix3*)
8845   version_type=linux
8846   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8847   shlibpath_var=LIBPATH
8848
8849   # AIX 3 has no versioning support, so we append a major version to the name.
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   ;;
8852
8853 aix4* | aix5*)
8854   version_type=linux
8855   need_lib_prefix=no
8856   need_version=no
8857   hardcode_into_libs=yes
8858   if test "$host_cpu" = ia64; then
8859     # AIX 5 supports IA64
8860     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8861     shlibpath_var=LD_LIBRARY_PATH
8862   else
8863     # With GCC up to 2.95.x, collect2 would create an import file
8864     # for dependence libraries.  The import file would start with
8865     # the line `#! .'.  This would cause the generated library to
8866     # depend on `.', always an invalid library.  This was fixed in
8867     # development snapshots of GCC prior to 3.0.
8868     case $host_os in
8869       aix4 | aix4.[01] | aix4.[01].*)
8870       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8871            echo ' yes '
8872            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8873         :
8874       else
8875         can_build_shared=no
8876       fi
8877       ;;
8878     esac
8879     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8880     # soname into executable. Probably we can add versioning support to
8881     # collect2, so additional links can be useful in future.
8882     if test "$aix_use_runtimelinking" = yes; then
8883       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8884       # instead of lib<name>.a to let people know that these are not
8885       # typical AIX shared libraries.
8886       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887     else
8888       # We preserve .a as extension for shared libraries through AIX4.2
8889       # and later when we are not doing run time linking.
8890       library_names_spec='${libname}${release}.a $libname.a'
8891       soname_spec='${libname}${release}${shared_ext}$major'
8892     fi
8893     shlibpath_var=LIBPATH
8894   fi
8895   ;;
8896
8897 amigaos*)
8898   library_names_spec='$libname.ixlibrary $libname.a'
8899   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8900   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'
8901   ;;
8902
8903 beos*)
8904   library_names_spec='${libname}${shared_ext}'
8905   dynamic_linker="$host_os ld.so"
8906   shlibpath_var=LIBRARY_PATH
8907   ;;
8908
8909 bsdi[45]*)
8910   version_type=linux
8911   need_version=no
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913   soname_spec='${libname}${release}${shared_ext}$major'
8914   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8915   shlibpath_var=LD_LIBRARY_PATH
8916   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8917   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8918   # the default ld.so.conf also contains /usr/contrib/lib and
8919   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8920   # libtool to hard-code these into programs
8921   ;;
8922
8923 cygwin* | mingw* | pw32*)
8924   version_type=windows
8925   shrext_cmds=".dll"
8926   need_version=no
8927   need_lib_prefix=no
8928
8929   case $GCC,$host_os in
8930   yes,cygwin* | yes,mingw* | yes,pw32*)
8931     library_names_spec='$libname.dll.a'
8932     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8933     postinstall_cmds='base_file=`basename \${file}`~
8934       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8935       dldir=$destdir/`dirname \$dlpath`~
8936       test -d \$dldir || mkdir -p \$dldir~
8937       $install_prog $dir/$dlname \$dldir/$dlname~
8938       chmod a+x \$dldir/$dlname'
8939     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8940       dlpath=$dir/\$dldll~
8941        $rm \$dlpath'
8942     shlibpath_overrides_runpath=yes
8943
8944     case $host_os in
8945     cygwin*)
8946       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8947       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8949       ;;
8950     mingw*)
8951       # MinGW DLLs use traditional 'lib' prefix
8952       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8953       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8954       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8955         # It is most probably a Windows format PATH printed by
8956         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8957         # path with ; separators, and with drive letters. We can handle the
8958         # drive letters (cygwin fileutils understands them), so leave them,
8959         # especially as we might pass files found there to a mingw objdump,
8960         # which wouldn't understand a cygwinified path. Ahh.
8961         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8962       else
8963         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8964       fi
8965       ;;
8966     pw32*)
8967       # pw32 DLLs use 'pw' prefix rather than 'lib'
8968       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969       ;;
8970     esac
8971     ;;
8972
8973   *)
8974     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8975     ;;
8976   esac
8977   dynamic_linker='Win32 ld.exe'
8978   # FIXME: first we should search . and the directory the executable is in
8979   shlibpath_var=PATH
8980   ;;
8981
8982 darwin* | rhapsody*)
8983   dynamic_linker="$host_os dyld"
8984   version_type=darwin
8985   need_lib_prefix=no
8986   need_version=no
8987   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8988   soname_spec='${libname}${release}${major}$shared_ext'
8989   shlibpath_overrides_runpath=yes
8990   shlibpath_var=DYLD_LIBRARY_PATH
8991   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8992   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8993   if test "$GCC" = yes; then
8994     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8995   else
8996     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8997   fi
8998   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8999   ;;
9000
9001 dgux*)
9002   version_type=linux
9003   need_lib_prefix=no
9004   need_version=no
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   ;;
9009
9010 freebsd1*)
9011   dynamic_linker=no
9012   ;;
9013
9014 freebsd* | dragonfly*)
9015   # DragonFly does not have aout.  When/if they implement a new
9016   # versioning mechanism, adjust this.
9017   if test -x /usr/bin/objformat; then
9018     objformat=`/usr/bin/objformat`
9019   else
9020     case $host_os in
9021     freebsd[123]*) objformat=aout ;;
9022     *) objformat=elf ;;
9023     esac
9024   fi
9025   version_type=freebsd-$objformat
9026   case $version_type in
9027     freebsd-elf*)
9028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9029       need_version=no
9030       need_lib_prefix=no
9031       ;;
9032     freebsd-*)
9033       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9034       need_version=yes
9035       ;;
9036   esac
9037   shlibpath_var=LD_LIBRARY_PATH
9038   case $host_os in
9039   freebsd2*)
9040     shlibpath_overrides_runpath=yes
9041     ;;
9042   freebsd3.[01]* | freebsdelf3.[01]*)
9043     shlibpath_overrides_runpath=yes
9044     hardcode_into_libs=yes
9045     ;;
9046   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9047   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9048     shlibpath_overrides_runpath=no
9049     hardcode_into_libs=yes
9050     ;;
9051   freebsd*) # from 4.6 on
9052     shlibpath_overrides_runpath=yes
9053     hardcode_into_libs=yes
9054     ;;
9055   esac
9056   ;;
9057
9058 gnu*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9063   soname_spec='${libname}${release}${shared_ext}$major'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   hardcode_into_libs=yes
9066   ;;
9067
9068 hpux9* | hpux10* | hpux11*)
9069   # Give a soname corresponding to the major version so that dld.sl refuses to
9070   # link against other versions.
9071   version_type=sunos
9072   need_lib_prefix=no
9073   need_version=no
9074   case $host_cpu in
9075   ia64*)
9076     shrext_cmds='.so'
9077     hardcode_into_libs=yes
9078     dynamic_linker="$host_os dld.so"
9079     shlibpath_var=LD_LIBRARY_PATH
9080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082     soname_spec='${libname}${release}${shared_ext}$major'
9083     if test "X$HPUX_IA64_MODE" = X32; then
9084       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9085     else
9086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9087     fi
9088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9089     ;;
9090    hppa*64*)
9091      shrext_cmds='.sl'
9092      hardcode_into_libs=yes
9093      dynamic_linker="$host_os dld.sl"
9094      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9095      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9096      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097      soname_spec='${libname}${release}${shared_ext}$major'
9098      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9099      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9100      ;;
9101    *)
9102     shrext_cmds='.sl'
9103     dynamic_linker="$host_os dld.sl"
9104     shlibpath_var=SHLIB_PATH
9105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107     soname_spec='${libname}${release}${shared_ext}$major'
9108     ;;
9109   esac
9110   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9111   postinstall_cmds='chmod 555 $lib'
9112   ;;
9113
9114 interix3*)
9115   version_type=linux
9116   need_lib_prefix=no
9117   need_version=no
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   shlibpath_overrides_runpath=no
9123   hardcode_into_libs=yes
9124   ;;
9125
9126 irix5* | irix6* | nonstopux*)
9127   case $host_os in
9128     nonstopux*) version_type=nonstopux ;;
9129     *)
9130         if test "$lt_cv_prog_gnu_ld" = yes; then
9131                 version_type=linux
9132         else
9133                 version_type=irix
9134         fi ;;
9135   esac
9136   need_lib_prefix=no
9137   need_version=no
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9140   case $host_os in
9141   irix5* | nonstopux*)
9142     libsuff= shlibsuff=
9143     ;;
9144   *)
9145     case $LD in # libtool.m4 will add one of these switches to LD
9146     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9147       libsuff= shlibsuff= libmagic=32-bit;;
9148     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9149       libsuff=32 shlibsuff=N32 libmagic=N32;;
9150     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9151       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9152     *) libsuff= shlibsuff= libmagic=never-match;;
9153     esac
9154     ;;
9155   esac
9156   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9157   shlibpath_overrides_runpath=no
9158   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9159   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9160   hardcode_into_libs=yes
9161   ;;
9162
9163 # No shared lib support for Linux oldld, aout, or coff.
9164 linux*oldld* | linux*aout* | linux*coff*)
9165   dynamic_linker=no
9166   ;;
9167
9168 # This must be Linux ELF.
9169 linux* | k*bsd*-gnu)
9170   version_type=linux
9171   need_lib_prefix=no
9172   need_version=no
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174   soname_spec='${libname}${release}${shared_ext}$major'
9175   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9176   shlibpath_var=LD_LIBRARY_PATH
9177   shlibpath_overrides_runpath=no
9178   # This implies no fast_install, which is unacceptable.
9179   # Some rework will be needed to allow for fast_install
9180   # before this can be enabled.
9181   hardcode_into_libs=yes
9182
9183   # Append ld.so.conf contents to the search path
9184   if test -f /etc/ld.so.conf; then
9185     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9186     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9187   fi
9188
9189   # We used to test for /lib/ld.so.1 and disable shared libraries on
9190   # powerpc, because MkLinux only supported shared libraries with the
9191   # GNU dynamic linker.  Since this was broken with cross compilers,
9192   # most powerpc-linux boxes support dynamic linking these days and
9193   # people can always --disable-shared, the test was removed, and we
9194   # assume the GNU/Linux dynamic linker is in use.
9195   dynamic_linker='GNU/Linux ld.so'
9196   ;;
9197
9198 netbsdelf*-gnu)
9199   version_type=linux
9200   need_lib_prefix=no
9201   need_version=no
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9203   soname_spec='${libname}${release}${shared_ext}$major'
9204   shlibpath_var=LD_LIBRARY_PATH
9205   shlibpath_overrides_runpath=no
9206   hardcode_into_libs=yes
9207   dynamic_linker='NetBSD ld.elf_so'
9208   ;;
9209
9210 netbsd*)
9211   version_type=sunos
9212   need_lib_prefix=no
9213   need_version=no
9214   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9216     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9217     dynamic_linker='NetBSD (a.out) ld.so'
9218   else
9219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9220     soname_spec='${libname}${release}${shared_ext}$major'
9221     dynamic_linker='NetBSD ld.elf_so'
9222   fi
9223   shlibpath_var=LD_LIBRARY_PATH
9224   shlibpath_overrides_runpath=yes
9225   hardcode_into_libs=yes
9226   ;;
9227
9228 newsos6)
9229   version_type=linux
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231   shlibpath_var=LD_LIBRARY_PATH
9232   shlibpath_overrides_runpath=yes
9233   ;;
9234
9235 nto-qnx*)
9236   version_type=linux
9237   need_lib_prefix=no
9238   need_version=no
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240   soname_spec='${libname}${release}${shared_ext}$major'
9241   shlibpath_var=LD_LIBRARY_PATH
9242   shlibpath_overrides_runpath=yes
9243   ;;
9244
9245 openbsd*)
9246   version_type=sunos
9247   sys_lib_dlsearch_path_spec="/usr/lib"
9248   need_lib_prefix=no
9249   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9250   case $host_os in
9251     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9252     *)                         need_version=no  ;;
9253   esac
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9258     case $host_os in
9259       openbsd2.[89] | openbsd2.[89].*)
9260         shlibpath_overrides_runpath=no
9261         ;;
9262       *)
9263         shlibpath_overrides_runpath=yes
9264         ;;
9265       esac
9266   else
9267     shlibpath_overrides_runpath=yes
9268   fi
9269   ;;
9270
9271 os2*)
9272   libname_spec='$name'
9273   shrext_cmds=".dll"
9274   need_lib_prefix=no
9275   library_names_spec='$libname${shared_ext} $libname.a'
9276   dynamic_linker='OS/2 ld.exe'
9277   shlibpath_var=LIBPATH
9278   ;;
9279
9280 osf3* | osf4* | osf5*)
9281   version_type=osf
9282   need_lib_prefix=no
9283   need_version=no
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286   shlibpath_var=LD_LIBRARY_PATH
9287   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9288   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9289   ;;
9290
9291 solaris*)
9292   version_type=linux
9293   need_lib_prefix=no
9294   need_version=no
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296   soname_spec='${libname}${release}${shared_ext}$major'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   shlibpath_overrides_runpath=yes
9299   hardcode_into_libs=yes
9300   # ldd complains unless libraries are executable
9301   postinstall_cmds='chmod +x $lib'
9302   ;;
9303
9304 sunos4*)
9305   version_type=sunos
9306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9308   shlibpath_var=LD_LIBRARY_PATH
9309   shlibpath_overrides_runpath=yes
9310   if test "$with_gnu_ld" = yes; then
9311     need_lib_prefix=no
9312   fi
9313   need_version=yes
9314   ;;
9315
9316 sysv4 | sysv4.3*)
9317   version_type=linux
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319   soname_spec='${libname}${release}${shared_ext}$major'
9320   shlibpath_var=LD_LIBRARY_PATH
9321   case $host_vendor in
9322     sni)
9323       shlibpath_overrides_runpath=no
9324       need_lib_prefix=no
9325       export_dynamic_flag_spec='${wl}-Blargedynsym'
9326       runpath_var=LD_RUN_PATH
9327       ;;
9328     siemens)
9329       need_lib_prefix=no
9330       ;;
9331     motorola)
9332       need_lib_prefix=no
9333       need_version=no
9334       shlibpath_overrides_runpath=no
9335       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9336       ;;
9337   esac
9338   ;;
9339
9340 sysv4*MP*)
9341   if test -d /usr/nec ;then
9342     version_type=linux
9343     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9344     soname_spec='$libname${shared_ext}.$major'
9345     shlibpath_var=LD_LIBRARY_PATH
9346   fi
9347   ;;
9348
9349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9350   version_type=freebsd-elf
9351   need_lib_prefix=no
9352   need_version=no
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9354   soname_spec='${libname}${release}${shared_ext}$major'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   hardcode_into_libs=yes
9357   if test "$with_gnu_ld" = yes; then
9358     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9359     shlibpath_overrides_runpath=no
9360   else
9361     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9362     shlibpath_overrides_runpath=yes
9363     case $host_os in
9364       sco3.2v5*)
9365         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9366         ;;
9367     esac
9368   fi
9369   sys_lib_dlsearch_path_spec='/usr/lib'
9370   ;;
9371
9372 uts4*)
9373   version_type=linux
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375   soname_spec='${libname}${release}${shared_ext}$major'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   ;;
9378
9379 *)
9380   dynamic_linker=no
9381   ;;
9382 esac
9383 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9384 echo "${ECHO_T}$dynamic_linker" >&6; }
9385 test "$dynamic_linker" = no && can_build_shared=no
9386
9387 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9388 if test "$GCC" = yes; then
9389   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9390 fi
9391
9392 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9393 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9394 hardcode_action=
9395 if test -n "$hardcode_libdir_flag_spec" || \
9396    test -n "$runpath_var" || \
9397    test "X$hardcode_automatic" = "Xyes" ; then
9398
9399   # We can hardcode non-existant directories.
9400   if test "$hardcode_direct" != no &&
9401      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9402      # have to relink, otherwise we might link with an installed library
9403      # when we should be linking with a yet-to-be-installed one
9404      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9405      test "$hardcode_minus_L" != no; then
9406     # Linking always hardcodes the temporary library directory.
9407     hardcode_action=relink
9408   else
9409     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9410     hardcode_action=immediate
9411   fi
9412 else
9413   # We cannot hardcode anything, or else we can only hardcode existing
9414   # directories.
9415   hardcode_action=unsupported
9416 fi
9417 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9418 echo "${ECHO_T}$hardcode_action" >&6; }
9419
9420 if test "$hardcode_action" = relink; then
9421   # Fast installation is not supported
9422   enable_fast_install=no
9423 elif test "$shlibpath_overrides_runpath" = yes ||
9424      test "$enable_shared" = no; then
9425   # Fast installation is not necessary
9426   enable_fast_install=needless
9427 fi
9428
9429 striplib=
9430 old_striplib=
9431 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9432 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9433 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9434   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9435   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9436   { echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6; }
9438 else
9439 # FIXME - insert some real tests, host_os isn't really good enough
9440   case $host_os in
9441    darwin*)
9442        if test -n "$STRIP" ; then
9443          striplib="$STRIP -x"
9444          { echo "$as_me:$LINENO: result: yes" >&5
9445 echo "${ECHO_T}yes" >&6; }
9446        else
9447   { echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6; }
9449 fi
9450        ;;
9451    *)
9452   { echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6; }
9454     ;;
9455   esac
9456 fi
9457
9458 if test "x$enable_dlopen" != xyes; then
9459   enable_dlopen=unknown
9460   enable_dlopen_self=unknown
9461   enable_dlopen_self_static=unknown
9462 else
9463   lt_cv_dlopen=no
9464   lt_cv_dlopen_libs=
9465
9466   case $host_os in
9467   beos*)
9468     lt_cv_dlopen="load_add_on"
9469     lt_cv_dlopen_libs=
9470     lt_cv_dlopen_self=yes
9471     ;;
9472
9473   mingw* | pw32*)
9474     lt_cv_dlopen="LoadLibrary"
9475     lt_cv_dlopen_libs=
9476    ;;
9477
9478   cygwin*)
9479     lt_cv_dlopen="dlopen"
9480     lt_cv_dlopen_libs=
9481    ;;
9482
9483   darwin*)
9484   # if libdl is installed we need to link against it
9485     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9488   echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490   ac_check_lib_save_LIBS=$LIBS
9491 LIBS="-ldl  $LIBS"
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498
9499 /* Override any GCC internal prototype to avoid an error.
9500    Use char because int might match the return type of a GCC
9501    builtin and then its argument prototype would still apply.  */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 char dlopen ();
9506 int
9507 main ()
9508 {
9509 return dlopen ();
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518   *) ac_try_echo=$ac_try;;
9519 esac
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521   (eval "$ac_link") 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } && {
9528          test -z "$ac_c_werror_flag" ||
9529          test ! -s conftest.err
9530        } && test -s conftest$ac_exeext &&
9531        $as_test_x conftest$ac_exeext; then
9532   ac_cv_lib_dl_dlopen=yes
9533 else
9534   echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537         ac_cv_lib_dl_dlopen=no
9538 fi
9539
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541       conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9543 fi
9544 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9545 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9546 if test $ac_cv_lib_dl_dlopen = yes; then
9547   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9548 else
9549
9550     lt_cv_dlopen="dyld"
9551     lt_cv_dlopen_libs=
9552     lt_cv_dlopen_self=yes
9553
9554 fi
9555
9556    ;;
9557
9558   *)
9559     { echo "$as_me:$LINENO: checking for shl_load" >&5
9560 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_shl_load+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9572 #define shl_load innocuous_shl_load
9573
9574 /* System header to define __stub macros and hopefully few prototypes,
9575     which can conflict with char shl_load (); below.
9576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577     <limits.h> exists even on freestanding compilers.  */
9578
9579 #ifdef __STDC__
9580 # include <limits.h>
9581 #else
9582 # include <assert.h>
9583 #endif
9584
9585 #undef shl_load
9586
9587 /* Override any GCC internal prototype to avoid an error.
9588    Use char because int might match the return type of a GCC
9589    builtin and then its argument prototype would still apply.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char shl_load ();
9594 /* The GNU C library defines this for functions which it implements
9595     to always fail with ENOSYS.  Some functions are actually named
9596     something starting with __ and the normal name is an alias.  */
9597 #if defined __stub_shl_load || defined __stub___shl_load
9598 choke me
9599 #endif
9600
9601 int
9602 main ()
9603 {
9604 return shl_load ();
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616   (eval "$ac_link") 2>conftest.er1
9617   ac_status=$?
9618   grep -v '^ *+' conftest.er1 >conftest.err
9619   rm -f conftest.er1
9620   cat conftest.err >&5
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } && {
9623          test -z "$ac_c_werror_flag" ||
9624          test ! -s conftest.err
9625        } && test -s conftest$ac_exeext &&
9626        $as_test_x conftest$ac_exeext; then
9627   ac_cv_func_shl_load=yes
9628 else
9629   echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9631
9632         ac_cv_func_shl_load=no
9633 fi
9634
9635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9636       conftest$ac_exeext conftest.$ac_ext
9637 fi
9638 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9639 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9640 if test $ac_cv_func_shl_load = yes; then
9641   lt_cv_dlopen="shl_load"
9642 else
9643   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9644 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   ac_check_lib_save_LIBS=$LIBS
9649 LIBS="-ldld  $LIBS"
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656
9657 /* Override any GCC internal prototype to avoid an error.
9658    Use char because int might match the return type of a GCC
9659    builtin and then its argument prototype would still apply.  */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 char shl_load ();
9664 int
9665 main ()
9666 {
9667 return shl_load ();
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && {
9686          test -z "$ac_c_werror_flag" ||
9687          test ! -s conftest.err
9688        } && test -s conftest$ac_exeext &&
9689        $as_test_x conftest$ac_exeext; then
9690   ac_cv_lib_dld_shl_load=yes
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695         ac_cv_lib_dld_shl_load=no
9696 fi
9697
9698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9699       conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9703 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9704 if test $ac_cv_lib_dld_shl_load = yes; then
9705   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9706 else
9707   { echo "$as_me:$LINENO: checking for dlopen" >&5
9708 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9709 if test "${ac_cv_func_dlopen+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9720 #define dlopen innocuous_dlopen
9721
9722 /* System header to define __stub macros and hopefully few prototypes,
9723     which can conflict with char dlopen (); below.
9724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9725     <limits.h> exists even on freestanding compilers.  */
9726
9727 #ifdef __STDC__
9728 # include <limits.h>
9729 #else
9730 # include <assert.h>
9731 #endif
9732
9733 #undef dlopen
9734
9735 /* Override any GCC internal prototype to avoid an error.
9736    Use char because int might match the return type of a GCC
9737    builtin and then its argument prototype would still apply.  */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char dlopen ();
9742 /* The GNU C library defines this for functions which it implements
9743     to always fail with ENOSYS.  Some functions are actually named
9744     something starting with __ and the normal name is an alias.  */
9745 #if defined __stub_dlopen || defined __stub___dlopen
9746 choke me
9747 #endif
9748
9749 int
9750 main ()
9751 {
9752 return dlopen ();
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_link") 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } && {
9771          test -z "$ac_c_werror_flag" ||
9772          test ! -s conftest.err
9773        } && test -s conftest$ac_exeext &&
9774        $as_test_x conftest$ac_exeext; then
9775   ac_cv_func_dlopen=yes
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780         ac_cv_func_dlopen=no
9781 fi
9782
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784       conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9788 if test $ac_cv_func_dlopen = yes; then
9789   lt_cv_dlopen="dlopen"
9790 else
9791   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-ldl  $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804
9805 /* Override any GCC internal prototype to avoid an error.
9806    Use char because int might match the return type of a GCC
9807    builtin and then its argument prototype would still apply.  */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char dlopen ();
9812 int
9813 main ()
9814 {
9815 return dlopen ();
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824   *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827   (eval "$ac_link") 2>conftest.er1
9828   ac_status=$?
9829   grep -v '^ *+' conftest.er1 >conftest.err
9830   rm -f conftest.er1
9831   cat conftest.err >&5
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } && {
9834          test -z "$ac_c_werror_flag" ||
9835          test ! -s conftest.err
9836        } && test -s conftest$ac_exeext &&
9837        $as_test_x conftest$ac_exeext; then
9838   ac_cv_lib_dl_dlopen=yes
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843         ac_cv_lib_dl_dlopen=no
9844 fi
9845
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847       conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9849 fi
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9852 if test $ac_cv_lib_dl_dlopen = yes; then
9853   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9854 else
9855   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9856 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9857 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   ac_check_lib_save_LIBS=$LIBS
9861 LIBS="-lsvld  $LIBS"
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h.  */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h.  */
9868
9869 /* Override any GCC internal prototype to avoid an error.
9870    Use char because int might match the return type of a GCC
9871    builtin and then its argument prototype would still apply.  */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char dlopen ();
9876 int
9877 main ()
9878 {
9879 return dlopen ();
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (ac_try="$ac_link"
9886 case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_link") 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } && {
9898          test -z "$ac_c_werror_flag" ||
9899          test ! -s conftest.err
9900        } && test -s conftest$ac_exeext &&
9901        $as_test_x conftest$ac_exeext; then
9902   ac_cv_lib_svld_dlopen=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907         ac_cv_lib_svld_dlopen=no
9908 fi
9909
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911       conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9913 fi
9914 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9915 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9916 if test $ac_cv_lib_svld_dlopen = yes; then
9917   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9918 else
9919   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9920 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-ldld  $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934    Use char because int might match the return type of a GCC
9935    builtin and then its argument prototype would still apply.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char dld_link ();
9940 int
9941 main ()
9942 {
9943 return dld_link ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_link") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } && {
9962          test -z "$ac_c_werror_flag" ||
9963          test ! -s conftest.err
9964        } && test -s conftest$ac_exeext &&
9965        $as_test_x conftest$ac_exeext; then
9966   ac_cv_lib_dld_dld_link=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         ac_cv_lib_dld_dld_link=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975       conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9980 if test $ac_cv_lib_dld_dld_link = yes; then
9981   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9982 fi
9983
9984
9985 fi
9986
9987
9988 fi
9989
9990
9991 fi
9992
9993
9994 fi
9995
9996
9997 fi
9998
9999     ;;
10000   esac
10001
10002   if test "x$lt_cv_dlopen" != xno; then
10003     enable_dlopen=yes
10004   else
10005     enable_dlopen=no
10006   fi
10007
10008   case $lt_cv_dlopen in
10009   dlopen)
10010     save_CPPFLAGS="$CPPFLAGS"
10011     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10012
10013     save_LDFLAGS="$LDFLAGS"
10014     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10015
10016     save_LIBS="$LIBS"
10017     LIBS="$lt_cv_dlopen_libs $LIBS"
10018
10019     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10020 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10021 if test "${lt_cv_dlopen_self+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024           if test "$cross_compiling" = yes; then :
10025   lt_cv_dlopen_self=cross
10026 else
10027   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10028   lt_status=$lt_dlunknown
10029   cat > conftest.$ac_ext <<EOF
10030 #line 10030 "configure"
10031 #include "confdefs.h"
10032
10033 #if HAVE_DLFCN_H
10034 #include <dlfcn.h>
10035 #endif
10036
10037 #include <stdio.h>
10038
10039 #ifdef RTLD_GLOBAL
10040 #  define LT_DLGLOBAL           RTLD_GLOBAL
10041 #else
10042 #  ifdef DL_GLOBAL
10043 #    define LT_DLGLOBAL         DL_GLOBAL
10044 #  else
10045 #    define LT_DLGLOBAL         0
10046 #  endif
10047 #endif
10048
10049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10050    find out it does not work in some platform. */
10051 #ifndef LT_DLLAZY_OR_NOW
10052 #  ifdef RTLD_LAZY
10053 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10054 #  else
10055 #    ifdef DL_LAZY
10056 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10057 #    else
10058 #      ifdef RTLD_NOW
10059 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10060 #      else
10061 #        ifdef DL_NOW
10062 #          define LT_DLLAZY_OR_NOW      DL_NOW
10063 #        else
10064 #          define LT_DLLAZY_OR_NOW      0
10065 #        endif
10066 #      endif
10067 #    endif
10068 #  endif
10069 #endif
10070
10071 #ifdef __cplusplus
10072 extern "C" void exit (int);
10073 #endif
10074
10075 void fnord() { int i=42;}
10076 int main ()
10077 {
10078   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10079   int status = $lt_dlunknown;
10080
10081   if (self)
10082     {
10083       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10084       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10085       /* dlclose (self); */
10086     }
10087   else
10088     puts (dlerror ());
10089
10090     exit (status);
10091 }
10092 EOF
10093   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094   (eval $ac_link) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10098     (./conftest; exit; ) >&5 2>/dev/null
10099     lt_status=$?
10100     case x$lt_status in
10101       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10102       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10103       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10104     esac
10105   else :
10106     # compilation failed
10107     lt_cv_dlopen_self=no
10108   fi
10109 fi
10110 rm -fr conftest*
10111
10112
10113 fi
10114 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10115 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10116
10117     if test "x$lt_cv_dlopen_self" = xyes; then
10118       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10119       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10120 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10121 if test "${lt_cv_dlopen_self_static+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124           if test "$cross_compiling" = yes; then :
10125   lt_cv_dlopen_self_static=cross
10126 else
10127   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10128   lt_status=$lt_dlunknown
10129   cat > conftest.$ac_ext <<EOF
10130 #line 10130 "configure"
10131 #include "confdefs.h"
10132
10133 #if HAVE_DLFCN_H
10134 #include <dlfcn.h>
10135 #endif
10136
10137 #include <stdio.h>
10138
10139 #ifdef RTLD_GLOBAL
10140 #  define LT_DLGLOBAL           RTLD_GLOBAL
10141 #else
10142 #  ifdef DL_GLOBAL
10143 #    define LT_DLGLOBAL         DL_GLOBAL
10144 #  else
10145 #    define LT_DLGLOBAL         0
10146 #  endif
10147 #endif
10148
10149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10150    find out it does not work in some platform. */
10151 #ifndef LT_DLLAZY_OR_NOW
10152 #  ifdef RTLD_LAZY
10153 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10154 #  else
10155 #    ifdef DL_LAZY
10156 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10157 #    else
10158 #      ifdef RTLD_NOW
10159 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10160 #      else
10161 #        ifdef DL_NOW
10162 #          define LT_DLLAZY_OR_NOW      DL_NOW
10163 #        else
10164 #          define LT_DLLAZY_OR_NOW      0
10165 #        endif
10166 #      endif
10167 #    endif
10168 #  endif
10169 #endif
10170
10171 #ifdef __cplusplus
10172 extern "C" void exit (int);
10173 #endif
10174
10175 void fnord() { int i=42;}
10176 int main ()
10177 {
10178   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10179   int status = $lt_dlunknown;
10180
10181   if (self)
10182     {
10183       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10184       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10185       /* dlclose (self); */
10186     }
10187   else
10188     puts (dlerror ());
10189
10190     exit (status);
10191 }
10192 EOF
10193   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194   (eval $ac_link) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10198     (./conftest; exit; ) >&5 2>/dev/null
10199     lt_status=$?
10200     case x$lt_status in
10201       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10202       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10203       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10204     esac
10205   else :
10206     # compilation failed
10207     lt_cv_dlopen_self_static=no
10208   fi
10209 fi
10210 rm -fr conftest*
10211
10212
10213 fi
10214 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10215 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10216     fi
10217
10218     CPPFLAGS="$save_CPPFLAGS"
10219     LDFLAGS="$save_LDFLAGS"
10220     LIBS="$save_LIBS"
10221     ;;
10222   esac
10223
10224   case $lt_cv_dlopen_self in
10225   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10226   *) enable_dlopen_self=unknown ;;
10227   esac
10228
10229   case $lt_cv_dlopen_self_static in
10230   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10231   *) enable_dlopen_self_static=unknown ;;
10232   esac
10233 fi
10234
10235
10236 # Report which library types will actually be built
10237 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10239 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10240 echo "${ECHO_T}$can_build_shared" >&6; }
10241
10242 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10243 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10244 test "$can_build_shared" = "no" && enable_shared=no
10245
10246 # On AIX, shared libraries and static libraries use the same namespace, and
10247 # are all built from PIC.
10248 case $host_os in
10249 aix3*)
10250   test "$enable_shared" = yes && enable_static=no
10251   if test -n "$RANLIB"; then
10252     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10253     postinstall_cmds='$RANLIB $lib'
10254   fi
10255   ;;
10256
10257 aix4* | aix5*)
10258   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10259     test "$enable_shared" = yes && enable_static=no
10260   fi
10261     ;;
10262 esac
10263 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10264 echo "${ECHO_T}$enable_shared" >&6; }
10265
10266 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10267 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10268 # Make sure either enable_shared or enable_static is yes.
10269 test "$enable_shared" = yes || enable_static=yes
10270 { echo "$as_me:$LINENO: result: $enable_static" >&5
10271 echo "${ECHO_T}$enable_static" >&6; }
10272
10273 # The else clause should only fire when bootstrapping the
10274 # libtool distribution, otherwise you forgot to ship ltmain.sh
10275 # with your package, and you will get complaints that there are
10276 # no rules to generate ltmain.sh.
10277 if test -f "$ltmain"; then
10278   # See if we are running on zsh, and set the options which allow our commands through
10279   # without removal of \ escapes.
10280   if test -n "${ZSH_VERSION+set}" ; then
10281     setopt NO_GLOB_SUBST
10282   fi
10283   # Now quote all the things that may contain metacharacters while being
10284   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10285   # variables and quote the copies for generation of the libtool script.
10286   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10287     SED SHELL STRIP \
10288     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10289     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10290     deplibs_check_method reload_flag reload_cmds need_locks \
10291     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10292     lt_cv_sys_global_symbol_to_c_name_address \
10293     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10294     old_postinstall_cmds old_postuninstall_cmds \
10295     compiler \
10296     CC \
10297     LD \
10298     lt_prog_compiler_wl \
10299     lt_prog_compiler_pic \
10300     lt_prog_compiler_static \
10301     lt_prog_compiler_no_builtin_flag \
10302     export_dynamic_flag_spec \
10303     thread_safe_flag_spec \
10304     whole_archive_flag_spec \
10305     enable_shared_with_static_runtimes \
10306     old_archive_cmds \
10307     old_archive_from_new_cmds \
10308     predep_objects \
10309     postdep_objects \
10310     predeps \
10311     postdeps \
10312     compiler_lib_search_path \
10313     archive_cmds \
10314     archive_expsym_cmds \
10315     postinstall_cmds \
10316     postuninstall_cmds \
10317     old_archive_from_expsyms_cmds \
10318     allow_undefined_flag \
10319     no_undefined_flag \
10320     export_symbols_cmds \
10321     hardcode_libdir_flag_spec \
10322     hardcode_libdir_flag_spec_ld \
10323     hardcode_libdir_separator \
10324     hardcode_automatic \
10325     module_cmds \
10326     module_expsym_cmds \
10327     lt_cv_prog_compiler_c_o \
10328     exclude_expsyms \
10329     include_expsyms; do
10330
10331     case $var in
10332     old_archive_cmds | \
10333     old_archive_from_new_cmds | \
10334     archive_cmds | \
10335     archive_expsym_cmds | \
10336     module_cmds | \
10337     module_expsym_cmds | \
10338     old_archive_from_expsyms_cmds | \
10339     export_symbols_cmds | \
10340     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10341     postinstall_cmds | postuninstall_cmds | \
10342     old_postinstall_cmds | old_postuninstall_cmds | \
10343     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10344       # Double-quote double-evaled strings.
10345       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10346       ;;
10347     *)
10348       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10349       ;;
10350     esac
10351   done
10352
10353   case $lt_echo in
10354   *'\$0 --fallback-echo"')
10355     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10356     ;;
10357   esac
10358
10359 cfgfile="${ofile}T"
10360   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10361   $rm -f "$cfgfile"
10362   { echo "$as_me:$LINENO: creating $ofile" >&5
10363 echo "$as_me: creating $ofile" >&6;}
10364
10365   cat <<__EOF__ >> "$cfgfile"
10366 #! $SHELL
10367
10368 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10369 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10370 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10371 #
10372 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10373 # Free Software Foundation, Inc.
10374 #
10375 # This file is part of GNU Libtool:
10376 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10377 #
10378 # This program is free software; you can redistribute it and/or modify
10379 # it under the terms of the GNU General Public License as published by
10380 # the Free Software Foundation; either version 2 of the License, or
10381 # (at your option) any later version.
10382 #
10383 # This program is distributed in the hope that it will be useful, but
10384 # WITHOUT ANY WARRANTY; without even the implied warranty of
10385 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10386 # General Public License for more details.
10387 #
10388 # You should have received a copy of the GNU General Public License
10389 # along with this program; if not, write to the Free Software
10390 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10391 #
10392 # As a special exception to the GNU General Public License, if you
10393 # distribute this file as part of a program that contains a
10394 # configuration script generated by Autoconf, you may include it under
10395 # the same distribution terms that you use for the rest of that program.
10396
10397 # A sed program that does not truncate output.
10398 SED=$lt_SED
10399
10400 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10401 Xsed="$SED -e 1s/^X//"
10402
10403 # The HP-UX ksh and POSIX shell print the target directory to stdout
10404 # if CDPATH is set.
10405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10406
10407 # The names of the tagged configurations supported by this script.
10408 available_tags=
10409
10410 # ### BEGIN LIBTOOL CONFIG
10411
10412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10413
10414 # Shell to use when invoking shell scripts.
10415 SHELL=$lt_SHELL
10416
10417 # Whether or not to build shared libraries.
10418 build_libtool_libs=$enable_shared
10419
10420 # Whether or not to build static libraries.
10421 build_old_libs=$enable_static
10422
10423 # Whether or not to add -lc for building shared libraries.
10424 build_libtool_need_lc=$archive_cmds_need_lc
10425
10426 # Whether or not to disallow shared libs when runtime libs are static
10427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10428
10429 # Whether or not to optimize for fast installation.
10430 fast_install=$enable_fast_install
10431
10432 # The host system.
10433 host_alias=$host_alias
10434 host=$host
10435 host_os=$host_os
10436
10437 # The build system.
10438 build_alias=$build_alias
10439 build=$build
10440 build_os=$build_os
10441
10442 # An echo program that does not interpret backslashes.
10443 echo=$lt_echo
10444
10445 # The archiver.
10446 AR=$lt_AR
10447 AR_FLAGS=$lt_AR_FLAGS
10448
10449 # A C compiler.
10450 LTCC=$lt_LTCC
10451
10452 # LTCC compiler flags.
10453 LTCFLAGS=$lt_LTCFLAGS
10454
10455 # A language-specific compiler.
10456 CC=$lt_compiler
10457
10458 # Is the compiler the GNU C compiler?
10459 with_gcc=$GCC
10460
10461 # An ERE matcher.
10462 EGREP=$lt_EGREP
10463
10464 # The linker used to build libraries.
10465 LD=$lt_LD
10466
10467 # Whether we need hard or soft links.
10468 LN_S=$lt_LN_S
10469
10470 # A BSD-compatible nm program.
10471 NM=$lt_NM
10472
10473 # A symbol stripping program
10474 STRIP=$lt_STRIP
10475
10476 # Used to examine libraries when file_magic_cmd begins "file"
10477 MAGIC_CMD=$MAGIC_CMD
10478
10479 # Used on cygwin: DLL creation program.
10480 DLLTOOL="$DLLTOOL"
10481
10482 # Used on cygwin: object dumper.
10483 OBJDUMP="$OBJDUMP"
10484
10485 # Used on cygwin: assembler.
10486 AS="$AS"
10487
10488 # The name of the directory that contains temporary libtool files.
10489 objdir=$objdir
10490
10491 # How to create reloadable object files.
10492 reload_flag=$lt_reload_flag
10493 reload_cmds=$lt_reload_cmds
10494
10495 # How to pass a linker flag through the compiler.
10496 wl=$lt_lt_prog_compiler_wl
10497
10498 # Object file suffix (normally "o").
10499 objext="$ac_objext"
10500
10501 # Old archive suffix (normally "a").
10502 libext="$libext"
10503
10504 # Shared library suffix (normally ".so").
10505 shrext_cmds='$shrext_cmds'
10506
10507 # Executable file suffix (normally "").
10508 exeext="$exeext"
10509
10510 # Additional compiler flags for building library objects.
10511 pic_flag=$lt_lt_prog_compiler_pic
10512 pic_mode=$pic_mode
10513
10514 # What is the maximum length of a command?
10515 max_cmd_len=$lt_cv_sys_max_cmd_len
10516
10517 # Does compiler simultaneously support -c and -o options?
10518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10519
10520 # Must we lock files when doing compilation?
10521 need_locks=$lt_need_locks
10522
10523 # Do we need the lib prefix for modules?
10524 need_lib_prefix=$need_lib_prefix
10525
10526 # Do we need a version for libraries?
10527 need_version=$need_version
10528
10529 # Whether dlopen is supported.
10530 dlopen_support=$enable_dlopen
10531
10532 # Whether dlopen of programs is supported.
10533 dlopen_self=$enable_dlopen_self
10534
10535 # Whether dlopen of statically linked programs is supported.
10536 dlopen_self_static=$enable_dlopen_self_static
10537
10538 # Compiler flag to prevent dynamic linking.
10539 link_static_flag=$lt_lt_prog_compiler_static
10540
10541 # Compiler flag to turn off builtin functions.
10542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10543
10544 # Compiler flag to allow reflexive dlopens.
10545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10546
10547 # Compiler flag to generate shared objects directly from archives.
10548 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10549
10550 # Compiler flag to generate thread-safe objects.
10551 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10552
10553 # Library versioning type.
10554 version_type=$version_type
10555
10556 # Format of library name prefix.
10557 libname_spec=$lt_libname_spec
10558
10559 # List of archive names.  First name is the real one, the rest are links.
10560 # The last name is the one that the linker finds with -lNAME.
10561 library_names_spec=$lt_library_names_spec
10562
10563 # The coded name of the library, if different from the real name.
10564 soname_spec=$lt_soname_spec
10565
10566 # Commands used to build and install an old-style archive.
10567 RANLIB=$lt_RANLIB
10568 old_archive_cmds=$lt_old_archive_cmds
10569 old_postinstall_cmds=$lt_old_postinstall_cmds
10570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10571
10572 # Create an old-style archive from a shared archive.
10573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10574
10575 # Create a temporary old-style archive to link instead of a shared archive.
10576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10577
10578 # Commands used to build and install a shared archive.
10579 archive_cmds=$lt_archive_cmds
10580 archive_expsym_cmds=$lt_archive_expsym_cmds
10581 postinstall_cmds=$lt_postinstall_cmds
10582 postuninstall_cmds=$lt_postuninstall_cmds
10583
10584 # Commands used to build a loadable module (assumed same as above if empty)
10585 module_cmds=$lt_module_cmds
10586 module_expsym_cmds=$lt_module_expsym_cmds
10587
10588 # Commands to strip libraries.
10589 old_striplib=$lt_old_striplib
10590 striplib=$lt_striplib
10591
10592 # Dependencies to place before the objects being linked to create a
10593 # shared library.
10594 predep_objects=$lt_predep_objects
10595
10596 # Dependencies to place after the objects being linked to create a
10597 # shared library.
10598 postdep_objects=$lt_postdep_objects
10599
10600 # Dependencies to place before the objects being linked to create a
10601 # shared library.
10602 predeps=$lt_predeps
10603
10604 # Dependencies to place after the objects being linked to create a
10605 # shared library.
10606 postdeps=$lt_postdeps
10607
10608 # The library search path used internally by the compiler when linking
10609 # a shared library.
10610 compiler_lib_search_path=$lt_compiler_lib_search_path
10611
10612 # Method to check whether dependent libraries are shared objects.
10613 deplibs_check_method=$lt_deplibs_check_method
10614
10615 # Command to use when deplibs_check_method == file_magic.
10616 file_magic_cmd=$lt_file_magic_cmd
10617
10618 # Flag that allows shared libraries with undefined symbols to be built.
10619 allow_undefined_flag=$lt_allow_undefined_flag
10620
10621 # Flag that forces no undefined symbols.
10622 no_undefined_flag=$lt_no_undefined_flag
10623
10624 # Commands used to finish a libtool library installation in a directory.
10625 finish_cmds=$lt_finish_cmds
10626
10627 # Same as above, but a single script fragment to be evaled but not shown.
10628 finish_eval=$lt_finish_eval
10629
10630 # Take the output of nm and produce a listing of raw symbols and C names.
10631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10632
10633 # Transform the output of nm in a proper C declaration
10634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10635
10636 # Transform the output of nm in a C name address pair
10637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10638
10639 # This is the shared library runtime path variable.
10640 runpath_var=$runpath_var
10641
10642 # This is the shared library path variable.
10643 shlibpath_var=$shlibpath_var
10644
10645 # Is shlibpath searched before the hard-coded library search path?
10646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10647
10648 # How to hardcode a shared library path into an executable.
10649 hardcode_action=$hardcode_action
10650
10651 # Whether we should hardcode library paths into libraries.
10652 hardcode_into_libs=$hardcode_into_libs
10653
10654 # Flag to hardcode \$libdir into a binary during linking.
10655 # This must work even if \$libdir does not exist.
10656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10657
10658 # If ld is used when linking, flag to hardcode \$libdir into
10659 # a binary during linking. This must work even if \$libdir does
10660 # not exist.
10661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10662
10663 # Whether we need a single -rpath flag with a separated argument.
10664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10665
10666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10667 # resulting binary.
10668 hardcode_direct=$hardcode_direct
10669
10670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10671 # resulting binary.
10672 hardcode_minus_L=$hardcode_minus_L
10673
10674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10675 # the resulting binary.
10676 hardcode_shlibpath_var=$hardcode_shlibpath_var
10677
10678 # Set to yes if building a shared library automatically hardcodes DIR into the library
10679 # and all subsequent libraries and executables linked against it.
10680 hardcode_automatic=$hardcode_automatic
10681
10682 # Variables whose values should be saved in libtool wrapper scripts and
10683 # restored at relink time.
10684 variables_saved_for_relink="$variables_saved_for_relink"
10685
10686 # Whether libtool must link a program against all its dependency libraries.
10687 link_all_deplibs=$link_all_deplibs
10688
10689 # Compile-time system search path for libraries
10690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10691
10692 # Run-time system search path for libraries
10693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10694
10695 # Fix the shell variable \$srcfile for the compiler.
10696 fix_srcfile_path="$fix_srcfile_path"
10697
10698 # Set to yes if exported symbols are required.
10699 always_export_symbols=$always_export_symbols
10700
10701 # The commands to list exported symbols.
10702 export_symbols_cmds=$lt_export_symbols_cmds
10703
10704 # The commands to extract the exported symbol list from a shared archive.
10705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10706
10707 # Symbols that should not be listed in the preloaded symbols.
10708 exclude_expsyms=$lt_exclude_expsyms
10709
10710 # Symbols that must always be exported.
10711 include_expsyms=$lt_include_expsyms
10712
10713 # ### END LIBTOOL CONFIG
10714
10715 __EOF__
10716
10717
10718   case $host_os in
10719   aix3*)
10720     cat <<\EOF >> "$cfgfile"
10721
10722 # AIX sometimes has problems with the GCC collect2 program.  For some
10723 # reason, if we set the COLLECT_NAMES environment variable, the problems
10724 # vanish in a puff of smoke.
10725 if test "X${COLLECT_NAMES+set}" != Xset; then
10726   COLLECT_NAMES=
10727   export COLLECT_NAMES
10728 fi
10729 EOF
10730     ;;
10731   esac
10732
10733   # We use sed instead of cat because bash on DJGPP gets confused if
10734   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10735   # text mode, it properly converts lines to CR/LF.  This bash problem
10736   # is reportedly fixed, but why not run on old versions too?
10737   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10738
10739   mv -f "$cfgfile" "$ofile" || \
10740     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10741   chmod +x "$ofile"
10742
10743 else
10744   # If there is no Makefile yet, we rely on a make rule to execute
10745   # `config.status --recheck' to rerun these tests and create the
10746   # libtool script then.
10747   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10748   if test -f "$ltmain_in"; then
10749     test -f Makefile && make "$ltmain"
10750   fi
10751 fi
10752
10753
10754 ac_ext=c
10755 ac_cpp='$CPP $CPPFLAGS'
10756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10759
10760 CC="$lt_save_CC"
10761
10762
10763 # Check whether --with-tags was given.
10764 if test "${with_tags+set}" = set; then
10765   withval=$with_tags; tagnames="$withval"
10766 fi
10767
10768
10769 if test -f "$ltmain" && test -n "$tagnames"; then
10770   if test ! -f "${ofile}"; then
10771     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10772 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10773   fi
10774
10775   if test -z "$LTCC"; then
10776     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10777     if test -z "$LTCC"; then
10778       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10779 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10780     else
10781       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10782 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10783     fi
10784   fi
10785   if test -z "$LTCFLAGS"; then
10786     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10787   fi
10788
10789   # Extract list of available tagged configurations in $ofile.
10790   # Note that this assumes the entire list is on one line.
10791   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10792
10793   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10794   for tagname in $tagnames; do
10795     IFS="$lt_save_ifs"
10796     # Check whether tagname contains only valid characters
10797     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10798     "") ;;
10799     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10800 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10801    { (exit 1); exit 1; }; }
10802         ;;
10803     esac
10804
10805     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10806     then
10807       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10808 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10809    { (exit 1); exit 1; }; }
10810     fi
10811
10812     # Update the list of available tags.
10813     if test -n "$tagname"; then
10814       echo appending configuration tag \"$tagname\" to $ofile
10815
10816       case $tagname in
10817       CXX)
10818         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10819             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10820             (test "X$CXX" != "Xg++"))) ; then
10821           ac_ext=cpp
10822 ac_cpp='$CXXCPP $CPPFLAGS'
10823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10826
10827
10828
10829
10830 archive_cmds_need_lc_CXX=no
10831 allow_undefined_flag_CXX=
10832 always_export_symbols_CXX=no
10833 archive_expsym_cmds_CXX=
10834 export_dynamic_flag_spec_CXX=
10835 hardcode_direct_CXX=no
10836 hardcode_libdir_flag_spec_CXX=
10837 hardcode_libdir_flag_spec_ld_CXX=
10838 hardcode_libdir_separator_CXX=
10839 hardcode_minus_L_CXX=no
10840 hardcode_shlibpath_var_CXX=unsupported
10841 hardcode_automatic_CXX=no
10842 module_cmds_CXX=
10843 module_expsym_cmds_CXX=
10844 link_all_deplibs_CXX=unknown
10845 old_archive_cmds_CXX=$old_archive_cmds
10846 no_undefined_flag_CXX=
10847 whole_archive_flag_spec_CXX=
10848 enable_shared_with_static_runtimes_CXX=no
10849
10850 # Dependencies to place before and after the object being linked:
10851 predep_objects_CXX=
10852 postdep_objects_CXX=
10853 predeps_CXX=
10854 postdeps_CXX=
10855 compiler_lib_search_path_CXX=
10856
10857 # Source file extension for C++ test sources.
10858 ac_ext=cpp
10859
10860 # Object file extension for compiled C++ test sources.
10861 objext=o
10862 objext_CXX=$objext
10863
10864 # Code to be used in simple compile tests
10865 lt_simple_compile_test_code="int some_variable = 0;\n"
10866
10867 # Code to be used in simple link tests
10868 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10869
10870 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10871
10872 # If no C compiler was specified, use CC.
10873 LTCC=${LTCC-"$CC"}
10874
10875 # If no C compiler flags were specified, use CFLAGS.
10876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10877
10878 # Allow CC to be a program name with arguments.
10879 compiler=$CC
10880
10881
10882 # save warnings/boilerplate of simple test code
10883 ac_outfile=conftest.$ac_objext
10884 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10886 _lt_compiler_boilerplate=`cat conftest.err`
10887 $rm conftest*
10888
10889 ac_outfile=conftest.$ac_objext
10890 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10891 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10892 _lt_linker_boilerplate=`cat conftest.err`
10893 $rm conftest*
10894
10895
10896 # Allow CC to be a program name with arguments.
10897 lt_save_CC=$CC
10898 lt_save_LD=$LD
10899 lt_save_GCC=$GCC
10900 GCC=$GXX
10901 lt_save_with_gnu_ld=$with_gnu_ld
10902 lt_save_path_LD=$lt_cv_path_LD
10903 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10904   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10905 else
10906   $as_unset lt_cv_prog_gnu_ld
10907 fi
10908 if test -n "${lt_cv_path_LDCXX+set}"; then
10909   lt_cv_path_LD=$lt_cv_path_LDCXX
10910 else
10911   $as_unset lt_cv_path_LD
10912 fi
10913 test -z "${LDCXX+set}" || LD=$LDCXX
10914 CC=${CXX-"c++"}
10915 compiler=$CC
10916 compiler_CXX=$CC
10917 for cc_temp in $compiler""; do
10918   case $cc_temp in
10919     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10920     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10921     \-*) ;;
10922     *) break;;
10923   esac
10924 done
10925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10926
10927
10928 # We don't want -fno-exception wen compiling C++ code, so set the
10929 # no_builtin_flag separately
10930 if test "$GXX" = yes; then
10931   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10932 else
10933   lt_prog_compiler_no_builtin_flag_CXX=
10934 fi
10935
10936 if test "$GXX" = yes; then
10937   # Set up default GNU C++ configuration
10938
10939
10940 # Check whether --with-gnu-ld was given.
10941 if test "${with_gnu_ld+set}" = set; then
10942   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10943 else
10944   with_gnu_ld=no
10945 fi
10946
10947 ac_prog=ld
10948 if test "$GCC" = yes; then
10949   # Check if gcc -print-prog-name=ld gives a path.
10950   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10951 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10952   case $host in
10953   *-*-mingw*)
10954     # gcc leaves a trailing carriage return which upsets mingw
10955     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10956   *)
10957     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10958   esac
10959   case $ac_prog in
10960     # Accept absolute paths.
10961     [\\/]* | ?:[\\/]*)
10962       re_direlt='/[^/][^/]*/\.\./'
10963       # Canonicalize the pathname of ld
10964       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10965       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10966         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10967       done
10968       test -z "$LD" && LD="$ac_prog"
10969       ;;
10970   "")
10971     # If it fails, then pretend we aren't using GCC.
10972     ac_prog=ld
10973     ;;
10974   *)
10975     # If it is relative, then search for the first ld in PATH.
10976     with_gnu_ld=unknown
10977     ;;
10978   esac
10979 elif test "$with_gnu_ld" = yes; then
10980   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10981 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10982 else
10983   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10984 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10985 fi
10986 if test "${lt_cv_path_LD+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   if test -z "$LD"; then
10990   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10991   for ac_dir in $PATH; do
10992     IFS="$lt_save_ifs"
10993     test -z "$ac_dir" && ac_dir=.
10994     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10995       lt_cv_path_LD="$ac_dir/$ac_prog"
10996       # Check to see if the program is GNU ld.  I'd rather use --version,
10997       # but apparently some variants of GNU ld only accept -v.
10998       # Break only if it was the GNU/non-GNU ld that we prefer.
10999       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11000       *GNU* | *'with BFD'*)
11001         test "$with_gnu_ld" != no && break
11002         ;;
11003       *)
11004         test "$with_gnu_ld" != yes && break
11005         ;;
11006       esac
11007     fi
11008   done
11009   IFS="$lt_save_ifs"
11010 else
11011   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11012 fi
11013 fi
11014
11015 LD="$lt_cv_path_LD"
11016 if test -n "$LD"; then
11017   { echo "$as_me:$LINENO: result: $LD" >&5
11018 echo "${ECHO_T}$LD" >&6; }
11019 else
11020   { echo "$as_me:$LINENO: result: no" >&5
11021 echo "${ECHO_T}no" >&6; }
11022 fi
11023 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11024 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11025    { (exit 1); exit 1; }; }
11026 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11027 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11028 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11032 case `$LD -v 2>&1 </dev/null` in
11033 *GNU* | *'with BFD'*)
11034   lt_cv_prog_gnu_ld=yes
11035   ;;
11036 *)
11037   lt_cv_prog_gnu_ld=no
11038   ;;
11039 esac
11040 fi
11041 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11042 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11043 with_gnu_ld=$lt_cv_prog_gnu_ld
11044
11045
11046
11047   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11048   # archiving commands below assume that GNU ld is being used.
11049   if test "$with_gnu_ld" = yes; then
11050     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11051     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'
11052
11053     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11054     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11055
11056     # If archive_cmds runs LD, not CC, wlarc should be empty
11057     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11058     #     investigate it a little bit more. (MM)
11059     wlarc='${wl}'
11060
11061     # ancient GNU ld didn't support --whole-archive et. al.
11062     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11063         grep 'no-whole-archive' > /dev/null; then
11064       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11065     else
11066       whole_archive_flag_spec_CXX=
11067     fi
11068   else
11069     with_gnu_ld=no
11070     wlarc=
11071
11072     # A generic and very simple default shared library creation
11073     # command for GNU C++ for the case where it uses the native
11074     # linker, instead of GNU ld.  If possible, this setting should
11075     # overridden to take advantage of the native linker features on
11076     # the platform it is being used on.
11077     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11078   fi
11079
11080   # Commands to make compiler produce verbose output that lists
11081   # what "hidden" libraries, object files and flags are used when
11082   # linking a shared library.
11083   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11084
11085 else
11086   GXX=no
11087   with_gnu_ld=no
11088   wlarc=
11089 fi
11090
11091 # PORTME: fill in a description of your system's C++ link characteristics
11092 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11093 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11094 ld_shlibs_CXX=yes
11095 case $host_os in
11096   aix3*)
11097     # FIXME: insert proper C++ library support
11098     ld_shlibs_CXX=no
11099     ;;
11100   aix4* | aix5*)
11101     if test "$host_cpu" = ia64; then
11102       # On IA64, the linker does run time linking by default, so we don't
11103       # have to do anything special.
11104       aix_use_runtimelinking=no
11105       exp_sym_flag='-Bexport'
11106       no_entry_flag=""
11107     else
11108       aix_use_runtimelinking=no
11109
11110       # Test if we are trying to use run time linking or normal
11111       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11112       # need to do runtime linking.
11113       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11114         for ld_flag in $LDFLAGS; do
11115           case $ld_flag in
11116           *-brtl*)
11117             aix_use_runtimelinking=yes
11118             break
11119             ;;
11120           esac
11121         done
11122         ;;
11123       esac
11124
11125       exp_sym_flag='-bexport'
11126       no_entry_flag='-bnoentry'
11127     fi
11128
11129     # When large executables or shared objects are built, AIX ld can
11130     # have problems creating the table of contents.  If linking a library
11131     # or program results in "error TOC overflow" add -mminimal-toc to
11132     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11133     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11134
11135     archive_cmds_CXX=''
11136     hardcode_direct_CXX=yes
11137     hardcode_libdir_separator_CXX=':'
11138     link_all_deplibs_CXX=yes
11139
11140     if test "$GXX" = yes; then
11141       case $host_os in aix4.[012]|aix4.[012].*)
11142       # We only want to do this on AIX 4.2 and lower, the check
11143       # below for broken collect2 doesn't work under 4.3+
11144         collect2name=`${CC} -print-prog-name=collect2`
11145         if test -f "$collect2name" && \
11146            strings "$collect2name" | grep resolve_lib_name >/dev/null
11147         then
11148           # We have reworked collect2
11149           hardcode_direct_CXX=yes
11150         else
11151           # We have old collect2
11152           hardcode_direct_CXX=unsupported
11153           # It fails to find uninstalled libraries when the uninstalled
11154           # path is not listed in the libpath.  Setting hardcode_minus_L
11155           # to unsupported forces relinking
11156           hardcode_minus_L_CXX=yes
11157           hardcode_libdir_flag_spec_CXX='-L$libdir'
11158           hardcode_libdir_separator_CXX=
11159         fi
11160         ;;
11161       esac
11162       shared_flag='-shared'
11163       if test "$aix_use_runtimelinking" = yes; then
11164         shared_flag="$shared_flag "'${wl}-G'
11165       fi
11166     else
11167       # not using gcc
11168       if test "$host_cpu" = ia64; then
11169         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11170         # chokes on -Wl,-G. The following line is correct:
11171         shared_flag='-G'
11172       else
11173         if test "$aix_use_runtimelinking" = yes; then
11174           shared_flag='${wl}-G'
11175         else
11176           shared_flag='${wl}-bM:SRE'
11177         fi
11178       fi
11179     fi
11180
11181     # It seems that -bexpall does not export symbols beginning with
11182     # underscore (_), so it is better to generate a list of symbols to export.
11183     always_export_symbols_CXX=yes
11184     if test "$aix_use_runtimelinking" = yes; then
11185       # Warning - without using the other runtime loading flags (-brtl),
11186       # -berok will link without error, but may produce a broken library.
11187       allow_undefined_flag_CXX='-berok'
11188       # Determine the default libpath from the value encoded in an empty executable.
11189       cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h.  */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h.  */
11195
11196 int
11197 main ()
11198 {
11199
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (ac_try="$ac_link"
11206 case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_link") 2>conftest.er1
11212   ac_status=$?
11213   grep -v '^ *+' conftest.er1 >conftest.err
11214   rm -f conftest.er1
11215   cat conftest.err >&5
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } && {
11218          test -z "$ac_cxx_werror_flag" ||
11219          test ! -s conftest.err
11220        } && test -s conftest$ac_exeext &&
11221        $as_test_x conftest$ac_exeext; then
11222
11223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11224 }'`
11225 # Check for a 64-bit object if we didn't find anything.
11226 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11227 }'`; fi
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232
11233 fi
11234
11235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11236       conftest$ac_exeext conftest.$ac_ext
11237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11238
11239       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11240
11241       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"
11242      else
11243       if test "$host_cpu" = ia64; then
11244         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11245         allow_undefined_flag_CXX="-z nodefs"
11246         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"
11247       else
11248         # Determine the default libpath from the value encoded in an empty executable.
11249         cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255
11256 int
11257 main ()
11258 {
11259
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (ac_try="$ac_link"
11266 case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_link") 2>conftest.er1
11272   ac_status=$?
11273   grep -v '^ *+' conftest.er1 >conftest.err
11274   rm -f conftest.er1
11275   cat conftest.err >&5
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } && {
11278          test -z "$ac_cxx_werror_flag" ||
11279          test ! -s conftest.err
11280        } && test -s conftest$ac_exeext &&
11281        $as_test_x conftest$ac_exeext; then
11282
11283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11284 }'`
11285 # Check for a 64-bit object if we didn't find anything.
11286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11287 }'`; fi
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292
11293 fi
11294
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296       conftest$ac_exeext conftest.$ac_ext
11297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11298
11299         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11300         # Warning - without using the other run time loading flags,
11301         # -berok will link without error, but may produce a broken library.
11302         no_undefined_flag_CXX=' ${wl}-bernotok'
11303         allow_undefined_flag_CXX=' ${wl}-berok'
11304         # Exported symbols can be pulled into shared objects from archives
11305         whole_archive_flag_spec_CXX='$convenience'
11306         archive_cmds_need_lc_CXX=yes
11307         # This is similar to how AIX traditionally builds its shared libraries.
11308         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'
11309       fi
11310     fi
11311     ;;
11312
11313   beos*)
11314     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11315       allow_undefined_flag_CXX=unsupported
11316       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11317       # support --undefined.  This deserves some investigation.  FIXME
11318       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11319     else
11320       ld_shlibs_CXX=no
11321     fi
11322     ;;
11323
11324   chorus*)
11325     case $cc_basename in
11326       *)
11327         # FIXME: insert proper C++ library support
11328         ld_shlibs_CXX=no
11329         ;;
11330     esac
11331     ;;
11332
11333   cygwin* | mingw* | pw32*)
11334     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11335     # as there is no search path for DLLs.
11336     hardcode_libdir_flag_spec_CXX='-L$libdir'
11337     allow_undefined_flag_CXX=unsupported
11338     always_export_symbols_CXX=no
11339     enable_shared_with_static_runtimes_CXX=yes
11340
11341     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11342       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'
11343       # If the export-symbols file already is a .def file (1st line
11344       # is EXPORTS), use it as is; otherwise, prepend...
11345       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11346         cp $export_symbols $output_objdir/$soname.def;
11347       else
11348         echo EXPORTS > $output_objdir/$soname.def;
11349         cat $export_symbols >> $output_objdir/$soname.def;
11350       fi~
11351       $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'
11352     else
11353       ld_shlibs_CXX=no
11354     fi
11355   ;;
11356       darwin* | rhapsody*)
11357         case $host_os in
11358         rhapsody* | darwin1.[012])
11359          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11360          ;;
11361        *) # Darwin 1.3 on
11362          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11363            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11364          else
11365            case ${MACOSX_DEPLOYMENT_TARGET} in
11366              10.[012])
11367                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11368                ;;
11369              10.*)
11370                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11371                ;;
11372            esac
11373          fi
11374          ;;
11375         esac
11376       archive_cmds_need_lc_CXX=no
11377       hardcode_direct_CXX=no
11378       hardcode_automatic_CXX=yes
11379       hardcode_shlibpath_var_CXX=unsupported
11380       whole_archive_flag_spec_CXX=''
11381       link_all_deplibs_CXX=yes
11382
11383     if test "$GXX" = yes ; then
11384       lt_int_apple_cc_single_mod=no
11385       output_verbose_link_cmd='echo'
11386       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11387        lt_int_apple_cc_single_mod=yes
11388       fi
11389       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11390        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11391       else
11392           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'
11393         fi
11394         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11395         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11396           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11397             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}'
11398           else
11399             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}'
11400           fi
11401             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}'
11402       else
11403       case $cc_basename in
11404         xlc*)
11405          output_verbose_link_cmd='echo'
11406           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11407           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11408           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11409           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11410           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}'
11411           ;;
11412        *)
11413          ld_shlibs_CXX=no
11414           ;;
11415       esac
11416       fi
11417         ;;
11418
11419   dgux*)
11420     case $cc_basename in
11421       ec++*)
11422         # FIXME: insert proper C++ library support
11423         ld_shlibs_CXX=no
11424         ;;
11425       ghcx*)
11426         # Green Hills C++ Compiler
11427         # FIXME: insert proper C++ library support
11428         ld_shlibs_CXX=no
11429         ;;
11430       *)
11431         # FIXME: insert proper C++ library support
11432         ld_shlibs_CXX=no
11433         ;;
11434     esac
11435     ;;
11436   freebsd[12]*)
11437     # C++ shared libraries reported to be fairly broken before switch to ELF
11438     ld_shlibs_CXX=no
11439     ;;
11440   freebsd-elf*)
11441     archive_cmds_need_lc_CXX=no
11442     ;;
11443   freebsd* | dragonfly*)
11444     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11445     # conventions
11446     ld_shlibs_CXX=yes
11447     ;;
11448   gnu*)
11449     ;;
11450   hpux9*)
11451     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11452     hardcode_libdir_separator_CXX=:
11453     export_dynamic_flag_spec_CXX='${wl}-E'
11454     hardcode_direct_CXX=yes
11455     hardcode_minus_L_CXX=yes # Not in the search PATH,
11456                                 # but as the default
11457                                 # location of the library.
11458
11459     case $cc_basename in
11460     CC*)
11461       # FIXME: insert proper C++ library support
11462       ld_shlibs_CXX=no
11463       ;;
11464     aCC*)
11465       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'
11466       # Commands to make compiler produce verbose output that lists
11467       # what "hidden" libraries, object files and flags are used when
11468       # linking a shared library.
11469       #
11470       # There doesn't appear to be a way to prevent this compiler from
11471       # explicitly linking system object files so we need to strip them
11472       # from the output so that they don't get included in the library
11473       # dependencies.
11474       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'
11475       ;;
11476     *)
11477       if test "$GXX" = yes; then
11478         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'
11479       else
11480         # FIXME: insert proper C++ library support
11481         ld_shlibs_CXX=no
11482       fi
11483       ;;
11484     esac
11485     ;;
11486   hpux10*|hpux11*)
11487     if test $with_gnu_ld = no; then
11488       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11489       hardcode_libdir_separator_CXX=:
11490
11491       case $host_cpu in
11492       hppa*64*|ia64*)
11493         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11494         ;;
11495       *)
11496         export_dynamic_flag_spec_CXX='${wl}-E'
11497         ;;
11498       esac
11499     fi
11500     case $host_cpu in
11501     hppa*64*|ia64*)
11502       hardcode_direct_CXX=no
11503       hardcode_shlibpath_var_CXX=no
11504       ;;
11505     *)
11506       hardcode_direct_CXX=yes
11507       hardcode_minus_L_CXX=yes # Not in the search PATH,
11508                                               # but as the default
11509                                               # location of the library.
11510       ;;
11511     esac
11512
11513     case $cc_basename in
11514       CC*)
11515         # FIXME: insert proper C++ library support
11516         ld_shlibs_CXX=no
11517         ;;
11518       aCC*)
11519         case $host_cpu in
11520         hppa*64*)
11521           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522           ;;
11523         ia64*)
11524           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525           ;;
11526         *)
11527           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11528           ;;
11529         esac
11530         # Commands to make compiler produce verbose output that lists
11531         # what "hidden" libraries, object files and flags are used when
11532         # linking a shared library.
11533         #
11534         # There doesn't appear to be a way to prevent this compiler from
11535         # explicitly linking system object files so we need to strip them
11536         # from the output so that they don't get included in the library
11537         # dependencies.
11538         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11539         ;;
11540       *)
11541         if test "$GXX" = yes; then
11542           if test $with_gnu_ld = no; then
11543             case $host_cpu in
11544             hppa*64*)
11545               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11546               ;;
11547             ia64*)
11548               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11549               ;;
11550             *)
11551               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'
11552               ;;
11553             esac
11554           fi
11555         else
11556           # FIXME: insert proper C++ library support
11557           ld_shlibs_CXX=no
11558         fi
11559         ;;
11560     esac
11561     ;;
11562   interix3*)
11563     hardcode_direct_CXX=no
11564     hardcode_shlibpath_var_CXX=no
11565     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11566     export_dynamic_flag_spec_CXX='${wl}-E'
11567     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11568     # Instead, shared libraries are loaded at an image base (0x10000000 by
11569     # default) and relocated if they conflict, which is a slow very memory
11570     # consuming and fragmenting process.  To avoid this, we pick a random,
11571     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11572     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11573     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'
11574     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'
11575     ;;
11576   irix5* | irix6*)
11577     case $cc_basename in
11578       CC*)
11579         # SGI C++
11580         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'
11581
11582         # Archives containing C++ object files must be created using
11583         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11584         # necessary to make sure instantiated templates are included
11585         # in the archive.
11586         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11587         ;;
11588       *)
11589         if test "$GXX" = yes; then
11590           if test "$with_gnu_ld" = no; then
11591             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'
11592           else
11593             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'
11594           fi
11595         fi
11596         link_all_deplibs_CXX=yes
11597         ;;
11598     esac
11599     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11600     hardcode_libdir_separator_CXX=:
11601     ;;
11602   linux* | k*bsd*-gnu)
11603     case $cc_basename in
11604       KCC*)
11605         # Kuck and Associates, Inc. (KAI) C++ Compiler
11606
11607         # KCC will only create a shared library if the output file
11608         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11609         # to its proper name (with version) after linking.
11610         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'
11611         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'
11612         # Commands to make compiler produce verbose output that lists
11613         # what "hidden" libraries, object files and flags are used when
11614         # linking a shared library.
11615         #
11616         # There doesn't appear to be a way to prevent this compiler from
11617         # explicitly linking system object files so we need to strip them
11618         # from the output so that they don't get included in the library
11619         # dependencies.
11620         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'
11621
11622         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11623         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11624
11625         # Archives containing C++ object files must be created using
11626         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11627         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11628         ;;
11629       icpc*)
11630         # Intel C++
11631         with_gnu_ld=yes
11632         # version 8.0 and above of icpc choke on multiply defined symbols
11633         # if we add $predep_objects and $postdep_objects, however 7.1 and
11634         # earlier do not add the objects themselves.
11635         case `$CC -V 2>&1` in
11636         *"Version 7."*)
11637           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11638           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'
11639           ;;
11640         *)  # Version 8.0 or newer
11641           tmp_idyn=
11642           case $host_cpu in
11643             ia64*) tmp_idyn=' -i_dynamic';;
11644           esac
11645           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646           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'
11647           ;;
11648         esac
11649         archive_cmds_need_lc_CXX=no
11650         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11651         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11652         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11653         ;;
11654       pgCC*)
11655         # Portland Group C++ compiler
11656         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11657         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'
11658
11659         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11660         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11661         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'
11662         ;;
11663       cxx*)
11664         # Compaq C++
11665         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11666         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'
11667
11668         runpath_var=LD_RUN_PATH
11669         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11670         hardcode_libdir_separator_CXX=:
11671
11672         # Commands to make compiler produce verbose output that lists
11673         # what "hidden" libraries, object files and flags are used when
11674         # linking a shared library.
11675         #
11676         # There doesn't appear to be a way to prevent this compiler from
11677         # explicitly linking system object files so we need to strip them
11678         # from the output so that they don't get included in the library
11679         # dependencies.
11680         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'
11681         ;;
11682     esac
11683     ;;
11684   lynxos*)
11685     # FIXME: insert proper C++ library support
11686     ld_shlibs_CXX=no
11687     ;;
11688   m88k*)
11689     # FIXME: insert proper C++ library support
11690     ld_shlibs_CXX=no
11691     ;;
11692   mvs*)
11693     case $cc_basename in
11694       cxx*)
11695         # FIXME: insert proper C++ library support
11696         ld_shlibs_CXX=no
11697         ;;
11698       *)
11699         # FIXME: insert proper C++ library support
11700         ld_shlibs_CXX=no
11701         ;;
11702     esac
11703     ;;
11704   netbsd* | netbsdelf*-gnu)
11705     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11706       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11707       wlarc=
11708       hardcode_libdir_flag_spec_CXX='-R$libdir'
11709       hardcode_direct_CXX=yes
11710       hardcode_shlibpath_var_CXX=no
11711     fi
11712     # Workaround some broken pre-1.5 toolchains
11713     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11714     ;;
11715   openbsd2*)
11716     # C++ shared libraries are fairly broken
11717     ld_shlibs_CXX=no
11718     ;;
11719   openbsd*)
11720     hardcode_direct_CXX=yes
11721     hardcode_shlibpath_var_CXX=no
11722     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11723     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11724     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11725       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11726       export_dynamic_flag_spec_CXX='${wl}-E'
11727       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11728     fi
11729     output_verbose_link_cmd='echo'
11730     ;;
11731   osf3*)
11732     case $cc_basename in
11733       KCC*)
11734         # Kuck and Associates, Inc. (KAI) C++ Compiler
11735
11736         # KCC will only create a shared library if the output file
11737         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11738         # to its proper name (with version) after linking.
11739         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'
11740
11741         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11742         hardcode_libdir_separator_CXX=:
11743
11744         # Archives containing C++ object files must be created using
11745         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11746         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11747
11748         ;;
11749       RCC*)
11750         # Rational C++ 2.4.1
11751         # FIXME: insert proper C++ library support
11752         ld_shlibs_CXX=no
11753         ;;
11754       cxx*)
11755         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11756         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'
11757
11758         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11759         hardcode_libdir_separator_CXX=:
11760
11761         # Commands to make compiler produce verbose output that lists
11762         # what "hidden" libraries, object files and flags are used when
11763         # linking a shared library.
11764         #
11765         # There doesn't appear to be a way to prevent this compiler from
11766         # explicitly linking system object files so we need to strip them
11767         # from the output so that they don't get included in the library
11768         # dependencies.
11769         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'
11770         ;;
11771       *)
11772         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11773           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11774           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'
11775
11776           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11777           hardcode_libdir_separator_CXX=:
11778
11779           # Commands to make compiler produce verbose output that lists
11780           # what "hidden" libraries, object files and flags are used when
11781           # linking a shared library.
11782           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11783
11784         else
11785           # FIXME: insert proper C++ library support
11786           ld_shlibs_CXX=no
11787         fi
11788         ;;
11789     esac
11790     ;;
11791   osf4* | osf5*)
11792     case $cc_basename in
11793       KCC*)
11794         # Kuck and Associates, Inc. (KAI) C++ Compiler
11795
11796         # KCC will only create a shared library if the output file
11797         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11798         # to its proper name (with version) after linking.
11799         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'
11800
11801         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11802         hardcode_libdir_separator_CXX=:
11803
11804         # Archives containing C++ object files must be created using
11805         # the KAI C++ compiler.
11806         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11807         ;;
11808       RCC*)
11809         # Rational C++ 2.4.1
11810         # FIXME: insert proper C++ library support
11811         ld_shlibs_CXX=no
11812         ;;
11813       cxx*)
11814         allow_undefined_flag_CXX=' -expect_unresolved \*'
11815         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'
11816         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11817           echo "-hidden">> $lib.exp~
11818           $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~
11819           $rm $lib.exp'
11820
11821         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11822         hardcode_libdir_separator_CXX=:
11823
11824         # Commands to make compiler produce verbose output that lists
11825         # what "hidden" libraries, object files and flags are used when
11826         # linking a shared library.
11827         #
11828         # There doesn't appear to be a way to prevent this compiler from
11829         # explicitly linking system object files so we need to strip them
11830         # from the output so that they don't get included in the library
11831         # dependencies.
11832         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'
11833         ;;
11834       *)
11835         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11836           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11837          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'
11838
11839           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11840           hardcode_libdir_separator_CXX=:
11841
11842           # Commands to make compiler produce verbose output that lists
11843           # what "hidden" libraries, object files and flags are used when
11844           # linking a shared library.
11845           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11846
11847         else
11848           # FIXME: insert proper C++ library support
11849           ld_shlibs_CXX=no
11850         fi
11851         ;;
11852     esac
11853     ;;
11854   psos*)
11855     # FIXME: insert proper C++ library support
11856     ld_shlibs_CXX=no
11857     ;;
11858   sunos4*)
11859     case $cc_basename in
11860       CC*)
11861         # Sun C++ 4.x
11862         # FIXME: insert proper C++ library support
11863         ld_shlibs_CXX=no
11864         ;;
11865       lcc*)
11866         # Lucid
11867         # FIXME: insert proper C++ library support
11868         ld_shlibs_CXX=no
11869         ;;
11870       *)
11871         # FIXME: insert proper C++ library support
11872         ld_shlibs_CXX=no
11873         ;;
11874     esac
11875     ;;
11876   solaris*)
11877     case $cc_basename in
11878       CC*)
11879         # Sun C++ 4.2, 5.x and Centerline C++
11880         archive_cmds_need_lc_CXX=yes
11881         no_undefined_flag_CXX=' -zdefs'
11882         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11883         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11884         $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'
11885
11886         hardcode_libdir_flag_spec_CXX='-R$libdir'
11887         hardcode_shlibpath_var_CXX=no
11888         case $host_os in
11889           solaris2.[0-5] | solaris2.[0-5].*) ;;
11890           *)
11891             # The C++ compiler is used as linker so we must use $wl
11892             # flag to pass the commands to the underlying system
11893             # linker. We must also pass each convience library through
11894             # to the system linker between allextract/defaultextract.
11895             # The C++ compiler will combine linker options so we
11896             # cannot just pass the convience library names through
11897             # without $wl.
11898             # Supported since Solaris 2.6 (maybe 2.5.1?)
11899             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11900             ;;
11901         esac
11902         link_all_deplibs_CXX=yes
11903
11904         output_verbose_link_cmd='echo'
11905
11906         # Archives containing C++ object files must be created using
11907         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11908         # necessary to make sure instantiated templates are included
11909         # in the archive.
11910         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11911         ;;
11912       gcx*)
11913         # Green Hills C++ Compiler
11914         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11915
11916         # The C++ compiler must be used to create the archive.
11917         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11918         ;;
11919       *)
11920         # GNU C++ compiler with Solaris linker
11921         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11922           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11923           if $CC --version | grep -v '^2\.7' > /dev/null; then
11924             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11925             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11926                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11927
11928             # Commands to make compiler produce verbose output that lists
11929             # what "hidden" libraries, object files and flags are used when
11930             # linking a shared library.
11931             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11932           else
11933             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11934             # platform.
11935             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11936             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11937                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11938
11939             # Commands to make compiler produce verbose output that lists
11940             # what "hidden" libraries, object files and flags are used when
11941             # linking a shared library.
11942             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11943           fi
11944
11945           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11946         fi
11947         ;;
11948     esac
11949     ;;
11950   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11951     no_undefined_flag_CXX='${wl}-z,text'
11952     archive_cmds_need_lc_CXX=no
11953     hardcode_shlibpath_var_CXX=no
11954     runpath_var='LD_RUN_PATH'
11955
11956     case $cc_basename in
11957       CC*)
11958         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960         ;;
11961       *)
11962         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11963         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964         ;;
11965     esac
11966     ;;
11967   sysv5* | sco3.2v5* | sco5v6*)
11968     # Note: We can NOT use -z defs as we might desire, because we do not
11969     # link with -lc, and that would cause any symbols used from libc to
11970     # always be unresolved, which means just about no library would
11971     # ever link correctly.  If we're not using GNU ld we use -z text
11972     # though, which does catch some bad symbols but isn't as heavy-handed
11973     # as -z defs.
11974     # For security reasons, it is highly recommended that you always
11975     # use absolute paths for naming shared libraries, and exclude the
11976     # DT_RUNPATH tag from executables and libraries.  But doing so
11977     # requires that you compile everything twice, which is a pain.
11978     # So that behaviour is only enabled if SCOABSPATH is set to a
11979     # non-empty value in the environment.  Most likely only useful for
11980     # creating official distributions of packages.
11981     # This is a hack until libtool officially supports absolute path
11982     # names for shared libraries.
11983     no_undefined_flag_CXX='${wl}-z,text'
11984     allow_undefined_flag_CXX='${wl}-z,nodefs'
11985     archive_cmds_need_lc_CXX=no
11986     hardcode_shlibpath_var_CXX=no
11987     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11988     hardcode_libdir_separator_CXX=':'
11989     link_all_deplibs_CXX=yes
11990     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11991     runpath_var='LD_RUN_PATH'
11992
11993     case $cc_basename in
11994       CC*)
11995         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11996         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11997         ;;
11998       *)
11999         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12000         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12001         ;;
12002     esac
12003     ;;
12004   tandem*)
12005     case $cc_basename in
12006       NCC*)
12007         # NonStop-UX NCC 3.20
12008         # FIXME: insert proper C++ library support
12009         ld_shlibs_CXX=no
12010         ;;
12011       *)
12012         # FIXME: insert proper C++ library support
12013         ld_shlibs_CXX=no
12014         ;;
12015     esac
12016     ;;
12017   vxworks*)
12018     # FIXME: insert proper C++ library support
12019     ld_shlibs_CXX=no
12020     ;;
12021   *)
12022     # FIXME: insert proper C++ library support
12023     ld_shlibs_CXX=no
12024     ;;
12025 esac
12026 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12027 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12028 test "$ld_shlibs_CXX" = no && can_build_shared=no
12029
12030 GCC_CXX="$GXX"
12031 LD_CXX="$LD"
12032
12033
12034 cat > conftest.$ac_ext <<EOF
12035 class Foo
12036 {
12037 public:
12038   Foo (void) { a = 0; }
12039 private:
12040   int a;
12041 };
12042 EOF
12043
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045   (eval $ac_compile) 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; then
12049   # Parse the compiler output and extract the necessary
12050   # objects, libraries and library flags.
12051
12052   # Sentinel used to keep track of whether or not we are before
12053   # the conftest object file.
12054   pre_test_object_deps_done=no
12055
12056   # The `*' in the case matches for architectures that use `case' in
12057   # $output_verbose_cmd can trigger glob expansion during the loop
12058   # eval without this substitution.
12059   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12060
12061   for p in `eval $output_verbose_link_cmd`; do
12062     case $p in
12063
12064     -L* | -R* | -l*)
12065        # Some compilers place space between "-{L,R}" and the path.
12066        # Remove the space.
12067        if test $p = "-L" \
12068           || test $p = "-R"; then
12069          prev=$p
12070          continue
12071        else
12072          prev=
12073        fi
12074
12075        if test "$pre_test_object_deps_done" = no; then
12076          case $p in
12077          -L* | -R*)
12078            # Internal compiler library paths should come after those
12079            # provided the user.  The postdeps already come after the
12080            # user supplied libs so there is no need to process them.
12081            if test -z "$compiler_lib_search_path_CXX"; then
12082              compiler_lib_search_path_CXX="${prev}${p}"
12083            else
12084              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12085            fi
12086            ;;
12087          # The "-l" case would never come before the object being
12088          # linked, so don't bother handling this case.
12089          esac
12090        else
12091          if test -z "$postdeps_CXX"; then
12092            postdeps_CXX="${prev}${p}"
12093          else
12094            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12095          fi
12096        fi
12097        ;;
12098
12099     *.$objext)
12100        # This assumes that the test object file only shows up
12101        # once in the compiler output.
12102        if test "$p" = "conftest.$objext"; then
12103          pre_test_object_deps_done=yes
12104          continue
12105        fi
12106
12107        if test "$pre_test_object_deps_done" = no; then
12108          if test -z "$predep_objects_CXX"; then
12109            predep_objects_CXX="$p"
12110          else
12111            predep_objects_CXX="$predep_objects_CXX $p"
12112          fi
12113        else
12114          if test -z "$postdep_objects_CXX"; then
12115            postdep_objects_CXX="$p"
12116          else
12117            postdep_objects_CXX="$postdep_objects_CXX $p"
12118          fi
12119        fi
12120        ;;
12121
12122     *) ;; # Ignore the rest.
12123
12124     esac
12125   done
12126
12127   # Clean up.
12128   rm -f a.out a.exe
12129 else
12130   echo "libtool.m4: error: problem compiling CXX test program"
12131 fi
12132
12133 $rm -f confest.$objext
12134
12135 # PORTME: override above test on systems where it is broken
12136 case $host_os in
12137 interix3*)
12138   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12139   # hack all around it, let's just trust "g++" to DTRT.
12140   predep_objects_CXX=
12141   postdep_objects_CXX=
12142   postdeps_CXX=
12143   ;;
12144
12145 solaris*)
12146   case $cc_basename in
12147   CC*)
12148     # Adding this requires a known-good setup of shared libraries for
12149     # Sun compiler versions before 5.6, else PIC objects from an old
12150     # archive will be linked into the output, leading to subtle bugs.
12151     postdeps_CXX='-lCstd -lCrun'
12152     ;;
12153   esac
12154   ;;
12155 esac
12156
12157
12158 case " $postdeps_CXX " in
12159 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12160 esac
12161
12162 lt_prog_compiler_wl_CXX=
12163 lt_prog_compiler_pic_CXX=
12164 lt_prog_compiler_static_CXX=
12165
12166 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12168
12169   # C++ specific cases for pic, static, wl, etc.
12170   if test "$GXX" = yes; then
12171     lt_prog_compiler_wl_CXX='-Wl,'
12172     lt_prog_compiler_static_CXX='-static'
12173
12174     case $host_os in
12175     aix*)
12176       # All AIX code is PIC.
12177       if test "$host_cpu" = ia64; then
12178         # AIX 5 now supports IA64 processor
12179         lt_prog_compiler_static_CXX='-Bstatic'
12180       fi
12181       ;;
12182     amigaos*)
12183       # FIXME: we need at least 68020 code to build shared libraries, but
12184       # adding the `-m68020' flag to GCC prevents building anything better,
12185       # like `-m68040'.
12186       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12187       ;;
12188     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12189       # PIC is the default for these OSes.
12190       ;;
12191     mingw* | os2* | pw32*)
12192       # This hack is so that the source file can tell whether it is being
12193       # built for inclusion in a dll (and should export symbols for example).
12194       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12195       ;;
12196     darwin* | rhapsody*)
12197       # PIC is the default on this platform
12198       # Common symbols not allowed in MH_DYLIB files
12199       lt_prog_compiler_pic_CXX='-fno-common'
12200       ;;
12201     *djgpp*)
12202       # DJGPP does not support shared libraries at all
12203       lt_prog_compiler_pic_CXX=
12204       ;;
12205     interix3*)
12206       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12207       # Instead, we relocate shared libraries at runtime.
12208       ;;
12209     sysv4*MP*)
12210       if test -d /usr/nec; then
12211         lt_prog_compiler_pic_CXX=-Kconform_pic
12212       fi
12213       ;;
12214     hpux*)
12215       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12216       # not for PA HP-UX.
12217       case $host_cpu in
12218       hppa*64*|ia64*)
12219         ;;
12220       *)
12221         lt_prog_compiler_pic_CXX='-fPIC'
12222         ;;
12223       esac
12224       ;;
12225     *)
12226       lt_prog_compiler_pic_CXX='-fPIC'
12227       ;;
12228     esac
12229   else
12230     case $host_os in
12231       aix4* | aix5*)
12232         # All AIX code is PIC.
12233         if test "$host_cpu" = ia64; then
12234           # AIX 5 now supports IA64 processor
12235           lt_prog_compiler_static_CXX='-Bstatic'
12236         else
12237           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12238         fi
12239         ;;
12240       chorus*)
12241         case $cc_basename in
12242         cxch68*)
12243           # Green Hills C++ Compiler
12244           # _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"
12245           ;;
12246         esac
12247         ;;
12248        darwin*)
12249          # PIC is the default on this platform
12250          # Common symbols not allowed in MH_DYLIB files
12251          case $cc_basename in
12252            xlc*)
12253            lt_prog_compiler_pic_CXX='-qnocommon'
12254            lt_prog_compiler_wl_CXX='-Wl,'
12255            ;;
12256          esac
12257        ;;
12258       dgux*)
12259         case $cc_basename in
12260           ec++*)
12261             lt_prog_compiler_pic_CXX='-KPIC'
12262             ;;
12263           ghcx*)
12264             # Green Hills C++ Compiler
12265             lt_prog_compiler_pic_CXX='-pic'
12266             ;;
12267           *)
12268             ;;
12269         esac
12270         ;;
12271       freebsd* | dragonfly*)
12272         # FreeBSD uses GNU C++
12273         ;;
12274       hpux9* | hpux10* | hpux11*)
12275         case $cc_basename in
12276           CC*)
12277             lt_prog_compiler_wl_CXX='-Wl,'
12278             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12279             if test "$host_cpu" != ia64; then
12280               lt_prog_compiler_pic_CXX='+Z'
12281             fi
12282             ;;
12283           aCC*)
12284             lt_prog_compiler_wl_CXX='-Wl,'
12285             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12286             case $host_cpu in
12287             hppa*64*|ia64*)
12288               # +Z the default
12289               ;;
12290             *)
12291               lt_prog_compiler_pic_CXX='+Z'
12292               ;;
12293             esac
12294             ;;
12295           *)
12296             ;;
12297         esac
12298         ;;
12299       interix*)
12300         # This is c89, which is MS Visual C++ (no shared libs)
12301         # Anyone wants to do a port?
12302         ;;
12303       irix5* | irix6* | nonstopux*)
12304         case $cc_basename in
12305           CC*)
12306             lt_prog_compiler_wl_CXX='-Wl,'
12307             lt_prog_compiler_static_CXX='-non_shared'
12308             # CC pic flag -KPIC is the default.
12309             ;;
12310           *)
12311             ;;
12312         esac
12313         ;;
12314       linux* | k*bsd*-gnu)
12315         case $cc_basename in
12316           KCC*)
12317             # KAI C++ Compiler
12318             lt_prog_compiler_wl_CXX='--backend -Wl,'
12319             lt_prog_compiler_pic_CXX='-fPIC'
12320             ;;
12321           icpc* | ecpc*)
12322             # Intel C++
12323             lt_prog_compiler_wl_CXX='-Wl,'
12324             lt_prog_compiler_pic_CXX='-KPIC'
12325             lt_prog_compiler_static_CXX='-static'
12326             ;;
12327           pgCC*)
12328             # Portland Group C++ compiler.
12329             lt_prog_compiler_wl_CXX='-Wl,'
12330             lt_prog_compiler_pic_CXX='-fpic'
12331             lt_prog_compiler_static_CXX='-Bstatic'
12332             ;;
12333           cxx*)
12334             # Compaq C++
12335             # Make sure the PIC flag is empty.  It appears that all Alpha
12336             # Linux and Compaq Tru64 Unix objects are PIC.
12337             lt_prog_compiler_pic_CXX=
12338             lt_prog_compiler_static_CXX='-non_shared'
12339             ;;
12340           *)
12341             ;;
12342         esac
12343         ;;
12344       lynxos*)
12345         ;;
12346       m88k*)
12347         ;;
12348       mvs*)
12349         case $cc_basename in
12350           cxx*)
12351             lt_prog_compiler_pic_CXX='-W c,exportall'
12352             ;;
12353           *)
12354             ;;
12355         esac
12356         ;;
12357       netbsd* | netbsdelf*-gnu)
12358         ;;
12359       osf3* | osf4* | osf5*)
12360         case $cc_basename in
12361           KCC*)
12362             lt_prog_compiler_wl_CXX='--backend -Wl,'
12363             ;;
12364           RCC*)
12365             # Rational C++ 2.4.1
12366             lt_prog_compiler_pic_CXX='-pic'
12367             ;;
12368           cxx*)
12369             # Digital/Compaq C++
12370             lt_prog_compiler_wl_CXX='-Wl,'
12371             # Make sure the PIC flag is empty.  It appears that all Alpha
12372             # Linux and Compaq Tru64 Unix objects are PIC.
12373             lt_prog_compiler_pic_CXX=
12374             lt_prog_compiler_static_CXX='-non_shared'
12375             ;;
12376           *)
12377             ;;
12378         esac
12379         ;;
12380       psos*)
12381         ;;
12382       solaris*)
12383         case $cc_basename in
12384           CC*)
12385             # Sun C++ 4.2, 5.x and Centerline C++
12386             lt_prog_compiler_pic_CXX='-KPIC'
12387             lt_prog_compiler_static_CXX='-Bstatic'
12388             lt_prog_compiler_wl_CXX='-Qoption ld '
12389             ;;
12390           gcx*)
12391             # Green Hills C++ Compiler
12392             lt_prog_compiler_pic_CXX='-PIC'
12393             ;;
12394           *)
12395             ;;
12396         esac
12397         ;;
12398       sunos4*)
12399         case $cc_basename in
12400           CC*)
12401             # Sun C++ 4.x
12402             lt_prog_compiler_pic_CXX='-pic'
12403             lt_prog_compiler_static_CXX='-Bstatic'
12404             ;;
12405           lcc*)
12406             # Lucid
12407             lt_prog_compiler_pic_CXX='-pic'
12408             ;;
12409           *)
12410             ;;
12411         esac
12412         ;;
12413       tandem*)
12414         case $cc_basename in
12415           NCC*)
12416             # NonStop-UX NCC 3.20
12417             lt_prog_compiler_pic_CXX='-KPIC'
12418             ;;
12419           *)
12420             ;;
12421         esac
12422         ;;
12423       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12424         case $cc_basename in
12425           CC*)
12426             lt_prog_compiler_wl_CXX='-Wl,'
12427             lt_prog_compiler_pic_CXX='-KPIC'
12428             lt_prog_compiler_static_CXX='-Bstatic'
12429             ;;
12430         esac
12431         ;;
12432       vxworks*)
12433         ;;
12434       *)
12435         lt_prog_compiler_can_build_shared_CXX=no
12436         ;;
12437     esac
12438   fi
12439
12440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12441 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12442
12443 #
12444 # Check to make sure the PIC flag actually works.
12445 #
12446 if test -n "$lt_prog_compiler_pic_CXX"; then
12447
12448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12450 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   lt_prog_compiler_pic_works_CXX=no
12454   ac_outfile=conftest.$ac_objext
12455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12456    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12457    # Insert the option either (1) after the last *FLAGS variable, or
12458    # (2) before a word containing "conftest.", or (3) at the end.
12459    # Note that $ac_compile itself does not contain backslashes and begins
12460    # with a dollar sign (not a hyphen), so the echo should work correctly.
12461    # The option is referenced via a variable to avoid confusing sed.
12462    lt_compile=`echo "$ac_compile" | $SED \
12463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12465    -e 's:$: $lt_compiler_flag:'`
12466    (eval echo "\"\$as_me:12466: $lt_compile\"" >&5)
12467    (eval "$lt_compile" 2>conftest.err)
12468    ac_status=$?
12469    cat conftest.err >&5
12470    echo "$as_me:12470: \$? = $ac_status" >&5
12471    if (exit $ac_status) && test -s "$ac_outfile"; then
12472      # The compiler can only warn and ignore the option if not recognized
12473      # So say no if there are warnings other than the usual output.
12474      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12477        lt_prog_compiler_pic_works_CXX=yes
12478      fi
12479    fi
12480    $rm conftest*
12481
12482 fi
12483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12484 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12485
12486 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12487     case $lt_prog_compiler_pic_CXX in
12488      "" | " "*) ;;
12489      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12490      esac
12491 else
12492     lt_prog_compiler_pic_CXX=
12493      lt_prog_compiler_can_build_shared_CXX=no
12494 fi
12495
12496 fi
12497 case $host_os in
12498   # For platforms which do not support PIC, -DPIC is meaningless:
12499   *djgpp*)
12500     lt_prog_compiler_pic_CXX=
12501     ;;
12502   *)
12503     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12504     ;;
12505 esac
12506
12507 #
12508 # Check to make sure the static flag actually works.
12509 #
12510 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12513 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   lt_prog_compiler_static_works_CXX=no
12517    save_LDFLAGS="$LDFLAGS"
12518    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12519    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12520    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12521      # The linker can only warn and ignore the option if not recognized
12522      # So say no if there are warnings
12523      if test -s conftest.err; then
12524        # Append any errors to the config.log.
12525        cat conftest.err 1>&5
12526        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12527        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12528        if diff conftest.exp conftest.er2 >/dev/null; then
12529          lt_prog_compiler_static_works_CXX=yes
12530        fi
12531      else
12532        lt_prog_compiler_static_works_CXX=yes
12533      fi
12534    fi
12535    $rm conftest*
12536    LDFLAGS="$save_LDFLAGS"
12537
12538 fi
12539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12540 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12541
12542 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12543     :
12544 else
12545     lt_prog_compiler_static_CXX=
12546 fi
12547
12548
12549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12551 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   lt_cv_prog_compiler_c_o_CXX=no
12555    $rm -r conftest 2>/dev/null
12556    mkdir conftest
12557    cd conftest
12558    mkdir out
12559    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12560
12561    lt_compiler_flag="-o out/conftest2.$ac_objext"
12562    # Insert the option either (1) after the last *FLAGS variable, or
12563    # (2) before a word containing "conftest.", or (3) at the end.
12564    # Note that $ac_compile itself does not contain backslashes and begins
12565    # with a dollar sign (not a hyphen), so the echo should work correctly.
12566    lt_compile=`echo "$ac_compile" | $SED \
12567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12569    -e 's:$: $lt_compiler_flag:'`
12570    (eval echo "\"\$as_me:12570: $lt_compile\"" >&5)
12571    (eval "$lt_compile" 2>out/conftest.err)
12572    ac_status=$?
12573    cat out/conftest.err >&5
12574    echo "$as_me:12574: \$? = $ac_status" >&5
12575    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12576    then
12577      # The compiler can only warn and ignore the option if not recognized
12578      # So say no if there are warnings
12579      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12580      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12581      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12582        lt_cv_prog_compiler_c_o_CXX=yes
12583      fi
12584    fi
12585    chmod u+w . 2>&5
12586    $rm conftest*
12587    # SGI C++ compiler will create directory out/ii_files/ for
12588    # template instantiation
12589    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12590    $rm out/* && rmdir out
12591    cd ..
12592    rmdir conftest
12593    $rm conftest*
12594
12595 fi
12596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12598
12599
12600 hard_links="nottested"
12601 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12602   # do not overwrite the value of need_locks provided by the user
12603   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12605   hard_links=yes
12606   $rm conftest*
12607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12608   touch conftest.a
12609   ln conftest.a conftest.b 2>&5 || hard_links=no
12610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12611   { echo "$as_me:$LINENO: result: $hard_links" >&5
12612 echo "${ECHO_T}$hard_links" >&6; }
12613   if test "$hard_links" = no; then
12614     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12616     need_locks=warn
12617   fi
12618 else
12619   need_locks=no
12620 fi
12621
12622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12624
12625   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12626   case $host_os in
12627   aix4* | aix5*)
12628     # If we're using GNU nm, then we don't want the "-C" option.
12629     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12630     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12631       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'
12632     else
12633       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'
12634     fi
12635     ;;
12636   pw32*)
12637     export_symbols_cmds_CXX="$ltdll_cmds"
12638   ;;
12639   cygwin* | mingw*)
12640     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'
12641   ;;
12642   linux* | k*bsd*-gnu)
12643     link_all_deplibs_CXX=no
12644   ;;
12645   *)
12646     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12647   ;;
12648   esac
12649
12650 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12651 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12652 test "$ld_shlibs_CXX" = no && can_build_shared=no
12653
12654 #
12655 # Do we need to explicitly link libc?
12656 #
12657 case "x$archive_cmds_need_lc_CXX" in
12658 x|xyes)
12659   # Assume -lc should be added
12660   archive_cmds_need_lc_CXX=yes
12661
12662   if test "$enable_shared" = yes && test "$GCC" = yes; then
12663     case $archive_cmds_CXX in
12664     *'~'*)
12665       # FIXME: we may have to deal with multi-command sequences.
12666       ;;
12667     '$CC '*)
12668       # Test whether the compiler implicitly links with -lc since on some
12669       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12670       # to ld, don't add -lc before -lgcc.
12671       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12672 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12673       $rm conftest*
12674       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12675
12676       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677   (eval $ac_compile) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } 2>conftest.err; then
12681         soname=conftest
12682         lib=conftest
12683         libobjs=conftest.$ac_objext
12684         deplibs=
12685         wl=$lt_prog_compiler_wl_CXX
12686         pic_flag=$lt_prog_compiler_pic_CXX
12687         compiler_flags=-v
12688         linker_flags=-v
12689         verstring=
12690         output_objdir=.
12691         libname=conftest
12692         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12693         allow_undefined_flag_CXX=
12694         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12695   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }
12699         then
12700           archive_cmds_need_lc_CXX=no
12701         else
12702           archive_cmds_need_lc_CXX=yes
12703         fi
12704         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12705       else
12706         cat conftest.err 1>&5
12707       fi
12708       $rm conftest*
12709       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12710 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12711       ;;
12712     esac
12713   fi
12714   ;;
12715 esac
12716
12717 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12718 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12719 library_names_spec=
12720 libname_spec='lib$name'
12721 soname_spec=
12722 shrext_cmds=".so"
12723 postinstall_cmds=
12724 postuninstall_cmds=
12725 finish_cmds=
12726 finish_eval=
12727 shlibpath_var=
12728 shlibpath_overrides_runpath=unknown
12729 version_type=none
12730 dynamic_linker="$host_os ld.so"
12731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12732 if test "$GCC" = yes; then
12733   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12734   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12735     # if the path contains ";" then we assume it to be the separator
12736     # otherwise default to the standard path separator (i.e. ":") - it is
12737     # assumed that no part of a normal pathname contains ";" but that should
12738     # okay in the real world where ";" in dirpaths is itself problematic.
12739     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12740   else
12741     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12742   fi
12743 else
12744   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12745 fi
12746 need_lib_prefix=unknown
12747 hardcode_into_libs=no
12748
12749 # when you set need_version to no, make sure it does not cause -set_version
12750 # flags to be left without arguments
12751 need_version=unknown
12752
12753 case $host_os in
12754 aix3*)
12755   version_type=linux
12756   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12757   shlibpath_var=LIBPATH
12758
12759   # AIX 3 has no versioning support, so we append a major version to the name.
12760   soname_spec='${libname}${release}${shared_ext}$major'
12761   ;;
12762
12763 aix4* | aix5*)
12764   version_type=linux
12765   need_lib_prefix=no
12766   need_version=no
12767   hardcode_into_libs=yes
12768   if test "$host_cpu" = ia64; then
12769     # AIX 5 supports IA64
12770     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12771     shlibpath_var=LD_LIBRARY_PATH
12772   else
12773     # With GCC up to 2.95.x, collect2 would create an import file
12774     # for dependence libraries.  The import file would start with
12775     # the line `#! .'.  This would cause the generated library to
12776     # depend on `.', always an invalid library.  This was fixed in
12777     # development snapshots of GCC prior to 3.0.
12778     case $host_os in
12779       aix4 | aix4.[01] | aix4.[01].*)
12780       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12781            echo ' yes '
12782            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12783         :
12784       else
12785         can_build_shared=no
12786       fi
12787       ;;
12788     esac
12789     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12790     # soname into executable. Probably we can add versioning support to
12791     # collect2, so additional links can be useful in future.
12792     if test "$aix_use_runtimelinking" = yes; then
12793       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12794       # instead of lib<name>.a to let people know that these are not
12795       # typical AIX shared libraries.
12796       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797     else
12798       # We preserve .a as extension for shared libraries through AIX4.2
12799       # and later when we are not doing run time linking.
12800       library_names_spec='${libname}${release}.a $libname.a'
12801       soname_spec='${libname}${release}${shared_ext}$major'
12802     fi
12803     shlibpath_var=LIBPATH
12804   fi
12805   ;;
12806
12807 amigaos*)
12808   library_names_spec='$libname.ixlibrary $libname.a'
12809   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12810   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'
12811   ;;
12812
12813 beos*)
12814   library_names_spec='${libname}${shared_ext}'
12815   dynamic_linker="$host_os ld.so"
12816   shlibpath_var=LIBRARY_PATH
12817   ;;
12818
12819 bsdi[45]*)
12820   version_type=linux
12821   need_version=no
12822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12823   soname_spec='${libname}${release}${shared_ext}$major'
12824   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12825   shlibpath_var=LD_LIBRARY_PATH
12826   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12827   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12828   # the default ld.so.conf also contains /usr/contrib/lib and
12829   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12830   # libtool to hard-code these into programs
12831   ;;
12832
12833 cygwin* | mingw* | pw32*)
12834   version_type=windows
12835   shrext_cmds=".dll"
12836   need_version=no
12837   need_lib_prefix=no
12838
12839   case $GCC,$host_os in
12840   yes,cygwin* | yes,mingw* | yes,pw32*)
12841     library_names_spec='$libname.dll.a'
12842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12843     postinstall_cmds='base_file=`basename \${file}`~
12844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12845       dldir=$destdir/`dirname \$dlpath`~
12846       test -d \$dldir || mkdir -p \$dldir~
12847       $install_prog $dir/$dlname \$dldir/$dlname~
12848       chmod a+x \$dldir/$dlname'
12849     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12850       dlpath=$dir/\$dldll~
12851        $rm \$dlpath'
12852     shlibpath_overrides_runpath=yes
12853
12854     case $host_os in
12855     cygwin*)
12856       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12857       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12859       ;;
12860     mingw*)
12861       # MinGW DLLs use traditional 'lib' prefix
12862       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12863       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12864       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12865         # It is most probably a Windows format PATH printed by
12866         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12867         # path with ; separators, and with drive letters. We can handle the
12868         # drive letters (cygwin fileutils understands them), so leave them,
12869         # especially as we might pass files found there to a mingw objdump,
12870         # which wouldn't understand a cygwinified path. Ahh.
12871         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12872       else
12873         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12874       fi
12875       ;;
12876     pw32*)
12877       # pw32 DLLs use 'pw' prefix rather than 'lib'
12878       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12879       ;;
12880     esac
12881     ;;
12882
12883   *)
12884     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12885     ;;
12886   esac
12887   dynamic_linker='Win32 ld.exe'
12888   # FIXME: first we should search . and the directory the executable is in
12889   shlibpath_var=PATH
12890   ;;
12891
12892 darwin* | rhapsody*)
12893   dynamic_linker="$host_os dyld"
12894   version_type=darwin
12895   need_lib_prefix=no
12896   need_version=no
12897   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12898   soname_spec='${libname}${release}${major}$shared_ext'
12899   shlibpath_overrides_runpath=yes
12900   shlibpath_var=DYLD_LIBRARY_PATH
12901   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12902   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12903   if test "$GCC" = yes; then
12904     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12905   else
12906     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12907   fi
12908   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12909   ;;
12910
12911 dgux*)
12912   version_type=linux
12913   need_lib_prefix=no
12914   need_version=no
12915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12916   soname_spec='${libname}${release}${shared_ext}$major'
12917   shlibpath_var=LD_LIBRARY_PATH
12918   ;;
12919
12920 freebsd1*)
12921   dynamic_linker=no
12922   ;;
12923
12924 freebsd* | dragonfly*)
12925   # DragonFly does not have aout.  When/if they implement a new
12926   # versioning mechanism, adjust this.
12927   if test -x /usr/bin/objformat; then
12928     objformat=`/usr/bin/objformat`
12929   else
12930     case $host_os in
12931     freebsd[123]*) objformat=aout ;;
12932     *) objformat=elf ;;
12933     esac
12934   fi
12935   version_type=freebsd-$objformat
12936   case $version_type in
12937     freebsd-elf*)
12938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12939       need_version=no
12940       need_lib_prefix=no
12941       ;;
12942     freebsd-*)
12943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12944       need_version=yes
12945       ;;
12946   esac
12947   shlibpath_var=LD_LIBRARY_PATH
12948   case $host_os in
12949   freebsd2*)
12950     shlibpath_overrides_runpath=yes
12951     ;;
12952   freebsd3.[01]* | freebsdelf3.[01]*)
12953     shlibpath_overrides_runpath=yes
12954     hardcode_into_libs=yes
12955     ;;
12956   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12957   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12958     shlibpath_overrides_runpath=no
12959     hardcode_into_libs=yes
12960     ;;
12961   freebsd*) # from 4.6 on
12962     shlibpath_overrides_runpath=yes
12963     hardcode_into_libs=yes
12964     ;;
12965   esac
12966   ;;
12967
12968 gnu*)
12969   version_type=linux
12970   need_lib_prefix=no
12971   need_version=no
12972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12973   soname_spec='${libname}${release}${shared_ext}$major'
12974   shlibpath_var=LD_LIBRARY_PATH
12975   hardcode_into_libs=yes
12976   ;;
12977
12978 hpux9* | hpux10* | hpux11*)
12979   # Give a soname corresponding to the major version so that dld.sl refuses to
12980   # link against other versions.
12981   version_type=sunos
12982   need_lib_prefix=no
12983   need_version=no
12984   case $host_cpu in
12985   ia64*)
12986     shrext_cmds='.so'
12987     hardcode_into_libs=yes
12988     dynamic_linker="$host_os dld.so"
12989     shlibpath_var=LD_LIBRARY_PATH
12990     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992     soname_spec='${libname}${release}${shared_ext}$major'
12993     if test "X$HPUX_IA64_MODE" = X32; then
12994       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12995     else
12996       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12997     fi
12998     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12999     ;;
13000    hppa*64*)
13001      shrext_cmds='.sl'
13002      hardcode_into_libs=yes
13003      dynamic_linker="$host_os dld.sl"
13004      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13005      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13006      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007      soname_spec='${libname}${release}${shared_ext}$major'
13008      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13009      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13010      ;;
13011    *)
13012     shrext_cmds='.sl'
13013     dynamic_linker="$host_os dld.sl"
13014     shlibpath_var=SHLIB_PATH
13015     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017     soname_spec='${libname}${release}${shared_ext}$major'
13018     ;;
13019   esac
13020   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13021   postinstall_cmds='chmod 555 $lib'
13022   ;;
13023
13024 interix3*)
13025   version_type=linux
13026   need_lib_prefix=no
13027   need_version=no
13028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13029   soname_spec='${libname}${release}${shared_ext}$major'
13030   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13031   shlibpath_var=LD_LIBRARY_PATH
13032   shlibpath_overrides_runpath=no
13033   hardcode_into_libs=yes
13034   ;;
13035
13036 irix5* | irix6* | nonstopux*)
13037   case $host_os in
13038     nonstopux*) version_type=nonstopux ;;
13039     *)
13040         if test "$lt_cv_prog_gnu_ld" = yes; then
13041                 version_type=linux
13042         else
13043                 version_type=irix
13044         fi ;;
13045   esac
13046   need_lib_prefix=no
13047   need_version=no
13048   soname_spec='${libname}${release}${shared_ext}$major'
13049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13050   case $host_os in
13051   irix5* | nonstopux*)
13052     libsuff= shlibsuff=
13053     ;;
13054   *)
13055     case $LD in # libtool.m4 will add one of these switches to LD
13056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13057       libsuff= shlibsuff= libmagic=32-bit;;
13058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13059       libsuff=32 shlibsuff=N32 libmagic=N32;;
13060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13062     *) libsuff= shlibsuff= libmagic=never-match;;
13063     esac
13064     ;;
13065   esac
13066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13067   shlibpath_overrides_runpath=no
13068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13070   hardcode_into_libs=yes
13071   ;;
13072
13073 # No shared lib support for Linux oldld, aout, or coff.
13074 linux*oldld* | linux*aout* | linux*coff*)
13075   dynamic_linker=no
13076   ;;
13077
13078 # This must be Linux ELF.
13079 linux* | k*bsd*-gnu)
13080   version_type=linux
13081   need_lib_prefix=no
13082   need_version=no
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084   soname_spec='${libname}${release}${shared_ext}$major'
13085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13086   shlibpath_var=LD_LIBRARY_PATH
13087   shlibpath_overrides_runpath=no
13088   # This implies no fast_install, which is unacceptable.
13089   # Some rework will be needed to allow for fast_install
13090   # before this can be enabled.
13091   hardcode_into_libs=yes
13092
13093   # Append ld.so.conf contents to the search path
13094   if test -f /etc/ld.so.conf; then
13095     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13096     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13097   fi
13098
13099   # We used to test for /lib/ld.so.1 and disable shared libraries on
13100   # powerpc, because MkLinux only supported shared libraries with the
13101   # GNU dynamic linker.  Since this was broken with cross compilers,
13102   # most powerpc-linux boxes support dynamic linking these days and
13103   # people can always --disable-shared, the test was removed, and we
13104   # assume the GNU/Linux dynamic linker is in use.
13105   dynamic_linker='GNU/Linux ld.so'
13106   ;;
13107
13108 netbsdelf*-gnu)
13109   version_type=linux
13110   need_lib_prefix=no
13111   need_version=no
13112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13113   soname_spec='${libname}${release}${shared_ext}$major'
13114   shlibpath_var=LD_LIBRARY_PATH
13115   shlibpath_overrides_runpath=no
13116   hardcode_into_libs=yes
13117   dynamic_linker='NetBSD ld.elf_so'
13118   ;;
13119
13120 netbsd*)
13121   version_type=sunos
13122   need_lib_prefix=no
13123   need_version=no
13124   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13126     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13127     dynamic_linker='NetBSD (a.out) ld.so'
13128   else
13129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130     soname_spec='${libname}${release}${shared_ext}$major'
13131     dynamic_linker='NetBSD ld.elf_so'
13132   fi
13133   shlibpath_var=LD_LIBRARY_PATH
13134   shlibpath_overrides_runpath=yes
13135   hardcode_into_libs=yes
13136   ;;
13137
13138 newsos6)
13139   version_type=linux
13140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141   shlibpath_var=LD_LIBRARY_PATH
13142   shlibpath_overrides_runpath=yes
13143   ;;
13144
13145 nto-qnx*)
13146   version_type=linux
13147   need_lib_prefix=no
13148   need_version=no
13149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150   soname_spec='${libname}${release}${shared_ext}$major'
13151   shlibpath_var=LD_LIBRARY_PATH
13152   shlibpath_overrides_runpath=yes
13153   ;;
13154
13155 openbsd*)
13156   version_type=sunos
13157   sys_lib_dlsearch_path_spec="/usr/lib"
13158   need_lib_prefix=no
13159   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13160   case $host_os in
13161     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13162     *)                         need_version=no  ;;
13163   esac
13164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13166   shlibpath_var=LD_LIBRARY_PATH
13167   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13168     case $host_os in
13169       openbsd2.[89] | openbsd2.[89].*)
13170         shlibpath_overrides_runpath=no
13171         ;;
13172       *)
13173         shlibpath_overrides_runpath=yes
13174         ;;
13175       esac
13176   else
13177     shlibpath_overrides_runpath=yes
13178   fi
13179   ;;
13180
13181 os2*)
13182   libname_spec='$name'
13183   shrext_cmds=".dll"
13184   need_lib_prefix=no
13185   library_names_spec='$libname${shared_ext} $libname.a'
13186   dynamic_linker='OS/2 ld.exe'
13187   shlibpath_var=LIBPATH
13188   ;;
13189
13190 osf3* | osf4* | osf5*)
13191   version_type=osf
13192   need_lib_prefix=no
13193   need_version=no
13194   soname_spec='${libname}${release}${shared_ext}$major'
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196   shlibpath_var=LD_LIBRARY_PATH
13197   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13198   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13199   ;;
13200
13201 solaris*)
13202   version_type=linux
13203   need_lib_prefix=no
13204   need_version=no
13205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206   soname_spec='${libname}${release}${shared_ext}$major'
13207   shlibpath_var=LD_LIBRARY_PATH
13208   shlibpath_overrides_runpath=yes
13209   hardcode_into_libs=yes
13210   # ldd complains unless libraries are executable
13211   postinstall_cmds='chmod +x $lib'
13212   ;;
13213
13214 sunos4*)
13215   version_type=sunos
13216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13217   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13218   shlibpath_var=LD_LIBRARY_PATH
13219   shlibpath_overrides_runpath=yes
13220   if test "$with_gnu_ld" = yes; then
13221     need_lib_prefix=no
13222   fi
13223   need_version=yes
13224   ;;
13225
13226 sysv4 | sysv4.3*)
13227   version_type=linux
13228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229   soname_spec='${libname}${release}${shared_ext}$major'
13230   shlibpath_var=LD_LIBRARY_PATH
13231   case $host_vendor in
13232     sni)
13233       shlibpath_overrides_runpath=no
13234       need_lib_prefix=no
13235       export_dynamic_flag_spec='${wl}-Blargedynsym'
13236       runpath_var=LD_RUN_PATH
13237       ;;
13238     siemens)
13239       need_lib_prefix=no
13240       ;;
13241     motorola)
13242       need_lib_prefix=no
13243       need_version=no
13244       shlibpath_overrides_runpath=no
13245       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13246       ;;
13247   esac
13248   ;;
13249
13250 sysv4*MP*)
13251   if test -d /usr/nec ;then
13252     version_type=linux
13253     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13254     soname_spec='$libname${shared_ext}.$major'
13255     shlibpath_var=LD_LIBRARY_PATH
13256   fi
13257   ;;
13258
13259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13260   version_type=freebsd-elf
13261   need_lib_prefix=no
13262   need_version=no
13263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13264   soname_spec='${libname}${release}${shared_ext}$major'
13265   shlibpath_var=LD_LIBRARY_PATH
13266   hardcode_into_libs=yes
13267   if test "$with_gnu_ld" = yes; then
13268     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13269     shlibpath_overrides_runpath=no
13270   else
13271     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13272     shlibpath_overrides_runpath=yes
13273     case $host_os in
13274       sco3.2v5*)
13275         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13276         ;;
13277     esac
13278   fi
13279   sys_lib_dlsearch_path_spec='/usr/lib'
13280   ;;
13281
13282 uts4*)
13283   version_type=linux
13284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285   soname_spec='${libname}${release}${shared_ext}$major'
13286   shlibpath_var=LD_LIBRARY_PATH
13287   ;;
13288
13289 *)
13290   dynamic_linker=no
13291   ;;
13292 esac
13293 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13294 echo "${ECHO_T}$dynamic_linker" >&6; }
13295 test "$dynamic_linker" = no && can_build_shared=no
13296
13297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13298 if test "$GCC" = yes; then
13299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13300 fi
13301
13302 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13303 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13304 hardcode_action_CXX=
13305 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13306    test -n "$runpath_var_CXX" || \
13307    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13308
13309   # We can hardcode non-existant directories.
13310   if test "$hardcode_direct_CXX" != no &&
13311      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13312      # have to relink, otherwise we might link with an installed library
13313      # when we should be linking with a yet-to-be-installed one
13314      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13315      test "$hardcode_minus_L_CXX" != no; then
13316     # Linking always hardcodes the temporary library directory.
13317     hardcode_action_CXX=relink
13318   else
13319     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13320     hardcode_action_CXX=immediate
13321   fi
13322 else
13323   # We cannot hardcode anything, or else we can only hardcode existing
13324   # directories.
13325   hardcode_action_CXX=unsupported
13326 fi
13327 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13328 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13329
13330 if test "$hardcode_action_CXX" = relink; then
13331   # Fast installation is not supported
13332   enable_fast_install=no
13333 elif test "$shlibpath_overrides_runpath" = yes ||
13334      test "$enable_shared" = no; then
13335   # Fast installation is not necessary
13336   enable_fast_install=needless
13337 fi
13338
13339
13340 # The else clause should only fire when bootstrapping the
13341 # libtool distribution, otherwise you forgot to ship ltmain.sh
13342 # with your package, and you will get complaints that there are
13343 # no rules to generate ltmain.sh.
13344 if test -f "$ltmain"; then
13345   # See if we are running on zsh, and set the options which allow our commands through
13346   # without removal of \ escapes.
13347   if test -n "${ZSH_VERSION+set}" ; then
13348     setopt NO_GLOB_SUBST
13349   fi
13350   # Now quote all the things that may contain metacharacters while being
13351   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13352   # variables and quote the copies for generation of the libtool script.
13353   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13354     SED SHELL STRIP \
13355     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13356     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13357     deplibs_check_method reload_flag reload_cmds need_locks \
13358     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13359     lt_cv_sys_global_symbol_to_c_name_address \
13360     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13361     old_postinstall_cmds old_postuninstall_cmds \
13362     compiler_CXX \
13363     CC_CXX \
13364     LD_CXX \
13365     lt_prog_compiler_wl_CXX \
13366     lt_prog_compiler_pic_CXX \
13367     lt_prog_compiler_static_CXX \
13368     lt_prog_compiler_no_builtin_flag_CXX \
13369     export_dynamic_flag_spec_CXX \
13370     thread_safe_flag_spec_CXX \
13371     whole_archive_flag_spec_CXX \
13372     enable_shared_with_static_runtimes_CXX \
13373     old_archive_cmds_CXX \
13374     old_archive_from_new_cmds_CXX \
13375     predep_objects_CXX \
13376     postdep_objects_CXX \
13377     predeps_CXX \
13378     postdeps_CXX \
13379     compiler_lib_search_path_CXX \
13380     archive_cmds_CXX \
13381     archive_expsym_cmds_CXX \
13382     postinstall_cmds_CXX \
13383     postuninstall_cmds_CXX \
13384     old_archive_from_expsyms_cmds_CXX \
13385     allow_undefined_flag_CXX \
13386     no_undefined_flag_CXX \
13387     export_symbols_cmds_CXX \
13388     hardcode_libdir_flag_spec_CXX \
13389     hardcode_libdir_flag_spec_ld_CXX \
13390     hardcode_libdir_separator_CXX \
13391     hardcode_automatic_CXX \
13392     module_cmds_CXX \
13393     module_expsym_cmds_CXX \
13394     lt_cv_prog_compiler_c_o_CXX \
13395     exclude_expsyms_CXX \
13396     include_expsyms_CXX; do
13397
13398     case $var in
13399     old_archive_cmds_CXX | \
13400     old_archive_from_new_cmds_CXX | \
13401     archive_cmds_CXX | \
13402     archive_expsym_cmds_CXX | \
13403     module_cmds_CXX | \
13404     module_expsym_cmds_CXX | \
13405     old_archive_from_expsyms_cmds_CXX | \
13406     export_symbols_cmds_CXX | \
13407     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13408     postinstall_cmds | postuninstall_cmds | \
13409     old_postinstall_cmds | old_postuninstall_cmds | \
13410     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13411       # Double-quote double-evaled strings.
13412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13413       ;;
13414     *)
13415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13416       ;;
13417     esac
13418   done
13419
13420   case $lt_echo in
13421   *'\$0 --fallback-echo"')
13422     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13423     ;;
13424   esac
13425
13426 cfgfile="$ofile"
13427
13428   cat <<__EOF__ >> "$cfgfile"
13429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13430
13431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13432
13433 # Shell to use when invoking shell scripts.
13434 SHELL=$lt_SHELL
13435
13436 # Whether or not to build shared libraries.
13437 build_libtool_libs=$enable_shared
13438
13439 # Whether or not to build static libraries.
13440 build_old_libs=$enable_static
13441
13442 # Whether or not to add -lc for building shared libraries.
13443 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13444
13445 # Whether or not to disallow shared libs when runtime libs are static
13446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13447
13448 # Whether or not to optimize for fast installation.
13449 fast_install=$enable_fast_install
13450
13451 # The host system.
13452 host_alias=$host_alias
13453 host=$host
13454 host_os=$host_os
13455
13456 # The build system.
13457 build_alias=$build_alias
13458 build=$build
13459 build_os=$build_os
13460
13461 # An echo program that does not interpret backslashes.
13462 echo=$lt_echo
13463
13464 # The archiver.
13465 AR=$lt_AR
13466 AR_FLAGS=$lt_AR_FLAGS
13467
13468 # A C compiler.
13469 LTCC=$lt_LTCC
13470
13471 # LTCC compiler flags.
13472 LTCFLAGS=$lt_LTCFLAGS
13473
13474 # A language-specific compiler.
13475 CC=$lt_compiler_CXX
13476
13477 # Is the compiler the GNU C compiler?
13478 with_gcc=$GCC_CXX
13479
13480 # An ERE matcher.
13481 EGREP=$lt_EGREP
13482
13483 # The linker used to build libraries.
13484 LD=$lt_LD_CXX
13485
13486 # Whether we need hard or soft links.
13487 LN_S=$lt_LN_S
13488
13489 # A BSD-compatible nm program.
13490 NM=$lt_NM
13491
13492 # A symbol stripping program
13493 STRIP=$lt_STRIP
13494
13495 # Used to examine libraries when file_magic_cmd begins "file"
13496 MAGIC_CMD=$MAGIC_CMD
13497
13498 # Used on cygwin: DLL creation program.
13499 DLLTOOL="$DLLTOOL"
13500
13501 # Used on cygwin: object dumper.
13502 OBJDUMP="$OBJDUMP"
13503
13504 # Used on cygwin: assembler.
13505 AS="$AS"
13506
13507 # The name of the directory that contains temporary libtool files.
13508 objdir=$objdir
13509
13510 # How to create reloadable object files.
13511 reload_flag=$lt_reload_flag
13512 reload_cmds=$lt_reload_cmds
13513
13514 # How to pass a linker flag through the compiler.
13515 wl=$lt_lt_prog_compiler_wl_CXX
13516
13517 # Object file suffix (normally "o").
13518 objext="$ac_objext"
13519
13520 # Old archive suffix (normally "a").
13521 libext="$libext"
13522
13523 # Shared library suffix (normally ".so").
13524 shrext_cmds='$shrext_cmds'
13525
13526 # Executable file suffix (normally "").
13527 exeext="$exeext"
13528
13529 # Additional compiler flags for building library objects.
13530 pic_flag=$lt_lt_prog_compiler_pic_CXX
13531 pic_mode=$pic_mode
13532
13533 # What is the maximum length of a command?
13534 max_cmd_len=$lt_cv_sys_max_cmd_len
13535
13536 # Does compiler simultaneously support -c and -o options?
13537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13538
13539 # Must we lock files when doing compilation?
13540 need_locks=$lt_need_locks
13541
13542 # Do we need the lib prefix for modules?
13543 need_lib_prefix=$need_lib_prefix
13544
13545 # Do we need a version for libraries?
13546 need_version=$need_version
13547
13548 # Whether dlopen is supported.
13549 dlopen_support=$enable_dlopen
13550
13551 # Whether dlopen of programs is supported.
13552 dlopen_self=$enable_dlopen_self
13553
13554 # Whether dlopen of statically linked programs is supported.
13555 dlopen_self_static=$enable_dlopen_self_static
13556
13557 # Compiler flag to prevent dynamic linking.
13558 link_static_flag=$lt_lt_prog_compiler_static_CXX
13559
13560 # Compiler flag to turn off builtin functions.
13561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13562
13563 # Compiler flag to allow reflexive dlopens.
13564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13565
13566 # Compiler flag to generate shared objects directly from archives.
13567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13568
13569 # Compiler flag to generate thread-safe objects.
13570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13571
13572 # Library versioning type.
13573 version_type=$version_type
13574
13575 # Format of library name prefix.
13576 libname_spec=$lt_libname_spec
13577
13578 # List of archive names.  First name is the real one, the rest are links.
13579 # The last name is the one that the linker finds with -lNAME.
13580 library_names_spec=$lt_library_names_spec
13581
13582 # The coded name of the library, if different from the real name.
13583 soname_spec=$lt_soname_spec
13584
13585 # Commands used to build and install an old-style archive.
13586 RANLIB=$lt_RANLIB
13587 old_archive_cmds=$lt_old_archive_cmds_CXX
13588 old_postinstall_cmds=$lt_old_postinstall_cmds
13589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13590
13591 # Create an old-style archive from a shared archive.
13592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13593
13594 # Create a temporary old-style archive to link instead of a shared archive.
13595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13596
13597 # Commands used to build and install a shared archive.
13598 archive_cmds=$lt_archive_cmds_CXX
13599 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13600 postinstall_cmds=$lt_postinstall_cmds
13601 postuninstall_cmds=$lt_postuninstall_cmds
13602
13603 # Commands used to build a loadable module (assumed same as above if empty)
13604 module_cmds=$lt_module_cmds_CXX
13605 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13606
13607 # Commands to strip libraries.
13608 old_striplib=$lt_old_striplib
13609 striplib=$lt_striplib
13610
13611 # Dependencies to place before the objects being linked to create a
13612 # shared library.
13613 predep_objects=$lt_predep_objects_CXX
13614
13615 # Dependencies to place after the objects being linked to create a
13616 # shared library.
13617 postdep_objects=$lt_postdep_objects_CXX
13618
13619 # Dependencies to place before the objects being linked to create a
13620 # shared library.
13621 predeps=$lt_predeps_CXX
13622
13623 # Dependencies to place after the objects being linked to create a
13624 # shared library.
13625 postdeps=$lt_postdeps_CXX
13626
13627 # The library search path used internally by the compiler when linking
13628 # a shared library.
13629 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13630
13631 # Method to check whether dependent libraries are shared objects.
13632 deplibs_check_method=$lt_deplibs_check_method
13633
13634 # Command to use when deplibs_check_method == file_magic.
13635 file_magic_cmd=$lt_file_magic_cmd
13636
13637 # Flag that allows shared libraries with undefined symbols to be built.
13638 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13639
13640 # Flag that forces no undefined symbols.
13641 no_undefined_flag=$lt_no_undefined_flag_CXX
13642
13643 # Commands used to finish a libtool library installation in a directory.
13644 finish_cmds=$lt_finish_cmds
13645
13646 # Same as above, but a single script fragment to be evaled but not shown.
13647 finish_eval=$lt_finish_eval
13648
13649 # Take the output of nm and produce a listing of raw symbols and C names.
13650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13651
13652 # Transform the output of nm in a proper C declaration
13653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13654
13655 # Transform the output of nm in a C name address pair
13656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13657
13658 # This is the shared library runtime path variable.
13659 runpath_var=$runpath_var
13660
13661 # This is the shared library path variable.
13662 shlibpath_var=$shlibpath_var
13663
13664 # Is shlibpath searched before the hard-coded library search path?
13665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13666
13667 # How to hardcode a shared library path into an executable.
13668 hardcode_action=$hardcode_action_CXX
13669
13670 # Whether we should hardcode library paths into libraries.
13671 hardcode_into_libs=$hardcode_into_libs
13672
13673 # Flag to hardcode \$libdir into a binary during linking.
13674 # This must work even if \$libdir does not exist.
13675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13676
13677 # If ld is used when linking, flag to hardcode \$libdir into
13678 # a binary during linking. This must work even if \$libdir does
13679 # not exist.
13680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13681
13682 # Whether we need a single -rpath flag with a separated argument.
13683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13684
13685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13686 # resulting binary.
13687 hardcode_direct=$hardcode_direct_CXX
13688
13689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13690 # resulting binary.
13691 hardcode_minus_L=$hardcode_minus_L_CXX
13692
13693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13694 # the resulting binary.
13695 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13696
13697 # Set to yes if building a shared library automatically hardcodes DIR into the library
13698 # and all subsequent libraries and executables linked against it.
13699 hardcode_automatic=$hardcode_automatic_CXX
13700
13701 # Variables whose values should be saved in libtool wrapper scripts and
13702 # restored at relink time.
13703 variables_saved_for_relink="$variables_saved_for_relink"
13704
13705 # Whether libtool must link a program against all its dependency libraries.
13706 link_all_deplibs=$link_all_deplibs_CXX
13707
13708 # Compile-time system search path for libraries
13709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13710
13711 # Run-time system search path for libraries
13712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13713
13714 # Fix the shell variable \$srcfile for the compiler.
13715 fix_srcfile_path="$fix_srcfile_path_CXX"
13716
13717 # Set to yes if exported symbols are required.
13718 always_export_symbols=$always_export_symbols_CXX
13719
13720 # The commands to list exported symbols.
13721 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13722
13723 # The commands to extract the exported symbol list from a shared archive.
13724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13725
13726 # Symbols that should not be listed in the preloaded symbols.
13727 exclude_expsyms=$lt_exclude_expsyms_CXX
13728
13729 # Symbols that must always be exported.
13730 include_expsyms=$lt_include_expsyms_CXX
13731
13732 # ### END LIBTOOL TAG CONFIG: $tagname
13733
13734 __EOF__
13735
13736
13737 else
13738   # If there is no Makefile yet, we rely on a make rule to execute
13739   # `config.status --recheck' to rerun these tests and create the
13740   # libtool script then.
13741   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13742   if test -f "$ltmain_in"; then
13743     test -f Makefile && make "$ltmain"
13744   fi
13745 fi
13746
13747
13748 ac_ext=c
13749 ac_cpp='$CPP $CPPFLAGS'
13750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13753
13754 CC=$lt_save_CC
13755 LDCXX=$LD
13756 LD=$lt_save_LD
13757 GCC=$lt_save_GCC
13758 with_gnu_ldcxx=$with_gnu_ld
13759 with_gnu_ld=$lt_save_with_gnu_ld
13760 lt_cv_path_LDCXX=$lt_cv_path_LD
13761 lt_cv_path_LD=$lt_save_path_LD
13762 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13763 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13764
13765         else
13766           tagname=""
13767         fi
13768         ;;
13769
13770       F77)
13771         if test -n "$F77" && test "X$F77" != "Xno"; then
13772
13773 ac_ext=f
13774 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13775 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13777
13778
13779 archive_cmds_need_lc_F77=no
13780 allow_undefined_flag_F77=
13781 always_export_symbols_F77=no
13782 archive_expsym_cmds_F77=
13783 export_dynamic_flag_spec_F77=
13784 hardcode_direct_F77=no
13785 hardcode_libdir_flag_spec_F77=
13786 hardcode_libdir_flag_spec_ld_F77=
13787 hardcode_libdir_separator_F77=
13788 hardcode_minus_L_F77=no
13789 hardcode_automatic_F77=no
13790 module_cmds_F77=
13791 module_expsym_cmds_F77=
13792 link_all_deplibs_F77=unknown
13793 old_archive_cmds_F77=$old_archive_cmds
13794 no_undefined_flag_F77=
13795 whole_archive_flag_spec_F77=
13796 enable_shared_with_static_runtimes_F77=no
13797
13798 # Source file extension for f77 test sources.
13799 ac_ext=f
13800
13801 # Object file extension for compiled f77 test sources.
13802 objext=o
13803 objext_F77=$objext
13804
13805 # Code to be used in simple compile tests
13806 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13807
13808 # Code to be used in simple link tests
13809 lt_simple_link_test_code="      program t\n      end\n"
13810
13811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13812
13813 # If no C compiler was specified, use CC.
13814 LTCC=${LTCC-"$CC"}
13815
13816 # If no C compiler flags were specified, use CFLAGS.
13817 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13818
13819 # Allow CC to be a program name with arguments.
13820 compiler=$CC
13821
13822
13823 # save warnings/boilerplate of simple test code
13824 ac_outfile=conftest.$ac_objext
13825 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13826 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13827 _lt_compiler_boilerplate=`cat conftest.err`
13828 $rm conftest*
13829
13830 ac_outfile=conftest.$ac_objext
13831 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13832 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13833 _lt_linker_boilerplate=`cat conftest.err`
13834 $rm conftest*
13835
13836
13837 # Allow CC to be a program name with arguments.
13838 lt_save_CC="$CC"
13839 CC=${F77-"f77"}
13840 compiler=$CC
13841 compiler_F77=$CC
13842 for cc_temp in $compiler""; do
13843   case $cc_temp in
13844     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13845     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13846     \-*) ;;
13847     *) break;;
13848   esac
13849 done
13850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13851
13852
13853 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13854 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13855 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13856 echo "${ECHO_T}$can_build_shared" >&6; }
13857
13858 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13859 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13860 test "$can_build_shared" = "no" && enable_shared=no
13861
13862 # On AIX, shared libraries and static libraries use the same namespace, and
13863 # are all built from PIC.
13864 case $host_os in
13865 aix3*)
13866   test "$enable_shared" = yes && enable_static=no
13867   if test -n "$RANLIB"; then
13868     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13869     postinstall_cmds='$RANLIB $lib'
13870   fi
13871   ;;
13872 aix4* | aix5*)
13873   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13874     test "$enable_shared" = yes && enable_static=no
13875   fi
13876   ;;
13877 esac
13878 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13879 echo "${ECHO_T}$enable_shared" >&6; }
13880
13881 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13882 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13883 # Make sure either enable_shared or enable_static is yes.
13884 test "$enable_shared" = yes || enable_static=yes
13885 { echo "$as_me:$LINENO: result: $enable_static" >&5
13886 echo "${ECHO_T}$enable_static" >&6; }
13887
13888 GCC_F77="$G77"
13889 LD_F77="$LD"
13890
13891 lt_prog_compiler_wl_F77=
13892 lt_prog_compiler_pic_F77=
13893 lt_prog_compiler_static_F77=
13894
13895 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13897
13898   if test "$GCC" = yes; then
13899     lt_prog_compiler_wl_F77='-Wl,'
13900     lt_prog_compiler_static_F77='-static'
13901
13902     case $host_os in
13903       aix*)
13904       # All AIX code is PIC.
13905       if test "$host_cpu" = ia64; then
13906         # AIX 5 now supports IA64 processor
13907         lt_prog_compiler_static_F77='-Bstatic'
13908       fi
13909       ;;
13910
13911     amigaos*)
13912       # FIXME: we need at least 68020 code to build shared libraries, but
13913       # adding the `-m68020' flag to GCC prevents building anything better,
13914       # like `-m68040'.
13915       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13916       ;;
13917
13918     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13919       # PIC is the default for these OSes.
13920       ;;
13921
13922     mingw* | pw32* | os2*)
13923       # This hack is so that the source file can tell whether it is being
13924       # built for inclusion in a dll (and should export symbols for example).
13925       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13926       ;;
13927
13928     darwin* | rhapsody*)
13929       # PIC is the default on this platform
13930       # Common symbols not allowed in MH_DYLIB files
13931       lt_prog_compiler_pic_F77='-fno-common'
13932       ;;
13933
13934     interix3*)
13935       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13936       # Instead, we relocate shared libraries at runtime.
13937       ;;
13938
13939     msdosdjgpp*)
13940       # Just because we use GCC doesn't mean we suddenly get shared libraries
13941       # on systems that don't support them.
13942       lt_prog_compiler_can_build_shared_F77=no
13943       enable_shared=no
13944       ;;
13945
13946     sysv4*MP*)
13947       if test -d /usr/nec; then
13948         lt_prog_compiler_pic_F77=-Kconform_pic
13949       fi
13950       ;;
13951
13952     hpux*)
13953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13954       # not for PA HP-UX.
13955       case $host_cpu in
13956       hppa*64*|ia64*)
13957         # +Z the default
13958         ;;
13959       *)
13960         lt_prog_compiler_pic_F77='-fPIC'
13961         ;;
13962       esac
13963       ;;
13964
13965     *)
13966       lt_prog_compiler_pic_F77='-fPIC'
13967       ;;
13968     esac
13969   else
13970     # PORTME Check for flag to pass linker flags through the system compiler.
13971     case $host_os in
13972     aix*)
13973       lt_prog_compiler_wl_F77='-Wl,'
13974       if test "$host_cpu" = ia64; then
13975         # AIX 5 now supports IA64 processor
13976         lt_prog_compiler_static_F77='-Bstatic'
13977       else
13978         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13979       fi
13980       ;;
13981       darwin*)
13982         # PIC is the default on this platform
13983         # Common symbols not allowed in MH_DYLIB files
13984        case $cc_basename in
13985          xlc*)
13986          lt_prog_compiler_pic_F77='-qnocommon'
13987          lt_prog_compiler_wl_F77='-Wl,'
13988          ;;
13989        esac
13990        ;;
13991
13992     mingw* | pw32* | os2*)
13993       # This hack is so that the source file can tell whether it is being
13994       # built for inclusion in a dll (and should export symbols for example).
13995       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13996       ;;
13997
13998     hpux9* | hpux10* | hpux11*)
13999       lt_prog_compiler_wl_F77='-Wl,'
14000       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14001       # not for PA HP-UX.
14002       case $host_cpu in
14003       hppa*64*|ia64*)
14004         # +Z the default
14005         ;;
14006       *)
14007         lt_prog_compiler_pic_F77='+Z'
14008         ;;
14009       esac
14010       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14011       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14012       ;;
14013
14014     irix5* | irix6* | nonstopux*)
14015       lt_prog_compiler_wl_F77='-Wl,'
14016       # PIC (with -KPIC) is the default.
14017       lt_prog_compiler_static_F77='-non_shared'
14018       ;;
14019
14020     newsos6)
14021       lt_prog_compiler_pic_F77='-KPIC'
14022       lt_prog_compiler_static_F77='-Bstatic'
14023       ;;
14024
14025     linux* | k*bsd*-gnu)
14026       case $cc_basename in
14027       icc* | ecc*)
14028         lt_prog_compiler_wl_F77='-Wl,'
14029         lt_prog_compiler_pic_F77='-KPIC'
14030         lt_prog_compiler_static_F77='-static'
14031         ;;
14032       pgcc* | pgf77* | pgf90* | pgf95*)
14033         # Portland Group compilers (*not* the Pentium gcc compiler,
14034         # which looks to be a dead project)
14035         lt_prog_compiler_wl_F77='-Wl,'
14036         lt_prog_compiler_pic_F77='-fpic'
14037         lt_prog_compiler_static_F77='-Bstatic'
14038         ;;
14039       ccc*)
14040         lt_prog_compiler_wl_F77='-Wl,'
14041         # All Alpha code is PIC.
14042         lt_prog_compiler_static_F77='-non_shared'
14043         ;;
14044       esac
14045       ;;
14046
14047     osf3* | osf4* | osf5*)
14048       lt_prog_compiler_wl_F77='-Wl,'
14049       # All OSF/1 code is PIC.
14050       lt_prog_compiler_static_F77='-non_shared'
14051       ;;
14052
14053     solaris*)
14054       lt_prog_compiler_pic_F77='-KPIC'
14055       lt_prog_compiler_static_F77='-Bstatic'
14056       case $cc_basename in
14057       f77* | f90* | f95*)
14058         lt_prog_compiler_wl_F77='-Qoption ld ';;
14059       *)
14060         lt_prog_compiler_wl_F77='-Wl,';;
14061       esac
14062       ;;
14063
14064     sunos4*)
14065       lt_prog_compiler_wl_F77='-Qoption ld '
14066       lt_prog_compiler_pic_F77='-PIC'
14067       lt_prog_compiler_static_F77='-Bstatic'
14068       ;;
14069
14070     sysv4 | sysv4.2uw2* | sysv4.3*)
14071       lt_prog_compiler_wl_F77='-Wl,'
14072       lt_prog_compiler_pic_F77='-KPIC'
14073       lt_prog_compiler_static_F77='-Bstatic'
14074       ;;
14075
14076     sysv4*MP*)
14077       if test -d /usr/nec ;then
14078         lt_prog_compiler_pic_F77='-Kconform_pic'
14079         lt_prog_compiler_static_F77='-Bstatic'
14080       fi
14081       ;;
14082
14083     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14084       lt_prog_compiler_wl_F77='-Wl,'
14085       lt_prog_compiler_pic_F77='-KPIC'
14086       lt_prog_compiler_static_F77='-Bstatic'
14087       ;;
14088
14089     unicos*)
14090       lt_prog_compiler_wl_F77='-Wl,'
14091       lt_prog_compiler_can_build_shared_F77=no
14092       ;;
14093
14094     uts4*)
14095       lt_prog_compiler_pic_F77='-pic'
14096       lt_prog_compiler_static_F77='-Bstatic'
14097       ;;
14098
14099     *)
14100       lt_prog_compiler_can_build_shared_F77=no
14101       ;;
14102     esac
14103   fi
14104
14105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14106 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14107
14108 #
14109 # Check to make sure the PIC flag actually works.
14110 #
14111 if test -n "$lt_prog_compiler_pic_F77"; then
14112
14113 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14115 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   lt_prog_compiler_pic_works_F77=no
14119   ac_outfile=conftest.$ac_objext
14120    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14121    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14122    # Insert the option either (1) after the last *FLAGS variable, or
14123    # (2) before a word containing "conftest.", or (3) at the end.
14124    # Note that $ac_compile itself does not contain backslashes and begins
14125    # with a dollar sign (not a hyphen), so the echo should work correctly.
14126    # The option is referenced via a variable to avoid confusing sed.
14127    lt_compile=`echo "$ac_compile" | $SED \
14128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130    -e 's:$: $lt_compiler_flag:'`
14131    (eval echo "\"\$as_me:14131: $lt_compile\"" >&5)
14132    (eval "$lt_compile" 2>conftest.err)
14133    ac_status=$?
14134    cat conftest.err >&5
14135    echo "$as_me:14135: \$? = $ac_status" >&5
14136    if (exit $ac_status) && test -s "$ac_outfile"; then
14137      # The compiler can only warn and ignore the option if not recognized
14138      # So say no if there are warnings other than the usual output.
14139      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14140      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14141      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14142        lt_prog_compiler_pic_works_F77=yes
14143      fi
14144    fi
14145    $rm conftest*
14146
14147 fi
14148 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14149 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14150
14151 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14152     case $lt_prog_compiler_pic_F77 in
14153      "" | " "*) ;;
14154      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14155      esac
14156 else
14157     lt_prog_compiler_pic_F77=
14158      lt_prog_compiler_can_build_shared_F77=no
14159 fi
14160
14161 fi
14162 case $host_os in
14163   # For platforms which do not support PIC, -DPIC is meaningless:
14164   *djgpp*)
14165     lt_prog_compiler_pic_F77=
14166     ;;
14167   *)
14168     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14169     ;;
14170 esac
14171
14172 #
14173 # Check to make sure the static flag actually works.
14174 #
14175 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14176 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14178 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   lt_prog_compiler_static_works_F77=no
14182    save_LDFLAGS="$LDFLAGS"
14183    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14184    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14185    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14186      # The linker can only warn and ignore the option if not recognized
14187      # So say no if there are warnings
14188      if test -s conftest.err; then
14189        # Append any errors to the config.log.
14190        cat conftest.err 1>&5
14191        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14192        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14193        if diff conftest.exp conftest.er2 >/dev/null; then
14194          lt_prog_compiler_static_works_F77=yes
14195        fi
14196      else
14197        lt_prog_compiler_static_works_F77=yes
14198      fi
14199    fi
14200    $rm conftest*
14201    LDFLAGS="$save_LDFLAGS"
14202
14203 fi
14204 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14205 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14206
14207 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14208     :
14209 else
14210     lt_prog_compiler_static_F77=
14211 fi
14212
14213
14214 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14216 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14217   echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219   lt_cv_prog_compiler_c_o_F77=no
14220    $rm -r conftest 2>/dev/null
14221    mkdir conftest
14222    cd conftest
14223    mkdir out
14224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14225
14226    lt_compiler_flag="-o out/conftest2.$ac_objext"
14227    # Insert the option either (1) after the last *FLAGS variable, or
14228    # (2) before a word containing "conftest.", or (3) at the end.
14229    # Note that $ac_compile itself does not contain backslashes and begins
14230    # with a dollar sign (not a hyphen), so the echo should work correctly.
14231    lt_compile=`echo "$ac_compile" | $SED \
14232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14234    -e 's:$: $lt_compiler_flag:'`
14235    (eval echo "\"\$as_me:14235: $lt_compile\"" >&5)
14236    (eval "$lt_compile" 2>out/conftest.err)
14237    ac_status=$?
14238    cat out/conftest.err >&5
14239    echo "$as_me:14239: \$? = $ac_status" >&5
14240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14241    then
14242      # The compiler can only warn and ignore the option if not recognized
14243      # So say no if there are warnings
14244      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14247        lt_cv_prog_compiler_c_o_F77=yes
14248      fi
14249    fi
14250    chmod u+w . 2>&5
14251    $rm conftest*
14252    # SGI C++ compiler will create directory out/ii_files/ for
14253    # template instantiation
14254    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14255    $rm out/* && rmdir out
14256    cd ..
14257    rmdir conftest
14258    $rm conftest*
14259
14260 fi
14261 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14263
14264
14265 hard_links="nottested"
14266 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14267   # do not overwrite the value of need_locks provided by the user
14268   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14270   hard_links=yes
14271   $rm conftest*
14272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14273   touch conftest.a
14274   ln conftest.a conftest.b 2>&5 || hard_links=no
14275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14276   { echo "$as_me:$LINENO: result: $hard_links" >&5
14277 echo "${ECHO_T}$hard_links" >&6; }
14278   if test "$hard_links" = no; then
14279     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14281     need_locks=warn
14282   fi
14283 else
14284   need_locks=no
14285 fi
14286
14287 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14289
14290   runpath_var=
14291   allow_undefined_flag_F77=
14292   enable_shared_with_static_runtimes_F77=no
14293   archive_cmds_F77=
14294   archive_expsym_cmds_F77=
14295   old_archive_From_new_cmds_F77=
14296   old_archive_from_expsyms_cmds_F77=
14297   export_dynamic_flag_spec_F77=
14298   whole_archive_flag_spec_F77=
14299   thread_safe_flag_spec_F77=
14300   hardcode_libdir_flag_spec_F77=
14301   hardcode_libdir_flag_spec_ld_F77=
14302   hardcode_libdir_separator_F77=
14303   hardcode_direct_F77=no
14304   hardcode_minus_L_F77=no
14305   hardcode_shlibpath_var_F77=unsupported
14306   link_all_deplibs_F77=unknown
14307   hardcode_automatic_F77=no
14308   module_cmds_F77=
14309   module_expsym_cmds_F77=
14310   always_export_symbols_F77=no
14311   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14312   # include_expsyms should be a list of space-separated symbols to be *always*
14313   # included in the symbol list
14314   include_expsyms_F77=
14315   # exclude_expsyms can be an extended regexp of symbols to exclude
14316   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14317   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14318   # as well as any symbol that contains `d'.
14319   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14320   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14321   # platforms (ab)use it in PIC code, but their linkers get confused if
14322   # the symbol is explicitly referenced.  Since portable code cannot
14323   # rely on this symbol name, it's probably fine to never include it in
14324   # preloaded symbol tables.
14325   extract_expsyms_cmds=
14326   # Just being paranoid about ensuring that cc_basename is set.
14327   for cc_temp in $compiler""; do
14328   case $cc_temp in
14329     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14330     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14331     \-*) ;;
14332     *) break;;
14333   esac
14334 done
14335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14336
14337   case $host_os in
14338   cygwin* | mingw* | pw32*)
14339     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14340     # When not using gcc, we currently assume that we are using
14341     # Microsoft Visual C++.
14342     if test "$GCC" != yes; then
14343       with_gnu_ld=no
14344     fi
14345     ;;
14346   interix*)
14347     # we just hope/assume this is gcc and not c89 (= MSVC++)
14348     with_gnu_ld=yes
14349     ;;
14350   openbsd*)
14351     with_gnu_ld=no
14352     ;;
14353   esac
14354
14355   ld_shlibs_F77=yes
14356   if test "$with_gnu_ld" = yes; then
14357     # If archive_cmds runs LD, not CC, wlarc should be empty
14358     wlarc='${wl}'
14359
14360     # Set some defaults for GNU ld with shared library support. These
14361     # are reset later if shared libraries are not supported. Putting them
14362     # here allows them to be overridden if necessary.
14363     runpath_var=LD_RUN_PATH
14364     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14365     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14366     # ancient GNU ld didn't support --whole-archive et. al.
14367     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14368         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14369       else
14370         whole_archive_flag_spec_F77=
14371     fi
14372     supports_anon_versioning=no
14373     case `$LD -v 2>/dev/null` in
14374       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14375       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14376       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14377       *\ 2.11.*) ;; # other 2.11 versions
14378       *) supports_anon_versioning=yes ;;
14379     esac
14380
14381     # See if GNU ld supports shared libraries.
14382     case $host_os in
14383     aix3* | aix4* | aix5*)
14384       # On AIX/PPC, the GNU linker is very broken
14385       if test "$host_cpu" != ia64; then
14386         ld_shlibs_F77=no
14387         cat <<EOF 1>&2
14388
14389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14390 *** to be unable to reliably create shared libraries on AIX.
14391 *** Therefore, libtool is disabling shared libraries support.  If you
14392 *** really care for shared libraries, you may want to modify your PATH
14393 *** so that a non-GNU linker is found, and then restart.
14394
14395 EOF
14396       fi
14397       ;;
14398
14399     amigaos*)
14400       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)'
14401       hardcode_libdir_flag_spec_F77='-L$libdir'
14402       hardcode_minus_L_F77=yes
14403
14404       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14405       # that the semantics of dynamic libraries on AmigaOS, at least up
14406       # to version 4, is to share data among multiple programs linked
14407       # with the same dynamic library.  Since this doesn't match the
14408       # behavior of shared libraries on other platforms, we can't use
14409       # them.
14410       ld_shlibs_F77=no
14411       ;;
14412
14413     beos*)
14414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14415         allow_undefined_flag_F77=unsupported
14416         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14417         # support --undefined.  This deserves some investigation.  FIXME
14418         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419       else
14420         ld_shlibs_F77=no
14421       fi
14422       ;;
14423
14424     cygwin* | mingw* | pw32*)
14425       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14426       # as there is no search path for DLLs.
14427       hardcode_libdir_flag_spec_F77='-L$libdir'
14428       allow_undefined_flag_F77=unsupported
14429       always_export_symbols_F77=no
14430       enable_shared_with_static_runtimes_F77=yes
14431       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14432
14433       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14434         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14435         # If the export-symbols file already is a .def file (1st line
14436         # is EXPORTS), use it as is; otherwise, prepend...
14437         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14438           cp $export_symbols $output_objdir/$soname.def;
14439         else
14440           echo EXPORTS > $output_objdir/$soname.def;
14441           cat $export_symbols >> $output_objdir/$soname.def;
14442         fi~
14443         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14444       else
14445         ld_shlibs_F77=no
14446       fi
14447       ;;
14448
14449     interix3*)
14450       hardcode_direct_F77=no
14451       hardcode_shlibpath_var_F77=no
14452       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14453       export_dynamic_flag_spec_F77='${wl}-E'
14454       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14455       # Instead, shared libraries are loaded at an image base (0x10000000 by
14456       # default) and relocated if they conflict, which is a slow very memory
14457       # consuming and fragmenting process.  To avoid this, we pick a random,
14458       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14459       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14460       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'
14461       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'
14462       ;;
14463
14464     linux* | k*bsd*-gnu)
14465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14466         tmp_addflag=
14467         case $cc_basename,$host_cpu in
14468         pgcc*)                          # Portland Group C compiler
14469           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'
14470           tmp_addflag=' $pic_flag'
14471           ;;
14472         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14473           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'
14474           tmp_addflag=' $pic_flag -Mnomain' ;;
14475         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14476           tmp_addflag=' -i_dynamic' ;;
14477         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14478           tmp_addflag=' -i_dynamic -nofor_main' ;;
14479         ifc* | ifort*)                  # Intel Fortran compiler
14480           tmp_addflag=' -nofor_main' ;;
14481         esac
14482         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14483
14484         if test $supports_anon_versioning = yes; then
14485           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14486   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14487   $echo "local: *; };" >> $output_objdir/$libname.ver~
14488           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14489         fi
14490         link_all_deplibs_F77=no
14491       else
14492         ld_shlibs_F77=no
14493       fi
14494       ;;
14495
14496     netbsd* | netbsdelf*-gnu)
14497       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14498         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14499         wlarc=
14500       else
14501         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14503       fi
14504       ;;
14505
14506     solaris*)
14507       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14508         ld_shlibs_F77=no
14509         cat <<EOF 1>&2
14510
14511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14512 *** create shared libraries on Solaris systems.  Therefore, libtool
14513 *** is disabling shared libraries support.  We urge you to upgrade GNU
14514 *** binutils to release 2.9.1 or newer.  Another option is to modify
14515 *** your PATH or compiler configuration so that the native linker is
14516 *** used, and then restart.
14517
14518 EOF
14519       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14521         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14522       else
14523         ld_shlibs_F77=no
14524       fi
14525       ;;
14526
14527     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14528       case `$LD -v 2>&1` in
14529         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14530         ld_shlibs_F77=no
14531         cat <<_LT_EOF 1>&2
14532
14533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14534 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14535 *** is disabling shared libraries support.  We urge you to upgrade GNU
14536 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14537 *** your PATH or compiler configuration so that the native linker is
14538 *** used, and then restart.
14539
14540 _LT_EOF
14541         ;;
14542         *)
14543           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14544             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14545             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14546             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14547           else
14548             ld_shlibs_F77=no
14549           fi
14550         ;;
14551       esac
14552       ;;
14553
14554     sunos4*)
14555       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14556       wlarc=
14557       hardcode_direct_F77=yes
14558       hardcode_shlibpath_var_F77=no
14559       ;;
14560
14561     *)
14562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14563         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14565       else
14566         ld_shlibs_F77=no
14567       fi
14568       ;;
14569     esac
14570
14571     if test "$ld_shlibs_F77" = no; then
14572       runpath_var=
14573       hardcode_libdir_flag_spec_F77=
14574       export_dynamic_flag_spec_F77=
14575       whole_archive_flag_spec_F77=
14576     fi
14577   else
14578     # PORTME fill in a description of your system's linker (not GNU ld)
14579     case $host_os in
14580     aix3*)
14581       allow_undefined_flag_F77=unsupported
14582       always_export_symbols_F77=yes
14583       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'
14584       # Note: this linker hardcodes the directories in LIBPATH if there
14585       # are no directories specified by -L.
14586       hardcode_minus_L_F77=yes
14587       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14588         # Neither direct hardcoding nor static linking is supported with a
14589         # broken collect2.
14590         hardcode_direct_F77=unsupported
14591       fi
14592       ;;
14593
14594     aix4* | aix5*)
14595       if test "$host_cpu" = ia64; then
14596         # On IA64, the linker does run time linking by default, so we don't
14597         # have to do anything special.
14598         aix_use_runtimelinking=no
14599         exp_sym_flag='-Bexport'
14600         no_entry_flag=""
14601       else
14602         # If we're using GNU nm, then we don't want the "-C" option.
14603         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14604         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14605           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'
14606         else
14607           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'
14608         fi
14609         aix_use_runtimelinking=no
14610
14611         # Test if we are trying to use run time linking or normal
14612         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14613         # need to do runtime linking.
14614         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14615           for ld_flag in $LDFLAGS; do
14616           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14617             aix_use_runtimelinking=yes
14618             break
14619           fi
14620           done
14621           ;;
14622         esac
14623
14624         exp_sym_flag='-bexport'
14625         no_entry_flag='-bnoentry'
14626       fi
14627
14628       # When large executables or shared objects are built, AIX ld can
14629       # have problems creating the table of contents.  If linking a library
14630       # or program results in "error TOC overflow" add -mminimal-toc to
14631       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14632       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14633
14634       archive_cmds_F77=''
14635       hardcode_direct_F77=yes
14636       hardcode_libdir_separator_F77=':'
14637       link_all_deplibs_F77=yes
14638
14639       if test "$GCC" = yes; then
14640         case $host_os in aix4.[012]|aix4.[012].*)
14641         # We only want to do this on AIX 4.2 and lower, the check
14642         # below for broken collect2 doesn't work under 4.3+
14643           collect2name=`${CC} -print-prog-name=collect2`
14644           if test -f "$collect2name" && \
14645            strings "$collect2name" | grep resolve_lib_name >/dev/null
14646           then
14647           # We have reworked collect2
14648           hardcode_direct_F77=yes
14649           else
14650           # We have old collect2
14651           hardcode_direct_F77=unsupported
14652           # It fails to find uninstalled libraries when the uninstalled
14653           # path is not listed in the libpath.  Setting hardcode_minus_L
14654           # to unsupported forces relinking
14655           hardcode_minus_L_F77=yes
14656           hardcode_libdir_flag_spec_F77='-L$libdir'
14657           hardcode_libdir_separator_F77=
14658           fi
14659           ;;
14660         esac
14661         shared_flag='-shared'
14662         if test "$aix_use_runtimelinking" = yes; then
14663           shared_flag="$shared_flag "'${wl}-G'
14664         fi
14665       else
14666         # not using gcc
14667         if test "$host_cpu" = ia64; then
14668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14669         # chokes on -Wl,-G. The following line is correct:
14670           shared_flag='-G'
14671         else
14672           if test "$aix_use_runtimelinking" = yes; then
14673             shared_flag='${wl}-G'
14674           else
14675             shared_flag='${wl}-bM:SRE'
14676           fi
14677         fi
14678       fi
14679
14680       # It seems that -bexpall does not export symbols beginning with
14681       # underscore (_), so it is better to generate a list of symbols to export.
14682       always_export_symbols_F77=yes
14683       if test "$aix_use_runtimelinking" = yes; then
14684         # Warning - without using the other runtime loading flags (-brtl),
14685         # -berok will link without error, but may produce a broken library.
14686         allow_undefined_flag_F77='-berok'
14687        # Determine the default libpath from the value encoded in an empty executable.
14688        cat >conftest.$ac_ext <<_ACEOF
14689       program main
14690
14691       end
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_link") 2>conftest.er1
14701   ac_status=$?
14702   grep -v '^ *+' conftest.er1 >conftest.err
14703   rm -f conftest.er1
14704   cat conftest.err >&5
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); } && {
14707          test -z "$ac_f77_werror_flag" ||
14708          test ! -s conftest.err
14709        } && test -s conftest$ac_exeext &&
14710        $as_test_x conftest$ac_exeext; then
14711
14712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14713 }'`
14714 # Check for a 64-bit object if we didn't find anything.
14715 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14716 }'`; fi
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721
14722 fi
14723
14724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14725       conftest$ac_exeext conftest.$ac_ext
14726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14727
14728        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14729         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"
14730        else
14731         if test "$host_cpu" = ia64; then
14732           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14733           allow_undefined_flag_F77="-z nodefs"
14734           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"
14735         else
14736          # Determine the default libpath from the value encoded in an empty executable.
14737          cat >conftest.$ac_ext <<_ACEOF
14738       program main
14739
14740       end
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746   *) ac_try_echo=$ac_try;;
14747 esac
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749   (eval "$ac_link") 2>conftest.er1
14750   ac_status=$?
14751   grep -v '^ *+' conftest.er1 >conftest.err
14752   rm -f conftest.er1
14753   cat conftest.err >&5
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } && {
14756          test -z "$ac_f77_werror_flag" ||
14757          test ! -s conftest.err
14758        } && test -s conftest$ac_exeext &&
14759        $as_test_x conftest$ac_exeext; then
14760
14761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14762 }'`
14763 # Check for a 64-bit object if we didn't find anything.
14764 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14765 }'`; fi
14766 else
14767   echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14769
14770
14771 fi
14772
14773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14774       conftest$ac_exeext conftest.$ac_ext
14775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14776
14777          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14778           # Warning - without using the other run time loading flags,
14779           # -berok will link without error, but may produce a broken library.
14780           no_undefined_flag_F77=' ${wl}-bernotok'
14781           allow_undefined_flag_F77=' ${wl}-berok'
14782           # Exported symbols can be pulled into shared objects from archives
14783           whole_archive_flag_spec_F77='$convenience'
14784           archive_cmds_need_lc_F77=yes
14785           # This is similar to how AIX traditionally builds its shared libraries.
14786           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'
14787         fi
14788       fi
14789       ;;
14790
14791     amigaos*)
14792       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)'
14793       hardcode_libdir_flag_spec_F77='-L$libdir'
14794       hardcode_minus_L_F77=yes
14795       # see comment about different semantics on the GNU ld section
14796       ld_shlibs_F77=no
14797       ;;
14798
14799     bsdi[45]*)
14800       export_dynamic_flag_spec_F77=-rdynamic
14801       ;;
14802
14803     cygwin* | mingw* | pw32*)
14804       # When not using gcc, we currently assume that we are using
14805       # Microsoft Visual C++.
14806       # hardcode_libdir_flag_spec is actually meaningless, as there is
14807       # no search path for DLLs.
14808       hardcode_libdir_flag_spec_F77=' '
14809       allow_undefined_flag_F77=unsupported
14810       # Tell ltmain to make .lib files, not .a files.
14811       libext=lib
14812       # Tell ltmain to make .dll files, not .so files.
14813       shrext_cmds=".dll"
14814       # FIXME: Setting linknames here is a bad hack.
14815       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14816       # The linker will automatically build a .lib file if we build a DLL.
14817       old_archive_From_new_cmds_F77='true'
14818       # FIXME: Should let the user specify the lib program.
14819       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14820       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14821       enable_shared_with_static_runtimes_F77=yes
14822       ;;
14823
14824     darwin* | rhapsody*)
14825       case $host_os in
14826         rhapsody* | darwin1.[012])
14827          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14828          ;;
14829        *) # Darwin 1.3 on
14830          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14831            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14832          else
14833            case ${MACOSX_DEPLOYMENT_TARGET} in
14834              10.[012])
14835                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14836                ;;
14837              10.*)
14838                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14839                ;;
14840            esac
14841          fi
14842          ;;
14843       esac
14844       archive_cmds_need_lc_F77=no
14845       hardcode_direct_F77=no
14846       hardcode_automatic_F77=yes
14847       hardcode_shlibpath_var_F77=unsupported
14848       whole_archive_flag_spec_F77=''
14849       link_all_deplibs_F77=yes
14850     if test "$GCC" = yes ; then
14851         output_verbose_link_cmd='echo'
14852         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14853       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14854       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14855       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}'
14856       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}'
14857     else
14858       case $cc_basename in
14859         xlc*)
14860          output_verbose_link_cmd='echo'
14861          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14862          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14863           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14864          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14865           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}'
14866           ;;
14867        *)
14868          ld_shlibs_F77=no
14869           ;;
14870       esac
14871     fi
14872       ;;
14873
14874     dgux*)
14875       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876       hardcode_libdir_flag_spec_F77='-L$libdir'
14877       hardcode_shlibpath_var_F77=no
14878       ;;
14879
14880     freebsd1*)
14881       ld_shlibs_F77=no
14882       ;;
14883
14884     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14885     # support.  Future versions do this automatically, but an explicit c++rt0.o
14886     # does not break anything, and helps significantly (at the cost of a little
14887     # extra space).
14888     freebsd2.2*)
14889       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14890       hardcode_libdir_flag_spec_F77='-R$libdir'
14891       hardcode_direct_F77=yes
14892       hardcode_shlibpath_var_F77=no
14893       ;;
14894
14895     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14896     freebsd2*)
14897       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14898       hardcode_direct_F77=yes
14899       hardcode_minus_L_F77=yes
14900       hardcode_shlibpath_var_F77=no
14901       ;;
14902
14903     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14904     freebsd* | dragonfly*)
14905       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14906       hardcode_libdir_flag_spec_F77='-R$libdir'
14907       hardcode_direct_F77=yes
14908       hardcode_shlibpath_var_F77=no
14909       ;;
14910
14911     hpux9*)
14912       if test "$GCC" = yes; then
14913         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'
14914       else
14915         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'
14916       fi
14917       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14918       hardcode_libdir_separator_F77=:
14919       hardcode_direct_F77=yes
14920
14921       # hardcode_minus_L: Not really in the search PATH,
14922       # but as the default location of the library.
14923       hardcode_minus_L_F77=yes
14924       export_dynamic_flag_spec_F77='${wl}-E'
14925       ;;
14926
14927     hpux10*)
14928       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14929         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14930       else
14931         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14932       fi
14933       if test "$with_gnu_ld" = no; then
14934         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14935         hardcode_libdir_separator_F77=:
14936
14937         hardcode_direct_F77=yes
14938         export_dynamic_flag_spec_F77='${wl}-E'
14939
14940         # hardcode_minus_L: Not really in the search PATH,
14941         # but as the default location of the library.
14942         hardcode_minus_L_F77=yes
14943       fi
14944       ;;
14945
14946     hpux11*)
14947       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14948         case $host_cpu in
14949         hppa*64*)
14950           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951           ;;
14952         ia64*)
14953           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14954           ;;
14955         *)
14956           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14957           ;;
14958         esac
14959       else
14960         case $host_cpu in
14961         hppa*64*)
14962           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963           ;;
14964         ia64*)
14965           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14966           ;;
14967         *)
14968           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14969           ;;
14970         esac
14971       fi
14972       if test "$with_gnu_ld" = no; then
14973         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14974         hardcode_libdir_separator_F77=:
14975
14976         case $host_cpu in
14977         hppa*64*|ia64*)
14978           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14979           hardcode_direct_F77=no
14980           hardcode_shlibpath_var_F77=no
14981           ;;
14982         *)
14983           hardcode_direct_F77=yes
14984           export_dynamic_flag_spec_F77='${wl}-E'
14985
14986           # hardcode_minus_L: Not really in the search PATH,
14987           # but as the default location of the library.
14988           hardcode_minus_L_F77=yes
14989           ;;
14990         esac
14991       fi
14992       ;;
14993
14994     irix5* | irix6* | nonstopux*)
14995       if test "$GCC" = yes; then
14996         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'
14997       else
14998         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'
14999         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15000       fi
15001       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15002       hardcode_libdir_separator_F77=:
15003       link_all_deplibs_F77=yes
15004       ;;
15005
15006     netbsd* | netbsdelf*-gnu)
15007       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15008         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15009       else
15010         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15011       fi
15012       hardcode_libdir_flag_spec_F77='-R$libdir'
15013       hardcode_direct_F77=yes
15014       hardcode_shlibpath_var_F77=no
15015       ;;
15016
15017     newsos6)
15018       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019       hardcode_direct_F77=yes
15020       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15021       hardcode_libdir_separator_F77=:
15022       hardcode_shlibpath_var_F77=no
15023       ;;
15024
15025     openbsd*)
15026       hardcode_direct_F77=yes
15027       hardcode_shlibpath_var_F77=no
15028       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15029         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15030         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15031         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15032         export_dynamic_flag_spec_F77='${wl}-E'
15033       else
15034        case $host_os in
15035          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15036            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15037            hardcode_libdir_flag_spec_F77='-R$libdir'
15038            ;;
15039          *)
15040            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15041            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15042            ;;
15043        esac
15044       fi
15045       ;;
15046
15047     os2*)
15048       hardcode_libdir_flag_spec_F77='-L$libdir'
15049       hardcode_minus_L_F77=yes
15050       allow_undefined_flag_F77=unsupported
15051       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'
15052       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15053       ;;
15054
15055     osf3*)
15056       if test "$GCC" = yes; then
15057         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15058         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'
15059       else
15060         allow_undefined_flag_F77=' -expect_unresolved \*'
15061         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'
15062       fi
15063       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15064       hardcode_libdir_separator_F77=:
15065       ;;
15066
15067     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15068       if test "$GCC" = yes; then
15069         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15070         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'
15071         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15072       else
15073         allow_undefined_flag_F77=' -expect_unresolved \*'
15074         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'
15075         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~
15076         $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'
15077
15078         # Both c and cxx compiler support -rpath directly
15079         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15080       fi
15081       hardcode_libdir_separator_F77=:
15082       ;;
15083
15084     solaris*)
15085       no_undefined_flag_F77=' -z text'
15086       if test "$GCC" = yes; then
15087         wlarc='${wl}'
15088         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15089         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15090           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15091       else
15092         wlarc=''
15093         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15095         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15096       fi
15097       hardcode_libdir_flag_spec_F77='-R$libdir'
15098       hardcode_shlibpath_var_F77=no
15099       case $host_os in
15100       solaris2.[0-5] | solaris2.[0-5].*) ;;
15101       *)
15102         # The compiler driver will combine linker options so we
15103         # cannot just pass the convience library names through
15104         # without $wl, iff we do not link with $LD.
15105         # Luckily, gcc supports the same syntax we need for Sun Studio.
15106         # Supported since Solaris 2.6 (maybe 2.5.1?)
15107         case $wlarc in
15108         '')
15109           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15110         *)
15111           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15112         esac ;;
15113       esac
15114       link_all_deplibs_F77=yes
15115       ;;
15116
15117     sunos4*)
15118       if test "x$host_vendor" = xsequent; then
15119         # Use $CC to link under sequent, because it throws in some extra .o
15120         # files that make .init and .fini sections work.
15121         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15122       else
15123         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15124       fi
15125       hardcode_libdir_flag_spec_F77='-L$libdir'
15126       hardcode_direct_F77=yes
15127       hardcode_minus_L_F77=yes
15128       hardcode_shlibpath_var_F77=no
15129       ;;
15130
15131     sysv4)
15132       case $host_vendor in
15133         sni)
15134           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15135           hardcode_direct_F77=yes # is this really true???
15136         ;;
15137         siemens)
15138           ## LD is ld it makes a PLAMLIB
15139           ## CC just makes a GrossModule.
15140           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15141           reload_cmds_F77='$CC -r -o $output$reload_objs'
15142           hardcode_direct_F77=no
15143         ;;
15144         motorola)
15145           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15146           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15147         ;;
15148       esac
15149       runpath_var='LD_RUN_PATH'
15150       hardcode_shlibpath_var_F77=no
15151       ;;
15152
15153     sysv4.3*)
15154       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155       hardcode_shlibpath_var_F77=no
15156       export_dynamic_flag_spec_F77='-Bexport'
15157       ;;
15158
15159     sysv4*MP*)
15160       if test -d /usr/nec; then
15161         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162         hardcode_shlibpath_var_F77=no
15163         runpath_var=LD_RUN_PATH
15164         hardcode_runpath_var=yes
15165         ld_shlibs_F77=yes
15166       fi
15167       ;;
15168
15169     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15170       no_undefined_flag_F77='${wl}-z,text'
15171       archive_cmds_need_lc_F77=no
15172       hardcode_shlibpath_var_F77=no
15173       runpath_var='LD_RUN_PATH'
15174
15175       if test "$GCC" = yes; then
15176         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15178       else
15179         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15180         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15181       fi
15182       ;;
15183
15184     sysv5* | sco3.2v5* | sco5v6*)
15185       # Note: We can NOT use -z defs as we might desire, because we do not
15186       # link with -lc, and that would cause any symbols used from libc to
15187       # always be unresolved, which means just about no library would
15188       # ever link correctly.  If we're not using GNU ld we use -z text
15189       # though, which does catch some bad symbols but isn't as heavy-handed
15190       # as -z defs.
15191       no_undefined_flag_F77='${wl}-z,text'
15192       allow_undefined_flag_F77='${wl}-z,nodefs'
15193       archive_cmds_need_lc_F77=no
15194       hardcode_shlibpath_var_F77=no
15195       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15196       hardcode_libdir_separator_F77=':'
15197       link_all_deplibs_F77=yes
15198       export_dynamic_flag_spec_F77='${wl}-Bexport'
15199       runpath_var='LD_RUN_PATH'
15200
15201       if test "$GCC" = yes; then
15202         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204       else
15205         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15206         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15207       fi
15208       ;;
15209
15210     uts4*)
15211       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212       hardcode_libdir_flag_spec_F77='-L$libdir'
15213       hardcode_shlibpath_var_F77=no
15214       ;;
15215
15216     *)
15217       ld_shlibs_F77=no
15218       ;;
15219     esac
15220   fi
15221
15222 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15223 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15224 test "$ld_shlibs_F77" = no && can_build_shared=no
15225
15226 #
15227 # Do we need to explicitly link libc?
15228 #
15229 case "x$archive_cmds_need_lc_F77" in
15230 x|xyes)
15231   # Assume -lc should be added
15232   archive_cmds_need_lc_F77=yes
15233
15234   if test "$enable_shared" = yes && test "$GCC" = yes; then
15235     case $archive_cmds_F77 in
15236     *'~'*)
15237       # FIXME: we may have to deal with multi-command sequences.
15238       ;;
15239     '$CC '*)
15240       # Test whether the compiler implicitly links with -lc since on some
15241       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15242       # to ld, don't add -lc before -lgcc.
15243       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15244 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15245       $rm conftest*
15246       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15247
15248       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249   (eval $ac_compile) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } 2>conftest.err; then
15253         soname=conftest
15254         lib=conftest
15255         libobjs=conftest.$ac_objext
15256         deplibs=
15257         wl=$lt_prog_compiler_wl_F77
15258         pic_flag=$lt_prog_compiler_pic_F77
15259         compiler_flags=-v
15260         linker_flags=-v
15261         verstring=
15262         output_objdir=.
15263         libname=conftest
15264         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15265         allow_undefined_flag_F77=
15266         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15267   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }
15271         then
15272           archive_cmds_need_lc_F77=no
15273         else
15274           archive_cmds_need_lc_F77=yes
15275         fi
15276         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15277       else
15278         cat conftest.err 1>&5
15279       fi
15280       $rm conftest*
15281       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15282 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15283       ;;
15284     esac
15285   fi
15286   ;;
15287 esac
15288
15289 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15290 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15291 library_names_spec=
15292 libname_spec='lib$name'
15293 soname_spec=
15294 shrext_cmds=".so"
15295 postinstall_cmds=
15296 postuninstall_cmds=
15297 finish_cmds=
15298 finish_eval=
15299 shlibpath_var=
15300 shlibpath_overrides_runpath=unknown
15301 version_type=none
15302 dynamic_linker="$host_os ld.so"
15303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15304 if test "$GCC" = yes; then
15305   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15306   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15307     # if the path contains ";" then we assume it to be the separator
15308     # otherwise default to the standard path separator (i.e. ":") - it is
15309     # assumed that no part of a normal pathname contains ";" but that should
15310     # okay in the real world where ";" in dirpaths is itself problematic.
15311     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15312   else
15313     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15314   fi
15315 else
15316   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15317 fi
15318 need_lib_prefix=unknown
15319 hardcode_into_libs=no
15320
15321 # when you set need_version to no, make sure it does not cause -set_version
15322 # flags to be left without arguments
15323 need_version=unknown
15324
15325 case $host_os in
15326 aix3*)
15327   version_type=linux
15328   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15329   shlibpath_var=LIBPATH
15330
15331   # AIX 3 has no versioning support, so we append a major version to the name.
15332   soname_spec='${libname}${release}${shared_ext}$major'
15333   ;;
15334
15335 aix4* | aix5*)
15336   version_type=linux
15337   need_lib_prefix=no
15338   need_version=no
15339   hardcode_into_libs=yes
15340   if test "$host_cpu" = ia64; then
15341     # AIX 5 supports IA64
15342     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15343     shlibpath_var=LD_LIBRARY_PATH
15344   else
15345     # With GCC up to 2.95.x, collect2 would create an import file
15346     # for dependence libraries.  The import file would start with
15347     # the line `#! .'.  This would cause the generated library to
15348     # depend on `.', always an invalid library.  This was fixed in
15349     # development snapshots of GCC prior to 3.0.
15350     case $host_os in
15351       aix4 | aix4.[01] | aix4.[01].*)
15352       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15353            echo ' yes '
15354            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15355         :
15356       else
15357         can_build_shared=no
15358       fi
15359       ;;
15360     esac
15361     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15362     # soname into executable. Probably we can add versioning support to
15363     # collect2, so additional links can be useful in future.
15364     if test "$aix_use_runtimelinking" = yes; then
15365       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15366       # instead of lib<name>.a to let people know that these are not
15367       # typical AIX shared libraries.
15368       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369     else
15370       # We preserve .a as extension for shared libraries through AIX4.2
15371       # and later when we are not doing run time linking.
15372       library_names_spec='${libname}${release}.a $libname.a'
15373       soname_spec='${libname}${release}${shared_ext}$major'
15374     fi
15375     shlibpath_var=LIBPATH
15376   fi
15377   ;;
15378
15379 amigaos*)
15380   library_names_spec='$libname.ixlibrary $libname.a'
15381   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15382   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'
15383   ;;
15384
15385 beos*)
15386   library_names_spec='${libname}${shared_ext}'
15387   dynamic_linker="$host_os ld.so"
15388   shlibpath_var=LIBRARY_PATH
15389   ;;
15390
15391 bsdi[45]*)
15392   version_type=linux
15393   need_version=no
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15397   shlibpath_var=LD_LIBRARY_PATH
15398   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15399   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15400   # the default ld.so.conf also contains /usr/contrib/lib and
15401   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15402   # libtool to hard-code these into programs
15403   ;;
15404
15405 cygwin* | mingw* | pw32*)
15406   version_type=windows
15407   shrext_cmds=".dll"
15408   need_version=no
15409   need_lib_prefix=no
15410
15411   case $GCC,$host_os in
15412   yes,cygwin* | yes,mingw* | yes,pw32*)
15413     library_names_spec='$libname.dll.a'
15414     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15415     postinstall_cmds='base_file=`basename \${file}`~
15416       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15417       dldir=$destdir/`dirname \$dlpath`~
15418       test -d \$dldir || mkdir -p \$dldir~
15419       $install_prog $dir/$dlname \$dldir/$dlname~
15420       chmod a+x \$dldir/$dlname'
15421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15422       dlpath=$dir/\$dldll~
15423        $rm \$dlpath'
15424     shlibpath_overrides_runpath=yes
15425
15426     case $host_os in
15427     cygwin*)
15428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15430       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15431       ;;
15432     mingw*)
15433       # MinGW DLLs use traditional 'lib' prefix
15434       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15435       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15436       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15437         # It is most probably a Windows format PATH printed by
15438         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15439         # path with ; separators, and with drive letters. We can handle the
15440         # drive letters (cygwin fileutils understands them), so leave them,
15441         # especially as we might pass files found there to a mingw objdump,
15442         # which wouldn't understand a cygwinified path. Ahh.
15443         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15444       else
15445         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15446       fi
15447       ;;
15448     pw32*)
15449       # pw32 DLLs use 'pw' prefix rather than 'lib'
15450       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15451       ;;
15452     esac
15453     ;;
15454
15455   *)
15456     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15457     ;;
15458   esac
15459   dynamic_linker='Win32 ld.exe'
15460   # FIXME: first we should search . and the directory the executable is in
15461   shlibpath_var=PATH
15462   ;;
15463
15464 darwin* | rhapsody*)
15465   dynamic_linker="$host_os dyld"
15466   version_type=darwin
15467   need_lib_prefix=no
15468   need_version=no
15469   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15470   soname_spec='${libname}${release}${major}$shared_ext'
15471   shlibpath_overrides_runpath=yes
15472   shlibpath_var=DYLD_LIBRARY_PATH
15473   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15474   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15475   if test "$GCC" = yes; then
15476     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15477   else
15478     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15479   fi
15480   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15481   ;;
15482
15483 dgux*)
15484   version_type=linux
15485   need_lib_prefix=no
15486   need_version=no
15487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15488   soname_spec='${libname}${release}${shared_ext}$major'
15489   shlibpath_var=LD_LIBRARY_PATH
15490   ;;
15491
15492 freebsd1*)
15493   dynamic_linker=no
15494   ;;
15495
15496 freebsd* | dragonfly*)
15497   # DragonFly does not have aout.  When/if they implement a new
15498   # versioning mechanism, adjust this.
15499   if test -x /usr/bin/objformat; then
15500     objformat=`/usr/bin/objformat`
15501   else
15502     case $host_os in
15503     freebsd[123]*) objformat=aout ;;
15504     *) objformat=elf ;;
15505     esac
15506   fi
15507   version_type=freebsd-$objformat
15508   case $version_type in
15509     freebsd-elf*)
15510       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15511       need_version=no
15512       need_lib_prefix=no
15513       ;;
15514     freebsd-*)
15515       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15516       need_version=yes
15517       ;;
15518   esac
15519   shlibpath_var=LD_LIBRARY_PATH
15520   case $host_os in
15521   freebsd2*)
15522     shlibpath_overrides_runpath=yes
15523     ;;
15524   freebsd3.[01]* | freebsdelf3.[01]*)
15525     shlibpath_overrides_runpath=yes
15526     hardcode_into_libs=yes
15527     ;;
15528   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530     shlibpath_overrides_runpath=no
15531     hardcode_into_libs=yes
15532     ;;
15533   freebsd*) # from 4.6 on
15534     shlibpath_overrides_runpath=yes
15535     hardcode_into_libs=yes
15536     ;;
15537   esac
15538   ;;
15539
15540 gnu*)
15541   version_type=linux
15542   need_lib_prefix=no
15543   need_version=no
15544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545   soname_spec='${libname}${release}${shared_ext}$major'
15546   shlibpath_var=LD_LIBRARY_PATH
15547   hardcode_into_libs=yes
15548   ;;
15549
15550 hpux9* | hpux10* | hpux11*)
15551   # Give a soname corresponding to the major version so that dld.sl refuses to
15552   # link against other versions.
15553   version_type=sunos
15554   need_lib_prefix=no
15555   need_version=no
15556   case $host_cpu in
15557   ia64*)
15558     shrext_cmds='.so'
15559     hardcode_into_libs=yes
15560     dynamic_linker="$host_os dld.so"
15561     shlibpath_var=LD_LIBRARY_PATH
15562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564     soname_spec='${libname}${release}${shared_ext}$major'
15565     if test "X$HPUX_IA64_MODE" = X32; then
15566       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15567     else
15568       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15569     fi
15570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571     ;;
15572    hppa*64*)
15573      shrext_cmds='.sl'
15574      hardcode_into_libs=yes
15575      dynamic_linker="$host_os dld.sl"
15576      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579      soname_spec='${libname}${release}${shared_ext}$major'
15580      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582      ;;
15583    *)
15584     shrext_cmds='.sl'
15585     dynamic_linker="$host_os dld.sl"
15586     shlibpath_var=SHLIB_PATH
15587     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589     soname_spec='${libname}${release}${shared_ext}$major'
15590     ;;
15591   esac
15592   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593   postinstall_cmds='chmod 555 $lib'
15594   ;;
15595
15596 interix3*)
15597   version_type=linux
15598   need_lib_prefix=no
15599   need_version=no
15600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601   soname_spec='${libname}${release}${shared_ext}$major'
15602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   shlibpath_overrides_runpath=no
15605   hardcode_into_libs=yes
15606   ;;
15607
15608 irix5* | irix6* | nonstopux*)
15609   case $host_os in
15610     nonstopux*) version_type=nonstopux ;;
15611     *)
15612         if test "$lt_cv_prog_gnu_ld" = yes; then
15613                 version_type=linux
15614         else
15615                 version_type=irix
15616         fi ;;
15617   esac
15618   need_lib_prefix=no
15619   need_version=no
15620   soname_spec='${libname}${release}${shared_ext}$major'
15621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15622   case $host_os in
15623   irix5* | nonstopux*)
15624     libsuff= shlibsuff=
15625     ;;
15626   *)
15627     case $LD in # libtool.m4 will add one of these switches to LD
15628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629       libsuff= shlibsuff= libmagic=32-bit;;
15630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631       libsuff=32 shlibsuff=N32 libmagic=N32;;
15632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634     *) libsuff= shlibsuff= libmagic=never-match;;
15635     esac
15636     ;;
15637   esac
15638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639   shlibpath_overrides_runpath=no
15640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642   hardcode_into_libs=yes
15643   ;;
15644
15645 # No shared lib support for Linux oldld, aout, or coff.
15646 linux*oldld* | linux*aout* | linux*coff*)
15647   dynamic_linker=no
15648   ;;
15649
15650 # This must be Linux ELF.
15651 linux* | k*bsd*-gnu)
15652   version_type=linux
15653   need_lib_prefix=no
15654   need_version=no
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656   soname_spec='${libname}${release}${shared_ext}$major'
15657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658   shlibpath_var=LD_LIBRARY_PATH
15659   shlibpath_overrides_runpath=no
15660   # This implies no fast_install, which is unacceptable.
15661   # Some rework will be needed to allow for fast_install
15662   # before this can be enabled.
15663   hardcode_into_libs=yes
15664
15665   # Append ld.so.conf contents to the search path
15666   if test -f /etc/ld.so.conf; then
15667     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15668     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15669   fi
15670
15671   # We used to test for /lib/ld.so.1 and disable shared libraries on
15672   # powerpc, because MkLinux only supported shared libraries with the
15673   # GNU dynamic linker.  Since this was broken with cross compilers,
15674   # most powerpc-linux boxes support dynamic linking these days and
15675   # people can always --disable-shared, the test was removed, and we
15676   # assume the GNU/Linux dynamic linker is in use.
15677   dynamic_linker='GNU/Linux ld.so'
15678   ;;
15679
15680 netbsdelf*-gnu)
15681   version_type=linux
15682   need_lib_prefix=no
15683   need_version=no
15684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   shlibpath_overrides_runpath=no
15688   hardcode_into_libs=yes
15689   dynamic_linker='NetBSD ld.elf_so'
15690   ;;
15691
15692 netbsd*)
15693   version_type=sunos
15694   need_lib_prefix=no
15695   need_version=no
15696   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15698     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15699     dynamic_linker='NetBSD (a.out) ld.so'
15700   else
15701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15702     soname_spec='${libname}${release}${shared_ext}$major'
15703     dynamic_linker='NetBSD ld.elf_so'
15704   fi
15705   shlibpath_var=LD_LIBRARY_PATH
15706   shlibpath_overrides_runpath=yes
15707   hardcode_into_libs=yes
15708   ;;
15709
15710 newsos6)
15711   version_type=linux
15712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   ;;
15716
15717 nto-qnx*)
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   shlibpath_overrides_runpath=yes
15725   ;;
15726
15727 openbsd*)
15728   version_type=sunos
15729   sys_lib_dlsearch_path_spec="/usr/lib"
15730   need_lib_prefix=no
15731   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15732   case $host_os in
15733     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15734     *)                         need_version=no  ;;
15735   esac
15736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738   shlibpath_var=LD_LIBRARY_PATH
15739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15740     case $host_os in
15741       openbsd2.[89] | openbsd2.[89].*)
15742         shlibpath_overrides_runpath=no
15743         ;;
15744       *)
15745         shlibpath_overrides_runpath=yes
15746         ;;
15747       esac
15748   else
15749     shlibpath_overrides_runpath=yes
15750   fi
15751   ;;
15752
15753 os2*)
15754   libname_spec='$name'
15755   shrext_cmds=".dll"
15756   need_lib_prefix=no
15757   library_names_spec='$libname${shared_ext} $libname.a'
15758   dynamic_linker='OS/2 ld.exe'
15759   shlibpath_var=LIBPATH
15760   ;;
15761
15762 osf3* | osf4* | osf5*)
15763   version_type=osf
15764   need_lib_prefix=no
15765   need_version=no
15766   soname_spec='${libname}${release}${shared_ext}$major'
15767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768   shlibpath_var=LD_LIBRARY_PATH
15769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15771   ;;
15772
15773 solaris*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   shlibpath_overrides_runpath=yes
15781   hardcode_into_libs=yes
15782   # ldd complains unless libraries are executable
15783   postinstall_cmds='chmod +x $lib'
15784   ;;
15785
15786 sunos4*)
15787   version_type=sunos
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15789   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   shlibpath_overrides_runpath=yes
15792   if test "$with_gnu_ld" = yes; then
15793     need_lib_prefix=no
15794   fi
15795   need_version=yes
15796   ;;
15797
15798 sysv4 | sysv4.3*)
15799   version_type=linux
15800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801   soname_spec='${libname}${release}${shared_ext}$major'
15802   shlibpath_var=LD_LIBRARY_PATH
15803   case $host_vendor in
15804     sni)
15805       shlibpath_overrides_runpath=no
15806       need_lib_prefix=no
15807       export_dynamic_flag_spec='${wl}-Blargedynsym'
15808       runpath_var=LD_RUN_PATH
15809       ;;
15810     siemens)
15811       need_lib_prefix=no
15812       ;;
15813     motorola)
15814       need_lib_prefix=no
15815       need_version=no
15816       shlibpath_overrides_runpath=no
15817       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15818       ;;
15819   esac
15820   ;;
15821
15822 sysv4*MP*)
15823   if test -d /usr/nec ;then
15824     version_type=linux
15825     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15826     soname_spec='$libname${shared_ext}.$major'
15827     shlibpath_var=LD_LIBRARY_PATH
15828   fi
15829   ;;
15830
15831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15832   version_type=freebsd-elf
15833   need_lib_prefix=no
15834   need_version=no
15835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15836   soname_spec='${libname}${release}${shared_ext}$major'
15837   shlibpath_var=LD_LIBRARY_PATH
15838   hardcode_into_libs=yes
15839   if test "$with_gnu_ld" = yes; then
15840     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15841     shlibpath_overrides_runpath=no
15842   else
15843     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15844     shlibpath_overrides_runpath=yes
15845     case $host_os in
15846       sco3.2v5*)
15847         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15848         ;;
15849     esac
15850   fi
15851   sys_lib_dlsearch_path_spec='/usr/lib'
15852   ;;
15853
15854 uts4*)
15855   version_type=linux
15856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857   soname_spec='${libname}${release}${shared_ext}$major'
15858   shlibpath_var=LD_LIBRARY_PATH
15859   ;;
15860
15861 *)
15862   dynamic_linker=no
15863   ;;
15864 esac
15865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15866 echo "${ECHO_T}$dynamic_linker" >&6; }
15867 test "$dynamic_linker" = no && can_build_shared=no
15868
15869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15870 if test "$GCC" = yes; then
15871   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15872 fi
15873
15874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15876 hardcode_action_F77=
15877 if test -n "$hardcode_libdir_flag_spec_F77" || \
15878    test -n "$runpath_var_F77" || \
15879    test "X$hardcode_automatic_F77" = "Xyes" ; then
15880
15881   # We can hardcode non-existant directories.
15882   if test "$hardcode_direct_F77" != no &&
15883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884      # have to relink, otherwise we might link with an installed library
15885      # when we should be linking with a yet-to-be-installed one
15886      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15887      test "$hardcode_minus_L_F77" != no; then
15888     # Linking always hardcodes the temporary library directory.
15889     hardcode_action_F77=relink
15890   else
15891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892     hardcode_action_F77=immediate
15893   fi
15894 else
15895   # We cannot hardcode anything, or else we can only hardcode existing
15896   # directories.
15897   hardcode_action_F77=unsupported
15898 fi
15899 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15900 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15901
15902 if test "$hardcode_action_F77" = relink; then
15903   # Fast installation is not supported
15904   enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906      test "$enable_shared" = no; then
15907   # Fast installation is not necessary
15908   enable_fast_install=needless
15909 fi
15910
15911
15912 # The else clause should only fire when bootstrapping the
15913 # libtool distribution, otherwise you forgot to ship ltmain.sh
15914 # with your package, and you will get complaints that there are
15915 # no rules to generate ltmain.sh.
15916 if test -f "$ltmain"; then
15917   # See if we are running on zsh, and set the options which allow our commands through
15918   # without removal of \ escapes.
15919   if test -n "${ZSH_VERSION+set}" ; then
15920     setopt NO_GLOB_SUBST
15921   fi
15922   # Now quote all the things that may contain metacharacters while being
15923   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15924   # variables and quote the copies for generation of the libtool script.
15925   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15926     SED SHELL STRIP \
15927     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15928     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15929     deplibs_check_method reload_flag reload_cmds need_locks \
15930     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15931     lt_cv_sys_global_symbol_to_c_name_address \
15932     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15933     old_postinstall_cmds old_postuninstall_cmds \
15934     compiler_F77 \
15935     CC_F77 \
15936     LD_F77 \
15937     lt_prog_compiler_wl_F77 \
15938     lt_prog_compiler_pic_F77 \
15939     lt_prog_compiler_static_F77 \
15940     lt_prog_compiler_no_builtin_flag_F77 \
15941     export_dynamic_flag_spec_F77 \
15942     thread_safe_flag_spec_F77 \
15943     whole_archive_flag_spec_F77 \
15944     enable_shared_with_static_runtimes_F77 \
15945     old_archive_cmds_F77 \
15946     old_archive_from_new_cmds_F77 \
15947     predep_objects_F77 \
15948     postdep_objects_F77 \
15949     predeps_F77 \
15950     postdeps_F77 \
15951     compiler_lib_search_path_F77 \
15952     archive_cmds_F77 \
15953     archive_expsym_cmds_F77 \
15954     postinstall_cmds_F77 \
15955     postuninstall_cmds_F77 \
15956     old_archive_from_expsyms_cmds_F77 \
15957     allow_undefined_flag_F77 \
15958     no_undefined_flag_F77 \
15959     export_symbols_cmds_F77 \
15960     hardcode_libdir_flag_spec_F77 \
15961     hardcode_libdir_flag_spec_ld_F77 \
15962     hardcode_libdir_separator_F77 \
15963     hardcode_automatic_F77 \
15964     module_cmds_F77 \
15965     module_expsym_cmds_F77 \
15966     lt_cv_prog_compiler_c_o_F77 \
15967     exclude_expsyms_F77 \
15968     include_expsyms_F77; do
15969
15970     case $var in
15971     old_archive_cmds_F77 | \
15972     old_archive_from_new_cmds_F77 | \
15973     archive_cmds_F77 | \
15974     archive_expsym_cmds_F77 | \
15975     module_cmds_F77 | \
15976     module_expsym_cmds_F77 | \
15977     old_archive_from_expsyms_cmds_F77 | \
15978     export_symbols_cmds_F77 | \
15979     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15980     postinstall_cmds | postuninstall_cmds | \
15981     old_postinstall_cmds | old_postuninstall_cmds | \
15982     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15983       # Double-quote double-evaled strings.
15984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15985       ;;
15986     *)
15987       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15988       ;;
15989     esac
15990   done
15991
15992   case $lt_echo in
15993   *'\$0 --fallback-echo"')
15994     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15995     ;;
15996   esac
15997
15998 cfgfile="$ofile"
15999
16000   cat <<__EOF__ >> "$cfgfile"
16001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16002
16003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16004
16005 # Shell to use when invoking shell scripts.
16006 SHELL=$lt_SHELL
16007
16008 # Whether or not to build shared libraries.
16009 build_libtool_libs=$enable_shared
16010
16011 # Whether or not to build static libraries.
16012 build_old_libs=$enable_static
16013
16014 # Whether or not to add -lc for building shared libraries.
16015 build_libtool_need_lc=$archive_cmds_need_lc_F77
16016
16017 # Whether or not to disallow shared libs when runtime libs are static
16018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16019
16020 # Whether or not to optimize for fast installation.
16021 fast_install=$enable_fast_install
16022
16023 # The host system.
16024 host_alias=$host_alias
16025 host=$host
16026 host_os=$host_os
16027
16028 # The build system.
16029 build_alias=$build_alias
16030 build=$build
16031 build_os=$build_os
16032
16033 # An echo program that does not interpret backslashes.
16034 echo=$lt_echo
16035
16036 # The archiver.
16037 AR=$lt_AR
16038 AR_FLAGS=$lt_AR_FLAGS
16039
16040 # A C compiler.
16041 LTCC=$lt_LTCC
16042
16043 # LTCC compiler flags.
16044 LTCFLAGS=$lt_LTCFLAGS
16045
16046 # A language-specific compiler.
16047 CC=$lt_compiler_F77
16048
16049 # Is the compiler the GNU C compiler?
16050 with_gcc=$GCC_F77
16051
16052 # An ERE matcher.
16053 EGREP=$lt_EGREP
16054
16055 # The linker used to build libraries.
16056 LD=$lt_LD_F77
16057
16058 # Whether we need hard or soft links.
16059 LN_S=$lt_LN_S
16060
16061 # A BSD-compatible nm program.
16062 NM=$lt_NM
16063
16064 # A symbol stripping program
16065 STRIP=$lt_STRIP
16066
16067 # Used to examine libraries when file_magic_cmd begins "file"
16068 MAGIC_CMD=$MAGIC_CMD
16069
16070 # Used on cygwin: DLL creation program.
16071 DLLTOOL="$DLLTOOL"
16072
16073 # Used on cygwin: object dumper.
16074 OBJDUMP="$OBJDUMP"
16075
16076 # Used on cygwin: assembler.
16077 AS="$AS"
16078
16079 # The name of the directory that contains temporary libtool files.
16080 objdir=$objdir
16081
16082 # How to create reloadable object files.
16083 reload_flag=$lt_reload_flag
16084 reload_cmds=$lt_reload_cmds
16085
16086 # How to pass a linker flag through the compiler.
16087 wl=$lt_lt_prog_compiler_wl_F77
16088
16089 # Object file suffix (normally "o").
16090 objext="$ac_objext"
16091
16092 # Old archive suffix (normally "a").
16093 libext="$libext"
16094
16095 # Shared library suffix (normally ".so").
16096 shrext_cmds='$shrext_cmds'
16097
16098 # Executable file suffix (normally "").
16099 exeext="$exeext"
16100
16101 # Additional compiler flags for building library objects.
16102 pic_flag=$lt_lt_prog_compiler_pic_F77
16103 pic_mode=$pic_mode
16104
16105 # What is the maximum length of a command?
16106 max_cmd_len=$lt_cv_sys_max_cmd_len
16107
16108 # Does compiler simultaneously support -c and -o options?
16109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16110
16111 # Must we lock files when doing compilation?
16112 need_locks=$lt_need_locks
16113
16114 # Do we need the lib prefix for modules?
16115 need_lib_prefix=$need_lib_prefix
16116
16117 # Do we need a version for libraries?
16118 need_version=$need_version
16119
16120 # Whether dlopen is supported.
16121 dlopen_support=$enable_dlopen
16122
16123 # Whether dlopen of programs is supported.
16124 dlopen_self=$enable_dlopen_self
16125
16126 # Whether dlopen of statically linked programs is supported.
16127 dlopen_self_static=$enable_dlopen_self_static
16128
16129 # Compiler flag to prevent dynamic linking.
16130 link_static_flag=$lt_lt_prog_compiler_static_F77
16131
16132 # Compiler flag to turn off builtin functions.
16133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16134
16135 # Compiler flag to allow reflexive dlopens.
16136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16137
16138 # Compiler flag to generate shared objects directly from archives.
16139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16140
16141 # Compiler flag to generate thread-safe objects.
16142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16143
16144 # Library versioning type.
16145 version_type=$version_type
16146
16147 # Format of library name prefix.
16148 libname_spec=$lt_libname_spec
16149
16150 # List of archive names.  First name is the real one, the rest are links.
16151 # The last name is the one that the linker finds with -lNAME.
16152 library_names_spec=$lt_library_names_spec
16153
16154 # The coded name of the library, if different from the real name.
16155 soname_spec=$lt_soname_spec
16156
16157 # Commands used to build and install an old-style archive.
16158 RANLIB=$lt_RANLIB
16159 old_archive_cmds=$lt_old_archive_cmds_F77
16160 old_postinstall_cmds=$lt_old_postinstall_cmds
16161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16162
16163 # Create an old-style archive from a shared archive.
16164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16165
16166 # Create a temporary old-style archive to link instead of a shared archive.
16167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16168
16169 # Commands used to build and install a shared archive.
16170 archive_cmds=$lt_archive_cmds_F77
16171 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16172 postinstall_cmds=$lt_postinstall_cmds
16173 postuninstall_cmds=$lt_postuninstall_cmds
16174
16175 # Commands used to build a loadable module (assumed same as above if empty)
16176 module_cmds=$lt_module_cmds_F77
16177 module_expsym_cmds=$lt_module_expsym_cmds_F77
16178
16179 # Commands to strip libraries.
16180 old_striplib=$lt_old_striplib
16181 striplib=$lt_striplib
16182
16183 # Dependencies to place before the objects being linked to create a
16184 # shared library.
16185 predep_objects=$lt_predep_objects_F77
16186
16187 # Dependencies to place after the objects being linked to create a
16188 # shared library.
16189 postdep_objects=$lt_postdep_objects_F77
16190
16191 # Dependencies to place before the objects being linked to create a
16192 # shared library.
16193 predeps=$lt_predeps_F77
16194
16195 # Dependencies to place after the objects being linked to create a
16196 # shared library.
16197 postdeps=$lt_postdeps_F77
16198
16199 # The library search path used internally by the compiler when linking
16200 # a shared library.
16201 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16202
16203 # Method to check whether dependent libraries are shared objects.
16204 deplibs_check_method=$lt_deplibs_check_method
16205
16206 # Command to use when deplibs_check_method == file_magic.
16207 file_magic_cmd=$lt_file_magic_cmd
16208
16209 # Flag that allows shared libraries with undefined symbols to be built.
16210 allow_undefined_flag=$lt_allow_undefined_flag_F77
16211
16212 # Flag that forces no undefined symbols.
16213 no_undefined_flag=$lt_no_undefined_flag_F77
16214
16215 # Commands used to finish a libtool library installation in a directory.
16216 finish_cmds=$lt_finish_cmds
16217
16218 # Same as above, but a single script fragment to be evaled but not shown.
16219 finish_eval=$lt_finish_eval
16220
16221 # Take the output of nm and produce a listing of raw symbols and C names.
16222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16223
16224 # Transform the output of nm in a proper C declaration
16225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16226
16227 # Transform the output of nm in a C name address pair
16228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16229
16230 # This is the shared library runtime path variable.
16231 runpath_var=$runpath_var
16232
16233 # This is the shared library path variable.
16234 shlibpath_var=$shlibpath_var
16235
16236 # Is shlibpath searched before the hard-coded library search path?
16237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16238
16239 # How to hardcode a shared library path into an executable.
16240 hardcode_action=$hardcode_action_F77
16241
16242 # Whether we should hardcode library paths into libraries.
16243 hardcode_into_libs=$hardcode_into_libs
16244
16245 # Flag to hardcode \$libdir into a binary during linking.
16246 # This must work even if \$libdir does not exist.
16247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16248
16249 # If ld is used when linking, flag to hardcode \$libdir into
16250 # a binary during linking. This must work even if \$libdir does
16251 # not exist.
16252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16253
16254 # Whether we need a single -rpath flag with a separated argument.
16255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16256
16257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16258 # resulting binary.
16259 hardcode_direct=$hardcode_direct_F77
16260
16261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16262 # resulting binary.
16263 hardcode_minus_L=$hardcode_minus_L_F77
16264
16265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16266 # the resulting binary.
16267 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16268
16269 # Set to yes if building a shared library automatically hardcodes DIR into the library
16270 # and all subsequent libraries and executables linked against it.
16271 hardcode_automatic=$hardcode_automatic_F77
16272
16273 # Variables whose values should be saved in libtool wrapper scripts and
16274 # restored at relink time.
16275 variables_saved_for_relink="$variables_saved_for_relink"
16276
16277 # Whether libtool must link a program against all its dependency libraries.
16278 link_all_deplibs=$link_all_deplibs_F77
16279
16280 # Compile-time system search path for libraries
16281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16282
16283 # Run-time system search path for libraries
16284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16285
16286 # Fix the shell variable \$srcfile for the compiler.
16287 fix_srcfile_path="$fix_srcfile_path_F77"
16288
16289 # Set to yes if exported symbols are required.
16290 always_export_symbols=$always_export_symbols_F77
16291
16292 # The commands to list exported symbols.
16293 export_symbols_cmds=$lt_export_symbols_cmds_F77
16294
16295 # The commands to extract the exported symbol list from a shared archive.
16296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16297
16298 # Symbols that should not be listed in the preloaded symbols.
16299 exclude_expsyms=$lt_exclude_expsyms_F77
16300
16301 # Symbols that must always be exported.
16302 include_expsyms=$lt_include_expsyms_F77
16303
16304 # ### END LIBTOOL TAG CONFIG: $tagname
16305
16306 __EOF__
16307
16308
16309 else
16310   # If there is no Makefile yet, we rely on a make rule to execute
16311   # `config.status --recheck' to rerun these tests and create the
16312   # libtool script then.
16313   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16314   if test -f "$ltmain_in"; then
16315     test -f Makefile && make "$ltmain"
16316   fi
16317 fi
16318
16319
16320 ac_ext=c
16321 ac_cpp='$CPP $CPPFLAGS'
16322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16325
16326 CC="$lt_save_CC"
16327
16328         else
16329           tagname=""
16330         fi
16331         ;;
16332
16333       GCJ)
16334         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16335
16336
16337 # Source file extension for Java test sources.
16338 ac_ext=java
16339
16340 # Object file extension for compiled Java test sources.
16341 objext=o
16342 objext_GCJ=$objext
16343
16344 # Code to be used in simple compile tests
16345 lt_simple_compile_test_code="class foo {}\n"
16346
16347 # Code to be used in simple link tests
16348 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16349
16350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16351
16352 # If no C compiler was specified, use CC.
16353 LTCC=${LTCC-"$CC"}
16354
16355 # If no C compiler flags were specified, use CFLAGS.
16356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16357
16358 # Allow CC to be a program name with arguments.
16359 compiler=$CC
16360
16361
16362 # save warnings/boilerplate of simple test code
16363 ac_outfile=conftest.$ac_objext
16364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_compiler_boilerplate=`cat conftest.err`
16367 $rm conftest*
16368
16369 ac_outfile=conftest.$ac_objext
16370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16372 _lt_linker_boilerplate=`cat conftest.err`
16373 $rm conftest*
16374
16375
16376 # Allow CC to be a program name with arguments.
16377 lt_save_CC="$CC"
16378 CC=${GCJ-"gcj"}
16379 compiler=$CC
16380 compiler_GCJ=$CC
16381 for cc_temp in $compiler""; do
16382   case $cc_temp in
16383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16385     \-*) ;;
16386     *) break;;
16387   esac
16388 done
16389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16390
16391
16392 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16393 archive_cmds_need_lc_GCJ=no
16394
16395 old_archive_cmds_GCJ=$old_archive_cmds
16396
16397
16398 lt_prog_compiler_no_builtin_flag_GCJ=
16399
16400 if test "$GCC" = yes; then
16401   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16402
16403
16404 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16405 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16406 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16407   echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409   lt_cv_prog_compiler_rtti_exceptions=no
16410   ac_outfile=conftest.$ac_objext
16411    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16412    lt_compiler_flag="-fno-rtti -fno-exceptions"
16413    # Insert the option either (1) after the last *FLAGS variable, or
16414    # (2) before a word containing "conftest.", or (3) at the end.
16415    # Note that $ac_compile itself does not contain backslashes and begins
16416    # with a dollar sign (not a hyphen), so the echo should work correctly.
16417    # The option is referenced via a variable to avoid confusing sed.
16418    lt_compile=`echo "$ac_compile" | $SED \
16419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16421    -e 's:$: $lt_compiler_flag:'`
16422    (eval echo "\"\$as_me:16422: $lt_compile\"" >&5)
16423    (eval "$lt_compile" 2>conftest.err)
16424    ac_status=$?
16425    cat conftest.err >&5
16426    echo "$as_me:16426: \$? = $ac_status" >&5
16427    if (exit $ac_status) && test -s "$ac_outfile"; then
16428      # The compiler can only warn and ignore the option if not recognized
16429      # So say no if there are warnings other than the usual output.
16430      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16431      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16432      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16433        lt_cv_prog_compiler_rtti_exceptions=yes
16434      fi
16435    fi
16436    $rm conftest*
16437
16438 fi
16439 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16440 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16441
16442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16443     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16444 else
16445     :
16446 fi
16447
16448 fi
16449
16450 lt_prog_compiler_wl_GCJ=
16451 lt_prog_compiler_pic_GCJ=
16452 lt_prog_compiler_static_GCJ=
16453
16454 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16456
16457   if test "$GCC" = yes; then
16458     lt_prog_compiler_wl_GCJ='-Wl,'
16459     lt_prog_compiler_static_GCJ='-static'
16460
16461     case $host_os in
16462       aix*)
16463       # All AIX code is PIC.
16464       if test "$host_cpu" = ia64; then
16465         # AIX 5 now supports IA64 processor
16466         lt_prog_compiler_static_GCJ='-Bstatic'
16467       fi
16468       ;;
16469
16470     amigaos*)
16471       # FIXME: we need at least 68020 code to build shared libraries, but
16472       # adding the `-m68020' flag to GCC prevents building anything better,
16473       # like `-m68040'.
16474       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16475       ;;
16476
16477     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16478       # PIC is the default for these OSes.
16479       ;;
16480
16481     mingw* | pw32* | os2*)
16482       # This hack is so that the source file can tell whether it is being
16483       # built for inclusion in a dll (and should export symbols for example).
16484       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16485       ;;
16486
16487     darwin* | rhapsody*)
16488       # PIC is the default on this platform
16489       # Common symbols not allowed in MH_DYLIB files
16490       lt_prog_compiler_pic_GCJ='-fno-common'
16491       ;;
16492
16493     interix3*)
16494       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16495       # Instead, we relocate shared libraries at runtime.
16496       ;;
16497
16498     msdosdjgpp*)
16499       # Just because we use GCC doesn't mean we suddenly get shared libraries
16500       # on systems that don't support them.
16501       lt_prog_compiler_can_build_shared_GCJ=no
16502       enable_shared=no
16503       ;;
16504
16505     sysv4*MP*)
16506       if test -d /usr/nec; then
16507         lt_prog_compiler_pic_GCJ=-Kconform_pic
16508       fi
16509       ;;
16510
16511     hpux*)
16512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16513       # not for PA HP-UX.
16514       case $host_cpu in
16515       hppa*64*|ia64*)
16516         # +Z the default
16517         ;;
16518       *)
16519         lt_prog_compiler_pic_GCJ='-fPIC'
16520         ;;
16521       esac
16522       ;;
16523
16524     *)
16525       lt_prog_compiler_pic_GCJ='-fPIC'
16526       ;;
16527     esac
16528   else
16529     # PORTME Check for flag to pass linker flags through the system compiler.
16530     case $host_os in
16531     aix*)
16532       lt_prog_compiler_wl_GCJ='-Wl,'
16533       if test "$host_cpu" = ia64; then
16534         # AIX 5 now supports IA64 processor
16535         lt_prog_compiler_static_GCJ='-Bstatic'
16536       else
16537         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16538       fi
16539       ;;
16540       darwin*)
16541         # PIC is the default on this platform
16542         # Common symbols not allowed in MH_DYLIB files
16543        case $cc_basename in
16544          xlc*)
16545          lt_prog_compiler_pic_GCJ='-qnocommon'
16546          lt_prog_compiler_wl_GCJ='-Wl,'
16547          ;;
16548        esac
16549        ;;
16550
16551     mingw* | pw32* | os2*)
16552       # This hack is so that the source file can tell whether it is being
16553       # built for inclusion in a dll (and should export symbols for example).
16554       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16555       ;;
16556
16557     hpux9* | hpux10* | hpux11*)
16558       lt_prog_compiler_wl_GCJ='-Wl,'
16559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16560       # not for PA HP-UX.
16561       case $host_cpu in
16562       hppa*64*|ia64*)
16563         # +Z the default
16564         ;;
16565       *)
16566         lt_prog_compiler_pic_GCJ='+Z'
16567         ;;
16568       esac
16569       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16570       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16571       ;;
16572
16573     irix5* | irix6* | nonstopux*)
16574       lt_prog_compiler_wl_GCJ='-Wl,'
16575       # PIC (with -KPIC) is the default.
16576       lt_prog_compiler_static_GCJ='-non_shared'
16577       ;;
16578
16579     newsos6)
16580       lt_prog_compiler_pic_GCJ='-KPIC'
16581       lt_prog_compiler_static_GCJ='-Bstatic'
16582       ;;
16583
16584     linux* | k*bsd*-gnu)
16585       case $cc_basename in
16586       icc* | ecc*)
16587         lt_prog_compiler_wl_GCJ='-Wl,'
16588         lt_prog_compiler_pic_GCJ='-KPIC'
16589         lt_prog_compiler_static_GCJ='-static'
16590         ;;
16591       pgcc* | pgf77* | pgf90* | pgf95*)
16592         # Portland Group compilers (*not* the Pentium gcc compiler,
16593         # which looks to be a dead project)
16594         lt_prog_compiler_wl_GCJ='-Wl,'
16595         lt_prog_compiler_pic_GCJ='-fpic'
16596         lt_prog_compiler_static_GCJ='-Bstatic'
16597         ;;
16598       ccc*)
16599         lt_prog_compiler_wl_GCJ='-Wl,'
16600         # All Alpha code is PIC.
16601         lt_prog_compiler_static_GCJ='-non_shared'
16602         ;;
16603       esac
16604       ;;
16605
16606     osf3* | osf4* | osf5*)
16607       lt_prog_compiler_wl_GCJ='-Wl,'
16608       # All OSF/1 code is PIC.
16609       lt_prog_compiler_static_GCJ='-non_shared'
16610       ;;
16611
16612     solaris*)
16613       lt_prog_compiler_pic_GCJ='-KPIC'
16614       lt_prog_compiler_static_GCJ='-Bstatic'
16615       case $cc_basename in
16616       f77* | f90* | f95*)
16617         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16618       *)
16619         lt_prog_compiler_wl_GCJ='-Wl,';;
16620       esac
16621       ;;
16622
16623     sunos4*)
16624       lt_prog_compiler_wl_GCJ='-Qoption ld '
16625       lt_prog_compiler_pic_GCJ='-PIC'
16626       lt_prog_compiler_static_GCJ='-Bstatic'
16627       ;;
16628
16629     sysv4 | sysv4.2uw2* | sysv4.3*)
16630       lt_prog_compiler_wl_GCJ='-Wl,'
16631       lt_prog_compiler_pic_GCJ='-KPIC'
16632       lt_prog_compiler_static_GCJ='-Bstatic'
16633       ;;
16634
16635     sysv4*MP*)
16636       if test -d /usr/nec ;then
16637         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16638         lt_prog_compiler_static_GCJ='-Bstatic'
16639       fi
16640       ;;
16641
16642     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16643       lt_prog_compiler_wl_GCJ='-Wl,'
16644       lt_prog_compiler_pic_GCJ='-KPIC'
16645       lt_prog_compiler_static_GCJ='-Bstatic'
16646       ;;
16647
16648     unicos*)
16649       lt_prog_compiler_wl_GCJ='-Wl,'
16650       lt_prog_compiler_can_build_shared_GCJ=no
16651       ;;
16652
16653     uts4*)
16654       lt_prog_compiler_pic_GCJ='-pic'
16655       lt_prog_compiler_static_GCJ='-Bstatic'
16656       ;;
16657
16658     *)
16659       lt_prog_compiler_can_build_shared_GCJ=no
16660       ;;
16661     esac
16662   fi
16663
16664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16665 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16666
16667 #
16668 # Check to make sure the PIC flag actually works.
16669 #
16670 if test -n "$lt_prog_compiler_pic_GCJ"; then
16671
16672 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16673 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16674 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   lt_prog_compiler_pic_works_GCJ=no
16678   ac_outfile=conftest.$ac_objext
16679    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16680    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16681    # Insert the option either (1) after the last *FLAGS variable, or
16682    # (2) before a word containing "conftest.", or (3) at the end.
16683    # Note that $ac_compile itself does not contain backslashes and begins
16684    # with a dollar sign (not a hyphen), so the echo should work correctly.
16685    # The option is referenced via a variable to avoid confusing sed.
16686    lt_compile=`echo "$ac_compile" | $SED \
16687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16689    -e 's:$: $lt_compiler_flag:'`
16690    (eval echo "\"\$as_me:16690: $lt_compile\"" >&5)
16691    (eval "$lt_compile" 2>conftest.err)
16692    ac_status=$?
16693    cat conftest.err >&5
16694    echo "$as_me:16694: \$? = $ac_status" >&5
16695    if (exit $ac_status) && test -s "$ac_outfile"; then
16696      # The compiler can only warn and ignore the option if not recognized
16697      # So say no if there are warnings other than the usual output.
16698      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16699      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16700      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16701        lt_prog_compiler_pic_works_GCJ=yes
16702      fi
16703    fi
16704    $rm conftest*
16705
16706 fi
16707 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16709
16710 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16711     case $lt_prog_compiler_pic_GCJ in
16712      "" | " "*) ;;
16713      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16714      esac
16715 else
16716     lt_prog_compiler_pic_GCJ=
16717      lt_prog_compiler_can_build_shared_GCJ=no
16718 fi
16719
16720 fi
16721 case $host_os in
16722   # For platforms which do not support PIC, -DPIC is meaningless:
16723   *djgpp*)
16724     lt_prog_compiler_pic_GCJ=
16725     ;;
16726   *)
16727     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16728     ;;
16729 esac
16730
16731 #
16732 # Check to make sure the static flag actually works.
16733 #
16734 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16735 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16736 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16737 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   lt_prog_compiler_static_works_GCJ=no
16741    save_LDFLAGS="$LDFLAGS"
16742    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16743    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16744    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16745      # The linker can only warn and ignore the option if not recognized
16746      # So say no if there are warnings
16747      if test -s conftest.err; then
16748        # Append any errors to the config.log.
16749        cat conftest.err 1>&5
16750        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16751        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16752        if diff conftest.exp conftest.er2 >/dev/null; then
16753          lt_prog_compiler_static_works_GCJ=yes
16754        fi
16755      else
16756        lt_prog_compiler_static_works_GCJ=yes
16757      fi
16758    fi
16759    $rm conftest*
16760    LDFLAGS="$save_LDFLAGS"
16761
16762 fi
16763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16764 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16765
16766 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16767     :
16768 else
16769     lt_prog_compiler_static_GCJ=
16770 fi
16771
16772
16773 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16774 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16775 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16776   echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778   lt_cv_prog_compiler_c_o_GCJ=no
16779    $rm -r conftest 2>/dev/null
16780    mkdir conftest
16781    cd conftest
16782    mkdir out
16783    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16784
16785    lt_compiler_flag="-o out/conftest2.$ac_objext"
16786    # Insert the option either (1) after the last *FLAGS variable, or
16787    # (2) before a word containing "conftest.", or (3) at the end.
16788    # Note that $ac_compile itself does not contain backslashes and begins
16789    # with a dollar sign (not a hyphen), so the echo should work correctly.
16790    lt_compile=`echo "$ac_compile" | $SED \
16791    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16792    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16793    -e 's:$: $lt_compiler_flag:'`
16794    (eval echo "\"\$as_me:16794: $lt_compile\"" >&5)
16795    (eval "$lt_compile" 2>out/conftest.err)
16796    ac_status=$?
16797    cat out/conftest.err >&5
16798    echo "$as_me:16798: \$? = $ac_status" >&5
16799    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16800    then
16801      # The compiler can only warn and ignore the option if not recognized
16802      # So say no if there are warnings
16803      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16804      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16805      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16806        lt_cv_prog_compiler_c_o_GCJ=yes
16807      fi
16808    fi
16809    chmod u+w . 2>&5
16810    $rm conftest*
16811    # SGI C++ compiler will create directory out/ii_files/ for
16812    # template instantiation
16813    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16814    $rm out/* && rmdir out
16815    cd ..
16816    rmdir conftest
16817    $rm conftest*
16818
16819 fi
16820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16821 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16822
16823
16824 hard_links="nottested"
16825 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16826   # do not overwrite the value of need_locks provided by the user
16827   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16828 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16829   hard_links=yes
16830   $rm conftest*
16831   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16832   touch conftest.a
16833   ln conftest.a conftest.b 2>&5 || hard_links=no
16834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16835   { echo "$as_me:$LINENO: result: $hard_links" >&5
16836 echo "${ECHO_T}$hard_links" >&6; }
16837   if test "$hard_links" = no; then
16838     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16839 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16840     need_locks=warn
16841   fi
16842 else
16843   need_locks=no
16844 fi
16845
16846 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16847 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16848
16849   runpath_var=
16850   allow_undefined_flag_GCJ=
16851   enable_shared_with_static_runtimes_GCJ=no
16852   archive_cmds_GCJ=
16853   archive_expsym_cmds_GCJ=
16854   old_archive_From_new_cmds_GCJ=
16855   old_archive_from_expsyms_cmds_GCJ=
16856   export_dynamic_flag_spec_GCJ=
16857   whole_archive_flag_spec_GCJ=
16858   thread_safe_flag_spec_GCJ=
16859   hardcode_libdir_flag_spec_GCJ=
16860   hardcode_libdir_flag_spec_ld_GCJ=
16861   hardcode_libdir_separator_GCJ=
16862   hardcode_direct_GCJ=no
16863   hardcode_minus_L_GCJ=no
16864   hardcode_shlibpath_var_GCJ=unsupported
16865   link_all_deplibs_GCJ=unknown
16866   hardcode_automatic_GCJ=no
16867   module_cmds_GCJ=
16868   module_expsym_cmds_GCJ=
16869   always_export_symbols_GCJ=no
16870   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16871   # include_expsyms should be a list of space-separated symbols to be *always*
16872   # included in the symbol list
16873   include_expsyms_GCJ=
16874   # exclude_expsyms can be an extended regexp of symbols to exclude
16875   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16876   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16877   # as well as any symbol that contains `d'.
16878   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16879   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16880   # platforms (ab)use it in PIC code, but their linkers get confused if
16881   # the symbol is explicitly referenced.  Since portable code cannot
16882   # rely on this symbol name, it's probably fine to never include it in
16883   # preloaded symbol tables.
16884   extract_expsyms_cmds=
16885   # Just being paranoid about ensuring that cc_basename is set.
16886   for cc_temp in $compiler""; do
16887   case $cc_temp in
16888     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16889     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16890     \-*) ;;
16891     *) break;;
16892   esac
16893 done
16894 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16895
16896   case $host_os in
16897   cygwin* | mingw* | pw32*)
16898     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16899     # When not using gcc, we currently assume that we are using
16900     # Microsoft Visual C++.
16901     if test "$GCC" != yes; then
16902       with_gnu_ld=no
16903     fi
16904     ;;
16905   interix*)
16906     # we just hope/assume this is gcc and not c89 (= MSVC++)
16907     with_gnu_ld=yes
16908     ;;
16909   openbsd*)
16910     with_gnu_ld=no
16911     ;;
16912   esac
16913
16914   ld_shlibs_GCJ=yes
16915   if test "$with_gnu_ld" = yes; then
16916     # If archive_cmds runs LD, not CC, wlarc should be empty
16917     wlarc='${wl}'
16918
16919     # Set some defaults for GNU ld with shared library support. These
16920     # are reset later if shared libraries are not supported. Putting them
16921     # here allows them to be overridden if necessary.
16922     runpath_var=LD_RUN_PATH
16923     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16924     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16925     # ancient GNU ld didn't support --whole-archive et. al.
16926     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16927         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16928       else
16929         whole_archive_flag_spec_GCJ=
16930     fi
16931     supports_anon_versioning=no
16932     case `$LD -v 2>/dev/null` in
16933       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16934       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16935       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16936       *\ 2.11.*) ;; # other 2.11 versions
16937       *) supports_anon_versioning=yes ;;
16938     esac
16939
16940     # See if GNU ld supports shared libraries.
16941     case $host_os in
16942     aix3* | aix4* | aix5*)
16943       # On AIX/PPC, the GNU linker is very broken
16944       if test "$host_cpu" != ia64; then
16945         ld_shlibs_GCJ=no
16946         cat <<EOF 1>&2
16947
16948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16949 *** to be unable to reliably create shared libraries on AIX.
16950 *** Therefore, libtool is disabling shared libraries support.  If you
16951 *** really care for shared libraries, you may want to modify your PATH
16952 *** so that a non-GNU linker is found, and then restart.
16953
16954 EOF
16955       fi
16956       ;;
16957
16958     amigaos*)
16959       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)'
16960       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961       hardcode_minus_L_GCJ=yes
16962
16963       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16964       # that the semantics of dynamic libraries on AmigaOS, at least up
16965       # to version 4, is to share data among multiple programs linked
16966       # with the same dynamic library.  Since this doesn't match the
16967       # behavior of shared libraries on other platforms, we can't use
16968       # them.
16969       ld_shlibs_GCJ=no
16970       ;;
16971
16972     beos*)
16973       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974         allow_undefined_flag_GCJ=unsupported
16975         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16976         # support --undefined.  This deserves some investigation.  FIXME
16977         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16978       else
16979         ld_shlibs_GCJ=no
16980       fi
16981       ;;
16982
16983     cygwin* | mingw* | pw32*)
16984       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16985       # as there is no search path for DLLs.
16986       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16987       allow_undefined_flag_GCJ=unsupported
16988       always_export_symbols_GCJ=no
16989       enable_shared_with_static_runtimes_GCJ=yes
16990       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16991
16992       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16993         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16994         # If the export-symbols file already is a .def file (1st line
16995         # is EXPORTS), use it as is; otherwise, prepend...
16996         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16997           cp $export_symbols $output_objdir/$soname.def;
16998         else
16999           echo EXPORTS > $output_objdir/$soname.def;
17000           cat $export_symbols >> $output_objdir/$soname.def;
17001         fi~
17002         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17003       else
17004         ld_shlibs_GCJ=no
17005       fi
17006       ;;
17007
17008     interix3*)
17009       hardcode_direct_GCJ=no
17010       hardcode_shlibpath_var_GCJ=no
17011       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17012       export_dynamic_flag_spec_GCJ='${wl}-E'
17013       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17014       # Instead, shared libraries are loaded at an image base (0x10000000 by
17015       # default) and relocated if they conflict, which is a slow very memory
17016       # consuming and fragmenting process.  To avoid this, we pick a random,
17017       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17018       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17019       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'
17020       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'
17021       ;;
17022
17023     linux* | k*bsd*-gnu)
17024       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17025         tmp_addflag=
17026         case $cc_basename,$host_cpu in
17027         pgcc*)                          # Portland Group C compiler
17028           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'
17029           tmp_addflag=' $pic_flag'
17030           ;;
17031         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17032           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'
17033           tmp_addflag=' $pic_flag -Mnomain' ;;
17034         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17035           tmp_addflag=' -i_dynamic' ;;
17036         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17037           tmp_addflag=' -i_dynamic -nofor_main' ;;
17038         ifc* | ifort*)                  # Intel Fortran compiler
17039           tmp_addflag=' -nofor_main' ;;
17040         esac
17041         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17042
17043         if test $supports_anon_versioning = yes; then
17044           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17045   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17046   $echo "local: *; };" >> $output_objdir/$libname.ver~
17047           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17048         fi
17049         link_all_deplibs_GCJ=no
17050       else
17051         ld_shlibs_GCJ=no
17052       fi
17053       ;;
17054
17055     netbsd* | netbsdelf*-gnu)
17056       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17057         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17058         wlarc=
17059       else
17060         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17061         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17062       fi
17063       ;;
17064
17065     solaris*)
17066       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17067         ld_shlibs_GCJ=no
17068         cat <<EOF 1>&2
17069
17070 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17071 *** create shared libraries on Solaris systems.  Therefore, libtool
17072 *** is disabling shared libraries support.  We urge you to upgrade GNU
17073 *** binutils to release 2.9.1 or newer.  Another option is to modify
17074 *** your PATH or compiler configuration so that the native linker is
17075 *** used, and then restart.
17076
17077 EOF
17078       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17081       else
17082         ld_shlibs_GCJ=no
17083       fi
17084       ;;
17085
17086     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17087       case `$LD -v 2>&1` in
17088         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17089         ld_shlibs_GCJ=no
17090         cat <<_LT_EOF 1>&2
17091
17092 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17093 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17094 *** is disabling shared libraries support.  We urge you to upgrade GNU
17095 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17096 *** your PATH or compiler configuration so that the native linker is
17097 *** used, and then restart.
17098
17099 _LT_EOF
17100         ;;
17101         *)
17102           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17103             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17104             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17105             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17106           else
17107             ld_shlibs_GCJ=no
17108           fi
17109         ;;
17110       esac
17111       ;;
17112
17113     sunos4*)
17114       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17115       wlarc=
17116       hardcode_direct_GCJ=yes
17117       hardcode_shlibpath_var_GCJ=no
17118       ;;
17119
17120     *)
17121       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17122         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17124       else
17125         ld_shlibs_GCJ=no
17126       fi
17127       ;;
17128     esac
17129
17130     if test "$ld_shlibs_GCJ" = no; then
17131       runpath_var=
17132       hardcode_libdir_flag_spec_GCJ=
17133       export_dynamic_flag_spec_GCJ=
17134       whole_archive_flag_spec_GCJ=
17135     fi
17136   else
17137     # PORTME fill in a description of your system's linker (not GNU ld)
17138     case $host_os in
17139     aix3*)
17140       allow_undefined_flag_GCJ=unsupported
17141       always_export_symbols_GCJ=yes
17142       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'
17143       # Note: this linker hardcodes the directories in LIBPATH if there
17144       # are no directories specified by -L.
17145       hardcode_minus_L_GCJ=yes
17146       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17147         # Neither direct hardcoding nor static linking is supported with a
17148         # broken collect2.
17149         hardcode_direct_GCJ=unsupported
17150       fi
17151       ;;
17152
17153     aix4* | aix5*)
17154       if test "$host_cpu" = ia64; then
17155         # On IA64, the linker does run time linking by default, so we don't
17156         # have to do anything special.
17157         aix_use_runtimelinking=no
17158         exp_sym_flag='-Bexport'
17159         no_entry_flag=""
17160       else
17161         # If we're using GNU nm, then we don't want the "-C" option.
17162         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17163         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17164           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'
17165         else
17166           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'
17167         fi
17168         aix_use_runtimelinking=no
17169
17170         # Test if we are trying to use run time linking or normal
17171         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17172         # need to do runtime linking.
17173         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17174           for ld_flag in $LDFLAGS; do
17175           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17176             aix_use_runtimelinking=yes
17177             break
17178           fi
17179           done
17180           ;;
17181         esac
17182
17183         exp_sym_flag='-bexport'
17184         no_entry_flag='-bnoentry'
17185       fi
17186
17187       # When large executables or shared objects are built, AIX ld can
17188       # have problems creating the table of contents.  If linking a library
17189       # or program results in "error TOC overflow" add -mminimal-toc to
17190       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17191       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17192
17193       archive_cmds_GCJ=''
17194       hardcode_direct_GCJ=yes
17195       hardcode_libdir_separator_GCJ=':'
17196       link_all_deplibs_GCJ=yes
17197
17198       if test "$GCC" = yes; then
17199         case $host_os in aix4.[012]|aix4.[012].*)
17200         # We only want to do this on AIX 4.2 and lower, the check
17201         # below for broken collect2 doesn't work under 4.3+
17202           collect2name=`${CC} -print-prog-name=collect2`
17203           if test -f "$collect2name" && \
17204            strings "$collect2name" | grep resolve_lib_name >/dev/null
17205           then
17206           # We have reworked collect2
17207           hardcode_direct_GCJ=yes
17208           else
17209           # We have old collect2
17210           hardcode_direct_GCJ=unsupported
17211           # It fails to find uninstalled libraries when the uninstalled
17212           # path is not listed in the libpath.  Setting hardcode_minus_L
17213           # to unsupported forces relinking
17214           hardcode_minus_L_GCJ=yes
17215           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17216           hardcode_libdir_separator_GCJ=
17217           fi
17218           ;;
17219         esac
17220         shared_flag='-shared'
17221         if test "$aix_use_runtimelinking" = yes; then
17222           shared_flag="$shared_flag "'${wl}-G'
17223         fi
17224       else
17225         # not using gcc
17226         if test "$host_cpu" = ia64; then
17227         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17228         # chokes on -Wl,-G. The following line is correct:
17229           shared_flag='-G'
17230         else
17231           if test "$aix_use_runtimelinking" = yes; then
17232             shared_flag='${wl}-G'
17233           else
17234             shared_flag='${wl}-bM:SRE'
17235           fi
17236         fi
17237       fi
17238
17239       # It seems that -bexpall does not export symbols beginning with
17240       # underscore (_), so it is better to generate a list of symbols to export.
17241       always_export_symbols_GCJ=yes
17242       if test "$aix_use_runtimelinking" = yes; then
17243         # Warning - without using the other runtime loading flags (-brtl),
17244         # -berok will link without error, but may produce a broken library.
17245         allow_undefined_flag_GCJ='-berok'
17246        # Determine the default libpath from the value encoded in an empty executable.
17247        cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253
17254 int
17255 main ()
17256 {
17257
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_link") 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } && {
17276          test -z "$ac_c_werror_flag" ||
17277          test ! -s conftest.err
17278        } && test -s conftest$ac_exeext &&
17279        $as_test_x conftest$ac_exeext; then
17280
17281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17282 }'`
17283 # Check for a 64-bit object if we didn't find anything.
17284 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17285 }'`; fi
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290
17291 fi
17292
17293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17294       conftest$ac_exeext conftest.$ac_ext
17295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17296
17297        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17298         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"
17299        else
17300         if test "$host_cpu" = ia64; then
17301           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17302           allow_undefined_flag_GCJ="-z nodefs"
17303           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"
17304         else
17305          # Determine the default libpath from the value encoded in an empty executable.
17306          cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312
17313 int
17314 main ()
17315 {
17316
17317   ;
17318   return 0;
17319 }
17320 _ACEOF
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325   *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328   (eval "$ac_link") 2>conftest.er1
17329   ac_status=$?
17330   grep -v '^ *+' conftest.er1 >conftest.err
17331   rm -f conftest.er1
17332   cat conftest.err >&5
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); } && {
17335          test -z "$ac_c_werror_flag" ||
17336          test ! -s conftest.err
17337        } && test -s conftest$ac_exeext &&
17338        $as_test_x conftest$ac_exeext; then
17339
17340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17341 }'`
17342 # Check for a 64-bit object if we didn't find anything.
17343 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17344 }'`; fi
17345 else
17346   echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17348
17349
17350 fi
17351
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353       conftest$ac_exeext conftest.$ac_ext
17354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17355
17356          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17357           # Warning - without using the other run time loading flags,
17358           # -berok will link without error, but may produce a broken library.
17359           no_undefined_flag_GCJ=' ${wl}-bernotok'
17360           allow_undefined_flag_GCJ=' ${wl}-berok'
17361           # Exported symbols can be pulled into shared objects from archives
17362           whole_archive_flag_spec_GCJ='$convenience'
17363           archive_cmds_need_lc_GCJ=yes
17364           # This is similar to how AIX traditionally builds its shared libraries.
17365           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'
17366         fi
17367       fi
17368       ;;
17369
17370     amigaos*)
17371       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)'
17372       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17373       hardcode_minus_L_GCJ=yes
17374       # see comment about different semantics on the GNU ld section
17375       ld_shlibs_GCJ=no
17376       ;;
17377
17378     bsdi[45]*)
17379       export_dynamic_flag_spec_GCJ=-rdynamic
17380       ;;
17381
17382     cygwin* | mingw* | pw32*)
17383       # When not using gcc, we currently assume that we are using
17384       # Microsoft Visual C++.
17385       # hardcode_libdir_flag_spec is actually meaningless, as there is
17386       # no search path for DLLs.
17387       hardcode_libdir_flag_spec_GCJ=' '
17388       allow_undefined_flag_GCJ=unsupported
17389       # Tell ltmain to make .lib files, not .a files.
17390       libext=lib
17391       # Tell ltmain to make .dll files, not .so files.
17392       shrext_cmds=".dll"
17393       # FIXME: Setting linknames here is a bad hack.
17394       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17395       # The linker will automatically build a .lib file if we build a DLL.
17396       old_archive_From_new_cmds_GCJ='true'
17397       # FIXME: Should let the user specify the lib program.
17398       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17399       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17400       enable_shared_with_static_runtimes_GCJ=yes
17401       ;;
17402
17403     darwin* | rhapsody*)
17404       case $host_os in
17405         rhapsody* | darwin1.[012])
17406          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17407          ;;
17408        *) # Darwin 1.3 on
17409          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17410            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17411          else
17412            case ${MACOSX_DEPLOYMENT_TARGET} in
17413              10.[012])
17414                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17415                ;;
17416              10.*)
17417                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17418                ;;
17419            esac
17420          fi
17421          ;;
17422       esac
17423       archive_cmds_need_lc_GCJ=no
17424       hardcode_direct_GCJ=no
17425       hardcode_automatic_GCJ=yes
17426       hardcode_shlibpath_var_GCJ=unsupported
17427       whole_archive_flag_spec_GCJ=''
17428       link_all_deplibs_GCJ=yes
17429     if test "$GCC" = yes ; then
17430         output_verbose_link_cmd='echo'
17431         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17432       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17434       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}'
17435       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}'
17436     else
17437       case $cc_basename in
17438         xlc*)
17439          output_verbose_link_cmd='echo'
17440          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17441          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17442           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17443          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17444           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}'
17445           ;;
17446        *)
17447          ld_shlibs_GCJ=no
17448           ;;
17449       esac
17450     fi
17451       ;;
17452
17453     dgux*)
17454       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17456       hardcode_shlibpath_var_GCJ=no
17457       ;;
17458
17459     freebsd1*)
17460       ld_shlibs_GCJ=no
17461       ;;
17462
17463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17464     # support.  Future versions do this automatically, but an explicit c++rt0.o
17465     # does not break anything, and helps significantly (at the cost of a little
17466     # extra space).
17467     freebsd2.2*)
17468       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17469       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17470       hardcode_direct_GCJ=yes
17471       hardcode_shlibpath_var_GCJ=no
17472       ;;
17473
17474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17475     freebsd2*)
17476       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17477       hardcode_direct_GCJ=yes
17478       hardcode_minus_L_GCJ=yes
17479       hardcode_shlibpath_var_GCJ=no
17480       ;;
17481
17482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17483     freebsd* | dragonfly*)
17484       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17485       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17486       hardcode_direct_GCJ=yes
17487       hardcode_shlibpath_var_GCJ=no
17488       ;;
17489
17490     hpux9*)
17491       if test "$GCC" = yes; then
17492         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'
17493       else
17494         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'
17495       fi
17496       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17497       hardcode_libdir_separator_GCJ=:
17498       hardcode_direct_GCJ=yes
17499
17500       # hardcode_minus_L: Not really in the search PATH,
17501       # but as the default location of the library.
17502       hardcode_minus_L_GCJ=yes
17503       export_dynamic_flag_spec_GCJ='${wl}-E'
17504       ;;
17505
17506     hpux10*)
17507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17508         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17509       else
17510         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17511       fi
17512       if test "$with_gnu_ld" = no; then
17513         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17514         hardcode_libdir_separator_GCJ=:
17515
17516         hardcode_direct_GCJ=yes
17517         export_dynamic_flag_spec_GCJ='${wl}-E'
17518
17519         # hardcode_minus_L: Not really in the search PATH,
17520         # but as the default location of the library.
17521         hardcode_minus_L_GCJ=yes
17522       fi
17523       ;;
17524
17525     hpux11*)
17526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17527         case $host_cpu in
17528         hppa*64*)
17529           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17530           ;;
17531         ia64*)
17532           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17533           ;;
17534         *)
17535           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17536           ;;
17537         esac
17538       else
17539         case $host_cpu in
17540         hppa*64*)
17541           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17542           ;;
17543         ia64*)
17544           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17545           ;;
17546         *)
17547           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17548           ;;
17549         esac
17550       fi
17551       if test "$with_gnu_ld" = no; then
17552         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553         hardcode_libdir_separator_GCJ=:
17554
17555         case $host_cpu in
17556         hppa*64*|ia64*)
17557           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17558           hardcode_direct_GCJ=no
17559           hardcode_shlibpath_var_GCJ=no
17560           ;;
17561         *)
17562           hardcode_direct_GCJ=yes
17563           export_dynamic_flag_spec_GCJ='${wl}-E'
17564
17565           # hardcode_minus_L: Not really in the search PATH,
17566           # but as the default location of the library.
17567           hardcode_minus_L_GCJ=yes
17568           ;;
17569         esac
17570       fi
17571       ;;
17572
17573     irix5* | irix6* | nonstopux*)
17574       if test "$GCC" = yes; then
17575         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'
17576       else
17577         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'
17578         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17579       fi
17580       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17581       hardcode_libdir_separator_GCJ=:
17582       link_all_deplibs_GCJ=yes
17583       ;;
17584
17585     netbsd* | netbsdelf*-gnu)
17586       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17587         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17588       else
17589         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17590       fi
17591       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17592       hardcode_direct_GCJ=yes
17593       hardcode_shlibpath_var_GCJ=no
17594       ;;
17595
17596     newsos6)
17597       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598       hardcode_direct_GCJ=yes
17599       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17600       hardcode_libdir_separator_GCJ=:
17601       hardcode_shlibpath_var_GCJ=no
17602       ;;
17603
17604     openbsd*)
17605       hardcode_direct_GCJ=yes
17606       hardcode_shlibpath_var_GCJ=no
17607       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17608         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17609         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17610         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17611         export_dynamic_flag_spec_GCJ='${wl}-E'
17612       else
17613        case $host_os in
17614          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17615            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17616            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17617            ;;
17618          *)
17619            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17620            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17621            ;;
17622        esac
17623       fi
17624       ;;
17625
17626     os2*)
17627       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17628       hardcode_minus_L_GCJ=yes
17629       allow_undefined_flag_GCJ=unsupported
17630       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'
17631       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17632       ;;
17633
17634     osf3*)
17635       if test "$GCC" = yes; then
17636         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17637         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'
17638       else
17639         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17640         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'
17641       fi
17642       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17643       hardcode_libdir_separator_GCJ=:
17644       ;;
17645
17646     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17647       if test "$GCC" = yes; then
17648         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17649         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'
17650         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651       else
17652         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17653         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'
17654         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~
17655         $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'
17656
17657         # Both c and cxx compiler support -rpath directly
17658         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17659       fi
17660       hardcode_libdir_separator_GCJ=:
17661       ;;
17662
17663     solaris*)
17664       no_undefined_flag_GCJ=' -z text'
17665       if test "$GCC" = yes; then
17666         wlarc='${wl}'
17667         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17668         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17669           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17670       else
17671         wlarc=''
17672         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17674         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17675       fi
17676       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17677       hardcode_shlibpath_var_GCJ=no
17678       case $host_os in
17679       solaris2.[0-5] | solaris2.[0-5].*) ;;
17680       *)
17681         # The compiler driver will combine linker options so we
17682         # cannot just pass the convience library names through
17683         # without $wl, iff we do not link with $LD.
17684         # Luckily, gcc supports the same syntax we need for Sun Studio.
17685         # Supported since Solaris 2.6 (maybe 2.5.1?)
17686         case $wlarc in
17687         '')
17688           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17689         *)
17690           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17691         esac ;;
17692       esac
17693       link_all_deplibs_GCJ=yes
17694       ;;
17695
17696     sunos4*)
17697       if test "x$host_vendor" = xsequent; then
17698         # Use $CC to link under sequent, because it throws in some extra .o
17699         # files that make .init and .fini sections work.
17700         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17701       else
17702         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17703       fi
17704       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17705       hardcode_direct_GCJ=yes
17706       hardcode_minus_L_GCJ=yes
17707       hardcode_shlibpath_var_GCJ=no
17708       ;;
17709
17710     sysv4)
17711       case $host_vendor in
17712         sni)
17713           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714           hardcode_direct_GCJ=yes # is this really true???
17715         ;;
17716         siemens)
17717           ## LD is ld it makes a PLAMLIB
17718           ## CC just makes a GrossModule.
17719           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17720           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17721           hardcode_direct_GCJ=no
17722         ;;
17723         motorola)
17724           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17725           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17726         ;;
17727       esac
17728       runpath_var='LD_RUN_PATH'
17729       hardcode_shlibpath_var_GCJ=no
17730       ;;
17731
17732     sysv4.3*)
17733       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17734       hardcode_shlibpath_var_GCJ=no
17735       export_dynamic_flag_spec_GCJ='-Bexport'
17736       ;;
17737
17738     sysv4*MP*)
17739       if test -d /usr/nec; then
17740         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741         hardcode_shlibpath_var_GCJ=no
17742         runpath_var=LD_RUN_PATH
17743         hardcode_runpath_var=yes
17744         ld_shlibs_GCJ=yes
17745       fi
17746       ;;
17747
17748     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17749       no_undefined_flag_GCJ='${wl}-z,text'
17750       archive_cmds_need_lc_GCJ=no
17751       hardcode_shlibpath_var_GCJ=no
17752       runpath_var='LD_RUN_PATH'
17753
17754       if test "$GCC" = yes; then
17755         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757       else
17758         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760       fi
17761       ;;
17762
17763     sysv5* | sco3.2v5* | sco5v6*)
17764       # Note: We can NOT use -z defs as we might desire, because we do not
17765       # link with -lc, and that would cause any symbols used from libc to
17766       # always be unresolved, which means just about no library would
17767       # ever link correctly.  If we're not using GNU ld we use -z text
17768       # though, which does catch some bad symbols but isn't as heavy-handed
17769       # as -z defs.
17770       no_undefined_flag_GCJ='${wl}-z,text'
17771       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17772       archive_cmds_need_lc_GCJ=no
17773       hardcode_shlibpath_var_GCJ=no
17774       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17775       hardcode_libdir_separator_GCJ=':'
17776       link_all_deplibs_GCJ=yes
17777       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17778       runpath_var='LD_RUN_PATH'
17779
17780       if test "$GCC" = yes; then
17781         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783       else
17784         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786       fi
17787       ;;
17788
17789     uts4*)
17790       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17792       hardcode_shlibpath_var_GCJ=no
17793       ;;
17794
17795     *)
17796       ld_shlibs_GCJ=no
17797       ;;
17798     esac
17799   fi
17800
17801 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17802 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17803 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17804
17805 #
17806 # Do we need to explicitly link libc?
17807 #
17808 case "x$archive_cmds_need_lc_GCJ" in
17809 x|xyes)
17810   # Assume -lc should be added
17811   archive_cmds_need_lc_GCJ=yes
17812
17813   if test "$enable_shared" = yes && test "$GCC" = yes; then
17814     case $archive_cmds_GCJ in
17815     *'~'*)
17816       # FIXME: we may have to deal with multi-command sequences.
17817       ;;
17818     '$CC '*)
17819       # Test whether the compiler implicitly links with -lc since on some
17820       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17821       # to ld, don't add -lc before -lgcc.
17822       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17824       $rm conftest*
17825       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17826
17827       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17828   (eval $ac_compile) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); } 2>conftest.err; then
17832         soname=conftest
17833         lib=conftest
17834         libobjs=conftest.$ac_objext
17835         deplibs=
17836         wl=$lt_prog_compiler_wl_GCJ
17837         pic_flag=$lt_prog_compiler_pic_GCJ
17838         compiler_flags=-v
17839         linker_flags=-v
17840         verstring=
17841         output_objdir=.
17842         libname=conftest
17843         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17844         allow_undefined_flag_GCJ=
17845         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17846   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }
17850         then
17851           archive_cmds_need_lc_GCJ=no
17852         else
17853           archive_cmds_need_lc_GCJ=yes
17854         fi
17855         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17856       else
17857         cat conftest.err 1>&5
17858       fi
17859       $rm conftest*
17860       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17861 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17862       ;;
17863     esac
17864   fi
17865   ;;
17866 esac
17867
17868 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17870 library_names_spec=
17871 libname_spec='lib$name'
17872 soname_spec=
17873 shrext_cmds=".so"
17874 postinstall_cmds=
17875 postuninstall_cmds=
17876 finish_cmds=
17877 finish_eval=
17878 shlibpath_var=
17879 shlibpath_overrides_runpath=unknown
17880 version_type=none
17881 dynamic_linker="$host_os ld.so"
17882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17883 if test "$GCC" = yes; then
17884   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17885   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17886     # if the path contains ";" then we assume it to be the separator
17887     # otherwise default to the standard path separator (i.e. ":") - it is
17888     # assumed that no part of a normal pathname contains ";" but that should
17889     # okay in the real world where ";" in dirpaths is itself problematic.
17890     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17891   else
17892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17893   fi
17894 else
17895   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17896 fi
17897 need_lib_prefix=unknown
17898 hardcode_into_libs=no
17899
17900 # when you set need_version to no, make sure it does not cause -set_version
17901 # flags to be left without arguments
17902 need_version=unknown
17903
17904 case $host_os in
17905 aix3*)
17906   version_type=linux
17907   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17908   shlibpath_var=LIBPATH
17909
17910   # AIX 3 has no versioning support, so we append a major version to the name.
17911   soname_spec='${libname}${release}${shared_ext}$major'
17912   ;;
17913
17914 aix4* | aix5*)
17915   version_type=linux
17916   need_lib_prefix=no
17917   need_version=no
17918   hardcode_into_libs=yes
17919   if test "$host_cpu" = ia64; then
17920     # AIX 5 supports IA64
17921     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17922     shlibpath_var=LD_LIBRARY_PATH
17923   else
17924     # With GCC up to 2.95.x, collect2 would create an import file
17925     # for dependence libraries.  The import file would start with
17926     # the line `#! .'.  This would cause the generated library to
17927     # depend on `.', always an invalid library.  This was fixed in
17928     # development snapshots of GCC prior to 3.0.
17929     case $host_os in
17930       aix4 | aix4.[01] | aix4.[01].*)
17931       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17932            echo ' yes '
17933            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17934         :
17935       else
17936         can_build_shared=no
17937       fi
17938       ;;
17939     esac
17940     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17941     # soname into executable. Probably we can add versioning support to
17942     # collect2, so additional links can be useful in future.
17943     if test "$aix_use_runtimelinking" = yes; then
17944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17945       # instead of lib<name>.a to let people know that these are not
17946       # typical AIX shared libraries.
17947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948     else
17949       # We preserve .a as extension for shared libraries through AIX4.2
17950       # and later when we are not doing run time linking.
17951       library_names_spec='${libname}${release}.a $libname.a'
17952       soname_spec='${libname}${release}${shared_ext}$major'
17953     fi
17954     shlibpath_var=LIBPATH
17955   fi
17956   ;;
17957
17958 amigaos*)
17959   library_names_spec='$libname.ixlibrary $libname.a'
17960   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17961   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'
17962   ;;
17963
17964 beos*)
17965   library_names_spec='${libname}${shared_ext}'
17966   dynamic_linker="$host_os ld.so"
17967   shlibpath_var=LIBRARY_PATH
17968   ;;
17969
17970 bsdi[45]*)
17971   version_type=linux
17972   need_version=no
17973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974   soname_spec='${libname}${release}${shared_ext}$major'
17975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17976   shlibpath_var=LD_LIBRARY_PATH
17977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17979   # the default ld.so.conf also contains /usr/contrib/lib and
17980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17981   # libtool to hard-code these into programs
17982   ;;
17983
17984 cygwin* | mingw* | pw32*)
17985   version_type=windows
17986   shrext_cmds=".dll"
17987   need_version=no
17988   need_lib_prefix=no
17989
17990   case $GCC,$host_os in
17991   yes,cygwin* | yes,mingw* | yes,pw32*)
17992     library_names_spec='$libname.dll.a'
17993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17994     postinstall_cmds='base_file=`basename \${file}`~
17995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17996       dldir=$destdir/`dirname \$dlpath`~
17997       test -d \$dldir || mkdir -p \$dldir~
17998       $install_prog $dir/$dlname \$dldir/$dlname~
17999       chmod a+x \$dldir/$dlname'
18000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18001       dlpath=$dir/\$dldll~
18002        $rm \$dlpath'
18003     shlibpath_overrides_runpath=yes
18004
18005     case $host_os in
18006     cygwin*)
18007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18009       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18010       ;;
18011     mingw*)
18012       # MinGW DLLs use traditional 'lib' prefix
18013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18014       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18015       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18016         # It is most probably a Windows format PATH printed by
18017         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18018         # path with ; separators, and with drive letters. We can handle the
18019         # drive letters (cygwin fileutils understands them), so leave them,
18020         # especially as we might pass files found there to a mingw objdump,
18021         # which wouldn't understand a cygwinified path. Ahh.
18022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18023       else
18024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18025       fi
18026       ;;
18027     pw32*)
18028       # pw32 DLLs use 'pw' prefix rather than 'lib'
18029       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18030       ;;
18031     esac
18032     ;;
18033
18034   *)
18035     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18036     ;;
18037   esac
18038   dynamic_linker='Win32 ld.exe'
18039   # FIXME: first we should search . and the directory the executable is in
18040   shlibpath_var=PATH
18041   ;;
18042
18043 darwin* | rhapsody*)
18044   dynamic_linker="$host_os dyld"
18045   version_type=darwin
18046   need_lib_prefix=no
18047   need_version=no
18048   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18049   soname_spec='${libname}${release}${major}$shared_ext'
18050   shlibpath_overrides_runpath=yes
18051   shlibpath_var=DYLD_LIBRARY_PATH
18052   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18053   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18054   if test "$GCC" = yes; then
18055     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18056   else
18057     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18058   fi
18059   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18060   ;;
18061
18062 dgux*)
18063   version_type=linux
18064   need_lib_prefix=no
18065   need_version=no
18066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18067   soname_spec='${libname}${release}${shared_ext}$major'
18068   shlibpath_var=LD_LIBRARY_PATH
18069   ;;
18070
18071 freebsd1*)
18072   dynamic_linker=no
18073   ;;
18074
18075 freebsd* | dragonfly*)
18076   # DragonFly does not have aout.  When/if they implement a new
18077   # versioning mechanism, adjust this.
18078   if test -x /usr/bin/objformat; then
18079     objformat=`/usr/bin/objformat`
18080   else
18081     case $host_os in
18082     freebsd[123]*) objformat=aout ;;
18083     *) objformat=elf ;;
18084     esac
18085   fi
18086   version_type=freebsd-$objformat
18087   case $version_type in
18088     freebsd-elf*)
18089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18090       need_version=no
18091       need_lib_prefix=no
18092       ;;
18093     freebsd-*)
18094       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18095       need_version=yes
18096       ;;
18097   esac
18098   shlibpath_var=LD_LIBRARY_PATH
18099   case $host_os in
18100   freebsd2*)
18101     shlibpath_overrides_runpath=yes
18102     ;;
18103   freebsd3.[01]* | freebsdelf3.[01]*)
18104     shlibpath_overrides_runpath=yes
18105     hardcode_into_libs=yes
18106     ;;
18107   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18108   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18109     shlibpath_overrides_runpath=no
18110     hardcode_into_libs=yes
18111     ;;
18112   freebsd*) # from 4.6 on
18113     shlibpath_overrides_runpath=yes
18114     hardcode_into_libs=yes
18115     ;;
18116   esac
18117   ;;
18118
18119 gnu*)
18120   version_type=linux
18121   need_lib_prefix=no
18122   need_version=no
18123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18124   soname_spec='${libname}${release}${shared_ext}$major'
18125   shlibpath_var=LD_LIBRARY_PATH
18126   hardcode_into_libs=yes
18127   ;;
18128
18129 hpux9* | hpux10* | hpux11*)
18130   # Give a soname corresponding to the major version so that dld.sl refuses to
18131   # link against other versions.
18132   version_type=sunos
18133   need_lib_prefix=no
18134   need_version=no
18135   case $host_cpu in
18136   ia64*)
18137     shrext_cmds='.so'
18138     hardcode_into_libs=yes
18139     dynamic_linker="$host_os dld.so"
18140     shlibpath_var=LD_LIBRARY_PATH
18141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18143     soname_spec='${libname}${release}${shared_ext}$major'
18144     if test "X$HPUX_IA64_MODE" = X32; then
18145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18146     else
18147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18148     fi
18149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18150     ;;
18151    hppa*64*)
18152      shrext_cmds='.sl'
18153      hardcode_into_libs=yes
18154      dynamic_linker="$host_os dld.sl"
18155      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18156      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158      soname_spec='${libname}${release}${shared_ext}$major'
18159      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18160      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18161      ;;
18162    *)
18163     shrext_cmds='.sl'
18164     dynamic_linker="$host_os dld.sl"
18165     shlibpath_var=SHLIB_PATH
18166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168     soname_spec='${libname}${release}${shared_ext}$major'
18169     ;;
18170   esac
18171   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18172   postinstall_cmds='chmod 555 $lib'
18173   ;;
18174
18175 interix3*)
18176   version_type=linux
18177   need_lib_prefix=no
18178   need_version=no
18179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18180   soname_spec='${libname}${release}${shared_ext}$major'
18181   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   shlibpath_overrides_runpath=no
18184   hardcode_into_libs=yes
18185   ;;
18186
18187 irix5* | irix6* | nonstopux*)
18188   case $host_os in
18189     nonstopux*) version_type=nonstopux ;;
18190     *)
18191         if test "$lt_cv_prog_gnu_ld" = yes; then
18192                 version_type=linux
18193         else
18194                 version_type=irix
18195         fi ;;
18196   esac
18197   need_lib_prefix=no
18198   need_version=no
18199   soname_spec='${libname}${release}${shared_ext}$major'
18200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18201   case $host_os in
18202   irix5* | nonstopux*)
18203     libsuff= shlibsuff=
18204     ;;
18205   *)
18206     case $LD in # libtool.m4 will add one of these switches to LD
18207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18208       libsuff= shlibsuff= libmagic=32-bit;;
18209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18210       libsuff=32 shlibsuff=N32 libmagic=N32;;
18211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18213     *) libsuff= shlibsuff= libmagic=never-match;;
18214     esac
18215     ;;
18216   esac
18217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18218   shlibpath_overrides_runpath=no
18219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18221   hardcode_into_libs=yes
18222   ;;
18223
18224 # No shared lib support for Linux oldld, aout, or coff.
18225 linux*oldld* | linux*aout* | linux*coff*)
18226   dynamic_linker=no
18227   ;;
18228
18229 # This must be Linux ELF.
18230 linux* | k*bsd*-gnu)
18231   version_type=linux
18232   need_lib_prefix=no
18233   need_version=no
18234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235   soname_spec='${libname}${release}${shared_ext}$major'
18236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18237   shlibpath_var=LD_LIBRARY_PATH
18238   shlibpath_overrides_runpath=no
18239   # This implies no fast_install, which is unacceptable.
18240   # Some rework will be needed to allow for fast_install
18241   # before this can be enabled.
18242   hardcode_into_libs=yes
18243
18244   # Append ld.so.conf contents to the search path
18245   if test -f /etc/ld.so.conf; then
18246     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18247     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18248   fi
18249
18250   # We used to test for /lib/ld.so.1 and disable shared libraries on
18251   # powerpc, because MkLinux only supported shared libraries with the
18252   # GNU dynamic linker.  Since this was broken with cross compilers,
18253   # most powerpc-linux boxes support dynamic linking these days and
18254   # people can always --disable-shared, the test was removed, and we
18255   # assume the GNU/Linux dynamic linker is in use.
18256   dynamic_linker='GNU/Linux ld.so'
18257   ;;
18258
18259 netbsdelf*-gnu)
18260   version_type=linux
18261   need_lib_prefix=no
18262   need_version=no
18263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18264   soname_spec='${libname}${release}${shared_ext}$major'
18265   shlibpath_var=LD_LIBRARY_PATH
18266   shlibpath_overrides_runpath=no
18267   hardcode_into_libs=yes
18268   dynamic_linker='NetBSD ld.elf_so'
18269   ;;
18270
18271 netbsd*)
18272   version_type=sunos
18273   need_lib_prefix=no
18274   need_version=no
18275   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18277     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18278     dynamic_linker='NetBSD (a.out) ld.so'
18279   else
18280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18281     soname_spec='${libname}${release}${shared_ext}$major'
18282     dynamic_linker='NetBSD ld.elf_so'
18283   fi
18284   shlibpath_var=LD_LIBRARY_PATH
18285   shlibpath_overrides_runpath=yes
18286   hardcode_into_libs=yes
18287   ;;
18288
18289 newsos6)
18290   version_type=linux
18291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292   shlibpath_var=LD_LIBRARY_PATH
18293   shlibpath_overrides_runpath=yes
18294   ;;
18295
18296 nto-qnx*)
18297   version_type=linux
18298   need_lib_prefix=no
18299   need_version=no
18300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301   soname_spec='${libname}${release}${shared_ext}$major'
18302   shlibpath_var=LD_LIBRARY_PATH
18303   shlibpath_overrides_runpath=yes
18304   ;;
18305
18306 openbsd*)
18307   version_type=sunos
18308   sys_lib_dlsearch_path_spec="/usr/lib"
18309   need_lib_prefix=no
18310   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18311   case $host_os in
18312     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18313     *)                         need_version=no  ;;
18314   esac
18315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18317   shlibpath_var=LD_LIBRARY_PATH
18318   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18319     case $host_os in
18320       openbsd2.[89] | openbsd2.[89].*)
18321         shlibpath_overrides_runpath=no
18322         ;;
18323       *)
18324         shlibpath_overrides_runpath=yes
18325         ;;
18326       esac
18327   else
18328     shlibpath_overrides_runpath=yes
18329   fi
18330   ;;
18331
18332 os2*)
18333   libname_spec='$name'
18334   shrext_cmds=".dll"
18335   need_lib_prefix=no
18336   library_names_spec='$libname${shared_ext} $libname.a'
18337   dynamic_linker='OS/2 ld.exe'
18338   shlibpath_var=LIBPATH
18339   ;;
18340
18341 osf3* | osf4* | osf5*)
18342   version_type=osf
18343   need_lib_prefix=no
18344   need_version=no
18345   soname_spec='${libname}${release}${shared_ext}$major'
18346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347   shlibpath_var=LD_LIBRARY_PATH
18348   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18349   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18350   ;;
18351
18352 solaris*)
18353   version_type=linux
18354   need_lib_prefix=no
18355   need_version=no
18356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357   soname_spec='${libname}${release}${shared_ext}$major'
18358   shlibpath_var=LD_LIBRARY_PATH
18359   shlibpath_overrides_runpath=yes
18360   hardcode_into_libs=yes
18361   # ldd complains unless libraries are executable
18362   postinstall_cmds='chmod +x $lib'
18363   ;;
18364
18365 sunos4*)
18366   version_type=sunos
18367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18368   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18369   shlibpath_var=LD_LIBRARY_PATH
18370   shlibpath_overrides_runpath=yes
18371   if test "$with_gnu_ld" = yes; then
18372     need_lib_prefix=no
18373   fi
18374   need_version=yes
18375   ;;
18376
18377 sysv4 | sysv4.3*)
18378   version_type=linux
18379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18380   soname_spec='${libname}${release}${shared_ext}$major'
18381   shlibpath_var=LD_LIBRARY_PATH
18382   case $host_vendor in
18383     sni)
18384       shlibpath_overrides_runpath=no
18385       need_lib_prefix=no
18386       export_dynamic_flag_spec='${wl}-Blargedynsym'
18387       runpath_var=LD_RUN_PATH
18388       ;;
18389     siemens)
18390       need_lib_prefix=no
18391       ;;
18392     motorola)
18393       need_lib_prefix=no
18394       need_version=no
18395       shlibpath_overrides_runpath=no
18396       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18397       ;;
18398   esac
18399   ;;
18400
18401 sysv4*MP*)
18402   if test -d /usr/nec ;then
18403     version_type=linux
18404     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18405     soname_spec='$libname${shared_ext}.$major'
18406     shlibpath_var=LD_LIBRARY_PATH
18407   fi
18408   ;;
18409
18410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18411   version_type=freebsd-elf
18412   need_lib_prefix=no
18413   need_version=no
18414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18415   soname_spec='${libname}${release}${shared_ext}$major'
18416   shlibpath_var=LD_LIBRARY_PATH
18417   hardcode_into_libs=yes
18418   if test "$with_gnu_ld" = yes; then
18419     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18420     shlibpath_overrides_runpath=no
18421   else
18422     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18423     shlibpath_overrides_runpath=yes
18424     case $host_os in
18425       sco3.2v5*)
18426         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18427         ;;
18428     esac
18429   fi
18430   sys_lib_dlsearch_path_spec='/usr/lib'
18431   ;;
18432
18433 uts4*)
18434   version_type=linux
18435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436   soname_spec='${libname}${release}${shared_ext}$major'
18437   shlibpath_var=LD_LIBRARY_PATH
18438   ;;
18439
18440 *)
18441   dynamic_linker=no
18442   ;;
18443 esac
18444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18445 echo "${ECHO_T}$dynamic_linker" >&6; }
18446 test "$dynamic_linker" = no && can_build_shared=no
18447
18448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18449 if test "$GCC" = yes; then
18450   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18451 fi
18452
18453 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18455 hardcode_action_GCJ=
18456 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18457    test -n "$runpath_var_GCJ" || \
18458    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18459
18460   # We can hardcode non-existant directories.
18461   if test "$hardcode_direct_GCJ" != no &&
18462      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18463      # have to relink, otherwise we might link with an installed library
18464      # when we should be linking with a yet-to-be-installed one
18465      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18466      test "$hardcode_minus_L_GCJ" != no; then
18467     # Linking always hardcodes the temporary library directory.
18468     hardcode_action_GCJ=relink
18469   else
18470     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18471     hardcode_action_GCJ=immediate
18472   fi
18473 else
18474   # We cannot hardcode anything, or else we can only hardcode existing
18475   # directories.
18476   hardcode_action_GCJ=unsupported
18477 fi
18478 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18479 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18480
18481 if test "$hardcode_action_GCJ" = relink; then
18482   # Fast installation is not supported
18483   enable_fast_install=no
18484 elif test "$shlibpath_overrides_runpath" = yes ||
18485      test "$enable_shared" = no; then
18486   # Fast installation is not necessary
18487   enable_fast_install=needless
18488 fi
18489
18490
18491 # The else clause should only fire when bootstrapping the
18492 # libtool distribution, otherwise you forgot to ship ltmain.sh
18493 # with your package, and you will get complaints that there are
18494 # no rules to generate ltmain.sh.
18495 if test -f "$ltmain"; then
18496   # See if we are running on zsh, and set the options which allow our commands through
18497   # without removal of \ escapes.
18498   if test -n "${ZSH_VERSION+set}" ; then
18499     setopt NO_GLOB_SUBST
18500   fi
18501   # Now quote all the things that may contain metacharacters while being
18502   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18503   # variables and quote the copies for generation of the libtool script.
18504   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18505     SED SHELL STRIP \
18506     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18507     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18508     deplibs_check_method reload_flag reload_cmds need_locks \
18509     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18510     lt_cv_sys_global_symbol_to_c_name_address \
18511     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18512     old_postinstall_cmds old_postuninstall_cmds \
18513     compiler_GCJ \
18514     CC_GCJ \
18515     LD_GCJ \
18516     lt_prog_compiler_wl_GCJ \
18517     lt_prog_compiler_pic_GCJ \
18518     lt_prog_compiler_static_GCJ \
18519     lt_prog_compiler_no_builtin_flag_GCJ \
18520     export_dynamic_flag_spec_GCJ \
18521     thread_safe_flag_spec_GCJ \
18522     whole_archive_flag_spec_GCJ \
18523     enable_shared_with_static_runtimes_GCJ \
18524     old_archive_cmds_GCJ \
18525     old_archive_from_new_cmds_GCJ \
18526     predep_objects_GCJ \
18527     postdep_objects_GCJ \
18528     predeps_GCJ \
18529     postdeps_GCJ \
18530     compiler_lib_search_path_GCJ \
18531     archive_cmds_GCJ \
18532     archive_expsym_cmds_GCJ \
18533     postinstall_cmds_GCJ \
18534     postuninstall_cmds_GCJ \
18535     old_archive_from_expsyms_cmds_GCJ \
18536     allow_undefined_flag_GCJ \
18537     no_undefined_flag_GCJ \
18538     export_symbols_cmds_GCJ \
18539     hardcode_libdir_flag_spec_GCJ \
18540     hardcode_libdir_flag_spec_ld_GCJ \
18541     hardcode_libdir_separator_GCJ \
18542     hardcode_automatic_GCJ \
18543     module_cmds_GCJ \
18544     module_expsym_cmds_GCJ \
18545     lt_cv_prog_compiler_c_o_GCJ \
18546     exclude_expsyms_GCJ \
18547     include_expsyms_GCJ; do
18548
18549     case $var in
18550     old_archive_cmds_GCJ | \
18551     old_archive_from_new_cmds_GCJ | \
18552     archive_cmds_GCJ | \
18553     archive_expsym_cmds_GCJ | \
18554     module_cmds_GCJ | \
18555     module_expsym_cmds_GCJ | \
18556     old_archive_from_expsyms_cmds_GCJ | \
18557     export_symbols_cmds_GCJ | \
18558     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18559     postinstall_cmds | postuninstall_cmds | \
18560     old_postinstall_cmds | old_postuninstall_cmds | \
18561     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18562       # Double-quote double-evaled strings.
18563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18564       ;;
18565     *)
18566       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18567       ;;
18568     esac
18569   done
18570
18571   case $lt_echo in
18572   *'\$0 --fallback-echo"')
18573     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18574     ;;
18575   esac
18576
18577 cfgfile="$ofile"
18578
18579   cat <<__EOF__ >> "$cfgfile"
18580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18581
18582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18583
18584 # Shell to use when invoking shell scripts.
18585 SHELL=$lt_SHELL
18586
18587 # Whether or not to build shared libraries.
18588 build_libtool_libs=$enable_shared
18589
18590 # Whether or not to build static libraries.
18591 build_old_libs=$enable_static
18592
18593 # Whether or not to add -lc for building shared libraries.
18594 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18595
18596 # Whether or not to disallow shared libs when runtime libs are static
18597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18598
18599 # Whether or not to optimize for fast installation.
18600 fast_install=$enable_fast_install
18601
18602 # The host system.
18603 host_alias=$host_alias
18604 host=$host
18605 host_os=$host_os
18606
18607 # The build system.
18608 build_alias=$build_alias
18609 build=$build
18610 build_os=$build_os
18611
18612 # An echo program that does not interpret backslashes.
18613 echo=$lt_echo
18614
18615 # The archiver.
18616 AR=$lt_AR
18617 AR_FLAGS=$lt_AR_FLAGS
18618
18619 # A C compiler.
18620 LTCC=$lt_LTCC
18621
18622 # LTCC compiler flags.
18623 LTCFLAGS=$lt_LTCFLAGS
18624
18625 # A language-specific compiler.
18626 CC=$lt_compiler_GCJ
18627
18628 # Is the compiler the GNU C compiler?
18629 with_gcc=$GCC_GCJ
18630
18631 # An ERE matcher.
18632 EGREP=$lt_EGREP
18633
18634 # The linker used to build libraries.
18635 LD=$lt_LD_GCJ
18636
18637 # Whether we need hard or soft links.
18638 LN_S=$lt_LN_S
18639
18640 # A BSD-compatible nm program.
18641 NM=$lt_NM
18642
18643 # A symbol stripping program
18644 STRIP=$lt_STRIP
18645
18646 # Used to examine libraries when file_magic_cmd begins "file"
18647 MAGIC_CMD=$MAGIC_CMD
18648
18649 # Used on cygwin: DLL creation program.
18650 DLLTOOL="$DLLTOOL"
18651
18652 # Used on cygwin: object dumper.
18653 OBJDUMP="$OBJDUMP"
18654
18655 # Used on cygwin: assembler.
18656 AS="$AS"
18657
18658 # The name of the directory that contains temporary libtool files.
18659 objdir=$objdir
18660
18661 # How to create reloadable object files.
18662 reload_flag=$lt_reload_flag
18663 reload_cmds=$lt_reload_cmds
18664
18665 # How to pass a linker flag through the compiler.
18666 wl=$lt_lt_prog_compiler_wl_GCJ
18667
18668 # Object file suffix (normally "o").
18669 objext="$ac_objext"
18670
18671 # Old archive suffix (normally "a").
18672 libext="$libext"
18673
18674 # Shared library suffix (normally ".so").
18675 shrext_cmds='$shrext_cmds'
18676
18677 # Executable file suffix (normally "").
18678 exeext="$exeext"
18679
18680 # Additional compiler flags for building library objects.
18681 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18682 pic_mode=$pic_mode
18683
18684 # What is the maximum length of a command?
18685 max_cmd_len=$lt_cv_sys_max_cmd_len
18686
18687 # Does compiler simultaneously support -c and -o options?
18688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18689
18690 # Must we lock files when doing compilation?
18691 need_locks=$lt_need_locks
18692
18693 # Do we need the lib prefix for modules?
18694 need_lib_prefix=$need_lib_prefix
18695
18696 # Do we need a version for libraries?
18697 need_version=$need_version
18698
18699 # Whether dlopen is supported.
18700 dlopen_support=$enable_dlopen
18701
18702 # Whether dlopen of programs is supported.
18703 dlopen_self=$enable_dlopen_self
18704
18705 # Whether dlopen of statically linked programs is supported.
18706 dlopen_self_static=$enable_dlopen_self_static
18707
18708 # Compiler flag to prevent dynamic linking.
18709 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18710
18711 # Compiler flag to turn off builtin functions.
18712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18713
18714 # Compiler flag to allow reflexive dlopens.
18715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18716
18717 # Compiler flag to generate shared objects directly from archives.
18718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18719
18720 # Compiler flag to generate thread-safe objects.
18721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18722
18723 # Library versioning type.
18724 version_type=$version_type
18725
18726 # Format of library name prefix.
18727 libname_spec=$lt_libname_spec
18728
18729 # List of archive names.  First name is the real one, the rest are links.
18730 # The last name is the one that the linker finds with -lNAME.
18731 library_names_spec=$lt_library_names_spec
18732
18733 # The coded name of the library, if different from the real name.
18734 soname_spec=$lt_soname_spec
18735
18736 # Commands used to build and install an old-style archive.
18737 RANLIB=$lt_RANLIB
18738 old_archive_cmds=$lt_old_archive_cmds_GCJ
18739 old_postinstall_cmds=$lt_old_postinstall_cmds
18740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18741
18742 # Create an old-style archive from a shared archive.
18743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18744
18745 # Create a temporary old-style archive to link instead of a shared archive.
18746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18747
18748 # Commands used to build and install a shared archive.
18749 archive_cmds=$lt_archive_cmds_GCJ
18750 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18751 postinstall_cmds=$lt_postinstall_cmds
18752 postuninstall_cmds=$lt_postuninstall_cmds
18753
18754 # Commands used to build a loadable module (assumed same as above if empty)
18755 module_cmds=$lt_module_cmds_GCJ
18756 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18757
18758 # Commands to strip libraries.
18759 old_striplib=$lt_old_striplib
18760 striplib=$lt_striplib
18761
18762 # Dependencies to place before the objects being linked to create a
18763 # shared library.
18764 predep_objects=$lt_predep_objects_GCJ
18765
18766 # Dependencies to place after the objects being linked to create a
18767 # shared library.
18768 postdep_objects=$lt_postdep_objects_GCJ
18769
18770 # Dependencies to place before the objects being linked to create a
18771 # shared library.
18772 predeps=$lt_predeps_GCJ
18773
18774 # Dependencies to place after the objects being linked to create a
18775 # shared library.
18776 postdeps=$lt_postdeps_GCJ
18777
18778 # The library search path used internally by the compiler when linking
18779 # a shared library.
18780 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18781
18782 # Method to check whether dependent libraries are shared objects.
18783 deplibs_check_method=$lt_deplibs_check_method
18784
18785 # Command to use when deplibs_check_method == file_magic.
18786 file_magic_cmd=$lt_file_magic_cmd
18787
18788 # Flag that allows shared libraries with undefined symbols to be built.
18789 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18790
18791 # Flag that forces no undefined symbols.
18792 no_undefined_flag=$lt_no_undefined_flag_GCJ
18793
18794 # Commands used to finish a libtool library installation in a directory.
18795 finish_cmds=$lt_finish_cmds
18796
18797 # Same as above, but a single script fragment to be evaled but not shown.
18798 finish_eval=$lt_finish_eval
18799
18800 # Take the output of nm and produce a listing of raw symbols and C names.
18801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18802
18803 # Transform the output of nm in a proper C declaration
18804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18805
18806 # Transform the output of nm in a C name address pair
18807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18808
18809 # This is the shared library runtime path variable.
18810 runpath_var=$runpath_var
18811
18812 # This is the shared library path variable.
18813 shlibpath_var=$shlibpath_var
18814
18815 # Is shlibpath searched before the hard-coded library search path?
18816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18817
18818 # How to hardcode a shared library path into an executable.
18819 hardcode_action=$hardcode_action_GCJ
18820
18821 # Whether we should hardcode library paths into libraries.
18822 hardcode_into_libs=$hardcode_into_libs
18823
18824 # Flag to hardcode \$libdir into a binary during linking.
18825 # This must work even if \$libdir does not exist.
18826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18827
18828 # If ld is used when linking, flag to hardcode \$libdir into
18829 # a binary during linking. This must work even if \$libdir does
18830 # not exist.
18831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18832
18833 # Whether we need a single -rpath flag with a separated argument.
18834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18835
18836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18837 # resulting binary.
18838 hardcode_direct=$hardcode_direct_GCJ
18839
18840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18841 # resulting binary.
18842 hardcode_minus_L=$hardcode_minus_L_GCJ
18843
18844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18845 # the resulting binary.
18846 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18847
18848 # Set to yes if building a shared library automatically hardcodes DIR into the library
18849 # and all subsequent libraries and executables linked against it.
18850 hardcode_automatic=$hardcode_automatic_GCJ
18851
18852 # Variables whose values should be saved in libtool wrapper scripts and
18853 # restored at relink time.
18854 variables_saved_for_relink="$variables_saved_for_relink"
18855
18856 # Whether libtool must link a program against all its dependency libraries.
18857 link_all_deplibs=$link_all_deplibs_GCJ
18858
18859 # Compile-time system search path for libraries
18860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18861
18862 # Run-time system search path for libraries
18863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18864
18865 # Fix the shell variable \$srcfile for the compiler.
18866 fix_srcfile_path="$fix_srcfile_path_GCJ"
18867
18868 # Set to yes if exported symbols are required.
18869 always_export_symbols=$always_export_symbols_GCJ
18870
18871 # The commands to list exported symbols.
18872 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18873
18874 # The commands to extract the exported symbol list from a shared archive.
18875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18876
18877 # Symbols that should not be listed in the preloaded symbols.
18878 exclude_expsyms=$lt_exclude_expsyms_GCJ
18879
18880 # Symbols that must always be exported.
18881 include_expsyms=$lt_include_expsyms_GCJ
18882
18883 # ### END LIBTOOL TAG CONFIG: $tagname
18884
18885 __EOF__
18886
18887
18888 else
18889   # If there is no Makefile yet, we rely on a make rule to execute
18890   # `config.status --recheck' to rerun these tests and create the
18891   # libtool script then.
18892   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18893   if test -f "$ltmain_in"; then
18894     test -f Makefile && make "$ltmain"
18895   fi
18896 fi
18897
18898
18899 ac_ext=c
18900 ac_cpp='$CPP $CPPFLAGS'
18901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18904
18905 CC="$lt_save_CC"
18906
18907         else
18908           tagname=""
18909         fi
18910         ;;
18911
18912       RC)
18913
18914
18915 # Source file extension for RC test sources.
18916 ac_ext=rc
18917
18918 # Object file extension for compiled RC test sources.
18919 objext=o
18920 objext_RC=$objext
18921
18922 # Code to be used in simple compile tests
18923 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18924
18925 # Code to be used in simple link tests
18926 lt_simple_link_test_code="$lt_simple_compile_test_code"
18927
18928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18929
18930 # If no C compiler was specified, use CC.
18931 LTCC=${LTCC-"$CC"}
18932
18933 # If no C compiler flags were specified, use CFLAGS.
18934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18935
18936 # Allow CC to be a program name with arguments.
18937 compiler=$CC
18938
18939
18940 # save warnings/boilerplate of simple test code
18941 ac_outfile=conftest.$ac_objext
18942 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18944 _lt_compiler_boilerplate=`cat conftest.err`
18945 $rm conftest*
18946
18947 ac_outfile=conftest.$ac_objext
18948 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18950 _lt_linker_boilerplate=`cat conftest.err`
18951 $rm conftest*
18952
18953
18954 # Allow CC to be a program name with arguments.
18955 lt_save_CC="$CC"
18956 CC=${RC-"windres"}
18957 compiler=$CC
18958 compiler_RC=$CC
18959 for cc_temp in $compiler""; do
18960   case $cc_temp in
18961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18963     \-*) ;;
18964     *) break;;
18965   esac
18966 done
18967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18968
18969 lt_cv_prog_compiler_c_o_RC=yes
18970
18971 # The else clause should only fire when bootstrapping the
18972 # libtool distribution, otherwise you forgot to ship ltmain.sh
18973 # with your package, and you will get complaints that there are
18974 # no rules to generate ltmain.sh.
18975 if test -f "$ltmain"; then
18976   # See if we are running on zsh, and set the options which allow our commands through
18977   # without removal of \ escapes.
18978   if test -n "${ZSH_VERSION+set}" ; then
18979     setopt NO_GLOB_SUBST
18980   fi
18981   # Now quote all the things that may contain metacharacters while being
18982   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18983   # variables and quote the copies for generation of the libtool script.
18984   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18985     SED SHELL STRIP \
18986     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18987     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18988     deplibs_check_method reload_flag reload_cmds need_locks \
18989     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18990     lt_cv_sys_global_symbol_to_c_name_address \
18991     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18992     old_postinstall_cmds old_postuninstall_cmds \
18993     compiler_RC \
18994     CC_RC \
18995     LD_RC \
18996     lt_prog_compiler_wl_RC \
18997     lt_prog_compiler_pic_RC \
18998     lt_prog_compiler_static_RC \
18999     lt_prog_compiler_no_builtin_flag_RC \
19000     export_dynamic_flag_spec_RC \
19001     thread_safe_flag_spec_RC \
19002     whole_archive_flag_spec_RC \
19003     enable_shared_with_static_runtimes_RC \
19004     old_archive_cmds_RC \
19005     old_archive_from_new_cmds_RC \
19006     predep_objects_RC \
19007     postdep_objects_RC \
19008     predeps_RC \
19009     postdeps_RC \
19010     compiler_lib_search_path_RC \
19011     archive_cmds_RC \
19012     archive_expsym_cmds_RC \
19013     postinstall_cmds_RC \
19014     postuninstall_cmds_RC \
19015     old_archive_from_expsyms_cmds_RC \
19016     allow_undefined_flag_RC \
19017     no_undefined_flag_RC \
19018     export_symbols_cmds_RC \
19019     hardcode_libdir_flag_spec_RC \
19020     hardcode_libdir_flag_spec_ld_RC \
19021     hardcode_libdir_separator_RC \
19022     hardcode_automatic_RC \
19023     module_cmds_RC \
19024     module_expsym_cmds_RC \
19025     lt_cv_prog_compiler_c_o_RC \
19026     exclude_expsyms_RC \
19027     include_expsyms_RC; do
19028
19029     case $var in
19030     old_archive_cmds_RC | \
19031     old_archive_from_new_cmds_RC | \
19032     archive_cmds_RC | \
19033     archive_expsym_cmds_RC | \
19034     module_cmds_RC | \
19035     module_expsym_cmds_RC | \
19036     old_archive_from_expsyms_cmds_RC | \
19037     export_symbols_cmds_RC | \
19038     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19039     postinstall_cmds | postuninstall_cmds | \
19040     old_postinstall_cmds | old_postuninstall_cmds | \
19041     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19042       # Double-quote double-evaled strings.
19043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19044       ;;
19045     *)
19046       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19047       ;;
19048     esac
19049   done
19050
19051   case $lt_echo in
19052   *'\$0 --fallback-echo"')
19053     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19054     ;;
19055   esac
19056
19057 cfgfile="$ofile"
19058
19059   cat <<__EOF__ >> "$cfgfile"
19060 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19061
19062 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19063
19064 # Shell to use when invoking shell scripts.
19065 SHELL=$lt_SHELL
19066
19067 # Whether or not to build shared libraries.
19068 build_libtool_libs=$enable_shared
19069
19070 # Whether or not to build static libraries.
19071 build_old_libs=$enable_static
19072
19073 # Whether or not to add -lc for building shared libraries.
19074 build_libtool_need_lc=$archive_cmds_need_lc_RC
19075
19076 # Whether or not to disallow shared libs when runtime libs are static
19077 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19078
19079 # Whether or not to optimize for fast installation.
19080 fast_install=$enable_fast_install
19081
19082 # The host system.
19083 host_alias=$host_alias
19084 host=$host
19085 host_os=$host_os
19086
19087 # The build system.
19088 build_alias=$build_alias
19089 build=$build
19090 build_os=$build_os
19091
19092 # An echo program that does not interpret backslashes.
19093 echo=$lt_echo
19094
19095 # The archiver.
19096 AR=$lt_AR
19097 AR_FLAGS=$lt_AR_FLAGS
19098
19099 # A C compiler.
19100 LTCC=$lt_LTCC
19101
19102 # LTCC compiler flags.
19103 LTCFLAGS=$lt_LTCFLAGS
19104
19105 # A language-specific compiler.
19106 CC=$lt_compiler_RC
19107
19108 # Is the compiler the GNU C compiler?
19109 with_gcc=$GCC_RC
19110
19111 # An ERE matcher.
19112 EGREP=$lt_EGREP
19113
19114 # The linker used to build libraries.
19115 LD=$lt_LD_RC
19116
19117 # Whether we need hard or soft links.
19118 LN_S=$lt_LN_S
19119
19120 # A BSD-compatible nm program.
19121 NM=$lt_NM
19122
19123 # A symbol stripping program
19124 STRIP=$lt_STRIP
19125
19126 # Used to examine libraries when file_magic_cmd begins "file"
19127 MAGIC_CMD=$MAGIC_CMD
19128
19129 # Used on cygwin: DLL creation program.
19130 DLLTOOL="$DLLTOOL"
19131
19132 # Used on cygwin: object dumper.
19133 OBJDUMP="$OBJDUMP"
19134
19135 # Used on cygwin: assembler.
19136 AS="$AS"
19137
19138 # The name of the directory that contains temporary libtool files.
19139 objdir=$objdir
19140
19141 # How to create reloadable object files.
19142 reload_flag=$lt_reload_flag
19143 reload_cmds=$lt_reload_cmds
19144
19145 # How to pass a linker flag through the compiler.
19146 wl=$lt_lt_prog_compiler_wl_RC
19147
19148 # Object file suffix (normally "o").
19149 objext="$ac_objext"
19150
19151 # Old archive suffix (normally "a").
19152 libext="$libext"
19153
19154 # Shared library suffix (normally ".so").
19155 shrext_cmds='$shrext_cmds'
19156
19157 # Executable file suffix (normally "").
19158 exeext="$exeext"
19159
19160 # Additional compiler flags for building library objects.
19161 pic_flag=$lt_lt_prog_compiler_pic_RC
19162 pic_mode=$pic_mode
19163
19164 # What is the maximum length of a command?
19165 max_cmd_len=$lt_cv_sys_max_cmd_len
19166
19167 # Does compiler simultaneously support -c and -o options?
19168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19169
19170 # Must we lock files when doing compilation?
19171 need_locks=$lt_need_locks
19172
19173 # Do we need the lib prefix for modules?
19174 need_lib_prefix=$need_lib_prefix
19175
19176 # Do we need a version for libraries?
19177 need_version=$need_version
19178
19179 # Whether dlopen is supported.
19180 dlopen_support=$enable_dlopen
19181
19182 # Whether dlopen of programs is supported.
19183 dlopen_self=$enable_dlopen_self
19184
19185 # Whether dlopen of statically linked programs is supported.
19186 dlopen_self_static=$enable_dlopen_self_static
19187
19188 # Compiler flag to prevent dynamic linking.
19189 link_static_flag=$lt_lt_prog_compiler_static_RC
19190
19191 # Compiler flag to turn off builtin functions.
19192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19193
19194 # Compiler flag to allow reflexive dlopens.
19195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19196
19197 # Compiler flag to generate shared objects directly from archives.
19198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19199
19200 # Compiler flag to generate thread-safe objects.
19201 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19202
19203 # Library versioning type.
19204 version_type=$version_type
19205
19206 # Format of library name prefix.
19207 libname_spec=$lt_libname_spec
19208
19209 # List of archive names.  First name is the real one, the rest are links.
19210 # The last name is the one that the linker finds with -lNAME.
19211 library_names_spec=$lt_library_names_spec
19212
19213 # The coded name of the library, if different from the real name.
19214 soname_spec=$lt_soname_spec
19215
19216 # Commands used to build and install an old-style archive.
19217 RANLIB=$lt_RANLIB
19218 old_archive_cmds=$lt_old_archive_cmds_RC
19219 old_postinstall_cmds=$lt_old_postinstall_cmds
19220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19221
19222 # Create an old-style archive from a shared archive.
19223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19224
19225 # Create a temporary old-style archive to link instead of a shared archive.
19226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19227
19228 # Commands used to build and install a shared archive.
19229 archive_cmds=$lt_archive_cmds_RC
19230 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19231 postinstall_cmds=$lt_postinstall_cmds
19232 postuninstall_cmds=$lt_postuninstall_cmds
19233
19234 # Commands used to build a loadable module (assumed same as above if empty)
19235 module_cmds=$lt_module_cmds_RC
19236 module_expsym_cmds=$lt_module_expsym_cmds_RC
19237
19238 # Commands to strip libraries.
19239 old_striplib=$lt_old_striplib
19240 striplib=$lt_striplib
19241
19242 # Dependencies to place before the objects being linked to create a
19243 # shared library.
19244 predep_objects=$lt_predep_objects_RC
19245
19246 # Dependencies to place after the objects being linked to create a
19247 # shared library.
19248 postdep_objects=$lt_postdep_objects_RC
19249
19250 # Dependencies to place before the objects being linked to create a
19251 # shared library.
19252 predeps=$lt_predeps_RC
19253
19254 # Dependencies to place after the objects being linked to create a
19255 # shared library.
19256 postdeps=$lt_postdeps_RC
19257
19258 # The library search path used internally by the compiler when linking
19259 # a shared library.
19260 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19261
19262 # Method to check whether dependent libraries are shared objects.
19263 deplibs_check_method=$lt_deplibs_check_method
19264
19265 # Command to use when deplibs_check_method == file_magic.
19266 file_magic_cmd=$lt_file_magic_cmd
19267
19268 # Flag that allows shared libraries with undefined symbols to be built.
19269 allow_undefined_flag=$lt_allow_undefined_flag_RC
19270
19271 # Flag that forces no undefined symbols.
19272 no_undefined_flag=$lt_no_undefined_flag_RC
19273
19274 # Commands used to finish a libtool library installation in a directory.
19275 finish_cmds=$lt_finish_cmds
19276
19277 # Same as above, but a single script fragment to be evaled but not shown.
19278 finish_eval=$lt_finish_eval
19279
19280 # Take the output of nm and produce a listing of raw symbols and C names.
19281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19282
19283 # Transform the output of nm in a proper C declaration
19284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19285
19286 # Transform the output of nm in a C name address pair
19287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19288
19289 # This is the shared library runtime path variable.
19290 runpath_var=$runpath_var
19291
19292 # This is the shared library path variable.
19293 shlibpath_var=$shlibpath_var
19294
19295 # Is shlibpath searched before the hard-coded library search path?
19296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19297
19298 # How to hardcode a shared library path into an executable.
19299 hardcode_action=$hardcode_action_RC
19300
19301 # Whether we should hardcode library paths into libraries.
19302 hardcode_into_libs=$hardcode_into_libs
19303
19304 # Flag to hardcode \$libdir into a binary during linking.
19305 # This must work even if \$libdir does not exist.
19306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19307
19308 # If ld is used when linking, flag to hardcode \$libdir into
19309 # a binary during linking. This must work even if \$libdir does
19310 # not exist.
19311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19312
19313 # Whether we need a single -rpath flag with a separated argument.
19314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19315
19316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19317 # resulting binary.
19318 hardcode_direct=$hardcode_direct_RC
19319
19320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19321 # resulting binary.
19322 hardcode_minus_L=$hardcode_minus_L_RC
19323
19324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19325 # the resulting binary.
19326 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19327
19328 # Set to yes if building a shared library automatically hardcodes DIR into the library
19329 # and all subsequent libraries and executables linked against it.
19330 hardcode_automatic=$hardcode_automatic_RC
19331
19332 # Variables whose values should be saved in libtool wrapper scripts and
19333 # restored at relink time.
19334 variables_saved_for_relink="$variables_saved_for_relink"
19335
19336 # Whether libtool must link a program against all its dependency libraries.
19337 link_all_deplibs=$link_all_deplibs_RC
19338
19339 # Compile-time system search path for libraries
19340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19341
19342 # Run-time system search path for libraries
19343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19344
19345 # Fix the shell variable \$srcfile for the compiler.
19346 fix_srcfile_path="$fix_srcfile_path_RC"
19347
19348 # Set to yes if exported symbols are required.
19349 always_export_symbols=$always_export_symbols_RC
19350
19351 # The commands to list exported symbols.
19352 export_symbols_cmds=$lt_export_symbols_cmds_RC
19353
19354 # The commands to extract the exported symbol list from a shared archive.
19355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19356
19357 # Symbols that should not be listed in the preloaded symbols.
19358 exclude_expsyms=$lt_exclude_expsyms_RC
19359
19360 # Symbols that must always be exported.
19361 include_expsyms=$lt_include_expsyms_RC
19362
19363 # ### END LIBTOOL TAG CONFIG: $tagname
19364
19365 __EOF__
19366
19367
19368 else
19369   # If there is no Makefile yet, we rely on a make rule to execute
19370   # `config.status --recheck' to rerun these tests and create the
19371   # libtool script then.
19372   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19373   if test -f "$ltmain_in"; then
19374     test -f Makefile && make "$ltmain"
19375   fi
19376 fi
19377
19378
19379 ac_ext=c
19380 ac_cpp='$CPP $CPPFLAGS'
19381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19384
19385 CC="$lt_save_CC"
19386
19387         ;;
19388
19389       *)
19390         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19391 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19392    { (exit 1); exit 1; }; }
19393         ;;
19394       esac
19395
19396       # Append the new tag name to the list of available tags.
19397       if test -n "$tagname" ; then
19398       available_tags="$available_tags $tagname"
19399     fi
19400     fi
19401   done
19402   IFS="$lt_save_ifs"
19403
19404   # Now substitute the updated list of available tags.
19405   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19406     mv "${ofile}T" "$ofile"
19407     chmod +x "$ofile"
19408   else
19409     rm -f "${ofile}T"
19410     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19411 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19412    { (exit 1); exit 1; }; }
19413   fi
19414 fi
19415
19416
19417
19418 # This can be used to rebuild libtool when needed
19419 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19420
19421 # Always use our own libtool.
19422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19423
19424 # Prevent multiple expansion
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449 ###############
19450 ## SVN version check
19451 ##
19452 if test -e .svn ; then
19453   VERSION="$VERSION-r`svnversion`"
19454   PACKAGE_VERSION="$PACKAGE_VERSION-r`svnversion`"
19455   PACKAGE_STRING="PACKAGE_STRING r`svnversion`"
19456 fi
19457
19458 ###############
19459 ## System checks
19460 ##
19461
19462   { echo "$as_me:$LINENO: result: " >&5
19463 echo "${ECHO_T}" >&6; }
19464   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19465 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19466
19467 ac_ext=c
19468 ac_cpp='$CPP $CPPFLAGS'
19469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19472 if test -n "$ac_tool_prefix"; then
19473   for ac_prog in xlC gcc cc
19474   do
19475     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19479 if test "${ac_cv_prog_CC+set}" = set; then
19480   echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482   if test -n "$CC"; then
19483   ac_cv_prog_CC="$CC" # Let the user override the test.
19484 else
19485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19486 for as_dir in $PATH
19487 do
19488   IFS=$as_save_IFS
19489   test -z "$as_dir" && as_dir=.
19490   for ac_exec_ext in '' $ac_executable_extensions; do
19491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19492     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19494     break 2
19495   fi
19496 done
19497 done
19498 IFS=$as_save_IFS
19499
19500 fi
19501 fi
19502 CC=$ac_cv_prog_CC
19503 if test -n "$CC"; then
19504   { echo "$as_me:$LINENO: result: $CC" >&5
19505 echo "${ECHO_T}$CC" >&6; }
19506 else
19507   { echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6; }
19509 fi
19510
19511
19512     test -n "$CC" && break
19513   done
19514 fi
19515 if test -z "$CC"; then
19516   ac_ct_CC=$CC
19517   for ac_prog in xlC gcc cc
19518 do
19519   # Extract the first word of "$ac_prog", so it can be a program name with args.
19520 set dummy $ac_prog; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   if test -n "$ac_ct_CC"; then
19527   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19528 else
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19531 do
19532   IFS=$as_save_IFS
19533   test -z "$as_dir" && as_dir=.
19534   for ac_exec_ext in '' $ac_executable_extensions; do
19535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19536     ac_cv_prog_ac_ct_CC="$ac_prog"
19537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19538     break 2
19539   fi
19540 done
19541 done
19542 IFS=$as_save_IFS
19543
19544 fi
19545 fi
19546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19547 if test -n "$ac_ct_CC"; then
19548   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19549 echo "${ECHO_T}$ac_ct_CC" >&6; }
19550 else
19551   { echo "$as_me:$LINENO: result: no" >&5
19552 echo "${ECHO_T}no" >&6; }
19553 fi
19554
19555
19556   test -n "$ac_ct_CC" && break
19557 done
19558
19559   if test "x$ac_ct_CC" = x; then
19560     CC=""
19561   else
19562     case $cross_compiling:$ac_tool_warned in
19563 yes:)
19564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19565 whose name does not start with the host triplet.  If you think this
19566 configuration is useful to you, please write to autoconf@gnu.org." >&5
19567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19568 whose name does not start with the host triplet.  If you think this
19569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19570 ac_tool_warned=yes ;;
19571 esac
19572     CC=$ac_ct_CC
19573   fi
19574 fi
19575
19576
19577 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19578 See \`config.log' for more details." >&5
19579 echo "$as_me: error: no acceptable C compiler found in \$PATH
19580 See \`config.log' for more details." >&2;}
19581    { (exit 1); exit 1; }; }
19582
19583 # Provide some information about the compiler.
19584 echo "$as_me:$LINENO: checking for C compiler version" >&5
19585 ac_compiler=`set X $ac_compile; echo $2`
19586 { (ac_try="$ac_compiler --version >&5"
19587 case "(($ac_try" in
19588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589   *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592   (eval "$ac_compiler --version >&5") 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }
19596 { (ac_try="$ac_compiler -v >&5"
19597 case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_compiler -v >&5") 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }
19606 { (ac_try="$ac_compiler -V >&5"
19607 case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_compiler -V >&5") 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }
19616
19617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628
19629 int
19630 main ()
19631 {
19632 #ifndef __GNUC__
19633        choke me
19634 #endif
19635
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (ac_try="$ac_compile"
19642 case "(($ac_try" in
19643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644   *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647   (eval "$ac_compile") 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } && {
19654          test -z "$ac_c_werror_flag" ||
19655          test ! -s conftest.err
19656        } && test -s conftest.$ac_objext; then
19657   ac_compiler_gnu=yes
19658 else
19659   echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19661
19662         ac_compiler_gnu=no
19663 fi
19664
19665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19667
19668 fi
19669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19671 GCC=`test $ac_compiler_gnu = yes && echo yes`
19672 ac_test_CFLAGS=${CFLAGS+set}
19673 ac_save_CFLAGS=$CFLAGS
19674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19676 if test "${ac_cv_prog_cc_g+set}" = set; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   ac_save_c_werror_flag=$ac_c_werror_flag
19680    ac_c_werror_flag=yes
19681    ac_cv_prog_cc_g=no
19682    CFLAGS="-g"
19683    cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689
19690 int
19691 main ()
19692 {
19693
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705   (eval "$ac_compile") 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } && {
19712          test -z "$ac_c_werror_flag" ||
19713          test ! -s conftest.err
19714        } && test -s conftest.$ac_objext; then
19715   ac_cv_prog_cc_g=yes
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720         CFLAGS=""
19721       cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727
19728 int
19729 main ()
19730 {
19731
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_compile") 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && {
19750          test -z "$ac_c_werror_flag" ||
19751          test ! -s conftest.err
19752        } && test -s conftest.$ac_objext; then
19753   :
19754 else
19755   echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758         ac_c_werror_flag=$ac_save_c_werror_flag
19759          CFLAGS="-g"
19760          cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766
19767 int
19768 main ()
19769 {
19770
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext
19776 if { (ac_try="$ac_compile"
19777 case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_compile") 2>conftest.er1
19783   ac_status=$?
19784   grep -v '^ *+' conftest.er1 >conftest.err
19785   rm -f conftest.er1
19786   cat conftest.err >&5
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } && {
19789          test -z "$ac_c_werror_flag" ||
19790          test ! -s conftest.err
19791        } && test -s conftest.$ac_objext; then
19792   ac_cv_prog_cc_g=yes
19793 else
19794   echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797
19798 fi
19799
19800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801 fi
19802
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 fi
19805
19806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19807    ac_c_werror_flag=$ac_save_c_werror_flag
19808 fi
19809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19811 if test "$ac_test_CFLAGS" = set; then
19812   CFLAGS=$ac_save_CFLAGS
19813 elif test $ac_cv_prog_cc_g = yes; then
19814   if test "$GCC" = yes; then
19815     CFLAGS="-g -O2"
19816   else
19817     CFLAGS="-g"
19818   fi
19819 else
19820   if test "$GCC" = yes; then
19821     CFLAGS="-O2"
19822   else
19823     CFLAGS=
19824   fi
19825 fi
19826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19828 if test "${ac_cv_prog_cc_c89+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   ac_cv_prog_cc_c89=no
19832 ac_save_CC=$CC
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 #include <stdarg.h>
19840 #include <stdio.h>
19841 #include <sys/types.h>
19842 #include <sys/stat.h>
19843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19844 struct buf { int x; };
19845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19846 static char *e (p, i)
19847      char **p;
19848      int i;
19849 {
19850   return p[i];
19851 }
19852 static char *f (char * (*g) (char **, int), char **p, ...)
19853 {
19854   char *s;
19855   va_list v;
19856   va_start (v,p);
19857   s = g (p, va_arg (v,int));
19858   va_end (v);
19859   return s;
19860 }
19861
19862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19863    function prototypes and stuff, but not '\xHH' hex character constants.
19864    These don't provoke an error unfortunately, instead are silently treated
19865    as 'x'.  The following induces an error, until -std is added to get
19866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19867    array size at least.  It's necessary to write '\x00'==0 to get something
19868    that's true only with -std.  */
19869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19870
19871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19872    inside strings and character constants.  */
19873 #define FOO(x) 'x'
19874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19875
19876 int test (int i, double x);
19877 struct s1 {int (*f) (int a);};
19878 struct s2 {int (*f) (double a);};
19879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19880 int argc;
19881 char **argv;
19882 int
19883 main ()
19884 {
19885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19886   ;
19887   return 0;
19888 }
19889 _ACEOF
19890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19891         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19892 do
19893   CC="$ac_save_CC $ac_arg"
19894   rm -f conftest.$ac_objext
19895 if { (ac_try="$ac_compile"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_compile") 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } && {
19908          test -z "$ac_c_werror_flag" ||
19909          test ! -s conftest.err
19910        } && test -s conftest.$ac_objext; then
19911   ac_cv_prog_cc_c89=$ac_arg
19912 else
19913   echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916
19917 fi
19918
19919 rm -f core conftest.err conftest.$ac_objext
19920   test "x$ac_cv_prog_cc_c89" != "xno" && break
19921 done
19922 rm -f conftest.$ac_ext
19923 CC=$ac_save_CC
19924
19925 fi
19926 # AC_CACHE_VAL
19927 case "x$ac_cv_prog_cc_c89" in
19928   x)
19929     { echo "$as_me:$LINENO: result: none needed" >&5
19930 echo "${ECHO_T}none needed" >&6; } ;;
19931   xno)
19932     { echo "$as_me:$LINENO: result: unsupported" >&5
19933 echo "${ECHO_T}unsupported" >&6; } ;;
19934   *)
19935     CC="$CC $ac_cv_prog_cc_c89"
19936     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19938 esac
19939
19940
19941 ac_ext=c
19942 ac_cpp='$CPP $CPPFLAGS'
19943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19946
19947 depcc="$CC"   am_compiler_list=
19948
19949 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19950 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19951 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19952   echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19955   # We make a subdir and do the tests there.  Otherwise we can end up
19956   # making bogus files that we don't know about and never remove.  For
19957   # instance it was reported that on HP-UX the gcc test will end up
19958   # making a dummy file named `D' -- because `-MD' means `put the output
19959   # in D'.
19960   mkdir conftest.dir
19961   # Copy depcomp to subdir because otherwise we won't find it if we're
19962   # using a relative directory.
19963   cp "$am_depcomp" conftest.dir
19964   cd conftest.dir
19965   # We will build objects and dependencies in a subdirectory because
19966   # it helps to detect inapplicable dependency modes.  For instance
19967   # both Tru64's cc and ICC support -MD to output dependencies as a
19968   # side effect of compilation, but ICC will put the dependencies in
19969   # the current directory while Tru64 will put them in the object
19970   # directory.
19971   mkdir sub
19972
19973   am_cv_CC_dependencies_compiler_type=none
19974   if test "$am_compiler_list" = ""; then
19975      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19976   fi
19977   for depmode in $am_compiler_list; do
19978     # Setup a source with many dependencies, because some compilers
19979     # like to wrap large dependency lists on column 80 (with \), and
19980     # we should not choose a depcomp mode which is confused by this.
19981     #
19982     # We need to recreate these files for each test, as the compiler may
19983     # overwrite some of them when testing with obscure command lines.
19984     # This happens at least with the AIX C compiler.
19985     : > sub/conftest.c
19986     for i in 1 2 3 4 5 6; do
19987       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19988       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19989       # Solaris 8's {/usr,}/bin/sh.
19990       touch sub/conftst$i.h
19991     done
19992     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19993
19994     case $depmode in
19995     nosideeffect)
19996       # after this tag, mechanisms are not by side-effect, so they'll
19997       # only be used when explicitly requested
19998       if test "x$enable_dependency_tracking" = xyes; then
19999         continue
20000       else
20001         break
20002       fi
20003       ;;
20004     none) break ;;
20005     esac
20006     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20007     # mode.  It turns out that the SunPro C++ compiler does not properly
20008     # handle `-M -o', and we need to detect this.
20009     if depmode=$depmode \
20010        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20012        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20013          >/dev/null 2>conftest.err &&
20014        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20016        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20018       # icc doesn't choke on unknown options, it will just issue warnings
20019       # or remarks (even with -Werror).  So we grep stderr for any message
20020       # that says an option was ignored or not supported.
20021       # When given -MP, icc 7.0 and 7.1 complain thusly:
20022       #   icc: Command line warning: ignoring option '-M'; no argument required
20023       # The diagnosis changed in icc 8.0:
20024       #   icc: Command line remark: option '-MP' not supported
20025       if (grep 'ignoring option' conftest.err ||
20026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20027         am_cv_CC_dependencies_compiler_type=$depmode
20028         break
20029       fi
20030     fi
20031   done
20032
20033   cd ..
20034   rm -rf conftest.dir
20035 else
20036   am_cv_CC_dependencies_compiler_type=none
20037 fi
20038
20039 fi
20040 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20041 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20043
20044  if
20045   test "x$enable_dependency_tracking" != xno \
20046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20047   am__fastdepCC_TRUE=
20048   am__fastdepCC_FALSE='#'
20049 else
20050   am__fastdepCC_TRUE='#'
20051   am__fastdepCC_FALSE=
20052 fi
20053
20054
20055 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20056 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20057 # Just in case
20058 sleep 1
20059 echo timestamp > conftest.file
20060 # Do `set' in a subshell so we don't clobber the current shell's
20061 # arguments.  Must try -L first in case configure is actually a
20062 # symlink; some systems play weird games with the mod time of symlinks
20063 # (eg FreeBSD returns the mod time of the symlink's containing
20064 # directory).
20065 if (
20066    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20067    if test "$*" = "X"; then
20068       # -L didn't work.
20069       set X `ls -t $srcdir/configure conftest.file`
20070    fi
20071    rm -f conftest.file
20072    if test "$*" != "X $srcdir/configure conftest.file" \
20073       && test "$*" != "X conftest.file $srcdir/configure"; then
20074
20075       # If neither matched, then we have a broken ls.  This can happen
20076       # if, for instance, CONFIG_SHELL is bash and it inherits a
20077       # broken ls alias from the environment.  This has actually
20078       # happened.  Such a system could not be considered "sane".
20079       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20080 alias in your environment" >&5
20081 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20082 alias in your environment" >&2;}
20083    { (exit 1); exit 1; }; }
20084    fi
20085
20086    test "$2" = conftest.file
20087    )
20088 then
20089    # Ok.
20090    :
20091 else
20092    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20093 Check your system clock" >&5
20094 echo "$as_me: error: newly created file is older than distributed files!
20095 Check your system clock" >&2;}
20096    { (exit 1); exit 1; }; }
20097 fi
20098 { echo "$as_me:$LINENO: result: yes" >&5
20099 echo "${ECHO_T}yes" >&6; }
20100 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20101 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20102 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20103 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106   cat >conftest.make <<\_ACEOF
20107 SHELL = /bin/sh
20108 all:
20109         @echo '@@@%%%=$(MAKE)=@@@%%%'
20110 _ACEOF
20111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20112 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20113   *@@@%%%=?*=@@@%%%*)
20114     eval ac_cv_prog_make_${ac_make}_set=yes;;
20115   *)
20116     eval ac_cv_prog_make_${ac_make}_set=no;;
20117 esac
20118 rm -f conftest.make
20119 fi
20120 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20121   { echo "$as_me:$LINENO: result: yes" >&5
20122 echo "${ECHO_T}yes" >&6; }
20123   SET_MAKE=
20124 else
20125   { echo "$as_me:$LINENO: result: no" >&5
20126 echo "${ECHO_T}no" >&6; }
20127   SET_MAKE="MAKE=${MAKE-make}"
20128 fi
20129
20130
20131 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20132 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20133 if test "$cross_compiling" = yes; then
20134   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20135 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20136 else
20137   cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h.  */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h.  */
20143 #include <stdio.h>
20144 int
20145 main ()
20146 {
20147 printf("%s",NULL);
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest$ac_exeext
20153 if { (ac_try="$ac_link"
20154 case "(($ac_try" in
20155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156   *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159   (eval "$ac_link") 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20163   { (case "(($ac_try" in
20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165   *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168   (eval "$ac_try") 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; }; then
20172
20173 cat >>confdefs.h <<\_ACEOF
20174 #define PRINTF_NULL_WORKING 1
20175 _ACEOF
20176
20177               { echo "$as_me:$LINENO: result: yes" >&5
20178 echo "${ECHO_T}yes" >&6; }
20179 else
20180   echo "$as_me: program exited with status $ac_status" >&5
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ( exit $ac_status )
20185 { echo "$as_me:$LINENO: result: no" >&5
20186 echo "${ECHO_T}no" >&6; }
20187 fi
20188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20189 fi
20190
20191
20192
20193
20194     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20195 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20196     if test "${ac_cv_va_copy+set}" = set; then
20197   echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199
20200     ac_cv_va_copy=""
20201
20202
20203
20204     if test ".$ac_cv_va_copy" = .; then
20205         if test "$cross_compiling" = yes; then
20206   ac_cv_va_copy="C99"
20207 else
20208   cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214
20215 #include <stdlib.h>
20216 #include <stdarg.h>
20217 #include <string.h>
20218 #define DO_VA_COPY(d, s) va_copy((d), (s))
20219 void test(char *str, ...)
20220 {
20221     va_list ap, ap2;
20222     int i;
20223     va_start(ap, str);
20224     DO_VA_COPY(ap2, ap);
20225     for (i = 1; i <= 9; i++) {
20226         int k = (int)va_arg(ap, int);
20227         if (k != i)
20228             abort();
20229     }
20230     DO_VA_COPY(ap, ap2);
20231     for (i = 1; i <= 9; i++) {
20232         int k = (int)va_arg(ap, int);
20233         if (k != i)
20234             abort();
20235     }
20236     va_end(ap);
20237 }
20238 int main(int argc, char *argv[])
20239 {
20240     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20241     exit(0);
20242 }
20243
20244 _ACEOF
20245 rm -f conftest$ac_exeext
20246 if { (ac_try="$ac_link"
20247 case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252   (eval "$ac_link") 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20256   { (case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_try") 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_va_copy="C99"
20266 else
20267   echo "$as_me: program exited with status $ac_status" >&5
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271 fi
20272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20273 fi
20274
20275
20276             fi
20277
20278
20279
20280
20281     if test ".$ac_cv_va_copy" = .; then
20282         if test "$cross_compiling" = yes; then
20283   ac_cv_va_copy="GCM"
20284 else
20285   cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291
20292 #include <stdlib.h>
20293 #include <stdarg.h>
20294 #include <string.h>
20295 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20296 void test(char *str, ...)
20297 {
20298     va_list ap, ap2;
20299     int i;
20300     va_start(ap, str);
20301     DO_VA_COPY(ap2, ap);
20302     for (i = 1; i <= 9; i++) {
20303         int k = (int)va_arg(ap, int);
20304         if (k != i)
20305             abort();
20306     }
20307     DO_VA_COPY(ap, ap2);
20308     for (i = 1; i <= 9; i++) {
20309         int k = (int)va_arg(ap, int);
20310         if (k != i)
20311             abort();
20312     }
20313     va_end(ap);
20314 }
20315 int main(int argc, char *argv[])
20316 {
20317     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20318     exit(0);
20319 }
20320
20321 _ACEOF
20322 rm -f conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_link") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20333   { (case "(($ac_try" in
20334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335   *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338   (eval "$ac_try") 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; }; then
20342   ac_cv_va_copy="GCM"
20343 else
20344   echo "$as_me: program exited with status $ac_status" >&5
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 fi
20349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20350 fi
20351
20352
20353             fi
20354
20355
20356
20357
20358     if test ".$ac_cv_va_copy" = .; then
20359         if test "$cross_compiling" = yes; then
20360   ac_cv_va_copy="GCH"
20361 else
20362   cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368
20369 #include <stdlib.h>
20370 #include <stdarg.h>
20371 #include <string.h>
20372 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20373 void test(char *str, ...)
20374 {
20375     va_list ap, ap2;
20376     int i;
20377     va_start(ap, str);
20378     DO_VA_COPY(ap2, ap);
20379     for (i = 1; i <= 9; i++) {
20380         int k = (int)va_arg(ap, int);
20381         if (k != i)
20382             abort();
20383     }
20384     DO_VA_COPY(ap, ap2);
20385     for (i = 1; i <= 9; i++) {
20386         int k = (int)va_arg(ap, int);
20387         if (k != i)
20388             abort();
20389     }
20390     va_end(ap);
20391 }
20392 int main(int argc, char *argv[])
20393 {
20394     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20395     exit(0);
20396 }
20397
20398 _ACEOF
20399 rm -f conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403   *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406   (eval "$ac_link") 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20410   { (case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_try") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; }; then
20419   ac_cv_va_copy="GCH"
20420 else
20421   echo "$as_me: program exited with status $ac_status" >&5
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 fi
20426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20427 fi
20428
20429
20430             fi
20431
20432
20433
20434
20435     if test ".$ac_cv_va_copy" = .; then
20436         if test "$cross_compiling" = yes; then
20437   ac_cv_va_copy="GCB"
20438 else
20439   cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h.  */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h.  */
20445
20446 #include <stdlib.h>
20447 #include <stdarg.h>
20448 #include <string.h>
20449 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20450 void test(char *str, ...)
20451 {
20452     va_list ap, ap2;
20453     int i;
20454     va_start(ap, str);
20455     DO_VA_COPY(ap2, ap);
20456     for (i = 1; i <= 9; i++) {
20457         int k = (int)va_arg(ap, int);
20458         if (k != i)
20459             abort();
20460     }
20461     DO_VA_COPY(ap, ap2);
20462     for (i = 1; i <= 9; i++) {
20463         int k = (int)va_arg(ap, int);
20464         if (k != i)
20465             abort();
20466     }
20467     va_end(ap);
20468 }
20469 int main(int argc, char *argv[])
20470 {
20471     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20472     exit(0);
20473 }
20474
20475 _ACEOF
20476 rm -f conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480   *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483   (eval "$ac_link") 2>&5
20484   ac_status=$?
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20487   { (case "(($ac_try" in
20488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489   *) ac_try_echo=$ac_try;;
20490 esac
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492   (eval "$ac_try") 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; }; then
20496   ac_cv_va_copy="GCB"
20497 else
20498   echo "$as_me: program exited with status $ac_status" >&5
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 fi
20503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20504 fi
20505
20506
20507             fi
20508
20509
20510
20511
20512     if test ".$ac_cv_va_copy" = .; then
20513         if test "$cross_compiling" = yes; then
20514   ac_cv_va_copy="ASS"
20515 else
20516   cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h.  */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h.  */
20522
20523 #include <stdlib.h>
20524 #include <stdarg.h>
20525 #include <string.h>
20526 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20527 void test(char *str, ...)
20528 {
20529     va_list ap, ap2;
20530     int i;
20531     va_start(ap, str);
20532     DO_VA_COPY(ap2, ap);
20533     for (i = 1; i <= 9; i++) {
20534         int k = (int)va_arg(ap, int);
20535         if (k != i)
20536             abort();
20537     }
20538     DO_VA_COPY(ap, ap2);
20539     for (i = 1; i <= 9; i++) {
20540         int k = (int)va_arg(ap, int);
20541         if (k != i)
20542             abort();
20543     }
20544     va_end(ap);
20545 }
20546 int main(int argc, char *argv[])
20547 {
20548     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20549     exit(0);
20550 }
20551
20552 _ACEOF
20553 rm -f conftest$ac_exeext
20554 if { (ac_try="$ac_link"
20555 case "(($ac_try" in
20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557   *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560   (eval "$ac_link") 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20564   { (case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_try") 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; }; then
20573   ac_cv_va_copy="ASS"
20574 else
20575   echo "$as_me: program exited with status $ac_status" >&5
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 fi
20580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20581 fi
20582
20583
20584             fi
20585
20586
20587
20588
20589     if test ".$ac_cv_va_copy" = .; then
20590         if test "$cross_compiling" = yes; then
20591   ac_cv_va_copy="ASP"
20592 else
20593   cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h.  */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h.  */
20599
20600 #include <stdlib.h>
20601 #include <stdarg.h>
20602 #include <string.h>
20603 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20604 void test(char *str, ...)
20605 {
20606     va_list ap, ap2;
20607     int i;
20608     va_start(ap, str);
20609     DO_VA_COPY(ap2, ap);
20610     for (i = 1; i <= 9; i++) {
20611         int k = (int)va_arg(ap, int);
20612         if (k != i)
20613             abort();
20614     }
20615     DO_VA_COPY(ap, ap2);
20616     for (i = 1; i <= 9; i++) {
20617         int k = (int)va_arg(ap, int);
20618         if (k != i)
20619             abort();
20620     }
20621     va_end(ap);
20622 }
20623 int main(int argc, char *argv[])
20624 {
20625     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20626     exit(0);
20627 }
20628
20629 _ACEOF
20630 rm -f conftest$ac_exeext
20631 if { (ac_try="$ac_link"
20632 case "(($ac_try" in
20633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634   *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637   (eval "$ac_link") 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20641   { (case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_try") 2>&5
20647   ac_status=$?
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); }; }; then
20650   ac_cv_va_copy="ASP"
20651 else
20652   echo "$as_me: program exited with status $ac_status" >&5
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20655
20656 fi
20657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20658 fi
20659
20660
20661             fi
20662
20663
20664
20665
20666     if test ".$ac_cv_va_copy" = .; then
20667         if test "$cross_compiling" = yes; then
20668   ac_cv_va_copy="CPS"
20669 else
20670   cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676
20677 #include <stdlib.h>
20678 #include <stdarg.h>
20679 #include <string.h>
20680 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20681 void test(char *str, ...)
20682 {
20683     va_list ap, ap2;
20684     int i;
20685     va_start(ap, str);
20686     DO_VA_COPY(ap2, ap);
20687     for (i = 1; i <= 9; i++) {
20688         int k = (int)va_arg(ap, int);
20689         if (k != i)
20690             abort();
20691     }
20692     DO_VA_COPY(ap, ap2);
20693     for (i = 1; i <= 9; i++) {
20694         int k = (int)va_arg(ap, int);
20695         if (k != i)
20696             abort();
20697     }
20698     va_end(ap);
20699 }
20700 int main(int argc, char *argv[])
20701 {
20702     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20703     exit(0);
20704 }
20705
20706 _ACEOF
20707 rm -f conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_link") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20718   { (case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_try") 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   ac_cv_va_copy="CPS"
20728 else
20729   echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 fi
20734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20735 fi
20736
20737
20738             fi
20739
20740
20741
20742
20743     if test ".$ac_cv_va_copy" = .; then
20744         if test "$cross_compiling" = yes; then
20745   ac_cv_va_copy="CPP"
20746 else
20747   cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h.  */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h.  */
20753
20754 #include <stdlib.h>
20755 #include <stdarg.h>
20756 #include <string.h>
20757 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20758 void test(char *str, ...)
20759 {
20760     va_list ap, ap2;
20761     int i;
20762     va_start(ap, str);
20763     DO_VA_COPY(ap2, ap);
20764     for (i = 1; i <= 9; i++) {
20765         int k = (int)va_arg(ap, int);
20766         if (k != i)
20767             abort();
20768     }
20769     DO_VA_COPY(ap, ap2);
20770     for (i = 1; i <= 9; i++) {
20771         int k = (int)va_arg(ap, int);
20772         if (k != i)
20773             abort();
20774     }
20775     va_end(ap);
20776 }
20777 int main(int argc, char *argv[])
20778 {
20779     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20780     exit(0);
20781 }
20782
20783 _ACEOF
20784 rm -f conftest$ac_exeext
20785 if { (ac_try="$ac_link"
20786 case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791   (eval "$ac_link") 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20795   { (case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_try") 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; }; then
20804   ac_cv_va_copy="CPP"
20805 else
20806   echo "$as_me: program exited with status $ac_status" >&5
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 fi
20811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20812 fi
20813
20814
20815             fi
20816
20817     if test ".$ac_cv_va_copy" = .; then
20818         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20819 echo "$as_me: error: no working implementation found" >&2;}
20820    { (exit 1); exit 1; }; }
20821     fi
20822
20823 fi
20824
20825     if test ".$ac_cv_va_copy" = ".C99"; then
20826
20827 cat >>confdefs.h <<\_ACEOF
20828 #define HAVE_VA_COPY 1
20829 _ACEOF
20830
20831   fi
20832
20833 cat >>confdefs.h <<_ACEOF
20834 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20835 _ACEOF
20836
20837
20838
20839     if test ".$ac_cv_va_copy" = ".C99"; then
20840       { echo "$as_me:$LINENO: result: yes" >&5
20841 echo "${ECHO_T}yes" >&6; }
20842   else
20843       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20844 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20845   fi
20846
20847
20848 # Checks for header files.
20849 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20851 if test "${ac_cv_header_stdc+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854   cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <stdlib.h>
20861 #include <stdarg.h>
20862 #include <string.h>
20863 #include <float.h>
20864
20865 int
20866 main ()
20867 {
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest.$ac_objext; then
20890   ac_cv_header_stdc=yes
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895         ac_cv_header_stdc=no
20896 fi
20897
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899
20900 if test $ac_cv_header_stdc = yes; then
20901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20902   cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h.  */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h.  */
20908 #include <string.h>
20909
20910 _ACEOF
20911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20912   $EGREP "memchr" >/dev/null 2>&1; then
20913   :
20914 else
20915   ac_cv_header_stdc=no
20916 fi
20917 rm -f conftest*
20918
20919 fi
20920
20921 if test $ac_cv_header_stdc = yes; then
20922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20923   cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 #include <stdlib.h>
20930
20931 _ACEOF
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933   $EGREP "free" >/dev/null 2>&1; then
20934   :
20935 else
20936   ac_cv_header_stdc=no
20937 fi
20938 rm -f conftest*
20939
20940 fi
20941
20942 if test $ac_cv_header_stdc = yes; then
20943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20944   if test "$cross_compiling" = yes; then
20945   :
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <ctype.h>
20954 #include <stdlib.h>
20955 #if ((' ' & 0x0FF) == 0x020)
20956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20958 #else
20959 # define ISLOWER(c) \
20960                    (('a' <= (c) && (c) <= 'i') \
20961                      || ('j' <= (c) && (c) <= 'r') \
20962                      || ('s' <= (c) && (c) <= 'z'))
20963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20964 #endif
20965
20966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20967 int
20968 main ()
20969 {
20970   int i;
20971   for (i = 0; i < 256; i++)
20972     if (XOR (islower (i), ISLOWER (i))
20973         || toupper (i) != TOUPPER (i))
20974       return 2;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_link") 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20989   { (case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994   (eval "$ac_try") 2>&5
20995   ac_status=$?
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); }; }; then
20998   :
20999 else
21000   echo "$as_me: program exited with status $ac_status" >&5
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ( exit $ac_status )
21005 ac_cv_header_stdc=no
21006 fi
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21008 fi
21009
21010
21011 fi
21012 fi
21013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21015 if test $ac_cv_header_stdc = yes; then
21016
21017 cat >>confdefs.h <<\_ACEOF
21018 #define STDC_HEADERS 1
21019 _ACEOF
21020
21021 fi
21022
21023 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21024 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21025 if test "${ac_cv_header_time+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028   cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034 #include <sys/types.h>
21035 #include <sys/time.h>
21036 #include <time.h>
21037
21038 int
21039 main ()
21040 {
21041 if ((struct tm *) 0)
21042 return 0;
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_compile") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && {
21061          test -z "$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        } && test -s conftest.$ac_objext; then
21064   ac_cv_header_time=yes
21065 else
21066   echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069         ac_cv_header_time=no
21070 fi
21071
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 fi
21074 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21075 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21076 if test $ac_cv_header_time = yes; then
21077
21078 cat >>confdefs.h <<\_ACEOF
21079 #define TIME_WITH_SYS_TIME 1
21080 _ACEOF
21081
21082 fi
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094 for ac_header in sys/socket.h \
21095                   sys/stat.h \
21096                   windows.h winsock.h winsock2.h \
21097                   sys/time.h \
21098                   errno.h unistd.h \
21099                   execinfo.h\
21100                   signal.h
21101 do
21102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107   echo $ECHO_N "(cached) $ECHO_C" >&6
21108 fi
21109 ac_res=`eval echo '${'$as_ac_Header'}'`
21110                { echo "$as_me:$LINENO: result: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21112 else
21113   # Is the header compilable?
21114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 $ac_includes_default
21123 #include <$ac_header>
21124 _ACEOF
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_compile") 2>conftest.er1
21133   ac_status=$?
21134   grep -v '^ *+' conftest.er1 >conftest.err
21135   rm -f conftest.er1
21136   cat conftest.err >&5
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } && {
21139          test -z "$ac_c_werror_flag" ||
21140          test ! -s conftest.err
21141        } && test -s conftest.$ac_objext; then
21142   ac_header_compiler=yes
21143 else
21144   echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147         ac_header_compiler=no
21148 fi
21149
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21152 echo "${ECHO_T}$ac_header_compiler" >&6; }
21153
21154 # Is the header present?
21155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 #include <$ac_header>
21164 _ACEOF
21165 if { (ac_try="$ac_cpp conftest.$ac_ext"
21166 case "(($ac_try" in
21167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168   *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } >/dev/null && {
21178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21179          test ! -s conftest.err
21180        }; then
21181   ac_header_preproc=yes
21182 else
21183   echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186   ac_header_preproc=no
21187 fi
21188
21189 rm -f conftest.err conftest.$ac_ext
21190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21191 echo "${ECHO_T}$ac_header_preproc" >&6; }
21192
21193 # So?  What about this header?
21194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21195   yes:no: )
21196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21200     ac_header_preproc=yes
21201     ;;
21202   no:yes:* )
21203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21215     ( cat <<\_ASBOX
21216 ## -------------------------------------------------- ##
21217 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21218 ## -------------------------------------------------- ##
21219 _ASBOX
21220      ) | sed "s/^/$as_me: WARNING:     /" >&2
21221     ;;
21222 esac
21223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228   eval "$as_ac_Header=\$ac_header_preproc"
21229 fi
21230 ac_res=`eval echo '${'$as_ac_Header'}'`
21231                { echo "$as_me:$LINENO: result: $ac_res" >&5
21232 echo "${ECHO_T}$ac_res" >&6; }
21233
21234 fi
21235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21236   cat >>confdefs.h <<_ACEOF
21237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21238 _ACEOF
21239
21240 fi
21241
21242 done
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252 for ac_func in gettimeofday usleep \
21253                 getdtablesize \
21254                 sysconf\
21255                 readv\
21256                 popen\
21257                 signal\
21258                 getline
21259 do
21260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21264   echo $ECHO_N "(cached) $ECHO_C" >&6
21265 else
21266   cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h.  */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h.  */
21272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21274 #define $ac_func innocuous_$ac_func
21275
21276 /* System header to define __stub macros and hopefully few prototypes,
21277     which can conflict with char $ac_func (); below.
21278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21279     <limits.h> exists even on freestanding compilers.  */
21280
21281 #ifdef __STDC__
21282 # include <limits.h>
21283 #else
21284 # include <assert.h>
21285 #endif
21286
21287 #undef $ac_func
21288
21289 /* Override any GCC internal prototype to avoid an error.
21290    Use char because int might match the return type of a GCC
21291    builtin and then its argument prototype would still apply.  */
21292 #ifdef __cplusplus
21293 extern "C"
21294 #endif
21295 char $ac_func ();
21296 /* The GNU C library defines this for functions which it implements
21297     to always fail with ENOSYS.  Some functions are actually named
21298     something starting with __ and the normal name is an alias.  */
21299 #if defined __stub_$ac_func || defined __stub___$ac_func
21300 choke me
21301 #endif
21302
21303 int
21304 main ()
21305 {
21306 return $ac_func ();
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 rm -f conftest.$ac_objext conftest$ac_exeext
21312 if { (ac_try="$ac_link"
21313 case "(($ac_try" in
21314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315   *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318   (eval "$ac_link") 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } && {
21325          test -z "$ac_c_werror_flag" ||
21326          test ! -s conftest.err
21327        } && test -s conftest$ac_exeext &&
21328        $as_test_x conftest$ac_exeext; then
21329   eval "$as_ac_var=yes"
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334         eval "$as_ac_var=no"
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338       conftest$ac_exeext conftest.$ac_ext
21339 fi
21340 ac_res=`eval echo '${'$as_ac_var'}'`
21341                { echo "$as_me:$LINENO: result: $ac_res" >&5
21342 echo "${ECHO_T}$ac_res" >&6; }
21343 if test `eval echo '${'$as_ac_var'}'` = yes; then
21344   cat >>confdefs.h <<_ACEOF
21345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21346 _ACEOF
21347
21348 fi
21349 done
21350
21351
21352 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21353
21354
21355 for ac_func in snprintf vsnprintf
21356 do
21357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h.  */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h.  */
21369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21371 #define $ac_func innocuous_$ac_func
21372
21373 /* System header to define __stub macros and hopefully few prototypes,
21374     which can conflict with char $ac_func (); below.
21375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376     <limits.h> exists even on freestanding compilers.  */
21377
21378 #ifdef __STDC__
21379 # include <limits.h>
21380 #else
21381 # include <assert.h>
21382 #endif
21383
21384 #undef $ac_func
21385
21386 /* Override any GCC internal prototype to avoid an error.
21387    Use char because int might match the return type of a GCC
21388    builtin and then its argument prototype would still apply.  */
21389 #ifdef __cplusplus
21390 extern "C"
21391 #endif
21392 char $ac_func ();
21393 /* The GNU C library defines this for functions which it implements
21394     to always fail with ENOSYS.  Some functions are actually named
21395     something starting with __ and the normal name is an alias.  */
21396 #if defined __stub_$ac_func || defined __stub___$ac_func
21397 choke me
21398 #endif
21399
21400 int
21401 main ()
21402 {
21403 return $ac_func ();
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext conftest$ac_exeext
21409 if { (ac_try="$ac_link"
21410 case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_link") 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } && {
21422          test -z "$ac_c_werror_flag" ||
21423          test ! -s conftest.err
21424        } && test -s conftest$ac_exeext &&
21425        $as_test_x conftest$ac_exeext; then
21426   eval "$as_ac_var=yes"
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         eval "$as_ac_var=no"
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21435       conftest$ac_exeext conftest.$ac_ext
21436 fi
21437 ac_res=`eval echo '${'$as_ac_var'}'`
21438                { echo "$as_me:$LINENO: result: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21440 if test `eval echo '${'$as_ac_var'}'` = yes; then
21441   cat >>confdefs.h <<_ACEOF
21442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21443 _ACEOF
21444
21445 fi
21446 done
21447
21448 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21449 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21450 if test "${ac_cv_have_working_snprintf+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   if test "$cross_compiling" = yes; then
21454   ac_cv_have_working_snprintf=cross
21455 else
21456   cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h.  */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h.  */
21462 #include <stdio.h>
21463
21464 int main(void)
21465 {
21466     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21467     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21468     int i;
21469     i = snprintf (bufs, 2, "%s", "111");
21470     if (strcmp (bufs, "1")) exit (1);
21471     if (i != 3) exit (1);
21472     i = snprintf (bufd, 2, "%d", 111);
21473     if (strcmp (bufd, "1")) exit (1);
21474     if (i != 3) exit (1);
21475     exit(0);
21476 }
21477 _ACEOF
21478 rm -f conftest$ac_exeext
21479 if { (ac_try="$ac_link"
21480 case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_link") 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21489   { (case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_try") 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; }; then
21498   ac_cv_have_working_snprintf=yes
21499 else
21500   echo "$as_me: program exited with status $ac_status" >&5
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 ( exit $ac_status )
21505 ac_cv_have_working_snprintf=no
21506 fi
21507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21508 fi
21509
21510
21511 fi
21512
21513 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21514 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21515 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21516 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21517 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520   if test "$cross_compiling" = yes; then
21521   ac_cv_have_working_vsnprintf=cross
21522 else
21523   cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h.  */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h.  */
21529 #include <stdio.h>
21530 #include <stdarg.h>
21531
21532 int my_vsnprintf (char *buf, const char *tmpl, ...)
21533 {
21534     int i;
21535     va_list args;
21536     va_start (args, tmpl);
21537     i = vsnprintf (buf, 2, tmpl, args);
21538     va_end (args);
21539     return i;
21540 }
21541
21542 int main(void)
21543 {
21544     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21545     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21546     int i;
21547     i = my_vsnprintf (bufs, "%s", "111");
21548     if (strcmp (bufs, "1")) exit (1);
21549     if (i != 3) exit (1);
21550     i = my_vsnprintf (bufd, "%d", 111);
21551     if (strcmp (bufd, "1")) exit (1);
21552     if (i != 3) exit (1);
21553     exit(0);
21554 }
21555 _ACEOF
21556 rm -f conftest$ac_exeext
21557 if { (ac_try="$ac_link"
21558 case "(($ac_try" in
21559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560   *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563   (eval "$ac_link") 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567   { (case "(($ac_try" in
21568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569   *) ac_try_echo=$ac_try;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572   (eval "$ac_try") 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; }; then
21576   ac_cv_have_working_vsnprintf=yes
21577 else
21578   echo "$as_me: program exited with status $ac_status" >&5
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 ( exit $ac_status )
21583 ac_cv_have_working_vsnprintf=no
21584 fi
21585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21586 fi
21587
21588
21589 fi
21590
21591 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21592 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21593 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21594   case " $LIBOBJS " in
21595   *" snprintf.$ac_objext "* ) ;;
21596   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21597  ;;
21598 esac
21599
21600   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21601 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21602
21603 cat >>confdefs.h <<\_ACEOF
21604 #define PREFER_PORTABLE_SNPRINTF 1
21605 _ACEOF
21606
21607 fi
21608 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21609 { echo "$as_me:$LINENO: checking for asprintf" >&5
21610 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21611 if test "${ac_cv_func_asprintf+set}" = set; then
21612   echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614   cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21622 #define asprintf innocuous_asprintf
21623
21624 /* System header to define __stub macros and hopefully few prototypes,
21625     which can conflict with char asprintf (); below.
21626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627     <limits.h> exists even on freestanding compilers.  */
21628
21629 #ifdef __STDC__
21630 # include <limits.h>
21631 #else
21632 # include <assert.h>
21633 #endif
21634
21635 #undef asprintf
21636
21637 /* Override any GCC internal prototype to avoid an error.
21638    Use char because int might match the return type of a GCC
21639    builtin and then its argument prototype would still apply.  */
21640 #ifdef __cplusplus
21641 extern "C"
21642 #endif
21643 char asprintf ();
21644 /* The GNU C library defines this for functions which it implements
21645     to always fail with ENOSYS.  Some functions are actually named
21646     something starting with __ and the normal name is an alias.  */
21647 #if defined __stub_asprintf || defined __stub___asprintf
21648 choke me
21649 #endif
21650
21651 int
21652 main ()
21653 {
21654 return asprintf ();
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest.$ac_objext conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_link") 2>conftest.er1
21667   ac_status=$?
21668   grep -v '^ *+' conftest.er1 >conftest.err
21669   rm -f conftest.er1
21670   cat conftest.err >&5
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } && {
21673          test -z "$ac_c_werror_flag" ||
21674          test ! -s conftest.err
21675        } && test -s conftest$ac_exeext &&
21676        $as_test_x conftest$ac_exeext; then
21677   ac_cv_func_asprintf=yes
21678 else
21679   echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682         ac_cv_func_asprintf=no
21683 fi
21684
21685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21686       conftest$ac_exeext conftest.$ac_ext
21687 fi
21688 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21689 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21690 if test $ac_cv_func_asprintf = yes; then
21691   :
21692 else
21693
21694 cat >>confdefs.h <<\_ACEOF
21695 #define NEED_ASPRINTF 1
21696 _ACEOF
21697
21698 fi
21699
21700 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21701 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21702 if test "${ac_cv_func_vasprintf+set}" = set; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705   cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21713 #define vasprintf innocuous_vasprintf
21714
21715 /* System header to define __stub macros and hopefully few prototypes,
21716     which can conflict with char vasprintf (); below.
21717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21718     <limits.h> exists even on freestanding compilers.  */
21719
21720 #ifdef __STDC__
21721 # include <limits.h>
21722 #else
21723 # include <assert.h>
21724 #endif
21725
21726 #undef vasprintf
21727
21728 /* Override any GCC internal prototype to avoid an error.
21729    Use char because int might match the return type of a GCC
21730    builtin and then its argument prototype would still apply.  */
21731 #ifdef __cplusplus
21732 extern "C"
21733 #endif
21734 char vasprintf ();
21735 /* The GNU C library defines this for functions which it implements
21736     to always fail with ENOSYS.  Some functions are actually named
21737     something starting with __ and the normal name is an alias.  */
21738 #if defined __stub_vasprintf || defined __stub___vasprintf
21739 choke me
21740 #endif
21741
21742 int
21743 main ()
21744 {
21745 return vasprintf ();
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext conftest$ac_exeext
21751 if { (ac_try="$ac_link"
21752 case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_link") 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } && {
21764          test -z "$ac_c_werror_flag" ||
21765          test ! -s conftest.err
21766        } && test -s conftest$ac_exeext &&
21767        $as_test_x conftest$ac_exeext; then
21768   ac_cv_func_vasprintf=yes
21769 else
21770   echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773         ac_cv_func_vasprintf=no
21774 fi
21775
21776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21777       conftest$ac_exeext conftest.$ac_ext
21778 fi
21779 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21780 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21781 if test $ac_cv_func_vasprintf = yes; then
21782   :
21783 else
21784
21785 cat >>confdefs.h <<\_ACEOF
21786 #define NEED_VASPRINTF 1
21787 _ACEOF
21788
21789 fi
21790
21791
21792 # Checks for typedefs, structures, and compiler characteristics.
21793 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21794 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21795 if test "${ac_cv_c_const+set}" = set; then
21796   echo $ECHO_N "(cached) $ECHO_C" >&6
21797 else
21798   cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804
21805 int
21806 main ()
21807 {
21808 /* FIXME: Include the comments suggested by Paul. */
21809 #ifndef __cplusplus
21810   /* Ultrix mips cc rejects this.  */
21811   typedef int charset[2];
21812   const charset cs;
21813   /* SunOS 4.1.1 cc rejects this.  */
21814   char const *const *pcpcc;
21815   char **ppc;
21816   /* NEC SVR4.0.2 mips cc rejects this.  */
21817   struct point {int x, y;};
21818   static struct point const zero = {0,0};
21819   /* AIX XL C 1.02.0.0 rejects this.
21820      It does not let you subtract one const X* pointer from another in
21821      an arm of an if-expression whose if-part is not a constant
21822      expression */
21823   const char *g = "string";
21824   pcpcc = &g + (g ? g-g : 0);
21825   /* HPUX 7.0 cc rejects these. */
21826   ++pcpcc;
21827   ppc = (char**) pcpcc;
21828   pcpcc = (char const *const *) ppc;
21829   { /* SCO 3.2v4 cc rejects this.  */
21830     char *t;
21831     char const *s = 0 ? (char *) 0 : (char const *) 0;
21832
21833     *t++ = 0;
21834     if (s) return 0;
21835   }
21836   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21837     int x[] = {25, 17};
21838     const int *foo = &x[0];
21839     ++foo;
21840   }
21841   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21842     typedef const int *iptr;
21843     iptr p = 0;
21844     ++p;
21845   }
21846   { /* AIX XL C 1.02.0.0 rejects this saying
21847        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21848     struct s { int j; const int *ap[3]; };
21849     struct s *b; b->j = 5;
21850   }
21851   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21852     const int foo = 10;
21853     if (!foo) return 0;
21854   }
21855   return !cs[0] && !zero.x;
21856 #endif
21857
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 rm -f conftest.$ac_objext
21863 if { (ac_try="$ac_compile"
21864 case "(($ac_try" in
21865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866   *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869   (eval "$ac_compile") 2>conftest.er1
21870   ac_status=$?
21871   grep -v '^ *+' conftest.er1 >conftest.err
21872   rm -f conftest.er1
21873   cat conftest.err >&5
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } && {
21876          test -z "$ac_c_werror_flag" ||
21877          test ! -s conftest.err
21878        } && test -s conftest.$ac_objext; then
21879   ac_cv_c_const=yes
21880 else
21881   echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884         ac_cv_c_const=no
21885 fi
21886
21887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 fi
21889 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21890 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21891 if test $ac_cv_c_const = no; then
21892
21893 cat >>confdefs.h <<\_ACEOF
21894 #define const
21895 _ACEOF
21896
21897 fi
21898
21899 { echo "$as_me:$LINENO: checking for inline" >&5
21900 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21901 if test "${ac_cv_c_inline+set}" = set; then
21902   echo $ECHO_N "(cached) $ECHO_C" >&6
21903 else
21904   ac_cv_c_inline=no
21905 for ac_kw in inline __inline__ __inline; do
21906   cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #ifndef __cplusplus
21913 typedef int foo_t;
21914 static $ac_kw foo_t static_foo () {return 0; }
21915 $ac_kw foo_t foo () {return 0; }
21916 #endif
21917
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_compile") 2>conftest.er1
21927   ac_status=$?
21928   grep -v '^ *+' conftest.er1 >conftest.err
21929   rm -f conftest.er1
21930   cat conftest.err >&5
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); } && {
21933          test -z "$ac_c_werror_flag" ||
21934          test ! -s conftest.err
21935        } && test -s conftest.$ac_objext; then
21936   ac_cv_c_inline=$ac_kw
21937 else
21938   echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941
21942 fi
21943
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945   test "$ac_cv_c_inline" != no && break
21946 done
21947
21948 fi
21949 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21950 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21951
21952
21953 case $ac_cv_c_inline in
21954   inline | yes) ;;
21955   *)
21956     case $ac_cv_c_inline in
21957       no) ac_val=;;
21958       *) ac_val=$ac_cv_c_inline;;
21959     esac
21960     cat >>confdefs.h <<_ACEOF
21961 #ifndef __cplusplus
21962 #define inline $ac_val
21963 #endif
21964 _ACEOF
21965     ;;
21966 esac
21967
21968 { echo "$as_me:$LINENO: checking for size_t" >&5
21969 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21970 if test "${ac_cv_type_size_t+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 $ac_includes_default
21980 typedef size_t ac__type_new_;
21981 int
21982 main ()
21983 {
21984 if ((ac__type_new_ *) 0)
21985   return 0;
21986 if (sizeof (ac__type_new_))
21987   return 0;
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext
21993 if { (ac_try="$ac_compile"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_compile") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } && {
22006          test -z "$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        } && test -s conftest.$ac_objext; then
22009   ac_cv_type_size_t=yes
22010 else
22011   echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014         ac_cv_type_size_t=no
22015 fi
22016
22017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22020 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22021 if test $ac_cv_type_size_t = yes; then
22022   :
22023 else
22024
22025 cat >>confdefs.h <<_ACEOF
22026 #define size_t unsigned int
22027 _ACEOF
22028
22029 fi
22030
22031
22032 ###################################
22033 ## SimGrid and GRAS specific checks
22034 ##
22035
22036
22037   { echo "$as_me:$LINENO: result: " >&5
22038 echo "${ECHO_T}" >&6; }
22039   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22040 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22041
22042 # Check architecture signature begin
22043
22044 # Check for the architecture
22045 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22046 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22047 if test "${ac_cv_c_bigendian+set}" = set; then
22048   echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050   # See if sys/param.h defines the BYTE_ORDER macro.
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057 #include <sys/types.h>
22058 #include <sys/param.h>
22059
22060 int
22061 main ()
22062 {
22063 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22064         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22065  bogus endian macros
22066 #endif
22067
22068   ;
22069   return 0;
22070 }
22071 _ACEOF
22072 rm -f conftest.$ac_objext
22073 if { (ac_try="$ac_compile"
22074 case "(($ac_try" in
22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076   *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079   (eval "$ac_compile") 2>conftest.er1
22080   ac_status=$?
22081   grep -v '^ *+' conftest.er1 >conftest.err
22082   rm -f conftest.er1
22083   cat conftest.err >&5
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); } && {
22086          test -z "$ac_c_werror_flag" ||
22087          test ! -s conftest.err
22088        } && test -s conftest.$ac_objext; then
22089   # It does; now see whether it defined to BIG_ENDIAN or not.
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096 #include <sys/types.h>
22097 #include <sys/param.h>
22098
22099 int
22100 main ()
22101 {
22102 #if BYTE_ORDER != BIG_ENDIAN
22103  not big endian
22104 #endif
22105
22106   ;
22107   return 0;
22108 }
22109 _ACEOF
22110 rm -f conftest.$ac_objext
22111 if { (ac_try="$ac_compile"
22112 case "(($ac_try" in
22113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114   *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117   (eval "$ac_compile") 2>conftest.er1
22118   ac_status=$?
22119   grep -v '^ *+' conftest.er1 >conftest.err
22120   rm -f conftest.er1
22121   cat conftest.err >&5
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); } && {
22124          test -z "$ac_c_werror_flag" ||
22125          test ! -s conftest.err
22126        } && test -s conftest.$ac_objext; then
22127   ac_cv_c_bigendian=yes
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132         ac_cv_c_bigendian=no
22133 fi
22134
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140         # It does not; compile a test program.
22141 if test "$cross_compiling" = yes; then
22142   # try to guess the endianness by grepping values into an object file
22143   ac_cv_c_bigendian=unknown
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22151 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22152 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22153 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22154 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22155 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22156 int
22157 main ()
22158 {
22159  _ascii (); _ebcdic ();
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168   *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171   (eval "$ac_compile") 2>conftest.er1
22172   ac_status=$?
22173   grep -v '^ *+' conftest.er1 >conftest.err
22174   rm -f conftest.er1
22175   cat conftest.err >&5
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } && {
22178          test -z "$ac_c_werror_flag" ||
22179          test ! -s conftest.err
22180        } && test -s conftest.$ac_objext; then
22181   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22182   ac_cv_c_bigendian=yes
22183 fi
22184 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22185   if test "$ac_cv_c_bigendian" = unknown; then
22186     ac_cv_c_bigendian=no
22187   else
22188     # finding both strings is unlikely to happen, but who knows?
22189     ac_cv_c_bigendian=unknown
22190   fi
22191 fi
22192 else
22193   echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196
22197 fi
22198
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 else
22201   cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h.  */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h.  */
22207 $ac_includes_default
22208 int
22209 main ()
22210 {
22211
22212   /* Are we little or big endian?  From Harbison&Steele.  */
22213   union
22214   {
22215     long int l;
22216     char c[sizeof (long int)];
22217   } u;
22218   u.l = 1;
22219   return u.c[sizeof (long int) - 1] == 1;
22220
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 rm -f conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_link") 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22236   { (case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241   (eval "$ac_try") 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }; }; then
22245   ac_cv_c_bigendian=no
22246 else
22247   echo "$as_me: program exited with status $ac_status" >&5
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 ( exit $ac_status )
22252 ac_cv_c_bigendian=yes
22253 fi
22254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22255 fi
22256
22257
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 fi
22262 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22263 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22264 case $ac_cv_c_bigendian in
22265   yes)
22266     endian=1 ;;
22267   no)
22268     endian=0 ;;
22269   *)
22270     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22271 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22272    { (exit 1); exit 1; }; } ;;
22273 esac
22274
22275
22276 cat >>confdefs.h <<_ACEOF
22277 #define GRAS_BIGENDIAN $endian
22278 _ACEOF
22279
22280
22281 { echo "$as_me:$LINENO: checking size of char" >&5
22282 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22283     if test "${ac_cv_sizeof_char+set}" = set; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22287    cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h.  */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h.  */
22293 #include "confdefs.h"
22294    #include <sys/types.h>
22295
22296
22297 int
22298 main ()
22299 {
22300 switch (0) case 0: case (sizeof (char) == $ac_size):;
22301   ;
22302   return 0;
22303 }
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309   *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312   (eval "$ac_compile") 2>conftest.er1
22313   ac_status=$?
22314   grep -v '^ *+' conftest.er1 >conftest.err
22315   rm -f conftest.er1
22316   cat conftest.err >&5
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); } && {
22319          test -z "$ac_c_werror_flag" ||
22320          test ! -s conftest.err
22321        } && test -s conftest.$ac_objext; then
22322   ac_cv_sizeof_char=$ac_size
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327
22328 fi
22329
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331    if test x$ac_cv_sizeof_char != x ; then break; fi
22332   done
22333
22334 fi
22335
22336
22337 unspecif=$ac_cv_sizeof_char
22338 if test x$unspecif = x ; then
22339   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22340 echo "$as_me: error: cannot determine a size for char" >&2;}
22341    { (exit 1); exit 1; }; }
22342 fi
22343
22344     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22345   echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22348    cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h.  */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h.  */
22354 #include "confdefs.h"
22355    #include <sys/types.h>
22356
22357
22358 int
22359 main ()
22360 {
22361 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (ac_try="$ac_compile"
22368 case "(($ac_try" in
22369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370   *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373   (eval "$ac_compile") 2>conftest.er1
22374   ac_status=$?
22375   grep -v '^ *+' conftest.er1 >conftest.err
22376   rm -f conftest.er1
22377   cat conftest.err >&5
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); } && {
22380          test -z "$ac_c_werror_flag" ||
22381          test ! -s conftest.err
22382        } && test -s conftest.$ac_objext; then
22383   ac_cv_sizeof_signed_char=$ac_size
22384 else
22385   echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388
22389 fi
22390
22391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22393   done
22394
22395 fi
22396
22397
22398 signed=$ac_cv_sizeof_signed_char
22399 if test x$signed = x ; then
22400   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22401 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22402    { (exit 1); exit 1; }; }
22403 fi
22404 if test x$unspecif != x$signed ; then
22405   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22406 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22407    { (exit 1); exit 1; }; }
22408 fi
22409
22410     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22411   echo $ECHO_N "(cached) $ECHO_C" >&6
22412 else
22413   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22414    cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 #include "confdefs.h"
22421    #include <sys/types.h>
22422
22423
22424 int
22425 main ()
22426 {
22427 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436   *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439   (eval "$ac_compile") 2>conftest.er1
22440   ac_status=$?
22441   grep -v '^ *+' conftest.er1 >conftest.err
22442   rm -f conftest.er1
22443   cat conftest.err >&5
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); } && {
22446          test -z "$ac_c_werror_flag" ||
22447          test ! -s conftest.err
22448        } && test -s conftest.$ac_objext; then
22449   ac_cv_sizeof_unsigned_char=$ac_size
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454
22455 fi
22456
22457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22458    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22459   done
22460
22461 fi
22462
22463
22464 unsigned=$ac_cv_sizeof_unsigned_char
22465 if test x$unsigned = x ; then
22466   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22467 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22468    { (exit 1); exit 1; }; }
22469 fi
22470 if test x$unsigned != x$signed ; then
22471   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22472 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22473    { (exit 1); exit 1; }; }
22474 fi
22475
22476 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22477 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22478                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22479 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22480
22481  if test "${ac_cv_struct_boundary_char+set}" = set; then
22482   echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22485    cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 #include "confdefs.h"
22492      #include <sys/types.h>
22493      struct s { char c; char i; };
22494
22495 int
22496 main ()
22497 {
22498 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (ac_try="$ac_compile"
22505 case "(($ac_try" in
22506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507   *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510   (eval "$ac_compile") 2>conftest.er1
22511   ac_status=$?
22512   grep -v '^ *+' conftest.er1 >conftest.err
22513   rm -f conftest.er1
22514   cat conftest.err >&5
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); } && {
22517          test -z "$ac_c_werror_flag" ||
22518          test ! -s conftest.err
22519        } && test -s conftest.$ac_objext; then
22520   ac_cv_struct_boundary_char=$ac_size
22521 else
22522   echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525
22526 fi
22527
22528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22530   done
22531
22532 fi
22533
22534  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22535 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22536  if test x$ac_cv_struct_boundary_char = x ; then
22537    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22538 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22539    { (exit 1); exit 1; }; }
22540  fi
22541
22542 { echo "$as_me:$LINENO: checking size of short int" >&5
22543 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22544     if test "${ac_cv_sizeof_short_int+set}" = set; then
22545   echo $ECHO_N "(cached) $ECHO_C" >&6
22546 else
22547   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22548    cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 #include "confdefs.h"
22555    #include <sys/types.h>
22556
22557
22558 int
22559 main ()
22560 {
22561 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (ac_try="$ac_compile"
22568 case "(($ac_try" in
22569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570   *) ac_try_echo=$ac_try;;
22571 esac
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573   (eval "$ac_compile") 2>conftest.er1
22574   ac_status=$?
22575   grep -v '^ *+' conftest.er1 >conftest.err
22576   rm -f conftest.er1
22577   cat conftest.err >&5
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); } && {
22580          test -z "$ac_c_werror_flag" ||
22581          test ! -s conftest.err
22582        } && test -s conftest.$ac_objext; then
22583   ac_cv_sizeof_short_int=$ac_size
22584 else
22585   echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588
22589 fi
22590
22591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22593   done
22594
22595 fi
22596
22597
22598 unspecif=$ac_cv_sizeof_short_int
22599 if test x$unspecif = x ; then
22600   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22601 echo "$as_me: error: cannot determine a size for short int" >&2;}
22602    { (exit 1); exit 1; }; }
22603 fi
22604
22605     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22606   echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22609    cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h.  */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h.  */
22615 #include "confdefs.h"
22616    #include <sys/types.h>
22617
22618
22619 int
22620 main ()
22621 {
22622 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22623   ;
22624   return 0;
22625 }
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631   *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634   (eval "$ac_compile") 2>conftest.er1
22635   ac_status=$?
22636   grep -v '^ *+' conftest.er1 >conftest.err
22637   rm -f conftest.er1
22638   cat conftest.err >&5
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); } && {
22641          test -z "$ac_c_werror_flag" ||
22642          test ! -s conftest.err
22643        } && test -s conftest.$ac_objext; then
22644   ac_cv_sizeof_signed_short_int=$ac_size
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649
22650 fi
22651
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22654   done
22655
22656 fi
22657
22658
22659 signed=$ac_cv_sizeof_signed_short_int
22660 if test x$signed = x ; then
22661   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22662 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22663    { (exit 1); exit 1; }; }
22664 fi
22665 if test x$unspecif != x$signed ; then
22666   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22667 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22668    { (exit 1); exit 1; }; }
22669 fi
22670
22671     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22672   echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22675    cat >conftest.$ac_ext <<_ACEOF
22676 /* confdefs.h.  */
22677 _ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h.  */
22681 #include "confdefs.h"
22682    #include <sys/types.h>
22683
22684
22685 int
22686 main ()
22687 {
22688 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22689   ;
22690   return 0;
22691 }
22692 _ACEOF
22693 rm -f conftest.$ac_objext
22694 if { (ac_try="$ac_compile"
22695 case "(($ac_try" in
22696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697   *) ac_try_echo=$ac_try;;
22698 esac
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700   (eval "$ac_compile") 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } && {
22707          test -z "$ac_c_werror_flag" ||
22708          test ! -s conftest.err
22709        } && test -s conftest.$ac_objext; then
22710   ac_cv_sizeof_unsigned_short_int=$ac_size
22711 else
22712   echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22714
22715
22716 fi
22717
22718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22719    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22720   done
22721
22722 fi
22723
22724
22725 unsigned=$ac_cv_sizeof_unsigned_short_int
22726 if test x$unsigned = x ; then
22727   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22728 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22729    { (exit 1); exit 1; }; }
22730 fi
22731 if test x$unsigned != x$signed ; then
22732   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22733 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22734    { (exit 1); exit 1; }; }
22735 fi
22736
22737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22738 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22739              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22740 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22741
22742  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22743   echo $ECHO_N "(cached) $ECHO_C" >&6
22744 else
22745   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22746    cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h.  */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h.  */
22752 #include "confdefs.h"
22753      #include <sys/types.h>
22754      struct s { char c; short int i; };
22755
22756 int
22757 main ()
22758 {
22759 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 rm -f conftest.$ac_objext
22765 if { (ac_try="$ac_compile"
22766 case "(($ac_try" in
22767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768   *) ac_try_echo=$ac_try;;
22769 esac
22770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771   (eval "$ac_compile") 2>conftest.er1
22772   ac_status=$?
22773   grep -v '^ *+' conftest.er1 >conftest.err
22774   rm -f conftest.er1
22775   cat conftest.err >&5
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } && {
22778          test -z "$ac_c_werror_flag" ||
22779          test ! -s conftest.err
22780        } && test -s conftest.$ac_objext; then
22781   ac_cv_struct_boundary_short_int=$ac_size
22782 else
22783   echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786
22787 fi
22788
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22790    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22791   done
22792
22793 fi
22794
22795  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22796 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22797  if test x$ac_cv_struct_boundary_short_int = x ; then
22798    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22799 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22800    { (exit 1); exit 1; }; }
22801  fi
22802
22803 { echo "$as_me:$LINENO: checking size of int" >&5
22804 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22805     if test "${ac_cv_sizeof_int+set}" = set; then
22806   echo $ECHO_N "(cached) $ECHO_C" >&6
22807 else
22808   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22809    cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h.  */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h.  */
22815 #include "confdefs.h"
22816    #include <sys/types.h>
22817
22818
22819 int
22820 main ()
22821 {
22822 switch (0) case 0: case (sizeof (int) == $ac_size):;
22823   ;
22824   return 0;
22825 }
22826 _ACEOF
22827 rm -f conftest.$ac_objext
22828 if { (ac_try="$ac_compile"
22829 case "(($ac_try" in
22830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831   *) ac_try_echo=$ac_try;;
22832 esac
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834   (eval "$ac_compile") 2>conftest.er1
22835   ac_status=$?
22836   grep -v '^ *+' conftest.er1 >conftest.err
22837   rm -f conftest.er1
22838   cat conftest.err >&5
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); } && {
22841          test -z "$ac_c_werror_flag" ||
22842          test ! -s conftest.err
22843        } && test -s conftest.$ac_objext; then
22844   ac_cv_sizeof_int=$ac_size
22845 else
22846   echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849
22850 fi
22851
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853    if test x$ac_cv_sizeof_int != x ; then break; fi
22854   done
22855
22856 fi
22857
22858
22859 unspecif=$ac_cv_sizeof_int
22860 if test x$unspecif = x ; then
22861   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22862 echo "$as_me: error: cannot determine a size for int" >&2;}
22863    { (exit 1); exit 1; }; }
22864 fi
22865
22866     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22867   echo $ECHO_N "(cached) $ECHO_C" >&6
22868 else
22869   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22870    cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876 #include "confdefs.h"
22877    #include <sys/types.h>
22878
22879
22880 int
22881 main ()
22882 {
22883 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest.$ac_objext
22889 if { (ac_try="$ac_compile"
22890 case "(($ac_try" in
22891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892   *) ac_try_echo=$ac_try;;
22893 esac
22894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22895   (eval "$ac_compile") 2>conftest.er1
22896   ac_status=$?
22897   grep -v '^ *+' conftest.er1 >conftest.err
22898   rm -f conftest.er1
22899   cat conftest.err >&5
22900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901   (exit $ac_status); } && {
22902          test -z "$ac_c_werror_flag" ||
22903          test ! -s conftest.err
22904        } && test -s conftest.$ac_objext; then
22905   ac_cv_sizeof_signed_int=$ac_size
22906 else
22907   echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22909
22910
22911 fi
22912
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22915   done
22916
22917 fi
22918
22919
22920 signed=$ac_cv_sizeof_signed_int
22921 if test x$signed = x ; then
22922   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22923 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22924    { (exit 1); exit 1; }; }
22925 fi
22926 if test x$unspecif != x$signed ; then
22927   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22928 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22929    { (exit 1); exit 1; }; }
22930 fi
22931
22932     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22933   echo $ECHO_N "(cached) $ECHO_C" >&6
22934 else
22935   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22936    cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h.  */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h.  */
22942 #include "confdefs.h"
22943    #include <sys/types.h>
22944
22945
22946 int
22947 main ()
22948 {
22949 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22950   ;
22951   return 0;
22952 }
22953 _ACEOF
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958   *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961   (eval "$ac_compile") 2>conftest.er1
22962   ac_status=$?
22963   grep -v '^ *+' conftest.er1 >conftest.err
22964   rm -f conftest.er1
22965   cat conftest.err >&5
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && {
22968          test -z "$ac_c_werror_flag" ||
22969          test ! -s conftest.err
22970        } && test -s conftest.$ac_objext; then
22971   ac_cv_sizeof_unsigned_int=$ac_size
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976
22977 fi
22978
22979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22981   done
22982
22983 fi
22984
22985
22986 unsigned=$ac_cv_sizeof_unsigned_int
22987 if test x$unsigned = x ; then
22988   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22989 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22990    { (exit 1); exit 1; }; }
22991 fi
22992 if test x$unsigned != x$signed ; then
22993   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22994 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22995    { (exit 1); exit 1; }; }
22996 fi
22997
22998 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22999 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23000                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23001 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23002
23003  if test "${ac_cv_struct_boundary_int+set}" = set; then
23004   echo $ECHO_N "(cached) $ECHO_C" >&6
23005 else
23006   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23007    cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013 #include "confdefs.h"
23014      #include <sys/types.h>
23015      struct s { char c; int i; };
23016
23017 int
23018 main ()
23019 {
23020 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23021   ;
23022   return 0;
23023 }
23024 _ACEOF
23025 rm -f conftest.$ac_objext
23026 if { (ac_try="$ac_compile"
23027 case "(($ac_try" in
23028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029   *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032   (eval "$ac_compile") 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } && {
23039          test -z "$ac_c_werror_flag" ||
23040          test ! -s conftest.err
23041        } && test -s conftest.$ac_objext; then
23042   ac_cv_struct_boundary_int=$ac_size
23043 else
23044   echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047
23048 fi
23049
23050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23052   done
23053
23054 fi
23055
23056  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23057 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23058  if test x$ac_cv_struct_boundary_int = x ; then
23059    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23060 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23061    { (exit 1); exit 1; }; }
23062  fi
23063
23064 { echo "$as_me:$LINENO: checking size of long int" >&5
23065 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23066     if test "${ac_cv_sizeof_long_int+set}" = set; then
23067   echo $ECHO_N "(cached) $ECHO_C" >&6
23068 else
23069   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23070    cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h.  */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h.  */
23076 #include "confdefs.h"
23077    #include <sys/types.h>
23078
23079
23080 int
23081 main ()
23082 {
23083 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23084   ;
23085   return 0;
23086 }
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092   *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095   (eval "$ac_compile") 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } && {
23102          test -z "$ac_c_werror_flag" ||
23103          test ! -s conftest.err
23104        } && test -s conftest.$ac_objext; then
23105   ac_cv_sizeof_long_int=$ac_size
23106 else
23107   echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23109
23110
23111 fi
23112
23113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23115   done
23116
23117 fi
23118
23119
23120 unspecif=$ac_cv_sizeof_long_int
23121 if test x$unspecif = x ; then
23122   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23123 echo "$as_me: error: cannot determine a size for long int" >&2;}
23124    { (exit 1); exit 1; }; }
23125 fi
23126
23127     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23128   echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23131    cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h.  */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h.  */
23137 #include "confdefs.h"
23138    #include <sys/types.h>
23139
23140
23141 int
23142 main ()
23143 {
23144 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23145   ;
23146   return 0;
23147 }
23148 _ACEOF
23149 rm -f conftest.$ac_objext
23150 if { (ac_try="$ac_compile"
23151 case "(($ac_try" in
23152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23153   *) ac_try_echo=$ac_try;;
23154 esac
23155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156   (eval "$ac_compile") 2>conftest.er1
23157   ac_status=$?
23158   grep -v '^ *+' conftest.er1 >conftest.err
23159   rm -f conftest.er1
23160   cat conftest.err >&5
23161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162   (exit $ac_status); } && {
23163          test -z "$ac_c_werror_flag" ||
23164          test ! -s conftest.err
23165        } && test -s conftest.$ac_objext; then
23166   ac_cv_sizeof_signed_long_int=$ac_size
23167 else
23168   echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171
23172 fi
23173
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23176   done
23177
23178 fi
23179
23180
23181 signed=$ac_cv_sizeof_signed_long_int
23182 if test x$signed = x ; then
23183   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23184 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23185    { (exit 1); exit 1; }; }
23186 fi
23187 if test x$unspecif != x$signed ; then
23188   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23189 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23190    { (exit 1); exit 1; }; }
23191 fi
23192
23193     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23194   echo $ECHO_N "(cached) $ECHO_C" >&6
23195 else
23196   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23197    cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h.  */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h.  */
23203 #include "confdefs.h"
23204    #include <sys/types.h>
23205
23206
23207 int
23208 main ()
23209 {
23210 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23211   ;
23212   return 0;
23213 }
23214 _ACEOF
23215 rm -f conftest.$ac_objext
23216 if { (ac_try="$ac_compile"
23217 case "(($ac_try" in
23218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219   *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222   (eval "$ac_compile") 2>conftest.er1
23223   ac_status=$?
23224   grep -v '^ *+' conftest.er1 >conftest.err
23225   rm -f conftest.er1
23226   cat conftest.err >&5
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } && {
23229          test -z "$ac_c_werror_flag" ||
23230          test ! -s conftest.err
23231        } && test -s conftest.$ac_objext; then
23232   ac_cv_sizeof_unsigned_long_int=$ac_size
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237
23238 fi
23239
23240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23242   done
23243
23244 fi
23245
23246
23247 unsigned=$ac_cv_sizeof_unsigned_long_int
23248 if test x$unsigned = x ; then
23249   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23250 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23251    { (exit 1); exit 1; }; }
23252 fi
23253 if test x$unsigned != x$signed ; then
23254   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23255 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23256    { (exit 1); exit 1; }; }
23257 fi
23258
23259 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23260 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23261               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23262 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23263
23264  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23265   echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23268    cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h.  */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h.  */
23274 #include "confdefs.h"
23275      #include <sys/types.h>
23276      struct s { char c; long int i; };
23277
23278 int
23279 main ()
23280 {
23281 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23282   ;
23283   return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290   *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293   (eval "$ac_compile") 2>conftest.er1
23294   ac_status=$?
23295   grep -v '^ *+' conftest.er1 >conftest.err
23296   rm -f conftest.er1
23297   cat conftest.err >&5
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); } && {
23300          test -z "$ac_c_werror_flag" ||
23301          test ! -s conftest.err
23302        } && test -s conftest.$ac_objext; then
23303   ac_cv_struct_boundary_long_int=$ac_size
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308
23309 fi
23310
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23313   done
23314
23315 fi
23316
23317  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23318 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23319  if test x$ac_cv_struct_boundary_long_int = x ; then
23320    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23321 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23322    { (exit 1); exit 1; }; }
23323  fi
23324
23325 { echo "$as_me:$LINENO: checking size of long long int" >&5
23326 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23327     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23328   echo $ECHO_N "(cached) $ECHO_C" >&6
23329 else
23330   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23331    cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 #include "confdefs.h"
23338    #include <sys/types.h>
23339
23340
23341 int
23342 main ()
23343 {
23344 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23345   ;
23346   return 0;
23347 }
23348 _ACEOF
23349 rm -f conftest.$ac_objext
23350 if { (ac_try="$ac_compile"
23351 case "(($ac_try" in
23352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353   *) ac_try_echo=$ac_try;;
23354 esac
23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356   (eval "$ac_compile") 2>conftest.er1
23357   ac_status=$?
23358   grep -v '^ *+' conftest.er1 >conftest.err
23359   rm -f conftest.er1
23360   cat conftest.err >&5
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } && {
23363          test -z "$ac_c_werror_flag" ||
23364          test ! -s conftest.err
23365        } && test -s conftest.$ac_objext; then
23366   ac_cv_sizeof_long_long_int=$ac_size
23367 else
23368   echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23370
23371
23372 fi
23373
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23376   done
23377
23378 fi
23379
23380
23381 unspecif=$ac_cv_sizeof_long_long_int
23382 if test x$unspecif = x ; then
23383   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23384 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23385    { (exit 1); exit 1; }; }
23386 fi
23387
23388     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23389   echo $ECHO_N "(cached) $ECHO_C" >&6
23390 else
23391   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23392    cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398 #include "confdefs.h"
23399    #include <sys/types.h>
23400
23401
23402 int
23403 main ()
23404 {
23405 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23406   ;
23407   return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest.$ac_objext
23411 if { (ac_try="$ac_compile"
23412 case "(($ac_try" in
23413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414   *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417   (eval "$ac_compile") 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && {
23424          test -z "$ac_c_werror_flag" ||
23425          test ! -s conftest.err
23426        } && test -s conftest.$ac_objext; then
23427   ac_cv_sizeof_signed_long_long_int=$ac_size
23428 else
23429   echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432
23433 fi
23434
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23437   done
23438
23439 fi
23440
23441
23442 signed=$ac_cv_sizeof_signed_long_long_int
23443 if test x$signed = x ; then
23444   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23445 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23446    { (exit 1); exit 1; }; }
23447 fi
23448 if test x$unspecif != x$signed ; then
23449   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23450 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23451    { (exit 1); exit 1; }; }
23452 fi
23453
23454     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23455   echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23458    cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464 #include "confdefs.h"
23465    #include <sys/types.h>
23466
23467
23468 int
23469 main ()
23470 {
23471 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23472   ;
23473   return 0;
23474 }
23475 _ACEOF
23476 rm -f conftest.$ac_objext
23477 if { (ac_try="$ac_compile"
23478 case "(($ac_try" in
23479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480   *) ac_try_echo=$ac_try;;
23481 esac
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483   (eval "$ac_compile") 2>conftest.er1
23484   ac_status=$?
23485   grep -v '^ *+' conftest.er1 >conftest.err
23486   rm -f conftest.er1
23487   cat conftest.err >&5
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); } && {
23490          test -z "$ac_c_werror_flag" ||
23491          test ! -s conftest.err
23492        } && test -s conftest.$ac_objext; then
23493   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23494 else
23495   echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498
23499 fi
23500
23501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23502    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23503   done
23504
23505 fi
23506
23507
23508 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23509 if test x$unsigned = x ; then
23510   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23511 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23512    { (exit 1); exit 1; }; }
23513 fi
23514 if test x$unsigned != x$signed ; then
23515   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23516 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23517    { (exit 1); exit 1; }; }
23518 fi
23519
23520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23521 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23522          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23523 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23524
23525  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23529    cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535 #include "confdefs.h"
23536      #include <sys/types.h>
23537      struct s { char c; long long int i; };
23538
23539 int
23540 main ()
23541 {
23542 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 rm -f conftest.$ac_objext
23548 if { (ac_try="$ac_compile"
23549 case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554   (eval "$ac_compile") 2>conftest.er1
23555   ac_status=$?
23556   grep -v '^ *+' conftest.er1 >conftest.err
23557   rm -f conftest.er1
23558   cat conftest.err >&5
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); } && {
23561          test -z "$ac_c_werror_flag" ||
23562          test ! -s conftest.err
23563        } && test -s conftest.$ac_objext; then
23564   ac_cv_struct_boundary_long_long_int=$ac_size
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569
23570 fi
23571
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23574   done
23575
23576 fi
23577
23578  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23579 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23580  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23581    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23582 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23583    { (exit 1); exit 1; }; }
23584  fi
23585
23586
23587     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23588 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23589
23590  if test "${ac_cv_struct_boundary_float+set}" = set; then
23591   echo $ECHO_N "(cached) $ECHO_C" >&6
23592 else
23593   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23594    cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h.  */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h.  */
23600 #include "confdefs.h"
23601      #include <sys/types.h>
23602      struct s { char c; float i; };
23603
23604 int
23605 main ()
23606 {
23607 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616   *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619   (eval "$ac_compile") 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } && {
23626          test -z "$ac_c_werror_flag" ||
23627          test ! -s conftest.err
23628        } && test -s conftest.$ac_objext; then
23629   ac_cv_struct_boundary_float=$ac_size
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634
23635 fi
23636
23637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23639   done
23640
23641 fi
23642
23643  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23644 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23645  if test x$ac_cv_struct_boundary_float = x ; then
23646    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23647 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23648    { (exit 1); exit 1; }; }
23649  fi
23650                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23651 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23652
23653  if test "${ac_cv_struct_boundary_double+set}" = set; then
23654   echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23657    cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663 #include "confdefs.h"
23664      #include <sys/types.h>
23665      struct s { char c; double i; };
23666
23667 int
23668 main ()
23669 {
23670 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23671   ;
23672   return 0;
23673 }
23674 _ACEOF
23675 rm -f conftest.$ac_objext
23676 if { (ac_try="$ac_compile"
23677 case "(($ac_try" in
23678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679   *) ac_try_echo=$ac_try;;
23680 esac
23681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23682   (eval "$ac_compile") 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } && {
23689          test -z "$ac_c_werror_flag" ||
23690          test ! -s conftest.err
23691        } && test -s conftest.$ac_objext; then
23692   ac_cv_struct_boundary_double=$ac_size
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697
23698 fi
23699
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23702   done
23703
23704 fi
23705
23706  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23707 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23708  if test x$ac_cv_struct_boundary_double = x ; then
23709    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23710 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23711    { (exit 1); exit 1; }; }
23712  fi
23713
23714
23715 { echo "$as_me:$LINENO: checking size of void *" >&5
23716 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23717     if test "${ac_cv_sizeof_void_p+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23721    cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h.  */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h.  */
23727 #include "confdefs.h"
23728    #include <sys/types.h>
23729
23730
23731 int
23732 main ()
23733 {
23734 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23735   ;
23736   return 0;
23737 }
23738 _ACEOF
23739 rm -f conftest.$ac_objext
23740 if { (ac_try="$ac_compile"
23741 case "(($ac_try" in
23742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23743   *) ac_try_echo=$ac_try;;
23744 esac
23745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23746   (eval "$ac_compile") 2>conftest.er1
23747   ac_status=$?
23748   grep -v '^ *+' conftest.er1 >conftest.err
23749   rm -f conftest.er1
23750   cat conftest.err >&5
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } && {
23753          test -z "$ac_c_werror_flag" ||
23754          test ! -s conftest.err
23755        } && test -s conftest.$ac_objext; then
23756   ac_cv_sizeof_void_p=$ac_size
23757 else
23758   echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761
23762 fi
23763
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23766   done
23767
23768 fi
23769
23770
23771 if test x$ac_cv_sizeof_void_p = x ; then
23772   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23773 echo "$as_me: error: cannot determine a size for void *" >&2;}
23774    { (exit 1); exit 1; }; }
23775 fi
23776 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23777 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23778                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23779 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23780
23781  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23782   echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23785    cat >conftest.$ac_ext <<_ACEOF
23786 /* confdefs.h.  */
23787 _ACEOF
23788 cat confdefs.h >>conftest.$ac_ext
23789 cat >>conftest.$ac_ext <<_ACEOF
23790 /* end confdefs.h.  */
23791 #include "confdefs.h"
23792      #include <sys/types.h>
23793      struct s { char c; void * i; };
23794
23795 int
23796 main ()
23797 {
23798 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23799   ;
23800   return 0;
23801 }
23802 _ACEOF
23803 rm -f conftest.$ac_objext
23804 if { (ac_try="$ac_compile"
23805 case "(($ac_try" in
23806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807   *) ac_try_echo=$ac_try;;
23808 esac
23809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23810   (eval "$ac_compile") 2>conftest.er1
23811   ac_status=$?
23812   grep -v '^ *+' conftest.er1 >conftest.err
23813   rm -f conftest.er1
23814   cat conftest.err >&5
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); } && {
23817          test -z "$ac_c_werror_flag" ||
23818          test ! -s conftest.err
23819        } && test -s conftest.$ac_objext; then
23820   ac_cv_struct_boundary_void_p=$ac_size
23821 else
23822   echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825
23826 fi
23827
23828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23830   done
23831
23832 fi
23833
23834  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23835 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23836  if test x$ac_cv_struct_boundary_void_p = x ; then
23837    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23838 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23839    { (exit 1); exit 1; }; }
23840  fi
23841
23842 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23843 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23844     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23845   echo $ECHO_N "(cached) $ECHO_C" >&6
23846 else
23847   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23848    cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h.  */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h.  */
23854 #include "confdefs.h"
23855    #include <sys/types.h>
23856
23857
23858 int
23859 main ()
23860 {
23861 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23862   ;
23863   return 0;
23864 }
23865 _ACEOF
23866 rm -f conftest.$ac_objext
23867 if { (ac_try="$ac_compile"
23868 case "(($ac_try" in
23869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870   *) ac_try_echo=$ac_try;;
23871 esac
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873   (eval "$ac_compile") 2>conftest.er1
23874   ac_status=$?
23875   grep -v '^ *+' conftest.er1 >conftest.err
23876   rm -f conftest.er1
23877   cat conftest.err >&5
23878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879   (exit $ac_status); } && {
23880          test -z "$ac_c_werror_flag" ||
23881          test ! -s conftest.err
23882        } && test -s conftest.$ac_objext; then
23883   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23884 else
23885   echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23887
23888
23889 fi
23890
23891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23893   done
23894
23895 fi
23896
23897
23898 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23899   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23900 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23901    { (exit 1); exit 1; }; }
23902 fi
23903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23904 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23905
23906
23907
23908 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23909 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23910 if test x$endian = x1 ; then
23911   trace_endian=B
23912 else
23913   trace_endian=l
23914 fi
23915 gras_arch=unknown
23916 trace="$trace_endian"
23917
23918 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23919
23920 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23921 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23922 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23923 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23924
23925 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23926 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23927
23928 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23929
23930 # sizeof float/double are not tested since IEEE 754 is assumed.
23931 # Check README.IEEE for rational.
23932
23933 # The numbers after the _ in the arch name are the maximal packing boundary.
23934 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23935 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23936 case $trace in
23937   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;;
23938   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;;
23939   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;;
23940   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;;
23941
23942   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;;
23943
23944   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;;
23945   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;;
23946   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;;
23947   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;;
23948
23949   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;;
23950   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;;
23951 esac
23952 if test x$gras_arch = xunknown ; then
23953   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23954 echo "${ECHO_T}damnit ($trace)" >&6; }
23955   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23956 Please report this architecture trace ($trace) and what it corresponds to." >&5
23957 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23958 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23959    { (exit 1); exit 1; }; }
23960 fi
23961 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23962
23963 cat >>confdefs.h <<_ACEOF
23964 #define GRAS_THISARCH $gras_arch
23965 _ACEOF
23966
23967 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23968 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23969
23970  if test "$gras_size" = 32; then
23971   GRAS_ARCH_32_BITS_TRUE=
23972   GRAS_ARCH_32_BITS_FALSE='#'
23973 else
23974   GRAS_ARCH_32_BITS_TRUE='#'
23975   GRAS_ARCH_32_BITS_FALSE=
23976 fi
23977
23978
23979 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23980 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23981 ac_cv_sizeof_max=0
23982 for s in $ac_cv_sizeof_char \
23983          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23984          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23985          4 8; do
23986
23987   if test $ac_cv_sizeof_max -lt $s ; then
23988     ac_cv_sizeof_max=$s
23989   fi
23990 done
23991 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23992 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23993
23994 cat >>confdefs.h <<_ACEOF
23995 #define SIZEOF_MAX $ac_cv_sizeof_max
23996 _ACEOF
23997
23998
23999
24000 # Check architecture signature end
24001   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24002 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24003    cat >conftest.$ac_ext <<_ACEOF
24004 /* confdefs.h.  */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h.  */
24009 #include "confdefs.h"
24010         #include <sys/types.h>
24011         #include <stddef.h> /* offsetof() */
24012         struct s {char c; double d;};
24013
24014 int
24015 main ()
24016 {
24017 switch (0)
24018         case 0:
24019         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24020
24021   ;
24022   return 0;
24023 }
24024 _ACEOF
24025 rm -f conftest.$ac_objext
24026 if { (ac_try="$ac_compile"
24027 case "(($ac_try" in
24028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029   *) ac_try_echo=$ac_try;;
24030 esac
24031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24032   (eval "$ac_compile") 2>conftest.er1
24033   ac_status=$?
24034   grep -v '^ *+' conftest.er1 >conftest.err
24035   rm -f conftest.er1
24036   cat conftest.err >&5
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); } && {
24039          test -z "$ac_c_werror_flag" ||
24040          test ! -s conftest.err
24041        } && test -s conftest.$ac_objext; then
24042   gras_struct_packed=yes
24043 else
24044   echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24046
24047         gras_struct_packed=no
24048 fi
24049
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051
24052    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24053 echo "${ECHO_T}$gras_struct_packed" >&6; }
24054    if test x$gras_struct_packed = "xyes" ; then
24055      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24056 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24057    { (exit 1); exit 1; }; }
24058    fi
24059
24060    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24061 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24062    cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068 #include "confdefs.h"
24069         #include <sys/types.h>
24070         #include <stddef.h> /* offsetof() */
24071         struct s {double d; int i; char c;};
24072
24073 int
24074 main ()
24075 {
24076 switch (0)
24077         case 0:
24078         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24079
24080   ;
24081   return 0;
24082 }
24083 _ACEOF
24084 rm -f conftest.$ac_objext
24085 if { (ac_try="$ac_compile"
24086 case "(($ac_try" in
24087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088   *) ac_try_echo=$ac_try;;
24089 esac
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091   (eval "$ac_compile") 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } && {
24098          test -z "$ac_c_werror_flag" ||
24099          test ! -s conftest.err
24100        } && test -s conftest.$ac_objext; then
24101   gras_struct_compact=yes
24102 else
24103   echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24105
24106         gras_struct_compact=no
24107 fi
24108
24109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24110
24111    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24112 echo "${ECHO_T}$gras_struct_compact" >&6; }
24113
24114    if test x$gras_struct_compact != xyes ; then
24115      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24116 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24117    { (exit 1); exit 1; }; }
24118    fi
24119
24120 cat >>confdefs.h <<_ACEOF
24121 #define GRAS_STRUCT_COMPACT 1
24122 _ACEOF
24123
24124    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24125 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24126
24127    cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 #include "confdefs.h"
24134       #include <sys/types.h>
24135         #include <stddef.h> /* offsetof() */
24136         struct s { double d; int i; char c[6]; };
24137
24138 int
24139 main ()
24140 {
24141 switch (0)
24142       case 0:
24143       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24144
24145   ;
24146   return 0;
24147 }
24148 _ACEOF
24149 rm -f conftest.$ac_objext
24150 if { (ac_try="$ac_compile"
24151 case "(($ac_try" in
24152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153   *) ac_try_echo=$ac_try;;
24154 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156   (eval "$ac_compile") 2>conftest.er1
24157   ac_status=$?
24158   grep -v '^ *+' conftest.er1 >conftest.err
24159   rm -f conftest.er1
24160   cat conftest.err >&5
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } && {
24163          test -z "$ac_c_werror_flag" ||
24164          test ! -s conftest.err
24165        } && test -s conftest.$ac_objext; then
24166   gras_array_straddle_struct=yes
24167 else
24168   echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171         gras_array_straddle_struct=no
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175
24176    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24177 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24178
24179    if test x$gras_array_straddle_struct = xyes ; then
24180
24181 cat >>confdefs.h <<_ACEOF
24182 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24183 _ACEOF
24184
24185    else
24186      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24187 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24188    { (exit 1); exit 1; }; }
24189    fi
24190
24191
24192
24193
24194
24195   { echo "$as_me:$LINENO: result: " >&5
24196 echo "${ECHO_T}" >&6; }
24197   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24198 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24199
24200
24201
24202
24203 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24204 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24205 if test "${ac_cv_check_mcsc+set}" = set; then
24206   echo $ECHO_N "(cached) $ECHO_C" >&6
24207 else
24208
24209 if test "$cross_compiling" = yes; then
24210   ac_cv_check_mcsc=no
24211
24212 else
24213   cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h.  */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h.  */
24219
24220
24221 #include <stdio.h>
24222 #include <stdlib.h>
24223 #include <ucontext.h>
24224
24225 ucontext_t uc_child;
24226 ucontext_t uc_main;
24227
24228 void child(void *arg)
24229 {
24230     if (arg != (void *)12345)
24231         exit(1);
24232     if (swapcontext(&uc_child, &uc_main) != 0)
24233         exit(2);
24234 }
24235
24236 int main(int argc, char *argv[])
24237 {
24238     FILE *fp;
24239     void *stack;
24240
24241     /* the default is that it fails */
24242     if ((fp = fopen("conftestval", "w")) == NULL)
24243         exit(3);
24244     fprintf(fp, "no\n");
24245     fclose(fp);
24246
24247     /* configure a child user-space context */
24248     if ((stack = malloc(64*1024)) == NULL)
24249         exit(4);
24250     if (getcontext(&uc_child) != 0)
24251         exit(5);
24252     uc_child.uc_link = NULL;
24253     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24254     uc_child.uc_stack.ss_size = 32*1024;
24255     uc_child.uc_stack.ss_flags = 0;
24256     makecontext(&uc_child, child, 2, (void *)12345);
24257
24258     /* switch into the user context */
24259     if (swapcontext(&uc_main, &uc_child) != 0)
24260         exit(6);
24261
24262     /* Fine, child came home */
24263     if ((fp = fopen("conftestval", "w")) == NULL)
24264         exit(7);
24265     fprintf(fp, "yes\n");
24266     fclose(fp);
24267
24268     /* die successfully */
24269     exit(0);
24270 }
24271
24272 _ACEOF
24273 rm -f conftest$ac_exeext
24274 if { (ac_try="$ac_link"
24275 case "(($ac_try" in
24276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277   *) ac_try_echo=$ac_try;;
24278 esac
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280   (eval "$ac_link") 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24284   { (case "(($ac_try" in
24285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286   *) ac_try_echo=$ac_try;;
24287 esac
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289   (eval "$ac_try") 2>&5
24290   ac_status=$?
24291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292   (exit $ac_status); }; }; then
24293   ac_cv_check_mcsc=`cat conftestval`
24294 else
24295   echo "$as_me: program exited with status $ac_status" >&5
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299 ( exit $ac_status )
24300 ac_cv_check_mcsc=no
24301 fi
24302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24303 fi
24304
24305
24306 fi
24307 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24308 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24309 if test ".$ac_cv_check_mcsc" = .yes; then
24310     mcsc=yes
24311 else
24312     mcsc=no
24313 fi
24314
24315
24316
24317 for ac_header in pthread.h
24318 do
24319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24324   echo $ECHO_N "(cached) $ECHO_C" >&6
24325 fi
24326 ac_res=`eval echo '${'$as_ac_Header'}'`
24327                { echo "$as_me:$LINENO: result: $ac_res" >&5
24328 echo "${ECHO_T}$ac_res" >&6; }
24329 else
24330   # Is the header compilable?
24331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24333 cat >conftest.$ac_ext <<_ACEOF
24334 /* confdefs.h.  */
24335 _ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h.  */
24339 $ac_includes_default
24340 #include <$ac_header>
24341 _ACEOF
24342 rm -f conftest.$ac_objext
24343 if { (ac_try="$ac_compile"
24344 case "(($ac_try" in
24345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346   *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349   (eval "$ac_compile") 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && {
24356          test -z "$ac_c_werror_flag" ||
24357          test ! -s conftest.err
24358        } && test -s conftest.$ac_objext; then
24359   ac_header_compiler=yes
24360 else
24361   echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364         ac_header_compiler=no
24365 fi
24366
24367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24369 echo "${ECHO_T}$ac_header_compiler" >&6; }
24370
24371 # Is the header present?
24372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24374 cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380 #include <$ac_header>
24381 _ACEOF
24382 if { (ac_try="$ac_cpp conftest.$ac_ext"
24383 case "(($ac_try" in
24384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385   *) ac_try_echo=$ac_try;;
24386 esac
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24389   ac_status=$?
24390   grep -v '^ *+' conftest.er1 >conftest.err
24391   rm -f conftest.er1
24392   cat conftest.err >&5
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } >/dev/null && {
24395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24396          test ! -s conftest.err
24397        }; then
24398   ac_header_preproc=yes
24399 else
24400   echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24402
24403   ac_header_preproc=no
24404 fi
24405
24406 rm -f conftest.err conftest.$ac_ext
24407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24408 echo "${ECHO_T}$ac_header_preproc" >&6; }
24409
24410 # So?  What about this header?
24411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24412   yes:no: )
24413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24417     ac_header_preproc=yes
24418     ;;
24419   no:yes:* )
24420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24432     ( cat <<\_ASBOX
24433 ## -------------------------------------------------- ##
24434 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24435 ## -------------------------------------------------- ##
24436 _ASBOX
24437      ) | sed "s/^/$as_me: WARNING:     /" >&2
24438     ;;
24439 esac
24440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24443   echo $ECHO_N "(cached) $ECHO_C" >&6
24444 else
24445   eval "$as_ac_Header=\$ac_header_preproc"
24446 fi
24447 ac_res=`eval echo '${'$as_ac_Header'}'`
24448                { echo "$as_me:$LINENO: result: $ac_res" >&5
24449 echo "${ECHO_T}$ac_res" >&6; }
24450
24451 fi
24452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24453   cat >>confdefs.h <<_ACEOF
24454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24455 _ACEOF
24456
24457 fi
24458
24459 done
24460
24461 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24462 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24463 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24464   echo $ECHO_N "(cached) $ECHO_C" >&6
24465 else
24466   ac_check_lib_save_LIBS=$LIBS
24467 LIBS="-lpthread  $LIBS"
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h.  */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h.  */
24474
24475 /* Override any GCC internal prototype to avoid an error.
24476    Use char because int might match the return type of a GCC
24477    builtin and then its argument prototype would still apply.  */
24478 #ifdef __cplusplus
24479 extern "C"
24480 #endif
24481 char pthread_create ();
24482 int
24483 main ()
24484 {
24485 return pthread_create ();
24486   ;
24487   return 0;
24488 }
24489 _ACEOF
24490 rm -f conftest.$ac_objext conftest$ac_exeext
24491 if { (ac_try="$ac_link"
24492 case "(($ac_try" in
24493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494   *) ac_try_echo=$ac_try;;
24495 esac
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497   (eval "$ac_link") 2>conftest.er1
24498   ac_status=$?
24499   grep -v '^ *+' conftest.er1 >conftest.err
24500   rm -f conftest.er1
24501   cat conftest.err >&5
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); } && {
24504          test -z "$ac_c_werror_flag" ||
24505          test ! -s conftest.err
24506        } && test -s conftest$ac_exeext &&
24507        $as_test_x conftest$ac_exeext; then
24508   ac_cv_lib_pthread_pthread_create=yes
24509 else
24510   echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513         ac_cv_lib_pthread_pthread_create=no
24514 fi
24515
24516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24517       conftest$ac_exeext conftest.$ac_ext
24518 LIBS=$ac_check_lib_save_LIBS
24519 fi
24520 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24521 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24522 if test $ac_cv_lib_pthread_pthread_create = yes; then
24523   pthread=yes
24524 else
24525   pthread=no
24526 fi
24527
24528
24529 if test x$pthread = xyes ; then
24530   { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
24531 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
24532 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   ac_check_lib_save_LIBS=$LIBS
24536 LIBS="-lpthread  $LIBS"
24537 cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543
24544 /* Override any GCC internal prototype to avoid an error.
24545    Use char because int might match the return type of a GCC
24546    builtin and then its argument prototype would still apply.  */
24547 #ifdef __cplusplus
24548 extern "C"
24549 #endif
24550 char sem_init ();
24551 int
24552 main ()
24553 {
24554 return sem_init ();
24555   ;
24556   return 0;
24557 }
24558 _ACEOF
24559 rm -f conftest.$ac_objext conftest$ac_exeext
24560 if { (ac_try="$ac_link"
24561 case "(($ac_try" in
24562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563   *) ac_try_echo=$ac_try;;
24564 esac
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566   (eval "$ac_link") 2>conftest.er1
24567   ac_status=$?
24568   grep -v '^ *+' conftest.er1 >conftest.err
24569   rm -f conftest.er1
24570   cat conftest.err >&5
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } && {
24573          test -z "$ac_c_werror_flag" ||
24574          test ! -s conftest.err
24575        } && test -s conftest$ac_exeext &&
24576        $as_test_x conftest$ac_exeext; then
24577   ac_cv_lib_pthread_sem_init=yes
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582         ac_cv_lib_pthread_sem_init=no
24583 fi
24584
24585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24586       conftest$ac_exeext conftest.$ac_ext
24587 LIBS=$ac_check_lib_save_LIBS
24588 fi
24589 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
24590 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
24591 if test $ac_cv_lib_pthread_sem_init = yes; then
24592   HAVE_SEM_INIT=yes
24593 else
24594   HAVE_SEM_INIT=no
24595 fi
24596
24597   if test ${HAVE_SEM_INIT} = yes ; then
24598      { echo "$as_me:$LINENO: checking if sem_init is compilable" >&5
24599 echo $ECHO_N "checking if sem_init is compilable... $ECHO_C" >&6; }
24600      cat >conftest.$ac_ext <<_ACEOF
24601 /* confdefs.h.  */
24602 _ACEOF
24603 cat confdefs.h >>conftest.$ac_ext
24604 cat >>conftest.$ac_ext <<_ACEOF
24605 /* end confdefs.h.  */
24606 #include <semaphore.h>
24607 int
24608 main ()
24609 {
24610 sem_t s; sem_init(&s);
24611   ;
24612   return 0;
24613 }
24614 _ACEOF
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_compile") 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && {
24629          test -z "$ac_c_werror_flag" ||
24630          test ! -s conftest.err
24631        } && test -s conftest.$ac_objext; then
24632   HAVE_SEM_INIT=yes
24633 else
24634   echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24636
24637         HAVE_SEM_INIT=no
24638 fi
24639
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641      if test ${HAVE_SEM_INIT} = yes ; then
24642
24643 cat >>confdefs.h <<\_ACEOF
24644 #define HAVE_SEM_INIT 1
24645 _ACEOF
24646
24647         { echo "$as_me:$LINENO: result: yes" >&5
24648 echo "${ECHO_T}yes" >&6; }
24649      else
24650         { echo "$as_me:$LINENO: result: no" >&5
24651 echo "${ECHO_T}no" >&6; }
24652      fi
24653   fi
24654   { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
24655 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
24656 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
24657   echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659   ac_check_lib_save_LIBS=$LIBS
24660 LIBS="-lpthread  $LIBS"
24661 cat >conftest.$ac_ext <<_ACEOF
24662 /* confdefs.h.  */
24663 _ACEOF
24664 cat confdefs.h >>conftest.$ac_ext
24665 cat >>conftest.$ac_ext <<_ACEOF
24666 /* end confdefs.h.  */
24667
24668 /* Override any GCC internal prototype to avoid an error.
24669    Use char because int might match the return type of a GCC
24670    builtin and then its argument prototype would still apply.  */
24671 #ifdef __cplusplus
24672 extern "C"
24673 #endif
24674 char sem_timedwait ();
24675 int
24676 main ()
24677 {
24678 return sem_timedwait ();
24679   ;
24680   return 0;
24681 }
24682 _ACEOF
24683 rm -f conftest.$ac_objext conftest$ac_exeext
24684 if { (ac_try="$ac_link"
24685 case "(($ac_try" in
24686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687   *) ac_try_echo=$ac_try;;
24688 esac
24689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24690   (eval "$ac_link") 2>conftest.er1
24691   ac_status=$?
24692   grep -v '^ *+' conftest.er1 >conftest.err
24693   rm -f conftest.er1
24694   cat conftest.err >&5
24695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696   (exit $ac_status); } && {
24697          test -z "$ac_c_werror_flag" ||
24698          test ! -s conftest.err
24699        } && test -s conftest$ac_exeext &&
24700        $as_test_x conftest$ac_exeext; then
24701   ac_cv_lib_pthread_sem_timedwait=yes
24702 else
24703   echo "$as_me: failed program was:" >&5
24704 sed 's/^/| /' conftest.$ac_ext >&5
24705
24706         ac_cv_lib_pthread_sem_timedwait=no
24707 fi
24708
24709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24710       conftest$ac_exeext conftest.$ac_ext
24711 LIBS=$ac_check_lib_save_LIBS
24712 fi
24713 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
24714 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
24715 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
24716   HAVE_SEM_TIMEDWAIT=yes
24717 else
24718   HAVE_SEM_TIMEDWAIT=no
24719 fi
24720
24721   if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
24722      { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
24723 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
24724      cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730 #include <semaphore.h>
24731 int
24732 main ()
24733 {
24734 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
24735   ;
24736   return 0;
24737 }
24738 _ACEOF
24739 rm -f conftest.$ac_objext
24740 if { (ac_try="$ac_compile"
24741 case "(($ac_try" in
24742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743   *) ac_try_echo=$ac_try;;
24744 esac
24745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24746   (eval "$ac_compile") 2>conftest.er1
24747   ac_status=$?
24748   grep -v '^ *+' conftest.er1 >conftest.err
24749   rm -f conftest.er1
24750   cat conftest.err >&5
24751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752   (exit $ac_status); } && {
24753          test -z "$ac_c_werror_flag" ||
24754          test ! -s conftest.err
24755        } && test -s conftest.$ac_objext; then
24756   HAVE_SEM_TIMEDWAIT=yes
24757 else
24758   echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24760
24761         HAVE_SEM_TIMEDWAIT=no
24762 fi
24763
24764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24765      if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
24766
24767 cat >>confdefs.h <<\_ACEOF
24768 #define HAVE_SEM_TIMEDWAIT 1
24769 _ACEOF
24770
24771         { echo "$as_me:$LINENO: result: yes" >&5
24772 echo "${ECHO_T}yes" >&6; }
24773      else
24774         { echo "$as_me:$LINENO: result: no" >&5
24775 echo "${ECHO_T}no" >&6; }
24776      fi
24777   fi
24778
24779   { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
24780 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6; }
24781 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
24782   echo $ECHO_N "(cached) $ECHO_C" >&6
24783 else
24784   ac_check_lib_save_LIBS=$LIBS
24785 LIBS="-lpthread  $LIBS"
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h.  */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h.  */
24792
24793 /* Override any GCC internal prototype to avoid an error.
24794    Use char because int might match the return type of a GCC
24795    builtin and then its argument prototype would still apply.  */
24796 #ifdef __cplusplus
24797 extern "C"
24798 #endif
24799 char pthread_mutex_timedlock ();
24800 int
24801 main ()
24802 {
24803 return pthread_mutex_timedlock ();
24804   ;
24805   return 0;
24806 }
24807 _ACEOF
24808 rm -f conftest.$ac_objext conftest$ac_exeext
24809 if { (ac_try="$ac_link"
24810 case "(($ac_try" in
24811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812   *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815   (eval "$ac_link") 2>conftest.er1
24816   ac_status=$?
24817   grep -v '^ *+' conftest.er1 >conftest.err
24818   rm -f conftest.er1
24819   cat conftest.err >&5
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && {
24822          test -z "$ac_c_werror_flag" ||
24823          test ! -s conftest.err
24824        } && test -s conftest$ac_exeext &&
24825        $as_test_x conftest$ac_exeext; then
24826   ac_cv_lib_pthread_pthread_mutex_timedlock=yes
24827 else
24828   echo "$as_me: failed program was:" >&5
24829 sed 's/^/| /' conftest.$ac_ext >&5
24830
24831         ac_cv_lib_pthread_pthread_mutex_timedlock=no
24832 fi
24833
24834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24835       conftest$ac_exeext conftest.$ac_ext
24836 LIBS=$ac_check_lib_save_LIBS
24837 fi
24838 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
24839 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6; }
24840 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
24841   HAVE_MUTEX_TIMEDLOCK=yes
24842 else
24843   HAVE_MUTEX_TIMEDLOCK=no
24844 fi
24845
24846   if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
24847      { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is compilable" >&5
24848 echo $ECHO_N "checking if pthread_mutex_timedlock is compilable... $ECHO_C" >&6; }
24849      cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h.  */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h.  */
24855 #include <pthread.h>
24856 int
24857 main ()
24858 {
24859 pthread_mutex_t s; const struct timespec t; sem_timedlock(&s, &t);
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868   *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871   (eval "$ac_compile") 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } && {
24878          test -z "$ac_c_werror_flag" ||
24879          test ! -s conftest.err
24880        } && test -s conftest.$ac_objext; then
24881   HAVE_MUTEX_TIMEDLOCK=yes
24882 else
24883   echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886         HAVE_MUTEX_TIMEDLOCK=no
24887 fi
24888
24889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24890      if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
24891
24892 cat >>confdefs.h <<\_ACEOF
24893 #define HAVE_MUTEX_TIMEDLOCK 1
24894 _ACEOF
24895
24896         { echo "$as_me:$LINENO: result: yes" >&5
24897 echo "${ECHO_T}yes" >&6; }
24898      else
24899         { echo "$as_me:$LINENO: result: no" >&5
24900 echo "${ECHO_T}no" >&6; }
24901      fi
24902   fi
24903 fi
24904
24905
24906 if test ".$mcsc" = .yes; then
24907    # ucontext found
24908    mcsc=yes
24909 elif test ".$pthread" = .yes; then
24910    # ucontext not found, but pthread found
24911    pthread=yes
24912 else
24913     ac_header=windows.h
24914     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24915     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24916       windows_context=yes
24917     else
24918       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24919 echo "$as_me: error: no appropriate backend found" >&2;}
24920    { (exit 1); exit 1; }; }
24921     fi
24922 fi
24923  if test x$windows_context = xyes; then
24924   IS_WINDOWS_TRUE=
24925   IS_WINDOWS_FALSE='#'
24926 else
24927   IS_WINDOWS_TRUE='#'
24928   IS_WINDOWS_FALSE=
24929 fi
24930
24931
24932
24933
24934 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24935 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24936
24937
24938 # Check whether --with-pthread was given.
24939 if test "${with_pthread+set}" = set; then
24940   withval=$with_pthread; with_context=pthread
24941 fi
24942
24943
24944 # Check whether --with-pthread was given.
24945 if test "${with_pthread+set}" = set; then
24946   withval=$with_pthread; with_context=pthread
24947 fi
24948
24949
24950
24951 # Check whether --with-context was given.
24952 if test "${with_context+set}" = set; then
24953   withval=$with_context;
24954 else
24955   with_context=auto
24956 fi
24957
24958
24959 if test "x$with_context$mcsc" = "xucontextno" ; then
24960   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24961 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24962    { (exit 77); exit 77; }; }
24963 fi
24964
24965 case $with_context in
24966  ucontext) ;;
24967  pthread) ;;
24968  pthreads) ;;
24969  windows) ;;
24970  auto) with_context=ucontext;;
24971  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24972 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24973    { (exit 1); exit 1; }; } ;;
24974 esac
24975
24976 if test "x$with_context" = "xucontext" ; then
24977   if test ".$mcsc" = .yes; then
24978     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24979 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24980
24981 cat >>confdefs.h <<\_ACEOF
24982 #define CONTEXT_UCONTEXT 1
24983 _ACEOF
24984
24985   else
24986     if test ".$windows_context" = .yes ; then
24987       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24988 echo "${ECHO_T}use windows context portability layer." >&6; }
24989       with_context=windows
24990     else
24991       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24992 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24993       with_context=pthread
24994     fi
24995   fi
24996 fi
24997
24998 if test "x$with_context" = "xpthread"; then
24999   if test x$pthread != xyes ; then # reuse previous checks
25000     { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25001 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25002    { (exit 1); exit 1; }; }
25003   fi
25004
25005 cat >>confdefs.h <<\_ACEOF
25006 #define CONTEXT_THREADS 1
25007 _ACEOF
25008
25009   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25010 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25011 fi
25012  if test "x$with_context" != xucontext; then
25013   CONTEXT_THREADS_TRUE=
25014   CONTEXT_THREADS_FALSE='#'
25015 else
25016   CONTEXT_THREADS_TRUE='#'
25017   CONTEXT_THREADS_FALSE=
25018 fi
25019
25020
25021
25022 if test "x$with_context" = "xucontext" ; then
25023   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25024 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25025 if test "${ac_cv_check_stackgrowth+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028
25029 cross_compiling=no
25030 if test "$cross_compiling" = yes; then
25031   ac_cv_check_stackgrowth=down
25032
25033 else
25034   cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040
25041 #include <stdio.h>
25042 #include <stdlib.h>
25043 static int iterate = 10;
25044 static int growsdown(int *x)
25045 {
25046     auto int y;
25047     y = (x > &y);
25048     if (--iterate > 0)
25049         y = growsdown(&y);
25050     if (y != (x > &y))
25051         exit(1);
25052     return y;
25053 }
25054 int main(int argc, char *argv[])
25055 {
25056     FILE *f;
25057     auto int x;
25058     if ((f = fopen("conftestval", "w")) == NULL)
25059         exit(1);
25060     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25061     fclose(f);
25062     exit(0);
25063 }
25064
25065
25066 _ACEOF
25067 rm -f conftest$ac_exeext
25068 if { (ac_try="$ac_link"
25069 case "(($ac_try" in
25070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071   *) ac_try_echo=$ac_try;;
25072 esac
25073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25074   (eval "$ac_link") 2>&5
25075   ac_status=$?
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25078   { (case "(($ac_try" in
25079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080   *) ac_try_echo=$ac_try;;
25081 esac
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083   (eval "$ac_try") 2>&5
25084   ac_status=$?
25085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); }; }; then
25087   ac_cv_check_stackgrowth=`cat conftestval`
25088 else
25089   echo "$as_me: program exited with status $ac_status" >&5
25090 echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25092
25093 ( exit $ac_status )
25094 ac_cv_check_stackgrowth=down
25095 fi
25096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25097 fi
25098
25099
25100 fi
25101 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25102 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25103 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25104     val="-1"
25105 else
25106     val="+1"
25107 fi
25108
25109 cat >>confdefs.h <<_ACEOF
25110 #define PTH_STACKGROWTH $val
25111 _ACEOF
25112
25113
25114   if test ".$ac_cv_check_stackgrowth" = ".down"; then
25115       PTH_STACK_GROWTH="down"
25116   else
25117       PTH_STACK_GROWTH="up"
25118   fi
25119
25120
25121
25122
25123
25124
25125 for ac_func in makecontext
25126 do
25127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25131   echo $ECHO_N "(cached) $ECHO_C" >&6
25132 else
25133   cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h.  */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h.  */
25139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25141 #define $ac_func innocuous_$ac_func
25142
25143 /* System header to define __stub macros and hopefully few prototypes,
25144     which can conflict with char $ac_func (); below.
25145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25146     <limits.h> exists even on freestanding compilers.  */
25147
25148 #ifdef __STDC__
25149 # include <limits.h>
25150 #else
25151 # include <assert.h>
25152 #endif
25153
25154 #undef $ac_func
25155
25156 /* Override any GCC internal prototype to avoid an error.
25157    Use char because int might match the return type of a GCC
25158    builtin and then its argument prototype would still apply.  */
25159 #ifdef __cplusplus
25160 extern "C"
25161 #endif
25162 char $ac_func ();
25163 /* The GNU C library defines this for functions which it implements
25164     to always fail with ENOSYS.  Some functions are actually named
25165     something starting with __ and the normal name is an alias.  */
25166 #if defined __stub_$ac_func || defined __stub___$ac_func
25167 choke me
25168 #endif
25169
25170 int
25171 main ()
25172 {
25173 return $ac_func ();
25174   ;
25175   return 0;
25176 }
25177 _ACEOF
25178 rm -f conftest.$ac_objext conftest$ac_exeext
25179 if { (ac_try="$ac_link"
25180 case "(($ac_try" in
25181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182   *) ac_try_echo=$ac_try;;
25183 esac
25184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25185   (eval "$ac_link") 2>conftest.er1
25186   ac_status=$?
25187   grep -v '^ *+' conftest.er1 >conftest.err
25188   rm -f conftest.er1
25189   cat conftest.err >&5
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } && {
25192          test -z "$ac_c_werror_flag" ||
25193          test ! -s conftest.err
25194        } && test -s conftest$ac_exeext &&
25195        $as_test_x conftest$ac_exeext; then
25196   eval "$as_ac_var=yes"
25197 else
25198   echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201         eval "$as_ac_var=no"
25202 fi
25203
25204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25205       conftest$ac_exeext conftest.$ac_ext
25206 fi
25207 ac_res=`eval echo '${'$as_ac_var'}'`
25208                { echo "$as_me:$LINENO: result: $ac_res" >&5
25209 echo "${ECHO_T}$ac_res" >&6; }
25210 if test `eval echo '${'$as_ac_var'}'` = yes; then
25211   cat >>confdefs.h <<_ACEOF
25212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25213 _ACEOF
25214
25215 fi
25216 done
25217
25218
25219 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25220 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25221 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25222   echo $ECHO_N "(cached) $ECHO_C" >&6
25223 else
25224
25225 if test ".$ac_cv_func_makecontext" = .no; then
25226         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25227 else
25228         OCFLAGS="$CFLAGS"
25229     CFLAGS="$CFLAGS -DTEST_makecontext"
25230     cross_compiling=no
25231         if test "$cross_compiling" = yes; then
25232
25233 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25234
25235 else
25236   cat >conftest.$ac_ext <<_ACEOF
25237 /* confdefs.h.  */
25238 _ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h.  */
25242
25243 #include <stdio.h>
25244 #include <stdlib.h>
25245 #include <string.h>
25246 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25247 #include <sys/types.h>
25248 #include <signal.h>
25249 #include <unistd.h>
25250 #endif
25251 #if defined(TEST_makecontext)
25252 #include <ucontext.h>
25253 #endif
25254 union alltypes {
25255     long   l;
25256     double d;
25257     void  *vp;
25258     void (*fp)(void);
25259     char  *cp;
25260 };
25261 static volatile char *handler_addr = (char *)0xDEAD;
25262 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25263 static volatile int handler_done = 0;
25264 void handler(int sig)
25265 {
25266     char garbage[1024];
25267     int i;
25268     auto int dummy;
25269     for (i = 0; i < 1024; i++)
25270         garbage[i] = 'X';
25271     handler_addr = (char *)&dummy;
25272     handler_done = 1;
25273     return;
25274 }
25275 #endif
25276 #if defined(TEST_makecontext)
25277 static ucontext_t uc_handler;
25278 static ucontext_t uc_main;
25279 void handler(void)
25280 {
25281     char garbage[1024];
25282     int i;
25283     auto int dummy;
25284     for (i = 0; i < 1024; i++)
25285         garbage[i] = 'X';
25286     handler_addr = (char *)&dummy;
25287     swapcontext(&uc_handler, &uc_main);
25288     return;
25289 }
25290 #endif
25291 int main(int argc, char *argv[])
25292 {
25293     FILE *f;
25294     char *skaddr;
25295     char *skbuf;
25296     int sksize;
25297     char result[1024];
25298     int i;
25299     sksize = 32768;
25300     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25301     if (skbuf == NULL)
25302         exit(1);
25303     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25304         skbuf[i] = 'A';
25305     skaddr = skbuf+sizeof(union alltypes);
25306 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25307     {
25308         struct sigaction sa;
25309 #if defined(TEST_sigstack)
25310         struct sigstack ss;
25311 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25312         stack_t ss;
25313 #else
25314         struct sigaltstack ss;
25315 #endif
25316 #if defined(TEST_sigstack)
25317         ss.ss_sp      = (void *)(skaddr + sksize);
25318         ss.ss_onstack = 0;
25319         if (sigstack(&ss, NULL) < 0)
25320             exit(1);
25321 #elif defined(TEST_sigaltstack)
25322         ss.ss_sp    = (void *)(skaddr + sksize);
25323         ss.ss_size  = sksize;
25324         ss.ss_flags = 0;
25325         if (sigaltstack(&ss, NULL) < 0)
25326             exit(1);
25327 #endif
25328         memset((void *)&sa, 0, sizeof(struct sigaction));
25329         sa.sa_handler = handler;
25330         sa.sa_flags = SA_ONSTACK;
25331         sigemptyset(&sa.sa_mask);
25332         sigaction(SIGUSR1, &sa, NULL);
25333         kill(getpid(), SIGUSR1);
25334         while (!handler_done)
25335             /*nop*/;
25336     }
25337 #endif
25338 #if defined(TEST_makecontext)
25339     {
25340         if (getcontext(&uc_handler) != 0)
25341             exit(1);
25342         uc_handler.uc_link = NULL;
25343         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25344         uc_handler.uc_stack.ss_size  = sksize;
25345         uc_handler.uc_stack.ss_flags = 0;
25346         makecontext(&uc_handler, handler, 1);
25347         swapcontext(&uc_main, &uc_handler);
25348     }
25349 #endif
25350     if (handler_addr == (char *)0xDEAD)
25351         exit(1);
25352     if (handler_addr < skaddr+sksize) {
25353         /* stack was placed into lower area */
25354         if (*(skaddr+sksize) != 'A')
25355              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25356                      sizeof(union alltypes), sizeof(union alltypes));
25357         else
25358              strcpy(result, "(skaddr)+(sksize),(sksize)");
25359     }
25360     else {
25361         /* stack was placed into higher area */
25362         if (*(skaddr+sksize*2) != 'A')
25363             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25364         else
25365             strcpy(result, "(skaddr),(sksize)");
25366     }
25367     if ((f = fopen("conftestval", "w")) == NULL)
25368         exit(1);
25369     fprintf(f, "%s\n", result);
25370     fclose(f);
25371     exit(0);
25372 }
25373
25374 _ACEOF
25375 rm -f conftest$ac_exeext
25376 if { (ac_try="$ac_link"
25377 case "(($ac_try" in
25378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379   *) ac_try_echo=$ac_try;;
25380 esac
25381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25382   (eval "$ac_link") 2>&5
25383   ac_status=$?
25384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25386   { (case "(($ac_try" in
25387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388   *) ac_try_echo=$ac_try;;
25389 esac
25390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25391   (eval "$ac_try") 2>&5
25392   ac_status=$?
25393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); }; }; then
25395
25396 ac_cv_stacksetup_makecontext=`cat conftestval`
25397 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25398
25399 else
25400   echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ( exit $ac_status )
25405
25406 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25407
25408 fi
25409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25410 fi
25411
25412
25413 CFLAGS="$OCFLAGS"
25414
25415 fi
25416 fi
25417 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25418 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25419 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25420 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25421 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25422 { echo "$as_me:$LINENO: result: $type" >&5
25423 echo "${ECHO_T}$type" >&6; }
25424 if test ".$verbose" = .yes; then
25425     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25426 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25427 fi
25428
25429 if test ".$verbose" = .yes; then
25430     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25431 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25432 fi
25433
25434
25435 fi
25436
25437 #########################################
25438 ## Check for libraries extra-dependencies
25439 ##
25440
25441
25442   { echo "$as_me:$LINENO: result: " >&5
25443 echo "${ECHO_T}" >&6; }
25444   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25445 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25446
25447
25448 SIMGRID_DEP=""
25449 SMPI_DEP=""
25450 GRAS_DEP=""
25451
25452 if test xpthread=xyes ; then
25453   # if the pthreads are usable
25454   if test "x$with_context" = "xpthread" ; then
25455     # if we use them to implement the xbt_context
25456     SIMGRID_DEP="-lpthread"
25457   fi
25458   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25459   if test "x$with_context" != "xwindows" ; then
25460     GRAS_DEP="-lpthread"
25461   fi
25462 fi
25463
25464 #########################################
25465 ## Build optional modules (gtnets)
25466 ##
25467 gtnets=no
25468
25469 # Check whether --with-gtnets was given.
25470 if test "${with_gtnets+set}" = set; then
25471   withval=$with_gtnets; gtnets_path="$withval"
25472 else
25473   gtnets_path="no"
25474 fi
25475
25476 if test "x$gtnets_path" = "xno" ; then
25477   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25478 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25479 else
25480   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25481 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25482   { echo "$as_me:$LINENO: checking for gtnets" >&5
25483 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25484   ac_ext=cpp
25485 ac_cpp='$CXXCPP $CPPFLAGS'
25486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25489
25490   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25491   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25492   LDFLAGS_SAV=$LDFLAGS
25493   CPPFLAGS_SAV=$CPPFLAGS
25494   CPPFLAGS+=$GTNETS_CPPFLAGS
25495   LDFLAGS+=$GTNETS_LDFLAGS
25496   cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502  #include <simulator.h>
25503
25504 int
25505 main ()
25506 {
25507 Simulator s; s.RunUntilNextCompletion();
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 rm -f conftest.$ac_objext conftest$ac_exeext
25513 if { (ac_try="$ac_link"
25514 case "(($ac_try" in
25515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516   *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519   (eval "$ac_link") 2>conftest.er1
25520   ac_status=$?
25521   grep -v '^ *+' conftest.er1 >conftest.err
25522   rm -f conftest.er1
25523   cat conftest.err >&5
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } && {
25526          test -z "$ac_cxx_werror_flag" ||
25527          test ! -s conftest.err
25528        } && test -s conftest$ac_exeext &&
25529        $as_test_x conftest$ac_exeext; then
25530   gtnets=yes
25531 else
25532   echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25534
25535         gtnets=no
25536 fi
25537
25538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25539       conftest$ac_exeext conftest.$ac_ext
25540   CPPFLAGS=$CPPFLAGS_SAV
25541   LDFLAGS=$LDFLAGS_SAV
25542   ac_ext=c
25543 ac_cpp='$CPP $CPPFLAGS'
25544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25547
25548
25549   if test "x$gtnets" = xyes ; then
25550     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25551     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25552     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25553 echo "${ECHO_T}Found working gtnets library." >&6; }
25554
25555 cat >>confdefs.h <<\_ACEOF
25556 #define HAVE_GTNETS 1
25557 _ACEOF
25558
25559   else
25560     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25561 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25562   fi
25563 fi
25564  if test "x$gtnets" != xno; then
25565   HAVE_GTNETS_TRUE=
25566   HAVE_GTNETS_FALSE='#'
25567 else
25568   HAVE_GTNETS_TRUE='#'
25569   HAVE_GTNETS_FALSE=
25570 fi
25571
25572
25573 #########################################
25574 ## Build optional modules (csdp)
25575 ##
25576 csdp=no
25577
25578 # Check whether --with-csdp was given.
25579 if test "${with_csdp+set}" = set; then
25580   withval=$with_csdp; csdp_path="$withval"
25581 else
25582   csdp_path="no"
25583 fi
25584
25585 if test "x$csdp_path" = "xno" ; then
25586   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25587 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25588 else
25589   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25590 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25591   { echo "$as_me:$LINENO: checking for csdp" >&5
25592 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25593   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25594   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25595
25596   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25597 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25598 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25599   echo $ECHO_N "(cached) $ECHO_C" >&6
25600 else
25601   ac_check_lib_save_LIBS=$LIBS
25602 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25603 cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h.  */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h.  */
25609
25610 /* Override any GCC internal prototype to avoid an error.
25611    Use char because int might match the return type of a GCC
25612    builtin and then its argument prototype would still apply.  */
25613 #ifdef __cplusplus
25614 extern "C"
25615 #endif
25616 char easy_sdp ();
25617 int
25618 main ()
25619 {
25620 return easy_sdp ();
25621   ;
25622   return 0;
25623 }
25624 _ACEOF
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (ac_try="$ac_link"
25627 case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_link") 2>conftest.er1
25633   ac_status=$?
25634   grep -v '^ *+' conftest.er1 >conftest.err
25635   rm -f conftest.er1
25636   cat conftest.err >&5
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && {
25639          test -z "$ac_c_werror_flag" ||
25640          test ! -s conftest.err
25641        } && test -s conftest$ac_exeext &&
25642        $as_test_x conftest$ac_exeext; then
25643   ac_cv_lib_sdp_easy_sdp=yes
25644 else
25645   echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648         ac_cv_lib_sdp_easy_sdp=no
25649 fi
25650
25651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25652       conftest$ac_exeext conftest.$ac_ext
25653 LIBS=$ac_check_lib_save_LIBS
25654 fi
25655 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25656 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25657 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25658   csdp_lib=yes
25659 else
25660   csdp_lib=no
25661 fi
25662
25663
25664   CPPFLAGS_SAV=$CPPFLAGS
25665   CPPFLAGS+=$CSDP_CPPFLAGS
25666   if test "${ac_cv_header_declarations_h+set}" = set; then
25667   { echo "$as_me:$LINENO: checking for declarations.h" >&5
25668 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25669 if test "${ac_cv_header_declarations_h+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 fi
25672 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25673 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25674 else
25675   # Is the header compilable?
25676 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25677 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h.  */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h.  */
25684 $ac_includes_default
25685 #include <declarations.h>
25686 _ACEOF
25687 rm -f conftest.$ac_objext
25688 if { (ac_try="$ac_compile"
25689 case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694   (eval "$ac_compile") 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } && {
25701          test -z "$ac_c_werror_flag" ||
25702          test ! -s conftest.err
25703        } && test -s conftest.$ac_objext; then
25704   ac_header_compiler=yes
25705 else
25706   echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709         ac_header_compiler=no
25710 fi
25711
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25714 echo "${ECHO_T}$ac_header_compiler" >&6; }
25715
25716 # Is the header present?
25717 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25718 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25719 cat >conftest.$ac_ext <<_ACEOF
25720 /* confdefs.h.  */
25721 _ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h.  */
25725 #include <declarations.h>
25726 _ACEOF
25727 if { (ac_try="$ac_cpp conftest.$ac_ext"
25728 case "(($ac_try" in
25729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730   *) ac_try_echo=$ac_try;;
25731 esac
25732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25734   ac_status=$?
25735   grep -v '^ *+' conftest.er1 >conftest.err
25736   rm -f conftest.er1
25737   cat conftest.err >&5
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); } >/dev/null && {
25740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25741          test ! -s conftest.err
25742        }; then
25743   ac_header_preproc=yes
25744 else
25745   echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25747
25748   ac_header_preproc=no
25749 fi
25750
25751 rm -f conftest.err conftest.$ac_ext
25752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25753 echo "${ECHO_T}$ac_header_preproc" >&6; }
25754
25755 # So?  What about this header?
25756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25757   yes:no: )
25758     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25759 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25761 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25762     ac_header_preproc=yes
25763     ;;
25764   no:yes:* )
25765     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25766 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25767     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
25768 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
25769     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25770 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25771     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
25772 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25773     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25774 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25775     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25776 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25777     ( cat <<\_ASBOX
25778 ## -------------------------------------------------- ##
25779 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25780 ## -------------------------------------------------- ##
25781 _ASBOX
25782      ) | sed "s/^/$as_me: WARNING:     /" >&2
25783     ;;
25784 esac
25785 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25786 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25787 if test "${ac_cv_header_declarations_h+set}" = set; then
25788   echo $ECHO_N "(cached) $ECHO_C" >&6
25789 else
25790   ac_cv_header_declarations_h=$ac_header_preproc
25791 fi
25792 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25793 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25794
25795 fi
25796 if test $ac_cv_header_declarations_h = yes; then
25797   csdp_header=yes
25798 else
25799   csdp_header=no
25800 fi
25801
25802
25803   CPPFLAGS=$CPPFLAGS_SAV
25804
25805
25806
25807   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25808      csdp=yes;
25809   else
25810      csdp=no;
25811   fi
25812   if test "x$csdp" = xyes; then
25813     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25814     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25815     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25816 echo "${ECHO_T}Found working sdp library." >&6; }
25817
25818 cat >>confdefs.h <<\_ACEOF
25819 #define HAVE_SDP 1
25820 _ACEOF
25821
25822   else
25823     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25824 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25825   fi;
25826 fi
25827  if test x$csdp != xno; then
25828   HAVE_SDP_TRUE=
25829   HAVE_SDP_FALSE='#'
25830 else
25831   HAVE_SDP_TRUE='#'
25832   HAVE_SDP_FALSE=
25833 fi
25834
25835
25836
25837
25838
25839 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25840 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25841 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25842   echo $ECHO_N "(cached) $ECHO_C" >&6
25843 else
25844   ac_check_lib_save_LIBS=$LIBS
25845 LIBS="-lnsl  $LIBS"
25846 cat >conftest.$ac_ext <<_ACEOF
25847 /* confdefs.h.  */
25848 _ACEOF
25849 cat confdefs.h >>conftest.$ac_ext
25850 cat >>conftest.$ac_ext <<_ACEOF
25851 /* end confdefs.h.  */
25852
25853 /* Override any GCC internal prototype to avoid an error.
25854    Use char because int might match the return type of a GCC
25855    builtin and then its argument prototype would still apply.  */
25856 #ifdef __cplusplus
25857 extern "C"
25858 #endif
25859 char gethostbyname ();
25860 int
25861 main ()
25862 {
25863 return gethostbyname ();
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 rm -f conftest.$ac_objext conftest$ac_exeext
25869 if { (ac_try="$ac_link"
25870 case "(($ac_try" in
25871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872   *) ac_try_echo=$ac_try;;
25873 esac
25874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25875   (eval "$ac_link") 2>conftest.er1
25876   ac_status=$?
25877   grep -v '^ *+' conftest.er1 >conftest.err
25878   rm -f conftest.er1
25879   cat conftest.err >&5
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); } && {
25882          test -z "$ac_c_werror_flag" ||
25883          test ! -s conftest.err
25884        } && test -s conftest$ac_exeext &&
25885        $as_test_x conftest$ac_exeext; then
25886   ac_cv_lib_nsl_gethostbyname=yes
25887 else
25888   echo "$as_me: failed program was:" >&5
25889 sed 's/^/| /' conftest.$ac_ext >&5
25890
25891         ac_cv_lib_nsl_gethostbyname=no
25892 fi
25893
25894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25895       conftest$ac_exeext conftest.$ac_ext
25896 LIBS=$ac_check_lib_save_LIBS
25897 fi
25898 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25899 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25900 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25901   GRAS_DEP="$GRAS_DEP -lnsl"
25902 fi
25903
25904 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25905 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25906 if test "${ac_cv_lib_socket_connect+set}" = set; then
25907   echo $ECHO_N "(cached) $ECHO_C" >&6
25908 else
25909   ac_check_lib_save_LIBS=$LIBS
25910 LIBS="-lsocket  $LIBS"
25911 cat >conftest.$ac_ext <<_ACEOF
25912 /* confdefs.h.  */
25913 _ACEOF
25914 cat confdefs.h >>conftest.$ac_ext
25915 cat >>conftest.$ac_ext <<_ACEOF
25916 /* end confdefs.h.  */
25917
25918 /* Override any GCC internal prototype to avoid an error.
25919    Use char because int might match the return type of a GCC
25920    builtin and then its argument prototype would still apply.  */
25921 #ifdef __cplusplus
25922 extern "C"
25923 #endif
25924 char connect ();
25925 int
25926 main ()
25927 {
25928 return connect ();
25929   ;
25930   return 0;
25931 }
25932 _ACEOF
25933 rm -f conftest.$ac_objext conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940   (eval "$ac_link") 2>conftest.er1
25941   ac_status=$?
25942   grep -v '^ *+' conftest.er1 >conftest.err
25943   rm -f conftest.er1
25944   cat conftest.err >&5
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } && {
25947          test -z "$ac_c_werror_flag" ||
25948          test ! -s conftest.err
25949        } && test -s conftest$ac_exeext &&
25950        $as_test_x conftest$ac_exeext; then
25951   ac_cv_lib_socket_connect=yes
25952 else
25953   echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25955
25956         ac_cv_lib_socket_connect=no
25957 fi
25958
25959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25960       conftest$ac_exeext conftest.$ac_ext
25961 LIBS=$ac_check_lib_save_LIBS
25962 fi
25963 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25964 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25965 if test $ac_cv_lib_socket_connect = yes; then
25966   GRAS_DEP="$GRAS_DEP -lsocket"
25967 fi
25968
25969
25970 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25971 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25972 case $host_os in
25973   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25974             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25975             cat >>confdefs.h <<\_ACEOF
25976 #define CONTEXT_THREADS 1
25977 _ACEOF
25978 ;;
25979 esac
25980
25981
25982
25983 if test "x$GRAS_DEP" = x; then
25984    { echo "$as_me:$LINENO: result: none" >&5
25985 echo "${ECHO_T}none" >&6; }
25986 else
25987    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25988 echo "${ECHO_T}$GRAS_DEP" >&6; }
25989 fi
25990
25991
25992 ##############################################
25993 ## Enhance maintainer mode and SUBST variables
25994 ## (must be placed after any compilation tests since our overprotective flags
25995 ##  let some tests fail)
25996
25997 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25998 # Next line is modified by sed when building gramine source tree
25999 gramine_mode=no
26000 if test x$gramine_mode = xyes
26001 then
26002   USE_MAINTAINER_MODE=no
26003 fi
26004  if test x$gramine_mode != xno; then
26005   GRAMINE_MODE_TRUE=
26006   GRAMINE_MODE_FALSE='#'
26007 else
26008   GRAMINE_MODE_TRUE='#'
26009   GRAMINE_MODE_FALSE=
26010 fi
26011
26012
26013
26014 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26015 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26016     # Check whether --enable-maintainer-mode was given.
26017 if test "${enable_maintainer_mode+set}" = set; then
26018   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26019 else
26020   USE_MAINTAINER_MODE=no
26021 fi
26022
26023   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26024 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26025    if test $USE_MAINTAINER_MODE = yes; then
26026   MAINTAINER_MODE_TRUE=
26027   MAINTAINER_MODE_FALSE='#'
26028 else
26029   MAINTAINER_MODE_TRUE='#'
26030   MAINTAINER_MODE_FALSE=
26031 fi
26032
26033   MAINT=$MAINTAINER_MODE_TRUE
26034
26035
26036 if test x$USE_MAINTAINER_MODE = xyes
26037 then
26038    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26039    enable_compile_warnings=yes
26040 fi
26041
26042   # Check whether --enable-compile-warnings was given.
26043 if test "${enable_compile_warnings+set}" = set; then
26044   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26045 else
26046   enable_compile_warnings=no
26047 fi
26048
26049
26050   # Check whether --enable-compile-optimizations was given.
26051 if test "${enable_compile_optimizations+set}" = set; then
26052   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26053 else
26054   enable_compile_optimizations=auto
26055 fi
26056
26057
26058     # AC PROG CC tests whether -g is accepted.
26059     # Cool, but it also tries to set -O2 and -g.
26060     # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
26061     case $CC in
26062       *gcc)
26063       if test "$CFLAGS" = "-g -O2" ; then
26064         CFLAGS="-g3"
26065       fi
26066       if test "$CXXFLAGS" = "-g -O2" ; then
26067         CXXFLAGS="-g3"
26068       fi
26069       if test "$GCJFLAGS" = "-g -O2" ; then
26070         CXXFLAGS="-g3"
26071       fi;;
26072     esac
26073
26074   if test "x$enable_compile_warnings" = "xyes" ; then
26075     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26076 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26077     warnCFLAGS=
26078     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26079       case " $CFLAGS " in
26080       *-Wall*) ;;
26081       *) warnCFLAGS="-Wall -Wunused" ;;
26082       esac
26083
26084       ## -W is not all that useful.  And it cannot be controlled
26085       ## with individual -Wno-xxx flags, unlike -Wall
26086
26087       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26088       ## -Wshadow chokes on try{ try{} } constructs
26089       if test "x$enable_compile_warnings" = "xyes"; then
26090         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
26091         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26092         -Wno-unused-function  -Wno-strict-aliasing  \
26093         -Werror \
26094         | sed 's/ +/ /g'`
26095         # -Wno-unused-variable  -Wno-unused-label
26096       fi
26097     fi
26098     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26099 echo "${ECHO_T}$warnCFLAGS" >&6; }
26100     # placed before since gcc remembers the last one on conflict
26101     CFLAGS="$warnCFLAGS $CFLAGS"
26102   fi
26103
26104   if test "x$enable_compile_optimizations" = "xyes" ||
26105      test "x$enable_compile_optimizations" = "xauto" ; then
26106     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26107 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26108     optCFLAGS=
26109     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26110         case " $CFLAGS " in
26111         *-O*) ;;
26112         *) optCFLAGS="$optCFLAGS -O3" ;;
26113         esac
26114         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26115
26116         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26117         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26118         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26119           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26120           # but the check would be too complicated to get 3.4.
26121           # Instead, rule out any 3.x compiler.
26122
26123           # Note that the flag didn't exist before gcc 3.0
26124           optCFLAGS="$optCFLAGS -fno-loop-optimize"
26125         fi
26126             fi
26127     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26128 echo "${ECHO_T}$optCFLAGS" >&6; }
26129     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26130     if test "x$cflags_set" != "xyes" ; then
26131       CFLAGS="$optCFLAGS $CFLAGS"
26132     fi
26133   fi
26134
26135   if test x$lt_cv_prog_gnu_ld = xyes ; then
26136     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26137   else
26138     LD_DYNAMIC_FLAGS=
26139   fi
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153 ##############################################
26154 ## Specific mode for build daemons.
26155 ## (they compile the SVN without having the autotools installed)
26156 # Check whether --enable-botbuild was given.
26157 if test "${enable_botbuild+set}" = set; then
26158   enableval=$enable_botbuild; botbuild=$enableval
26159 else
26160   botbuild=no
26161 fi
26162
26163  if test x$botbuild != xno; then
26164   BOTBUILD_MODE_TRUE=
26165   BOTBUILD_MODE_FALSE='#'
26166 else
26167   BOTBUILD_MODE_TRUE='#'
26168   BOTBUILD_MODE_FALSE=
26169 fi
26170
26171
26172 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26173   echo "ERROR: "
26174   echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26175   echo "ERROR: For this, just call configure this way:"
26176   echo "ERROR:"
26177   echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26178   echo "ERROR:"
26179   exit 1
26180 fi
26181
26182
26183
26184   { echo "$as_me:$LINENO: result: " >&5
26185 echo "${ECHO_T}" >&6; }
26186   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26187 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26188
26189 # Java cruft
26190 # Check whether --enable-java was given.
26191 if test "${enable_java+set}" = set; then
26192   enableval=$enable_java; disable_java=$enableval
26193 else
26194   disable_java=yes
26195 fi
26196
26197 if test "x$disable_java" != "xyes" ; then
26198    use_java="disabled by user"
26199 else
26200   # Extract the first word of "javac", so it can be a program name with args.
26201 set dummy javac; ac_word=$2
26202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26204 if test "${ac_cv_path_JAVAC+set}" = set; then
26205   echo $ECHO_N "(cached) $ECHO_C" >&6
26206 else
26207   case $JAVAC in
26208   [\\/]* | ?:[\\/]*)
26209   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26210   ;;
26211   *)
26212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26213 for as_dir in $PATH
26214 do
26215   IFS=$as_save_IFS
26216   test -z "$as_dir" && as_dir=.
26217   for ac_exec_ext in '' $ac_executable_extensions; do
26218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26219     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26221     break 2
26222   fi
26223 done
26224 done
26225 IFS=$as_save_IFS
26226
26227   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26228   ;;
26229 esac
26230 fi
26231 JAVAC=$ac_cv_path_JAVAC
26232 if test -n "$JAVAC"; then
26233   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26234 echo "${ECHO_T}$JAVAC" >&6; }
26235 else
26236   { echo "$as_me:$LINENO: result: no" >&5
26237 echo "${ECHO_T}no" >&6; }
26238 fi
26239
26240
26241   # Extract the first word of "java ", so it can be a program name with args.
26242 set dummy java ; ac_word=$2
26243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26245 if test "${ac_cv_path_JAVA+set}" = set; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 else
26248   case $JAVA in
26249   [\\/]* | ?:[\\/]*)
26250   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26251   ;;
26252   *)
26253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26254 for as_dir in $PATH
26255 do
26256   IFS=$as_save_IFS
26257   test -z "$as_dir" && as_dir=.
26258   for ac_exec_ext in '' $ac_executable_extensions; do
26259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26260     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26262     break 2
26263   fi
26264 done
26265 done
26266 IFS=$as_save_IFS
26267
26268   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26269   ;;
26270 esac
26271 fi
26272 JAVA=$ac_cv_path_JAVA
26273 if test -n "$JAVA"; then
26274   { echo "$as_me:$LINENO: result: $JAVA" >&5
26275 echo "${ECHO_T}$JAVA" >&6; }
26276 else
26277   { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279 fi
26280
26281
26282   # Extract the first word of "jar  ", so it can be a program name with args.
26283 set dummy jar  ; ac_word=$2
26284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26286 if test "${ac_cv_path_JAR+set}" = set; then
26287   echo $ECHO_N "(cached) $ECHO_C" >&6
26288 else
26289   case $JAR in
26290   [\\/]* | ?:[\\/]*)
26291   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26292   ;;
26293   *)
26294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26295 for as_dir in $PATH
26296 do
26297   IFS=$as_save_IFS
26298   test -z "$as_dir" && as_dir=.
26299   for ac_exec_ext in '' $ac_executable_extensions; do
26300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26301     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26303     break 2
26304   fi
26305 done
26306 done
26307 IFS=$as_save_IFS
26308
26309   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26310   ;;
26311 esac
26312 fi
26313 JAR=$ac_cv_path_JAR
26314 if test -n "$JAR"; then
26315   { echo "$as_me:$LINENO: result: $JAR" >&5
26316 echo "${ECHO_T}$JAR" >&6; }
26317 else
26318   { echo "$as_me:$LINENO: result: no" >&5
26319 echo "${ECHO_T}no" >&6; }
26320 fi
26321
26322
26323
26324 for ac_header in jni.h
26325 do
26326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 fi
26333 ac_res=`eval echo '${'$as_ac_Header'}'`
26334                { echo "$as_me:$LINENO: result: $ac_res" >&5
26335 echo "${ECHO_T}$ac_res" >&6; }
26336 else
26337   # Is the header compilable?
26338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26340 cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346 $ac_includes_default
26347 #include <$ac_header>
26348 _ACEOF
26349 rm -f conftest.$ac_objext
26350 if { (ac_try="$ac_compile"
26351 case "(($ac_try" in
26352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353   *) ac_try_echo=$ac_try;;
26354 esac
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356   (eval "$ac_compile") 2>conftest.er1
26357   ac_status=$?
26358   grep -v '^ *+' conftest.er1 >conftest.err
26359   rm -f conftest.er1
26360   cat conftest.err >&5
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); } && {
26363          test -z "$ac_c_werror_flag" ||
26364          test ! -s conftest.err
26365        } && test -s conftest.$ac_objext; then
26366   ac_header_compiler=yes
26367 else
26368   echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26370
26371         ac_header_compiler=no
26372 fi
26373
26374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26376 echo "${ECHO_T}$ac_header_compiler" >&6; }
26377
26378 # Is the header present?
26379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26381 cat >conftest.$ac_ext <<_ACEOF
26382 /* confdefs.h.  */
26383 _ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h.  */
26387 #include <$ac_header>
26388 _ACEOF
26389 if { (ac_try="$ac_cpp conftest.$ac_ext"
26390 case "(($ac_try" in
26391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392   *) ac_try_echo=$ac_try;;
26393 esac
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26396   ac_status=$?
26397   grep -v '^ *+' conftest.er1 >conftest.err
26398   rm -f conftest.er1
26399   cat conftest.err >&5
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); } >/dev/null && {
26402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26403          test ! -s conftest.err
26404        }; then
26405   ac_header_preproc=yes
26406 else
26407   echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26409
26410   ac_header_preproc=no
26411 fi
26412
26413 rm -f conftest.err conftest.$ac_ext
26414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26415 echo "${ECHO_T}$ac_header_preproc" >&6; }
26416
26417 # So?  What about this header?
26418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26419   yes:no: )
26420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26424     ac_header_preproc=yes
26425     ;;
26426   no:yes:* )
26427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26439     ( cat <<\_ASBOX
26440 ## -------------------------------------------------- ##
26441 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26442 ## -------------------------------------------------- ##
26443 _ASBOX
26444      ) | sed "s/^/$as_me: WARNING:     /" >&2
26445     ;;
26446 esac
26447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26450   echo $ECHO_N "(cached) $ECHO_C" >&6
26451 else
26452   eval "$as_ac_Header=\$ac_header_preproc"
26453 fi
26454 ac_res=`eval echo '${'$as_ac_Header'}'`
26455                { echo "$as_me:$LINENO: result: $ac_res" >&5
26456 echo "${ECHO_T}$ac_res" >&6; }
26457
26458 fi
26459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26460   cat >>confdefs.h <<_ACEOF
26461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26462 _ACEOF
26463
26464 fi
26465
26466 done
26467
26468   if test -n "$JAVAC"   \
26469      && test -n "$JAVA" \
26470      && test -n "$JAR"  \
26471      && test "x$ac_cv_header_jni_h" = "xyes" ; then
26472
26473      use_java="yes"
26474
26475 cat >>confdefs.h <<\_ACEOF
26476 #define HAVE_JAVA 1
26477 _ACEOF
26478
26479   else
26480      use_java="no"
26481   fi
26482 fi
26483 { echo "$as_me:$LINENO: result: decide whether to compile java bindings... $use_java" >&5
26484 echo "${ECHO_T}decide whether to compile java bindings... $use_java" >&6; }
26485  if test "x$use_java" = "xyes"; then
26486   HAVE_JAVA_TRUE=
26487   HAVE_JAVA_FALSE='#'
26488 else
26489   HAVE_JAVA_TRUE='#'
26490   HAVE_JAVA_FALSE=
26491 fi
26492
26493
26494
26495 #####################
26496 ## Check for programs
26497 ##
26498
26499
26500   { echo "$as_me:$LINENO: result: " >&5
26501 echo "${ECHO_T}" >&6; }
26502   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26503 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26504
26505 # Extract the first word of "bash", so it can be a program name with args.
26506 set dummy bash; ac_word=$2
26507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26509 if test "${ac_cv_prog_BASH+set}" = set; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512   if test -n "$BASH"; then
26513   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26514 else
26515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26516 for as_dir in $PATH
26517 do
26518   IFS=$as_save_IFS
26519   test -z "$as_dir" && as_dir=.
26520   for ac_exec_ext in '' $ac_executable_extensions; do
26521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26522     ac_cv_prog_BASH="`which bash`"
26523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26524     break 2
26525   fi
26526 done
26527 done
26528 IFS=$as_save_IFS
26529
26530   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26531 fi
26532 fi
26533 BASH=$ac_cv_prog_BASH
26534 if test -n "$BASH"; then
26535   { echo "$as_me:$LINENO: result: $BASH" >&5
26536 echo "${ECHO_T}$BASH" >&6; }
26537 else
26538   { echo "$as_me:$LINENO: result: no" >&5
26539 echo "${ECHO_T}no" >&6; }
26540 fi
26541
26542
26543 WARNING="This file is generated, do not edit"
26544
26545
26546
26547 # Can we rebuild the parsers?
26548 # We really want flex and refuse other lex. So, the parser is portable and
26549 # does not induce extra lib dependency
26550 for ac_prog in flex lex
26551 do
26552   # Extract the first word of "$ac_prog", so it can be a program name with args.
26553 set dummy $ac_prog; ac_word=$2
26554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26556 if test "${ac_cv_prog_LEX+set}" = set; then
26557   echo $ECHO_N "(cached) $ECHO_C" >&6
26558 else
26559   if test -n "$LEX"; then
26560   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26561 else
26562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26563 for as_dir in $PATH
26564 do
26565   IFS=$as_save_IFS
26566   test -z "$as_dir" && as_dir=.
26567   for ac_exec_ext in '' $ac_executable_extensions; do
26568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26569     ac_cv_prog_LEX="$ac_prog"
26570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26571     break 2
26572   fi
26573 done
26574 done
26575 IFS=$as_save_IFS
26576
26577 fi
26578 fi
26579 LEX=$ac_cv_prog_LEX
26580 if test -n "$LEX"; then
26581   { echo "$as_me:$LINENO: result: $LEX" >&5
26582 echo "${ECHO_T}$LEX" >&6; }
26583 else
26584   { echo "$as_me:$LINENO: result: no" >&5
26585 echo "${ECHO_T}no" >&6; }
26586 fi
26587
26588
26589   test -n "$LEX" && break
26590 done
26591 test -n "$LEX" || LEX=":"
26592
26593 if test "x$LEX" != "x:"; then
26594   cat >conftest.l <<_ACEOF
26595 %%
26596 a { ECHO; }
26597 b { REJECT; }
26598 c { yymore (); }
26599 d { yyless (1); }
26600 e { yyless (input () != 0); }
26601 f { unput (yytext[0]); }
26602 . { BEGIN INITIAL; }
26603 %%
26604 #ifdef YYTEXT_POINTER
26605 extern char *yytext;
26606 #endif
26607 int
26608 main (void)
26609 {
26610   return ! yylex () + ! yywrap ();
26611 }
26612 _ACEOF
26613 { (ac_try="$LEX conftest.l"
26614 case "(($ac_try" in
26615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616   *) ac_try_echo=$ac_try;;
26617 esac
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619   (eval "$LEX conftest.l") 2>&5
26620   ac_status=$?
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); }
26623 { echo "$as_me:$LINENO: checking lex output file root" >&5
26624 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26625 if test "${ac_cv_prog_lex_root+set}" = set; then
26626   echo $ECHO_N "(cached) $ECHO_C" >&6
26627 else
26628
26629 if test -f lex.yy.c; then
26630   ac_cv_prog_lex_root=lex.yy
26631 elif test -f lexyy.c; then
26632   ac_cv_prog_lex_root=lexyy
26633 else
26634   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26635 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26636    { (exit 1); exit 1; }; }
26637 fi
26638 fi
26639 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26640 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26641 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26642
26643 if test -z "${LEXLIB+set}"; then
26644   { echo "$as_me:$LINENO: checking lex library" >&5
26645 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26646 if test "${ac_cv_lib_lex+set}" = set; then
26647   echo $ECHO_N "(cached) $ECHO_C" >&6
26648 else
26649
26650     ac_save_LIBS=$LIBS
26651     ac_cv_lib_lex='none needed'
26652     for ac_lib in '' -lfl -ll; do
26653       LIBS="$ac_lib $ac_save_LIBS"
26654       cat >conftest.$ac_ext <<_ACEOF
26655 `cat $LEX_OUTPUT_ROOT.c`
26656 _ACEOF
26657 rm -f conftest.$ac_objext conftest$ac_exeext
26658 if { (ac_try="$ac_link"
26659 case "(($ac_try" in
26660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26661   *) ac_try_echo=$ac_try;;
26662 esac
26663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26664   (eval "$ac_link") 2>conftest.er1
26665   ac_status=$?
26666   grep -v '^ *+' conftest.er1 >conftest.err
26667   rm -f conftest.er1
26668   cat conftest.err >&5
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } && {
26671          test -z "$ac_c_werror_flag" ||
26672          test ! -s conftest.err
26673        } && test -s conftest$ac_exeext &&
26674        $as_test_x conftest$ac_exeext; then
26675   ac_cv_lib_lex=$ac_lib
26676 else
26677   echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680
26681 fi
26682
26683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26684       conftest$ac_exeext conftest.$ac_ext
26685       test "$ac_cv_lib_lex" != 'none needed' && break
26686     done
26687     LIBS=$ac_save_LIBS
26688
26689 fi
26690 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26691 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26692   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26693 fi
26694
26695
26696 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26697 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26698 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26699   echo $ECHO_N "(cached) $ECHO_C" >&6
26700 else
26701   # POSIX says lex can declare yytext either as a pointer or an array; the
26702 # default is implementation-dependent.  Figure out which it is, since
26703 # not all implementations provide the %pointer and %array declarations.
26704 ac_cv_prog_lex_yytext_pointer=no
26705 ac_save_LIBS=$LIBS
26706 LIBS="$LEXLIB $ac_save_LIBS"
26707 cat >conftest.$ac_ext <<_ACEOF
26708 #define YYTEXT_POINTER 1
26709 `cat $LEX_OUTPUT_ROOT.c`
26710 _ACEOF
26711 rm -f conftest.$ac_objext conftest$ac_exeext
26712 if { (ac_try="$ac_link"
26713 case "(($ac_try" in
26714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715   *) ac_try_echo=$ac_try;;
26716 esac
26717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26718   (eval "$ac_link") 2>conftest.er1
26719   ac_status=$?
26720   grep -v '^ *+' conftest.er1 >conftest.err
26721   rm -f conftest.er1
26722   cat conftest.err >&5
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); } && {
26725          test -z "$ac_c_werror_flag" ||
26726          test ! -s conftest.err
26727        } && test -s conftest$ac_exeext &&
26728        $as_test_x conftest$ac_exeext; then
26729   ac_cv_prog_lex_yytext_pointer=yes
26730 else
26731   echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734
26735 fi
26736
26737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26738       conftest$ac_exeext conftest.$ac_ext
26739 LIBS=$ac_save_LIBS
26740
26741 fi
26742 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26743 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26744 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26745
26746 cat >>confdefs.h <<\_ACEOF
26747 #define YYTEXT_POINTER 1
26748 _ACEOF
26749
26750 fi
26751 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26752
26753 fi
26754
26755   if test "$LEX" != flex; then
26756     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26757 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26758     LEX=${am_missing_run}flex
26759     LEXLIB=''
26760
26761   else
26762     if test "x2.5.30" != "x" ; then
26763                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26764
26765       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26766       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26767       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26768
26769       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26770       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26771       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26772
26773       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26774          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26775          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26776       then
26777         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26778 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26779         LEX=${am_missing_run}flex
26780         LEXLIB=''
26781
26782       else
26783         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26784 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26785       fi
26786     fi
26787   fi
26788
26789
26790 # Can we rebuild the xml-lexers from the XML specification?
26791 # if not, simply touch the flex source files (which are distributed in
26792 #  tarballs even if generated by flexml) and hope for the best.
26793 # Extract the first word of "flexml", so it can be a program name with args.
26794 set dummy flexml; ac_word=$2
26795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26797 if test "${ac_cv_prog_FLEXML+set}" = set; then
26798   echo $ECHO_N "(cached) $ECHO_C" >&6
26799 else
26800   if test -n "$FLEXML"; then
26801   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26802 else
26803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26804 for as_dir in $PATH
26805 do
26806   IFS=$as_save_IFS
26807   test -z "$as_dir" && as_dir=.
26808   for ac_exec_ext in '' $ac_executable_extensions; do
26809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26810     ac_cv_prog_FLEXML="`which flexml`"
26811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26812     break 2
26813   fi
26814 done
26815 done
26816 IFS=$as_save_IFS
26817
26818   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26819 fi
26820 fi
26821 FLEXML=$ac_cv_prog_FLEXML
26822 if test -n "$FLEXML"; then
26823   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26824 echo "${ECHO_T}$FLEXML" >&6; }
26825 else
26826   { echo "$as_me:$LINENO: result: no" >&5
26827 echo "${ECHO_T}no" >&6; }
26828 fi
26829
26830
26831  if test x$FLEXML != xNOTFOUND; then
26832   HAVE_FLEXML_TRUE=
26833   HAVE_FLEXML_FALSE='#'
26834 else
26835   HAVE_FLEXML_TRUE='#'
26836   HAVE_FLEXML_FALSE=
26837 fi
26838
26839
26840 if test x$USE_MAINTAINER_MODE = xyes
26841 then
26842    # Check for doxygen when in maintainer mode since dist* targets fail
26843    # without it
26844    # Extract the first word of "doxygen", so it can be a program name with args.
26845 set dummy doxygen; ac_word=$2
26846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26848 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26849   echo $ECHO_N "(cached) $ECHO_C" >&6
26850 else
26851   case $DOXYGEN in
26852   [\\/]* | ?:[\\/]*)
26853   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26854   ;;
26855   *)
26856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26857 for as_dir in $PATH
26858 do
26859   IFS=$as_save_IFS
26860   test -z "$as_dir" && as_dir=.
26861   for ac_exec_ext in '' $ac_executable_extensions; do
26862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26863     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26865     break 2
26866   fi
26867 done
26868 done
26869 IFS=$as_save_IFS
26870
26871   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26872   ;;
26873 esac
26874 fi
26875 DOXYGEN=$ac_cv_path_DOXYGEN
26876 if test -n "$DOXYGEN"; then
26877   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26878 echo "${ECHO_T}$DOXYGEN" >&6; }
26879 else
26880   { echo "$as_me:$LINENO: result: no" >&5
26881 echo "${ECHO_T}no" >&6; }
26882 fi
26883
26884
26885    if test x$DOXYGEN = x ; then
26886      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26887 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26888    { (exit 1); exit 1; }; }
26889    fi
26890 fi
26891
26892 # Can we extract really usable backtraces? (also need the popen function)
26893 # Extract the first word of "addr2line", so it can be a program name with args.
26894 set dummy addr2line; ac_word=$2
26895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26897 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26898   echo $ECHO_N "(cached) $ECHO_C" >&6
26899 else
26900   case $ADDR2LINE in
26901   [\\/]* | ?:[\\/]*)
26902   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26903   ;;
26904   *)
26905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26906 for as_dir in $PATH
26907 do
26908   IFS=$as_save_IFS
26909   test -z "$as_dir" && as_dir=.
26910   for ac_exec_ext in '' $ac_executable_extensions; do
26911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26912     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26914     break 2
26915   fi
26916 done
26917 done
26918 IFS=$as_save_IFS
26919
26920   ;;
26921 esac
26922 fi
26923 ADDR2LINE=$ac_cv_path_ADDR2LINE
26924 if test -n "$ADDR2LINE"; then
26925   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26926 echo "${ECHO_T}$ADDR2LINE" >&6; }
26927 else
26928   { echo "$as_me:$LINENO: result: no" >&5
26929 echo "${ECHO_T}no" >&6; }
26930 fi
26931
26932
26933 if test x$ADDR2LINE != x ; then
26934
26935 cat >>confdefs.h <<_ACEOF
26936 #define ADDR2LINE "$ADDR2LINE"
26937 _ACEOF
26938
26939 fi
26940
26941
26942 # Can we make status line about the compilation result?
26943 # Extract the first word of "md5sum", so it can be a program name with args.
26944 set dummy md5sum; ac_word=$2
26945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26947 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26948   echo $ECHO_N "(cached) $ECHO_C" >&6
26949 else
26950   if test -n "$MD5SUM"; then
26951   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26952 else
26953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26954 for as_dir in $PATH
26955 do
26956   IFS=$as_save_IFS
26957   test -z "$as_dir" && as_dir=.
26958   for ac_exec_ext in '' $ac_executable_extensions; do
26959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26960     ac_cv_prog_MD5SUM="`which md5sum`"
26961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26962     break 2
26963   fi
26964 done
26965 done
26966 IFS=$as_save_IFS
26967
26968 fi
26969 fi
26970 MD5SUM=$ac_cv_prog_MD5SUM
26971 if test -n "$MD5SUM"; then
26972   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26973 echo "${ECHO_T}$MD5SUM" >&6; }
26974 else
26975   { echo "$as_me:$LINENO: result: no" >&5
26976 echo "${ECHO_T}no" >&6; }
26977 fi
26978
26979
26980 if test x$MD5SUM != xno ; then
26981   build_version=`find . -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26982                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26983 else
26984   build_version="no_md5sum_binary"
26985 fi
26986 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26987
26988
26989 ###################
26990 ## Makes the output
26991 ##
26992
26993
26994 #
26995 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26996 #  src/amok/Makefile
26997
26998
26999   { echo "$as_me:$LINENO: result: " >&5
27000 echo "${ECHO_T}" >&6; }
27001   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27002 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27003
27004
27005 # Core of the libraries
27006
27007 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
27008
27009
27010 # Tools being embeeded in gramine (stub generator)
27011 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27012
27013
27014
27015 # GRAMINE_CUT_BEGIN
27016
27017 # Tools NOT being embeeded in gramine
27018 ac_config_files="$ac_config_files tools/graspe-slave"
27019
27020
27021 # Testsuite
27022
27023 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
27024
27025
27026 # Teshsuite (testsuite using tesh)
27027 ac_config_files="$ac_config_files teshsuite/Makefile"
27028
27029
27030 # Documentation
27031 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27032
27033
27034 # Examples
27035
27036 #      examples/gras/p2p/Makefile
27037 #      examples/gras/p2p/chord/Makefile
27038 #      examples/gras/p2p/can/Makefile
27039
27040 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"
27041
27042
27043 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile 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/properties/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"
27044
27045
27046 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
27047
27048
27049 # GRAMINE_CUT_END
27050
27051 cat >confcache <<\_ACEOF
27052 # This file is a shell script that caches the results of configure
27053 # tests run on this system so they can be shared between configure
27054 # scripts and configure runs, see configure's option --config-cache.
27055 # It is not useful on other systems.  If it contains results you don't
27056 # want to keep, you may remove or edit it.
27057 #
27058 # config.status only pays attention to the cache file if you give it
27059 # the --recheck option to rerun configure.
27060 #
27061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27063 # following values.
27064
27065 _ACEOF
27066
27067 # The following way of writing the cache mishandles newlines in values,
27068 # but we know of no workaround that is simple, portable, and efficient.
27069 # So, we kill variables containing newlines.
27070 # Ultrix sh set writes to stderr and can't be redirected directly,
27071 # and sets the high bit in the cache file unless we assign to the vars.
27072 (
27073   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27074     eval ac_val=\$$ac_var
27075     case $ac_val in #(
27076     *${as_nl}*)
27077       case $ac_var in #(
27078       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27079 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27080       esac
27081       case $ac_var in #(
27082       _ | IFS | as_nl) ;; #(
27083       *) $as_unset $ac_var ;;
27084       esac ;;
27085     esac
27086   done
27087
27088   (set) 2>&1 |
27089     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27090     *${as_nl}ac_space=\ *)
27091       # `set' does not quote correctly, so add quotes (double-quote
27092       # substitution turns \\\\ into \\, and sed turns \\ into \).
27093       sed -n \
27094         "s/'/'\\\\''/g;
27095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27096       ;; #(
27097     *)
27098       # `set' quotes correctly as required by POSIX, so do not add quotes.
27099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27100       ;;
27101     esac |
27102     sort
27103 ) |
27104   sed '
27105      /^ac_cv_env_/b end
27106      t clear
27107      :clear
27108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27109      t end
27110      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27111      :end' >>confcache
27112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27113   if test -w "$cache_file"; then
27114     test "x$cache_file" != "x/dev/null" &&
27115       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27116 echo "$as_me: updating cache $cache_file" >&6;}
27117     cat confcache >$cache_file
27118   else
27119     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27120 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27121   fi
27122 fi
27123 rm -f confcache
27124
27125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27126 # Let make expand exec_prefix.
27127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27128
27129 DEFS=-DHAVE_CONFIG_H
27130
27131 ac_libobjs=
27132 ac_ltlibobjs=
27133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27134   # 1. Remove the extension, and $U if already installed.
27135   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27136   ac_i=`echo "$ac_i" | sed "$ac_script"`
27137   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27138   #    will be set to the directory where LIBOBJS objects are built.
27139   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27140   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27141 done
27142 LIBOBJS=$ac_libobjs
27143
27144 LTLIBOBJS=$ac_ltlibobjs
27145
27146
27147 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27148   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27149 Usually this means the macro was only invoked conditionally." >&5
27150 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27151 Usually this means the macro was only invoked conditionally." >&2;}
27152    { (exit 1); exit 1; }; }
27153 fi
27154 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27155   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27156 Usually this means the macro was only invoked conditionally." >&5
27157 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27158 Usually this means the macro was only invoked conditionally." >&2;}
27159    { (exit 1); exit 1; }; }
27160 fi
27161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27162   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27163 Usually this means the macro was only invoked conditionally." >&5
27164 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27165 Usually this means the macro was only invoked conditionally." >&2;}
27166    { (exit 1); exit 1; }; }
27167 fi
27168 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27169   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27170 Usually this means the macro was only invoked conditionally." >&5
27171 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27172 Usually this means the macro was only invoked conditionally." >&2;}
27173    { (exit 1); exit 1; }; }
27174 fi
27175 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27176   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27177 Usually this means the macro was only invoked conditionally." >&5
27178 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27179 Usually this means the macro was only invoked conditionally." >&2;}
27180    { (exit 1); exit 1; }; }
27181 fi
27182 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27183   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27184 Usually this means the macro was only invoked conditionally." >&5
27185 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27186 Usually this means the macro was only invoked conditionally." >&2;}
27187    { (exit 1); exit 1; }; }
27188 fi
27189 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27190   { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27191 Usually this means the macro was only invoked conditionally." >&5
27192 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27193 Usually this means the macro was only invoked conditionally." >&2;}
27194    { (exit 1); exit 1; }; }
27195 fi
27196 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27197   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27198 Usually this means the macro was only invoked conditionally." >&5
27199 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27200 Usually this means the macro was only invoked conditionally." >&2;}
27201    { (exit 1); exit 1; }; }
27202 fi
27203 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27204   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27205 Usually this means the macro was only invoked conditionally." >&5
27206 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27207 Usually this means the macro was only invoked conditionally." >&2;}
27208    { (exit 1); exit 1; }; }
27209 fi
27210 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27211   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27212 Usually this means the macro was only invoked conditionally." >&5
27213 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27214 Usually this means the macro was only invoked conditionally." >&2;}
27215    { (exit 1); exit 1; }; }
27216 fi
27217 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27218   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27219 Usually this means the macro was only invoked conditionally." >&5
27220 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27221 Usually this means the macro was only invoked conditionally." >&2;}
27222    { (exit 1); exit 1; }; }
27223 fi
27224 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27225   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27226 Usually this means the macro was only invoked conditionally." >&5
27227 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27228 Usually this means the macro was only invoked conditionally." >&2;}
27229    { (exit 1); exit 1; }; }
27230 fi
27231 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27232   { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27233 Usually this means the macro was only invoked conditionally." >&5
27234 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27235 Usually this means the macro was only invoked conditionally." >&2;}
27236    { (exit 1); exit 1; }; }
27237 fi
27238 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27239   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27240 Usually this means the macro was only invoked conditionally." >&5
27241 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27242 Usually this means the macro was only invoked conditionally." >&2;}
27243    { (exit 1); exit 1; }; }
27244 fi
27245 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27246   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27247 Usually this means the macro was only invoked conditionally." >&5
27248 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27249 Usually this means the macro was only invoked conditionally." >&2;}
27250    { (exit 1); exit 1; }; }
27251 fi
27252
27253 : ${CONFIG_STATUS=./config.status}
27254 ac_clean_files_save=$ac_clean_files
27255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27256 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27257 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27258 cat >$CONFIG_STATUS <<_ACEOF
27259 #! $SHELL
27260 # Generated by $as_me.
27261 # Run this file to recreate the current configuration.
27262 # Compiler output produced by configure, useful for debugging
27263 # configure, is in config.log if it exists.
27264
27265 debug=false
27266 ac_cs_recheck=false
27267 ac_cs_silent=false
27268 SHELL=\${CONFIG_SHELL-$SHELL}
27269 _ACEOF
27270
27271 cat >>$CONFIG_STATUS <<\_ACEOF
27272 ## --------------------- ##
27273 ## M4sh Initialization.  ##
27274 ## --------------------- ##
27275
27276 # Be more Bourne compatible
27277 DUALCASE=1; export DUALCASE # for MKS sh
27278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27279   emulate sh
27280   NULLCMD=:
27281   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27282   # is contrary to our usage.  Disable this feature.
27283   alias -g '${1+"$@"}'='"$@"'
27284   setopt NO_GLOB_SUBST
27285 else
27286   case `(set -o) 2>/dev/null` in
27287   *posix*) set -o posix ;;
27288 esac
27289
27290 fi
27291
27292
27293
27294
27295 # PATH needs CR
27296 # Avoid depending upon Character Ranges.
27297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27300 as_cr_digits='0123456789'
27301 as_cr_alnum=$as_cr_Letters$as_cr_digits
27302
27303 # The user is always right.
27304 if test "${PATH_SEPARATOR+set}" != set; then
27305   echo "#! /bin/sh" >conf$$.sh
27306   echo  "exit 0"   >>conf$$.sh
27307   chmod +x conf$$.sh
27308   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27309     PATH_SEPARATOR=';'
27310   else
27311     PATH_SEPARATOR=:
27312   fi
27313   rm -f conf$$.sh
27314 fi
27315
27316 # Support unset when possible.
27317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27318   as_unset=unset
27319 else
27320   as_unset=false
27321 fi
27322
27323
27324 # IFS
27325 # We need space, tab and new line, in precisely that order.  Quoting is
27326 # there to prevent editors from complaining about space-tab.
27327 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27328 # splitting by setting IFS to empty value.)
27329 as_nl='
27330 '
27331 IFS=" ""        $as_nl"
27332
27333 # Find who we are.  Look in the path if we contain no directory separator.
27334 case $0 in
27335   *[\\/]* ) as_myself=$0 ;;
27336   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27337 for as_dir in $PATH
27338 do
27339   IFS=$as_save_IFS
27340   test -z "$as_dir" && as_dir=.
27341   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27342 done
27343 IFS=$as_save_IFS
27344
27345      ;;
27346 esac
27347 # We did not find ourselves, most probably we were run as `sh COMMAND'
27348 # in which case we are not to be found in the path.
27349 if test "x$as_myself" = x; then
27350   as_myself=$0
27351 fi
27352 if test ! -f "$as_myself"; then
27353   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27354   { (exit 1); exit 1; }
27355 fi
27356
27357 # Work around bugs in pre-3.0 UWIN ksh.
27358 for as_var in ENV MAIL MAILPATH
27359 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27360 done
27361 PS1='$ '
27362 PS2='> '
27363 PS4='+ '
27364
27365 # NLS nuisances.
27366 for as_var in \
27367   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27368   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27369   LC_TELEPHONE LC_TIME
27370 do
27371   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27372     eval $as_var=C; export $as_var
27373   else
27374     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27375   fi
27376 done
27377
27378 # Required to use basename.
27379 if expr a : '\(a\)' >/dev/null 2>&1 &&
27380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27381   as_expr=expr
27382 else
27383   as_expr=false
27384 fi
27385
27386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27387   as_basename=basename
27388 else
27389   as_basename=false
27390 fi
27391
27392
27393 # Name of the executable.
27394 as_me=`$as_basename -- "$0" ||
27395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27396          X"$0" : 'X\(//\)$' \| \
27397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27398 echo X/"$0" |
27399     sed '/^.*\/\([^/][^/]*\)\/*$/{
27400             s//\1/
27401             q
27402           }
27403           /^X\/\(\/\/\)$/{
27404             s//\1/
27405             q
27406           }
27407           /^X\/\(\/\).*/{
27408             s//\1/
27409             q
27410           }
27411           s/.*/./; q'`
27412
27413 # CDPATH.
27414 $as_unset CDPATH
27415
27416
27417
27418   as_lineno_1=$LINENO
27419   as_lineno_2=$LINENO
27420   test "x$as_lineno_1" != "x$as_lineno_2" &&
27421   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27422
27423   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27424   # uniformly replaced by the line number.  The first 'sed' inserts a
27425   # line-number line after each line using $LINENO; the second 'sed'
27426   # does the real work.  The second script uses 'N' to pair each
27427   # line-number line with the line containing $LINENO, and appends
27428   # trailing '-' during substitution so that $LINENO is not a special
27429   # case at line end.
27430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27431   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27432   # E. McMahon (1931-1989) for sed's syntax.  :-)
27433   sed -n '
27434     p
27435     /[$]LINENO/=
27436   ' <$as_myself |
27437     sed '
27438       s/[$]LINENO.*/&-/
27439       t lineno
27440       b
27441       :lineno
27442       N
27443       :loop
27444       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27445       t loop
27446       s/-\n.*//
27447     ' >$as_me.lineno &&
27448   chmod +x "$as_me.lineno" ||
27449     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27450    { (exit 1); exit 1; }; }
27451
27452   # Don't try to exec as it changes $[0], causing all sort of problems
27453   # (the dirname of $[0] is not the place where we might find the
27454   # original and so on.  Autoconf is especially sensitive to this).
27455   . "./$as_me.lineno"
27456   # Exit status is that of the last command.
27457   exit
27458 }
27459
27460
27461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27462   as_dirname=dirname
27463 else
27464   as_dirname=false
27465 fi
27466
27467 ECHO_C= ECHO_N= ECHO_T=
27468 case `echo -n x` in
27469 -n*)
27470   case `echo 'x\c'` in
27471   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27472   *)   ECHO_C='\c';;
27473   esac;;
27474 *)
27475   ECHO_N='-n';;
27476 esac
27477
27478 if expr a : '\(a\)' >/dev/null 2>&1 &&
27479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27480   as_expr=expr
27481 else
27482   as_expr=false
27483 fi
27484
27485 rm -f conf$$ conf$$.exe conf$$.file
27486 if test -d conf$$.dir; then
27487   rm -f conf$$.dir/conf$$.file
27488 else
27489   rm -f conf$$.dir
27490   mkdir conf$$.dir
27491 fi
27492 echo >conf$$.file
27493 if ln -s conf$$.file conf$$ 2>/dev/null; then
27494   as_ln_s='ln -s'
27495   # ... but there are two gotchas:
27496   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27497   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27498   # In both cases, we have to default to `cp -p'.
27499   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27500     as_ln_s='cp -p'
27501 elif ln conf$$.file conf$$ 2>/dev/null; then
27502   as_ln_s=ln
27503 else
27504   as_ln_s='cp -p'
27505 fi
27506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27507 rmdir conf$$.dir 2>/dev/null
27508
27509 if mkdir -p . 2>/dev/null; then
27510   as_mkdir_p=:
27511 else
27512   test -d ./-p && rmdir ./-p
27513   as_mkdir_p=false
27514 fi
27515
27516 if test -x / >/dev/null 2>&1; then
27517   as_test_x='test -x'
27518 else
27519   if ls -dL / >/dev/null 2>&1; then
27520     as_ls_L_option=L
27521   else
27522     as_ls_L_option=
27523   fi
27524   as_test_x='
27525     eval sh -c '\''
27526       if test -d "$1"; then
27527         test -d "$1/.";
27528       else
27529         case $1 in
27530         -*)set "./$1";;
27531         esac;
27532         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27533         ???[sx]*):;;*)false;;esac;fi
27534     '\'' sh
27535   '
27536 fi
27537 as_executable_p=$as_test_x
27538
27539 # Sed expression to map a string onto a valid CPP name.
27540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27541
27542 # Sed expression to map a string onto a valid variable name.
27543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27544
27545
27546 exec 6>&1
27547
27548 # Save the log message, to keep $[0] and so on meaningful, and to
27549 # report actual input values of CONFIG_FILES etc. instead of their
27550 # values after options handling.
27551 ac_log="
27552 This file was extended by simgrid $as_me 3.3-svn, which was
27553 generated by GNU Autoconf 2.61.  Invocation command line was
27554
27555   CONFIG_FILES    = $CONFIG_FILES
27556   CONFIG_HEADERS  = $CONFIG_HEADERS
27557   CONFIG_LINKS    = $CONFIG_LINKS
27558   CONFIG_COMMANDS = $CONFIG_COMMANDS
27559   $ $0 $@
27560
27561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27562 "
27563
27564 _ACEOF
27565
27566 cat >>$CONFIG_STATUS <<_ACEOF
27567 # Files that config.status was made for.
27568 config_files="$ac_config_files"
27569 config_headers="$ac_config_headers"
27570 config_commands="$ac_config_commands"
27571
27572 _ACEOF
27573
27574 cat >>$CONFIG_STATUS <<\_ACEOF
27575 ac_cs_usage="\
27576 \`$as_me' instantiates files from templates according to the
27577 current configuration.
27578
27579 Usage: $0 [OPTIONS] [FILE]...
27580
27581   -h, --help       print this help, then exit
27582   -V, --version    print version number and configuration settings, then exit
27583   -q, --quiet      do not print progress messages
27584   -d, --debug      don't remove temporary files
27585       --recheck    update $as_me by reconfiguring in the same conditions
27586   --file=FILE[:TEMPLATE]
27587                    instantiate the configuration file FILE
27588   --header=FILE[:TEMPLATE]
27589                    instantiate the configuration header FILE
27590
27591 Configuration files:
27592 $config_files
27593
27594 Configuration headers:
27595 $config_headers
27596
27597 Configuration commands:
27598 $config_commands
27599
27600 Report bugs to <bug-autoconf@gnu.org>."
27601
27602 _ACEOF
27603 cat >>$CONFIG_STATUS <<_ACEOF
27604 ac_cs_version="\\
27605 simgrid config.status 3.3-svn
27606 configured by $0, generated by GNU Autoconf 2.61,
27607   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27608
27609 Copyright (C) 2006 Free Software Foundation, Inc.
27610 This config.status script is free software; the Free Software Foundation
27611 gives unlimited permission to copy, distribute and modify it."
27612
27613 ac_pwd='$ac_pwd'
27614 srcdir='$srcdir'
27615 INSTALL='$INSTALL'
27616 MKDIR_P='$MKDIR_P'
27617 _ACEOF
27618
27619 cat >>$CONFIG_STATUS <<\_ACEOF
27620 # If no file are specified by the user, then we need to provide default
27621 # value.  By we need to know if files were specified by the user.
27622 ac_need_defaults=:
27623 while test $# != 0
27624 do
27625   case $1 in
27626   --*=*)
27627     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27628     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27629     ac_shift=:
27630     ;;
27631   *)
27632     ac_option=$1
27633     ac_optarg=$2
27634     ac_shift=shift
27635     ;;
27636   esac
27637
27638   case $ac_option in
27639   # Handling of the options.
27640   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27641     ac_cs_recheck=: ;;
27642   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27643     echo "$ac_cs_version"; exit ;;
27644   --debug | --debu | --deb | --de | --d | -d )
27645     debug=: ;;
27646   --file | --fil | --fi | --f )
27647     $ac_shift
27648     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27649     ac_need_defaults=false;;
27650   --header | --heade | --head | --hea )
27651     $ac_shift
27652     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27653     ac_need_defaults=false;;
27654   --he | --h)
27655     # Conflict between --help and --header
27656     { echo "$as_me: error: ambiguous option: $1
27657 Try \`$0 --help' for more information." >&2
27658    { (exit 1); exit 1; }; };;
27659   --help | --hel | -h )
27660     echo "$ac_cs_usage"; exit ;;
27661   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27662   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27663     ac_cs_silent=: ;;
27664
27665   # This is an error.
27666   -*) { echo "$as_me: error: unrecognized option: $1
27667 Try \`$0 --help' for more information." >&2
27668    { (exit 1); exit 1; }; } ;;
27669
27670   *) ac_config_targets="$ac_config_targets $1"
27671      ac_need_defaults=false ;;
27672
27673   esac
27674   shift
27675 done
27676
27677 ac_configure_extra_args=
27678
27679 if $ac_cs_silent; then
27680   exec 6>/dev/null
27681   ac_configure_extra_args="$ac_configure_extra_args --silent"
27682 fi
27683
27684 _ACEOF
27685 cat >>$CONFIG_STATUS <<_ACEOF
27686 if \$ac_cs_recheck; then
27687   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27688   CONFIG_SHELL=$SHELL
27689   export CONFIG_SHELL
27690   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27691 fi
27692
27693 _ACEOF
27694 cat >>$CONFIG_STATUS <<\_ACEOF
27695 exec 5>>config.log
27696 {
27697   echo
27698   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27699 ## Running $as_me. ##
27700 _ASBOX
27701   echo "$ac_log"
27702 } >&5
27703
27704 _ACEOF
27705 cat >>$CONFIG_STATUS <<_ACEOF
27706 #
27707 # INIT-COMMANDS
27708 #
27709 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27710
27711 _ACEOF
27712
27713 cat >>$CONFIG_STATUS <<\_ACEOF
27714
27715 # Handling of arguments.
27716 for ac_config_target in $ac_config_targets
27717 do
27718   case $ac_config_target in
27719     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27720     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27721     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27722     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27723     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27724     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27725     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27726     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27727     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27728     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27729     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27730     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27731     "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
27732     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27733     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27734     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27735     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27736     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27737     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27738     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27739     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27740     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27741     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27742     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27743     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27744     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27745     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27746     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27747     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27748     "examples/gras/properties/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/properties/Makefile" ;;
27749     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27750     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27751     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27752     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27753     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27754     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27755     "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
27756     "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
27757
27758   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27759 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27760    { (exit 1); exit 1; }; };;
27761   esac
27762 done
27763
27764
27765 # If the user did not use the arguments to specify the items to instantiate,
27766 # then the envvar interface is used.  Set only those that are not.
27767 # We use the long form for the default assignment because of an extremely
27768 # bizarre bug on SunOS 4.1.3.
27769 if $ac_need_defaults; then
27770   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27771   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27772   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27773 fi
27774
27775 # Have a temporary directory for convenience.  Make it in the build tree
27776 # simply because there is no reason against having it here, and in addition,
27777 # creating and moving files from /tmp can sometimes cause problems.
27778 # Hook for its removal unless debugging.
27779 # Note that there is a small window in which the directory will not be cleaned:
27780 # after its creation but before its name has been assigned to `$tmp'.
27781 $debug ||
27782 {
27783   tmp=
27784   trap 'exit_status=$?
27785   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27786 ' 0
27787   trap '{ (exit 1); exit 1; }' 1 2 13 15
27788 }
27789 # Create a (secure) tmp directory for tmp files.
27790
27791 {
27792   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27793   test -n "$tmp" && test -d "$tmp"
27794 }  ||
27795 {
27796   tmp=./conf$$-$RANDOM
27797   (umask 077 && mkdir "$tmp")
27798 } ||
27799 {
27800    echo "$me: cannot create a temporary directory in ." >&2
27801    { (exit 1); exit 1; }
27802 }
27803
27804 #
27805 # Set up the sed scripts for CONFIG_FILES section.
27806 #
27807
27808 # No need to generate the scripts if there are no CONFIG_FILES.
27809 # This happens for instance when ./config.status config.h
27810 if test -n "$CONFIG_FILES"; then
27811
27812 _ACEOF
27813
27814
27815
27816 ac_delim='%!_!# '
27817 for ac_last_try in false false false false false :; do
27818   cat >conf$$subs.sed <<_ACEOF
27819 SHELL!$SHELL$ac_delim
27820 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27821 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27822 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27823 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27824 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27825 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27826 exec_prefix!$exec_prefix$ac_delim
27827 prefix!$prefix$ac_delim
27828 program_transform_name!$program_transform_name$ac_delim
27829 bindir!$bindir$ac_delim
27830 sbindir!$sbindir$ac_delim
27831 libexecdir!$libexecdir$ac_delim
27832 datarootdir!$datarootdir$ac_delim
27833 datadir!$datadir$ac_delim
27834 sysconfdir!$sysconfdir$ac_delim
27835 sharedstatedir!$sharedstatedir$ac_delim
27836 localstatedir!$localstatedir$ac_delim
27837 includedir!$includedir$ac_delim
27838 oldincludedir!$oldincludedir$ac_delim
27839 docdir!$docdir$ac_delim
27840 infodir!$infodir$ac_delim
27841 htmldir!$htmldir$ac_delim
27842 dvidir!$dvidir$ac_delim
27843 pdfdir!$pdfdir$ac_delim
27844 psdir!$psdir$ac_delim
27845 libdir!$libdir$ac_delim
27846 localedir!$localedir$ac_delim
27847 mandir!$mandir$ac_delim
27848 DEFS!$DEFS$ac_delim
27849 ECHO_C!$ECHO_C$ac_delim
27850 ECHO_N!$ECHO_N$ac_delim
27851 ECHO_T!$ECHO_T$ac_delim
27852 LIBS!$LIBS$ac_delim
27853 build_alias!$build_alias$ac_delim
27854 host_alias!$host_alias$ac_delim
27855 target_alias!$target_alias$ac_delim
27856 build!$build$ac_delim
27857 build_cpu!$build_cpu$ac_delim
27858 build_vendor!$build_vendor$ac_delim
27859 build_os!$build_os$ac_delim
27860 host!$host$ac_delim
27861 host_cpu!$host_cpu$ac_delim
27862 host_vendor!$host_vendor$ac_delim
27863 host_os!$host_os$ac_delim
27864 target!$target$ac_delim
27865 target_cpu!$target_cpu$ac_delim
27866 target_vendor!$target_vendor$ac_delim
27867 target_os!$target_os$ac_delim
27868 GCJ!$GCJ$ac_delim
27869 GCJFLAGS!$GCJFLAGS$ac_delim
27870 am__leading_dot!$am__leading_dot$ac_delim
27871 DEPDIR!$DEPDIR$ac_delim
27872 am__include!$am__include$ac_delim
27873 am__quote!$am__quote$ac_delim
27874 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27875 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27876 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27877 GCJDEPMODE!$GCJDEPMODE$ac_delim
27878 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27879 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27880 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27881 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27882 INSTALL_DATA!$INSTALL_DATA$ac_delim
27883 am__isrc!$am__isrc$ac_delim
27884 CYGPATH_W!$CYGPATH_W$ac_delim
27885 PACKAGE!$PACKAGE$ac_delim
27886 VERSION!$VERSION$ac_delim
27887 ACLOCAL!$ACLOCAL$ac_delim
27888 AUTOCONF!$AUTOCONF$ac_delim
27889 AUTOMAKE!$AUTOMAKE$ac_delim
27890 AUTOHEADER!$AUTOHEADER$ac_delim
27891 MAKEINFO!$MAKEINFO$ac_delim
27892 install_sh!$install_sh$ac_delim
27893 STRIP!$STRIP$ac_delim
27894 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27895 mkdir_p!$mkdir_p$ac_delim
27896 AWK!$AWK$ac_delim
27897 SET_MAKE!$SET_MAKE$ac_delim
27898 AMTAR!$AMTAR$ac_delim
27899 am__tar!$am__tar$ac_delim
27900 am__untar!$am__untar$ac_delim
27901 CC!$CC$ac_delim
27902 CFLAGS!$CFLAGS$ac_delim
27903 LDFLAGS!$LDFLAGS$ac_delim
27904 CPPFLAGS!$CPPFLAGS$ac_delim
27905 ac_ct_CC!$ac_ct_CC$ac_delim
27906 EXEEXT!$EXEEXT$ac_delim
27907 OBJEXT!$OBJEXT$ac_delim
27908 CCDEPMODE!$CCDEPMODE$ac_delim
27909 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27910 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27911 GREP!$GREP$ac_delim
27912 EGREP!$EGREP$ac_delim
27913 LN_S!$LN_S$ac_delim
27914 ECHO!$ECHO$ac_delim
27915 AR!$AR$ac_delim
27916 _ACEOF
27917
27918   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27919     break
27920   elif $ac_last_try; then
27921     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27922 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27923    { (exit 1); exit 1; }; }
27924   else
27925     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27926   fi
27927 done
27928
27929 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27930 if test -n "$ac_eof"; then
27931   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27932   ac_eof=`expr $ac_eof + 1`
27933 fi
27934
27935 cat >>$CONFIG_STATUS <<_ACEOF
27936 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27938 _ACEOF
27939 sed '
27940 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27941 s/^/s,@/; s/!/@,|#_!!_#|/
27942 :n
27943 t n
27944 s/'"$ac_delim"'$/,g/; t
27945 s/$/\\/; p
27946 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27947 ' >>$CONFIG_STATUS <conf$$subs.sed
27948 rm -f conf$$subs.sed
27949 cat >>$CONFIG_STATUS <<_ACEOF
27950 CEOF$ac_eof
27951 _ACEOF
27952
27953
27954 ac_delim='%!_!# '
27955 for ac_last_try in false false false false false :; do
27956   cat >conf$$subs.sed <<_ACEOF
27957 RANLIB!$RANLIB$ac_delim
27958 DLLTOOL!$DLLTOOL$ac_delim
27959 AS!$AS$ac_delim
27960 OBJDUMP!$OBJDUMP$ac_delim
27961 CPP!$CPP$ac_delim
27962 CXX!$CXX$ac_delim
27963 CXXFLAGS!$CXXFLAGS$ac_delim
27964 ac_ct_CXX!$ac_ct_CXX$ac_delim
27965 CXXDEPMODE!$CXXDEPMODE$ac_delim
27966 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27967 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27968 CXXCPP!$CXXCPP$ac_delim
27969 LIBTOOL!$LIBTOOL$ac_delim
27970 LIBOBJS!$LIBOBJS$ac_delim
27971 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27972 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27973 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
27974 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
27975 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27976 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27977 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27978 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27979 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27980 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27981 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27982 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27983 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27984 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27985 SMPI_DEP!$SMPI_DEP$ac_delim
27986 GRAS_DEP!$GRAS_DEP$ac_delim
27987 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27988 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27989 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27990 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27991 MAINT!$MAINT$ac_delim
27992 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27993 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27994 abs_builddir!$abs_builddir$ac_delim
27995 abs_srcdir!$abs_srcdir$ac_delim
27996 abs_top_builddir!$abs_top_builddir$ac_delim
27997 abs_top_srcdir!$abs_top_srcdir$ac_delim
27998 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
27999 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
28000 JAVAC!$JAVAC$ac_delim
28001 JAVA!$JAVA$ac_delim
28002 JAR!$JAR$ac_delim
28003 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28004 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28005 BASH!$BASH$ac_delim
28006 WARNING!$WARNING$ac_delim
28007 LEX!$LEX$ac_delim
28008 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28009 LEXLIB!$LEXLIB$ac_delim
28010 FLEXML!$FLEXML$ac_delim
28011 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28012 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28013 DOXYGEN!$DOXYGEN$ac_delim
28014 ADDR2LINE!$ADDR2LINE$ac_delim
28015 ac_configure_args!$ac_configure_args$ac_delim
28016 MD5SUM!$MD5SUM$ac_delim
28017 build_id!$build_id$ac_delim
28018 LTLIBOBJS!$LTLIBOBJS$ac_delim
28019 _ACEOF
28020
28021   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
28022     break
28023   elif $ac_last_try; then
28024     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28026    { (exit 1); exit 1; }; }
28027   else
28028     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28029   fi
28030 done
28031
28032 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28033 if test -n "$ac_eof"; then
28034   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28035   ac_eof=`expr $ac_eof + 1`
28036 fi
28037
28038 cat >>$CONFIG_STATUS <<_ACEOF
28039 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28041 _ACEOF
28042 sed '
28043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28044 s/^/s,@/; s/!/@,|#_!!_#|/
28045 :n
28046 t n
28047 s/'"$ac_delim"'$/,g/; t
28048 s/$/\\/; p
28049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28050 ' >>$CONFIG_STATUS <conf$$subs.sed
28051 rm -f conf$$subs.sed
28052 cat >>$CONFIG_STATUS <<_ACEOF
28053 :end
28054 s/|#_!!_#|//g
28055 CEOF$ac_eof
28056 _ACEOF
28057
28058
28059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28061 # trailing colons and then remove the whole line if VPATH becomes empty
28062 # (actually we leave an empty line to preserve line numbers).
28063 if test "x$srcdir" = x.; then
28064   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28065 s/:*\$(srcdir):*/:/
28066 s/:*\${srcdir}:*/:/
28067 s/:*@srcdir@:*/:/
28068 s/^\([^=]*=[     ]*\):*/\1/
28069 s/:*$//
28070 s/^[^=]*=[       ]*$//
28071 }'
28072 fi
28073
28074 cat >>$CONFIG_STATUS <<\_ACEOF
28075 fi # test -n "$CONFIG_FILES"
28076
28077
28078 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28079 do
28080   case $ac_tag in
28081   :[FHLC]) ac_mode=$ac_tag; continue;;
28082   esac
28083   case $ac_mode$ac_tag in
28084   :[FHL]*:*);;
28085   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28086 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28087    { (exit 1); exit 1; }; };;
28088   :[FH]-) ac_tag=-:-;;
28089   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28090   esac
28091   ac_save_IFS=$IFS
28092   IFS=:
28093   set x $ac_tag
28094   IFS=$ac_save_IFS
28095   shift
28096   ac_file=$1
28097   shift
28098
28099   case $ac_mode in
28100   :L) ac_source=$1;;
28101   :[FH])
28102     ac_file_inputs=
28103     for ac_f
28104     do
28105       case $ac_f in
28106       -) ac_f="$tmp/stdin";;
28107       *) # Look for the file first in the build tree, then in the source tree
28108          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28109          # because $ac_f cannot contain `:'.
28110          test -f "$ac_f" ||
28111            case $ac_f in
28112            [\\/$]*) false;;
28113            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28114            esac ||
28115            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28116 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28117    { (exit 1); exit 1; }; };;
28118       esac
28119       ac_file_inputs="$ac_file_inputs $ac_f"
28120     done
28121
28122     # Let's still pretend it is `configure' which instantiates (i.e., don't
28123     # use $as_me), people would be surprised to read:
28124     #    /* config.h.  Generated by config.status.  */
28125     configure_input="Generated from "`IFS=:
28126           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28127     if test x"$ac_file" != x-; then
28128       configure_input="$ac_file.  $configure_input"
28129       { echo "$as_me:$LINENO: creating $ac_file" >&5
28130 echo "$as_me: creating $ac_file" >&6;}
28131     fi
28132
28133     case $ac_tag in
28134     *:-:* | *:-) cat >"$tmp/stdin";;
28135     esac
28136     ;;
28137   esac
28138
28139   ac_dir=`$as_dirname -- "$ac_file" ||
28140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28141          X"$ac_file" : 'X\(//\)[^/]' \| \
28142          X"$ac_file" : 'X\(//\)$' \| \
28143          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28144 echo X"$ac_file" |
28145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28146             s//\1/
28147             q
28148           }
28149           /^X\(\/\/\)[^/].*/{
28150             s//\1/
28151             q
28152           }
28153           /^X\(\/\/\)$/{
28154             s//\1/
28155             q
28156           }
28157           /^X\(\/\).*/{
28158             s//\1/
28159             q
28160           }
28161           s/.*/./; q'`
28162   { as_dir="$ac_dir"
28163   case $as_dir in #(
28164   -*) as_dir=./$as_dir;;
28165   esac
28166   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28167     as_dirs=
28168     while :; do
28169       case $as_dir in #(
28170       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28171       *) as_qdir=$as_dir;;
28172       esac
28173       as_dirs="'$as_qdir' $as_dirs"
28174       as_dir=`$as_dirname -- "$as_dir" ||
28175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28176          X"$as_dir" : 'X\(//\)[^/]' \| \
28177          X"$as_dir" : 'X\(//\)$' \| \
28178          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28179 echo X"$as_dir" |
28180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28181             s//\1/
28182             q
28183           }
28184           /^X\(\/\/\)[^/].*/{
28185             s//\1/
28186             q
28187           }
28188           /^X\(\/\/\)$/{
28189             s//\1/
28190             q
28191           }
28192           /^X\(\/\).*/{
28193             s//\1/
28194             q
28195           }
28196           s/.*/./; q'`
28197       test -d "$as_dir" && break
28198     done
28199     test -z "$as_dirs" || eval "mkdir $as_dirs"
28200   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28201 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28202    { (exit 1); exit 1; }; }; }
28203   ac_builddir=.
28204
28205 case "$ac_dir" in
28206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28207 *)
28208   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28209   # A ".." for each directory in $ac_dir_suffix.
28210   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28211   case $ac_top_builddir_sub in
28212   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28213   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28214   esac ;;
28215 esac
28216 ac_abs_top_builddir=$ac_pwd
28217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28218 # for backward compatibility:
28219 ac_top_builddir=$ac_top_build_prefix
28220
28221 case $srcdir in
28222   .)  # We are building in place.
28223     ac_srcdir=.
28224     ac_top_srcdir=$ac_top_builddir_sub
28225     ac_abs_top_srcdir=$ac_pwd ;;
28226   [\\/]* | ?:[\\/]* )  # Absolute name.
28227     ac_srcdir=$srcdir$ac_dir_suffix;
28228     ac_top_srcdir=$srcdir
28229     ac_abs_top_srcdir=$srcdir ;;
28230   *) # Relative name.
28231     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28232     ac_top_srcdir=$ac_top_build_prefix$srcdir
28233     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28234 esac
28235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28236
28237
28238   case $ac_mode in
28239   :F)
28240   #
28241   # CONFIG_FILE
28242   #
28243
28244   case $INSTALL in
28245   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28246   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28247   esac
28248   ac_MKDIR_P=$MKDIR_P
28249   case $MKDIR_P in
28250   [\\/$]* | ?:[\\/]* ) ;;
28251   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28252   esac
28253 _ACEOF
28254
28255 cat >>$CONFIG_STATUS <<\_ACEOF
28256 # If the template does not know about datarootdir, expand it.
28257 # FIXME: This hack should be removed a few years after 2.60.
28258 ac_datarootdir_hack=; ac_datarootdir_seen=
28259
28260 case `sed -n '/datarootdir/ {
28261   p
28262   q
28263 }
28264 /@datadir@/p
28265 /@docdir@/p
28266 /@infodir@/p
28267 /@localedir@/p
28268 /@mandir@/p
28269 ' $ac_file_inputs` in
28270 *datarootdir*) ac_datarootdir_seen=yes;;
28271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28272   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28273 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28274 _ACEOF
28275 cat >>$CONFIG_STATUS <<_ACEOF
28276   ac_datarootdir_hack='
28277   s&@datadir@&$datadir&g
28278   s&@docdir@&$docdir&g
28279   s&@infodir@&$infodir&g
28280   s&@localedir@&$localedir&g
28281   s&@mandir@&$mandir&g
28282     s&\\\${datarootdir}&$datarootdir&g' ;;
28283 esac
28284 _ACEOF
28285
28286 # Neutralize VPATH when `$srcdir' = `.'.
28287 # Shell code in configure.ac might set extrasub.
28288 # FIXME: do we really want to maintain this feature?
28289 cat >>$CONFIG_STATUS <<_ACEOF
28290   sed "$ac_vpsub
28291 $extrasub
28292 _ACEOF
28293 cat >>$CONFIG_STATUS <<\_ACEOF
28294 :t
28295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28296 s&@configure_input@&$configure_input&;t t
28297 s&@top_builddir@&$ac_top_builddir_sub&;t t
28298 s&@srcdir@&$ac_srcdir&;t t
28299 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28300 s&@top_srcdir@&$ac_top_srcdir&;t t
28301 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28302 s&@builddir@&$ac_builddir&;t t
28303 s&@abs_builddir@&$ac_abs_builddir&;t t
28304 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28305 s&@INSTALL@&$ac_INSTALL&;t t
28306 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28307 $ac_datarootdir_hack
28308 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28309
28310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28311   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28312   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28313   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28314 which seems to be undefined.  Please make sure it is defined." >&5
28315 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28316 which seems to be undefined.  Please make sure it is defined." >&2;}
28317
28318   rm -f "$tmp/stdin"
28319   case $ac_file in
28320   -) cat "$tmp/out"; rm -f "$tmp/out";;
28321   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28322   esac
28323  ;;
28324   :H)
28325   #
28326   # CONFIG_HEADER
28327   #
28328 _ACEOF
28329
28330 # Transform confdefs.h into a sed script `conftest.defines', that
28331 # substitutes the proper values into config.h.in to produce config.h.
28332 rm -f conftest.defines conftest.tail
28333 # First, append a space to every undef/define line, to ease matching.
28334 echo 's/$/ /' >conftest.defines
28335 # Then, protect against being on the right side of a sed subst, or in
28336 # an unquoted here document, in config.status.  If some macros were
28337 # called several times there might be several #defines for the same
28338 # symbol, which is useless.  But do not sort them, since the last
28339 # AC_DEFINE must be honored.
28340 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28341 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28342 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28343 # PARAMS is the parameter list in the macro definition--in most cases, it's
28344 # just an empty string.
28345 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28346 ac_dB='\\)[      (].*,\\1define\\2'
28347 ac_dC=' '
28348 ac_dD=' ,'
28349
28350 uniq confdefs.h |
28351   sed -n '
28352         t rset
28353         :rset
28354         s/^[     ]*#[    ]*define[       ][      ]*//
28355         t ok
28356         d
28357         :ok
28358         s/[\\&,]/\\&/g
28359         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28360         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28361   ' >>conftest.defines
28362
28363 # Remove the space that was appended to ease matching.
28364 # Then replace #undef with comments.  This is necessary, for
28365 # example, in the case of _POSIX_SOURCE, which is predefined and required
28366 # on some systems where configure will not decide to define it.
28367 # (The regexp can be short, since the line contains either #define or #undef.)
28368 echo 's/ $//
28369 s,^[     #]*u.*,/* & */,' >>conftest.defines
28370
28371 # Break up conftest.defines:
28372 ac_max_sed_lines=50
28373
28374 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28375 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28376 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28377 # et cetera.
28378 ac_in='$ac_file_inputs'
28379 ac_out='"$tmp/out1"'
28380 ac_nxt='"$tmp/out2"'
28381
28382 while :
28383 do
28384   # Write a here document:
28385     cat >>$CONFIG_STATUS <<_ACEOF
28386     # First, check the format of the line:
28387     cat >"\$tmp/defines.sed" <<\\CEOF
28388 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28389 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28390 b
28391 :def
28392 _ACEOF
28393   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28394   echo 'CEOF
28395     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28396   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28397   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28398   grep . conftest.tail >/dev/null || break
28399   rm -f conftest.defines
28400   mv conftest.tail conftest.defines
28401 done
28402 rm -f conftest.defines conftest.tail
28403
28404 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28405 cat >>$CONFIG_STATUS <<\_ACEOF
28406   if test x"$ac_file" != x-; then
28407     echo "/* $configure_input  */" >"$tmp/config.h"
28408     cat "$ac_result" >>"$tmp/config.h"
28409     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28410       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28411 echo "$as_me: $ac_file is unchanged" >&6;}
28412     else
28413       rm -f $ac_file
28414       mv "$tmp/config.h" $ac_file
28415     fi
28416   else
28417     echo "/* $configure_input  */"
28418     cat "$ac_result"
28419   fi
28420   rm -f "$tmp/out12"
28421 # Compute $ac_file's index in $config_headers.
28422 _am_stamp_count=1
28423 for _am_header in $config_headers :; do
28424   case $_am_header in
28425     $ac_file | $ac_file:* )
28426       break ;;
28427     * )
28428       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28429   esac
28430 done
28431 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28432 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433          X$ac_file : 'X\(//\)[^/]' \| \
28434          X$ac_file : 'X\(//\)$' \| \
28435          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28436 echo X$ac_file |
28437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28438             s//\1/
28439             q
28440           }
28441           /^X\(\/\/\)[^/].*/{
28442             s//\1/
28443             q
28444           }
28445           /^X\(\/\/\)$/{
28446             s//\1/
28447             q
28448           }
28449           /^X\(\/\).*/{
28450             s//\1/
28451             q
28452           }
28453           s/.*/./; q'`/stamp-h$_am_stamp_count
28454  ;;
28455
28456   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28457 echo "$as_me: executing $ac_file commands" >&6;}
28458  ;;
28459   esac
28460
28461
28462   case $ac_file$ac_mode in
28463     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28464   # Strip MF so we end up with the name of the file.
28465   mf=`echo "$mf" | sed -e 's/:.*$//'`
28466   # Check whether this is an Automake generated Makefile or not.
28467   # We used to match only the files named `Makefile.in', but
28468   # some people rename them; so instead we look at the file content.
28469   # Grep'ing the first line is not enough: some people post-process
28470   # each Makefile.in and add a new line on top of each file to say so.
28471   # Grep'ing the whole file is not good either: AIX grep has a line
28472   # limit of 2048, but all sed's we know have understand at least 4000.
28473   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28474     dirpart=`$as_dirname -- "$mf" ||
28475 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28476          X"$mf" : 'X\(//\)[^/]' \| \
28477          X"$mf" : 'X\(//\)$' \| \
28478          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28479 echo X"$mf" |
28480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28481             s//\1/
28482             q
28483           }
28484           /^X\(\/\/\)[^/].*/{
28485             s//\1/
28486             q
28487           }
28488           /^X\(\/\/\)$/{
28489             s//\1/
28490             q
28491           }
28492           /^X\(\/\).*/{
28493             s//\1/
28494             q
28495           }
28496           s/.*/./; q'`
28497   else
28498     continue
28499   fi
28500   # Extract the definition of DEPDIR, am__include, and am__quote
28501   # from the Makefile without running `make'.
28502   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28503   test -z "$DEPDIR" && continue
28504   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28505   test -z "am__include" && continue
28506   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28507   # When using ansi2knr, U may be empty or an underscore; expand it
28508   U=`sed -n 's/^U = //p' < "$mf"`
28509   # Find all dependency output files, they are included files with
28510   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28511   # simplest approach to changing $(DEPDIR) to its actual value in the
28512   # expansion.
28513   for file in `sed -n "
28514     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28515        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28516     # Make sure the directory exists.
28517     test -f "$dirpart/$file" && continue
28518     fdir=`$as_dirname -- "$file" ||
28519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28520          X"$file" : 'X\(//\)[^/]' \| \
28521          X"$file" : 'X\(//\)$' \| \
28522          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28523 echo X"$file" |
28524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28525             s//\1/
28526             q
28527           }
28528           /^X\(\/\/\)[^/].*/{
28529             s//\1/
28530             q
28531           }
28532           /^X\(\/\/\)$/{
28533             s//\1/
28534             q
28535           }
28536           /^X\(\/\).*/{
28537             s//\1/
28538             q
28539           }
28540           s/.*/./; q'`
28541     { as_dir=$dirpart/$fdir
28542   case $as_dir in #(
28543   -*) as_dir=./$as_dir;;
28544   esac
28545   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28546     as_dirs=
28547     while :; do
28548       case $as_dir in #(
28549       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28550       *) as_qdir=$as_dir;;
28551       esac
28552       as_dirs="'$as_qdir' $as_dirs"
28553       as_dir=`$as_dirname -- "$as_dir" ||
28554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28555          X"$as_dir" : 'X\(//\)[^/]' \| \
28556          X"$as_dir" : 'X\(//\)$' \| \
28557          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28558 echo X"$as_dir" |
28559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28560             s//\1/
28561             q
28562           }
28563           /^X\(\/\/\)[^/].*/{
28564             s//\1/
28565             q
28566           }
28567           /^X\(\/\/\)$/{
28568             s//\1/
28569             q
28570           }
28571           /^X\(\/\).*/{
28572             s//\1/
28573             q
28574           }
28575           s/.*/./; q'`
28576       test -d "$as_dir" && break
28577     done
28578     test -z "$as_dirs" || eval "mkdir $as_dirs"
28579   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28580 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28581    { (exit 1); exit 1; }; }; }
28582     # echo "creating $dirpart/$file"
28583     echo '# dummy' > "$dirpart/$file"
28584   done
28585 done
28586  ;;
28587     "tools/graspe-slave":F)
28588     for file in                                                 \
28589      tools/graspe-slave           tools/graspe-master           \
28590     ; do                                                        \
28591       test -e $file && chmod +x $file;                          \
28592     done
28593  ;;
28594     "testsuite/Makefile":F)
28595     for file in                                                 \
28596      testsuite/run_tests                                        \
28597     ; do                                                        \
28598       test -e $file && chmod +x $file;                          \
28599     done
28600  ;;
28601     "testsuite/run_tests":F)
28602     for file in                                                 \
28603      testsuite/run_tests                                        \
28604     ; do                                                        \
28605       test -e $file && chmod +x $file;                          \
28606     done
28607  ;;
28608
28609   esac
28610 done # for ac_tag
28611
28612
28613 { (exit 0); exit 0; }
28614 _ACEOF
28615 chmod +x $CONFIG_STATUS
28616 ac_clean_files=$ac_clean_files_save
28617
28618
28619 # configure is writing to config.log, and then calls config.status.
28620 # config.status does its own redirection, appending to config.log.
28621 # Unfortunately, on DOS this fails, as config.log is still kept open
28622 # by configure, so config.status won't be able to write to it; its
28623 # output is simply discarded.  So we exec the FD to /dev/null,
28624 # effectively closing config.log, so it can be properly (re)opened and
28625 # appended to by config.status.  When coming back to configure, we
28626 # need to make the FD available again.
28627 if test "$no_create" != yes; then
28628   ac_cs_success=:
28629   ac_config_status_args=
28630   test "$silent" = yes &&
28631     ac_config_status_args="$ac_config_status_args --quiet"
28632   exec 5>/dev/null
28633   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28634   exec 5>>config.log
28635   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28636   # would make configure fail if this is the last instruction.
28637   $ac_cs_success || { (exit 1); exit 1; }
28638 fi
28639
28640
28641 echo "
28642
28643 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28644
28645         Compiler:        ${CC} (version: ${GCC_VERSION})
28646
28647         CFlags:          ${CFLAGS}
28648         CPPFlags:        ${CPPFLAGS}
28649         LDFlags:         ${LDFLAGS}
28650
28651         Context backend: ${with_context}
28652         Compile Java:    ${use_java}
28653
28654         Maintainer mode: ${USE_MAINTAINER_MODE}
28655
28656 "
28657 if test x$botbuild = xyes ; then
28658   echo "        This is a bot build. Do not specify --enable-botbuild if you are not a bot."
28659   echo
28660 fi
28661
28662 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
28663   echo "WARNING: "
28664   echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
28665   echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
28666   echo "WARNING:"
28667   echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
28668   echo "WARNING:"
28669 fi
28670
28671 echo $build_id > stamp.configure
28672
28673 exit 0;