Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gras prop example
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 4915 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 CPP
877 CXX
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
884 LIBTOOL
885 LIBOBJS
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
888 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-cvs 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-cvs:";;
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-cvs
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-cvs, 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-cvs'
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 ## System checks
19451 ##
19452
19453   { echo "$as_me:$LINENO: result: " >&5
19454 echo "${ECHO_T}" >&6; }
19455   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19456 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19457
19458 ac_ext=c
19459 ac_cpp='$CPP $CPPFLAGS'
19460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19463 if test -n "$ac_tool_prefix"; then
19464   for ac_prog in xlC gcc cc
19465   do
19466     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19470 if test "${ac_cv_prog_CC+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473   if test -n "$CC"; then
19474   ac_cv_prog_CC="$CC" # Let the user override the test.
19475 else
19476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19477 for as_dir in $PATH
19478 do
19479   IFS=$as_save_IFS
19480   test -z "$as_dir" && as_dir=.
19481   for ac_exec_ext in '' $ac_executable_extensions; do
19482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19483     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19485     break 2
19486   fi
19487 done
19488 done
19489 IFS=$as_save_IFS
19490
19491 fi
19492 fi
19493 CC=$ac_cv_prog_CC
19494 if test -n "$CC"; then
19495   { echo "$as_me:$LINENO: result: $CC" >&5
19496 echo "${ECHO_T}$CC" >&6; }
19497 else
19498   { echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6; }
19500 fi
19501
19502
19503     test -n "$CC" && break
19504   done
19505 fi
19506 if test -z "$CC"; then
19507   ac_ct_CC=$CC
19508   for ac_prog in xlC gcc cc
19509 do
19510   # Extract the first word of "$ac_prog", so it can be a program name with args.
19511 set dummy $ac_prog; ac_word=$2
19512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19515   echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517   if test -n "$ac_ct_CC"; then
19518   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19519 else
19520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19521 for as_dir in $PATH
19522 do
19523   IFS=$as_save_IFS
19524   test -z "$as_dir" && as_dir=.
19525   for ac_exec_ext in '' $ac_executable_extensions; do
19526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19527     ac_cv_prog_ac_ct_CC="$ac_prog"
19528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19529     break 2
19530   fi
19531 done
19532 done
19533 IFS=$as_save_IFS
19534
19535 fi
19536 fi
19537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19538 if test -n "$ac_ct_CC"; then
19539   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19540 echo "${ECHO_T}$ac_ct_CC" >&6; }
19541 else
19542   { echo "$as_me:$LINENO: result: no" >&5
19543 echo "${ECHO_T}no" >&6; }
19544 fi
19545
19546
19547   test -n "$ac_ct_CC" && break
19548 done
19549
19550   if test "x$ac_ct_CC" = x; then
19551     CC=""
19552   else
19553     case $cross_compiling:$ac_tool_warned in
19554 yes:)
19555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19556 whose name does not start with the host triplet.  If you think this
19557 configuration is useful to you, please write to autoconf@gnu.org." >&5
19558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19559 whose name does not start with the host triplet.  If you think this
19560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19561 ac_tool_warned=yes ;;
19562 esac
19563     CC=$ac_ct_CC
19564   fi
19565 fi
19566
19567
19568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19569 See \`config.log' for more details." >&5
19570 echo "$as_me: error: no acceptable C compiler found in \$PATH
19571 See \`config.log' for more details." >&2;}
19572    { (exit 1); exit 1; }; }
19573
19574 # Provide some information about the compiler.
19575 echo "$as_me:$LINENO: checking for C compiler version" >&5
19576 ac_compiler=`set X $ac_compile; echo $2`
19577 { (ac_try="$ac_compiler --version >&5"
19578 case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583   (eval "$ac_compiler --version >&5") 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }
19587 { (ac_try="$ac_compiler -v >&5"
19588 case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_compiler -v >&5") 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }
19597 { (ac_try="$ac_compiler -V >&5"
19598 case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_compiler -V >&5") 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }
19607
19608 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19609 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19610 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19611   echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613   cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619
19620 int
19621 main ()
19622 {
19623 #ifndef __GNUC__
19624        choke me
19625 #endif
19626
19627   ;
19628   return 0;
19629 }
19630 _ACEOF
19631 rm -f conftest.$ac_objext
19632 if { (ac_try="$ac_compile"
19633 case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_compile") 2>conftest.er1
19639   ac_status=$?
19640   grep -v '^ *+' conftest.er1 >conftest.err
19641   rm -f conftest.er1
19642   cat conftest.err >&5
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } && {
19645          test -z "$ac_c_werror_flag" ||
19646          test ! -s conftest.err
19647        } && test -s conftest.$ac_objext; then
19648   ac_compiler_gnu=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_compiler_gnu=no
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19658
19659 fi
19660 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19662 GCC=`test $ac_compiler_gnu = yes && echo yes`
19663 ac_test_CFLAGS=${CFLAGS+set}
19664 ac_save_CFLAGS=$CFLAGS
19665 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19667 if test "${ac_cv_prog_cc_g+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   ac_save_c_werror_flag=$ac_c_werror_flag
19671    ac_c_werror_flag=yes
19672    ac_cv_prog_cc_g=no
19673    CFLAGS="-g"
19674    cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680
19681 int
19682 main ()
19683 {
19684
19685   ;
19686   return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693   *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696   (eval "$ac_compile") 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } && {
19703          test -z "$ac_c_werror_flag" ||
19704          test ! -s conftest.err
19705        } && test -s conftest.$ac_objext; then
19706   ac_cv_prog_cc_g=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711         CFLAGS=""
19712       cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718
19719 int
19720 main ()
19721 {
19722
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest.$ac_objext
19728 if { (ac_try="$ac_compile"
19729 case "(($ac_try" in
19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731   *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734   (eval "$ac_compile") 2>conftest.er1
19735   ac_status=$?
19736   grep -v '^ *+' conftest.er1 >conftest.err
19737   rm -f conftest.er1
19738   cat conftest.err >&5
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); } && {
19741          test -z "$ac_c_werror_flag" ||
19742          test ! -s conftest.err
19743        } && test -s conftest.$ac_objext; then
19744   :
19745 else
19746   echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749         ac_c_werror_flag=$ac_save_c_werror_flag
19750          CFLAGS="-g"
19751          cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757
19758 int
19759 main ()
19760 {
19761
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_compile") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && {
19780          test -z "$ac_c_werror_flag" ||
19781          test ! -s conftest.err
19782        } && test -s conftest.$ac_objext; then
19783   ac_cv_prog_cc_g=yes
19784 else
19785   echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 fi
19793
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 fi
19796
19797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798    ac_c_werror_flag=$ac_save_c_werror_flag
19799 fi
19800 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19801 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19802 if test "$ac_test_CFLAGS" = set; then
19803   CFLAGS=$ac_save_CFLAGS
19804 elif test $ac_cv_prog_cc_g = yes; then
19805   if test "$GCC" = yes; then
19806     CFLAGS="-g -O2"
19807   else
19808     CFLAGS="-g"
19809   fi
19810 else
19811   if test "$GCC" = yes; then
19812     CFLAGS="-O2"
19813   else
19814     CFLAGS=
19815   fi
19816 fi
19817 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19818 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19819 if test "${ac_cv_prog_cc_c89+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   ac_cv_prog_cc_c89=no
19823 ac_save_CC=$CC
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <stdarg.h>
19831 #include <stdio.h>
19832 #include <sys/types.h>
19833 #include <sys/stat.h>
19834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19835 struct buf { int x; };
19836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19837 static char *e (p, i)
19838      char **p;
19839      int i;
19840 {
19841   return p[i];
19842 }
19843 static char *f (char * (*g) (char **, int), char **p, ...)
19844 {
19845   char *s;
19846   va_list v;
19847   va_start (v,p);
19848   s = g (p, va_arg (v,int));
19849   va_end (v);
19850   return s;
19851 }
19852
19853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19854    function prototypes and stuff, but not '\xHH' hex character constants.
19855    These don't provoke an error unfortunately, instead are silently treated
19856    as 'x'.  The following induces an error, until -std is added to get
19857    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19858    array size at least.  It's necessary to write '\x00'==0 to get something
19859    that's true only with -std.  */
19860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19861
19862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19863    inside strings and character constants.  */
19864 #define FOO(x) 'x'
19865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19866
19867 int test (int i, double x);
19868 struct s1 {int (*f) (int a);};
19869 struct s2 {int (*f) (double a);};
19870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19871 int argc;
19872 char **argv;
19873 int
19874 main ()
19875 {
19876 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19877   ;
19878   return 0;
19879 }
19880 _ACEOF
19881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19882         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19883 do
19884   CC="$ac_save_CC $ac_arg"
19885   rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_compile") 2>conftest.er1
19893   ac_status=$?
19894   grep -v '^ *+' conftest.er1 >conftest.err
19895   rm -f conftest.er1
19896   cat conftest.err >&5
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); } && {
19899          test -z "$ac_c_werror_flag" ||
19900          test ! -s conftest.err
19901        } && test -s conftest.$ac_objext; then
19902   ac_cv_prog_cc_c89=$ac_arg
19903 else
19904   echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907
19908 fi
19909
19910 rm -f core conftest.err conftest.$ac_objext
19911   test "x$ac_cv_prog_cc_c89" != "xno" && break
19912 done
19913 rm -f conftest.$ac_ext
19914 CC=$ac_save_CC
19915
19916 fi
19917 # AC_CACHE_VAL
19918 case "x$ac_cv_prog_cc_c89" in
19919   x)
19920     { echo "$as_me:$LINENO: result: none needed" >&5
19921 echo "${ECHO_T}none needed" >&6; } ;;
19922   xno)
19923     { echo "$as_me:$LINENO: result: unsupported" >&5
19924 echo "${ECHO_T}unsupported" >&6; } ;;
19925   *)
19926     CC="$CC $ac_cv_prog_cc_c89"
19927     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19928 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19929 esac
19930
19931
19932 ac_ext=c
19933 ac_cpp='$CPP $CPPFLAGS'
19934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937
19938 depcc="$CC"   am_compiler_list=
19939
19940 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19942 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19946   # We make a subdir and do the tests there.  Otherwise we can end up
19947   # making bogus files that we don't know about and never remove.  For
19948   # instance it was reported that on HP-UX the gcc test will end up
19949   # making a dummy file named `D' -- because `-MD' means `put the output
19950   # in D'.
19951   mkdir conftest.dir
19952   # Copy depcomp to subdir because otherwise we won't find it if we're
19953   # using a relative directory.
19954   cp "$am_depcomp" conftest.dir
19955   cd conftest.dir
19956   # We will build objects and dependencies in a subdirectory because
19957   # it helps to detect inapplicable dependency modes.  For instance
19958   # both Tru64's cc and ICC support -MD to output dependencies as a
19959   # side effect of compilation, but ICC will put the dependencies in
19960   # the current directory while Tru64 will put them in the object
19961   # directory.
19962   mkdir sub
19963
19964   am_cv_CC_dependencies_compiler_type=none
19965   if test "$am_compiler_list" = ""; then
19966      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19967   fi
19968   for depmode in $am_compiler_list; do
19969     # Setup a source with many dependencies, because some compilers
19970     # like to wrap large dependency lists on column 80 (with \), and
19971     # we should not choose a depcomp mode which is confused by this.
19972     #
19973     # We need to recreate these files for each test, as the compiler may
19974     # overwrite some of them when testing with obscure command lines.
19975     # This happens at least with the AIX C compiler.
19976     : > sub/conftest.c
19977     for i in 1 2 3 4 5 6; do
19978       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19979       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19980       # Solaris 8's {/usr,}/bin/sh.
19981       touch sub/conftst$i.h
19982     done
19983     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19984
19985     case $depmode in
19986     nosideeffect)
19987       # after this tag, mechanisms are not by side-effect, so they'll
19988       # only be used when explicitly requested
19989       if test "x$enable_dependency_tracking" = xyes; then
19990         continue
19991       else
19992         break
19993       fi
19994       ;;
19995     none) break ;;
19996     esac
19997     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19998     # mode.  It turns out that the SunPro C++ compiler does not properly
19999     # handle `-M -o', and we need to detect this.
20000     if depmode=$depmode \
20001        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20002        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20003        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20004          >/dev/null 2>conftest.err &&
20005        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20006        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20007        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20008        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20009       # icc doesn't choke on unknown options, it will just issue warnings
20010       # or remarks (even with -Werror).  So we grep stderr for any message
20011       # that says an option was ignored or not supported.
20012       # When given -MP, icc 7.0 and 7.1 complain thusly:
20013       #   icc: Command line warning: ignoring option '-M'; no argument required
20014       # The diagnosis changed in icc 8.0:
20015       #   icc: Command line remark: option '-MP' not supported
20016       if (grep 'ignoring option' conftest.err ||
20017           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20018         am_cv_CC_dependencies_compiler_type=$depmode
20019         break
20020       fi
20021     fi
20022   done
20023
20024   cd ..
20025   rm -rf conftest.dir
20026 else
20027   am_cv_CC_dependencies_compiler_type=none
20028 fi
20029
20030 fi
20031 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20032 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20034
20035  if
20036   test "x$enable_dependency_tracking" != xno \
20037   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20038   am__fastdepCC_TRUE=
20039   am__fastdepCC_FALSE='#'
20040 else
20041   am__fastdepCC_TRUE='#'
20042   am__fastdepCC_FALSE=
20043 fi
20044
20045
20046 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20047 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20048 # Just in case
20049 sleep 1
20050 echo timestamp > conftest.file
20051 # Do `set' in a subshell so we don't clobber the current shell's
20052 # arguments.  Must try -L first in case configure is actually a
20053 # symlink; some systems play weird games with the mod time of symlinks
20054 # (eg FreeBSD returns the mod time of the symlink's containing
20055 # directory).
20056 if (
20057    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20058    if test "$*" = "X"; then
20059       # -L didn't work.
20060       set X `ls -t $srcdir/configure conftest.file`
20061    fi
20062    rm -f conftest.file
20063    if test "$*" != "X $srcdir/configure conftest.file" \
20064       && test "$*" != "X conftest.file $srcdir/configure"; then
20065
20066       # If neither matched, then we have a broken ls.  This can happen
20067       # if, for instance, CONFIG_SHELL is bash and it inherits a
20068       # broken ls alias from the environment.  This has actually
20069       # happened.  Such a system could not be considered "sane".
20070       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20071 alias in your environment" >&5
20072 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20073 alias in your environment" >&2;}
20074    { (exit 1); exit 1; }; }
20075    fi
20076
20077    test "$2" = conftest.file
20078    )
20079 then
20080    # Ok.
20081    :
20082 else
20083    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20084 Check your system clock" >&5
20085 echo "$as_me: error: newly created file is older than distributed files!
20086 Check your system clock" >&2;}
20087    { (exit 1); exit 1; }; }
20088 fi
20089 { echo "$as_me:$LINENO: result: yes" >&5
20090 echo "${ECHO_T}yes" >&6; }
20091 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20093 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20094 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20095   echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097   cat >conftest.make <<\_ACEOF
20098 SHELL = /bin/sh
20099 all:
20100         @echo '@@@%%%=$(MAKE)=@@@%%%'
20101 _ACEOF
20102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20104   *@@@%%%=?*=@@@%%%*)
20105     eval ac_cv_prog_make_${ac_make}_set=yes;;
20106   *)
20107     eval ac_cv_prog_make_${ac_make}_set=no;;
20108 esac
20109 rm -f conftest.make
20110 fi
20111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20112   { echo "$as_me:$LINENO: result: yes" >&5
20113 echo "${ECHO_T}yes" >&6; }
20114   SET_MAKE=
20115 else
20116   { echo "$as_me:$LINENO: result: no" >&5
20117 echo "${ECHO_T}no" >&6; }
20118   SET_MAKE="MAKE=${MAKE-make}"
20119 fi
20120
20121
20122 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20123 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20124 if test "$cross_compiling" = yes; then
20125   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20126 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 #include <stdio.h>
20135 int
20136 main ()
20137 {
20138 printf("%s",NULL);
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_link") 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163
20164 cat >>confdefs.h <<\_ACEOF
20165 #define PRINTF_NULL_WORKING 1
20166 _ACEOF
20167
20168               { echo "$as_me:$LINENO: result: yes" >&5
20169 echo "${ECHO_T}yes" >&6; }
20170 else
20171   echo "$as_me: program exited with status $ac_status" >&5
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 ( exit $ac_status )
20176 { echo "$as_me:$LINENO: result: no" >&5
20177 echo "${ECHO_T}no" >&6; }
20178 fi
20179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20180 fi
20181
20182
20183
20184
20185     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20186 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20187     if test "${ac_cv_va_copy+set}" = set; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190
20191     ac_cv_va_copy=""
20192
20193
20194
20195     if test ".$ac_cv_va_copy" = .; then
20196         if test "$cross_compiling" = yes; then
20197   ac_cv_va_copy="C99"
20198 else
20199   cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205
20206 #include <stdlib.h>
20207 #include <stdarg.h>
20208 #include <string.h>
20209 #define DO_VA_COPY(d, s) va_copy((d), (s))
20210 void test(char *str, ...)
20211 {
20212     va_list ap, ap2;
20213     int i;
20214     va_start(ap, str);
20215     DO_VA_COPY(ap2, ap);
20216     for (i = 1; i <= 9; i++) {
20217         int k = (int)va_arg(ap, int);
20218         if (k != i)
20219             abort();
20220     }
20221     DO_VA_COPY(ap, ap2);
20222     for (i = 1; i <= 9; i++) {
20223         int k = (int)va_arg(ap, int);
20224         if (k != i)
20225             abort();
20226     }
20227     va_end(ap);
20228 }
20229 int main(int argc, char *argv[])
20230 {
20231     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20232     exit(0);
20233 }
20234
20235 _ACEOF
20236 rm -f conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240   *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243   (eval "$ac_link") 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; }; then
20256   ac_cv_va_copy="C99"
20257 else
20258   echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 fi
20263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20264 fi
20265
20266
20267             fi
20268
20269
20270
20271
20272     if test ".$ac_cv_va_copy" = .; then
20273         if test "$cross_compiling" = yes; then
20274   ac_cv_va_copy="GCM"
20275 else
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282
20283 #include <stdlib.h>
20284 #include <stdarg.h>
20285 #include <string.h>
20286 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20287 void test(char *str, ...)
20288 {
20289     va_list ap, ap2;
20290     int i;
20291     va_start(ap, str);
20292     DO_VA_COPY(ap2, ap);
20293     for (i = 1; i <= 9; i++) {
20294         int k = (int)va_arg(ap, int);
20295         if (k != i)
20296             abort();
20297     }
20298     DO_VA_COPY(ap, ap2);
20299     for (i = 1; i <= 9; i++) {
20300         int k = (int)va_arg(ap, int);
20301         if (k != i)
20302             abort();
20303     }
20304     va_end(ap);
20305 }
20306 int main(int argc, char *argv[])
20307 {
20308     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20309     exit(0);
20310 }
20311
20312 _ACEOF
20313 rm -f conftest$ac_exeext
20314 if { (ac_try="$ac_link"
20315 case "(($ac_try" in
20316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317   *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320   (eval "$ac_link") 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; }; then
20333   ac_cv_va_copy="GCM"
20334 else
20335   echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339 fi
20340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20341 fi
20342
20343
20344             fi
20345
20346
20347
20348
20349     if test ".$ac_cv_va_copy" = .; then
20350         if test "$cross_compiling" = yes; then
20351   ac_cv_va_copy="GCH"
20352 else
20353   cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h.  */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h.  */
20359
20360 #include <stdlib.h>
20361 #include <stdarg.h>
20362 #include <string.h>
20363 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20364 void test(char *str, ...)
20365 {
20366     va_list ap, ap2;
20367     int i;
20368     va_start(ap, str);
20369     DO_VA_COPY(ap2, ap);
20370     for (i = 1; i <= 9; i++) {
20371         int k = (int)va_arg(ap, int);
20372         if (k != i)
20373             abort();
20374     }
20375     DO_VA_COPY(ap, ap2);
20376     for (i = 1; i <= 9; i++) {
20377         int k = (int)va_arg(ap, int);
20378         if (k != i)
20379             abort();
20380     }
20381     va_end(ap);
20382 }
20383 int main(int argc, char *argv[])
20384 {
20385     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20386     exit(0);
20387 }
20388
20389 _ACEOF
20390 rm -f conftest$ac_exeext
20391 if { (ac_try="$ac_link"
20392 case "(($ac_try" in
20393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394   *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397   (eval "$ac_link") 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; }; then
20410   ac_cv_va_copy="GCH"
20411 else
20412   echo "$as_me: program exited with status $ac_status" >&5
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 fi
20417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20418 fi
20419
20420
20421             fi
20422
20423
20424
20425
20426     if test ".$ac_cv_va_copy" = .; then
20427         if test "$cross_compiling" = yes; then
20428   ac_cv_va_copy="GCB"
20429 else
20430   cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h.  */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h.  */
20436
20437 #include <stdlib.h>
20438 #include <stdarg.h>
20439 #include <string.h>
20440 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20441 void test(char *str, ...)
20442 {
20443     va_list ap, ap2;
20444     int i;
20445     va_start(ap, str);
20446     DO_VA_COPY(ap2, ap);
20447     for (i = 1; i <= 9; i++) {
20448         int k = (int)va_arg(ap, int);
20449         if (k != i)
20450             abort();
20451     }
20452     DO_VA_COPY(ap, ap2);
20453     for (i = 1; i <= 9; i++) {
20454         int k = (int)va_arg(ap, int);
20455         if (k != i)
20456             abort();
20457     }
20458     va_end(ap);
20459 }
20460 int main(int argc, char *argv[])
20461 {
20462     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20463     exit(0);
20464 }
20465
20466 _ACEOF
20467 rm -f conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_link") 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20484   ac_status=$?
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); }; }; then
20487   ac_cv_va_copy="GCB"
20488 else
20489   echo "$as_me: program exited with status $ac_status" >&5
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 fi
20494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20495 fi
20496
20497
20498             fi
20499
20500
20501
20502
20503     if test ".$ac_cv_va_copy" = .; then
20504         if test "$cross_compiling" = yes; then
20505   ac_cv_va_copy="ASS"
20506 else
20507   cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513
20514 #include <stdlib.h>
20515 #include <stdarg.h>
20516 #include <string.h>
20517 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20518 void test(char *str, ...)
20519 {
20520     va_list ap, ap2;
20521     int i;
20522     va_start(ap, str);
20523     DO_VA_COPY(ap2, ap);
20524     for (i = 1; i <= 9; i++) {
20525         int k = (int)va_arg(ap, int);
20526         if (k != i)
20527             abort();
20528     }
20529     DO_VA_COPY(ap, ap2);
20530     for (i = 1; i <= 9; i++) {
20531         int k = (int)va_arg(ap, int);
20532         if (k != i)
20533             abort();
20534     }
20535     va_end(ap);
20536 }
20537 int main(int argc, char *argv[])
20538 {
20539     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20540     exit(0);
20541 }
20542
20543 _ACEOF
20544 rm -f conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548   *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551   (eval "$ac_link") 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   ac_cv_va_copy="ASS"
20565 else
20566   echo "$as_me: program exited with status $ac_status" >&5
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570 fi
20571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20572 fi
20573
20574
20575             fi
20576
20577
20578
20579
20580     if test ".$ac_cv_va_copy" = .; then
20581         if test "$cross_compiling" = yes; then
20582   ac_cv_va_copy="ASP"
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590
20591 #include <stdlib.h>
20592 #include <stdarg.h>
20593 #include <string.h>
20594 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20595 void test(char *str, ...)
20596 {
20597     va_list ap, ap2;
20598     int i;
20599     va_start(ap, str);
20600     DO_VA_COPY(ap2, ap);
20601     for (i = 1; i <= 9; i++) {
20602         int k = (int)va_arg(ap, int);
20603         if (k != i)
20604             abort();
20605     }
20606     DO_VA_COPY(ap, ap2);
20607     for (i = 1; i <= 9; i++) {
20608         int k = (int)va_arg(ap, int);
20609         if (k != i)
20610             abort();
20611     }
20612     va_end(ap);
20613 }
20614 int main(int argc, char *argv[])
20615 {
20616     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20617     exit(0);
20618 }
20619
20620 _ACEOF
20621 rm -f conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_link") 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); }; }; then
20641   ac_cv_va_copy="ASP"
20642 else
20643   echo "$as_me: program exited with status $ac_status" >&5
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 fi
20648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20649 fi
20650
20651
20652             fi
20653
20654
20655
20656
20657     if test ".$ac_cv_va_copy" = .; then
20658         if test "$cross_compiling" = yes; then
20659   ac_cv_va_copy="CPS"
20660 else
20661   cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667
20668 #include <stdlib.h>
20669 #include <stdarg.h>
20670 #include <string.h>
20671 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20672 void test(char *str, ...)
20673 {
20674     va_list ap, ap2;
20675     int i;
20676     va_start(ap, str);
20677     DO_VA_COPY(ap2, ap);
20678     for (i = 1; i <= 9; i++) {
20679         int k = (int)va_arg(ap, int);
20680         if (k != i)
20681             abort();
20682     }
20683     DO_VA_COPY(ap, ap2);
20684     for (i = 1; i <= 9; i++) {
20685         int k = (int)va_arg(ap, int);
20686         if (k != i)
20687             abort();
20688     }
20689     va_end(ap);
20690 }
20691 int main(int argc, char *argv[])
20692 {
20693     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20694     exit(0);
20695 }
20696
20697 _ACEOF
20698 rm -f conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702   *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705   (eval "$ac_link") 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; }; then
20718   ac_cv_va_copy="CPS"
20719 else
20720   echo "$as_me: program exited with status $ac_status" >&5
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 fi
20725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20726 fi
20727
20728
20729             fi
20730
20731
20732
20733
20734     if test ".$ac_cv_va_copy" = .; then
20735         if test "$cross_compiling" = yes; then
20736   ac_cv_va_copy="CPP"
20737 else
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744
20745 #include <stdlib.h>
20746 #include <stdarg.h>
20747 #include <string.h>
20748 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20749 void test(char *str, ...)
20750 {
20751     va_list ap, ap2;
20752     int i;
20753     va_start(ap, str);
20754     DO_VA_COPY(ap2, ap);
20755     for (i = 1; i <= 9; i++) {
20756         int k = (int)va_arg(ap, int);
20757         if (k != i)
20758             abort();
20759     }
20760     DO_VA_COPY(ap, ap2);
20761     for (i = 1; i <= 9; i++) {
20762         int k = (int)va_arg(ap, int);
20763         if (k != i)
20764             abort();
20765     }
20766     va_end(ap);
20767 }
20768 int main(int argc, char *argv[])
20769 {
20770     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20771     exit(0);
20772 }
20773
20774 _ACEOF
20775 rm -f conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_link") 2>&5
20783   ac_status=$?
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; }; then
20795   ac_cv_va_copy="CPP"
20796 else
20797   echo "$as_me: program exited with status $ac_status" >&5
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 fi
20802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20803 fi
20804
20805
20806             fi
20807
20808     if test ".$ac_cv_va_copy" = .; then
20809         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20810 echo "$as_me: error: no working implementation found" >&2;}
20811    { (exit 1); exit 1; }; }
20812     fi
20813
20814 fi
20815
20816     if test ".$ac_cv_va_copy" = ".C99"; then
20817
20818 cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_VA_COPY 1
20820 _ACEOF
20821
20822   fi
20823
20824 cat >>confdefs.h <<_ACEOF
20825 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20826 _ACEOF
20827
20828
20829
20830     if test ".$ac_cv_va_copy" = ".C99"; then
20831       { echo "$as_me:$LINENO: result: yes" >&5
20832 echo "${ECHO_T}yes" >&6; }
20833   else
20834       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20835 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20836   fi
20837
20838
20839 # Checks for header files.
20840 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20842 if test "${ac_cv_header_stdc+set}" = set; then
20843   echo $ECHO_N "(cached) $ECHO_C" >&6
20844 else
20845   cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 #include <stdlib.h>
20852 #include <stdarg.h>
20853 #include <string.h>
20854 #include <float.h>
20855
20856 int
20857 main ()
20858 {
20859
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_compile") 2>conftest.er1
20872   ac_status=$?
20873   grep -v '^ *+' conftest.er1 >conftest.err
20874   rm -f conftest.er1
20875   cat conftest.err >&5
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); } && {
20878          test -z "$ac_c_werror_flag" ||
20879          test ! -s conftest.err
20880        } && test -s conftest.$ac_objext; then
20881   ac_cv_header_stdc=yes
20882 else
20883   echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886         ac_cv_header_stdc=no
20887 fi
20888
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20890
20891 if test $ac_cv_header_stdc = yes; then
20892   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 #include <string.h>
20900
20901 _ACEOF
20902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20903   $EGREP "memchr" >/dev/null 2>&1; then
20904   :
20905 else
20906   ac_cv_header_stdc=no
20907 fi
20908 rm -f conftest*
20909
20910 fi
20911
20912 if test $ac_cv_header_stdc = yes; then
20913   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20914   cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 #include <stdlib.h>
20921
20922 _ACEOF
20923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20924   $EGREP "free" >/dev/null 2>&1; then
20925   :
20926 else
20927   ac_cv_header_stdc=no
20928 fi
20929 rm -f conftest*
20930
20931 fi
20932
20933 if test $ac_cv_header_stdc = yes; then
20934   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20935   if test "$cross_compiling" = yes; then
20936   :
20937 else
20938   cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 #include <ctype.h>
20945 #include <stdlib.h>
20946 #if ((' ' & 0x0FF) == 0x020)
20947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20949 #else
20950 # define ISLOWER(c) \
20951                    (('a' <= (c) && (c) <= 'i') \
20952                      || ('j' <= (c) && (c) <= 'r') \
20953                      || ('s' <= (c) && (c) <= 'z'))
20954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20955 #endif
20956
20957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20958 int
20959 main ()
20960 {
20961   int i;
20962   for (i = 0; i < 256; i++)
20963     if (XOR (islower (i), ISLOWER (i))
20964         || toupper (i) != TOUPPER (i))
20965       return 2;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest$ac_exeext
20970 if { (ac_try="$ac_link"
20971 case "(($ac_try" in
20972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973   *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976   (eval "$ac_link") 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); }; }; then
20989   :
20990 else
20991   echo "$as_me: program exited with status $ac_status" >&5
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ( exit $ac_status )
20996 ac_cv_header_stdc=no
20997 fi
20998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20999 fi
21000
21001
21002 fi
21003 fi
21004 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21005 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21006 if test $ac_cv_header_stdc = yes; then
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define STDC_HEADERS 1
21010 _ACEOF
21011
21012 fi
21013
21014 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21015 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21016 if test "${ac_cv_header_time+set}" = set; then
21017   echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019   cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 #include <sys/types.h>
21026 #include <sys/time.h>
21027 #include <time.h>
21028
21029 int
21030 main ()
21031 {
21032 if ((struct tm *) 0)
21033 return 0;
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_compile") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && {
21052          test -z "$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        } && test -s conftest.$ac_objext; then
21055   ac_cv_header_time=yes
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060         ac_cv_header_time=no
21061 fi
21062
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 fi
21065 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21066 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21067 if test $ac_cv_header_time = yes; then
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define TIME_WITH_SYS_TIME 1
21071 _ACEOF
21072
21073 fi
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085 for ac_header in sys/socket.h \
21086                   sys/stat.h \
21087                   windows.h winsock.h winsock2.h \
21088                   sys/time.h \
21089                   errno.h unistd.h \
21090                   execinfo.h\
21091                   signal.h
21092 do
21093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 fi
21100 ac_res=`eval echo '${'$as_ac_Header'}'`
21101                { echo "$as_me:$LINENO: result: $ac_res" >&5
21102 echo "${ECHO_T}$ac_res" >&6; }
21103 else
21104   # Is the header compilable?
21105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 $ac_includes_default
21114 #include <$ac_header>
21115 _ACEOF
21116 rm -f conftest.$ac_objext
21117 if { (ac_try="$ac_compile"
21118 case "(($ac_try" in
21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120   *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123   (eval "$ac_compile") 2>conftest.er1
21124   ac_status=$?
21125   grep -v '^ *+' conftest.er1 >conftest.err
21126   rm -f conftest.er1
21127   cat conftest.err >&5
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); } && {
21130          test -z "$ac_c_werror_flag" ||
21131          test ! -s conftest.err
21132        } && test -s conftest.$ac_objext; then
21133   ac_header_compiler=yes
21134 else
21135   echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138         ac_header_compiler=no
21139 fi
21140
21141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21143 echo "${ECHO_T}$ac_header_compiler" >&6; }
21144
21145 # Is the header present?
21146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154 #include <$ac_header>
21155 _ACEOF
21156 if { (ac_try="$ac_cpp conftest.$ac_ext"
21157 case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21163   ac_status=$?
21164   grep -v '^ *+' conftest.er1 >conftest.err
21165   rm -f conftest.er1
21166   cat conftest.err >&5
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } >/dev/null && {
21169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21170          test ! -s conftest.err
21171        }; then
21172   ac_header_preproc=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177   ac_header_preproc=no
21178 fi
21179
21180 rm -f conftest.err conftest.$ac_ext
21181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21182 echo "${ECHO_T}$ac_header_preproc" >&6; }
21183
21184 # So?  What about this header?
21185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21186   yes:no: )
21187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21191     ac_header_preproc=yes
21192     ;;
21193   no:yes:* )
21194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21206     ( cat <<\_ASBOX
21207 ## -------------------------------------------------- ##
21208 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21209 ## -------------------------------------------------- ##
21210 _ASBOX
21211      ) | sed "s/^/$as_me: WARNING:     /" >&2
21212     ;;
21213 esac
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219   eval "$as_ac_Header=\$ac_header_preproc"
21220 fi
21221 ac_res=`eval echo '${'$as_ac_Header'}'`
21222                { echo "$as_me:$LINENO: result: $ac_res" >&5
21223 echo "${ECHO_T}$ac_res" >&6; }
21224
21225 fi
21226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21227   cat >>confdefs.h <<_ACEOF
21228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21229 _ACEOF
21230
21231 fi
21232
21233 done
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243 for ac_func in gettimeofday usleep \
21244                 getdtablesize \
21245                 sysconf\
21246                 readv\
21247                 popen\
21248                 signal\
21249                 getline
21250 do
21251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h.  */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h.  */
21263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21265 #define $ac_func innocuous_$ac_func
21266
21267 /* System header to define __stub macros and hopefully few prototypes,
21268     which can conflict with char $ac_func (); below.
21269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21270     <limits.h> exists even on freestanding compilers.  */
21271
21272 #ifdef __STDC__
21273 # include <limits.h>
21274 #else
21275 # include <assert.h>
21276 #endif
21277
21278 #undef $ac_func
21279
21280 /* Override any GCC internal prototype to avoid an error.
21281    Use char because int might match the return type of a GCC
21282    builtin and then its argument prototype would still apply.  */
21283 #ifdef __cplusplus
21284 extern "C"
21285 #endif
21286 char $ac_func ();
21287 /* The GNU C library defines this for functions which it implements
21288     to always fail with ENOSYS.  Some functions are actually named
21289     something starting with __ and the normal name is an alias.  */
21290 #if defined __stub_$ac_func || defined __stub___$ac_func
21291 choke me
21292 #endif
21293
21294 int
21295 main ()
21296 {
21297 return $ac_func ();
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (ac_try="$ac_link"
21304 case "(($ac_try" in
21305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306   *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309   (eval "$ac_link") 2>conftest.er1
21310   ac_status=$?
21311   grep -v '^ *+' conftest.er1 >conftest.err
21312   rm -f conftest.er1
21313   cat conftest.err >&5
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); } && {
21316          test -z "$ac_c_werror_flag" ||
21317          test ! -s conftest.err
21318        } && test -s conftest$ac_exeext &&
21319        $as_test_x conftest$ac_exeext; then
21320   eval "$as_ac_var=yes"
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325         eval "$as_ac_var=no"
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21329       conftest$ac_exeext conftest.$ac_ext
21330 fi
21331 ac_res=`eval echo '${'$as_ac_var'}'`
21332                { echo "$as_me:$LINENO: result: $ac_res" >&5
21333 echo "${ECHO_T}$ac_res" >&6; }
21334 if test `eval echo '${'$as_ac_var'}'` = yes; then
21335   cat >>confdefs.h <<_ACEOF
21336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21337 _ACEOF
21338
21339 fi
21340 done
21341
21342
21343 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21344
21345
21346 for ac_func in snprintf vsnprintf
21347 do
21348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21352   echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354   cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21362 #define $ac_func innocuous_$ac_func
21363
21364 /* System header to define __stub macros and hopefully few prototypes,
21365     which can conflict with char $ac_func (); below.
21366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21367     <limits.h> exists even on freestanding compilers.  */
21368
21369 #ifdef __STDC__
21370 # include <limits.h>
21371 #else
21372 # include <assert.h>
21373 #endif
21374
21375 #undef $ac_func
21376
21377 /* Override any GCC internal prototype to avoid an error.
21378    Use char because int might match the return type of a GCC
21379    builtin and then its argument prototype would still apply.  */
21380 #ifdef __cplusplus
21381 extern "C"
21382 #endif
21383 char $ac_func ();
21384 /* The GNU C library defines this for functions which it implements
21385     to always fail with ENOSYS.  Some functions are actually named
21386     something starting with __ and the normal name is an alias.  */
21387 #if defined __stub_$ac_func || defined __stub___$ac_func
21388 choke me
21389 #endif
21390
21391 int
21392 main ()
21393 {
21394 return $ac_func ();
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_link") 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } && {
21413          test -z "$ac_c_werror_flag" ||
21414          test ! -s conftest.err
21415        } && test -s conftest$ac_exeext &&
21416        $as_test_x conftest$ac_exeext; then
21417   eval "$as_ac_var=yes"
21418 else
21419   echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21421
21422         eval "$as_ac_var=no"
21423 fi
21424
21425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21426       conftest$ac_exeext conftest.$ac_ext
21427 fi
21428 ac_res=`eval echo '${'$as_ac_var'}'`
21429                { echo "$as_me:$LINENO: result: $ac_res" >&5
21430 echo "${ECHO_T}$ac_res" >&6; }
21431 if test `eval echo '${'$as_ac_var'}'` = yes; then
21432   cat >>confdefs.h <<_ACEOF
21433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21434 _ACEOF
21435
21436 fi
21437 done
21438
21439 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21440 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21441 if test "${ac_cv_have_working_snprintf+set}" = set; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   if test "$cross_compiling" = yes; then
21445   ac_cv_have_working_snprintf=cross
21446 else
21447   cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 #include <stdio.h>
21454
21455 int main(void)
21456 {
21457     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21458     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21459     int i;
21460     i = snprintf (bufs, 2, "%s", "111");
21461     if (strcmp (bufs, "1")) exit (1);
21462     if (i != 3) exit (1);
21463     i = snprintf (bufd, 2, "%d", 111);
21464     if (strcmp (bufd, "1")) exit (1);
21465     if (i != 3) exit (1);
21466     exit(0);
21467 }
21468 _ACEOF
21469 rm -f conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_link") 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); }; }; then
21489   ac_cv_have_working_snprintf=yes
21490 else
21491   echo "$as_me: program exited with status $ac_status" >&5
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495 ( exit $ac_status )
21496 ac_cv_have_working_snprintf=no
21497 fi
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21499 fi
21500
21501
21502 fi
21503
21504 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21505 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21506 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21507 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21508 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21509   echo $ECHO_N "(cached) $ECHO_C" >&6
21510 else
21511   if test "$cross_compiling" = yes; then
21512   ac_cv_have_working_vsnprintf=cross
21513 else
21514   cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h.  */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h.  */
21520 #include <stdio.h>
21521 #include <stdarg.h>
21522
21523 int my_vsnprintf (char *buf, const char *tmpl, ...)
21524 {
21525     int i;
21526     va_list args;
21527     va_start (args, tmpl);
21528     i = vsnprintf (buf, 2, tmpl, args);
21529     va_end (args);
21530     return i;
21531 }
21532
21533 int main(void)
21534 {
21535     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21536     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21537     int i;
21538     i = my_vsnprintf (bufs, "%s", "111");
21539     if (strcmp (bufs, "1")) exit (1);
21540     if (i != 3) exit (1);
21541     i = my_vsnprintf (bufd, "%d", 111);
21542     if (strcmp (bufd, "1")) exit (1);
21543     if (i != 3) exit (1);
21544     exit(0);
21545 }
21546 _ACEOF
21547 rm -f conftest$ac_exeext
21548 if { (ac_try="$ac_link"
21549 case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554   (eval "$ac_link") 2>&5
21555   ac_status=$?
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; }; then
21567   ac_cv_have_working_vsnprintf=yes
21568 else
21569   echo "$as_me: program exited with status $ac_status" >&5
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 ( exit $ac_status )
21574 ac_cv_have_working_vsnprintf=no
21575 fi
21576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21577 fi
21578
21579
21580 fi
21581
21582 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21583 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21584 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21585   case " $LIBOBJS " in
21586   *" snprintf.$ac_objext "* ) ;;
21587   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21588  ;;
21589 esac
21590
21591   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21592 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21593
21594 cat >>confdefs.h <<\_ACEOF
21595 #define PREFER_PORTABLE_SNPRINTF 1
21596 _ACEOF
21597
21598 fi
21599 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21600 { echo "$as_me:$LINENO: checking for asprintf" >&5
21601 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21602 if test "${ac_cv_func_asprintf+set}" = set; then
21603   echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605   cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h.  */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h.  */
21611 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21613 #define asprintf innocuous_asprintf
21614
21615 /* System header to define __stub macros and hopefully few prototypes,
21616     which can conflict with char asprintf (); below.
21617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21618     <limits.h> exists even on freestanding compilers.  */
21619
21620 #ifdef __STDC__
21621 # include <limits.h>
21622 #else
21623 # include <assert.h>
21624 #endif
21625
21626 #undef asprintf
21627
21628 /* Override any GCC internal prototype to avoid an error.
21629    Use char because int might match the return type of a GCC
21630    builtin and then its argument prototype would still apply.  */
21631 #ifdef __cplusplus
21632 extern "C"
21633 #endif
21634 char asprintf ();
21635 /* The GNU C library defines this for functions which it implements
21636     to always fail with ENOSYS.  Some functions are actually named
21637     something starting with __ and the normal name is an alias.  */
21638 #if defined __stub_asprintf || defined __stub___asprintf
21639 choke me
21640 #endif
21641
21642 int
21643 main ()
21644 {
21645 return asprintf ();
21646   ;
21647   return 0;
21648 }
21649 _ACEOF
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654   *) ac_try_echo=$ac_try;;
21655 esac
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657   (eval "$ac_link") 2>conftest.er1
21658   ac_status=$?
21659   grep -v '^ *+' conftest.er1 >conftest.err
21660   rm -f conftest.er1
21661   cat conftest.err >&5
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } && {
21664          test -z "$ac_c_werror_flag" ||
21665          test ! -s conftest.err
21666        } && test -s conftest$ac_exeext &&
21667        $as_test_x conftest$ac_exeext; then
21668   ac_cv_func_asprintf=yes
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673         ac_cv_func_asprintf=no
21674 fi
21675
21676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21677       conftest$ac_exeext conftest.$ac_ext
21678 fi
21679 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21680 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21681 if test $ac_cv_func_asprintf = yes; then
21682   :
21683 else
21684
21685 cat >>confdefs.h <<\_ACEOF
21686 #define NEED_ASPRINTF 1
21687 _ACEOF
21688
21689 fi
21690
21691 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21692 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21693 if test "${ac_cv_func_vasprintf+set}" = set; then
21694   echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696   cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21704 #define vasprintf innocuous_vasprintf
21705
21706 /* System header to define __stub macros and hopefully few prototypes,
21707     which can conflict with char vasprintf (); below.
21708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21709     <limits.h> exists even on freestanding compilers.  */
21710
21711 #ifdef __STDC__
21712 # include <limits.h>
21713 #else
21714 # include <assert.h>
21715 #endif
21716
21717 #undef vasprintf
21718
21719 /* Override any GCC internal prototype to avoid an error.
21720    Use char because int might match the return type of a GCC
21721    builtin and then its argument prototype would still apply.  */
21722 #ifdef __cplusplus
21723 extern "C"
21724 #endif
21725 char vasprintf ();
21726 /* The GNU C library defines this for functions which it implements
21727     to always fail with ENOSYS.  Some functions are actually named
21728     something starting with __ and the normal name is an alias.  */
21729 #if defined __stub_vasprintf || defined __stub___vasprintf
21730 choke me
21731 #endif
21732
21733 int
21734 main ()
21735 {
21736 return vasprintf ();
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest.$ac_objext conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_link") 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } && {
21755          test -z "$ac_c_werror_flag" ||
21756          test ! -s conftest.err
21757        } && test -s conftest$ac_exeext &&
21758        $as_test_x conftest$ac_exeext; then
21759   ac_cv_func_vasprintf=yes
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764         ac_cv_func_vasprintf=no
21765 fi
21766
21767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21768       conftest$ac_exeext conftest.$ac_ext
21769 fi
21770 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21771 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21772 if test $ac_cv_func_vasprintf = yes; then
21773   :
21774 else
21775
21776 cat >>confdefs.h <<\_ACEOF
21777 #define NEED_VASPRINTF 1
21778 _ACEOF
21779
21780 fi
21781
21782
21783 # Checks for typedefs, structures, and compiler characteristics.
21784 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21785 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21786 if test "${ac_cv_c_const+set}" = set; then
21787   echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789   cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795
21796 int
21797 main ()
21798 {
21799 /* FIXME: Include the comments suggested by Paul. */
21800 #ifndef __cplusplus
21801   /* Ultrix mips cc rejects this.  */
21802   typedef int charset[2];
21803   const charset cs;
21804   /* SunOS 4.1.1 cc rejects this.  */
21805   char const *const *pcpcc;
21806   char **ppc;
21807   /* NEC SVR4.0.2 mips cc rejects this.  */
21808   struct point {int x, y;};
21809   static struct point const zero = {0,0};
21810   /* AIX XL C 1.02.0.0 rejects this.
21811      It does not let you subtract one const X* pointer from another in
21812      an arm of an if-expression whose if-part is not a constant
21813      expression */
21814   const char *g = "string";
21815   pcpcc = &g + (g ? g-g : 0);
21816   /* HPUX 7.0 cc rejects these. */
21817   ++pcpcc;
21818   ppc = (char**) pcpcc;
21819   pcpcc = (char const *const *) ppc;
21820   { /* SCO 3.2v4 cc rejects this.  */
21821     char *t;
21822     char const *s = 0 ? (char *) 0 : (char const *) 0;
21823
21824     *t++ = 0;
21825     if (s) return 0;
21826   }
21827   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21828     int x[] = {25, 17};
21829     const int *foo = &x[0];
21830     ++foo;
21831   }
21832   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21833     typedef const int *iptr;
21834     iptr p = 0;
21835     ++p;
21836   }
21837   { /* AIX XL C 1.02.0.0 rejects this saying
21838        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21839     struct s { int j; const int *ap[3]; };
21840     struct s *b; b->j = 5;
21841   }
21842   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21843     const int foo = 10;
21844     if (!foo) return 0;
21845   }
21846   return !cs[0] && !zero.x;
21847 #endif
21848
21849   ;
21850   return 0;
21851 }
21852 _ACEOF
21853 rm -f conftest.$ac_objext
21854 if { (ac_try="$ac_compile"
21855 case "(($ac_try" in
21856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857   *) ac_try_echo=$ac_try;;
21858 esac
21859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860   (eval "$ac_compile") 2>conftest.er1
21861   ac_status=$?
21862   grep -v '^ *+' conftest.er1 >conftest.err
21863   rm -f conftest.er1
21864   cat conftest.err >&5
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); } && {
21867          test -z "$ac_c_werror_flag" ||
21868          test ! -s conftest.err
21869        } && test -s conftest.$ac_objext; then
21870   ac_cv_c_const=yes
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875         ac_cv_c_const=no
21876 fi
21877
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21879 fi
21880 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21881 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21882 if test $ac_cv_c_const = no; then
21883
21884 cat >>confdefs.h <<\_ACEOF
21885 #define const
21886 _ACEOF
21887
21888 fi
21889
21890 { echo "$as_me:$LINENO: checking for inline" >&5
21891 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21892 if test "${ac_cv_c_inline+set}" = set; then
21893   echo $ECHO_N "(cached) $ECHO_C" >&6
21894 else
21895   ac_cv_c_inline=no
21896 for ac_kw in inline __inline__ __inline; do
21897   cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h.  */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h.  */
21903 #ifndef __cplusplus
21904 typedef int foo_t;
21905 static $ac_kw foo_t static_foo () {return 0; }
21906 $ac_kw foo_t foo () {return 0; }
21907 #endif
21908
21909 _ACEOF
21910 rm -f conftest.$ac_objext
21911 if { (ac_try="$ac_compile"
21912 case "(($ac_try" in
21913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914   *) ac_try_echo=$ac_try;;
21915 esac
21916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917   (eval "$ac_compile") 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } && {
21924          test -z "$ac_c_werror_flag" ||
21925          test ! -s conftest.err
21926        } && test -s conftest.$ac_objext; then
21927   ac_cv_c_inline=$ac_kw
21928 else
21929   echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21931
21932
21933 fi
21934
21935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21936   test "$ac_cv_c_inline" != no && break
21937 done
21938
21939 fi
21940 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21941 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21942
21943
21944 case $ac_cv_c_inline in
21945   inline | yes) ;;
21946   *)
21947     case $ac_cv_c_inline in
21948       no) ac_val=;;
21949       *) ac_val=$ac_cv_c_inline;;
21950     esac
21951     cat >>confdefs.h <<_ACEOF
21952 #ifndef __cplusplus
21953 #define inline $ac_val
21954 #endif
21955 _ACEOF
21956     ;;
21957 esac
21958
21959 { echo "$as_me:$LINENO: checking for size_t" >&5
21960 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21961 if test "${ac_cv_type_size_t+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970 $ac_includes_default
21971 typedef size_t ac__type_new_;
21972 int
21973 main ()
21974 {
21975 if ((ac__type_new_ *) 0)
21976   return 0;
21977 if (sizeof (ac__type_new_))
21978   return 0;
21979   ;
21980   return 0;
21981 }
21982 _ACEOF
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987   *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990   (eval "$ac_compile") 2>conftest.er1
21991   ac_status=$?
21992   grep -v '^ *+' conftest.er1 >conftest.err
21993   rm -f conftest.er1
21994   cat conftest.err >&5
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } && {
21997          test -z "$ac_c_werror_flag" ||
21998          test ! -s conftest.err
21999        } && test -s conftest.$ac_objext; then
22000   ac_cv_type_size_t=yes
22001 else
22002   echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22004
22005         ac_cv_type_size_t=no
22006 fi
22007
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 fi
22010 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22011 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22012 if test $ac_cv_type_size_t = yes; then
22013   :
22014 else
22015
22016 cat >>confdefs.h <<_ACEOF
22017 #define size_t unsigned int
22018 _ACEOF
22019
22020 fi
22021
22022
22023 ###################################
22024 ## SimGrid and GRAS specific checks
22025 ##
22026
22027
22028   { echo "$as_me:$LINENO: result: " >&5
22029 echo "${ECHO_T}" >&6; }
22030   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22031 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22032
22033 # Check architecture signature begin
22034
22035 # Check for the architecture
22036 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22037 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22038 if test "${ac_cv_c_bigendian+set}" = set; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   # See if sys/param.h defines the BYTE_ORDER macro.
22042 cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h.  */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h.  */
22048 #include <sys/types.h>
22049 #include <sys/param.h>
22050
22051 int
22052 main ()
22053 {
22054 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22055         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22056  bogus endian macros
22057 #endif
22058
22059   ;
22060   return 0;
22061 }
22062 _ACEOF
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067   *) ac_try_echo=$ac_try;;
22068 esac
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070   (eval "$ac_compile") 2>conftest.er1
22071   ac_status=$?
22072   grep -v '^ *+' conftest.er1 >conftest.err
22073   rm -f conftest.er1
22074   cat conftest.err >&5
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } && {
22077          test -z "$ac_c_werror_flag" ||
22078          test ! -s conftest.err
22079        } && test -s conftest.$ac_objext; then
22080   # It does; now see whether it defined to BIG_ENDIAN or not.
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 #include <sys/types.h>
22088 #include <sys/param.h>
22089
22090 int
22091 main ()
22092 {
22093 #if BYTE_ORDER != BIG_ENDIAN
22094  not big endian
22095 #endif
22096
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_compile") 2>conftest.er1
22109   ac_status=$?
22110   grep -v '^ *+' conftest.er1 >conftest.err
22111   rm -f conftest.er1
22112   cat conftest.err >&5
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } && {
22115          test -z "$ac_c_werror_flag" ||
22116          test ! -s conftest.err
22117        } && test -s conftest.$ac_objext; then
22118   ac_cv_c_bigendian=yes
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123         ac_cv_c_bigendian=no
22124 fi
22125
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131         # It does not; compile a test program.
22132 if test "$cross_compiling" = yes; then
22133   # try to guess the endianness by grepping values into an object file
22134   ac_cv_c_bigendian=unknown
22135   cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h.  */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h.  */
22141 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22142 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22143 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22144 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22145 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22146 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22147 int
22148 main ()
22149 {
22150  _ascii (); _ebcdic ();
22151   ;
22152   return 0;
22153 }
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159   *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162   (eval "$ac_compile") 2>conftest.er1
22163   ac_status=$?
22164   grep -v '^ *+' conftest.er1 >conftest.err
22165   rm -f conftest.er1
22166   cat conftest.err >&5
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); } && {
22169          test -z "$ac_c_werror_flag" ||
22170          test ! -s conftest.err
22171        } && test -s conftest.$ac_objext; then
22172   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22173   ac_cv_c_bigendian=yes
22174 fi
22175 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22176   if test "$ac_cv_c_bigendian" = unknown; then
22177     ac_cv_c_bigendian=no
22178   else
22179     # finding both strings is unlikely to happen, but who knows?
22180     ac_cv_c_bigendian=unknown
22181   fi
22182 fi
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 else
22192   cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 $ac_includes_default
22199 int
22200 main ()
22201 {
22202
22203   /* Are we little or big endian?  From Harbison&Steele.  */
22204   union
22205   {
22206     long int l;
22207     char c[sizeof (long int)];
22208   } u;
22209   u.l = 1;
22210   return u.c[sizeof (long int) - 1] == 1;
22211
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 rm -f conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220   *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223   (eval "$ac_link") 2>&5
22224   ac_status=$?
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); }; }; then
22236   ac_cv_c_bigendian=no
22237 else
22238   echo "$as_me: program exited with status $ac_status" >&5
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242 ( exit $ac_status )
22243 ac_cv_c_bigendian=yes
22244 fi
22245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22246 fi
22247
22248
22249 fi
22250
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 fi
22253 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22254 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22255 case $ac_cv_c_bigendian in
22256   yes)
22257     endian=1 ;;
22258   no)
22259     endian=0 ;;
22260   *)
22261     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22262 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22263    { (exit 1); exit 1; }; } ;;
22264 esac
22265
22266
22267 cat >>confdefs.h <<_ACEOF
22268 #define GRAS_BIGENDIAN $endian
22269 _ACEOF
22270
22271
22272 { echo "$as_me:$LINENO: checking size of char" >&5
22273 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22274     if test "${ac_cv_sizeof_char+set}" = set; then
22275   echo $ECHO_N "(cached) $ECHO_C" >&6
22276 else
22277   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22278    cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284 #include "confdefs.h"
22285    #include <sys/types.h>
22286
22287
22288 int
22289 main ()
22290 {
22291 switch (0) case 0: case (sizeof (char) == $ac_size):;
22292   ;
22293   return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext
22297 if { (ac_try="$ac_compile"
22298 case "(($ac_try" in
22299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300   *) ac_try_echo=$ac_try;;
22301 esac
22302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303   (eval "$ac_compile") 2>conftest.er1
22304   ac_status=$?
22305   grep -v '^ *+' conftest.er1 >conftest.err
22306   rm -f conftest.er1
22307   cat conftest.err >&5
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); } && {
22310          test -z "$ac_c_werror_flag" ||
22311          test ! -s conftest.err
22312        } && test -s conftest.$ac_objext; then
22313   ac_cv_sizeof_char=$ac_size
22314 else
22315   echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318
22319 fi
22320
22321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322    if test x$ac_cv_sizeof_char != x ; then break; fi
22323   done
22324
22325 fi
22326
22327
22328 unspecif=$ac_cv_sizeof_char
22329 if test x$unspecif = x ; then
22330   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22331 echo "$as_me: error: cannot determine a size for char" >&2;}
22332    { (exit 1); exit 1; }; }
22333 fi
22334
22335     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22336   echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22339    cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 #include "confdefs.h"
22346    #include <sys/types.h>
22347
22348
22349 int
22350 main ()
22351 {
22352 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364   (eval "$ac_compile") 2>conftest.er1
22365   ac_status=$?
22366   grep -v '^ *+' conftest.er1 >conftest.err
22367   rm -f conftest.er1
22368   cat conftest.err >&5
22369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370   (exit $ac_status); } && {
22371          test -z "$ac_c_werror_flag" ||
22372          test ! -s conftest.err
22373        } && test -s conftest.$ac_objext; then
22374   ac_cv_sizeof_signed_char=$ac_size
22375 else
22376   echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22378
22379
22380 fi
22381
22382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22384   done
22385
22386 fi
22387
22388
22389 signed=$ac_cv_sizeof_signed_char
22390 if test x$signed = x ; then
22391   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22392 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22393    { (exit 1); exit 1; }; }
22394 fi
22395 if test x$unspecif != x$signed ; then
22396   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22397 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22398    { (exit 1); exit 1; }; }
22399 fi
22400
22401     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22405    cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 #include "confdefs.h"
22412    #include <sys/types.h>
22413
22414
22415 int
22416 main ()
22417 {
22418 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22419   ;
22420   return 0;
22421 }
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427   *) ac_try_echo=$ac_try;;
22428 esac
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430   (eval "$ac_compile") 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } && {
22437          test -z "$ac_c_werror_flag" ||
22438          test ! -s conftest.err
22439        } && test -s conftest.$ac_objext; then
22440   ac_cv_sizeof_unsigned_char=$ac_size
22441 else
22442   echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445
22446 fi
22447
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22450   done
22451
22452 fi
22453
22454
22455 unsigned=$ac_cv_sizeof_unsigned_char
22456 if test x$unsigned = x ; then
22457   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22458 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22459    { (exit 1); exit 1; }; }
22460 fi
22461 if test x$unsigned != x$signed ; then
22462   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22463 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22464    { (exit 1); exit 1; }; }
22465 fi
22466
22467 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22468 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22469                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22470 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22471
22472  if test "${ac_cv_struct_boundary_char+set}" = set; then
22473   echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22476    cat >conftest.$ac_ext <<_ACEOF
22477 /* confdefs.h.  */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h.  */
22482 #include "confdefs.h"
22483      #include <sys/types.h>
22484      struct s { char c; char i; };
22485
22486 int
22487 main ()
22488 {
22489 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 rm -f conftest.$ac_objext
22495 if { (ac_try="$ac_compile"
22496 case "(($ac_try" in
22497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498   *) ac_try_echo=$ac_try;;
22499 esac
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501   (eval "$ac_compile") 2>conftest.er1
22502   ac_status=$?
22503   grep -v '^ *+' conftest.er1 >conftest.err
22504   rm -f conftest.er1
22505   cat conftest.err >&5
22506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507   (exit $ac_status); } && {
22508          test -z "$ac_c_werror_flag" ||
22509          test ! -s conftest.err
22510        } && test -s conftest.$ac_objext; then
22511   ac_cv_struct_boundary_char=$ac_size
22512 else
22513   echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22515
22516
22517 fi
22518
22519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22520    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22521   done
22522
22523 fi
22524
22525  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22526 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22527  if test x$ac_cv_struct_boundary_char = x ; then
22528    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22529 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22530    { (exit 1); exit 1; }; }
22531  fi
22532
22533 { echo "$as_me:$LINENO: checking size of short int" >&5
22534 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22535     if test "${ac_cv_sizeof_short_int+set}" = set; then
22536   echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22539    cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545 #include "confdefs.h"
22546    #include <sys/types.h>
22547
22548
22549 int
22550 main ()
22551 {
22552 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22553   ;
22554   return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564   (eval "$ac_compile") 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && {
22571          test -z "$ac_c_werror_flag" ||
22572          test ! -s conftest.err
22573        } && test -s conftest.$ac_objext; then
22574   ac_cv_sizeof_short_int=$ac_size
22575 else
22576   echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579
22580 fi
22581
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22584   done
22585
22586 fi
22587
22588
22589 unspecif=$ac_cv_sizeof_short_int
22590 if test x$unspecif = x ; then
22591   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22592 echo "$as_me: error: cannot determine a size for short int" >&2;}
22593    { (exit 1); exit 1; }; }
22594 fi
22595
22596     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22597   echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22600    cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 #include "confdefs.h"
22607    #include <sys/types.h>
22608
22609
22610 int
22611 main ()
22612 {
22613 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22614   ;
22615   return 0;
22616 }
22617 _ACEOF
22618 rm -f conftest.$ac_objext
22619 if { (ac_try="$ac_compile"
22620 case "(($ac_try" in
22621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622   *) ac_try_echo=$ac_try;;
22623 esac
22624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625   (eval "$ac_compile") 2>conftest.er1
22626   ac_status=$?
22627   grep -v '^ *+' conftest.er1 >conftest.err
22628   rm -f conftest.er1
22629   cat conftest.err >&5
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); } && {
22632          test -z "$ac_c_werror_flag" ||
22633          test ! -s conftest.err
22634        } && test -s conftest.$ac_objext; then
22635   ac_cv_sizeof_signed_short_int=$ac_size
22636 else
22637   echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640
22641 fi
22642
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22645   done
22646
22647 fi
22648
22649
22650 signed=$ac_cv_sizeof_signed_short_int
22651 if test x$signed = x ; then
22652   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22653 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22654    { (exit 1); exit 1; }; }
22655 fi
22656 if test x$unspecif != x$signed ; then
22657   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22658 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22659    { (exit 1); exit 1; }; }
22660 fi
22661
22662     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22666    cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h.  */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h.  */
22672 #include "confdefs.h"
22673    #include <sys/types.h>
22674
22675
22676 int
22677 main ()
22678 {
22679 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22680   ;
22681   return 0;
22682 }
22683 _ACEOF
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688   *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691   (eval "$ac_compile") 2>conftest.er1
22692   ac_status=$?
22693   grep -v '^ *+' conftest.er1 >conftest.err
22694   rm -f conftest.er1
22695   cat conftest.err >&5
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } && {
22698          test -z "$ac_c_werror_flag" ||
22699          test ! -s conftest.err
22700        } && test -s conftest.$ac_objext; then
22701   ac_cv_sizeof_unsigned_short_int=$ac_size
22702 else
22703   echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706
22707 fi
22708
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22711   done
22712
22713 fi
22714
22715
22716 unsigned=$ac_cv_sizeof_unsigned_short_int
22717 if test x$unsigned = x ; then
22718   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22719 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22720    { (exit 1); exit 1; }; }
22721 fi
22722 if test x$unsigned != x$signed ; then
22723   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22724 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22725    { (exit 1); exit 1; }; }
22726 fi
22727
22728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22729 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22730              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22731 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22732
22733  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22734   echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22737    cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743 #include "confdefs.h"
22744      #include <sys/types.h>
22745      struct s { char c; short int i; };
22746
22747 int
22748 main ()
22749 {
22750 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759   *) ac_try_echo=$ac_try;;
22760 esac
22761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22762   (eval "$ac_compile") 2>conftest.er1
22763   ac_status=$?
22764   grep -v '^ *+' conftest.er1 >conftest.err
22765   rm -f conftest.er1
22766   cat conftest.err >&5
22767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768   (exit $ac_status); } && {
22769          test -z "$ac_c_werror_flag" ||
22770          test ! -s conftest.err
22771        } && test -s conftest.$ac_objext; then
22772   ac_cv_struct_boundary_short_int=$ac_size
22773 else
22774   echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22776
22777
22778 fi
22779
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22782   done
22783
22784 fi
22785
22786  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22787 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22788  if test x$ac_cv_struct_boundary_short_int = x ; then
22789    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22790 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22791    { (exit 1); exit 1; }; }
22792  fi
22793
22794 { echo "$as_me:$LINENO: checking size of int" >&5
22795 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22796     if test "${ac_cv_sizeof_int+set}" = set; then
22797   echo $ECHO_N "(cached) $ECHO_C" >&6
22798 else
22799   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22800    cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h.  */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h.  */
22806 #include "confdefs.h"
22807    #include <sys/types.h>
22808
22809
22810 int
22811 main ()
22812 {
22813 switch (0) case 0: case (sizeof (int) == $ac_size):;
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext
22819 if { (ac_try="$ac_compile"
22820 case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_compile") 2>conftest.er1
22826   ac_status=$?
22827   grep -v '^ *+' conftest.er1 >conftest.err
22828   rm -f conftest.er1
22829   cat conftest.err >&5
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } && {
22832          test -z "$ac_c_werror_flag" ||
22833          test ! -s conftest.err
22834        } && test -s conftest.$ac_objext; then
22835   ac_cv_sizeof_int=$ac_size
22836 else
22837   echo "$as_me: failed program was:" >&5
22838 sed 's/^/| /' conftest.$ac_ext >&5
22839
22840
22841 fi
22842
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844    if test x$ac_cv_sizeof_int != x ; then break; fi
22845   done
22846
22847 fi
22848
22849
22850 unspecif=$ac_cv_sizeof_int
22851 if test x$unspecif = x ; then
22852   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22853 echo "$as_me: error: cannot determine a size for int" >&2;}
22854    { (exit 1); exit 1; }; }
22855 fi
22856
22857     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22858   echo $ECHO_N "(cached) $ECHO_C" >&6
22859 else
22860   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22861    cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867 #include "confdefs.h"
22868    #include <sys/types.h>
22869
22870
22871 int
22872 main ()
22873 {
22874 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 rm -f conftest.$ac_objext
22880 if { (ac_try="$ac_compile"
22881 case "(($ac_try" in
22882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883   *) ac_try_echo=$ac_try;;
22884 esac
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886   (eval "$ac_compile") 2>conftest.er1
22887   ac_status=$?
22888   grep -v '^ *+' conftest.er1 >conftest.err
22889   rm -f conftest.er1
22890   cat conftest.err >&5
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); } && {
22893          test -z "$ac_c_werror_flag" ||
22894          test ! -s conftest.err
22895        } && test -s conftest.$ac_objext; then
22896   ac_cv_sizeof_signed_int=$ac_size
22897 else
22898   echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901
22902 fi
22903
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22906   done
22907
22908 fi
22909
22910
22911 signed=$ac_cv_sizeof_signed_int
22912 if test x$signed = x ; then
22913   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22914 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22915    { (exit 1); exit 1; }; }
22916 fi
22917 if test x$unspecif != x$signed ; then
22918   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22919 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22920    { (exit 1); exit 1; }; }
22921 fi
22922
22923     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22927    cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 #include "confdefs.h"
22934    #include <sys/types.h>
22935
22936
22937 int
22938 main ()
22939 {
22940 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22941   ;
22942   return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext
22946 if { (ac_try="$ac_compile"
22947 case "(($ac_try" in
22948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949   *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952   (eval "$ac_compile") 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } && {
22959          test -z "$ac_c_werror_flag" ||
22960          test ! -s conftest.err
22961        } && test -s conftest.$ac_objext; then
22962   ac_cv_sizeof_unsigned_int=$ac_size
22963 else
22964   echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967
22968 fi
22969
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22972   done
22973
22974 fi
22975
22976
22977 unsigned=$ac_cv_sizeof_unsigned_int
22978 if test x$unsigned = x ; then
22979   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22980 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22981    { (exit 1); exit 1; }; }
22982 fi
22983 if test x$unsigned != x$signed ; then
22984   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22985 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22986    { (exit 1); exit 1; }; }
22987 fi
22988
22989 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22990 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22991                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22992 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22993
22994  if test "${ac_cv_struct_boundary_int+set}" = set; then
22995   echo $ECHO_N "(cached) $ECHO_C" >&6
22996 else
22997   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22998    cat >conftest.$ac_ext <<_ACEOF
22999 /* confdefs.h.  */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h.  */
23004 #include "confdefs.h"
23005      #include <sys/types.h>
23006      struct s { char c; int i; };
23007
23008 int
23009 main ()
23010 {
23011 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23012   ;
23013   return 0;
23014 }
23015 _ACEOF
23016 rm -f conftest.$ac_objext
23017 if { (ac_try="$ac_compile"
23018 case "(($ac_try" in
23019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020   *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023   (eval "$ac_compile") 2>conftest.er1
23024   ac_status=$?
23025   grep -v '^ *+' conftest.er1 >conftest.err
23026   rm -f conftest.er1
23027   cat conftest.err >&5
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } && {
23030          test -z "$ac_c_werror_flag" ||
23031          test ! -s conftest.err
23032        } && test -s conftest.$ac_objext; then
23033   ac_cv_struct_boundary_int=$ac_size
23034 else
23035   echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038
23039 fi
23040
23041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23043   done
23044
23045 fi
23046
23047  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23048 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23049  if test x$ac_cv_struct_boundary_int = x ; then
23050    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23051 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23052    { (exit 1); exit 1; }; }
23053  fi
23054
23055 { echo "$as_me:$LINENO: checking size of long int" >&5
23056 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23057     if test "${ac_cv_sizeof_long_int+set}" = set; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23061    cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h.  */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h.  */
23067 #include "confdefs.h"
23068    #include <sys/types.h>
23069
23070
23071 int
23072 main ()
23073 {
23074 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23075   ;
23076   return 0;
23077 }
23078 _ACEOF
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083   *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086   (eval "$ac_compile") 2>conftest.er1
23087   ac_status=$?
23088   grep -v '^ *+' conftest.er1 >conftest.err
23089   rm -f conftest.er1
23090   cat conftest.err >&5
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } && {
23093          test -z "$ac_c_werror_flag" ||
23094          test ! -s conftest.err
23095        } && test -s conftest.$ac_objext; then
23096   ac_cv_sizeof_long_int=$ac_size
23097 else
23098   echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101
23102 fi
23103
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23106   done
23107
23108 fi
23109
23110
23111 unspecif=$ac_cv_sizeof_long_int
23112 if test x$unspecif = x ; then
23113   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23114 echo "$as_me: error: cannot determine a size for long int" >&2;}
23115    { (exit 1); exit 1; }; }
23116 fi
23117
23118     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23119   echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23122    cat >conftest.$ac_ext <<_ACEOF
23123 /* confdefs.h.  */
23124 _ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h.  */
23128 #include "confdefs.h"
23129    #include <sys/types.h>
23130
23131
23132 int
23133 main ()
23134 {
23135 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23136   ;
23137   return 0;
23138 }
23139 _ACEOF
23140 rm -f conftest.$ac_objext
23141 if { (ac_try="$ac_compile"
23142 case "(($ac_try" in
23143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144   *) ac_try_echo=$ac_try;;
23145 esac
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147   (eval "$ac_compile") 2>conftest.er1
23148   ac_status=$?
23149   grep -v '^ *+' conftest.er1 >conftest.err
23150   rm -f conftest.er1
23151   cat conftest.err >&5
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } && {
23154          test -z "$ac_c_werror_flag" ||
23155          test ! -s conftest.err
23156        } && test -s conftest.$ac_objext; then
23157   ac_cv_sizeof_signed_long_int=$ac_size
23158 else
23159   echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23161
23162
23163 fi
23164
23165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23167   done
23168
23169 fi
23170
23171
23172 signed=$ac_cv_sizeof_signed_long_int
23173 if test x$signed = x ; then
23174   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23175 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23176    { (exit 1); exit 1; }; }
23177 fi
23178 if test x$unspecif != x$signed ; then
23179   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23180 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23181    { (exit 1); exit 1; }; }
23182 fi
23183
23184     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23185   echo $ECHO_N "(cached) $ECHO_C" >&6
23186 else
23187   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23188    cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194 #include "confdefs.h"
23195    #include <sys/types.h>
23196
23197
23198 int
23199 main ()
23200 {
23201 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext
23207 if { (ac_try="$ac_compile"
23208 case "(($ac_try" in
23209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210   *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213   (eval "$ac_compile") 2>conftest.er1
23214   ac_status=$?
23215   grep -v '^ *+' conftest.er1 >conftest.err
23216   rm -f conftest.er1
23217   cat conftest.err >&5
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); } && {
23220          test -z "$ac_c_werror_flag" ||
23221          test ! -s conftest.err
23222        } && test -s conftest.$ac_objext; then
23223   ac_cv_sizeof_unsigned_long_int=$ac_size
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228
23229 fi
23230
23231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23233   done
23234
23235 fi
23236
23237
23238 unsigned=$ac_cv_sizeof_unsigned_long_int
23239 if test x$unsigned = x ; then
23240   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23241 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23242    { (exit 1); exit 1; }; }
23243 fi
23244 if test x$unsigned != x$signed ; then
23245   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23246 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23247    { (exit 1); exit 1; }; }
23248 fi
23249
23250 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23251 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23252               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23253 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23254
23255  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23256   echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23259    cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265 #include "confdefs.h"
23266      #include <sys/types.h>
23267      struct s { char c; long int i; };
23268
23269 int
23270 main ()
23271 {
23272 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_compile") 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } && {
23291          test -z "$ac_c_werror_flag" ||
23292          test ! -s conftest.err
23293        } && test -s conftest.$ac_objext; then
23294   ac_cv_struct_boundary_long_int=$ac_size
23295 else
23296   echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23298
23299
23300 fi
23301
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23304   done
23305
23306 fi
23307
23308  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23309 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23310  if test x$ac_cv_struct_boundary_long_int = x ; then
23311    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23312 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23313    { (exit 1); exit 1; }; }
23314  fi
23315
23316 { echo "$as_me:$LINENO: checking size of long long int" >&5
23317 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23318     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23322    cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328 #include "confdefs.h"
23329    #include <sys/types.h>
23330
23331
23332 int
23333 main ()
23334 {
23335 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23336   ;
23337   return 0;
23338 }
23339 _ACEOF
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344   *) ac_try_echo=$ac_try;;
23345 esac
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347   (eval "$ac_compile") 2>conftest.er1
23348   ac_status=$?
23349   grep -v '^ *+' conftest.er1 >conftest.err
23350   rm -f conftest.er1
23351   cat conftest.err >&5
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); } && {
23354          test -z "$ac_c_werror_flag" ||
23355          test ! -s conftest.err
23356        } && test -s conftest.$ac_objext; then
23357   ac_cv_sizeof_long_long_int=$ac_size
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23367   done
23368
23369 fi
23370
23371
23372 unspecif=$ac_cv_sizeof_long_long_int
23373 if test x$unspecif = x ; then
23374   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23375 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23376    { (exit 1); exit 1; }; }
23377 fi
23378
23379     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23380   echo $ECHO_N "(cached) $ECHO_C" >&6
23381 else
23382   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23383    cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h.  */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h.  */
23389 #include "confdefs.h"
23390    #include <sys/types.h>
23391
23392
23393 int
23394 main ()
23395 {
23396 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23397   ;
23398   return 0;
23399 }
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405   *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408   (eval "$ac_compile") 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } && {
23415          test -z "$ac_c_werror_flag" ||
23416          test ! -s conftest.err
23417        } && test -s conftest.$ac_objext; then
23418   ac_cv_sizeof_signed_long_long_int=$ac_size
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423
23424 fi
23425
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23428   done
23429
23430 fi
23431
23432
23433 signed=$ac_cv_sizeof_signed_long_long_int
23434 if test x$signed = x ; then
23435   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23436 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23437    { (exit 1); exit 1; }; }
23438 fi
23439 if test x$unspecif != x$signed ; then
23440   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23441 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23442    { (exit 1); exit 1; }; }
23443 fi
23444
23445     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23449    cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455 #include "confdefs.h"
23456    #include <sys/types.h>
23457
23458
23459 int
23460 main ()
23461 {
23462 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_compile") 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } && {
23481          test -z "$ac_c_werror_flag" ||
23482          test ! -s conftest.err
23483        } && test -s conftest.$ac_objext; then
23484   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23485 else
23486   echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23488
23489
23490 fi
23491
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23494   done
23495
23496 fi
23497
23498
23499 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23500 if test x$unsigned = x ; then
23501   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23502 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23503    { (exit 1); exit 1; }; }
23504 fi
23505 if test x$unsigned != x$signed ; then
23506   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23507 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23508    { (exit 1); exit 1; }; }
23509 fi
23510
23511 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23512 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23513          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23514 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23515
23516  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23517   echo $ECHO_N "(cached) $ECHO_C" >&6
23518 else
23519   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23520    cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h.  */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h.  */
23526 #include "confdefs.h"
23527      #include <sys/types.h>
23528      struct s { char c; long long int i; };
23529
23530 int
23531 main ()
23532 {
23533 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23534   ;
23535   return 0;
23536 }
23537 _ACEOF
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_compile") 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } && {
23552          test -z "$ac_c_werror_flag" ||
23553          test ! -s conftest.err
23554        } && test -s conftest.$ac_objext; then
23555   ac_cv_struct_boundary_long_long_int=$ac_size
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23565   done
23566
23567 fi
23568
23569  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23570 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23571  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23572    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23573 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23574    { (exit 1); exit 1; }; }
23575  fi
23576
23577
23578     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23579 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23580
23581  if test "${ac_cv_struct_boundary_float+set}" = set; then
23582   echo $ECHO_N "(cached) $ECHO_C" >&6
23583 else
23584   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23585    cat >conftest.$ac_ext <<_ACEOF
23586 /* confdefs.h.  */
23587 _ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h.  */
23591 #include "confdefs.h"
23592      #include <sys/types.h>
23593      struct s { char c; float i; };
23594
23595 int
23596 main ()
23597 {
23598 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23599   ;
23600   return 0;
23601 }
23602 _ACEOF
23603 rm -f conftest.$ac_objext
23604 if { (ac_try="$ac_compile"
23605 case "(($ac_try" in
23606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607   *) ac_try_echo=$ac_try;;
23608 esac
23609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610   (eval "$ac_compile") 2>conftest.er1
23611   ac_status=$?
23612   grep -v '^ *+' conftest.er1 >conftest.err
23613   rm -f conftest.er1
23614   cat conftest.err >&5
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); } && {
23617          test -z "$ac_c_werror_flag" ||
23618          test ! -s conftest.err
23619        } && test -s conftest.$ac_objext; then
23620   ac_cv_struct_boundary_float=$ac_size
23621 else
23622   echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23624
23625
23626 fi
23627
23628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23630   done
23631
23632 fi
23633
23634  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23635 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23636  if test x$ac_cv_struct_boundary_float = x ; then
23637    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23638 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23639    { (exit 1); exit 1; }; }
23640  fi
23641                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23642 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23643
23644  if test "${ac_cv_struct_boundary_double+set}" = set; then
23645   echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23648    cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654 #include "confdefs.h"
23655      #include <sys/types.h>
23656      struct s { char c; double i; };
23657
23658 int
23659 main ()
23660 {
23661 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673   (eval "$ac_compile") 2>conftest.er1
23674   ac_status=$?
23675   grep -v '^ *+' conftest.er1 >conftest.err
23676   rm -f conftest.er1
23677   cat conftest.err >&5
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } && {
23680          test -z "$ac_c_werror_flag" ||
23681          test ! -s conftest.err
23682        } && test -s conftest.$ac_objext; then
23683   ac_cv_struct_boundary_double=$ac_size
23684 else
23685   echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688
23689 fi
23690
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23693   done
23694
23695 fi
23696
23697  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23698 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23699  if test x$ac_cv_struct_boundary_double = x ; then
23700    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23701 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23702    { (exit 1); exit 1; }; }
23703  fi
23704
23705
23706 { echo "$as_me:$LINENO: checking size of void *" >&5
23707 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23708     if test "${ac_cv_sizeof_void_p+set}" = set; then
23709   echo $ECHO_N "(cached) $ECHO_C" >&6
23710 else
23711   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23712    cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 #include "confdefs.h"
23719    #include <sys/types.h>
23720
23721
23722 int
23723 main ()
23724 {
23725 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734   *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737   (eval "$ac_compile") 2>conftest.er1
23738   ac_status=$?
23739   grep -v '^ *+' conftest.er1 >conftest.err
23740   rm -f conftest.er1
23741   cat conftest.err >&5
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); } && {
23744          test -z "$ac_c_werror_flag" ||
23745          test ! -s conftest.err
23746        } && test -s conftest.$ac_objext; then
23747   ac_cv_sizeof_void_p=$ac_size
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752
23753 fi
23754
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23757   done
23758
23759 fi
23760
23761
23762 if test x$ac_cv_sizeof_void_p = x ; then
23763   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23764 echo "$as_me: error: cannot determine a size for void *" >&2;}
23765    { (exit 1); exit 1; }; }
23766 fi
23767 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23768 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23769                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23770 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23771
23772  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23773   echo $ECHO_N "(cached) $ECHO_C" >&6
23774 else
23775   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23776    cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h.  */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h.  */
23782 #include "confdefs.h"
23783      #include <sys/types.h>
23784      struct s { char c; void * i; };
23785
23786 int
23787 main ()
23788 {
23789 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23790   ;
23791   return 0;
23792 }
23793 _ACEOF
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798   *) ac_try_echo=$ac_try;;
23799 esac
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801   (eval "$ac_compile") 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } && {
23808          test -z "$ac_c_werror_flag" ||
23809          test ! -s conftest.err
23810        } && test -s conftest.$ac_objext; then
23811   ac_cv_struct_boundary_void_p=$ac_size
23812 else
23813   echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23815
23816
23817 fi
23818
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23821   done
23822
23823 fi
23824
23825  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23826 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23827  if test x$ac_cv_struct_boundary_void_p = x ; then
23828    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23829 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23830    { (exit 1); exit 1; }; }
23831  fi
23832
23833 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23834 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23835     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23836   echo $ECHO_N "(cached) $ECHO_C" >&6
23837 else
23838   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23839    cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h.  */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h.  */
23845 #include "confdefs.h"
23846    #include <sys/types.h>
23847
23848
23849 int
23850 main ()
23851 {
23852 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23853   ;
23854   return 0;
23855 }
23856 _ACEOF
23857 rm -f conftest.$ac_objext
23858 if { (ac_try="$ac_compile"
23859 case "(($ac_try" in
23860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861   *) ac_try_echo=$ac_try;;
23862 esac
23863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864   (eval "$ac_compile") 2>conftest.er1
23865   ac_status=$?
23866   grep -v '^ *+' conftest.er1 >conftest.err
23867   rm -f conftest.er1
23868   cat conftest.err >&5
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); } && {
23871          test -z "$ac_c_werror_flag" ||
23872          test ! -s conftest.err
23873        } && test -s conftest.$ac_objext; then
23874   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23875 else
23876   echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23878
23879
23880 fi
23881
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23884   done
23885
23886 fi
23887
23888
23889 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23890   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23891 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23892    { (exit 1); exit 1; }; }
23893 fi
23894 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23895 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23896
23897
23898
23899 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23900 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23901 if test x$endian = x1 ; then
23902   trace_endian=B
23903 else
23904   trace_endian=l
23905 fi
23906 gras_arch=unknown
23907 trace="$trace_endian"
23908
23909 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23910
23911 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23912 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23913 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23914 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23915
23916 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23917 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23918
23919 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23920
23921 # sizeof float/double are not tested since IEEE 754 is assumed.
23922 # Check README.IEEE for rational.
23923
23924 # The numbers after the _ in the arch name are the maximal packing boundary.
23925 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23926 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23927 case $trace in
23928   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;;
23929   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;;
23930   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;;
23931   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;;
23932
23933   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;;
23934
23935   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;;
23936   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;;
23937   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;;
23938   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;;
23939
23940   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;;
23941   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;;
23942 esac
23943 if test x$gras_arch = xunknown ; then
23944   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23945 echo "${ECHO_T}damnit ($trace)" >&6; }
23946   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23947 Please report this architecture trace ($trace) and what it corresponds to." >&5
23948 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23949 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23950    { (exit 1); exit 1; }; }
23951 fi
23952 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23953
23954 cat >>confdefs.h <<_ACEOF
23955 #define GRAS_THISARCH $gras_arch
23956 _ACEOF
23957
23958 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23959 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23960
23961  if test "$gras_size" = 32; then
23962   GRAS_ARCH_32_BITS_TRUE=
23963   GRAS_ARCH_32_BITS_FALSE='#'
23964 else
23965   GRAS_ARCH_32_BITS_TRUE='#'
23966   GRAS_ARCH_32_BITS_FALSE=
23967 fi
23968
23969
23970 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23971 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23972 ac_cv_sizeof_max=0
23973 for s in $ac_cv_sizeof_char \
23974          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23975          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23976          4 8; do
23977
23978   if test $ac_cv_sizeof_max -lt $s ; then
23979     ac_cv_sizeof_max=$s
23980   fi
23981 done
23982 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23983 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23984
23985 cat >>confdefs.h <<_ACEOF
23986 #define SIZEOF_MAX $ac_cv_sizeof_max
23987 _ACEOF
23988
23989
23990
23991 # Check architecture signature end
23992   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23993 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23994    cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000 #include "confdefs.h"
24001         #include <sys/types.h>
24002         #include <stddef.h> /* offsetof() */
24003         struct s {char c; double d;};
24004
24005 int
24006 main ()
24007 {
24008 switch (0)
24009         case 0:
24010         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24011
24012   ;
24013   return 0;
24014 }
24015 _ACEOF
24016 rm -f conftest.$ac_objext
24017 if { (ac_try="$ac_compile"
24018 case "(($ac_try" in
24019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020   *) ac_try_echo=$ac_try;;
24021 esac
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023   (eval "$ac_compile") 2>conftest.er1
24024   ac_status=$?
24025   grep -v '^ *+' conftest.er1 >conftest.err
24026   rm -f conftest.er1
24027   cat conftest.err >&5
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); } && {
24030          test -z "$ac_c_werror_flag" ||
24031          test ! -s conftest.err
24032        } && test -s conftest.$ac_objext; then
24033   gras_struct_packed=yes
24034 else
24035   echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038         gras_struct_packed=no
24039 fi
24040
24041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042
24043    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24044 echo "${ECHO_T}$gras_struct_packed" >&6; }
24045    if test x$gras_struct_packed = "xyes" ; then
24046      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24047 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24048    { (exit 1); exit 1; }; }
24049    fi
24050
24051    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24052 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24053    cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h.  */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h.  */
24059 #include "confdefs.h"
24060         #include <sys/types.h>
24061         #include <stddef.h> /* offsetof() */
24062         struct s {double d; int i; char c;};
24063
24064 int
24065 main ()
24066 {
24067 switch (0)
24068         case 0:
24069         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24070
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 rm -f conftest.$ac_objext
24076 if { (ac_try="$ac_compile"
24077 case "(($ac_try" in
24078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079   *) ac_try_echo=$ac_try;;
24080 esac
24081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24082   (eval "$ac_compile") 2>conftest.er1
24083   ac_status=$?
24084   grep -v '^ *+' conftest.er1 >conftest.err
24085   rm -f conftest.er1
24086   cat conftest.err >&5
24087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088   (exit $ac_status); } && {
24089          test -z "$ac_c_werror_flag" ||
24090          test ! -s conftest.err
24091        } && test -s conftest.$ac_objext; then
24092   gras_struct_compact=yes
24093 else
24094   echo "$as_me: failed program was:" >&5
24095 sed 's/^/| /' conftest.$ac_ext >&5
24096
24097         gras_struct_compact=no
24098 fi
24099
24100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24101
24102    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24103 echo "${ECHO_T}$gras_struct_compact" >&6; }
24104
24105    if test x$gras_struct_compact != xyes ; then
24106      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24107 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24108    { (exit 1); exit 1; }; }
24109    fi
24110
24111 cat >>confdefs.h <<_ACEOF
24112 #define GRAS_STRUCT_COMPACT 1
24113 _ACEOF
24114
24115    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24116 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24117
24118    cat >conftest.$ac_ext <<_ACEOF
24119 /* confdefs.h.  */
24120 _ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h.  */
24124 #include "confdefs.h"
24125       #include <sys/types.h>
24126         #include <stddef.h> /* offsetof() */
24127         struct s { double d; int i; char c[6]; };
24128
24129 int
24130 main ()
24131 {
24132 switch (0)
24133       case 0:
24134       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24135
24136   ;
24137   return 0;
24138 }
24139 _ACEOF
24140 rm -f conftest.$ac_objext
24141 if { (ac_try="$ac_compile"
24142 case "(($ac_try" in
24143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144   *) ac_try_echo=$ac_try;;
24145 esac
24146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24147   (eval "$ac_compile") 2>conftest.er1
24148   ac_status=$?
24149   grep -v '^ *+' conftest.er1 >conftest.err
24150   rm -f conftest.er1
24151   cat conftest.err >&5
24152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153   (exit $ac_status); } && {
24154          test -z "$ac_c_werror_flag" ||
24155          test ! -s conftest.err
24156        } && test -s conftest.$ac_objext; then
24157   gras_array_straddle_struct=yes
24158 else
24159   echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24161
24162         gras_array_straddle_struct=no
24163 fi
24164
24165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166
24167    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24168 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24169
24170    if test x$gras_array_straddle_struct = xyes ; then
24171
24172 cat >>confdefs.h <<_ACEOF
24173 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24174 _ACEOF
24175
24176    else
24177      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24178 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24179    { (exit 1); exit 1; }; }
24180    fi
24181
24182
24183
24184
24185
24186   { echo "$as_me:$LINENO: result: " >&5
24187 echo "${ECHO_T}" >&6; }
24188   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24189 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24190
24191
24192
24193
24194 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24195 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24196 if test "${ac_cv_check_mcsc+set}" = set; then
24197   echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199
24200 if test "$cross_compiling" = yes; then
24201   ac_cv_check_mcsc=no
24202
24203 else
24204   cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h.  */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h.  */
24210
24211
24212 #include <stdio.h>
24213 #include <stdlib.h>
24214 #include <ucontext.h>
24215
24216 ucontext_t uc_child;
24217 ucontext_t uc_main;
24218
24219 void child(void *arg)
24220 {
24221     if (arg != (void *)12345)
24222         exit(1);
24223     if (swapcontext(&uc_child, &uc_main) != 0)
24224         exit(2);
24225 }
24226
24227 int main(int argc, char *argv[])
24228 {
24229     FILE *fp;
24230     void *stack;
24231
24232     /* the default is that it fails */
24233     if ((fp = fopen("conftestval", "w")) == NULL)
24234         exit(3);
24235     fprintf(fp, "no\n");
24236     fclose(fp);
24237
24238     /* configure a child user-space context */
24239     if ((stack = malloc(64*1024)) == NULL)
24240         exit(4);
24241     if (getcontext(&uc_child) != 0)
24242         exit(5);
24243     uc_child.uc_link = NULL;
24244     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24245     uc_child.uc_stack.ss_size = 32*1024;
24246     uc_child.uc_stack.ss_flags = 0;
24247     makecontext(&uc_child, child, 2, (void *)12345);
24248
24249     /* switch into the user context */
24250     if (swapcontext(&uc_main, &uc_child) != 0)
24251         exit(6);
24252
24253     /* Fine, child came home */
24254     if ((fp = fopen("conftestval", "w")) == NULL)
24255         exit(7);
24256     fprintf(fp, "yes\n");
24257     fclose(fp);
24258
24259     /* die successfully */
24260     exit(0);
24261 }
24262
24263 _ACEOF
24264 rm -f conftest$ac_exeext
24265 if { (ac_try="$ac_link"
24266 case "(($ac_try" in
24267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268   *) ac_try_echo=$ac_try;;
24269 esac
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271   (eval "$ac_link") 2>&5
24272   ac_status=$?
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); }; }; then
24284   ac_cv_check_mcsc=`cat conftestval`
24285 else
24286   echo "$as_me: program exited with status $ac_status" >&5
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290 ( exit $ac_status )
24291 ac_cv_check_mcsc=no
24292 fi
24293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24294 fi
24295
24296
24297 fi
24298 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24299 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24300 if test ".$ac_cv_check_mcsc" = .yes; then
24301     mcsc=yes
24302 else
24303     mcsc=no
24304 fi
24305
24306
24307
24308 for ac_header in pthread.h
24309 do
24310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24312   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24315   echo $ECHO_N "(cached) $ECHO_C" >&6
24316 fi
24317 ac_res=`eval echo '${'$as_ac_Header'}'`
24318                { echo "$as_me:$LINENO: result: $ac_res" >&5
24319 echo "${ECHO_T}$ac_res" >&6; }
24320 else
24321   # Is the header compilable?
24322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24324 cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h.  */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h.  */
24330 $ac_includes_default
24331 #include <$ac_header>
24332 _ACEOF
24333 rm -f conftest.$ac_objext
24334 if { (ac_try="$ac_compile"
24335 case "(($ac_try" in
24336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337   *) ac_try_echo=$ac_try;;
24338 esac
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340   (eval "$ac_compile") 2>conftest.er1
24341   ac_status=$?
24342   grep -v '^ *+' conftest.er1 >conftest.err
24343   rm -f conftest.er1
24344   cat conftest.err >&5
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); } && {
24347          test -z "$ac_c_werror_flag" ||
24348          test ! -s conftest.err
24349        } && test -s conftest.$ac_objext; then
24350   ac_header_compiler=yes
24351 else
24352   echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355         ac_header_compiler=no
24356 fi
24357
24358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24360 echo "${ECHO_T}$ac_header_compiler" >&6; }
24361
24362 # Is the header present?
24363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24365 cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h.  */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h.  */
24371 #include <$ac_header>
24372 _ACEOF
24373 if { (ac_try="$ac_cpp conftest.$ac_ext"
24374 case "(($ac_try" in
24375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376   *) ac_try_echo=$ac_try;;
24377 esac
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } >/dev/null && {
24386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24387          test ! -s conftest.err
24388        }; then
24389   ac_header_preproc=yes
24390 else
24391   echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24393
24394   ac_header_preproc=no
24395 fi
24396
24397 rm -f conftest.err conftest.$ac_ext
24398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24399 echo "${ECHO_T}$ac_header_preproc" >&6; }
24400
24401 # So?  What about this header?
24402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24403   yes:no: )
24404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24408     ac_header_preproc=yes
24409     ;;
24410   no:yes:* )
24411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24423     ( cat <<\_ASBOX
24424 ## -------------------------------------------------- ##
24425 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24426 ## -------------------------------------------------- ##
24427 _ASBOX
24428      ) | sed "s/^/$as_me: WARNING:     /" >&2
24429     ;;
24430 esac
24431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24434   echo $ECHO_N "(cached) $ECHO_C" >&6
24435 else
24436   eval "$as_ac_Header=\$ac_header_preproc"
24437 fi
24438 ac_res=`eval echo '${'$as_ac_Header'}'`
24439                { echo "$as_me:$LINENO: result: $ac_res" >&5
24440 echo "${ECHO_T}$ac_res" >&6; }
24441
24442 fi
24443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24444   cat >>confdefs.h <<_ACEOF
24445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24446 _ACEOF
24447
24448 fi
24449
24450 done
24451
24452 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24453 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24454 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24455   echo $ECHO_N "(cached) $ECHO_C" >&6
24456 else
24457   ac_check_lib_save_LIBS=$LIBS
24458 LIBS="-lpthread  $LIBS"
24459 cat >conftest.$ac_ext <<_ACEOF
24460 /* confdefs.h.  */
24461 _ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h.  */
24465
24466 /* Override any GCC internal prototype to avoid an error.
24467    Use char because int might match the return type of a GCC
24468    builtin and then its argument prototype would still apply.  */
24469 #ifdef __cplusplus
24470 extern "C"
24471 #endif
24472 char pthread_create ();
24473 int
24474 main ()
24475 {
24476 return pthread_create ();
24477   ;
24478   return 0;
24479 }
24480 _ACEOF
24481 rm -f conftest.$ac_objext conftest$ac_exeext
24482 if { (ac_try="$ac_link"
24483 case "(($ac_try" in
24484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485   *) ac_try_echo=$ac_try;;
24486 esac
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488   (eval "$ac_link") 2>conftest.er1
24489   ac_status=$?
24490   grep -v '^ *+' conftest.er1 >conftest.err
24491   rm -f conftest.er1
24492   cat conftest.err >&5
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); } && {
24495          test -z "$ac_c_werror_flag" ||
24496          test ! -s conftest.err
24497        } && test -s conftest$ac_exeext &&
24498        $as_test_x conftest$ac_exeext; then
24499   ac_cv_lib_pthread_pthread_create=yes
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504         ac_cv_lib_pthread_pthread_create=no
24505 fi
24506
24507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24508       conftest$ac_exeext conftest.$ac_ext
24509 LIBS=$ac_check_lib_save_LIBS
24510 fi
24511 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24512 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24513 if test $ac_cv_lib_pthread_pthread_create = yes; then
24514   pthread=yes
24515 else
24516   pthread=no
24517 fi
24518
24519
24520 if test x$pthread = xyes ; then
24521   { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
24522 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
24523 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
24524   echo $ECHO_N "(cached) $ECHO_C" >&6
24525 else
24526   ac_check_lib_save_LIBS=$LIBS
24527 LIBS="-lpthread  $LIBS"
24528 cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534
24535 /* Override any GCC internal prototype to avoid an error.
24536    Use char because int might match the return type of a GCC
24537    builtin and then its argument prototype would still apply.  */
24538 #ifdef __cplusplus
24539 extern "C"
24540 #endif
24541 char sem_init ();
24542 int
24543 main ()
24544 {
24545 return sem_init ();
24546   ;
24547   return 0;
24548 }
24549 _ACEOF
24550 rm -f conftest.$ac_objext conftest$ac_exeext
24551 if { (ac_try="$ac_link"
24552 case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557   (eval "$ac_link") 2>conftest.er1
24558   ac_status=$?
24559   grep -v '^ *+' conftest.er1 >conftest.err
24560   rm -f conftest.er1
24561   cat conftest.err >&5
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); } && {
24564          test -z "$ac_c_werror_flag" ||
24565          test ! -s conftest.err
24566        } && test -s conftest$ac_exeext &&
24567        $as_test_x conftest$ac_exeext; then
24568   ac_cv_lib_pthread_sem_init=yes
24569 else
24570   echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24572
24573         ac_cv_lib_pthread_sem_init=no
24574 fi
24575
24576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24577       conftest$ac_exeext conftest.$ac_ext
24578 LIBS=$ac_check_lib_save_LIBS
24579 fi
24580 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
24581 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
24582 if test $ac_cv_lib_pthread_sem_init = yes; then
24583   HAVE_SEM_INIT=yes
24584 else
24585   HAVE_SEM_INIT=no
24586 fi
24587
24588   if test ${HAVE_SEM_INIT} = yes ; then
24589      { echo "$as_me:$LINENO: checking if sem_init is compilable" >&5
24590 echo $ECHO_N "checking if sem_init is compilable... $ECHO_C" >&6; }
24591      cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h.  */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h.  */
24597 #include <semaphore.h>
24598 int
24599 main ()
24600 {
24601 sem_t s; sem_init(&s);
24602   ;
24603   return 0;
24604 }
24605 _ACEOF
24606 rm -f conftest.$ac_objext
24607 if { (ac_try="$ac_compile"
24608 case "(($ac_try" in
24609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610   *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613   (eval "$ac_compile") 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } && {
24620          test -z "$ac_c_werror_flag" ||
24621          test ! -s conftest.err
24622        } && test -s conftest.$ac_objext; then
24623   HAVE_SEM_INIT=yes
24624 else
24625   echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628         HAVE_SEM_INIT=no
24629 fi
24630
24631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24632      if test ${HAVE_SEM_INIT} = yes ; then
24633
24634 cat >>confdefs.h <<\_ACEOF
24635 #define HAVE_SEM_INIT 1
24636 _ACEOF
24637
24638         { echo "$as_me:$LINENO: result: yes" >&5
24639 echo "${ECHO_T}yes" >&6; }
24640      else
24641         { echo "$as_me:$LINENO: result: no" >&5
24642 echo "${ECHO_T}no" >&6; }
24643      fi
24644   fi
24645   { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
24646 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
24647 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
24648   echo $ECHO_N "(cached) $ECHO_C" >&6
24649 else
24650   ac_check_lib_save_LIBS=$LIBS
24651 LIBS="-lpthread  $LIBS"
24652 cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h.  */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h.  */
24658
24659 /* Override any GCC internal prototype to avoid an error.
24660    Use char because int might match the return type of a GCC
24661    builtin and then its argument prototype would still apply.  */
24662 #ifdef __cplusplus
24663 extern "C"
24664 #endif
24665 char sem_timedwait ();
24666 int
24667 main ()
24668 {
24669 return sem_timedwait ();
24670   ;
24671   return 0;
24672 }
24673 _ACEOF
24674 rm -f conftest.$ac_objext conftest$ac_exeext
24675 if { (ac_try="$ac_link"
24676 case "(($ac_try" in
24677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678   *) ac_try_echo=$ac_try;;
24679 esac
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681   (eval "$ac_link") 2>conftest.er1
24682   ac_status=$?
24683   grep -v '^ *+' conftest.er1 >conftest.err
24684   rm -f conftest.er1
24685   cat conftest.err >&5
24686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687   (exit $ac_status); } && {
24688          test -z "$ac_c_werror_flag" ||
24689          test ! -s conftest.err
24690        } && test -s conftest$ac_exeext &&
24691        $as_test_x conftest$ac_exeext; then
24692   ac_cv_lib_pthread_sem_timedwait=yes
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697         ac_cv_lib_pthread_sem_timedwait=no
24698 fi
24699
24700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24701       conftest$ac_exeext conftest.$ac_ext
24702 LIBS=$ac_check_lib_save_LIBS
24703 fi
24704 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
24705 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
24706 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
24707   HAVE_SEM_TIMEDWAIT=yes
24708 else
24709   HAVE_SEM_TIMEDWAIT=no
24710 fi
24711
24712   if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
24713      { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
24714 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
24715      cat >conftest.$ac_ext <<_ACEOF
24716 /* confdefs.h.  */
24717 _ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h.  */
24721 #include <semaphore.h>
24722 int
24723 main ()
24724 {
24725 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext
24731 if { (ac_try="$ac_compile"
24732 case "(($ac_try" in
24733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734   *) ac_try_echo=$ac_try;;
24735 esac
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737   (eval "$ac_compile") 2>conftest.er1
24738   ac_status=$?
24739   grep -v '^ *+' conftest.er1 >conftest.err
24740   rm -f conftest.er1
24741   cat conftest.err >&5
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); } && {
24744          test -z "$ac_c_werror_flag" ||
24745          test ! -s conftest.err
24746        } && test -s conftest.$ac_objext; then
24747   HAVE_SEM_TIMEDWAIT=yes
24748 else
24749   echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24751
24752         HAVE_SEM_TIMEDWAIT=no
24753 fi
24754
24755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24756      if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
24757
24758 cat >>confdefs.h <<\_ACEOF
24759 #define HAVE_SEM_TIMEDWAIT 1
24760 _ACEOF
24761
24762         { echo "$as_me:$LINENO: result: yes" >&5
24763 echo "${ECHO_T}yes" >&6; }
24764      else
24765         { echo "$as_me:$LINENO: result: no" >&5
24766 echo "${ECHO_T}no" >&6; }
24767      fi
24768   fi
24769
24770   { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
24771 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6; }
24772 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
24773   echo $ECHO_N "(cached) $ECHO_C" >&6
24774 else
24775   ac_check_lib_save_LIBS=$LIBS
24776 LIBS="-lpthread  $LIBS"
24777 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783
24784 /* Override any GCC internal prototype to avoid an error.
24785    Use char because int might match the return type of a GCC
24786    builtin and then its argument prototype would still apply.  */
24787 #ifdef __cplusplus
24788 extern "C"
24789 #endif
24790 char pthread_mutex_timedlock ();
24791 int
24792 main ()
24793 {
24794 return pthread_mutex_timedlock ();
24795   ;
24796   return 0;
24797 }
24798 _ACEOF
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_link") 2>conftest.er1
24807   ac_status=$?
24808   grep -v '^ *+' conftest.er1 >conftest.err
24809   rm -f conftest.er1
24810   cat conftest.err >&5
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); } && {
24813          test -z "$ac_c_werror_flag" ||
24814          test ! -s conftest.err
24815        } && test -s conftest$ac_exeext &&
24816        $as_test_x conftest$ac_exeext; then
24817   ac_cv_lib_pthread_pthread_mutex_timedlock=yes
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822         ac_cv_lib_pthread_pthread_mutex_timedlock=no
24823 fi
24824
24825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24826       conftest$ac_exeext conftest.$ac_ext
24827 LIBS=$ac_check_lib_save_LIBS
24828 fi
24829 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
24830 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6; }
24831 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
24832   HAVE_MUTEX_TIMEDLOCK=yes
24833 else
24834   HAVE_MUTEX_TIMEDLOCK=no
24835 fi
24836
24837   if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
24838      { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is compilable" >&5
24839 echo $ECHO_N "checking if pthread_mutex_timedlock is compilable... $ECHO_C" >&6; }
24840      cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846 #include <pthread.h>
24847 int
24848 main ()
24849 {
24850 pthread_mutex_t s; const struct timespec t; sem_timedlock(&s, &t);
24851   ;
24852   return 0;
24853 }
24854 _ACEOF
24855 rm -f conftest.$ac_objext
24856 if { (ac_try="$ac_compile"
24857 case "(($ac_try" in
24858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24859   *) ac_try_echo=$ac_try;;
24860 esac
24861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24862   (eval "$ac_compile") 2>conftest.er1
24863   ac_status=$?
24864   grep -v '^ *+' conftest.er1 >conftest.err
24865   rm -f conftest.er1
24866   cat conftest.err >&5
24867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868   (exit $ac_status); } && {
24869          test -z "$ac_c_werror_flag" ||
24870          test ! -s conftest.err
24871        } && test -s conftest.$ac_objext; then
24872   HAVE_MUTEX_TIMEDLOCK=yes
24873 else
24874   echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24876
24877         HAVE_MUTEX_TIMEDLOCK=no
24878 fi
24879
24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24881      if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
24882
24883 cat >>confdefs.h <<\_ACEOF
24884 #define HAVE_MUTEX_TIMEDLOCK 1
24885 _ACEOF
24886
24887         { echo "$as_me:$LINENO: result: yes" >&5
24888 echo "${ECHO_T}yes" >&6; }
24889      else
24890         { echo "$as_me:$LINENO: result: no" >&5
24891 echo "${ECHO_T}no" >&6; }
24892      fi
24893   fi
24894 fi
24895
24896
24897 if test ".$mcsc" = .yes; then
24898    # ucontext found
24899    mcsc=yes
24900 elif test ".$pthread" = .yes; then
24901    # ucontext not found, but pthread found
24902    pthread=yes
24903 else
24904     ac_header=windows.h
24905     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24906     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24907       windows_context=yes
24908     else
24909       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24910 echo "$as_me: error: no appropriate backend found" >&2;}
24911    { (exit 1); exit 1; }; }
24912     fi
24913 fi
24914  if test x$windows_context = xyes; then
24915   IS_WINDOWS_TRUE=
24916   IS_WINDOWS_FALSE='#'
24917 else
24918   IS_WINDOWS_TRUE='#'
24919   IS_WINDOWS_FALSE=
24920 fi
24921
24922
24923
24924
24925 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24926 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24927
24928
24929 # Check whether --with-pthread was given.
24930 if test "${with_pthread+set}" = set; then
24931   withval=$with_pthread; with_context=pthread
24932 fi
24933
24934
24935 # Check whether --with-pthread was given.
24936 if test "${with_pthread+set}" = set; then
24937   withval=$with_pthread; with_context=pthread
24938 fi
24939
24940
24941
24942 # Check whether --with-context was given.
24943 if test "${with_context+set}" = set; then
24944   withval=$with_context;
24945 else
24946   with_context=auto
24947 fi
24948
24949
24950 if test "x$with_context$mcsc" = "xucontextno" ; then
24951   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24952 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24953    { (exit 77); exit 77; }; }
24954 fi
24955
24956 case $with_context in
24957  ucontext) ;;
24958  pthread) ;;
24959  pthreads) ;;
24960  windows) ;;
24961  auto) with_context=ucontext;;
24962  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24963 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24964    { (exit 1); exit 1; }; } ;;
24965 esac
24966
24967 if test "x$with_context" = "xucontext" ; then
24968   if test ".$mcsc" = .yes; then
24969     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24970 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24971
24972 cat >>confdefs.h <<\_ACEOF
24973 #define CONTEXT_UCONTEXT 1
24974 _ACEOF
24975
24976   else
24977     if test ".$windows_context" = .yes ; then
24978       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24979 echo "${ECHO_T}use windows context portability layer." >&6; }
24980       with_context=windows
24981     else
24982       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24983 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24984       with_context=pthread
24985     fi
24986   fi
24987 fi
24988
24989 if test "x$with_context" = "xpthread"; then
24990   if test x$pthread != xyes ; then # reuse previous checks
24991     { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24992 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24993    { (exit 1); exit 1; }; }
24994   fi
24995
24996 cat >>confdefs.h <<\_ACEOF
24997 #define CONTEXT_THREADS 1
24998 _ACEOF
24999
25000   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25001 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25002 fi
25003  if test "x$with_context" != xucontext; then
25004   CONTEXT_THREADS_TRUE=
25005   CONTEXT_THREADS_FALSE='#'
25006 else
25007   CONTEXT_THREADS_TRUE='#'
25008   CONTEXT_THREADS_FALSE=
25009 fi
25010
25011
25012
25013 if test "x$with_context" = "xucontext" ; then
25014   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25015 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25016 if test "${ac_cv_check_stackgrowth+set}" = set; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 else
25019
25020 cross_compiling=no
25021 if test "$cross_compiling" = yes; then
25022   ac_cv_check_stackgrowth=down
25023
25024 else
25025   cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031
25032 #include <stdio.h>
25033 #include <stdlib.h>
25034 static int iterate = 10;
25035 static int growsdown(int *x)
25036 {
25037     auto int y;
25038     y = (x > &y);
25039     if (--iterate > 0)
25040         y = growsdown(&y);
25041     if (y != (x > &y))
25042         exit(1);
25043     return y;
25044 }
25045 int main(int argc, char *argv[])
25046 {
25047     FILE *f;
25048     auto int x;
25049     if ((f = fopen("conftestval", "w")) == NULL)
25050         exit(1);
25051     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25052     fclose(f);
25053     exit(0);
25054 }
25055
25056
25057 _ACEOF
25058 rm -f conftest$ac_exeext
25059 if { (ac_try="$ac_link"
25060 case "(($ac_try" in
25061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062   *) ac_try_echo=$ac_try;;
25063 esac
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065   (eval "$ac_link") 2>&5
25066   ac_status=$?
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25075   ac_status=$?
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); }; }; then
25078   ac_cv_check_stackgrowth=`cat conftestval`
25079 else
25080   echo "$as_me: program exited with status $ac_status" >&5
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084 ( exit $ac_status )
25085 ac_cv_check_stackgrowth=down
25086 fi
25087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25088 fi
25089
25090
25091 fi
25092 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25093 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25094 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25095     val="-1"
25096 else
25097     val="+1"
25098 fi
25099
25100 cat >>confdefs.h <<_ACEOF
25101 #define PTH_STACKGROWTH $val
25102 _ACEOF
25103
25104
25105   if test ".$ac_cv_check_stackgrowth" = ".down"; then
25106       PTH_STACK_GROWTH="down"
25107   else
25108       PTH_STACK_GROWTH="up"
25109   fi
25110
25111
25112
25113
25114
25115
25116 for ac_func in makecontext
25117 do
25118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25122   echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124   cat >conftest.$ac_ext <<_ACEOF
25125 /* confdefs.h.  */
25126 _ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h.  */
25130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25132 #define $ac_func innocuous_$ac_func
25133
25134 /* System header to define __stub macros and hopefully few prototypes,
25135     which can conflict with char $ac_func (); below.
25136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25137     <limits.h> exists even on freestanding compilers.  */
25138
25139 #ifdef __STDC__
25140 # include <limits.h>
25141 #else
25142 # include <assert.h>
25143 #endif
25144
25145 #undef $ac_func
25146
25147 /* Override any GCC internal prototype to avoid an error.
25148    Use char because int might match the return type of a GCC
25149    builtin and then its argument prototype would still apply.  */
25150 #ifdef __cplusplus
25151 extern "C"
25152 #endif
25153 char $ac_func ();
25154 /* The GNU C library defines this for functions which it implements
25155     to always fail with ENOSYS.  Some functions are actually named
25156     something starting with __ and the normal name is an alias.  */
25157 #if defined __stub_$ac_func || defined __stub___$ac_func
25158 choke me
25159 #endif
25160
25161 int
25162 main ()
25163 {
25164 return $ac_func ();
25165   ;
25166   return 0;
25167 }
25168 _ACEOF
25169 rm -f conftest.$ac_objext conftest$ac_exeext
25170 if { (ac_try="$ac_link"
25171 case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176   (eval "$ac_link") 2>conftest.er1
25177   ac_status=$?
25178   grep -v '^ *+' conftest.er1 >conftest.err
25179   rm -f conftest.er1
25180   cat conftest.err >&5
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); } && {
25183          test -z "$ac_c_werror_flag" ||
25184          test ! -s conftest.err
25185        } && test -s conftest$ac_exeext &&
25186        $as_test_x conftest$ac_exeext; then
25187   eval "$as_ac_var=yes"
25188 else
25189   echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25191
25192         eval "$as_ac_var=no"
25193 fi
25194
25195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25196       conftest$ac_exeext conftest.$ac_ext
25197 fi
25198 ac_res=`eval echo '${'$as_ac_var'}'`
25199                { echo "$as_me:$LINENO: result: $ac_res" >&5
25200 echo "${ECHO_T}$ac_res" >&6; }
25201 if test `eval echo '${'$as_ac_var'}'` = yes; then
25202   cat >>confdefs.h <<_ACEOF
25203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25204 _ACEOF
25205
25206 fi
25207 done
25208
25209
25210 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25211 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25212 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25213   echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215
25216 if test ".$ac_cv_func_makecontext" = .no; then
25217         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25218 else
25219         OCFLAGS="$CFLAGS"
25220     CFLAGS="$CFLAGS -DTEST_makecontext"
25221     cross_compiling=no
25222         if test "$cross_compiling" = yes; then
25223
25224 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25225
25226 else
25227   cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233
25234 #include <stdio.h>
25235 #include <stdlib.h>
25236 #include <string.h>
25237 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25238 #include <sys/types.h>
25239 #include <signal.h>
25240 #include <unistd.h>
25241 #endif
25242 #if defined(TEST_makecontext)
25243 #include <ucontext.h>
25244 #endif
25245 union alltypes {
25246     long   l;
25247     double d;
25248     void  *vp;
25249     void (*fp)(void);
25250     char  *cp;
25251 };
25252 static volatile char *handler_addr = (char *)0xDEAD;
25253 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25254 static volatile int handler_done = 0;
25255 void handler(int sig)
25256 {
25257     char garbage[1024];
25258     int i;
25259     auto int dummy;
25260     for (i = 0; i < 1024; i++)
25261         garbage[i] = 'X';
25262     handler_addr = (char *)&dummy;
25263     handler_done = 1;
25264     return;
25265 }
25266 #endif
25267 #if defined(TEST_makecontext)
25268 static ucontext_t uc_handler;
25269 static ucontext_t uc_main;
25270 void handler(void)
25271 {
25272     char garbage[1024];
25273     int i;
25274     auto int dummy;
25275     for (i = 0; i < 1024; i++)
25276         garbage[i] = 'X';
25277     handler_addr = (char *)&dummy;
25278     swapcontext(&uc_handler, &uc_main);
25279     return;
25280 }
25281 #endif
25282 int main(int argc, char *argv[])
25283 {
25284     FILE *f;
25285     char *skaddr;
25286     char *skbuf;
25287     int sksize;
25288     char result[1024];
25289     int i;
25290     sksize = 32768;
25291     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25292     if (skbuf == NULL)
25293         exit(1);
25294     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25295         skbuf[i] = 'A';
25296     skaddr = skbuf+sizeof(union alltypes);
25297 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25298     {
25299         struct sigaction sa;
25300 #if defined(TEST_sigstack)
25301         struct sigstack ss;
25302 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25303         stack_t ss;
25304 #else
25305         struct sigaltstack ss;
25306 #endif
25307 #if defined(TEST_sigstack)
25308         ss.ss_sp      = (void *)(skaddr + sksize);
25309         ss.ss_onstack = 0;
25310         if (sigstack(&ss, NULL) < 0)
25311             exit(1);
25312 #elif defined(TEST_sigaltstack)
25313         ss.ss_sp    = (void *)(skaddr + sksize);
25314         ss.ss_size  = sksize;
25315         ss.ss_flags = 0;
25316         if (sigaltstack(&ss, NULL) < 0)
25317             exit(1);
25318 #endif
25319         memset((void *)&sa, 0, sizeof(struct sigaction));
25320         sa.sa_handler = handler;
25321         sa.sa_flags = SA_ONSTACK;
25322         sigemptyset(&sa.sa_mask);
25323         sigaction(SIGUSR1, &sa, NULL);
25324         kill(getpid(), SIGUSR1);
25325         while (!handler_done)
25326             /*nop*/;
25327     }
25328 #endif
25329 #if defined(TEST_makecontext)
25330     {
25331         if (getcontext(&uc_handler) != 0)
25332             exit(1);
25333         uc_handler.uc_link = NULL;
25334         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25335         uc_handler.uc_stack.ss_size  = sksize;
25336         uc_handler.uc_stack.ss_flags = 0;
25337         makecontext(&uc_handler, handler, 1);
25338         swapcontext(&uc_main, &uc_handler);
25339     }
25340 #endif
25341     if (handler_addr == (char *)0xDEAD)
25342         exit(1);
25343     if (handler_addr < skaddr+sksize) {
25344         /* stack was placed into lower area */
25345         if (*(skaddr+sksize) != 'A')
25346              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25347                      sizeof(union alltypes), sizeof(union alltypes));
25348         else
25349              strcpy(result, "(skaddr)+(sksize),(sksize)");
25350     }
25351     else {
25352         /* stack was placed into higher area */
25353         if (*(skaddr+sksize*2) != 'A')
25354             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25355         else
25356             strcpy(result, "(skaddr),(sksize)");
25357     }
25358     if ((f = fopen("conftestval", "w")) == NULL)
25359         exit(1);
25360     fprintf(f, "%s\n", result);
25361     fclose(f);
25362     exit(0);
25363 }
25364
25365 _ACEOF
25366 rm -f conftest$ac_exeext
25367 if { (ac_try="$ac_link"
25368 case "(($ac_try" in
25369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370   *) ac_try_echo=$ac_try;;
25371 esac
25372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373   (eval "$ac_link") 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25383   ac_status=$?
25384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); }; }; then
25386
25387 ac_cv_stacksetup_makecontext=`cat conftestval`
25388 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25389
25390 else
25391   echo "$as_me: program exited with status $ac_status" >&5
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25394
25395 ( exit $ac_status )
25396
25397 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25398
25399 fi
25400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25401 fi
25402
25403
25404 CFLAGS="$OCFLAGS"
25405
25406 fi
25407 fi
25408 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25409 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25410 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25411 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25412 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25413 { echo "$as_me:$LINENO: result: $type" >&5
25414 echo "${ECHO_T}$type" >&6; }
25415 if test ".$verbose" = .yes; then
25416     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25417 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25418 fi
25419
25420 if test ".$verbose" = .yes; then
25421     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25422 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25423 fi
25424
25425
25426 fi
25427
25428 #########################################
25429 ## Check for libraries extra-dependencies
25430 ##
25431
25432
25433   { echo "$as_me:$LINENO: result: " >&5
25434 echo "${ECHO_T}" >&6; }
25435   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25436 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25437
25438
25439 SIMGRID_DEP=""
25440 SMPI_DEP=""
25441 GRAS_DEP=""
25442
25443 if test xpthread=xyes ; then
25444   # if the pthreads are usable
25445   if test "x$with_context" = "xpthread" ; then
25446     # if we use them to implement the xbt_context
25447     SIMGRID_DEP="-lpthread"
25448   fi
25449   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25450   if test "x$with_context" != "xwindows" ; then
25451     GRAS_DEP="-lpthread"
25452   fi
25453 fi
25454
25455 #########################################
25456 ## Build optional modules (gtnets)
25457 ##
25458 gtnets=no
25459
25460 # Check whether --with-gtnets was given.
25461 if test "${with_gtnets+set}" = set; then
25462   withval=$with_gtnets; gtnets_path="$withval"
25463 else
25464   gtnets_path="no"
25465 fi
25466
25467 if test "x$gtnets_path" = "xno" ; then
25468   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25469 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25470 else
25471   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25472 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25473   { echo "$as_me:$LINENO: checking for gtnets" >&5
25474 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25475   ac_ext=cpp
25476 ac_cpp='$CXXCPP $CPPFLAGS'
25477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25480
25481   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25482   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25483   LDFLAGS_SAV=$LDFLAGS
25484   CPPFLAGS_SAV=$CPPFLAGS
25485   CPPFLAGS+=$GTNETS_CPPFLAGS
25486   LDFLAGS+=$GTNETS_LDFLAGS
25487   cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h.  */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h.  */
25493  #include <simulator.h>
25494
25495 int
25496 main ()
25497 {
25498 Simulator s; s.RunUntilNextCompletion();
25499   ;
25500   return 0;
25501 }
25502 _ACEOF
25503 rm -f conftest.$ac_objext conftest$ac_exeext
25504 if { (ac_try="$ac_link"
25505 case "(($ac_try" in
25506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25507   *) ac_try_echo=$ac_try;;
25508 esac
25509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25510   (eval "$ac_link") 2>conftest.er1
25511   ac_status=$?
25512   grep -v '^ *+' conftest.er1 >conftest.err
25513   rm -f conftest.er1
25514   cat conftest.err >&5
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); } && {
25517          test -z "$ac_cxx_werror_flag" ||
25518          test ! -s conftest.err
25519        } && test -s conftest$ac_exeext &&
25520        $as_test_x conftest$ac_exeext; then
25521   gtnets=yes
25522 else
25523   echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526         gtnets=no
25527 fi
25528
25529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25530       conftest$ac_exeext conftest.$ac_ext
25531   CPPFLAGS=$CPPFLAGS_SAV
25532   LDFLAGS=$LDFLAGS_SAV
25533   ac_ext=c
25534 ac_cpp='$CPP $CPPFLAGS'
25535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25538
25539
25540   if test "x$gtnets" = xyes ; then
25541     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25542     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25543     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25544 echo "${ECHO_T}Found working gtnets library." >&6; }
25545
25546 cat >>confdefs.h <<\_ACEOF
25547 #define HAVE_GTNETS 1
25548 _ACEOF
25549
25550   else
25551     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25552 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25553   fi
25554 fi
25555  if test "x$gtnets" != xno; then
25556   HAVE_GTNETS_TRUE=
25557   HAVE_GTNETS_FALSE='#'
25558 else
25559   HAVE_GTNETS_TRUE='#'
25560   HAVE_GTNETS_FALSE=
25561 fi
25562
25563
25564 #########################################
25565 ## Build optional modules (csdp)
25566 ##
25567 csdp=no
25568
25569 # Check whether --with-csdp was given.
25570 if test "${with_csdp+set}" = set; then
25571   withval=$with_csdp; csdp_path="$withval"
25572 else
25573   csdp_path="no"
25574 fi
25575
25576 if test "x$csdp_path" = "xno" ; then
25577   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25578 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25579 else
25580   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25581 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25582   { echo "$as_me:$LINENO: checking for csdp" >&5
25583 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25584   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25585   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25586
25587   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25588 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25589 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25590   echo $ECHO_N "(cached) $ECHO_C" >&6
25591 else
25592   ac_check_lib_save_LIBS=$LIBS
25593 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25594 cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h.  */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h.  */
25600
25601 /* Override any GCC internal prototype to avoid an error.
25602    Use char because int might match the return type of a GCC
25603    builtin and then its argument prototype would still apply.  */
25604 #ifdef __cplusplus
25605 extern "C"
25606 #endif
25607 char easy_sdp ();
25608 int
25609 main ()
25610 {
25611 return easy_sdp ();
25612   ;
25613   return 0;
25614 }
25615 _ACEOF
25616 rm -f conftest.$ac_objext conftest$ac_exeext
25617 if { (ac_try="$ac_link"
25618 case "(($ac_try" in
25619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620   *) ac_try_echo=$ac_try;;
25621 esac
25622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623   (eval "$ac_link") 2>conftest.er1
25624   ac_status=$?
25625   grep -v '^ *+' conftest.er1 >conftest.err
25626   rm -f conftest.er1
25627   cat conftest.err >&5
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); } && {
25630          test -z "$ac_c_werror_flag" ||
25631          test ! -s conftest.err
25632        } && test -s conftest$ac_exeext &&
25633        $as_test_x conftest$ac_exeext; then
25634   ac_cv_lib_sdp_easy_sdp=yes
25635 else
25636   echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639         ac_cv_lib_sdp_easy_sdp=no
25640 fi
25641
25642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25643       conftest$ac_exeext conftest.$ac_ext
25644 LIBS=$ac_check_lib_save_LIBS
25645 fi
25646 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25647 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25648 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25649   csdp_lib=yes
25650 else
25651   csdp_lib=no
25652 fi
25653
25654
25655   CPPFLAGS_SAV=$CPPFLAGS
25656   CPPFLAGS+=$CSDP_CPPFLAGS
25657   if test "${ac_cv_header_declarations_h+set}" = set; then
25658   { echo "$as_me:$LINENO: checking for declarations.h" >&5
25659 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25660 if test "${ac_cv_header_declarations_h+set}" = set; then
25661   echo $ECHO_N "(cached) $ECHO_C" >&6
25662 fi
25663 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25664 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25665 else
25666   # Is the header compilable?
25667 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25668 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25669 cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h.  */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h.  */
25675 $ac_includes_default
25676 #include <declarations.h>
25677 _ACEOF
25678 rm -f conftest.$ac_objext
25679 if { (ac_try="$ac_compile"
25680 case "(($ac_try" in
25681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682   *) ac_try_echo=$ac_try;;
25683 esac
25684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25685   (eval "$ac_compile") 2>conftest.er1
25686   ac_status=$?
25687   grep -v '^ *+' conftest.er1 >conftest.err
25688   rm -f conftest.er1
25689   cat conftest.err >&5
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); } && {
25692          test -z "$ac_c_werror_flag" ||
25693          test ! -s conftest.err
25694        } && test -s conftest.$ac_objext; then
25695   ac_header_compiler=yes
25696 else
25697   echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25699
25700         ac_header_compiler=no
25701 fi
25702
25703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25705 echo "${ECHO_T}$ac_header_compiler" >&6; }
25706
25707 # Is the header present?
25708 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25709 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25710 cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716 #include <declarations.h>
25717 _ACEOF
25718 if { (ac_try="$ac_cpp conftest.$ac_ext"
25719 case "(($ac_try" in
25720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25721   *) ac_try_echo=$ac_try;;
25722 esac
25723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25725   ac_status=$?
25726   grep -v '^ *+' conftest.er1 >conftest.err
25727   rm -f conftest.er1
25728   cat conftest.err >&5
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); } >/dev/null && {
25731          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25732          test ! -s conftest.err
25733        }; then
25734   ac_header_preproc=yes
25735 else
25736   echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739   ac_header_preproc=no
25740 fi
25741
25742 rm -f conftest.err conftest.$ac_ext
25743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25744 echo "${ECHO_T}$ac_header_preproc" >&6; }
25745
25746 # So?  What about this header?
25747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25748   yes:no: )
25749     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25750 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25751     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25752 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25753     ac_header_preproc=yes
25754     ;;
25755   no:yes:* )
25756     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25757 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
25759 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25761 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
25763 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25765 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25766     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25767 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25768     ( cat <<\_ASBOX
25769 ## -------------------------------------------------- ##
25770 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25771 ## -------------------------------------------------- ##
25772 _ASBOX
25773      ) | sed "s/^/$as_me: WARNING:     /" >&2
25774     ;;
25775 esac
25776 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25777 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25778 if test "${ac_cv_header_declarations_h+set}" = set; then
25779   echo $ECHO_N "(cached) $ECHO_C" >&6
25780 else
25781   ac_cv_header_declarations_h=$ac_header_preproc
25782 fi
25783 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25784 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25785
25786 fi
25787 if test $ac_cv_header_declarations_h = yes; then
25788   csdp_header=yes
25789 else
25790   csdp_header=no
25791 fi
25792
25793
25794   CPPFLAGS=$CPPFLAGS_SAV
25795
25796
25797
25798   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25799      csdp=yes;
25800   else
25801      csdp=no;
25802   fi
25803   if test "x$csdp" = xyes; then
25804     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25805     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25806     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25807 echo "${ECHO_T}Found working sdp library." >&6; }
25808
25809 cat >>confdefs.h <<\_ACEOF
25810 #define HAVE_SDP 1
25811 _ACEOF
25812
25813   else
25814     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25815 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25816   fi;
25817 fi
25818  if test x$csdp != xno; then
25819   HAVE_SDP_TRUE=
25820   HAVE_SDP_FALSE='#'
25821 else
25822   HAVE_SDP_TRUE='#'
25823   HAVE_SDP_FALSE=
25824 fi
25825
25826
25827
25828
25829
25830 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25831 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25832 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   ac_check_lib_save_LIBS=$LIBS
25836 LIBS="-lnsl  $LIBS"
25837 cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843
25844 /* Override any GCC internal prototype to avoid an error.
25845    Use char because int might match the return type of a GCC
25846    builtin and then its argument prototype would still apply.  */
25847 #ifdef __cplusplus
25848 extern "C"
25849 #endif
25850 char gethostbyname ();
25851 int
25852 main ()
25853 {
25854 return gethostbyname ();
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (ac_try="$ac_link"
25861 case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866   (eval "$ac_link") 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } && {
25873          test -z "$ac_c_werror_flag" ||
25874          test ! -s conftest.err
25875        } && test -s conftest$ac_exeext &&
25876        $as_test_x conftest$ac_exeext; then
25877   ac_cv_lib_nsl_gethostbyname=yes
25878 else
25879   echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882         ac_cv_lib_nsl_gethostbyname=no
25883 fi
25884
25885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25886       conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25888 fi
25889 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25890 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25891 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25892   GRAS_DEP="$GRAS_DEP -lnsl"
25893 fi
25894
25895 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25896 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25897 if test "${ac_cv_lib_socket_connect+set}" = set; then
25898   echo $ECHO_N "(cached) $ECHO_C" >&6
25899 else
25900   ac_check_lib_save_LIBS=$LIBS
25901 LIBS="-lsocket  $LIBS"
25902 cat >conftest.$ac_ext <<_ACEOF
25903 /* confdefs.h.  */
25904 _ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h.  */
25908
25909 /* Override any GCC internal prototype to avoid an error.
25910    Use char because int might match the return type of a GCC
25911    builtin and then its argument prototype would still apply.  */
25912 #ifdef __cplusplus
25913 extern "C"
25914 #endif
25915 char connect ();
25916 int
25917 main ()
25918 {
25919 return connect ();
25920   ;
25921   return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (ac_try="$ac_link"
25926 case "(($ac_try" in
25927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928   *) ac_try_echo=$ac_try;;
25929 esac
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931   (eval "$ac_link") 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && {
25938          test -z "$ac_c_werror_flag" ||
25939          test ! -s conftest.err
25940        } && test -s conftest$ac_exeext &&
25941        $as_test_x conftest$ac_exeext; then
25942   ac_cv_lib_socket_connect=yes
25943 else
25944   echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25946
25947         ac_cv_lib_socket_connect=no
25948 fi
25949
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951       conftest$ac_exeext conftest.$ac_ext
25952 LIBS=$ac_check_lib_save_LIBS
25953 fi
25954 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25955 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25956 if test $ac_cv_lib_socket_connect = yes; then
25957   GRAS_DEP="$GRAS_DEP -lsocket"
25958 fi
25959
25960
25961 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25962 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25963 case $host_os in
25964   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25965             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25966             cat >>confdefs.h <<\_ACEOF
25967 #define CONTEXT_THREADS 1
25968 _ACEOF
25969 ;;
25970 esac
25971
25972
25973
25974 if test "x$GRAS_DEP" = x; then
25975    { echo "$as_me:$LINENO: result: none" >&5
25976 echo "${ECHO_T}none" >&6; }
25977 else
25978    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25979 echo "${ECHO_T}$GRAS_DEP" >&6; }
25980 fi
25981
25982
25983 ##############################################
25984 ## Enhance maintainer mode and SUBST variables
25985 ## (must be placed after any compilation tests since our overprotective flags
25986 ##  let some tests fail)
25987
25988 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25989 # Next line is modified by sed when building gramine source tree
25990 gramine_mode=no
25991 if test x$gramine_mode = xyes
25992 then
25993   USE_MAINTAINER_MODE=no
25994 fi
25995  if test x$gramine_mode != xno; then
25996   GRAMINE_MODE_TRUE=
25997   GRAMINE_MODE_FALSE='#'
25998 else
25999   GRAMINE_MODE_TRUE='#'
26000   GRAMINE_MODE_FALSE=
26001 fi
26002
26003
26004
26005 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26006 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26007     # Check whether --enable-maintainer-mode was given.
26008 if test "${enable_maintainer_mode+set}" = set; then
26009   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26010 else
26011   USE_MAINTAINER_MODE=no
26012 fi
26013
26014   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26015 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26016    if test $USE_MAINTAINER_MODE = yes; then
26017   MAINTAINER_MODE_TRUE=
26018   MAINTAINER_MODE_FALSE='#'
26019 else
26020   MAINTAINER_MODE_TRUE='#'
26021   MAINTAINER_MODE_FALSE=
26022 fi
26023
26024   MAINT=$MAINTAINER_MODE_TRUE
26025
26026
26027 if test x$USE_MAINTAINER_MODE = xyes
26028 then
26029    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26030    enable_compile_warnings=yes
26031 fi
26032
26033   # Check whether --enable-compile-warnings was given.
26034 if test "${enable_compile_warnings+set}" = set; then
26035   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26036 else
26037   enable_compile_warnings=no
26038 fi
26039
26040
26041   # Check whether --enable-compile-optimizations was given.
26042 if test "${enable_compile_optimizations+set}" = set; then
26043   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26044 else
26045   enable_compile_optimizations=auto
26046 fi
26047
26048
26049     # AC PROG CC tests whether -g is accepted.
26050     # Cool, but it also tries to set -O2 and -g.
26051     # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
26052     case $CC in
26053       *gcc)
26054       if test "$CFLAGS" = "-g -O2" ; then
26055         CFLAGS="-g3"
26056       fi
26057       if test "$CXXFLAGS" = "-g -O2" ; then
26058         CXXFLAGS="-g3"
26059       fi
26060       if test "$GCJFLAGS" = "-g -O2" ; then
26061         CXXFLAGS="-g3"
26062       fi;;
26063     esac
26064
26065   if test "x$enable_compile_warnings" = "xyes" ; then
26066     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26067 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26068     warnCFLAGS=
26069     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26070       case " $CFLAGS " in
26071       *-Wall*) ;;
26072       *) warnCFLAGS="-Wall -Wunused" ;;
26073       esac
26074
26075       ## -W is not all that useful.  And it cannot be controlled
26076       ## with individual -Wno-xxx flags, unlike -Wall
26077
26078       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26079       ## -Wshadow chokes on try{ try{} } constructs
26080       if test "x$enable_compile_warnings" = "xyes"; then
26081         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
26082         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26083         -Wno-unused-function  -Wno-strict-aliasing  \
26084         -Werror \
26085         | sed 's/ +/ /g'`
26086         # -Wno-unused-variable  -Wno-unused-label
26087       fi
26088     fi
26089     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26090 echo "${ECHO_T}$warnCFLAGS" >&6; }
26091     # placed before since gcc remembers the last one on conflict
26092     CFLAGS="$warnCFLAGS $CFLAGS"
26093   fi
26094
26095   if test "x$enable_compile_optimizations" = "xyes" ||
26096      test "x$enable_compile_optimizations" = "xauto" ; then
26097     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26098 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26099     optCFLAGS=
26100     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26101         case " $CFLAGS " in
26102         *-O*) ;;
26103         *) optCFLAGS="$optCFLAGS -O3" ;;
26104         esac
26105         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26106
26107         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26108         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26109         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26110           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26111           # but the check would be too complicated to get 3.4.
26112           # Instead, rule out any 3.x compiler.
26113
26114           # Note that the flag didn't exist before gcc 3.0
26115           optCFLAGS="$optCFLAGS -fno-loop-optimize"
26116         fi
26117             fi
26118     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26119 echo "${ECHO_T}$optCFLAGS" >&6; }
26120     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26121     if test "x$cflags_set" != "xyes" ; then
26122       CFLAGS="$optCFLAGS $CFLAGS"
26123     fi
26124   fi
26125
26126   if test x$lt_cv_prog_gnu_ld = xyes ; then
26127     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26128   else
26129     LD_DYNAMIC_FLAGS=
26130   fi
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144 ##############################################
26145 ## Specific mode for build daemons.
26146 ## (they compile the SVN without having the autotools installed)
26147 # Check whether --enable-botbuild was given.
26148 if test "${enable_botbuild+set}" = set; then
26149   enableval=$enable_botbuild; botbuild=$enableval
26150 else
26151   botbuild=no
26152 fi
26153
26154  if test x$botbuild != xno; then
26155   BOTBUILD_MODE_TRUE=
26156   BOTBUILD_MODE_FALSE='#'
26157 else
26158   BOTBUILD_MODE_TRUE='#'
26159   BOTBUILD_MODE_FALSE=
26160 fi
26161
26162
26163 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26164   echo "ERROR: "
26165   echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26166   echo "ERROR: For this, just call configure this way:"
26167   echo "ERROR:"
26168   echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26169   echo "ERROR:"
26170   exit 1
26171 fi
26172
26173
26174
26175   { echo "$as_me:$LINENO: result: " >&5
26176 echo "${ECHO_T}" >&6; }
26177   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26178 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26179
26180 # Java cruft
26181 # Check whether --enable-java was given.
26182 if test "${enable_java+set}" = set; then
26183   enableval=$enable_java; disable_java=$enableval
26184 else
26185   disable_java=yes
26186 fi
26187
26188 if test "x$disable_java" != "xyes" ; then
26189    use_java="disabled by user"
26190 else
26191   # Extract the first word of "javac", so it can be a program name with args.
26192 set dummy javac; ac_word=$2
26193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26195 if test "${ac_cv_path_JAVAC+set}" = set; then
26196   echo $ECHO_N "(cached) $ECHO_C" >&6
26197 else
26198   case $JAVAC in
26199   [\\/]* | ?:[\\/]*)
26200   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26201   ;;
26202   *)
26203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26204 for as_dir in $PATH
26205 do
26206   IFS=$as_save_IFS
26207   test -z "$as_dir" && as_dir=.
26208   for ac_exec_ext in '' $ac_executable_extensions; do
26209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26210     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26212     break 2
26213   fi
26214 done
26215 done
26216 IFS=$as_save_IFS
26217
26218   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26219   ;;
26220 esac
26221 fi
26222 JAVAC=$ac_cv_path_JAVAC
26223 if test -n "$JAVAC"; then
26224   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26225 echo "${ECHO_T}$JAVAC" >&6; }
26226 else
26227   { echo "$as_me:$LINENO: result: no" >&5
26228 echo "${ECHO_T}no" >&6; }
26229 fi
26230
26231
26232   # Extract the first word of "java ", so it can be a program name with args.
26233 set dummy java ; ac_word=$2
26234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26236 if test "${ac_cv_path_JAVA+set}" = set; then
26237   echo $ECHO_N "(cached) $ECHO_C" >&6
26238 else
26239   case $JAVA in
26240   [\\/]* | ?:[\\/]*)
26241   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26242   ;;
26243   *)
26244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26245 for as_dir in $PATH
26246 do
26247   IFS=$as_save_IFS
26248   test -z "$as_dir" && as_dir=.
26249   for ac_exec_ext in '' $ac_executable_extensions; do
26250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26251     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26253     break 2
26254   fi
26255 done
26256 done
26257 IFS=$as_save_IFS
26258
26259   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26260   ;;
26261 esac
26262 fi
26263 JAVA=$ac_cv_path_JAVA
26264 if test -n "$JAVA"; then
26265   { echo "$as_me:$LINENO: result: $JAVA" >&5
26266 echo "${ECHO_T}$JAVA" >&6; }
26267 else
26268   { echo "$as_me:$LINENO: result: no" >&5
26269 echo "${ECHO_T}no" >&6; }
26270 fi
26271
26272
26273   # Extract the first word of "jar  ", so it can be a program name with args.
26274 set dummy jar  ; ac_word=$2
26275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26277 if test "${ac_cv_path_JAR+set}" = set; then
26278   echo $ECHO_N "(cached) $ECHO_C" >&6
26279 else
26280   case $JAR in
26281   [\\/]* | ?:[\\/]*)
26282   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26283   ;;
26284   *)
26285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26286 for as_dir in $PATH
26287 do
26288   IFS=$as_save_IFS
26289   test -z "$as_dir" && as_dir=.
26290   for ac_exec_ext in '' $ac_executable_extensions; do
26291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26292     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26294     break 2
26295   fi
26296 done
26297 done
26298 IFS=$as_save_IFS
26299
26300   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26301   ;;
26302 esac
26303 fi
26304 JAR=$ac_cv_path_JAR
26305 if test -n "$JAR"; then
26306   { echo "$as_me:$LINENO: result: $JAR" >&5
26307 echo "${ECHO_T}$JAR" >&6; }
26308 else
26309   { echo "$as_me:$LINENO: result: no" >&5
26310 echo "${ECHO_T}no" >&6; }
26311 fi
26312
26313
26314
26315 for ac_header in jni.h
26316 do
26317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26322   echo $ECHO_N "(cached) $ECHO_C" >&6
26323 fi
26324 ac_res=`eval echo '${'$as_ac_Header'}'`
26325                { echo "$as_me:$LINENO: result: $ac_res" >&5
26326 echo "${ECHO_T}$ac_res" >&6; }
26327 else
26328   # Is the header compilable?
26329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26331 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337 $ac_includes_default
26338 #include <$ac_header>
26339 _ACEOF
26340 rm -f conftest.$ac_objext
26341 if { (ac_try="$ac_compile"
26342 case "(($ac_try" in
26343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344   *) ac_try_echo=$ac_try;;
26345 esac
26346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26347   (eval "$ac_compile") 2>conftest.er1
26348   ac_status=$?
26349   grep -v '^ *+' conftest.er1 >conftest.err
26350   rm -f conftest.er1
26351   cat conftest.err >&5
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); } && {
26354          test -z "$ac_c_werror_flag" ||
26355          test ! -s conftest.err
26356        } && test -s conftest.$ac_objext; then
26357   ac_header_compiler=yes
26358 else
26359   echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26361
26362         ac_header_compiler=no
26363 fi
26364
26365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26367 echo "${ECHO_T}$ac_header_compiler" >&6; }
26368
26369 # Is the header present?
26370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26372 cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378 #include <$ac_header>
26379 _ACEOF
26380 if { (ac_try="$ac_cpp conftest.$ac_ext"
26381 case "(($ac_try" in
26382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383   *) ac_try_echo=$ac_try;;
26384 esac
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26387   ac_status=$?
26388   grep -v '^ *+' conftest.er1 >conftest.err
26389   rm -f conftest.er1
26390   cat conftest.err >&5
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); } >/dev/null && {
26393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26394          test ! -s conftest.err
26395        }; then
26396   ac_header_preproc=yes
26397 else
26398   echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401   ac_header_preproc=no
26402 fi
26403
26404 rm -f conftest.err conftest.$ac_ext
26405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26406 echo "${ECHO_T}$ac_header_preproc" >&6; }
26407
26408 # So?  What about this header?
26409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26410   yes:no: )
26411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26415     ac_header_preproc=yes
26416     ;;
26417   no:yes:* )
26418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26430     ( cat <<\_ASBOX
26431 ## -------------------------------------------------- ##
26432 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26433 ## -------------------------------------------------- ##
26434 _ASBOX
26435      ) | sed "s/^/$as_me: WARNING:     /" >&2
26436     ;;
26437 esac
26438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443   eval "$as_ac_Header=\$ac_header_preproc"
26444 fi
26445 ac_res=`eval echo '${'$as_ac_Header'}'`
26446                { echo "$as_me:$LINENO: result: $ac_res" >&5
26447 echo "${ECHO_T}$ac_res" >&6; }
26448
26449 fi
26450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26451   cat >>confdefs.h <<_ACEOF
26452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26453 _ACEOF
26454
26455 fi
26456
26457 done
26458
26459   if test -n "$JAVAC"   \
26460      && test -n "$JAVA" \
26461      && test -n "$JAR"  \
26462      && test "x$ac_cv_header_jni_h" = "xyes" ; then
26463
26464      use_java="yes"
26465   else
26466      use_java="no"
26467   fi
26468 fi
26469 { echo "$as_me:$LINENO: result: decide whether to compile java bindings... $use_java" >&5
26470 echo "${ECHO_T}decide whether to compile java bindings... $use_java" >&6; }
26471  if test "x$use_java" = "xyes"; then
26472   HAVE_JAVA_TRUE=
26473   HAVE_JAVA_FALSE='#'
26474 else
26475   HAVE_JAVA_TRUE='#'
26476   HAVE_JAVA_FALSE=
26477 fi
26478
26479
26480 #####################
26481 ## Check for programs
26482 ##
26483
26484
26485   { echo "$as_me:$LINENO: result: " >&5
26486 echo "${ECHO_T}" >&6; }
26487   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26488 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26489
26490 # Extract the first word of "bash", so it can be a program name with args.
26491 set dummy bash; ac_word=$2
26492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26494 if test "${ac_cv_prog_BASH+set}" = set; then
26495   echo $ECHO_N "(cached) $ECHO_C" >&6
26496 else
26497   if test -n "$BASH"; then
26498   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26499 else
26500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26501 for as_dir in $PATH
26502 do
26503   IFS=$as_save_IFS
26504   test -z "$as_dir" && as_dir=.
26505   for ac_exec_ext in '' $ac_executable_extensions; do
26506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26507     ac_cv_prog_BASH="`which bash`"
26508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26509     break 2
26510   fi
26511 done
26512 done
26513 IFS=$as_save_IFS
26514
26515   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26516 fi
26517 fi
26518 BASH=$ac_cv_prog_BASH
26519 if test -n "$BASH"; then
26520   { echo "$as_me:$LINENO: result: $BASH" >&5
26521 echo "${ECHO_T}$BASH" >&6; }
26522 else
26523   { echo "$as_me:$LINENO: result: no" >&5
26524 echo "${ECHO_T}no" >&6; }
26525 fi
26526
26527
26528 WARNING="This file is generated, do not edit"
26529
26530
26531
26532 # Can we rebuild the parsers?
26533 # We really want flex and refuse other lex. So, the parser is portable and
26534 # does not induce extra lib dependency
26535 for ac_prog in flex lex
26536 do
26537   # Extract the first word of "$ac_prog", so it can be a program name with args.
26538 set dummy $ac_prog; ac_word=$2
26539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26541 if test "${ac_cv_prog_LEX+set}" = set; then
26542   echo $ECHO_N "(cached) $ECHO_C" >&6
26543 else
26544   if test -n "$LEX"; then
26545   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26546 else
26547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26548 for as_dir in $PATH
26549 do
26550   IFS=$as_save_IFS
26551   test -z "$as_dir" && as_dir=.
26552   for ac_exec_ext in '' $ac_executable_extensions; do
26553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26554     ac_cv_prog_LEX="$ac_prog"
26555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26556     break 2
26557   fi
26558 done
26559 done
26560 IFS=$as_save_IFS
26561
26562 fi
26563 fi
26564 LEX=$ac_cv_prog_LEX
26565 if test -n "$LEX"; then
26566   { echo "$as_me:$LINENO: result: $LEX" >&5
26567 echo "${ECHO_T}$LEX" >&6; }
26568 else
26569   { echo "$as_me:$LINENO: result: no" >&5
26570 echo "${ECHO_T}no" >&6; }
26571 fi
26572
26573
26574   test -n "$LEX" && break
26575 done
26576 test -n "$LEX" || LEX=":"
26577
26578 if test "x$LEX" != "x:"; then
26579   cat >conftest.l <<_ACEOF
26580 %%
26581 a { ECHO; }
26582 b { REJECT; }
26583 c { yymore (); }
26584 d { yyless (1); }
26585 e { yyless (input () != 0); }
26586 f { unput (yytext[0]); }
26587 . { BEGIN INITIAL; }
26588 %%
26589 #ifdef YYTEXT_POINTER
26590 extern char *yytext;
26591 #endif
26592 int
26593 main (void)
26594 {
26595   return ! yylex () + ! yywrap ();
26596 }
26597 _ACEOF
26598 { (ac_try="$LEX conftest.l"
26599 case "(($ac_try" in
26600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26601   *) ac_try_echo=$ac_try;;
26602 esac
26603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604   (eval "$LEX conftest.l") 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }
26608 { echo "$as_me:$LINENO: checking lex output file root" >&5
26609 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26610 if test "${ac_cv_prog_lex_root+set}" = set; then
26611   echo $ECHO_N "(cached) $ECHO_C" >&6
26612 else
26613
26614 if test -f lex.yy.c; then
26615   ac_cv_prog_lex_root=lex.yy
26616 elif test -f lexyy.c; then
26617   ac_cv_prog_lex_root=lexyy
26618 else
26619   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26620 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26621    { (exit 1); exit 1; }; }
26622 fi
26623 fi
26624 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26625 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26626 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26627
26628 if test -z "${LEXLIB+set}"; then
26629   { echo "$as_me:$LINENO: checking lex library" >&5
26630 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26631 if test "${ac_cv_lib_lex+set}" = set; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634
26635     ac_save_LIBS=$LIBS
26636     ac_cv_lib_lex='none needed'
26637     for ac_lib in '' -lfl -ll; do
26638       LIBS="$ac_lib $ac_save_LIBS"
26639       cat >conftest.$ac_ext <<_ACEOF
26640 `cat $LEX_OUTPUT_ROOT.c`
26641 _ACEOF
26642 rm -f conftest.$ac_objext conftest$ac_exeext
26643 if { (ac_try="$ac_link"
26644 case "(($ac_try" in
26645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646   *) ac_try_echo=$ac_try;;
26647 esac
26648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26649   (eval "$ac_link") 2>conftest.er1
26650   ac_status=$?
26651   grep -v '^ *+' conftest.er1 >conftest.err
26652   rm -f conftest.er1
26653   cat conftest.err >&5
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); } && {
26656          test -z "$ac_c_werror_flag" ||
26657          test ! -s conftest.err
26658        } && test -s conftest$ac_exeext &&
26659        $as_test_x conftest$ac_exeext; then
26660   ac_cv_lib_lex=$ac_lib
26661 else
26662   echo "$as_me: failed program was:" >&5
26663 sed 's/^/| /' conftest.$ac_ext >&5
26664
26665
26666 fi
26667
26668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26669       conftest$ac_exeext conftest.$ac_ext
26670       test "$ac_cv_lib_lex" != 'none needed' && break
26671     done
26672     LIBS=$ac_save_LIBS
26673
26674 fi
26675 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26676 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26677   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26678 fi
26679
26680
26681 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26682 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26683 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26684   echo $ECHO_N "(cached) $ECHO_C" >&6
26685 else
26686   # POSIX says lex can declare yytext either as a pointer or an array; the
26687 # default is implementation-dependent.  Figure out which it is, since
26688 # not all implementations provide the %pointer and %array declarations.
26689 ac_cv_prog_lex_yytext_pointer=no
26690 ac_save_LIBS=$LIBS
26691 LIBS="$LEXLIB $ac_save_LIBS"
26692 cat >conftest.$ac_ext <<_ACEOF
26693 #define YYTEXT_POINTER 1
26694 `cat $LEX_OUTPUT_ROOT.c`
26695 _ACEOF
26696 rm -f conftest.$ac_objext conftest$ac_exeext
26697 if { (ac_try="$ac_link"
26698 case "(($ac_try" in
26699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26700   *) ac_try_echo=$ac_try;;
26701 esac
26702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26703   (eval "$ac_link") 2>conftest.er1
26704   ac_status=$?
26705   grep -v '^ *+' conftest.er1 >conftest.err
26706   rm -f conftest.er1
26707   cat conftest.err >&5
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); } && {
26710          test -z "$ac_c_werror_flag" ||
26711          test ! -s conftest.err
26712        } && test -s conftest$ac_exeext &&
26713        $as_test_x conftest$ac_exeext; then
26714   ac_cv_prog_lex_yytext_pointer=yes
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719
26720 fi
26721
26722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26723       conftest$ac_exeext conftest.$ac_ext
26724 LIBS=$ac_save_LIBS
26725
26726 fi
26727 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26728 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26729 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26730
26731 cat >>confdefs.h <<\_ACEOF
26732 #define YYTEXT_POINTER 1
26733 _ACEOF
26734
26735 fi
26736 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26737
26738 fi
26739
26740   if test "$LEX" != flex; then
26741     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26742 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26743     LEX=${am_missing_run}flex
26744     LEXLIB=''
26745
26746   else
26747     if test "x2.5.30" != "x" ; then
26748                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26749
26750       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26751       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26752       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26753
26754       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26755       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26756       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26757
26758       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26759          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26760          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26761       then
26762         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26763 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26764         LEX=${am_missing_run}flex
26765         LEXLIB=''
26766
26767       else
26768         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26769 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26770       fi
26771     fi
26772   fi
26773
26774
26775 # Can we rebuild the xml-lexers from the XML specification?
26776 # if not, simply touch the flex source files (which are distributed in
26777 #  tarballs even if generated by flexml) and hope for the best.
26778 # Extract the first word of "flexml", so it can be a program name with args.
26779 set dummy flexml; ac_word=$2
26780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26782 if test "${ac_cv_prog_FLEXML+set}" = set; then
26783   echo $ECHO_N "(cached) $ECHO_C" >&6
26784 else
26785   if test -n "$FLEXML"; then
26786   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26787 else
26788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26789 for as_dir in $PATH
26790 do
26791   IFS=$as_save_IFS
26792   test -z "$as_dir" && as_dir=.
26793   for ac_exec_ext in '' $ac_executable_extensions; do
26794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26795     ac_cv_prog_FLEXML="`which flexml`"
26796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26797     break 2
26798   fi
26799 done
26800 done
26801 IFS=$as_save_IFS
26802
26803   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26804 fi
26805 fi
26806 FLEXML=$ac_cv_prog_FLEXML
26807 if test -n "$FLEXML"; then
26808   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26809 echo "${ECHO_T}$FLEXML" >&6; }
26810 else
26811   { echo "$as_me:$LINENO: result: no" >&5
26812 echo "${ECHO_T}no" >&6; }
26813 fi
26814
26815
26816  if test x$FLEXML != xNOTFOUND; then
26817   HAVE_FLEXML_TRUE=
26818   HAVE_FLEXML_FALSE='#'
26819 else
26820   HAVE_FLEXML_TRUE='#'
26821   HAVE_FLEXML_FALSE=
26822 fi
26823
26824
26825 if test x$USE_MAINTAINER_MODE = xyes
26826 then
26827    # Check for doxygen when in maintainer mode since dist* targets fail
26828    # without it
26829    # Extract the first word of "doxygen", so it can be a program name with args.
26830 set dummy doxygen; ac_word=$2
26831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26833 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26834   echo $ECHO_N "(cached) $ECHO_C" >&6
26835 else
26836   case $DOXYGEN in
26837   [\\/]* | ?:[\\/]*)
26838   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26839   ;;
26840   *)
26841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26842 for as_dir in $PATH
26843 do
26844   IFS=$as_save_IFS
26845   test -z "$as_dir" && as_dir=.
26846   for ac_exec_ext in '' $ac_executable_extensions; do
26847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26848     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26850     break 2
26851   fi
26852 done
26853 done
26854 IFS=$as_save_IFS
26855
26856   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26857   ;;
26858 esac
26859 fi
26860 DOXYGEN=$ac_cv_path_DOXYGEN
26861 if test -n "$DOXYGEN"; then
26862   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26863 echo "${ECHO_T}$DOXYGEN" >&6; }
26864 else
26865   { echo "$as_me:$LINENO: result: no" >&5
26866 echo "${ECHO_T}no" >&6; }
26867 fi
26868
26869
26870    if test x$DOXYGEN = x ; then
26871      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26872 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26873    { (exit 1); exit 1; }; }
26874    fi
26875 fi
26876
26877 # Can we extract really usable backtraces? (also need the popen function)
26878 # Extract the first word of "addr2line", so it can be a program name with args.
26879 set dummy addr2line; ac_word=$2
26880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26882 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   case $ADDR2LINE in
26886   [\\/]* | ?:[\\/]*)
26887   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26888   ;;
26889   *)
26890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26891 for as_dir in $PATH
26892 do
26893   IFS=$as_save_IFS
26894   test -z "$as_dir" && as_dir=.
26895   for ac_exec_ext in '' $ac_executable_extensions; do
26896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26897     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26899     break 2
26900   fi
26901 done
26902 done
26903 IFS=$as_save_IFS
26904
26905   ;;
26906 esac
26907 fi
26908 ADDR2LINE=$ac_cv_path_ADDR2LINE
26909 if test -n "$ADDR2LINE"; then
26910   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26911 echo "${ECHO_T}$ADDR2LINE" >&6; }
26912 else
26913   { echo "$as_me:$LINENO: result: no" >&5
26914 echo "${ECHO_T}no" >&6; }
26915 fi
26916
26917
26918 if test x$ADDR2LINE != x ; then
26919
26920 cat >>confdefs.h <<_ACEOF
26921 #define ADDR2LINE "$ADDR2LINE"
26922 _ACEOF
26923
26924 fi
26925
26926
26927 # Can we make status line about the compilation result?
26928 # Extract the first word of "md5sum", so it can be a program name with args.
26929 set dummy md5sum; ac_word=$2
26930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26932 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26933   echo $ECHO_N "(cached) $ECHO_C" >&6
26934 else
26935   if test -n "$MD5SUM"; then
26936   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26937 else
26938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939 for as_dir in $PATH
26940 do
26941   IFS=$as_save_IFS
26942   test -z "$as_dir" && as_dir=.
26943   for ac_exec_ext in '' $ac_executable_extensions; do
26944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26945     ac_cv_prog_MD5SUM="`which md5sum`"
26946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26947     break 2
26948   fi
26949 done
26950 done
26951 IFS=$as_save_IFS
26952
26953 fi
26954 fi
26955 MD5SUM=$ac_cv_prog_MD5SUM
26956 if test -n "$MD5SUM"; then
26957   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26958 echo "${ECHO_T}$MD5SUM" >&6; }
26959 else
26960   { echo "$as_me:$LINENO: result: no" >&5
26961 echo "${ECHO_T}no" >&6; }
26962 fi
26963
26964
26965 if test x$MD5SUM != xno ; then
26966   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26967                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26968 else
26969   build_version="no_md5sum_binary"
26970 fi
26971 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26972
26973
26974 ###################
26975 ## Makes the output
26976 ##
26977
26978
26979 #
26980 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26981 #  src/amok/Makefile
26982
26983
26984   { echo "$as_me:$LINENO: result: " >&5
26985 echo "${ECHO_T}" >&6; }
26986   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26987 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26988
26989
26990 # Core of the libraries
26991
26992 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26993
26994
26995 # Tools being embeeded in gramine (stub generator)
26996 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26997
26998
26999
27000 # GRAMINE_CUT_BEGIN
27001
27002 # Tools NOT being embeeded in gramine
27003 ac_config_files="$ac_config_files tools/graspe-slave"
27004
27005
27006 # Testsuite
27007
27008 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
27009
27010
27011 # Teshsuite (testsuite using tesh)
27012 ac_config_files="$ac_config_files teshsuite/Makefile"
27013
27014
27015 # Documentation
27016 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27017
27018
27019 # Examples
27020
27021 #      examples/gras/p2p/Makefile
27022 #      examples/gras/p2p/chord/Makefile
27023 #      examples/gras/p2p/can/Makefile
27024
27025 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"
27026
27027
27028 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/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile"
27029
27030
27031 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
27032
27033
27034 # GRAMINE_CUT_END
27035
27036 cat >confcache <<\_ACEOF
27037 # This file is a shell script that caches the results of configure
27038 # tests run on this system so they can be shared between configure
27039 # scripts and configure runs, see configure's option --config-cache.
27040 # It is not useful on other systems.  If it contains results you don't
27041 # want to keep, you may remove or edit it.
27042 #
27043 # config.status only pays attention to the cache file if you give it
27044 # the --recheck option to rerun configure.
27045 #
27046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27048 # following values.
27049
27050 _ACEOF
27051
27052 # The following way of writing the cache mishandles newlines in values,
27053 # but we know of no workaround that is simple, portable, and efficient.
27054 # So, we kill variables containing newlines.
27055 # Ultrix sh set writes to stderr and can't be redirected directly,
27056 # and sets the high bit in the cache file unless we assign to the vars.
27057 (
27058   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27059     eval ac_val=\$$ac_var
27060     case $ac_val in #(
27061     *${as_nl}*)
27062       case $ac_var in #(
27063       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27064 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27065       esac
27066       case $ac_var in #(
27067       _ | IFS | as_nl) ;; #(
27068       *) $as_unset $ac_var ;;
27069       esac ;;
27070     esac
27071   done
27072
27073   (set) 2>&1 |
27074     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27075     *${as_nl}ac_space=\ *)
27076       # `set' does not quote correctly, so add quotes (double-quote
27077       # substitution turns \\\\ into \\, and sed turns \\ into \).
27078       sed -n \
27079         "s/'/'\\\\''/g;
27080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27081       ;; #(
27082     *)
27083       # `set' quotes correctly as required by POSIX, so do not add quotes.
27084       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27085       ;;
27086     esac |
27087     sort
27088 ) |
27089   sed '
27090      /^ac_cv_env_/b end
27091      t clear
27092      :clear
27093      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27094      t end
27095      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27096      :end' >>confcache
27097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27098   if test -w "$cache_file"; then
27099     test "x$cache_file" != "x/dev/null" &&
27100       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27101 echo "$as_me: updating cache $cache_file" >&6;}
27102     cat confcache >$cache_file
27103   else
27104     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27105 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27106   fi
27107 fi
27108 rm -f confcache
27109
27110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27111 # Let make expand exec_prefix.
27112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27113
27114 DEFS=-DHAVE_CONFIG_H
27115
27116 ac_libobjs=
27117 ac_ltlibobjs=
27118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27119   # 1. Remove the extension, and $U if already installed.
27120   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27121   ac_i=`echo "$ac_i" | sed "$ac_script"`
27122   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27123   #    will be set to the directory where LIBOBJS objects are built.
27124   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27125   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27126 done
27127 LIBOBJS=$ac_libobjs
27128
27129 LTLIBOBJS=$ac_ltlibobjs
27130
27131
27132 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27133   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27134 Usually this means the macro was only invoked conditionally." >&5
27135 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27136 Usually this means the macro was only invoked conditionally." >&2;}
27137    { (exit 1); exit 1; }; }
27138 fi
27139 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27140   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27141 Usually this means the macro was only invoked conditionally." >&5
27142 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27143 Usually this means the macro was only invoked conditionally." >&2;}
27144    { (exit 1); exit 1; }; }
27145 fi
27146 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27147   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27148 Usually this means the macro was only invoked conditionally." >&5
27149 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27150 Usually this means the macro was only invoked conditionally." >&2;}
27151    { (exit 1); exit 1; }; }
27152 fi
27153 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27154   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27155 Usually this means the macro was only invoked conditionally." >&5
27156 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27157 Usually this means the macro was only invoked conditionally." >&2;}
27158    { (exit 1); exit 1; }; }
27159 fi
27160 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27161   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27162 Usually this means the macro was only invoked conditionally." >&5
27163 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27164 Usually this means the macro was only invoked conditionally." >&2;}
27165    { (exit 1); exit 1; }; }
27166 fi
27167 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27168   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27169 Usually this means the macro was only invoked conditionally." >&5
27170 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27171 Usually this means the macro was only invoked conditionally." >&2;}
27172    { (exit 1); exit 1; }; }
27173 fi
27174 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27175   { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27176 Usually this means the macro was only invoked conditionally." >&5
27177 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27178 Usually this means the macro was only invoked conditionally." >&2;}
27179    { (exit 1); exit 1; }; }
27180 fi
27181 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27182   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27183 Usually this means the macro was only invoked conditionally." >&5
27184 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27185 Usually this means the macro was only invoked conditionally." >&2;}
27186    { (exit 1); exit 1; }; }
27187 fi
27188 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27189   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27190 Usually this means the macro was only invoked conditionally." >&5
27191 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27192 Usually this means the macro was only invoked conditionally." >&2;}
27193    { (exit 1); exit 1; }; }
27194 fi
27195 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27196   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27197 Usually this means the macro was only invoked conditionally." >&5
27198 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27199 Usually this means the macro was only invoked conditionally." >&2;}
27200    { (exit 1); exit 1; }; }
27201 fi
27202 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27203   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27204 Usually this means the macro was only invoked conditionally." >&5
27205 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27206 Usually this means the macro was only invoked conditionally." >&2;}
27207    { (exit 1); exit 1; }; }
27208 fi
27209 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27210   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27211 Usually this means the macro was only invoked conditionally." >&5
27212 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27213 Usually this means the macro was only invoked conditionally." >&2;}
27214    { (exit 1); exit 1; }; }
27215 fi
27216 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27217   { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27218 Usually this means the macro was only invoked conditionally." >&5
27219 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27220 Usually this means the macro was only invoked conditionally." >&2;}
27221    { (exit 1); exit 1; }; }
27222 fi
27223 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27224   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27225 Usually this means the macro was only invoked conditionally." >&5
27226 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27227 Usually this means the macro was only invoked conditionally." >&2;}
27228    { (exit 1); exit 1; }; }
27229 fi
27230 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27231   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27232 Usually this means the macro was only invoked conditionally." >&5
27233 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27234 Usually this means the macro was only invoked conditionally." >&2;}
27235    { (exit 1); exit 1; }; }
27236 fi
27237
27238 : ${CONFIG_STATUS=./config.status}
27239 ac_clean_files_save=$ac_clean_files
27240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27243 cat >$CONFIG_STATUS <<_ACEOF
27244 #! $SHELL
27245 # Generated by $as_me.
27246 # Run this file to recreate the current configuration.
27247 # Compiler output produced by configure, useful for debugging
27248 # configure, is in config.log if it exists.
27249
27250 debug=false
27251 ac_cs_recheck=false
27252 ac_cs_silent=false
27253 SHELL=\${CONFIG_SHELL-$SHELL}
27254 _ACEOF
27255
27256 cat >>$CONFIG_STATUS <<\_ACEOF
27257 ## --------------------- ##
27258 ## M4sh Initialization.  ##
27259 ## --------------------- ##
27260
27261 # Be more Bourne compatible
27262 DUALCASE=1; export DUALCASE # for MKS sh
27263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27264   emulate sh
27265   NULLCMD=:
27266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27267   # is contrary to our usage.  Disable this feature.
27268   alias -g '${1+"$@"}'='"$@"'
27269   setopt NO_GLOB_SUBST
27270 else
27271   case `(set -o) 2>/dev/null` in
27272   *posix*) set -o posix ;;
27273 esac
27274
27275 fi
27276
27277
27278
27279
27280 # PATH needs CR
27281 # Avoid depending upon Character Ranges.
27282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27285 as_cr_digits='0123456789'
27286 as_cr_alnum=$as_cr_Letters$as_cr_digits
27287
27288 # The user is always right.
27289 if test "${PATH_SEPARATOR+set}" != set; then
27290   echo "#! /bin/sh" >conf$$.sh
27291   echo  "exit 0"   >>conf$$.sh
27292   chmod +x conf$$.sh
27293   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27294     PATH_SEPARATOR=';'
27295   else
27296     PATH_SEPARATOR=:
27297   fi
27298   rm -f conf$$.sh
27299 fi
27300
27301 # Support unset when possible.
27302 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27303   as_unset=unset
27304 else
27305   as_unset=false
27306 fi
27307
27308
27309 # IFS
27310 # We need space, tab and new line, in precisely that order.  Quoting is
27311 # there to prevent editors from complaining about space-tab.
27312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27313 # splitting by setting IFS to empty value.)
27314 as_nl='
27315 '
27316 IFS=" ""        $as_nl"
27317
27318 # Find who we are.  Look in the path if we contain no directory separator.
27319 case $0 in
27320   *[\\/]* ) as_myself=$0 ;;
27321   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27322 for as_dir in $PATH
27323 do
27324   IFS=$as_save_IFS
27325   test -z "$as_dir" && as_dir=.
27326   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27327 done
27328 IFS=$as_save_IFS
27329
27330      ;;
27331 esac
27332 # We did not find ourselves, most probably we were run as `sh COMMAND'
27333 # in which case we are not to be found in the path.
27334 if test "x$as_myself" = x; then
27335   as_myself=$0
27336 fi
27337 if test ! -f "$as_myself"; then
27338   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27339   { (exit 1); exit 1; }
27340 fi
27341
27342 # Work around bugs in pre-3.0 UWIN ksh.
27343 for as_var in ENV MAIL MAILPATH
27344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27345 done
27346 PS1='$ '
27347 PS2='> '
27348 PS4='+ '
27349
27350 # NLS nuisances.
27351 for as_var in \
27352   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27353   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27354   LC_TELEPHONE LC_TIME
27355 do
27356   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27357     eval $as_var=C; export $as_var
27358   else
27359     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27360   fi
27361 done
27362
27363 # Required to use basename.
27364 if expr a : '\(a\)' >/dev/null 2>&1 &&
27365    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27366   as_expr=expr
27367 else
27368   as_expr=false
27369 fi
27370
27371 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27372   as_basename=basename
27373 else
27374   as_basename=false
27375 fi
27376
27377
27378 # Name of the executable.
27379 as_me=`$as_basename -- "$0" ||
27380 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27381          X"$0" : 'X\(//\)$' \| \
27382          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27383 echo X/"$0" |
27384     sed '/^.*\/\([^/][^/]*\)\/*$/{
27385             s//\1/
27386             q
27387           }
27388           /^X\/\(\/\/\)$/{
27389             s//\1/
27390             q
27391           }
27392           /^X\/\(\/\).*/{
27393             s//\1/
27394             q
27395           }
27396           s/.*/./; q'`
27397
27398 # CDPATH.
27399 $as_unset CDPATH
27400
27401
27402
27403   as_lineno_1=$LINENO
27404   as_lineno_2=$LINENO
27405   test "x$as_lineno_1" != "x$as_lineno_2" &&
27406   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27407
27408   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27409   # uniformly replaced by the line number.  The first 'sed' inserts a
27410   # line-number line after each line using $LINENO; the second 'sed'
27411   # does the real work.  The second script uses 'N' to pair each
27412   # line-number line with the line containing $LINENO, and appends
27413   # trailing '-' during substitution so that $LINENO is not a special
27414   # case at line end.
27415   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27416   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27417   # E. McMahon (1931-1989) for sed's syntax.  :-)
27418   sed -n '
27419     p
27420     /[$]LINENO/=
27421   ' <$as_myself |
27422     sed '
27423       s/[$]LINENO.*/&-/
27424       t lineno
27425       b
27426       :lineno
27427       N
27428       :loop
27429       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27430       t loop
27431       s/-\n.*//
27432     ' >$as_me.lineno &&
27433   chmod +x "$as_me.lineno" ||
27434     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27435    { (exit 1); exit 1; }; }
27436
27437   # Don't try to exec as it changes $[0], causing all sort of problems
27438   # (the dirname of $[0] is not the place where we might find the
27439   # original and so on.  Autoconf is especially sensitive to this).
27440   . "./$as_me.lineno"
27441   # Exit status is that of the last command.
27442   exit
27443 }
27444
27445
27446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27447   as_dirname=dirname
27448 else
27449   as_dirname=false
27450 fi
27451
27452 ECHO_C= ECHO_N= ECHO_T=
27453 case `echo -n x` in
27454 -n*)
27455   case `echo 'x\c'` in
27456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27457   *)   ECHO_C='\c';;
27458   esac;;
27459 *)
27460   ECHO_N='-n';;
27461 esac
27462
27463 if expr a : '\(a\)' >/dev/null 2>&1 &&
27464    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27465   as_expr=expr
27466 else
27467   as_expr=false
27468 fi
27469
27470 rm -f conf$$ conf$$.exe conf$$.file
27471 if test -d conf$$.dir; then
27472   rm -f conf$$.dir/conf$$.file
27473 else
27474   rm -f conf$$.dir
27475   mkdir conf$$.dir
27476 fi
27477 echo >conf$$.file
27478 if ln -s conf$$.file conf$$ 2>/dev/null; then
27479   as_ln_s='ln -s'
27480   # ... but there are two gotchas:
27481   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27482   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27483   # In both cases, we have to default to `cp -p'.
27484   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27485     as_ln_s='cp -p'
27486 elif ln conf$$.file conf$$ 2>/dev/null; then
27487   as_ln_s=ln
27488 else
27489   as_ln_s='cp -p'
27490 fi
27491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27492 rmdir conf$$.dir 2>/dev/null
27493
27494 if mkdir -p . 2>/dev/null; then
27495   as_mkdir_p=:
27496 else
27497   test -d ./-p && rmdir ./-p
27498   as_mkdir_p=false
27499 fi
27500
27501 if test -x / >/dev/null 2>&1; then
27502   as_test_x='test -x'
27503 else
27504   if ls -dL / >/dev/null 2>&1; then
27505     as_ls_L_option=L
27506   else
27507     as_ls_L_option=
27508   fi
27509   as_test_x='
27510     eval sh -c '\''
27511       if test -d "$1"; then
27512         test -d "$1/.";
27513       else
27514         case $1 in
27515         -*)set "./$1";;
27516         esac;
27517         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27518         ???[sx]*):;;*)false;;esac;fi
27519     '\'' sh
27520   '
27521 fi
27522 as_executable_p=$as_test_x
27523
27524 # Sed expression to map a string onto a valid CPP name.
27525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27526
27527 # Sed expression to map a string onto a valid variable name.
27528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27529
27530
27531 exec 6>&1
27532
27533 # Save the log message, to keep $[0] and so on meaningful, and to
27534 # report actual input values of CONFIG_FILES etc. instead of their
27535 # values after options handling.
27536 ac_log="
27537 This file was extended by simgrid $as_me 3.3-cvs, which was
27538 generated by GNU Autoconf 2.61.  Invocation command line was
27539
27540   CONFIG_FILES    = $CONFIG_FILES
27541   CONFIG_HEADERS  = $CONFIG_HEADERS
27542   CONFIG_LINKS    = $CONFIG_LINKS
27543   CONFIG_COMMANDS = $CONFIG_COMMANDS
27544   $ $0 $@
27545
27546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27547 "
27548
27549 _ACEOF
27550
27551 cat >>$CONFIG_STATUS <<_ACEOF
27552 # Files that config.status was made for.
27553 config_files="$ac_config_files"
27554 config_headers="$ac_config_headers"
27555 config_commands="$ac_config_commands"
27556
27557 _ACEOF
27558
27559 cat >>$CONFIG_STATUS <<\_ACEOF
27560 ac_cs_usage="\
27561 \`$as_me' instantiates files from templates according to the
27562 current configuration.
27563
27564 Usage: $0 [OPTIONS] [FILE]...
27565
27566   -h, --help       print this help, then exit
27567   -V, --version    print version number and configuration settings, then exit
27568   -q, --quiet      do not print progress messages
27569   -d, --debug      don't remove temporary files
27570       --recheck    update $as_me by reconfiguring in the same conditions
27571   --file=FILE[:TEMPLATE]
27572                    instantiate the configuration file FILE
27573   --header=FILE[:TEMPLATE]
27574                    instantiate the configuration header FILE
27575
27576 Configuration files:
27577 $config_files
27578
27579 Configuration headers:
27580 $config_headers
27581
27582 Configuration commands:
27583 $config_commands
27584
27585 Report bugs to <bug-autoconf@gnu.org>."
27586
27587 _ACEOF
27588 cat >>$CONFIG_STATUS <<_ACEOF
27589 ac_cs_version="\\
27590 simgrid config.status 3.3-cvs
27591 configured by $0, generated by GNU Autoconf 2.61,
27592   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27593
27594 Copyright (C) 2006 Free Software Foundation, Inc.
27595 This config.status script is free software; the Free Software Foundation
27596 gives unlimited permission to copy, distribute and modify it."
27597
27598 ac_pwd='$ac_pwd'
27599 srcdir='$srcdir'
27600 INSTALL='$INSTALL'
27601 MKDIR_P='$MKDIR_P'
27602 _ACEOF
27603
27604 cat >>$CONFIG_STATUS <<\_ACEOF
27605 # If no file are specified by the user, then we need to provide default
27606 # value.  By we need to know if files were specified by the user.
27607 ac_need_defaults=:
27608 while test $# != 0
27609 do
27610   case $1 in
27611   --*=*)
27612     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27613     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27614     ac_shift=:
27615     ;;
27616   *)
27617     ac_option=$1
27618     ac_optarg=$2
27619     ac_shift=shift
27620     ;;
27621   esac
27622
27623   case $ac_option in
27624   # Handling of the options.
27625   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27626     ac_cs_recheck=: ;;
27627   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27628     echo "$ac_cs_version"; exit ;;
27629   --debug | --debu | --deb | --de | --d | -d )
27630     debug=: ;;
27631   --file | --fil | --fi | --f )
27632     $ac_shift
27633     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27634     ac_need_defaults=false;;
27635   --header | --heade | --head | --hea )
27636     $ac_shift
27637     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27638     ac_need_defaults=false;;
27639   --he | --h)
27640     # Conflict between --help and --header
27641     { echo "$as_me: error: ambiguous option: $1
27642 Try \`$0 --help' for more information." >&2
27643    { (exit 1); exit 1; }; };;
27644   --help | --hel | -h )
27645     echo "$ac_cs_usage"; exit ;;
27646   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27647   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27648     ac_cs_silent=: ;;
27649
27650   # This is an error.
27651   -*) { echo "$as_me: error: unrecognized option: $1
27652 Try \`$0 --help' for more information." >&2
27653    { (exit 1); exit 1; }; } ;;
27654
27655   *) ac_config_targets="$ac_config_targets $1"
27656      ac_need_defaults=false ;;
27657
27658   esac
27659   shift
27660 done
27661
27662 ac_configure_extra_args=
27663
27664 if $ac_cs_silent; then
27665   exec 6>/dev/null
27666   ac_configure_extra_args="$ac_configure_extra_args --silent"
27667 fi
27668
27669 _ACEOF
27670 cat >>$CONFIG_STATUS <<_ACEOF
27671 if \$ac_cs_recheck; then
27672   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27673   CONFIG_SHELL=$SHELL
27674   export CONFIG_SHELL
27675   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27676 fi
27677
27678 _ACEOF
27679 cat >>$CONFIG_STATUS <<\_ACEOF
27680 exec 5>>config.log
27681 {
27682   echo
27683   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27684 ## Running $as_me. ##
27685 _ASBOX
27686   echo "$ac_log"
27687 } >&5
27688
27689 _ACEOF
27690 cat >>$CONFIG_STATUS <<_ACEOF
27691 #
27692 # INIT-COMMANDS
27693 #
27694 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27695
27696 _ACEOF
27697
27698 cat >>$CONFIG_STATUS <<\_ACEOF
27699
27700 # Handling of arguments.
27701 for ac_config_target in $ac_config_targets
27702 do
27703   case $ac_config_target in
27704     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27705     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27706     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27707     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27708     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27709     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27710     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27711     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27712     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27713     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27714     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27715     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27716     "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
27717     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27718     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27719     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27720     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27721     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27722     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27723     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27724     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27725     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27726     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27727     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27728     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27729     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27730     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27731     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27732     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27733     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27734     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27735     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27736     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27737     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27738     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27739     "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
27740     "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
27741
27742   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27744    { (exit 1); exit 1; }; };;
27745   esac
27746 done
27747
27748
27749 # If the user did not use the arguments to specify the items to instantiate,
27750 # then the envvar interface is used.  Set only those that are not.
27751 # We use the long form for the default assignment because of an extremely
27752 # bizarre bug on SunOS 4.1.3.
27753 if $ac_need_defaults; then
27754   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27755   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27756   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27757 fi
27758
27759 # Have a temporary directory for convenience.  Make it in the build tree
27760 # simply because there is no reason against having it here, and in addition,
27761 # creating and moving files from /tmp can sometimes cause problems.
27762 # Hook for its removal unless debugging.
27763 # Note that there is a small window in which the directory will not be cleaned:
27764 # after its creation but before its name has been assigned to `$tmp'.
27765 $debug ||
27766 {
27767   tmp=
27768   trap 'exit_status=$?
27769   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27770 ' 0
27771   trap '{ (exit 1); exit 1; }' 1 2 13 15
27772 }
27773 # Create a (secure) tmp directory for tmp files.
27774
27775 {
27776   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27777   test -n "$tmp" && test -d "$tmp"
27778 }  ||
27779 {
27780   tmp=./conf$$-$RANDOM
27781   (umask 077 && mkdir "$tmp")
27782 } ||
27783 {
27784    echo "$me: cannot create a temporary directory in ." >&2
27785    { (exit 1); exit 1; }
27786 }
27787
27788 #
27789 # Set up the sed scripts for CONFIG_FILES section.
27790 #
27791
27792 # No need to generate the scripts if there are no CONFIG_FILES.
27793 # This happens for instance when ./config.status config.h
27794 if test -n "$CONFIG_FILES"; then
27795
27796 _ACEOF
27797
27798
27799
27800 ac_delim='%!_!# '
27801 for ac_last_try in false false false false false :; do
27802   cat >conf$$subs.sed <<_ACEOF
27803 SHELL!$SHELL$ac_delim
27804 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27805 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27806 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27807 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27808 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27809 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27810 exec_prefix!$exec_prefix$ac_delim
27811 prefix!$prefix$ac_delim
27812 program_transform_name!$program_transform_name$ac_delim
27813 bindir!$bindir$ac_delim
27814 sbindir!$sbindir$ac_delim
27815 libexecdir!$libexecdir$ac_delim
27816 datarootdir!$datarootdir$ac_delim
27817 datadir!$datadir$ac_delim
27818 sysconfdir!$sysconfdir$ac_delim
27819 sharedstatedir!$sharedstatedir$ac_delim
27820 localstatedir!$localstatedir$ac_delim
27821 includedir!$includedir$ac_delim
27822 oldincludedir!$oldincludedir$ac_delim
27823 docdir!$docdir$ac_delim
27824 infodir!$infodir$ac_delim
27825 htmldir!$htmldir$ac_delim
27826 dvidir!$dvidir$ac_delim
27827 pdfdir!$pdfdir$ac_delim
27828 psdir!$psdir$ac_delim
27829 libdir!$libdir$ac_delim
27830 localedir!$localedir$ac_delim
27831 mandir!$mandir$ac_delim
27832 DEFS!$DEFS$ac_delim
27833 ECHO_C!$ECHO_C$ac_delim
27834 ECHO_N!$ECHO_N$ac_delim
27835 ECHO_T!$ECHO_T$ac_delim
27836 LIBS!$LIBS$ac_delim
27837 build_alias!$build_alias$ac_delim
27838 host_alias!$host_alias$ac_delim
27839 target_alias!$target_alias$ac_delim
27840 build!$build$ac_delim
27841 build_cpu!$build_cpu$ac_delim
27842 build_vendor!$build_vendor$ac_delim
27843 build_os!$build_os$ac_delim
27844 host!$host$ac_delim
27845 host_cpu!$host_cpu$ac_delim
27846 host_vendor!$host_vendor$ac_delim
27847 host_os!$host_os$ac_delim
27848 target!$target$ac_delim
27849 target_cpu!$target_cpu$ac_delim
27850 target_vendor!$target_vendor$ac_delim
27851 target_os!$target_os$ac_delim
27852 GCJ!$GCJ$ac_delim
27853 GCJFLAGS!$GCJFLAGS$ac_delim
27854 am__leading_dot!$am__leading_dot$ac_delim
27855 DEPDIR!$DEPDIR$ac_delim
27856 am__include!$am__include$ac_delim
27857 am__quote!$am__quote$ac_delim
27858 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27859 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27860 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27861 GCJDEPMODE!$GCJDEPMODE$ac_delim
27862 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27863 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27864 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27865 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27866 INSTALL_DATA!$INSTALL_DATA$ac_delim
27867 am__isrc!$am__isrc$ac_delim
27868 CYGPATH_W!$CYGPATH_W$ac_delim
27869 PACKAGE!$PACKAGE$ac_delim
27870 VERSION!$VERSION$ac_delim
27871 ACLOCAL!$ACLOCAL$ac_delim
27872 AUTOCONF!$AUTOCONF$ac_delim
27873 AUTOMAKE!$AUTOMAKE$ac_delim
27874 AUTOHEADER!$AUTOHEADER$ac_delim
27875 MAKEINFO!$MAKEINFO$ac_delim
27876 install_sh!$install_sh$ac_delim
27877 STRIP!$STRIP$ac_delim
27878 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27879 mkdir_p!$mkdir_p$ac_delim
27880 AWK!$AWK$ac_delim
27881 SET_MAKE!$SET_MAKE$ac_delim
27882 AMTAR!$AMTAR$ac_delim
27883 am__tar!$am__tar$ac_delim
27884 am__untar!$am__untar$ac_delim
27885 CC!$CC$ac_delim
27886 CFLAGS!$CFLAGS$ac_delim
27887 LDFLAGS!$LDFLAGS$ac_delim
27888 CPPFLAGS!$CPPFLAGS$ac_delim
27889 ac_ct_CC!$ac_ct_CC$ac_delim
27890 EXEEXT!$EXEEXT$ac_delim
27891 OBJEXT!$OBJEXT$ac_delim
27892 CCDEPMODE!$CCDEPMODE$ac_delim
27893 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27894 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27895 GREP!$GREP$ac_delim
27896 EGREP!$EGREP$ac_delim
27897 LN_S!$LN_S$ac_delim
27898 ECHO!$ECHO$ac_delim
27899 AR!$AR$ac_delim
27900 _ACEOF
27901
27902   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27903     break
27904   elif $ac_last_try; then
27905     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27906 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27907    { (exit 1); exit 1; }; }
27908   else
27909     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27910   fi
27911 done
27912
27913 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27914 if test -n "$ac_eof"; then
27915   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27916   ac_eof=`expr $ac_eof + 1`
27917 fi
27918
27919 cat >>$CONFIG_STATUS <<_ACEOF
27920 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27922 _ACEOF
27923 sed '
27924 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27925 s/^/s,@/; s/!/@,|#_!!_#|/
27926 :n
27927 t n
27928 s/'"$ac_delim"'$/,g/; t
27929 s/$/\\/; p
27930 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27931 ' >>$CONFIG_STATUS <conf$$subs.sed
27932 rm -f conf$$subs.sed
27933 cat >>$CONFIG_STATUS <<_ACEOF
27934 CEOF$ac_eof
27935 _ACEOF
27936
27937
27938 ac_delim='%!_!# '
27939 for ac_last_try in false false false false false :; do
27940   cat >conf$$subs.sed <<_ACEOF
27941 RANLIB!$RANLIB$ac_delim
27942 DLLTOOL!$DLLTOOL$ac_delim
27943 AS!$AS$ac_delim
27944 OBJDUMP!$OBJDUMP$ac_delim
27945 CPP!$CPP$ac_delim
27946 CXX!$CXX$ac_delim
27947 CXXFLAGS!$CXXFLAGS$ac_delim
27948 ac_ct_CXX!$ac_ct_CXX$ac_delim
27949 CXXDEPMODE!$CXXDEPMODE$ac_delim
27950 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27951 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27952 CXXCPP!$CXXCPP$ac_delim
27953 LIBTOOL!$LIBTOOL$ac_delim
27954 LIBOBJS!$LIBOBJS$ac_delim
27955 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27956 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27957 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
27958 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
27959 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27960 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27961 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27962 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27963 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27964 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27965 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27966 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27967 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27968 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27969 SMPI_DEP!$SMPI_DEP$ac_delim
27970 GRAS_DEP!$GRAS_DEP$ac_delim
27971 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27972 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27973 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27974 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27975 MAINT!$MAINT$ac_delim
27976 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27977 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27978 abs_builddir!$abs_builddir$ac_delim
27979 abs_srcdir!$abs_srcdir$ac_delim
27980 abs_top_builddir!$abs_top_builddir$ac_delim
27981 abs_top_srcdir!$abs_top_srcdir$ac_delim
27982 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
27983 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
27984 JAVAC!$JAVAC$ac_delim
27985 JAVA!$JAVA$ac_delim
27986 JAR!$JAR$ac_delim
27987 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27988 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27989 BASH!$BASH$ac_delim
27990 WARNING!$WARNING$ac_delim
27991 LEX!$LEX$ac_delim
27992 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27993 LEXLIB!$LEXLIB$ac_delim
27994 FLEXML!$FLEXML$ac_delim
27995 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27996 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27997 DOXYGEN!$DOXYGEN$ac_delim
27998 ADDR2LINE!$ADDR2LINE$ac_delim
27999 ac_configure_args!$ac_configure_args$ac_delim
28000 MD5SUM!$MD5SUM$ac_delim
28001 build_id!$build_id$ac_delim
28002 LTLIBOBJS!$LTLIBOBJS$ac_delim
28003 _ACEOF
28004
28005   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
28006     break
28007   elif $ac_last_try; then
28008     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28010    { (exit 1); exit 1; }; }
28011   else
28012     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28013   fi
28014 done
28015
28016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28017 if test -n "$ac_eof"; then
28018   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28019   ac_eof=`expr $ac_eof + 1`
28020 fi
28021
28022 cat >>$CONFIG_STATUS <<_ACEOF
28023 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28025 _ACEOF
28026 sed '
28027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28028 s/^/s,@/; s/!/@,|#_!!_#|/
28029 :n
28030 t n
28031 s/'"$ac_delim"'$/,g/; t
28032 s/$/\\/; p
28033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28034 ' >>$CONFIG_STATUS <conf$$subs.sed
28035 rm -f conf$$subs.sed
28036 cat >>$CONFIG_STATUS <<_ACEOF
28037 :end
28038 s/|#_!!_#|//g
28039 CEOF$ac_eof
28040 _ACEOF
28041
28042
28043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28045 # trailing colons and then remove the whole line if VPATH becomes empty
28046 # (actually we leave an empty line to preserve line numbers).
28047 if test "x$srcdir" = x.; then
28048   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28049 s/:*\$(srcdir):*/:/
28050 s/:*\${srcdir}:*/:/
28051 s/:*@srcdir@:*/:/
28052 s/^\([^=]*=[     ]*\):*/\1/
28053 s/:*$//
28054 s/^[^=]*=[       ]*$//
28055 }'
28056 fi
28057
28058 cat >>$CONFIG_STATUS <<\_ACEOF
28059 fi # test -n "$CONFIG_FILES"
28060
28061
28062 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28063 do
28064   case $ac_tag in
28065   :[FHLC]) ac_mode=$ac_tag; continue;;
28066   esac
28067   case $ac_mode$ac_tag in
28068   :[FHL]*:*);;
28069   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28070 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28071    { (exit 1); exit 1; }; };;
28072   :[FH]-) ac_tag=-:-;;
28073   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28074   esac
28075   ac_save_IFS=$IFS
28076   IFS=:
28077   set x $ac_tag
28078   IFS=$ac_save_IFS
28079   shift
28080   ac_file=$1
28081   shift
28082
28083   case $ac_mode in
28084   :L) ac_source=$1;;
28085   :[FH])
28086     ac_file_inputs=
28087     for ac_f
28088     do
28089       case $ac_f in
28090       -) ac_f="$tmp/stdin";;
28091       *) # Look for the file first in the build tree, then in the source tree
28092          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28093          # because $ac_f cannot contain `:'.
28094          test -f "$ac_f" ||
28095            case $ac_f in
28096            [\\/$]*) false;;
28097            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28098            esac ||
28099            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28100 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28101    { (exit 1); exit 1; }; };;
28102       esac
28103       ac_file_inputs="$ac_file_inputs $ac_f"
28104     done
28105
28106     # Let's still pretend it is `configure' which instantiates (i.e., don't
28107     # use $as_me), people would be surprised to read:
28108     #    /* config.h.  Generated by config.status.  */
28109     configure_input="Generated from "`IFS=:
28110           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28111     if test x"$ac_file" != x-; then
28112       configure_input="$ac_file.  $configure_input"
28113       { echo "$as_me:$LINENO: creating $ac_file" >&5
28114 echo "$as_me: creating $ac_file" >&6;}
28115     fi
28116
28117     case $ac_tag in
28118     *:-:* | *:-) cat >"$tmp/stdin";;
28119     esac
28120     ;;
28121   esac
28122
28123   ac_dir=`$as_dirname -- "$ac_file" ||
28124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28125          X"$ac_file" : 'X\(//\)[^/]' \| \
28126          X"$ac_file" : 'X\(//\)$' \| \
28127          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28128 echo X"$ac_file" |
28129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28130             s//\1/
28131             q
28132           }
28133           /^X\(\/\/\)[^/].*/{
28134             s//\1/
28135             q
28136           }
28137           /^X\(\/\/\)$/{
28138             s//\1/
28139             q
28140           }
28141           /^X\(\/\).*/{
28142             s//\1/
28143             q
28144           }
28145           s/.*/./; q'`
28146   { as_dir="$ac_dir"
28147   case $as_dir in #(
28148   -*) as_dir=./$as_dir;;
28149   esac
28150   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28151     as_dirs=
28152     while :; do
28153       case $as_dir in #(
28154       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28155       *) as_qdir=$as_dir;;
28156       esac
28157       as_dirs="'$as_qdir' $as_dirs"
28158       as_dir=`$as_dirname -- "$as_dir" ||
28159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28160          X"$as_dir" : 'X\(//\)[^/]' \| \
28161          X"$as_dir" : 'X\(//\)$' \| \
28162          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28163 echo X"$as_dir" |
28164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28165             s//\1/
28166             q
28167           }
28168           /^X\(\/\/\)[^/].*/{
28169             s//\1/
28170             q
28171           }
28172           /^X\(\/\/\)$/{
28173             s//\1/
28174             q
28175           }
28176           /^X\(\/\).*/{
28177             s//\1/
28178             q
28179           }
28180           s/.*/./; q'`
28181       test -d "$as_dir" && break
28182     done
28183     test -z "$as_dirs" || eval "mkdir $as_dirs"
28184   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28185 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28186    { (exit 1); exit 1; }; }; }
28187   ac_builddir=.
28188
28189 case "$ac_dir" in
28190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28191 *)
28192   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28193   # A ".." for each directory in $ac_dir_suffix.
28194   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28195   case $ac_top_builddir_sub in
28196   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28197   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28198   esac ;;
28199 esac
28200 ac_abs_top_builddir=$ac_pwd
28201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28202 # for backward compatibility:
28203 ac_top_builddir=$ac_top_build_prefix
28204
28205 case $srcdir in
28206   .)  # We are building in place.
28207     ac_srcdir=.
28208     ac_top_srcdir=$ac_top_builddir_sub
28209     ac_abs_top_srcdir=$ac_pwd ;;
28210   [\\/]* | ?:[\\/]* )  # Absolute name.
28211     ac_srcdir=$srcdir$ac_dir_suffix;
28212     ac_top_srcdir=$srcdir
28213     ac_abs_top_srcdir=$srcdir ;;
28214   *) # Relative name.
28215     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28216     ac_top_srcdir=$ac_top_build_prefix$srcdir
28217     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28218 esac
28219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28220
28221
28222   case $ac_mode in
28223   :F)
28224   #
28225   # CONFIG_FILE
28226   #
28227
28228   case $INSTALL in
28229   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28230   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28231   esac
28232   ac_MKDIR_P=$MKDIR_P
28233   case $MKDIR_P in
28234   [\\/$]* | ?:[\\/]* ) ;;
28235   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28236   esac
28237 _ACEOF
28238
28239 cat >>$CONFIG_STATUS <<\_ACEOF
28240 # If the template does not know about datarootdir, expand it.
28241 # FIXME: This hack should be removed a few years after 2.60.
28242 ac_datarootdir_hack=; ac_datarootdir_seen=
28243
28244 case `sed -n '/datarootdir/ {
28245   p
28246   q
28247 }
28248 /@datadir@/p
28249 /@docdir@/p
28250 /@infodir@/p
28251 /@localedir@/p
28252 /@mandir@/p
28253 ' $ac_file_inputs` in
28254 *datarootdir*) ac_datarootdir_seen=yes;;
28255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28256   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28257 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28258 _ACEOF
28259 cat >>$CONFIG_STATUS <<_ACEOF
28260   ac_datarootdir_hack='
28261   s&@datadir@&$datadir&g
28262   s&@docdir@&$docdir&g
28263   s&@infodir@&$infodir&g
28264   s&@localedir@&$localedir&g
28265   s&@mandir@&$mandir&g
28266     s&\\\${datarootdir}&$datarootdir&g' ;;
28267 esac
28268 _ACEOF
28269
28270 # Neutralize VPATH when `$srcdir' = `.'.
28271 # Shell code in configure.ac might set extrasub.
28272 # FIXME: do we really want to maintain this feature?
28273 cat >>$CONFIG_STATUS <<_ACEOF
28274   sed "$ac_vpsub
28275 $extrasub
28276 _ACEOF
28277 cat >>$CONFIG_STATUS <<\_ACEOF
28278 :t
28279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28280 s&@configure_input@&$configure_input&;t t
28281 s&@top_builddir@&$ac_top_builddir_sub&;t t
28282 s&@srcdir@&$ac_srcdir&;t t
28283 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28284 s&@top_srcdir@&$ac_top_srcdir&;t t
28285 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28286 s&@builddir@&$ac_builddir&;t t
28287 s&@abs_builddir@&$ac_abs_builddir&;t t
28288 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28289 s&@INSTALL@&$ac_INSTALL&;t t
28290 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28291 $ac_datarootdir_hack
28292 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28293
28294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28295   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28296   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28297   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28298 which seems to be undefined.  Please make sure it is defined." >&5
28299 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28300 which seems to be undefined.  Please make sure it is defined." >&2;}
28301
28302   rm -f "$tmp/stdin"
28303   case $ac_file in
28304   -) cat "$tmp/out"; rm -f "$tmp/out";;
28305   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28306   esac
28307  ;;
28308   :H)
28309   #
28310   # CONFIG_HEADER
28311   #
28312 _ACEOF
28313
28314 # Transform confdefs.h into a sed script `conftest.defines', that
28315 # substitutes the proper values into config.h.in to produce config.h.
28316 rm -f conftest.defines conftest.tail
28317 # First, append a space to every undef/define line, to ease matching.
28318 echo 's/$/ /' >conftest.defines
28319 # Then, protect against being on the right side of a sed subst, or in
28320 # an unquoted here document, in config.status.  If some macros were
28321 # called several times there might be several #defines for the same
28322 # symbol, which is useless.  But do not sort them, since the last
28323 # AC_DEFINE must be honored.
28324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28325 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28326 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28327 # PARAMS is the parameter list in the macro definition--in most cases, it's
28328 # just an empty string.
28329 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28330 ac_dB='\\)[      (].*,\\1define\\2'
28331 ac_dC=' '
28332 ac_dD=' ,'
28333
28334 uniq confdefs.h |
28335   sed -n '
28336         t rset
28337         :rset
28338         s/^[     ]*#[    ]*define[       ][      ]*//
28339         t ok
28340         d
28341         :ok
28342         s/[\\&,]/\\&/g
28343         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28344         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28345   ' >>conftest.defines
28346
28347 # Remove the space that was appended to ease matching.
28348 # Then replace #undef with comments.  This is necessary, for
28349 # example, in the case of _POSIX_SOURCE, which is predefined and required
28350 # on some systems where configure will not decide to define it.
28351 # (The regexp can be short, since the line contains either #define or #undef.)
28352 echo 's/ $//
28353 s,^[     #]*u.*,/* & */,' >>conftest.defines
28354
28355 # Break up conftest.defines:
28356 ac_max_sed_lines=50
28357
28358 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28359 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28360 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28361 # et cetera.
28362 ac_in='$ac_file_inputs'
28363 ac_out='"$tmp/out1"'
28364 ac_nxt='"$tmp/out2"'
28365
28366 while :
28367 do
28368   # Write a here document:
28369     cat >>$CONFIG_STATUS <<_ACEOF
28370     # First, check the format of the line:
28371     cat >"\$tmp/defines.sed" <<\\CEOF
28372 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28373 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28374 b
28375 :def
28376 _ACEOF
28377   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28378   echo 'CEOF
28379     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28380   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28381   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28382   grep . conftest.tail >/dev/null || break
28383   rm -f conftest.defines
28384   mv conftest.tail conftest.defines
28385 done
28386 rm -f conftest.defines conftest.tail
28387
28388 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28389 cat >>$CONFIG_STATUS <<\_ACEOF
28390   if test x"$ac_file" != x-; then
28391     echo "/* $configure_input  */" >"$tmp/config.h"
28392     cat "$ac_result" >>"$tmp/config.h"
28393     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28394       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28395 echo "$as_me: $ac_file is unchanged" >&6;}
28396     else
28397       rm -f $ac_file
28398       mv "$tmp/config.h" $ac_file
28399     fi
28400   else
28401     echo "/* $configure_input  */"
28402     cat "$ac_result"
28403   fi
28404   rm -f "$tmp/out12"
28405 # Compute $ac_file's index in $config_headers.
28406 _am_stamp_count=1
28407 for _am_header in $config_headers :; do
28408   case $_am_header in
28409     $ac_file | $ac_file:* )
28410       break ;;
28411     * )
28412       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28413   esac
28414 done
28415 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28416 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28417          X$ac_file : 'X\(//\)[^/]' \| \
28418          X$ac_file : 'X\(//\)$' \| \
28419          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28420 echo X$ac_file |
28421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28422             s//\1/
28423             q
28424           }
28425           /^X\(\/\/\)[^/].*/{
28426             s//\1/
28427             q
28428           }
28429           /^X\(\/\/\)$/{
28430             s//\1/
28431             q
28432           }
28433           /^X\(\/\).*/{
28434             s//\1/
28435             q
28436           }
28437           s/.*/./; q'`/stamp-h$_am_stamp_count
28438  ;;
28439
28440   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28441 echo "$as_me: executing $ac_file commands" >&6;}
28442  ;;
28443   esac
28444
28445
28446   case $ac_file$ac_mode in
28447     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28448   # Strip MF so we end up with the name of the file.
28449   mf=`echo "$mf" | sed -e 's/:.*$//'`
28450   # Check whether this is an Automake generated Makefile or not.
28451   # We used to match only the files named `Makefile.in', but
28452   # some people rename them; so instead we look at the file content.
28453   # Grep'ing the first line is not enough: some people post-process
28454   # each Makefile.in and add a new line on top of each file to say so.
28455   # Grep'ing the whole file is not good either: AIX grep has a line
28456   # limit of 2048, but all sed's we know have understand at least 4000.
28457   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28458     dirpart=`$as_dirname -- "$mf" ||
28459 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28460          X"$mf" : 'X\(//\)[^/]' \| \
28461          X"$mf" : 'X\(//\)$' \| \
28462          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28463 echo X"$mf" |
28464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28465             s//\1/
28466             q
28467           }
28468           /^X\(\/\/\)[^/].*/{
28469             s//\1/
28470             q
28471           }
28472           /^X\(\/\/\)$/{
28473             s//\1/
28474             q
28475           }
28476           /^X\(\/\).*/{
28477             s//\1/
28478             q
28479           }
28480           s/.*/./; q'`
28481   else
28482     continue
28483   fi
28484   # Extract the definition of DEPDIR, am__include, and am__quote
28485   # from the Makefile without running `make'.
28486   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28487   test -z "$DEPDIR" && continue
28488   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28489   test -z "am__include" && continue
28490   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28491   # When using ansi2knr, U may be empty or an underscore; expand it
28492   U=`sed -n 's/^U = //p' < "$mf"`
28493   # Find all dependency output files, they are included files with
28494   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28495   # simplest approach to changing $(DEPDIR) to its actual value in the
28496   # expansion.
28497   for file in `sed -n "
28498     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28499        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28500     # Make sure the directory exists.
28501     test -f "$dirpart/$file" && continue
28502     fdir=`$as_dirname -- "$file" ||
28503 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28504          X"$file" : 'X\(//\)[^/]' \| \
28505          X"$file" : 'X\(//\)$' \| \
28506          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28507 echo X"$file" |
28508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28509             s//\1/
28510             q
28511           }
28512           /^X\(\/\/\)[^/].*/{
28513             s//\1/
28514             q
28515           }
28516           /^X\(\/\/\)$/{
28517             s//\1/
28518             q
28519           }
28520           /^X\(\/\).*/{
28521             s//\1/
28522             q
28523           }
28524           s/.*/./; q'`
28525     { as_dir=$dirpart/$fdir
28526   case $as_dir in #(
28527   -*) as_dir=./$as_dir;;
28528   esac
28529   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28530     as_dirs=
28531     while :; do
28532       case $as_dir in #(
28533       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28534       *) as_qdir=$as_dir;;
28535       esac
28536       as_dirs="'$as_qdir' $as_dirs"
28537       as_dir=`$as_dirname -- "$as_dir" ||
28538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28539          X"$as_dir" : 'X\(//\)[^/]' \| \
28540          X"$as_dir" : 'X\(//\)$' \| \
28541          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28542 echo X"$as_dir" |
28543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28544             s//\1/
28545             q
28546           }
28547           /^X\(\/\/\)[^/].*/{
28548             s//\1/
28549             q
28550           }
28551           /^X\(\/\/\)$/{
28552             s//\1/
28553             q
28554           }
28555           /^X\(\/\).*/{
28556             s//\1/
28557             q
28558           }
28559           s/.*/./; q'`
28560       test -d "$as_dir" && break
28561     done
28562     test -z "$as_dirs" || eval "mkdir $as_dirs"
28563   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28564 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28565    { (exit 1); exit 1; }; }; }
28566     # echo "creating $dirpart/$file"
28567     echo '# dummy' > "$dirpart/$file"
28568   done
28569 done
28570  ;;
28571     "tools/graspe-slave":F)
28572     for file in                                                 \
28573      tools/graspe-slave           tools/graspe-master           \
28574     ; do                                                        \
28575       test -e $file && chmod +x $file;                          \
28576     done
28577  ;;
28578     "testsuite/Makefile":F)
28579     for file in                                                 \
28580      testsuite/run_tests                                        \
28581     ; do                                                        \
28582       test -e $file && chmod +x $file;                          \
28583     done
28584  ;;
28585     "testsuite/run_tests":F)
28586     for file in                                                 \
28587      testsuite/run_tests                                        \
28588     ; do                                                        \
28589       test -e $file && chmod +x $file;                          \
28590     done
28591  ;;
28592
28593   esac
28594 done # for ac_tag
28595
28596
28597 { (exit 0); exit 0; }
28598 _ACEOF
28599 chmod +x $CONFIG_STATUS
28600 ac_clean_files=$ac_clean_files_save
28601
28602
28603 # configure is writing to config.log, and then calls config.status.
28604 # config.status does its own redirection, appending to config.log.
28605 # Unfortunately, on DOS this fails, as config.log is still kept open
28606 # by configure, so config.status won't be able to write to it; its
28607 # output is simply discarded.  So we exec the FD to /dev/null,
28608 # effectively closing config.log, so it can be properly (re)opened and
28609 # appended to by config.status.  When coming back to configure, we
28610 # need to make the FD available again.
28611 if test "$no_create" != yes; then
28612   ac_cs_success=:
28613   ac_config_status_args=
28614   test "$silent" = yes &&
28615     ac_config_status_args="$ac_config_status_args --quiet"
28616   exec 5>/dev/null
28617   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28618   exec 5>>config.log
28619   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28620   # would make configure fail if this is the last instruction.
28621   $ac_cs_success || { (exit 1); exit 1; }
28622 fi
28623
28624
28625 echo "
28626
28627 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28628
28629         Compiler:        ${CC} (version: ${GCC_VERSION})
28630
28631         CFlags:          ${CFLAGS}
28632         CPPFlags:        ${CPPFLAGS}
28633         LDFlags:         ${LDFLAGS}
28634
28635         Context backend: ${with_context}
28636         Compile Java:    ${use_java}
28637
28638         Maintainer mode: ${USE_MAINTAINER_MODE}
28639
28640 "
28641 if test x$botbuild = xyes ; then
28642   echo "        This is a bot build. Do not specify --enable-botbuild if you are not a bot."
28643   echo
28644 fi
28645
28646 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
28647   echo "WARNING: "
28648   echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
28649   echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
28650   echo "WARNING:"
28651   echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
28652   echo "WARNING:"
28653 fi
28654
28655 echo $build_id > stamp.configure
28656
28657 exit 0;