Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use the rate variable... (thanks Fred for noticing it).
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 5331 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-svn.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-svn'
735 PACKAGE_STRING='simgrid 3.3-svn'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 SED
868 GREP
869 EGREP
870 LN_S
871 ECHO
872 AR
873 RANLIB
874 DSYMUTIL
875 NMEDIT
876 DLLTOOL
877 AS
878 OBJDUMP
879 CPP
880 CXX
881 CXXFLAGS
882 ac_ct_CXX
883 CXXDEPMODE
884 am__fastdepCXX_TRUE
885 am__fastdepCXX_FALSE
886 CXXCPP
887 LIBTOOL
888 LIBOBJS
889 GRAS_ARCH_32_BITS_TRUE
890 GRAS_ARCH_32_BITS_FALSE
891 IS_WINDOWS_TRUE
892 IS_WINDOWS_FALSE
893 CONTEXT_THREADS_TRUE
894 CONTEXT_THREADS_FALSE
895 PTH_STACK_GROWTH
896 pth_skaddr_makecontext
897 pth_sksize_makecontext
898 HAVE_GTNETS_TRUE
899 HAVE_GTNETS_FALSE
900 HAVE_SDP_TRUE
901 HAVE_SDP_FALSE
902 SIMGRID_DEP
903 SMPI_DEP
904 GRAS_DEP
905 GRAMINE_MODE_TRUE
906 GRAMINE_MODE_FALSE
907 MAINTAINER_MODE_TRUE
908 MAINTAINER_MODE_FALSE
909 MAINT
910 LD_DYNAMIC_FLAGS
911 AM_CPPFLAGS
912 abs_builddir
913 abs_srcdir
914 abs_top_builddir
915 abs_top_srcdir
916 BOTBUILD_MODE_TRUE
917 BOTBUILD_MODE_FALSE
918 JAVAC
919 JAVA
920 JAR
921 HAVE_JAVA_TRUE
922 HAVE_JAVA_FALSE
923 BASH
924 WARNING
925 LEX
926 LEX_OUTPUT_ROOT
927 LEXLIB
928 FLEXML
929 HAVE_FLEXML_TRUE
930 HAVE_FLEXML_FALSE
931 DOXYGEN
932 ADDR2LINE
933 ac_configure_args
934 build_id
935 LTLIBOBJS'
936 ac_subst_files=''
937       ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CPP
946 CXX
947 CXXFLAGS
948 CCC
949 CXXCPP'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002   # If the previous option needs an argument, assign it.
1003   if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007   fi
1008
1009   case $ac_option in
1010   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059     eval enable_$ac_feature=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078     eval enable_$ac_feature=\$ac_optarg ;;
1079
1080   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082   | --exec | --exe | --ex)
1083     ac_prev=exec_prefix ;;
1084   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086   | --exec=* | --exe=* | --ex=*)
1087     exec_prefix=$ac_optarg ;;
1088
1089   -gas | --gas | --ga | --g)
1090     # Obsolete; use --with-gas.
1091     with_gas=yes ;;
1092
1093   -help | --help | --hel | --he | -h)
1094     ac_init_help=long ;;
1095   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096     ac_init_help=recursive ;;
1097   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098     ac_init_help=short ;;
1099
1100   -host | --host | --hos | --ho)
1101     ac_prev=host_alias ;;
1102   -host=* | --host=* | --hos=* | --ho=*)
1103     host_alias=$ac_optarg ;;
1104
1105   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106     ac_prev=htmldir ;;
1107   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108   | --ht=*)
1109     htmldir=$ac_optarg ;;
1110
1111   -includedir | --includedir | --includedi | --included | --include \
1112   | --includ | --inclu | --incl | --inc)
1113     ac_prev=includedir ;;
1114   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115   | --includ=* | --inclu=* | --incl=* | --inc=*)
1116     includedir=$ac_optarg ;;
1117
1118   -infodir | --infodir | --infodi | --infod | --info | --inf)
1119     ac_prev=infodir ;;
1120   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121     infodir=$ac_optarg ;;
1122
1123   -libdir | --libdir | --libdi | --libd)
1124     ac_prev=libdir ;;
1125   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126     libdir=$ac_optarg ;;
1127
1128   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129   | --libexe | --libex | --libe)
1130     ac_prev=libexecdir ;;
1131   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132   | --libexe=* | --libex=* | --libe=*)
1133     libexecdir=$ac_optarg ;;
1134
1135   -localedir | --localedir | --localedi | --localed | --locale)
1136     ac_prev=localedir ;;
1137   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138     localedir=$ac_optarg ;;
1139
1140   -localstatedir | --localstatedir | --localstatedi | --localstated \
1141   | --localstate | --localstat | --localsta | --localst | --locals)
1142     ac_prev=localstatedir ;;
1143   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145     localstatedir=$ac_optarg ;;
1146
1147   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148     ac_prev=mandir ;;
1149   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150     mandir=$ac_optarg ;;
1151
1152   -nfp | --nfp | --nf)
1153     # Obsolete; use --without-fp.
1154     with_fp=no ;;
1155
1156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157   | --no-cr | --no-c | -n)
1158     no_create=yes ;;
1159
1160   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162     no_recursion=yes ;;
1163
1164   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166   | --oldin | --oldi | --old | --ol | --o)
1167     ac_prev=oldincludedir ;;
1168   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171     oldincludedir=$ac_optarg ;;
1172
1173   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174     ac_prev=prefix ;;
1175   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176     prefix=$ac_optarg ;;
1177
1178   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179   | --program-pre | --program-pr | --program-p)
1180     ac_prev=program_prefix ;;
1181   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183     program_prefix=$ac_optarg ;;
1184
1185   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186   | --program-suf | --program-su | --program-s)
1187     ac_prev=program_suffix ;;
1188   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190     program_suffix=$ac_optarg ;;
1191
1192   -program-transform-name | --program-transform-name \
1193   | --program-transform-nam | --program-transform-na \
1194   | --program-transform-n | --program-transform- \
1195   | --program-transform | --program-transfor \
1196   | --program-transfo | --program-transf \
1197   | --program-trans | --program-tran \
1198   | --progr-tra | --program-tr | --program-t)
1199     ac_prev=program_transform_name ;;
1200   -program-transform-name=* | --program-transform-name=* \
1201   | --program-transform-nam=* | --program-transform-na=* \
1202   | --program-transform-n=* | --program-transform-=* \
1203   | --program-transform=* | --program-transfor=* \
1204   | --program-transfo=* | --program-transf=* \
1205   | --program-trans=* | --program-tran=* \
1206   | --progr-tra=* | --program-tr=* | --program-t=*)
1207     program_transform_name=$ac_optarg ;;
1208
1209   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210     ac_prev=pdfdir ;;
1211   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212     pdfdir=$ac_optarg ;;
1213
1214   -psdir | --psdir | --psdi | --psd | --ps)
1215     ac_prev=psdir ;;
1216   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217     psdir=$ac_optarg ;;
1218
1219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220   | -silent | --silent | --silen | --sile | --sil)
1221     silent=yes ;;
1222
1223   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224     ac_prev=sbindir ;;
1225   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226   | --sbi=* | --sb=*)
1227     sbindir=$ac_optarg ;;
1228
1229   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231   | --sharedst | --shareds | --shared | --share | --shar \
1232   | --sha | --sh)
1233     ac_prev=sharedstatedir ;;
1234   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237   | --sha=* | --sh=*)
1238     sharedstatedir=$ac_optarg ;;
1239
1240   -site | --site | --sit)
1241     ac_prev=site ;;
1242   -site=* | --site=* | --sit=*)
1243     site=$ac_optarg ;;
1244
1245   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246     ac_prev=srcdir ;;
1247   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248     srcdir=$ac_optarg ;;
1249
1250   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251   | --syscon | --sysco | --sysc | --sys | --sy)
1252     ac_prev=sysconfdir ;;
1253   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255     sysconfdir=$ac_optarg ;;
1256
1257   -target | --target | --targe | --targ | --tar | --ta | --t)
1258     ac_prev=target_alias ;;
1259   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260     target_alias=$ac_optarg ;;
1261
1262   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263     verbose=yes ;;
1264
1265   -version | --version | --versio | --versi | --vers | -V)
1266     ac_init_version=: ;;
1267
1268   -with-* | --with-*)
1269     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       { echo "$as_me: error: invalid package name: $ac_package" >&2
1273    { (exit 1); exit 1; }; }
1274     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275     eval with_$ac_package=\$ac_optarg ;;
1276
1277   -without-* | --without-*)
1278     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid package name: $ac_package" >&2
1282    { (exit 1); exit 1; }; }
1283     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284     eval with_$ac_package=no ;;
1285
1286   --x)
1287     # Obsolete; use --with-x.
1288     with_x=yes ;;
1289
1290   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291   | --x-incl | --x-inc | --x-in | --x-i)
1292     ac_prev=x_includes ;;
1293   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295     x_includes=$ac_optarg ;;
1296
1297   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299     ac_prev=x_libraries ;;
1300   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302     x_libraries=$ac_optarg ;;
1303
1304   -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306    { (exit 1); exit 1; }; }
1307     ;;
1308
1309   *=*)
1310     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314    { (exit 1); exit 1; }; }
1315     eval $ac_envvar=\$ac_optarg
1316     export $ac_envvar ;;
1317
1318   *)
1319     # FIXME: should be removed in autoconf 3.0.
1320     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324     ;;
1325
1326   esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331   { echo "$as_me: error: missing argument to $ac_option" >&2
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 # Be sure to have absolute directory names.
1336 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337                 datadir sysconfdir sharedstatedir localstatedir includedir \
1338                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339                 libdir localedir mandir
1340 do
1341   eval ac_val=\$$ac_var
1342   case $ac_val in
1343     [\\/$]* | ?:[\\/]* )  continue;;
1344     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345   esac
1346   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347    { (exit 1); exit 1; }; }
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359   if test "x$build_alias" = x; then
1360     cross_compiling=maybe
1361     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362     If a cross compiler is detected then cross compile mode will be used." >&2
1363   elif test "x$build_alias" != "x$host_alias"; then
1364     cross_compiling=yes
1365   fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377   { echo "$as_me: error: Working directory cannot be determined" >&2
1378    { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380   { echo "$as_me: error: pwd does not report name of working directory" >&2
1381    { (exit 1); exit 1; }; }
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386   ac_srcdir_defaulted=yes
1387   # Try the directory containing this script, then the parent directory.
1388   ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390          X"$0" : 'X\(//\)[^/]' \| \
1391          X"$0" : 'X\(//\)$' \| \
1392          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 echo X"$0" |
1394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)[^/].*/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\).*/{
1407             s//\1/
1408             q
1409           }
1410           s/.*/./; q'`
1411   srcdir=$ac_confdir
1412   if test ! -r "$srcdir/$ac_unique_file"; then
1413     srcdir=..
1414   fi
1415 else
1416   ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 ac_abs_confdir=`(
1425         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426    { (exit 1); exit 1; }; }
1427         pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430   srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_env_${ac_var}_value=\$${ac_var}
1441   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449   # Omit some internal or obsolete options to make the list less imposing.
1450   # This message is too long to be a string in the A/UX 3.1 sh.
1451   cat <<_ACEOF
1452 \`configure' configures simgrid 3.3-svn to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE.  See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462   -h, --help              display this help and exit
1463       --help=short        display options specific to this package
1464       --help=recursive    display the short help of all the included packages
1465   -V, --version           display version information and exit
1466   -q, --quiet, --silent   do not print \`checking...' messages
1467       --cache-file=FILE   cache test results in FILE [disabled]
1468   -C, --config-cache      alias for \`--cache-file=config.cache'
1469   -n, --no-create         do not create output files
1470       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473   --prefix=PREFIX         install architecture-independent files in PREFIX
1474                           [$ac_default_prefix]
1475   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1476                           [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486   --bindir=DIR           user executables [EPREFIX/bin]
1487   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1488   --libexecdir=DIR       program executables [EPREFIX/libexec]
1489   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1490   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1491   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1492   --libdir=DIR           object code libraries [EPREFIX/lib]
1493   --includedir=DIR       C header files [PREFIX/include]
1494   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1495   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1496   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1497   --infodir=DIR          info documentation [DATAROOTDIR/info]
1498   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1499   --mandir=DIR           man documentation [DATAROOTDIR/man]
1500   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1501   --htmldir=DIR          html documentation [DOCDIR]
1502   --dvidir=DIR           dvi documentation [DOCDIR]
1503   --pdfdir=DIR           pdf documentation [DOCDIR]
1504   --psdir=DIR            ps documentation [DOCDIR]
1505 _ACEOF
1506
1507   cat <<\_ACEOF
1508
1509 Program names:
1510   --program-prefix=PREFIX            prepend PREFIX to installed program names
1511   --program-suffix=SUFFIX            append SUFFIX to installed program names
1512   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1513
1514 System types:
1515   --build=BUILD     configure for building on BUILD [guessed]
1516   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517   --target=TARGET   configure for building compilers for TARGET [HOST]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522   case $ac_init_help in
1523      short | recursive ) echo "Configuration of simgrid 3.3-svn:";;
1524    esac
1525   cat <<\_ACEOF
1526
1527 Optional Features:
1528   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1529   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1530   --disable-dependency-tracking  speeds up one-time build
1531   --enable-dependency-tracking   do not reject slow dependency extractors
1532   --enable-shared[=PKGS]  build shared libraries [default=yes]
1533   --enable-static[=PKGS]  build static libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537   --enable-maintainer-mode  enable make rules and dependencies not useful
1538                           (and sometimes confusing) to the casual installer
1539   --enable-compile-warnings
1540                           use compiler warnings (default=no, unless in
1541                           maintainer mode)
1542   --disable-compile-optimizations
1543                           use compiler optimizations (default=yes, unless if
1544                           CFLAGS is explicitly set)
1545   --enable-botbuild       Compilation mode for build daemons -- do not use it
1546   --disable-java          To not compile the Java bindings even if the tools
1547                           are found
1548
1549 Optional Packages:
1550   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553   --with-pic              try to use only PIC/non-PIC objects [default=use
1554                           both]
1555   --with-tags[=TAGS]      include additional configurations [automatic]
1556   --with-pthread   Use pthread instead of ucontext.
1557   --with-pthreads   Use pthread instead of ucontext.
1558   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1559   --with-gtnets           Path to GTNetS installation (default to empty, ie
1560                           not using GTNetS)
1561   --with-csdp             Path to csdp installation (default to empty, i.e.
1562                           not using csdp)
1563
1564 Some influential environment variables:
1565   CC          C compiler command
1566   CFLAGS      C compiler flags
1567   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568               nonstandard directory <lib dir>
1569   LIBS        libraries to pass to the linker, e.g. -l<library>
1570   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571               you have headers in a nonstandard directory <include dir>
1572   CPP         C preprocessor
1573   CXX         C++ compiler command
1574   CXXFLAGS    C++ compiler flags
1575   CXXCPP      C++ preprocessor
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586   # If there are subdirs, report their specific --help.
1587   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588     test -d "$ac_dir" || continue
1589     ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595   # A ".." for each directory in $ac_dir_suffix.
1596   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597   case $ac_top_builddir_sub in
1598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600   esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608   .)  # We are building in place.
1609     ac_srcdir=.
1610     ac_top_srcdir=$ac_top_builddir_sub
1611     ac_abs_top_srcdir=$ac_pwd ;;
1612   [\\/]* | ?:[\\/]* )  # Absolute name.
1613     ac_srcdir=$srcdir$ac_dir_suffix;
1614     ac_top_srcdir=$srcdir
1615     ac_abs_top_srcdir=$srcdir ;;
1616   *) # Relative name.
1617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618     ac_top_srcdir=$ac_top_build_prefix$srcdir
1619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623     cd "$ac_dir" || { ac_status=$?; continue; }
1624     # Check for guested configure.
1625     if test -f "$ac_srcdir/configure.gnu"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628     elif test -f "$ac_srcdir/configure"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure" --help=recursive
1631     else
1632       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633     fi || ac_status=$?
1634     cd "$ac_pwd" || { ac_status=$?; break; }
1635   done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640   cat <<\_ACEOF
1641 simgrid configure 3.3-svn
1642 generated by GNU Autoconf 2.61
1643
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649   exit
1650 fi
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1654
1655 It was created by simgrid $as_me 3.3-svn, which was
1656 generated by GNU Autoconf 2.61.  Invocation command line was
1657
1658   $ $0 $@
1659
1660 _ACEOF
1661 exec 5>>config.log
1662 {
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1667
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1676
1677 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1678 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1681 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1682 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1683 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1684
1685 _ASUNAME
1686
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1695
1696 } >&5
1697
1698 cat >&5 <<_ACEOF
1699
1700
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1704
1705 _ACEOF
1706
1707
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1718 do
1719   for ac_arg
1720   do
1721     case $ac_arg in
1722     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724     | -silent | --silent | --silen | --sile | --sil)
1725       continue ;;
1726     *\'*)
1727       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728     esac
1729     case $ac_pass in
1730     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1731     2)
1732       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733       if test $ac_must_keep_next = true; then
1734         ac_must_keep_next=false # Got value, back to normal.
1735       else
1736         case $ac_arg in
1737           *=* | --config-cache | -C | -disable-* | --disable-* \
1738           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740           | -with-* | --with-* | -without-* | --without-* | --x)
1741             case "$ac_configure_args0 " in
1742               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743             esac
1744             ;;
1745           -* ) ac_must_keep_next=true ;;
1746         esac
1747       fi
1748       ac_configure_args="$ac_configure_args '$ac_arg'"
1749       ;;
1750     esac
1751   done
1752 done
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1755
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log.  We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762   # Save into config.log some information that might help in debugging.
1763   {
1764     echo
1765
1766     cat <<\_ASBOX
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1770 _ASBOX
1771     echo
1772     # The following way of writing the cache mishandles newlines in values,
1773 (
1774   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775     eval ac_val=\$$ac_var
1776     case $ac_val in #(
1777     *${as_nl}*)
1778       case $ac_var in #(
1779       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781       esac
1782       case $ac_var in #(
1783       _ | IFS | as_nl) ;; #(
1784       *) $as_unset $ac_var ;;
1785       esac ;;
1786     esac
1787   done
1788   (set) 2>&1 |
1789     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790     *${as_nl}ac_space=\ *)
1791       sed -n \
1792         "s/'\''/'\''\\\\'\'''\''/g;
1793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794       ;; #(
1795     *)
1796       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797       ;;
1798     esac |
1799     sort
1800 )
1801     echo
1802
1803     cat <<\_ASBOX
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1807 _ASBOX
1808     echo
1809     for ac_var in $ac_subst_vars
1810     do
1811       eval ac_val=\$$ac_var
1812       case $ac_val in
1813       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814       esac
1815       echo "$ac_var='\''$ac_val'\''"
1816     done | sort
1817     echo
1818
1819     if test -n "$ac_subst_files"; then
1820       cat <<\_ASBOX
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1824 _ASBOX
1825       echo
1826       for ac_var in $ac_subst_files
1827       do
1828         eval ac_val=\$$ac_var
1829         case $ac_val in
1830         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831         esac
1832         echo "$ac_var='\''$ac_val'\''"
1833       done | sort
1834       echo
1835     fi
1836
1837     if test -s confdefs.h; then
1838       cat <<\_ASBOX
1839 ## ----------- ##
1840 ## confdefs.h. ##
1841 ## ----------- ##
1842 _ASBOX
1843       echo
1844       cat confdefs.h
1845       echo
1846     fi
1847     test "$ac_signal" != 0 &&
1848       echo "$as_me: caught signal $ac_signal"
1849     echo "$as_me: exit $exit_status"
1850   } >&5
1851   rm -f core *.core core.conftest.* &&
1852     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853     exit $exit_status
1854 ' 0
1855 for ac_signal in 1 2 13 15; do
1856   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 done
1858 ac_signal=0
1859
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1862
1863 # Predefined preprocessor variables.
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 _ACEOF
1888
1889
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer explicitly selected file to automatically selected ones.
1892 if test -n "$CONFIG_SITE"; then
1893   set x "$CONFIG_SITE"
1894 elif test "x$prefix" != xNONE; then
1895   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1896 else
1897   set x "$ac_default_prefix/share/config.site" \
1898         "$ac_default_prefix/etc/config.site"
1899 fi
1900 shift
1901 for ac_site_file
1902 do
1903   if test -r "$ac_site_file"; then
1904     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1905 echo "$as_me: loading site script $ac_site_file" >&6;}
1906     sed 's/^/| /' "$ac_site_file" >&5
1907     . "$ac_site_file"
1908   fi
1909 done
1910
1911 if test -r "$cache_file"; then
1912   # Some versions of bash will fail to source /dev/null (special
1913   # files actually), so we avoid doing that.
1914   if test -f "$cache_file"; then
1915     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1916 echo "$as_me: loading cache $cache_file" >&6;}
1917     case $cache_file in
1918       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1919       *)                      . "./$cache_file";;
1920     esac
1921   fi
1922 else
1923   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1924 echo "$as_me: creating cache $cache_file" >&6;}
1925   >$cache_file
1926 fi
1927
1928 # Check that the precious variables saved in the cache have kept the same
1929 # value.
1930 ac_cache_corrupted=false
1931 for ac_var in $ac_precious_vars; do
1932   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1933   eval ac_new_set=\$ac_env_${ac_var}_set
1934   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1935   eval ac_new_val=\$ac_env_${ac_var}_value
1936   case $ac_old_set,$ac_new_set in
1937     set,)
1938       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1940       ac_cache_corrupted=: ;;
1941     ,set)
1942       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1943 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1944       ac_cache_corrupted=: ;;
1945     ,);;
1946     *)
1947       if test "x$ac_old_val" != "x$ac_new_val"; then
1948         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1951 echo "$as_me:   former value:  $ac_old_val" >&2;}
1952         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1953 echo "$as_me:   current value: $ac_new_val" >&2;}
1954         ac_cache_corrupted=:
1955       fi;;
1956   esac
1957   # Pass precious variables to config.status.
1958   if test "$ac_new_set" = set; then
1959     case $ac_new_val in
1960     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961     *) ac_arg=$ac_var=$ac_new_val ;;
1962     esac
1963     case " $ac_configure_args " in
1964       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1965       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966     esac
1967   fi
1968 done
1969 if $ac_cache_corrupted; then
1970   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006
2007
2008
2009 ac_config_headers="$ac_config_headers src/gras_config.h"
2010
2011 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif test -f "$ac_dir/install.sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install.sh -c"
2023     break
2024   elif test -f "$ac_dir/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062    { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 build=$ac_cv_build
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_build
2080 shift
2081 build_cpu=$1
2082 build_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 build_os=$*
2087 IFS=$ac_save_IFS
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test "x$host_alias" = x; then
2097   ac_cv_host=$ac_cv_build
2098 else
2099   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 fi
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2108 case $ac_cv_host in
2109 *-*-*) ;;
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112    { (exit 1); exit 1; }; };;
2113 esac
2114 host=$ac_cv_host
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_host
2117 shift
2118 host_cpu=$1
2119 host_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 host_os=$*
2124 IFS=$ac_save_IFS
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2126
2127
2128 { echo "$as_me:$LINENO: checking target system type" >&5
2129 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_target+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test "x$target_alias" = x; then
2134   ac_cv_target=$ac_cv_host
2135 else
2136   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2137     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2144 echo "${ECHO_T}$ac_cv_target" >&6; }
2145 case $ac_cv_target in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2148 echo "$as_me: error: invalid value of canonical target" >&2;}
2149    { (exit 1); exit 1; }; };;
2150 esac
2151 target=$ac_cv_target
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_target
2154 shift
2155 target_cpu=$1
2156 target_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 target_os=$*
2161 IFS=$ac_save_IFS
2162 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 # The aliases save the names the user supplied, while $host etc.
2166 # will get canonicalized.
2167 test -n "$target_alias" &&
2168   test "$program_prefix$program_suffix$program_transform_name" = \
2169     NONENONEs,x,x, &&
2170   program_prefix=${target_alias}-
2171 ac_ext=c
2172 ac_cpp='$CPP $CPPFLAGS'
2173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2176
2177 rm -rf .tst 2>/dev/null
2178 mkdir .tst 2>/dev/null
2179 if test -d .tst; then
2180   am__leading_dot=.
2181 else
2182   am__leading_dot=_
2183 fi
2184 rmdir .tst 2>/dev/null
2185
2186 DEPDIR="${am__leading_dot}deps"
2187
2188 ac_config_commands="$ac_config_commands depfiles"
2189
2190
2191 am_make=${MAKE-make}
2192 cat > confinc << 'END'
2193 am__doit:
2194         @echo done
2195 .PHONY: am__doit
2196 END
2197 # If we don't find an include directive, just comment out the code.
2198 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2199 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2200 am__include="#"
2201 am__quote=
2202 _am_result=none
2203 # First try GNU make style include.
2204 echo "include confinc" > confmf
2205 # We grep out `Entering directory' and `Leaving directory'
2206 # messages which can occur if `w' ends up in MAKEFLAGS.
2207 # In particular we don't look at `^make:' because GNU make might
2208 # be invoked under some other name (usually "gmake"), in which
2209 # case it prints its new name instead of `make'.
2210 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2211    am__include=include
2212    am__quote=
2213    _am_result=GNU
2214 fi
2215 # Now try BSD make style include.
2216 if test "$am__include" = "#"; then
2217    echo '.include "confinc"' > confmf
2218    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2219       am__include=.include
2220       am__quote="\""
2221       _am_result=BSD
2222    fi
2223 fi
2224
2225
2226 { echo "$as_me:$LINENO: result: $_am_result" >&5
2227 echo "${ECHO_T}$_am_result" >&6; }
2228 rm -f confinc confmf
2229
2230 # Check whether --enable-dependency-tracking was given.
2231 if test "${enable_dependency_tracking+set}" = set; then
2232   enableval=$enable_dependency_tracking;
2233 fi
2234
2235 if test "x$enable_dependency_tracking" != xno; then
2236   am_depcomp="$ac_aux_dir/depcomp"
2237   AMDEPBACKSLASH='\'
2238 fi
2239  if test "x$enable_dependency_tracking" != xno; then
2240   AMDEP_TRUE=
2241   AMDEP_FALSE='#'
2242 else
2243   AMDEP_TRUE='#'
2244   AMDEP_FALSE=
2245 fi
2246
2247
2248
2249 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2250 do
2251   # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_GCJ+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$GCJ"; then
2259   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_exec_ext in '' $ac_executable_extensions; do
2267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268     ac_cv_prog_GCJ="$ac_prog"
2269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270     break 2
2271   fi
2272 done
2273 done
2274 IFS=$as_save_IFS
2275
2276 fi
2277 fi
2278 GCJ=$ac_cv_prog_GCJ
2279 if test -n "$GCJ"; then
2280   { echo "$as_me:$LINENO: result: $GCJ" >&5
2281 echo "${ECHO_T}$GCJ" >&6; }
2282 else
2283   { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2285 fi
2286
2287
2288   test -n "$GCJ" && break
2289 done
2290 test -n "$GCJ" || GCJ="gcj"
2291
2292 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2293 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2294    { (exit 1); exit 1; }; }
2295 if test "x${GCJFLAGS-unset}" = xunset; then
2296    GCJFLAGS="-g -O2"
2297 fi
2298
2299
2300 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2301
2302 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2303 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2304 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2308   # We make a subdir and do the tests there.  Otherwise we can end up
2309   # making bogus files that we don't know about and never remove.  For
2310   # instance it was reported that on HP-UX the gcc test will end up
2311   # making a dummy file named `D' -- because `-MD' means `put the output
2312   # in D'.
2313   mkdir conftest.dir
2314   # Copy depcomp to subdir because otherwise we won't find it if we're
2315   # using a relative directory.
2316   cp "$am_depcomp" conftest.dir
2317   cd conftest.dir
2318   # We will build objects and dependencies in a subdirectory because
2319   # it helps to detect inapplicable dependency modes.  For instance
2320   # both Tru64's cc and ICC support -MD to output dependencies as a
2321   # side effect of compilation, but ICC will put the dependencies in
2322   # the current directory while Tru64 will put them in the object
2323   # directory.
2324   mkdir sub
2325
2326   am_cv_GCJ_dependencies_compiler_type=none
2327   if test "$am_compiler_list" = ""; then
2328      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2329   fi
2330   for depmode in $am_compiler_list; do
2331     # Setup a source with many dependencies, because some compilers
2332     # like to wrap large dependency lists on column 80 (with \), and
2333     # we should not choose a depcomp mode which is confused by this.
2334     #
2335     # We need to recreate these files for each test, as the compiler may
2336     # overwrite some of them when testing with obscure command lines.
2337     # This happens at least with the AIX C compiler.
2338     : > sub/conftest.c
2339     for i in 1 2 3 4 5 6; do
2340       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2341       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2342       # Solaris 8's {/usr,}/bin/sh.
2343       touch sub/conftst$i.h
2344     done
2345     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2346
2347     case $depmode in
2348     nosideeffect)
2349       # after this tag, mechanisms are not by side-effect, so they'll
2350       # only be used when explicitly requested
2351       if test "x$enable_dependency_tracking" = xyes; then
2352         continue
2353       else
2354         break
2355       fi
2356       ;;
2357     none) break ;;
2358     esac
2359     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2360     # mode.  It turns out that the SunPro C++ compiler does not properly
2361     # handle `-M -o', and we need to detect this.
2362     if depmode=$depmode \
2363        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2364        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2365        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2366          >/dev/null 2>conftest.err &&
2367        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2368        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2369        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2370        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2371       # icc doesn't choke on unknown options, it will just issue warnings
2372       # or remarks (even with -Werror).  So we grep stderr for any message
2373       # that says an option was ignored or not supported.
2374       # When given -MP, icc 7.0 and 7.1 complain thusly:
2375       #   icc: Command line warning: ignoring option '-M'; no argument required
2376       # The diagnosis changed in icc 8.0:
2377       #   icc: Command line remark: option '-MP' not supported
2378       if (grep 'ignoring option' conftest.err ||
2379           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2380         am_cv_GCJ_dependencies_compiler_type=$depmode
2381         break
2382       fi
2383     fi
2384   done
2385
2386   cd ..
2387   rm -rf conftest.dir
2388 else
2389   am_cv_GCJ_dependencies_compiler_type=none
2390 fi
2391
2392 fi
2393 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2394 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2395 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2396
2397  if
2398   test "x$enable_dependency_tracking" != xno \
2399   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2400   am__fastdepGCJ_TRUE=
2401   am__fastdepGCJ_FALSE='#'
2402 else
2403   am__fastdepGCJ_TRUE='#'
2404   am__fastdepGCJ_FALSE=
2405 fi
2406
2407
2408
2409
2410 am__api_version='1.10'
2411
2412 # Find a good install program.  We prefer a C program (faster),
2413 # so one script is as good as another.  But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2418 # AIX /bin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2426 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2427 if test -z "$INSTALL"; then
2428 if test "${ac_cv_path_install+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436   # Account for people who put trailing slashes in PATH elements.
2437 case $as_dir/ in
2438   ./ | .// | /cC/* | \
2439   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2440   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2441   /usr/ucb/* ) ;;
2442   *)
2443     # OSF1 and SCO ODT 3.0 have their own names for install.
2444     # Don't use installbsd from OSF since it installs stuff as root
2445     # by default.
2446     for ac_prog in ginstall scoinst install; do
2447       for ac_exec_ext in '' $ac_executable_extensions; do
2448         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2449           if test $ac_prog = install &&
2450             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2451             # AIX install.  It has an incompatible calling convention.
2452             :
2453           elif test $ac_prog = install &&
2454             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455             # program-specific install script used by HP pwplus--don't use.
2456             :
2457           else
2458             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2459             break 3
2460           fi
2461         fi
2462       done
2463     done
2464     ;;
2465 esac
2466 done
2467 IFS=$as_save_IFS
2468
2469
2470 fi
2471   if test "${ac_cv_path_install+set}" = set; then
2472     INSTALL=$ac_cv_path_install
2473   else
2474     # As a last resort, use the slow shell script.  Don't cache a
2475     # value for INSTALL within a source directory, because that will
2476     # break other packages using the cache if that directory is
2477     # removed, or if the value is a relative name.
2478     INSTALL=$ac_install_sh
2479   fi
2480 fi
2481 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2482 echo "${ECHO_T}$INSTALL" >&6; }
2483
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485 # It thinks the first close brace ends the variable substitution.
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2487
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2489
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2491
2492 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2493 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2494 # Just in case
2495 sleep 1
2496 echo timestamp > conftest.file
2497 # Do `set' in a subshell so we don't clobber the current shell's
2498 # arguments.  Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2501 # directory).
2502 if (
2503    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2504    if test "$*" = "X"; then
2505       # -L didn't work.
2506       set X `ls -t $srcdir/configure conftest.file`
2507    fi
2508    rm -f conftest.file
2509    if test "$*" != "X $srcdir/configure conftest.file" \
2510       && test "$*" != "X conftest.file $srcdir/configure"; then
2511
2512       # If neither matched, then we have a broken ls.  This can happen
2513       # if, for instance, CONFIG_SHELL is bash and it inherits a
2514       # broken ls alias from the environment.  This has actually
2515       # happened.  Such a system could not be considered "sane".
2516       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2517 alias in your environment" >&5
2518 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2519 alias in your environment" >&2;}
2520    { (exit 1); exit 1; }; }
2521    fi
2522
2523    test "$2" = conftest.file
2524    )
2525 then
2526    # Ok.
2527    :
2528 else
2529    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2530 Check your system clock" >&5
2531 echo "$as_me: error: newly created file is older than distributed files!
2532 Check your system clock" >&2;}
2533    { (exit 1); exit 1; }; }
2534 fi
2535 { echo "$as_me:$LINENO: result: yes" >&5
2536 echo "${ECHO_T}yes" >&6; }
2537 test "$program_prefix" != NONE &&
2538   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539 # Use a double $ so make ignores it.
2540 test "$program_suffix" != NONE &&
2541   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542 # Double any \ or $.  echo might interpret backslashes.
2543 # By default was `s,x,x', remove it if useless.
2544 cat <<\_ACEOF >conftest.sed
2545 s/[\\$]/&&/g;s/;s,x,x,$//
2546 _ACEOF
2547 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2548 rm -f conftest.sed
2549
2550 # expand $ac_aux_dir to an absolute path
2551 am_aux_dir=`cd $ac_aux_dir && pwd`
2552
2553 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2554 # Use eval to expand $SHELL
2555 if eval "$MISSING --run true"; then
2556   am_missing_run="$MISSING --run "
2557 else
2558   am_missing_run=
2559   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2560 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2561 fi
2562
2563 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2564 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2565 if test -z "$MKDIR_P"; then
2566   if test "${ac_cv_path_mkdir+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2571 do
2572   IFS=$as_save_IFS
2573   test -z "$as_dir" && as_dir=.
2574   for ac_prog in mkdir gmkdir; do
2575          for ac_exec_ext in '' $ac_executable_extensions; do
2576            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2577            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2578              'mkdir (GNU coreutils) '* | \
2579              'mkdir (coreutils) '* | \
2580              'mkdir (fileutils) '4.1*)
2581                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2582                break 3;;
2583            esac
2584          done
2585        done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590
2591   if test "${ac_cv_path_mkdir+set}" = set; then
2592     MKDIR_P="$ac_cv_path_mkdir -p"
2593   else
2594     # As a last resort, use the slow shell script.  Don't cache a
2595     # value for MKDIR_P within a source directory, because that will
2596     # break other packages using the cache if that directory is
2597     # removed, or if the value is a relative name.
2598     test -d ./--version && rmdir ./--version
2599     MKDIR_P="$ac_install_sh -d"
2600   fi
2601 fi
2602 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2603 echo "${ECHO_T}$MKDIR_P" >&6; }
2604
2605 mkdir_p="$MKDIR_P"
2606 case $mkdir_p in
2607   [\\/$]* | ?:[\\/]*) ;;
2608   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2609 esac
2610
2611 for ac_prog in gawk mawk nawk awk
2612 do
2613   # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_AWK+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   if test -n "$AWK"; then
2621   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for ac_exec_ext in '' $ac_executable_extensions; do
2629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630     ac_cv_prog_AWK="$ac_prog"
2631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 AWK=$ac_cv_prog_AWK
2641 if test -n "$AWK"; then
2642   { echo "$as_me:$LINENO: result: $AWK" >&5
2643 echo "${ECHO_T}$AWK" >&6; }
2644 else
2645   { echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6; }
2647 fi
2648
2649
2650   test -n "$AWK" && break
2651 done
2652
2653 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2654 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2655 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   cat >conftest.make <<\_ACEOF
2660 SHELL = /bin/sh
2661 all:
2662         @echo '@@@%%%=$(MAKE)=@@@%%%'
2663 _ACEOF
2664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666   *@@@%%%=?*=@@@%%%*)
2667     eval ac_cv_prog_make_${ac_make}_set=yes;;
2668   *)
2669     eval ac_cv_prog_make_${ac_make}_set=no;;
2670 esac
2671 rm -f conftest.make
2672 fi
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674   { echo "$as_me:$LINENO: result: yes" >&5
2675 echo "${ECHO_T}yes" >&6; }
2676   SET_MAKE=
2677 else
2678   { echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6; }
2680   SET_MAKE="MAKE=${MAKE-make}"
2681 fi
2682
2683 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2684   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2685   # is not polluted with repeated "-I."
2686   am__isrc=' -I$(srcdir)'
2687   # test to see if srcdir already configured
2688   if test -f $srcdir/config.status; then
2689     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2690 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2691    { (exit 1); exit 1; }; }
2692   fi
2693 fi
2694
2695 # test whether we have cygpath
2696 if test -z "$CYGPATH_W"; then
2697   if (cygpath --version) >/dev/null 2>/dev/null; then
2698     CYGPATH_W='cygpath -w'
2699   else
2700     CYGPATH_W=echo
2701   fi
2702 fi
2703
2704
2705 # Define the identity of the package.
2706  PACKAGE='simgrid'
2707  VERSION='3.3-svn'
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE "$PACKAGE"
2712 _ACEOF
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define VERSION "$VERSION"
2717 _ACEOF
2718
2719 # Some tools Automake needs.
2720
2721 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2722
2723
2724 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2725
2726
2727 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2728
2729
2730 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2731
2732
2733 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2734
2735 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2736
2737 # Installed binaries are usually stripped using `strip' when the user
2738 # run `make install-strip'.  However `strip' might not be the right
2739 # tool to use in cross-compilation environments, therefore Automake
2740 # will honor the `STRIP' environment variable to overrule this program.
2741 if test "$cross_compiling" != no; then
2742   if test -n "$ac_tool_prefix"; then
2743   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}strip; ac_word=$2
2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_STRIP+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   if test -n "$STRIP"; then
2751   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756   IFS=$as_save_IFS
2757   test -z "$as_dir" && as_dir=.
2758   for ac_exec_ext in '' $ac_executable_extensions; do
2759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762     break 2
2763   fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 STRIP=$ac_cv_prog_STRIP
2771 if test -n "$STRIP"; then
2772   { echo "$as_me:$LINENO: result: $STRIP" >&5
2773 echo "${ECHO_T}$STRIP" >&6; }
2774 else
2775   { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$ac_cv_prog_STRIP"; then
2782   ac_ct_STRIP=$STRIP
2783   # Extract the first word of "strip", so it can be a program name with args.
2784 set dummy strip; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2788   echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790   if test -n "$ac_ct_STRIP"; then
2791   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798   for ac_exec_ext in '' $ac_executable_extensions; do
2799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800     ac_cv_prog_ac_ct_STRIP="strip"
2801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2811 if test -n "$ac_ct_STRIP"; then
2812   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2813 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2814 else
2815   { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819   if test "x$ac_ct_STRIP" = x; then
2820     STRIP=":"
2821   else
2822     case $cross_compiling:$ac_tool_warned in
2823 yes:)
2824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet.  If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&5
2827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet.  If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832     STRIP=$ac_ct_STRIP
2833   fi
2834 else
2835   STRIP="$ac_cv_prog_STRIP"
2836 fi
2837
2838 fi
2839 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2840
2841 # We need awk for the "check" target.  The system "awk" is bad on
2842 # some platforms.
2843 # Always define AMTAR for backward compatibility.
2844
2845 AMTAR=${AMTAR-"${am_missing_run}tar"}
2846
2847 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2848
2849
2850
2851
2852
2853
2854 ACLOCAL="$ACLOCAL -I acmacro"
2855
2856
2857
2858
2859
2860
2861 # Check whether --enable-shared was given.
2862 if test "${enable_shared+set}" = set; then
2863   enableval=$enable_shared; p=${PACKAGE-default}
2864     case $enableval in
2865     yes) enable_shared=yes ;;
2866     no) enable_shared=no ;;
2867     *)
2868       enable_shared=no
2869       # Look at the argument we got.  We use all the common list separators.
2870       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2871       for pkg in $enableval; do
2872         IFS="$lt_save_ifs"
2873         if test "X$pkg" = "X$p"; then
2874           enable_shared=yes
2875         fi
2876       done
2877       IFS="$lt_save_ifs"
2878       ;;
2879     esac
2880 else
2881   enable_shared=yes
2882 fi
2883
2884
2885 # Check whether --enable-static was given.
2886 if test "${enable_static+set}" = set; then
2887   enableval=$enable_static; p=${PACKAGE-default}
2888     case $enableval in
2889     yes) enable_static=yes ;;
2890     no) enable_static=no ;;
2891     *)
2892      enable_static=no
2893       # Look at the argument we got.  We use all the common list separators.
2894       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2895       for pkg in $enableval; do
2896         IFS="$lt_save_ifs"
2897         if test "X$pkg" = "X$p"; then
2898           enable_static=yes
2899         fi
2900       done
2901       IFS="$lt_save_ifs"
2902       ;;
2903     esac
2904 else
2905   enable_static=yes
2906 fi
2907
2908
2909 # Check whether --enable-fast-install was given.
2910 if test "${enable_fast_install+set}" = set; then
2911   enableval=$enable_fast_install; p=${PACKAGE-default}
2912     case $enableval in
2913     yes) enable_fast_install=yes ;;
2914     no) enable_fast_install=no ;;
2915     *)
2916       enable_fast_install=no
2917       # Look at the argument we got.  We use all the common list separators.
2918       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2919       for pkg in $enableval; do
2920         IFS="$lt_save_ifs"
2921         if test "X$pkg" = "X$p"; then
2922           enable_fast_install=yes
2923         fi
2924       done
2925       IFS="$lt_save_ifs"
2926       ;;
2927     esac
2928 else
2929   enable_fast_install=yes
2930 fi
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$CC"; then
2947   ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968   { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
2970 else
2971   { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$ac_cv_prog_CC"; then
2978   ac_ct_CC=$CC
2979   # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   if test -n "$ac_ct_CC"; then
2987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994   for ac_exec_ext in '' $ac_executable_extensions; do
2995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996     ac_cv_prog_ac_ct_CC="gcc"
2997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3010 else
3011   { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3013 fi
3014
3015   if test "x$ac_ct_CC" = x; then
3016     CC=""
3017   else
3018     case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3021 whose name does not start with the host triplet.  If you think this
3022 configuration is useful to you, please write to autoconf@gnu.org." >&5
3023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3024 whose name does not start with the host triplet.  If you think this
3025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3026 ac_tool_warned=yes ;;
3027 esac
3028     CC=$ac_ct_CC
3029   fi
3030 else
3031   CC="$ac_cv_prog_CC"
3032 fi
3033
3034 if test -z "$CC"; then
3035           if test -n "$ac_tool_prefix"; then
3036     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}cc; ac_word=$2
3038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then
3041   echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043   if test -n "$CC"; then
3044   ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051   for ac_exec_ext in '' $ac_executable_extensions; do
3052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053     ac_cv_prog_CC="${ac_tool_prefix}cc"
3054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055     break 2
3056   fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065   { echo "$as_me:$LINENO: result: $CC" >&5
3066 echo "${ECHO_T}$CC" >&6; }
3067 else
3068   { echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6; }
3070 fi
3071
3072
3073   fi
3074 fi
3075 if test -z "$CC"; then
3076   # Extract the first word of "cc", so it can be a program name with args.
3077 set dummy cc; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   if test -n "$CC"; then
3084   ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086   ac_prog_rejected=no
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092   for ac_exec_ext in '' $ac_executable_extensions; do
3093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3095        ac_prog_rejected=yes
3096        continue
3097      fi
3098     ac_cv_prog_CC="cc"
3099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100     break 2
3101   fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 if test $ac_prog_rejected = yes; then
3107   # We found a bogon in the path, so make sure we never use it.
3108   set dummy $ac_cv_prog_CC
3109   shift
3110   if test $# != 0; then
3111     # We chose a different compiler from the bogus one.
3112     # However, it has the same basename, so the bogon will be chosen
3113     # first if we set CC to just the basename; use the full file name.
3114     shift
3115     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116   fi
3117 fi
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122   { echo "$as_me:$LINENO: result: $CC" >&5
3123 echo "${ECHO_T}$CC" >&6; }
3124 else
3125   { echo "$as_me:$LINENO: result: no" >&5
3126 echo "${ECHO_T}no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$CC"; then
3132   if test -n "$ac_tool_prefix"; then
3133   for ac_prog in cl.exe
3134   do
3135     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$CC"; then
3143   ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164   { echo "$as_me:$LINENO: result: $CC" >&5
3165 echo "${ECHO_T}$CC" >&6; }
3166 else
3167   { echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6; }
3169 fi
3170
3171
3172     test -n "$CC" && break
3173   done
3174 fi
3175 if test -z "$CC"; then
3176   ac_ct_CC=$CC
3177   for ac_prog in cl.exe
3178 do
3179   # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$ac_ct_CC"; then
3187   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196     ac_cv_prog_ac_ct_CC="$ac_prog"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3209 echo "${ECHO_T}$ac_ct_CC" >&6; }
3210 else
3211   { echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6; }
3213 fi
3214
3215
3216   test -n "$ac_ct_CC" && break
3217 done
3218
3219   if test "x$ac_ct_CC" = x; then
3220     CC=""
3221   else
3222     case $cross_compiling:$ac_tool_warned in
3223 yes:)
3224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3225 whose name does not start with the host triplet.  If you think this
3226 configuration is useful to you, please write to autoconf@gnu.org." >&5
3227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3228 whose name does not start with the host triplet.  If you think this
3229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3230 ac_tool_warned=yes ;;
3231 esac
3232     CC=$ac_ct_CC
3233   fi
3234 fi
3235
3236 fi
3237
3238
3239 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&5
3241 echo "$as_me: error: no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details." >&2;}
3243    { (exit 1); exit 1; }; }
3244
3245 # Provide some information about the compiler.
3246 echo "$as_me:$LINENO: checking for C compiler version" >&5
3247 ac_compiler=`set X $ac_compile; echo $2`
3248 { (ac_try="$ac_compiler --version >&5"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_compiler --version >&5") 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264   (eval "$ac_compiler -v >&5") 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }
3268 { (ac_try="$ac_compiler -V >&5"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274   (eval "$ac_compiler -V >&5") 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }
3278
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285
3286 int
3287 main ()
3288 {
3289
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 ac_clean_files_save=$ac_clean_files
3295 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3296 # Try to create an executable without -o first, disregard a.out.
3297 # It will help us diagnose broken compilers, and finding out an intuition
3298 # of exeext.
3299 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3300 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3301 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3302 #
3303 # List of possible output files, starting from the most likely.
3304 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3305 # only as a last resort.  b.out is created by i960 compilers.
3306 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3307 #
3308 # The IRIX 6 linker writes into existing files which may not be
3309 # executable, retaining their permissions.  Remove them first so a
3310 # subsequent execution test works.
3311 ac_rmfiles=
3312 for ac_file in $ac_files
3313 do
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3316     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317   esac
3318 done
3319 rm -f $ac_rmfiles
3320
3321 if { (ac_try="$ac_link_default"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_link_default") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; then
3331   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3334 # so that the user can short-circuit this test for compilers unknown to
3335 # Autoconf.
3336 for ac_file in $ac_files ''
3337 do
3338   test -f "$ac_file" || continue
3339   case $ac_file in
3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3341         ;;
3342     [ab].out )
3343         # We found the default executable, but exeext='' is most
3344         # certainly right.
3345         break;;
3346     *.* )
3347         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348         then :; else
3349            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350         fi
3351         # We set ac_cv_exeext here because the later test for it is not
3352         # safe: cross compilers may not add the suffix if given an `-o'
3353         # argument, so we may need to know it at that point already.
3354         # Even if this section looks crufty: it has the advantage of
3355         # actually working.
3356         break;;
3357     * )
3358         break;;
3359   esac
3360 done
3361 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362
3363 else
3364   ac_file=''
3365 fi
3366
3367 { echo "$as_me:$LINENO: result: $ac_file" >&5
3368 echo "${ECHO_T}$ac_file" >&6; }
3369 if test -z "$ac_file"; then
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377    { (exit 77); exit 77; }; }
3378 fi
3379
3380 ac_exeext=$ac_cv_exeext
3381
3382 # Check that the compiler produces executables we can run.  If not, either
3383 # the compiler is broken, or we cross compile.
3384 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389   if { ac_try='./$ac_file'
3390   { (case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_try") 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; }; then
3399     cross_compiling=no
3400   else
3401     if test "$cross_compiling" = maybe; then
3402         cross_compiling=yes
3403     else
3404         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&2;}
3410    { (exit 1); exit 1; }; }
3411     fi
3412   fi
3413 fi
3414 { echo "$as_me:$LINENO: result: yes" >&5
3415 echo "${ECHO_T}yes" >&6; }
3416
3417 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 # Check that the compiler produces executables we can run.  If not, either
3420 # the compiler is broken, or we cross compile.
3421 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3423 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3424 echo "${ECHO_T}$cross_compiling" >&6; }
3425
3426 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3428 if { (ac_try="$ac_link"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&2;}
3456    { (exit 1); exit 1; }; }
3457 fi
3458
3459 rm -f conftest$ac_cv_exeext
3460 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3461 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3462
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3465 ac_exeext=$EXEEXT
3466 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3467 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3468 if test "${ac_cv_objext+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477
3478 int
3479 main ()
3480 {
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.o conftest.obj
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493   (eval "$ac_compile") 2>&5
3494   ac_status=$?
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); }; then
3497   for ac_file in conftest.o conftest.obj conftest.*; do
3498   test -f "$ac_file" || continue;
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3501     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3502        break;;
3503   esac
3504 done
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3510 See \`config.log' for more details." >&5
3511 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details." >&2;}
3513    { (exit 1); exit 1; }; }
3514 fi
3515
3516 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3517 fi
3518 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3519 echo "${ECHO_T}$ac_cv_objext" >&6; }
3520 OBJEXT=$ac_cv_objext
3521 ac_objext=$OBJEXT
3522 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3523 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3524 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537 #ifndef __GNUC__
3538        choke me
3539 #endif
3540
3541   ;
3542   return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3547 case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_compile") 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } && {
3559          test -z "$ac_c_werror_flag" ||
3560          test ! -s conftest.err
3561        } && test -s conftest.$ac_objext; then
3562   ac_compiler_gnu=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567         ac_compiler_gnu=no
3568 fi
3569
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572
3573 fi
3574 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3576 GCC=`test $ac_compiler_gnu = yes && echo yes`
3577 ac_test_CFLAGS=${CFLAGS+set}
3578 ac_save_CFLAGS=$CFLAGS
3579 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3580 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_cc_g+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   ac_save_c_werror_flag=$ac_c_werror_flag
3585    ac_c_werror_flag=yes
3586    ac_cv_prog_cc_g=no
3587    CFLAGS="-g"
3588    cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594
3595 int
3596 main ()
3597 {
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3605 case "(($ac_try" in
3606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607   *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610   (eval "$ac_compile") 2>conftest.er1
3611   ac_status=$?
3612   grep -v '^ *+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } && {
3617          test -z "$ac_c_werror_flag" ||
3618          test ! -s conftest.err
3619        } && test -s conftest.$ac_objext; then
3620   ac_cv_prog_cc_g=yes
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625         CFLAGS=""
3626       cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632
3633 int
3634 main ()
3635 {
3636
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3643 case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648   (eval "$ac_compile") 2>conftest.er1
3649   ac_status=$?
3650   grep -v '^ *+' conftest.er1 >conftest.err
3651   rm -f conftest.er1
3652   cat conftest.err >&5
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } && {
3655          test -z "$ac_c_werror_flag" ||
3656          test ! -s conftest.err
3657        } && test -s conftest.$ac_objext; then
3658   :
3659 else
3660   echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663         ac_c_werror_flag=$ac_save_c_werror_flag
3664          CFLAGS="-g"
3665          cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h.  */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h.  */
3671
3672 int
3673 main ()
3674 {
3675
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3682 case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687   (eval "$ac_compile") 2>conftest.er1
3688   ac_status=$?
3689   grep -v '^ *+' conftest.er1 >conftest.err
3690   rm -f conftest.er1
3691   cat conftest.err >&5
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); } && {
3694          test -z "$ac_c_werror_flag" ||
3695          test ! -s conftest.err
3696        } && test -s conftest.$ac_objext; then
3697   ac_cv_prog_cc_g=yes
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 fi
3707
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712    ac_c_werror_flag=$ac_save_c_werror_flag
3713 fi
3714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3716 if test "$ac_test_CFLAGS" = set; then
3717   CFLAGS=$ac_save_CFLAGS
3718 elif test $ac_cv_prog_cc_g = yes; then
3719   if test "$GCC" = yes; then
3720     CFLAGS="-g -O2"
3721   else
3722     CFLAGS="-g"
3723   fi
3724 else
3725   if test "$GCC" = yes; then
3726     CFLAGS="-O2"
3727   else
3728     CFLAGS=
3729   fi
3730 fi
3731 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3732 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3733 if test "${ac_cv_prog_cc_c89+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   ac_cv_prog_cc_c89=no
3737 ac_save_CC=$CC
3738 cat >conftest.$ac_ext <<_ACEOF
3739 /* confdefs.h.  */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h.  */
3744 #include <stdarg.h>
3745 #include <stdio.h>
3746 #include <sys/types.h>
3747 #include <sys/stat.h>
3748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3749 struct buf { int x; };
3750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3751 static char *e (p, i)
3752      char **p;
3753      int i;
3754 {
3755   return p[i];
3756 }
3757 static char *f (char * (*g) (char **, int), char **p, ...)
3758 {
3759   char *s;
3760   va_list v;
3761   va_start (v,p);
3762   s = g (p, va_arg (v,int));
3763   va_end (v);
3764   return s;
3765 }
3766
3767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3768    function prototypes and stuff, but not '\xHH' hex character constants.
3769    These don't provoke an error unfortunately, instead are silently treated
3770    as 'x'.  The following induces an error, until -std is added to get
3771    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3772    array size at least.  It's necessary to write '\x00'==0 to get something
3773    that's true only with -std.  */
3774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3775
3776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3777    inside strings and character constants.  */
3778 #define FOO(x) 'x'
3779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3780
3781 int test (int i, double x);
3782 struct s1 {int (*f) (int a);};
3783 struct s2 {int (*f) (double a);};
3784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785 int argc;
3786 char **argv;
3787 int
3788 main ()
3789 {
3790 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3796         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 do
3798   CC="$ac_save_CC $ac_arg"
3799   rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3801 case "(($ac_try" in
3802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803   *) ac_try_echo=$ac_try;;
3804 esac
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806   (eval "$ac_compile") 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } && {
3813          test -z "$ac_c_werror_flag" ||
3814          test ! -s conftest.err
3815        } && test -s conftest.$ac_objext; then
3816   ac_cv_prog_cc_c89=$ac_arg
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext
3825   test "x$ac_cv_prog_cc_c89" != "xno" && break
3826 done
3827 rm -f conftest.$ac_ext
3828 CC=$ac_save_CC
3829
3830 fi
3831 # AC_CACHE_VAL
3832 case "x$ac_cv_prog_cc_c89" in
3833   x)
3834     { echo "$as_me:$LINENO: result: none needed" >&5
3835 echo "${ECHO_T}none needed" >&6; } ;;
3836   xno)
3837     { echo "$as_me:$LINENO: result: unsupported" >&5
3838 echo "${ECHO_T}unsupported" >&6; } ;;
3839   *)
3840     CC="$CC $ac_cv_prog_cc_c89"
3841     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3842 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3843 esac
3844
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852 depcc="$CC"   am_compiler_list=
3853
3854 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3855 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3856 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3860   # We make a subdir and do the tests there.  Otherwise we can end up
3861   # making bogus files that we don't know about and never remove.  For
3862   # instance it was reported that on HP-UX the gcc test will end up
3863   # making a dummy file named `D' -- because `-MD' means `put the output
3864   # in D'.
3865   mkdir conftest.dir
3866   # Copy depcomp to subdir because otherwise we won't find it if we're
3867   # using a relative directory.
3868   cp "$am_depcomp" conftest.dir
3869   cd conftest.dir
3870   # We will build objects and dependencies in a subdirectory because
3871   # it helps to detect inapplicable dependency modes.  For instance
3872   # both Tru64's cc and ICC support -MD to output dependencies as a
3873   # side effect of compilation, but ICC will put the dependencies in
3874   # the current directory while Tru64 will put them in the object
3875   # directory.
3876   mkdir sub
3877
3878   am_cv_CC_dependencies_compiler_type=none
3879   if test "$am_compiler_list" = ""; then
3880      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3881   fi
3882   for depmode in $am_compiler_list; do
3883     # Setup a source with many dependencies, because some compilers
3884     # like to wrap large dependency lists on column 80 (with \), and
3885     # we should not choose a depcomp mode which is confused by this.
3886     #
3887     # We need to recreate these files for each test, as the compiler may
3888     # overwrite some of them when testing with obscure command lines.
3889     # This happens at least with the AIX C compiler.
3890     : > sub/conftest.c
3891     for i in 1 2 3 4 5 6; do
3892       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3894       # Solaris 8's {/usr,}/bin/sh.
3895       touch sub/conftst$i.h
3896     done
3897     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898
3899     case $depmode in
3900     nosideeffect)
3901       # after this tag, mechanisms are not by side-effect, so they'll
3902       # only be used when explicitly requested
3903       if test "x$enable_dependency_tracking" = xyes; then
3904         continue
3905       else
3906         break
3907       fi
3908       ;;
3909     none) break ;;
3910     esac
3911     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3912     # mode.  It turns out that the SunPro C++ compiler does not properly
3913     # handle `-M -o', and we need to detect this.
3914     if depmode=$depmode \
3915        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3916        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3917        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3918          >/dev/null 2>conftest.err &&
3919        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3920        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3921        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3923       # icc doesn't choke on unknown options, it will just issue warnings
3924       # or remarks (even with -Werror).  So we grep stderr for any message
3925       # that says an option was ignored or not supported.
3926       # When given -MP, icc 7.0 and 7.1 complain thusly:
3927       #   icc: Command line warning: ignoring option '-M'; no argument required
3928       # The diagnosis changed in icc 8.0:
3929       #   icc: Command line remark: option '-MP' not supported
3930       if (grep 'ignoring option' conftest.err ||
3931           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3932         am_cv_CC_dependencies_compiler_type=$depmode
3933         break
3934       fi
3935     fi
3936   done
3937
3938   cd ..
3939   rm -rf conftest.dir
3940 else
3941   am_cv_CC_dependencies_compiler_type=none
3942 fi
3943
3944 fi
3945 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3946 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3948
3949  if
3950   test "x$enable_dependency_tracking" != xno \
3951   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3952   am__fastdepCC_TRUE=
3953   am__fastdepCC_FALSE='#'
3954 else
3955   am__fastdepCC_TRUE='#'
3956   am__fastdepCC_FALSE=
3957 fi
3958
3959
3960 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3961 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3962 if test "${lt_cv_path_SED+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   # Loop through the user's path and test for sed and gsed.
3966 # Then use that list of sed's as ones to test for truncation.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for lt_ac_prog in sed gsed; do
3973     for ac_exec_ext in '' $ac_executable_extensions; do
3974       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3975         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3976       fi
3977     done
3978   done
3979 done
3980 IFS=$as_save_IFS
3981 lt_ac_max=0
3982 lt_ac_count=0
3983 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3984 # along with /bin/sed that truncates output.
3985 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3986   test ! -f $lt_ac_sed && continue
3987   cat /dev/null > conftest.in
3988   lt_ac_count=0
3989   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3990   # Check for GNU sed and select it if it is found.
3991   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3992     lt_cv_path_SED=$lt_ac_sed
3993     break
3994   fi
3995   while true; do
3996     cat conftest.in conftest.in >conftest.tmp
3997     mv conftest.tmp conftest.in
3998     cp conftest.in conftest.nl
3999     echo >>conftest.nl
4000     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4001     cmp -s conftest.out conftest.nl || break
4002     # 10000 chars as input seems more than enough
4003     test $lt_ac_count -gt 10 && break
4004     lt_ac_count=`expr $lt_ac_count + 1`
4005     if test $lt_ac_count -gt $lt_ac_max; then
4006       lt_ac_max=$lt_ac_count
4007       lt_cv_path_SED=$lt_ac_sed
4008     fi
4009   done
4010 done
4011
4012 fi
4013
4014 SED=$lt_cv_path_SED
4015
4016 { echo "$as_me:$LINENO: result: $SED" >&5
4017 echo "${ECHO_T}$SED" >&6; }
4018
4019 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4020 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   # Extract the first word of "grep ggrep" to use in msg output
4025 if test -z "$GREP"; then
4026 set dummy grep ggrep; ac_prog_name=$2
4027 if test "${ac_cv_path_GREP+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   ac_path_GREP_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_prog in grep ggrep; do
4038   for ac_exec_ext in '' $ac_executable_extensions; do
4039     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041     # Check for GNU ac_path_GREP and select it if it is found.
4042   # Check for GNU $ac_path_GREP
4043 case `"$ac_path_GREP" --version 2>&1` in
4044 *GNU*)
4045   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046 *)
4047   ac_count=0
4048   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4049   while :
4050   do
4051     cat "conftest.in" "conftest.in" >"conftest.tmp"
4052     mv "conftest.tmp" "conftest.in"
4053     cp "conftest.in" "conftest.nl"
4054     echo 'GREP' >> "conftest.nl"
4055     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057     ac_count=`expr $ac_count + 1`
4058     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059       # Best one so far, save it but keep looking for a better one
4060       ac_cv_path_GREP="$ac_path_GREP"
4061       ac_path_GREP_max=$ac_count
4062     fi
4063     # 10*(2^10) chars as input seems more than enough
4064     test $ac_count -gt 10 && break
4065   done
4066   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067 esac
4068
4069
4070     $ac_path_GREP_found && break 3
4071   done
4072 done
4073
4074 done
4075 IFS=$as_save_IFS
4076
4077
4078 fi
4079
4080 GREP="$ac_cv_path_GREP"
4081 if test -z "$GREP"; then
4082   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4083 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4084    { (exit 1); exit 1; }; }
4085 fi
4086
4087 else
4088   ac_cv_path_GREP=$GREP
4089 fi
4090
4091
4092 fi
4093 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4094 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4095  GREP="$ac_cv_path_GREP"
4096
4097
4098 { echo "$as_me:$LINENO: checking for egrep" >&5
4099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4100 if test "${ac_cv_path_EGREP+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104    then ac_cv_path_EGREP="$GREP -E"
4105    else
4106      # Extract the first word of "egrep" to use in msg output
4107 if test -z "$EGREP"; then
4108 set dummy egrep; ac_prog_name=$2
4109 if test "${ac_cv_path_EGREP+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   ac_path_EGREP_found=false
4113 # Loop through the user's path and test for each of PROGNAME-LIST
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119   for ac_prog in egrep; do
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4123     # Check for GNU ac_path_EGREP and select it if it is found.
4124   # Check for GNU $ac_path_EGREP
4125 case `"$ac_path_EGREP" --version 2>&1` in
4126 *GNU*)
4127   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4128 *)
4129   ac_count=0
4130   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4131   while :
4132   do
4133     cat "conftest.in" "conftest.in" >"conftest.tmp"
4134     mv "conftest.tmp" "conftest.in"
4135     cp "conftest.in" "conftest.nl"
4136     echo 'EGREP' >> "conftest.nl"
4137     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4139     ac_count=`expr $ac_count + 1`
4140     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4141       # Best one so far, save it but keep looking for a better one
4142       ac_cv_path_EGREP="$ac_path_EGREP"
4143       ac_path_EGREP_max=$ac_count
4144     fi
4145     # 10*(2^10) chars as input seems more than enough
4146     test $ac_count -gt 10 && break
4147   done
4148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149 esac
4150
4151
4152     $ac_path_EGREP_found && break 3
4153   done
4154 done
4155
4156 done
4157 IFS=$as_save_IFS
4158
4159
4160 fi
4161
4162 EGREP="$ac_cv_path_EGREP"
4163 if test -z "$EGREP"; then
4164   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4165 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4166    { (exit 1); exit 1; }; }
4167 fi
4168
4169 else
4170   ac_cv_path_EGREP=$EGREP
4171 fi
4172
4173
4174    fi
4175 fi
4176 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4177 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4178  EGREP="$ac_cv_path_EGREP"
4179
4180
4181
4182 # Check whether --with-gnu-ld was given.
4183 if test "${with_gnu_ld+set}" = set; then
4184   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4185 else
4186   with_gnu_ld=no
4187 fi
4188
4189 ac_prog=ld
4190 if test "$GCC" = yes; then
4191   # Check if gcc -print-prog-name=ld gives a path.
4192   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4193 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4194   case $host in
4195   *-*-mingw*)
4196     # gcc leaves a trailing carriage return which upsets mingw
4197     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4198   *)
4199     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4200   esac
4201   case $ac_prog in
4202     # Accept absolute paths.
4203     [\\/]* | ?:[\\/]*)
4204       re_direlt='/[^/][^/]*/\.\./'
4205       # Canonicalize the pathname of ld
4206       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4207       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4208         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4209       done
4210       test -z "$LD" && LD="$ac_prog"
4211       ;;
4212   "")
4213     # If it fails, then pretend we aren't using GCC.
4214     ac_prog=ld
4215     ;;
4216   *)
4217     # If it is relative, then search for the first ld in PATH.
4218     with_gnu_ld=unknown
4219     ;;
4220   esac
4221 elif test "$with_gnu_ld" = yes; then
4222   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4223 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4224 else
4225   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4226 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4227 fi
4228 if test "${lt_cv_path_LD+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -z "$LD"; then
4232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4233   for ac_dir in $PATH; do
4234     IFS="$lt_save_ifs"
4235     test -z "$ac_dir" && ac_dir=.
4236     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4237       lt_cv_path_LD="$ac_dir/$ac_prog"
4238       # Check to see if the program is GNU ld.  I'd rather use --version,
4239       # but apparently some variants of GNU ld only accept -v.
4240       # Break only if it was the GNU/non-GNU ld that we prefer.
4241       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4242       *GNU* | *'with BFD'*)
4243         test "$with_gnu_ld" != no && break
4244         ;;
4245       *)
4246         test "$with_gnu_ld" != yes && break
4247         ;;
4248       esac
4249     fi
4250   done
4251   IFS="$lt_save_ifs"
4252 else
4253   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4254 fi
4255 fi
4256
4257 LD="$lt_cv_path_LD"
4258 if test -n "$LD"; then
4259   { echo "$as_me:$LINENO: result: $LD" >&5
4260 echo "${ECHO_T}$LD" >&6; }
4261 else
4262   { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4264 fi
4265 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4266 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4267    { (exit 1); exit 1; }; }
4268 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4269 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4270 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4274 case `$LD -v 2>&1 </dev/null` in
4275 *GNU* | *'with BFD'*)
4276   lt_cv_prog_gnu_ld=yes
4277   ;;
4278 *)
4279   lt_cv_prog_gnu_ld=no
4280   ;;
4281 esac
4282 fi
4283 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4284 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4285 with_gnu_ld=$lt_cv_prog_gnu_ld
4286
4287
4288 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4289 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4290 if test "${lt_cv_ld_reload_flag+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   lt_cv_ld_reload_flag='-r'
4294 fi
4295 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4296 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4297 reload_flag=$lt_cv_ld_reload_flag
4298 case $reload_flag in
4299 "" | " "*) ;;
4300 *) reload_flag=" $reload_flag" ;;
4301 esac
4302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4303 case $host_os in
4304   darwin*)
4305     if test "$GCC" = yes; then
4306       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4307     else
4308       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4309     fi
4310     ;;
4311 esac
4312
4313 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4314 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4315 if test "${lt_cv_path_NM+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   if test -n "$NM"; then
4319   # Let the user override the test.
4320   lt_cv_path_NM="$NM"
4321 else
4322   lt_nm_to_check="${ac_tool_prefix}nm"
4323   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4324     lt_nm_to_check="$lt_nm_to_check nm"
4325   fi
4326   for lt_tmp_nm in $lt_nm_to_check; do
4327     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4328     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4329       IFS="$lt_save_ifs"
4330       test -z "$ac_dir" && ac_dir=.
4331       tmp_nm="$ac_dir/$lt_tmp_nm"
4332       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4333         # Check to see if the nm accepts a BSD-compat flag.
4334         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4335         #   nm: unknown option "B" ignored
4336         # Tru64's nm complains that /dev/null is an invalid object file
4337         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4338         */dev/null* | *'Invalid file or object type'*)
4339           lt_cv_path_NM="$tmp_nm -B"
4340           break
4341           ;;
4342         *)
4343           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4344           */dev/null*)
4345             lt_cv_path_NM="$tmp_nm -p"
4346             break
4347             ;;
4348           *)
4349             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4350             continue # so that we can try to find one that supports BSD flags
4351             ;;
4352           esac
4353           ;;
4354         esac
4355       fi
4356     done
4357     IFS="$lt_save_ifs"
4358   done
4359   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4360 fi
4361 fi
4362 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4363 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4364 NM="$lt_cv_path_NM"
4365
4366 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4368 LN_S=$as_ln_s
4369 if test "$LN_S" = "ln -s"; then
4370   { echo "$as_me:$LINENO: result: yes" >&5
4371 echo "${ECHO_T}yes" >&6; }
4372 else
4373   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4374 echo "${ECHO_T}no, using $LN_S" >&6; }
4375 fi
4376
4377 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4378 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4379 if test "${lt_cv_deplibs_check_method+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   lt_cv_file_magic_cmd='$MAGIC_CMD'
4383 lt_cv_file_magic_test_file=
4384 lt_cv_deplibs_check_method='unknown'
4385 # Need to set the preceding variable on all platforms that support
4386 # interlibrary dependencies.
4387 # 'none' -- dependencies not supported.
4388 # `unknown' -- same as none, but documents that we really don't know.
4389 # 'pass_all' -- all dependencies passed with no checks.
4390 # 'test_compile' -- check by making test program.
4391 # 'file_magic [[regex]]' -- check by looking for files in library path
4392 # which responds to the $file_magic_cmd with a given extended regex.
4393 # If you have `file' or equivalent on your system and you're not sure
4394 # whether `pass_all' will *always* work, you probably want this one.
4395
4396 case $host_os in
4397 aix[4-9]*)
4398   lt_cv_deplibs_check_method=pass_all
4399   ;;
4400
4401 beos*)
4402   lt_cv_deplibs_check_method=pass_all
4403   ;;
4404
4405 bsdi[45]*)
4406   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4407   lt_cv_file_magic_cmd='/usr/bin/file -L'
4408   lt_cv_file_magic_test_file=/shlib/libc.so
4409   ;;
4410
4411 cygwin*)
4412   # func_win32_libid is a shell function defined in ltmain.sh
4413   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4414   lt_cv_file_magic_cmd='func_win32_libid'
4415   ;;
4416
4417 mingw* | pw32*)
4418   # Base MSYS/MinGW do not provide the 'file' command needed by
4419   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4420   # unless we find 'file', for example because we are cross-compiling.
4421   if ( file / ) >/dev/null 2>&1; then
4422     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4423     lt_cv_file_magic_cmd='func_win32_libid'
4424   else
4425     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4426     lt_cv_file_magic_cmd='$OBJDUMP -f'
4427   fi
4428   ;;
4429
4430 darwin* | rhapsody*)
4431   lt_cv_deplibs_check_method=pass_all
4432   ;;
4433
4434 freebsd* | dragonfly*)
4435   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4436     case $host_cpu in
4437     i*86 )
4438       # Not sure whether the presence of OpenBSD here was a mistake.
4439       # Let's accept both of them until this is cleared up.
4440       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4441       lt_cv_file_magic_cmd=/usr/bin/file
4442       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4443       ;;
4444     esac
4445   else
4446     lt_cv_deplibs_check_method=pass_all
4447   fi
4448   ;;
4449
4450 gnu*)
4451   lt_cv_deplibs_check_method=pass_all
4452   ;;
4453
4454 hpux10.20* | hpux11*)
4455   lt_cv_file_magic_cmd=/usr/bin/file
4456   case $host_cpu in
4457   ia64*)
4458     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4459     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4460     ;;
4461   hppa*64*)
4462     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]'
4463     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4464     ;;
4465   *)
4466     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4467     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4468     ;;
4469   esac
4470   ;;
4471
4472 interix[3-9]*)
4473   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4474   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4475   ;;
4476
4477 irix5* | irix6* | nonstopux*)
4478   case $LD in
4479   *-32|*"-32 ") libmagic=32-bit;;
4480   *-n32|*"-n32 ") libmagic=N32;;
4481   *-64|*"-64 ") libmagic=64-bit;;
4482   *) libmagic=never-match;;
4483   esac
4484   lt_cv_deplibs_check_method=pass_all
4485   ;;
4486
4487 # This must be Linux ELF.
4488 linux* | k*bsd*-gnu)
4489   lt_cv_deplibs_check_method=pass_all
4490   ;;
4491
4492 netbsd* | netbsdelf*-gnu)
4493   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4495   else
4496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4497   fi
4498   ;;
4499
4500 newos6*)
4501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4502   lt_cv_file_magic_cmd=/usr/bin/file
4503   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4504   ;;
4505
4506 nto-qnx*)
4507   lt_cv_deplibs_check_method=unknown
4508   ;;
4509
4510 openbsd*)
4511   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4513   else
4514     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4515   fi
4516   ;;
4517
4518 osf3* | osf4* | osf5*)
4519   lt_cv_deplibs_check_method=pass_all
4520   ;;
4521
4522 rdos*)
4523   lt_cv_deplibs_check_method=pass_all
4524   ;;
4525
4526 solaris*)
4527   lt_cv_deplibs_check_method=pass_all
4528   ;;
4529
4530 sysv4 | sysv4.3*)
4531   case $host_vendor in
4532   motorola)
4533     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]'
4534     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4535     ;;
4536   ncr)
4537     lt_cv_deplibs_check_method=pass_all
4538     ;;
4539   sequent)
4540     lt_cv_file_magic_cmd='/bin/file'
4541     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4542     ;;
4543   sni)
4544     lt_cv_file_magic_cmd='/bin/file'
4545     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4546     lt_cv_file_magic_test_file=/lib/libc.so
4547     ;;
4548   siemens)
4549     lt_cv_deplibs_check_method=pass_all
4550     ;;
4551   pc)
4552     lt_cv_deplibs_check_method=pass_all
4553     ;;
4554   esac
4555   ;;
4556
4557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4558   lt_cv_deplibs_check_method=pass_all
4559   ;;
4560 esac
4561
4562 fi
4563 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4564 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4565 file_magic_cmd=$lt_cv_file_magic_cmd
4566 deplibs_check_method=$lt_cv_deplibs_check_method
4567 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4568
4569
4570
4571
4572 # If no C compiler was specified, use CC.
4573 LTCC=${LTCC-"$CC"}
4574
4575 # If no C compiler flags were specified, use CFLAGS.
4576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4577
4578 # Allow CC to be a program name with arguments.
4579 compiler=$CC
4580
4581
4582 # Check whether --enable-libtool-lock was given.
4583 if test "${enable_libtool_lock+set}" = set; then
4584   enableval=$enable_libtool_lock;
4585 fi
4586
4587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4588
4589 # Some flags need to be propagated to the compiler or linker for good
4590 # libtool support.
4591 case $host in
4592 ia64-*-hpux*)
4593   # Find out which ABI we are using.
4594   echo 'int i;' > conftest.$ac_ext
4595   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596   (eval $ac_compile) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; then
4600     case `/usr/bin/file conftest.$ac_objext` in
4601     *ELF-32*)
4602       HPUX_IA64_MODE="32"
4603       ;;
4604     *ELF-64*)
4605       HPUX_IA64_MODE="64"
4606       ;;
4607     esac
4608   fi
4609   rm -rf conftest*
4610   ;;
4611 *-*-irix6*)
4612   # Find out which ABI we are using.
4613   echo '#line 4613 "configure"' > conftest.$ac_ext
4614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615   (eval $ac_compile) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; then
4619    if test "$lt_cv_prog_gnu_ld" = yes; then
4620     case `/usr/bin/file conftest.$ac_objext` in
4621     *32-bit*)
4622       LD="${LD-ld} -melf32bsmip"
4623       ;;
4624     *N32*)
4625       LD="${LD-ld} -melf32bmipn32"
4626       ;;
4627     *64-bit*)
4628       LD="${LD-ld} -melf64bmip"
4629       ;;
4630     esac
4631    else
4632     case `/usr/bin/file conftest.$ac_objext` in
4633     *32-bit*)
4634       LD="${LD-ld} -32"
4635       ;;
4636     *N32*)
4637       LD="${LD-ld} -n32"
4638       ;;
4639     *64-bit*)
4640       LD="${LD-ld} -64"
4641       ;;
4642     esac
4643    fi
4644   fi
4645   rm -rf conftest*
4646   ;;
4647
4648 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4649 s390*-*linux*|sparc*-*linux*)
4650   # Find out which ABI we are using.
4651   echo 'int i;' > conftest.$ac_ext
4652   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653   (eval $ac_compile) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; then
4657     case `/usr/bin/file conftest.o` in
4658     *32-bit*)
4659       case $host in
4660         x86_64-*kfreebsd*-gnu)
4661           LD="${LD-ld} -m elf_i386_fbsd"
4662           ;;
4663         x86_64-*linux*)
4664           LD="${LD-ld} -m elf_i386"
4665           ;;
4666         ppc64-*linux*|powerpc64-*linux*)
4667           LD="${LD-ld} -m elf32ppclinux"
4668           ;;
4669         s390x-*linux*)
4670           LD="${LD-ld} -m elf_s390"
4671           ;;
4672         sparc64-*linux*)
4673           LD="${LD-ld} -m elf32_sparc"
4674           ;;
4675       esac
4676       ;;
4677     *64-bit*)
4678       case $host in
4679         x86_64-*kfreebsd*-gnu)
4680           LD="${LD-ld} -m elf_x86_64_fbsd"
4681           ;;
4682         x86_64-*linux*)
4683           LD="${LD-ld} -m elf_x86_64"
4684           ;;
4685         ppc*-*linux*|powerpc*-*linux*)
4686           LD="${LD-ld} -m elf64ppc"
4687           ;;
4688         s390*-*linux*)
4689           LD="${LD-ld} -m elf64_s390"
4690           ;;
4691         sparc*-*linux*)
4692           LD="${LD-ld} -m elf64_sparc"
4693           ;;
4694       esac
4695       ;;
4696     esac
4697   fi
4698   rm -rf conftest*
4699   ;;
4700
4701 *-*-sco3.2v5*)
4702   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4703   SAVE_CFLAGS="$CFLAGS"
4704   CFLAGS="$CFLAGS -belf"
4705   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4706 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4707 if test "${lt_cv_cc_needs_belf+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715
4716      cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722
4723 int
4724 main ()
4725 {
4726
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4733 case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738   (eval "$ac_link") 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } && {
4745          test -z "$ac_c_werror_flag" ||
4746          test ! -s conftest.err
4747        } && test -s conftest$ac_exeext &&
4748        $as_test_x conftest$ac_exeext; then
4749   lt_cv_cc_needs_belf=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754         lt_cv_cc_needs_belf=no
4755 fi
4756
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758       conftest$ac_exeext conftest.$ac_ext
4759      ac_ext=c
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764
4765 fi
4766 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4767 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4768   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4769     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4770     CFLAGS="$SAVE_CFLAGS"
4771   fi
4772   ;;
4773 sparc*-*solaris*)
4774   # Find out which ABI we are using.
4775   echo 'int i;' > conftest.$ac_ext
4776   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; then
4781     case `/usr/bin/file conftest.o` in
4782     *64-bit*)
4783       case $lt_cv_prog_gnu_ld in
4784       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4785       *)
4786         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4787           LD="${LD-ld} -64"
4788         fi
4789         ;;
4790       esac
4791       ;;
4792     esac
4793   fi
4794   rm -rf conftest*
4795   ;;
4796
4797 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4798   if test -n "$ac_tool_prefix"; then
4799   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4800 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$DLLTOOL"; then
4807   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 DLLTOOL=$ac_cv_prog_DLLTOOL
4827 if test -n "$DLLTOOL"; then
4828   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4829 echo "${ECHO_T}$DLLTOOL" >&6; }
4830 else
4831   { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4833 fi
4834
4835
4836 fi
4837 if test -z "$ac_cv_prog_DLLTOOL"; then
4838   ac_ct_DLLTOOL=$DLLTOOL
4839   # Extract the first word of "dlltool", so it can be a program name with args.
4840 set dummy dlltool; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   if test -n "$ac_ct_DLLTOOL"; then
4847   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854   for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861 done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4867 if test -n "$ac_ct_DLLTOOL"; then
4868   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4869 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4870 else
4871   { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4873 fi
4874
4875   if test "x$ac_ct_DLLTOOL" = x; then
4876     DLLTOOL="false"
4877   else
4878     case $cross_compiling:$ac_tool_warned in
4879 yes:)
4880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4881 whose name does not start with the host triplet.  If you think this
4882 configuration is useful to you, please write to autoconf@gnu.org." >&5
4883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4884 whose name does not start with the host triplet.  If you think this
4885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888     DLLTOOL=$ac_ct_DLLTOOL
4889   fi
4890 else
4891   DLLTOOL="$ac_cv_prog_DLLTOOL"
4892 fi
4893
4894   if test -n "$ac_tool_prefix"; then
4895   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}as; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_AS+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$AS"; then
4903   ac_cv_prog_AS="$AS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_AS="${ac_tool_prefix}as"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 AS=$ac_cv_prog_AS
4923 if test -n "$AS"; then
4924   { echo "$as_me:$LINENO: result: $AS" >&5
4925 echo "${ECHO_T}$AS" >&6; }
4926 else
4927   { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4929 fi
4930
4931
4932 fi
4933 if test -z "$ac_cv_prog_AS"; then
4934   ac_ct_AS=$AS
4935   # Extract the first word of "as", so it can be a program name with args.
4936 set dummy as; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   if test -n "$ac_ct_AS"; then
4943   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950   for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_prog_ac_ct_AS="as"
4953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4963 if test -n "$ac_ct_AS"; then
4964   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4965 echo "${ECHO_T}$ac_ct_AS" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971   if test "x$ac_ct_AS" = x; then
4972     AS="false"
4973   else
4974     case $cross_compiling:$ac_tool_warned in
4975 yes:)
4976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4977 whose name does not start with the host triplet.  If you think this
4978 configuration is useful to you, please write to autoconf@gnu.org." >&5
4979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4980 whose name does not start with the host triplet.  If you think this
4981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4982 ac_tool_warned=yes ;;
4983 esac
4984     AS=$ac_ct_AS
4985   fi
4986 else
4987   AS="$ac_cv_prog_AS"
4988 fi
4989
4990   if test -n "$ac_tool_prefix"; then
4991   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   if test -n "$OBJDUMP"; then
4999   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 OBJDUMP=$ac_cv_prog_OBJDUMP
5019 if test -n "$OBJDUMP"; then
5020   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5021 echo "${ECHO_T}$OBJDUMP" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5026
5027
5028 fi
5029 if test -z "$ac_cv_prog_OBJDUMP"; then
5030   ac_ct_OBJDUMP=$OBJDUMP
5031   # Extract the first word of "objdump", so it can be a program name with args.
5032 set dummy objdump; ac_word=$2
5033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5035 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   if test -n "$ac_ct_OBJDUMP"; then
5039   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046   for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5059 if test -n "$ac_ct_OBJDUMP"; then
5060   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5061 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5062 else
5063   { echo "$as_me:$LINENO: result: no" >&5
5064 echo "${ECHO_T}no" >&6; }
5065 fi
5066
5067   if test "x$ac_ct_OBJDUMP" = x; then
5068     OBJDUMP="false"
5069   else
5070     case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5073 whose name does not start with the host triplet.  If you think this
5074 configuration is useful to you, please write to autoconf@gnu.org." >&5
5075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5076 whose name does not start with the host triplet.  If you think this
5077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5078 ac_tool_warned=yes ;;
5079 esac
5080     OBJDUMP=$ac_ct_OBJDUMP
5081   fi
5082 else
5083   OBJDUMP="$ac_cv_prog_OBJDUMP"
5084 fi
5085
5086   ;;
5087
5088 esac
5089
5090 need_locks="$enable_libtool_lock"
5091
5092
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5100 # On Suns, sometimes $CPP names a directory.
5101 if test -n "$CPP" && test -d "$CPP"; then
5102   CPP=
5103 fi
5104 if test -z "$CPP"; then
5105   if test "${ac_cv_prog_CPP+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108       # Double quotes because CPP needs to be expanded
5109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5110     do
5111       ac_preproc_ok=false
5112 for ac_c_preproc_warn_flag in '' yes
5113 do
5114   # Use a header file that comes with gcc, so configuring glibc
5115   # with a fresh cross-compiler works.
5116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117   # <limits.h> exists even on freestanding compilers.
5118   # On the NeXT, cc -E runs the code through the compiler's parser,
5119   # not just through cpp. "Syntax error" is here to catch this case.
5120   cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #ifdef __STDC__
5127 # include <limits.h>
5128 #else
5129 # include <assert.h>
5130 #endif
5131                      Syntax error
5132 _ACEOF
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5134 case "(($ac_try" in
5135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136   *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } >/dev/null && {
5146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147          test ! -s conftest.err
5148        }; then
5149   :
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154   # Broken: fails on valid input.
5155 continue
5156 fi
5157
5158 rm -f conftest.err conftest.$ac_ext
5159
5160   # OK, works on sane cases.  Now check whether nonexistent headers
5161   # can be detected and how.
5162   cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h.  */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h.  */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if { (ac_try="$ac_cpp conftest.$ac_ext"
5171 case "(($ac_try" in
5172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173   *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } >/dev/null && {
5183          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5184          test ! -s conftest.err
5185        }; then
5186   # Broken: success on invalid input.
5187 continue
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192   # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5195 fi
5196
5197 rm -f conftest.err conftest.$ac_ext
5198
5199 done
5200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5201 rm -f conftest.err conftest.$ac_ext
5202 if $ac_preproc_ok; then
5203   break
5204 fi
5205
5206     done
5207     ac_cv_prog_CPP=$CPP
5208
5209 fi
5210   CPP=$ac_cv_prog_CPP
5211 else
5212   ac_cv_prog_CPP=$CPP
5213 fi
5214 { echo "$as_me:$LINENO: result: $CPP" >&5
5215 echo "${ECHO_T}$CPP" >&6; }
5216 ac_preproc_ok=false
5217 for ac_c_preproc_warn_flag in '' yes
5218 do
5219   # Use a header file that comes with gcc, so configuring glibc
5220   # with a fresh cross-compiler works.
5221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5222   # <limits.h> exists even on freestanding compilers.
5223   # On the NeXT, cc -E runs the code through the compiler's parser,
5224   # not just through cpp. "Syntax error" is here to catch this case.
5225   cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 #ifdef __STDC__
5232 # include <limits.h>
5233 #else
5234 # include <assert.h>
5235 #endif
5236                      Syntax error
5237 _ACEOF
5238 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 case "(($ac_try" in
5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241   *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245   ac_status=$?
5246   grep -v '^ *+' conftest.er1 >conftest.err
5247   rm -f conftest.er1
5248   cat conftest.err >&5
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } >/dev/null && {
5251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252          test ! -s conftest.err
5253        }; then
5254   :
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259   # Broken: fails on valid input.
5260 continue
5261 fi
5262
5263 rm -f conftest.err conftest.$ac_ext
5264
5265   # OK, works on sane cases.  Now check whether nonexistent headers
5266   # can be detected and how.
5267   cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h.  */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h.  */
5273 #include <ac_nonexistent.h>
5274 _ACEOF
5275 if { (ac_try="$ac_cpp conftest.$ac_ext"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } >/dev/null && {
5288          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5289          test ! -s conftest.err
5290        }; then
5291   # Broken: success on invalid input.
5292 continue
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297   # Passes both tests.
5298 ac_preproc_ok=:
5299 break
5300 fi
5301
5302 rm -f conftest.err conftest.$ac_ext
5303
5304 done
5305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5306 rm -f conftest.err conftest.$ac_ext
5307 if $ac_preproc_ok; then
5308   :
5309 else
5310   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5311 See \`config.log' for more details." >&5
5312 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5313 See \`config.log' for more details." >&2;}
5314    { (exit 1); exit 1; }; }
5315 fi
5316
5317 ac_ext=c
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322
5323
5324 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5326 if test "${ac_cv_header_stdc+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #include <stdlib.h>
5336 #include <stdarg.h>
5337 #include <string.h>
5338 #include <float.h>
5339
5340 int
5341 main ()
5342 {
5343
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.$ac_objext
5349 if { (ac_try="$ac_compile"
5350 case "(($ac_try" in
5351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352   *) ac_try_echo=$ac_try;;
5353 esac
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355   (eval "$ac_compile") 2>conftest.er1
5356   ac_status=$?
5357   grep -v '^ *+' conftest.er1 >conftest.err
5358   rm -f conftest.er1
5359   cat conftest.err >&5
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); } && {
5362          test -z "$ac_c_werror_flag" ||
5363          test ! -s conftest.err
5364        } && test -s conftest.$ac_objext; then
5365   ac_cv_header_stdc=yes
5366 else
5367   echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370         ac_cv_header_stdc=no
5371 fi
5372
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374
5375 if test $ac_cv_header_stdc = yes; then
5376   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5377   cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h.  */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h.  */
5383 #include <string.h>
5384
5385 _ACEOF
5386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5387   $EGREP "memchr" >/dev/null 2>&1; then
5388   :
5389 else
5390   ac_cv_header_stdc=no
5391 fi
5392 rm -f conftest*
5393
5394 fi
5395
5396 if test $ac_cv_header_stdc = yes; then
5397   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 #include <stdlib.h>
5405
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408   $EGREP "free" >/dev/null 2>&1; then
5409   :
5410 else
5411   ac_cv_header_stdc=no
5412 fi
5413 rm -f conftest*
5414
5415 fi
5416
5417 if test $ac_cv_header_stdc = yes; then
5418   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5419   if test "$cross_compiling" = yes; then
5420   :
5421 else
5422   cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428 #include <ctype.h>
5429 #include <stdlib.h>
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5433 #else
5434 # define ISLOWER(c) \
5435                    (('a' <= (c) && (c) <= 'i') \
5436                      || ('j' <= (c) && (c) <= 'r') \
5437                      || ('s' <= (c) && (c) <= 'z'))
5438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5439 #endif
5440
5441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5442 int
5443 main ()
5444 {
5445   int i;
5446   for (i = 0; i < 256; i++)
5447     if (XOR (islower (i), ISLOWER (i))
5448         || toupper (i) != TOUPPER (i))
5449       return 2;
5450   return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest$ac_exeext
5454 if { (ac_try="$ac_link"
5455 case "(($ac_try" in
5456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457   *) ac_try_echo=$ac_try;;
5458 esac
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460   (eval "$ac_link") 2>&5
5461   ac_status=$?
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5464   { (case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_try") 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   :
5474 else
5475   echo "$as_me: program exited with status $ac_status" >&5
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 ( exit $ac_status )
5480 ac_cv_header_stdc=no
5481 fi
5482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5483 fi
5484
5485
5486 fi
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5489 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5490 if test $ac_cv_header_stdc = yes; then
5491
5492 cat >>confdefs.h <<\_ACEOF
5493 #define STDC_HEADERS 1
5494 _ACEOF
5495
5496 fi
5497
5498 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5509                   inttypes.h stdint.h unistd.h
5510 do
5511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 $ac_includes_default
5524
5525 #include <$ac_header>
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && {
5541          test -z "$ac_c_werror_flag" ||
5542          test ! -s conftest.err
5543        } && test -s conftest.$ac_objext; then
5544   eval "$as_ac_Header=yes"
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549         eval "$as_ac_Header=no"
5550 fi
5551
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 fi
5554 ac_res=`eval echo '${'$as_ac_Header'}'`
5555                { echo "$as_me:$LINENO: result: $ac_res" >&5
5556 echo "${ECHO_T}$ac_res" >&6; }
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558   cat >>confdefs.h <<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 _ACEOF
5561
5562 fi
5563
5564 done
5565
5566
5567
5568 for ac_header in dlfcn.h
5569 do
5570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 fi
5577 ac_res=`eval echo '${'$as_ac_Header'}'`
5578                { echo "$as_me:$LINENO: result: $ac_res" >&5
5579 echo "${ECHO_T}$ac_res" >&6; }
5580 else
5581   # Is the header compilable?
5582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590 $ac_includes_default
5591 #include <$ac_header>
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (ac_try="$ac_compile"
5595 case "(($ac_try" in
5596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597   *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600   (eval "$ac_compile") 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } && {
5607          test -z "$ac_c_werror_flag" ||
5608          test ! -s conftest.err
5609        } && test -s conftest.$ac_objext; then
5610   ac_header_compiler=yes
5611 else
5612   echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615         ac_header_compiler=no
5616 fi
5617
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5620 echo "${ECHO_T}$ac_header_compiler" >&6; }
5621
5622 # Is the header present?
5623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631 #include <$ac_header>
5632 _ACEOF
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5634 case "(($ac_try" in
5635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636   *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } >/dev/null && {
5646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647          test ! -s conftest.err
5648        }; then
5649   ac_header_preproc=yes
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654   ac_header_preproc=no
5655 fi
5656
5657 rm -f conftest.err conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659 echo "${ECHO_T}$ac_header_preproc" >&6; }
5660
5661 # So?  What about this header?
5662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5663   yes:no: )
5664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5668     ac_header_preproc=yes
5669     ;;
5670   no:yes:* )
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5675     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5677     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5678 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5681     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5683     ( cat <<\_ASBOX
5684 ## -------------------------------------------------- ##
5685 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5686 ## -------------------------------------------------- ##
5687 _ASBOX
5688      ) | sed "s/^/$as_me: WARNING:     /" >&2
5689     ;;
5690 esac
5691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   eval "$as_ac_Header=\$ac_header_preproc"
5697 fi
5698 ac_res=`eval echo '${'$as_ac_Header'}'`
5699                { echo "$as_me:$LINENO: result: $ac_res" >&5
5700 echo "${ECHO_T}$ac_res" >&6; }
5701
5702 fi
5703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5704   cat >>confdefs.h <<_ACEOF
5705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5706 _ACEOF
5707
5708 fi
5709
5710 done
5711
5712 ac_ext=cpp
5713 ac_cpp='$CXXCPP $CPPFLAGS'
5714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5717 if test -z "$CXX"; then
5718   if test -n "$CCC"; then
5719     CXX=$CCC
5720   else
5721     if test -n "$ac_tool_prefix"; then
5722   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5723   do
5724     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728 if test "${ac_cv_prog_CXX+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   if test -n "$CXX"; then
5732   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739   for ac_exec_ext in '' $ac_executable_extensions; do
5740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 CXX=$ac_cv_prog_CXX
5752 if test -n "$CXX"; then
5753   { echo "$as_me:$LINENO: result: $CXX" >&5
5754 echo "${ECHO_T}$CXX" >&6; }
5755 else
5756   { echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6; }
5758 fi
5759
5760
5761     test -n "$CXX" && break
5762   done
5763 fi
5764 if test -z "$CXX"; then
5765   ac_ct_CXX=$CXX
5766   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5767 do
5768   # Extract the first word of "$ac_prog", so it can be a program name with args.
5769 set dummy $ac_prog; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   if test -n "$ac_ct_CXX"; then
5776   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783   for ac_exec_ext in '' $ac_executable_extensions; do
5784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785     ac_cv_prog_ac_ct_CXX="$ac_prog"
5786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5796 if test -n "$ac_ct_CXX"; then
5797   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5798 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5799 else
5800   { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5802 fi
5803
5804
5805   test -n "$ac_ct_CXX" && break
5806 done
5807
5808   if test "x$ac_ct_CXX" = x; then
5809     CXX="g++"
5810   else
5811     case $cross_compiling:$ac_tool_warned in
5812 yes:)
5813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5814 whose name does not start with the host triplet.  If you think this
5815 configuration is useful to you, please write to autoconf@gnu.org." >&5
5816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5817 whose name does not start with the host triplet.  If you think this
5818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5819 ac_tool_warned=yes ;;
5820 esac
5821     CXX=$ac_ct_CXX
5822   fi
5823 fi
5824
5825   fi
5826 fi
5827 # Provide some information about the compiler.
5828 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5829 ac_compiler=`set X $ac_compile; echo $2`
5830 { (ac_try="$ac_compiler --version >&5"
5831 case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_compiler --version >&5") 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }
5840 { (ac_try="$ac_compiler -v >&5"
5841 case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_compiler -v >&5") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }
5850 { (ac_try="$ac_compiler -V >&5"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_compiler -V >&5") 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }
5860
5861 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5862 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5863 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872
5873 int
5874 main ()
5875 {
5876 #ifndef __GNUC__
5877        choke me
5878 #endif
5879
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (ac_try="$ac_compile"
5886 case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_compile") 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } && {
5898          test -z "$ac_cxx_werror_flag" ||
5899          test ! -s conftest.err
5900        } && test -s conftest.$ac_objext; then
5901   ac_compiler_gnu=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906         ac_compiler_gnu=no
5907 fi
5908
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5911
5912 fi
5913 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5914 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5915 GXX=`test $ac_compiler_gnu = yes && echo yes`
5916 ac_test_CXXFLAGS=${CXXFLAGS+set}
5917 ac_save_CXXFLAGS=$CXXFLAGS
5918 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5919 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_cxx_g+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5924    ac_cxx_werror_flag=yes
5925    ac_cv_prog_cxx_g=no
5926    CXXFLAGS="-g"
5927    cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933
5934 int
5935 main ()
5936 {
5937
5938   ;
5939   return 0;
5940 }
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5944 case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_compile") 2>conftest.er1
5950   ac_status=$?
5951   grep -v '^ *+' conftest.er1 >conftest.err
5952   rm -f conftest.er1
5953   cat conftest.err >&5
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); } && {
5956          test -z "$ac_cxx_werror_flag" ||
5957          test ! -s conftest.err
5958        } && test -s conftest.$ac_objext; then
5959   ac_cv_prog_cxx_g=yes
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964         CXXFLAGS=""
5965       cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971
5972 int
5973 main ()
5974 {
5975
5976   ;
5977   return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5982 case "(($ac_try" in
5983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984   *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987   (eval "$ac_compile") 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } && {
5994          test -z "$ac_cxx_werror_flag" ||
5995          test ! -s conftest.err
5996        } && test -s conftest.$ac_objext; then
5997   :
5998 else
5999   echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6003          CXXFLAGS="-g"
6004          cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h.  */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h.  */
6010
6011 int
6012 main ()
6013 {
6014
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6021 case "(($ac_try" in
6022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023   *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026   (eval "$ac_compile") 2>conftest.er1
6027   ac_status=$?
6028   grep -v '^ *+' conftest.er1 >conftest.err
6029   rm -f conftest.er1
6030   cat conftest.err >&5
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); } && {
6033          test -z "$ac_cxx_werror_flag" ||
6034          test ! -s conftest.err
6035        } && test -s conftest.$ac_objext; then
6036   ac_cv_prog_cxx_g=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041
6042 fi
6043
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 fi
6046
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6052 fi
6053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6055 if test "$ac_test_CXXFLAGS" = set; then
6056   CXXFLAGS=$ac_save_CXXFLAGS
6057 elif test $ac_cv_prog_cxx_g = yes; then
6058   if test "$GXX" = yes; then
6059     CXXFLAGS="-g -O2"
6060   else
6061     CXXFLAGS="-g"
6062   fi
6063 else
6064   if test "$GXX" = yes; then
6065     CXXFLAGS="-O2"
6066   else
6067     CXXFLAGS=
6068   fi
6069 fi
6070 ac_ext=cpp
6071 ac_cpp='$CXXCPP $CPPFLAGS'
6072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6075
6076 depcc="$CXX"  am_compiler_list=
6077
6078 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6080 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6084   # We make a subdir and do the tests there.  Otherwise we can end up
6085   # making bogus files that we don't know about and never remove.  For
6086   # instance it was reported that on HP-UX the gcc test will end up
6087   # making a dummy file named `D' -- because `-MD' means `put the output
6088   # in D'.
6089   mkdir conftest.dir
6090   # Copy depcomp to subdir because otherwise we won't find it if we're
6091   # using a relative directory.
6092   cp "$am_depcomp" conftest.dir
6093   cd conftest.dir
6094   # We will build objects and dependencies in a subdirectory because
6095   # it helps to detect inapplicable dependency modes.  For instance
6096   # both Tru64's cc and ICC support -MD to output dependencies as a
6097   # side effect of compilation, but ICC will put the dependencies in
6098   # the current directory while Tru64 will put them in the object
6099   # directory.
6100   mkdir sub
6101
6102   am_cv_CXX_dependencies_compiler_type=none
6103   if test "$am_compiler_list" = ""; then
6104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6105   fi
6106   for depmode in $am_compiler_list; do
6107     # Setup a source with many dependencies, because some compilers
6108     # like to wrap large dependency lists on column 80 (with \), and
6109     # we should not choose a depcomp mode which is confused by this.
6110     #
6111     # We need to recreate these files for each test, as the compiler may
6112     # overwrite some of them when testing with obscure command lines.
6113     # This happens at least with the AIX C compiler.
6114     : > sub/conftest.c
6115     for i in 1 2 3 4 5 6; do
6116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6118       # Solaris 8's {/usr,}/bin/sh.
6119       touch sub/conftst$i.h
6120     done
6121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6122
6123     case $depmode in
6124     nosideeffect)
6125       # after this tag, mechanisms are not by side-effect, so they'll
6126       # only be used when explicitly requested
6127       if test "x$enable_dependency_tracking" = xyes; then
6128         continue
6129       else
6130         break
6131       fi
6132       ;;
6133     none) break ;;
6134     esac
6135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6136     # mode.  It turns out that the SunPro C++ compiler does not properly
6137     # handle `-M -o', and we need to detect this.
6138     if depmode=$depmode \
6139        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6141        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6142          >/dev/null 2>conftest.err &&
6143        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6144        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6145        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6146        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6147       # icc doesn't choke on unknown options, it will just issue warnings
6148       # or remarks (even with -Werror).  So we grep stderr for any message
6149       # that says an option was ignored or not supported.
6150       # When given -MP, icc 7.0 and 7.1 complain thusly:
6151       #   icc: Command line warning: ignoring option '-M'; no argument required
6152       # The diagnosis changed in icc 8.0:
6153       #   icc: Command line remark: option '-MP' not supported
6154       if (grep 'ignoring option' conftest.err ||
6155           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6156         am_cv_CXX_dependencies_compiler_type=$depmode
6157         break
6158       fi
6159     fi
6160   done
6161
6162   cd ..
6163   rm -rf conftest.dir
6164 else
6165   am_cv_CXX_dependencies_compiler_type=none
6166 fi
6167
6168 fi
6169 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6170 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6171 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6172
6173  if
6174   test "x$enable_dependency_tracking" != xno \
6175   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6176   am__fastdepCXX_TRUE=
6177   am__fastdepCXX_FALSE='#'
6178 else
6179   am__fastdepCXX_TRUE='#'
6180   am__fastdepCXX_FALSE=
6181 fi
6182
6183
6184
6185
6186 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6187     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6188     (test "X$CXX" != "Xg++"))) ; then
6189   ac_ext=cpp
6190 ac_cpp='$CXXCPP $CPPFLAGS'
6191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6194 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6195 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6196 if test -z "$CXXCPP"; then
6197   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200       # Double quotes because CXXCPP needs to be expanded
6201     for CXXCPP in "$CXX -E" "/lib/cpp"
6202     do
6203       ac_preproc_ok=false
6204 for ac_cxx_preproc_warn_flag in '' yes
6205 do
6206   # Use a header file that comes with gcc, so configuring glibc
6207   # with a fresh cross-compiler works.
6208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6209   # <limits.h> exists even on freestanding compilers.
6210   # On the NeXT, cc -E runs the code through the compiler's parser,
6211   # not just through cpp. "Syntax error" is here to catch this case.
6212   cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218 #ifdef __STDC__
6219 # include <limits.h>
6220 #else
6221 # include <assert.h>
6222 #endif
6223                      Syntax error
6224 _ACEOF
6225 if { (ac_try="$ac_cpp conftest.$ac_ext"
6226 case "(($ac_try" in
6227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228   *) ac_try_echo=$ac_try;;
6229 esac
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } >/dev/null && {
6238          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6239          test ! -s conftest.err
6240        }; then
6241   :
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246   # Broken: fails on valid input.
6247 continue
6248 fi
6249
6250 rm -f conftest.err conftest.$ac_ext
6251
6252   # OK, works on sane cases.  Now check whether nonexistent headers
6253   # can be detected and how.
6254   cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260 #include <ac_nonexistent.h>
6261 _ACEOF
6262 if { (ac_try="$ac_cpp conftest.$ac_ext"
6263 case "(($ac_try" in
6264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265   *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } >/dev/null && {
6275          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6276          test ! -s conftest.err
6277        }; then
6278   # Broken: success on invalid input.
6279 continue
6280 else
6281   echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284   # Passes both tests.
6285 ac_preproc_ok=:
6286 break
6287 fi
6288
6289 rm -f conftest.err conftest.$ac_ext
6290
6291 done
6292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6293 rm -f conftest.err conftest.$ac_ext
6294 if $ac_preproc_ok; then
6295   break
6296 fi
6297
6298     done
6299     ac_cv_prog_CXXCPP=$CXXCPP
6300
6301 fi
6302   CXXCPP=$ac_cv_prog_CXXCPP
6303 else
6304   ac_cv_prog_CXXCPP=$CXXCPP
6305 fi
6306 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6307 echo "${ECHO_T}$CXXCPP" >&6; }
6308 ac_preproc_ok=false
6309 for ac_cxx_preproc_warn_flag in '' yes
6310 do
6311   # Use a header file that comes with gcc, so configuring glibc
6312   # with a fresh cross-compiler works.
6313   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6314   # <limits.h> exists even on freestanding compilers.
6315   # On the NeXT, cc -E runs the code through the compiler's parser,
6316   # not just through cpp. "Syntax error" is here to catch this case.
6317   cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h.  */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h.  */
6323 #ifdef __STDC__
6324 # include <limits.h>
6325 #else
6326 # include <assert.h>
6327 #endif
6328                      Syntax error
6329 _ACEOF
6330 if { (ac_try="$ac_cpp conftest.$ac_ext"
6331 case "(($ac_try" in
6332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333   *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } >/dev/null && {
6343          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6344          test ! -s conftest.err
6345        }; then
6346   :
6347 else
6348   echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351   # Broken: fails on valid input.
6352 continue
6353 fi
6354
6355 rm -f conftest.err conftest.$ac_ext
6356
6357   # OK, works on sane cases.  Now check whether nonexistent headers
6358   # can be detected and how.
6359   cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365 #include <ac_nonexistent.h>
6366 _ACEOF
6367 if { (ac_try="$ac_cpp conftest.$ac_ext"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6374   ac_status=$?
6375   grep -v '^ *+' conftest.er1 >conftest.err
6376   rm -f conftest.er1
6377   cat conftest.err >&5
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } >/dev/null && {
6380          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6381          test ! -s conftest.err
6382        }; then
6383   # Broken: success on invalid input.
6384 continue
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389   # Passes both tests.
6390 ac_preproc_ok=:
6391 break
6392 fi
6393
6394 rm -f conftest.err conftest.$ac_ext
6395
6396 done
6397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6398 rm -f conftest.err conftest.$ac_ext
6399 if $ac_preproc_ok; then
6400   :
6401 else
6402   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6403 See \`config.log' for more details." >&5
6404 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6405 See \`config.log' for more details." >&2;}
6406    { (exit 1); exit 1; }; }
6407 fi
6408
6409 ac_ext=cpp
6410 ac_cpp='$CXXCPP $CPPFLAGS'
6411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6414
6415 fi
6416
6417
6418
6419
6420
6421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6422 # find the maximum length of command line arguments
6423 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6424 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428     i=0
6429   teststring="ABCD"
6430
6431   case $build_os in
6432   msdosdjgpp*)
6433     # On DJGPP, this test can blow up pretty badly due to problems in libc
6434     # (any single argument exceeding 2000 bytes causes a buffer overrun
6435     # during glob expansion).  Even if it were fixed, the result of this
6436     # check would be larger than it should be.
6437     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6438     ;;
6439
6440   gnu*)
6441     # Under GNU Hurd, this test is not required because there is
6442     # no limit to the length of command line arguments.
6443     # Libtool will interpret -1 as no limit whatsoever
6444     lt_cv_sys_max_cmd_len=-1;
6445     ;;
6446
6447   cygwin* | mingw*)
6448     # On Win9x/ME, this test blows up -- it succeeds, but takes
6449     # about 5 minutes as the teststring grows exponentially.
6450     # Worse, since 9x/ME are not pre-emptively multitasking,
6451     # you end up with a "frozen" computer, even though with patience
6452     # the test eventually succeeds (with a max line length of 256k).
6453     # Instead, let's just punt: use the minimum linelength reported by
6454     # all of the supported platforms: 8192 (on NT/2K/XP).
6455     lt_cv_sys_max_cmd_len=8192;
6456     ;;
6457
6458   amigaos*)
6459     # On AmigaOS with pdksh, this test takes hours, literally.
6460     # So we just punt and use a minimum line length of 8192.
6461     lt_cv_sys_max_cmd_len=8192;
6462     ;;
6463
6464   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6465     # This has been around since 386BSD, at least.  Likely further.
6466     if test -x /sbin/sysctl; then
6467       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6468     elif test -x /usr/sbin/sysctl; then
6469       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6470     else
6471       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6472     fi
6473     # And add a safety zone
6474     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6475     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6476     ;;
6477
6478   interix*)
6479     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6480     lt_cv_sys_max_cmd_len=196608
6481     ;;
6482
6483   osf*)
6484     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6485     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6486     # nice to cause kernel panics so lets avoid the loop below.
6487     # First set a reasonable default.
6488     lt_cv_sys_max_cmd_len=16384
6489     #
6490     if test -x /sbin/sysconfig; then
6491       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6492         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6493       esac
6494     fi
6495     ;;
6496   sco3.2v5*)
6497     lt_cv_sys_max_cmd_len=102400
6498     ;;
6499   sysv5* | sco5v6* | sysv4.2uw2*)
6500     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6501     if test -n "$kargmax"; then
6502       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6503     else
6504       lt_cv_sys_max_cmd_len=32768
6505     fi
6506     ;;
6507   *)
6508     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6509     if test -n "$lt_cv_sys_max_cmd_len"; then
6510       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6511       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6512     else
6513       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6514       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6515                = "XX$teststring") >/dev/null 2>&1 &&
6516               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6517               lt_cv_sys_max_cmd_len=$new_result &&
6518               test $i != 17 # 1/2 MB should be enough
6519       do
6520         i=`expr $i + 1`
6521         teststring=$teststring$teststring
6522       done
6523       teststring=
6524       # Add a significant safety factor because C++ compilers can tack on massive
6525       # amounts of additional arguments before passing them to the linker.
6526       # It appears as though 1/2 is a usable value.
6527       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6528     fi
6529     ;;
6530   esac
6531
6532 fi
6533
6534 if test -n $lt_cv_sys_max_cmd_len ; then
6535   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6536 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6537 else
6538   { echo "$as_me:$LINENO: result: none" >&5
6539 echo "${ECHO_T}none" >&6; }
6540 fi
6541
6542
6543
6544
6545
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6548 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6555
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6558
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6561
6562 # Transform an extracted symbol line into a proper C declaration
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6564
6565 # Transform an extracted symbol line into symbol name and symbol address
6566 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'"
6567
6568 # Define system-specific variables.
6569 case $host_os in
6570 aix*)
6571   symcode='[BCDT]'
6572   ;;
6573 cygwin* | mingw* | pw32*)
6574   symcode='[ABCDGISTW]'
6575   ;;
6576 hpux*) # Its linker distinguishes data from code symbols
6577   if test "$host_cpu" = ia64; then
6578     symcode='[ABCDEGRST]'
6579   fi
6580   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6581   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'"
6582   ;;
6583 linux* | k*bsd*-gnu)
6584   if test "$host_cpu" = ia64; then
6585     symcode='[ABCDGIRSTW]'
6586     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587     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'"
6588   fi
6589   ;;
6590 irix* | nonstopux*)
6591   symcode='[BCDEGRST]'
6592   ;;
6593 osf*)
6594   symcode='[BCDEGQRST]'
6595   ;;
6596 solaris*)
6597   symcode='[BDRT]'
6598   ;;
6599 sco3.2v5*)
6600   symcode='[DT]'
6601   ;;
6602 sysv4.2uw2*)
6603   symcode='[DT]'
6604   ;;
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6606   symcode='[ABDT]'
6607   ;;
6608 sysv4)
6609   symcode='[DFNSTU]'
6610   ;;
6611 esac
6612
6613 # Handle CRLF in mingw tool chain
6614 opt_cr=
6615 case $build_os in
6616 mingw*)
6617   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618   ;;
6619 esac
6620
6621 # If we're using GNU nm, then use its standard symbol codes.
6622 case `$NM -V 2>&1` in
6623 *GNU* | *'with BFD'*)
6624   symcode='[ABCDGIRSTW]' ;;
6625 esac
6626
6627 # Try without a prefix undercore, then with it.
6628 for ac_symprfx in "" "_"; do
6629
6630   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6631   symxfrm="\\1 $ac_symprfx\\2 \\2"
6632
6633   # Write the raw and C identifiers.
6634   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6635
6636   # Check to see that the pipe works correctly.
6637   pipe_works=no
6638
6639   rm -f conftest*
6640   cat > conftest.$ac_ext <<EOF
6641 #ifdef __cplusplus
6642 extern "C" {
6643 #endif
6644 char nm_test_var;
6645 void nm_test_func(){}
6646 #ifdef __cplusplus
6647 }
6648 #endif
6649 int main(){nm_test_var='a';nm_test_func();return(0);}
6650 EOF
6651
6652   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653   (eval $ac_compile) 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }; then
6657     # Now try to grab the symbols.
6658     nlist=conftest.nm
6659     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6660   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); } && test -s "$nlist"; then
6664       # Try sorting and uniquifying the output.
6665       if sort "$nlist" | uniq > "$nlist"T; then
6666         mv -f "$nlist"T "$nlist"
6667       else
6668         rm -f "$nlist"T
6669       fi
6670
6671       # Make sure that we snagged all the symbols we need.
6672       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6673         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6674           cat <<EOF > conftest.$ac_ext
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6678
6679 EOF
6680           # Now generate the symbol file.
6681           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6682
6683           cat <<EOF >> conftest.$ac_ext
6684 #if defined (__STDC__) && __STDC__
6685 # define lt_ptr_t void *
6686 #else
6687 # define lt_ptr_t char *
6688 # define const
6689 #endif
6690
6691 /* The mapping between symbol names and symbols. */
6692 const struct {
6693   const char *name;
6694   lt_ptr_t address;
6695 }
6696 lt_preloaded_symbols[] =
6697 {
6698 EOF
6699           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6700           cat <<\EOF >> conftest.$ac_ext
6701   {0, (lt_ptr_t) 0}
6702 };
6703
6704 #ifdef __cplusplus
6705 }
6706 #endif
6707 EOF
6708           # Now try linking the two files.
6709           mv conftest.$ac_objext conftstm.$ac_objext
6710           lt_save_LIBS="$LIBS"
6711           lt_save_CFLAGS="$CFLAGS"
6712           LIBS="conftstm.$ac_objext"
6713           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6714           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715   (eval $ac_link) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6719             pipe_works=yes
6720           fi
6721           LIBS="$lt_save_LIBS"
6722           CFLAGS="$lt_save_CFLAGS"
6723         else
6724           echo "cannot find nm_test_func in $nlist" >&5
6725         fi
6726       else
6727         echo "cannot find nm_test_var in $nlist" >&5
6728       fi
6729     else
6730       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6731     fi
6732   else
6733     echo "$progname: failed program was:" >&5
6734     cat conftest.$ac_ext >&5
6735   fi
6736   rm -rf conftest* conftst*
6737
6738   # Do not use the global_symbol_pipe unless it works.
6739   if test "$pipe_works" = yes; then
6740     break
6741   else
6742     lt_cv_sys_global_symbol_pipe=
6743   fi
6744 done
6745
6746 fi
6747
6748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6749   lt_cv_sys_global_symbol_to_cdecl=
6750 fi
6751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6752   { echo "$as_me:$LINENO: result: failed" >&5
6753 echo "${ECHO_T}failed" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: ok" >&5
6756 echo "${ECHO_T}ok" >&6; }
6757 fi
6758
6759 { echo "$as_me:$LINENO: checking for objdir" >&5
6760 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6761 if test "${lt_cv_objdir+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   rm -f .libs 2>/dev/null
6765 mkdir .libs 2>/dev/null
6766 if test -d .libs; then
6767   lt_cv_objdir=.libs
6768 else
6769   # MS-DOS does not allow filenames that begin with a dot.
6770   lt_cv_objdir=_libs
6771 fi
6772 rmdir .libs 2>/dev/null
6773 fi
6774 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6775 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6776 objdir=$lt_cv_objdir
6777
6778
6779
6780
6781
6782 case $host_os in
6783 aix3*)
6784   # AIX sometimes has problems with the GCC collect2 program.  For some
6785   # reason, if we set the COLLECT_NAMES environment variable, the problems
6786   # vanish in a puff of smoke.
6787   if test "X${COLLECT_NAMES+set}" != Xset; then
6788     COLLECT_NAMES=
6789     export COLLECT_NAMES
6790   fi
6791   ;;
6792 esac
6793
6794 # Sed substitution that helps us do robust quoting.  It backslashifies
6795 # metacharacters that are still active within double-quoted strings.
6796 Xsed='sed -e 1s/^X//'
6797 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6798
6799 # Same as above, but do not quote variable references.
6800 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6801
6802 # Sed substitution to delay expansion of an escaped shell variable in a
6803 # double_quote_subst'ed string.
6804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6805
6806 # Sed substitution to avoid accidental globbing in evaled expressions
6807 no_glob_subst='s/\*/\\\*/g'
6808
6809 # Constants:
6810 rm="rm -f"
6811
6812 # Global variables:
6813 default_ofile=libtool
6814 can_build_shared=yes
6815
6816 # All known linkers require a `.a' archive for static linking (except MSVC,
6817 # which needs '.lib').
6818 libext=a
6819 ltmain="$ac_aux_dir/ltmain.sh"
6820 ofile="$default_ofile"
6821 with_gnu_ld="$lt_cv_prog_gnu_ld"
6822
6823 if test -n "$ac_tool_prefix"; then
6824   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}ar; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_prog_AR+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   if test -n "$AR"; then
6832   ac_cv_prog_AR="$AR" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_prog_AR="${ac_tool_prefix}ar"
6842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 AR=$ac_cv_prog_AR
6852 if test -n "$AR"; then
6853   { echo "$as_me:$LINENO: result: $AR" >&5
6854 echo "${ECHO_T}$AR" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861 fi
6862 if test -z "$ac_cv_prog_AR"; then
6863   ac_ct_AR=$AR
6864   # Extract the first word of "ar", so it can be a program name with args.
6865 set dummy ar; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   if test -n "$ac_ct_AR"; then
6872   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_prog_ac_ct_AR="ar"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6892 if test -n "$ac_ct_AR"; then
6893   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6894 echo "${ECHO_T}$ac_ct_AR" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900   if test "x$ac_ct_AR" = x; then
6901     AR="false"
6902   else
6903     case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6906 whose name does not start with the host triplet.  If you think this
6907 configuration is useful to you, please write to autoconf@gnu.org." >&5
6908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6909 whose name does not start with the host triplet.  If you think this
6910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6911 ac_tool_warned=yes ;;
6912 esac
6913     AR=$ac_ct_AR
6914   fi
6915 else
6916   AR="$ac_cv_prog_AR"
6917 fi
6918
6919 if test -n "$ac_tool_prefix"; then
6920   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_prog_RANLIB+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   if test -n "$RANLIB"; then
6928   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935   for ac_exec_ext in '' $ac_executable_extensions; do
6936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6950 echo "${ECHO_T}$RANLIB" >&6; }
6951 else
6952   { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6954 fi
6955
6956
6957 fi
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959   ac_ct_RANLIB=$RANLIB
6960   # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   if test -n "$ac_ct_RANLIB"; then
6968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_prog_ac_ct_RANLIB="ranlib"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6990 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6991 else
6992   { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6994 fi
6995
6996   if test "x$ac_ct_RANLIB" = x; then
6997     RANLIB=":"
6998   else
6999     case $cross_compiling:$ac_tool_warned in
7000 yes:)
7001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7002 whose name does not start with the host triplet.  If you think this
7003 configuration is useful to you, please write to autoconf@gnu.org." >&5
7004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7005 whose name does not start with the host triplet.  If you think this
7006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009     RANLIB=$ac_ct_RANLIB
7010   fi
7011 else
7012   RANLIB="$ac_cv_prog_RANLIB"
7013 fi
7014
7015 if test -n "$ac_tool_prefix"; then
7016   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}strip; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_prog_STRIP+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   if test -n "$STRIP"; then
7024   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031   for ac_exec_ext in '' $ac_executable_extensions; do
7032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035     break 2
7036   fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 STRIP=$ac_cv_prog_STRIP
7044 if test -n "$STRIP"; then
7045   { echo "$as_me:$LINENO: result: $STRIP" >&5
7046 echo "${ECHO_T}$STRIP" >&6; }
7047 else
7048   { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7050 fi
7051
7052
7053 fi
7054 if test -z "$ac_cv_prog_STRIP"; then
7055   ac_ct_STRIP=$STRIP
7056   # Extract the first word of "strip", so it can be a program name with args.
7057 set dummy strip; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   if test -n "$ac_ct_STRIP"; then
7064   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071   for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_ac_ct_STRIP="strip"
7074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7084 if test -n "$ac_ct_STRIP"; then
7085   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7086 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7091
7092   if test "x$ac_ct_STRIP" = x; then
7093     STRIP=":"
7094   else
7095     case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7098 whose name does not start with the host triplet.  If you think this
7099 configuration is useful to you, please write to autoconf@gnu.org." >&5
7100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet.  If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     STRIP=$ac_ct_STRIP
7106   fi
7107 else
7108   STRIP="$ac_cv_prog_STRIP"
7109 fi
7110
7111
7112 old_CC="$CC"
7113 old_CFLAGS="$CFLAGS"
7114
7115 # Set sane defaults for various variables
7116 test -z "$AR" && AR=ar
7117 test -z "$AR_FLAGS" && AR_FLAGS=cru
7118 test -z "$AS" && AS=as
7119 test -z "$CC" && CC=cc
7120 test -z "$LTCC" && LTCC=$CC
7121 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7122 test -z "$DLLTOOL" && DLLTOOL=dlltool
7123 test -z "$LD" && LD=ld
7124 test -z "$LN_S" && LN_S="ln -s"
7125 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7126 test -z "$NM" && NM=nm
7127 test -z "$SED" && SED=sed
7128 test -z "$OBJDUMP" && OBJDUMP=objdump
7129 test -z "$RANLIB" && RANLIB=:
7130 test -z "$STRIP" && STRIP=:
7131 test -z "$ac_objext" && ac_objext=o
7132
7133 # Determine commands to create old-style static archives.
7134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7135 old_postinstall_cmds='chmod 644 $oldlib'
7136 old_postuninstall_cmds=
7137
7138 if test -n "$RANLIB"; then
7139   case $host_os in
7140   openbsd*)
7141     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7142     ;;
7143   *)
7144     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7145     ;;
7146   esac
7147   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7148 fi
7149
7150 for cc_temp in $compiler""; do
7151   case $cc_temp in
7152     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7153     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7154     \-*) ;;
7155     *) break;;
7156   esac
7157 done
7158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7159
7160
7161 # Only perform the check for file, if the check method requires it
7162 case $deplibs_check_method in
7163 file_magic*)
7164   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7165     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7166 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $MAGIC_CMD in
7171 [\\/*] |  ?:[\\/]*)
7172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7173   ;;
7174 *)
7175   lt_save_MAGIC_CMD="$MAGIC_CMD"
7176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7177   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7178   for ac_dir in $ac_dummy; do
7179     IFS="$lt_save_ifs"
7180     test -z "$ac_dir" && ac_dir=.
7181     if test -f $ac_dir/${ac_tool_prefix}file; then
7182       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7183       if test -n "$file_magic_test_file"; then
7184         case $deplibs_check_method in
7185         "file_magic "*)
7186           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7189             $EGREP "$file_magic_regex" > /dev/null; then
7190             :
7191           else
7192             cat <<EOF 1>&2
7193
7194 *** Warning: the command libtool uses to detect shared libraries,
7195 *** $file_magic_cmd, produces output that libtool cannot recognize.
7196 *** The result is that libtool may fail to recognize shared libraries
7197 *** as such.  This will affect the creation of libtool libraries that
7198 *** depend on shared libraries, but programs linked with such libtool
7199 *** libraries will work regardless of this problem.  Nevertheless, you
7200 *** may want to report the problem to your system manager and/or to
7201 *** bug-libtool@gnu.org
7202
7203 EOF
7204           fi ;;
7205         esac
7206       fi
7207       break
7208     fi
7209   done
7210   IFS="$lt_save_ifs"
7211   MAGIC_CMD="$lt_save_MAGIC_CMD"
7212   ;;
7213 esac
7214 fi
7215
7216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217 if test -n "$MAGIC_CMD"; then
7218   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7220 else
7221   { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7223 fi
7224
7225 if test -z "$lt_cv_path_MAGIC_CMD"; then
7226   if test -n "$ac_tool_prefix"; then
7227     { echo "$as_me:$LINENO: checking for file" >&5
7228 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $MAGIC_CMD in
7233 [\\/*] |  ?:[\\/]*)
7234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7235   ;;
7236 *)
7237   lt_save_MAGIC_CMD="$MAGIC_CMD"
7238   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7239   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7240   for ac_dir in $ac_dummy; do
7241     IFS="$lt_save_ifs"
7242     test -z "$ac_dir" && ac_dir=.
7243     if test -f $ac_dir/file; then
7244       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7245       if test -n "$file_magic_test_file"; then
7246         case $deplibs_check_method in
7247         "file_magic "*)
7248           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7249           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7251             $EGREP "$file_magic_regex" > /dev/null; then
7252             :
7253           else
7254             cat <<EOF 1>&2
7255
7256 *** Warning: the command libtool uses to detect shared libraries,
7257 *** $file_magic_cmd, produces output that libtool cannot recognize.
7258 *** The result is that libtool may fail to recognize shared libraries
7259 *** as such.  This will affect the creation of libtool libraries that
7260 *** depend on shared libraries, but programs linked with such libtool
7261 *** libraries will work regardless of this problem.  Nevertheless, you
7262 *** may want to report the problem to your system manager and/or to
7263 *** bug-libtool@gnu.org
7264
7265 EOF
7266           fi ;;
7267         esac
7268       fi
7269       break
7270     fi
7271   done
7272   IFS="$lt_save_ifs"
7273   MAGIC_CMD="$lt_save_MAGIC_CMD"
7274   ;;
7275 esac
7276 fi
7277
7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279 if test -n "$MAGIC_CMD"; then
7280   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7281 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7282 else
7283   { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7285 fi
7286
7287   else
7288     MAGIC_CMD=:
7289   fi
7290 fi
7291
7292   fi
7293   ;;
7294 esac
7295
7296
7297   case $host_os in
7298     rhapsody* | darwin*)
7299     if test -n "$ac_tool_prefix"; then
7300   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   if test -n "$DSYMUTIL"; then
7308   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315   for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7330 echo "${ECHO_T}$DSYMUTIL" >&6; }
7331 else
7332   { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339   ac_ct_DSYMUTIL=$DSYMUTIL
7340   # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   if test -n "$ac_ct_DSYMUTIL"; then
7348   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355   for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7370 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7371 else
7372   { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7374 fi
7375
7376   if test "x$ac_ct_DSYMUTIL" = x; then
7377     DSYMUTIL=":"
7378   else
7379     case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7382 whose name does not start with the host triplet.  If you think this
7383 configuration is useful to you, please write to autoconf@gnu.org." >&5
7384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7385 whose name does not start with the host triplet.  If you think this
7386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389     DSYMUTIL=$ac_ct_DSYMUTIL
7390   fi
7391 else
7392   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7393 fi
7394
7395     if test -n "$ac_tool_prefix"; then
7396   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$NMEDIT"; then
7404   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 NMEDIT=$ac_cv_prog_NMEDIT
7424 if test -n "$NMEDIT"; then
7425   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7426 echo "${ECHO_T}$NMEDIT" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432
7433 fi
7434 if test -z "$ac_cv_prog_NMEDIT"; then
7435   ac_ct_NMEDIT=$NMEDIT
7436   # Extract the first word of "nmedit", so it can be a program name with args.
7437 set dummy nmedit; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   if test -n "$ac_ct_NMEDIT"; then
7444   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7464 if test -n "$ac_ct_NMEDIT"; then
7465   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7466 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472   if test "x$ac_ct_NMEDIT" = x; then
7473     NMEDIT=":"
7474   else
7475     case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7478 whose name does not start with the host triplet.  If you think this
7479 configuration is useful to you, please write to autoconf@gnu.org." >&5
7480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7481 whose name does not start with the host triplet.  If you think this
7482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485     NMEDIT=$ac_ct_NMEDIT
7486   fi
7487 else
7488   NMEDIT="$ac_cv_prog_NMEDIT"
7489 fi
7490
7491
7492     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7493 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7494 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   lt_cv_apple_cc_single_mod=no
7498       if test -z "${LT_MULTI_MODULE}"; then
7499    # By default we will add the -single_module flag. You can override
7500    # by either setting the environment variable LT_MULTI_MODULE
7501    # non-empty at configure time, or by adding -multi_module to the
7502    # link flags.
7503    echo "int foo(void){return 1;}" > conftest.c
7504    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505      -dynamiclib ${wl}-single_module conftest.c
7506    if test -f libconftest.dylib; then
7507      lt_cv_apple_cc_single_mod=yes
7508      rm -rf libconftest.dylib*
7509    fi
7510    rm conftest.c
7511       fi
7512 fi
7513 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7514 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7515     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7516 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7517 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   lt_cv_ld_exported_symbols_list=no
7521       save_LDFLAGS=$LDFLAGS
7522       echo "_main" > conftest.sym
7523       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7524       cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530
7531 int
7532 main ()
7533 {
7534
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (ac_try="$ac_link"
7541 case "(($ac_try" in
7542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543   *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546   (eval "$ac_link") 2>conftest.er1
7547   ac_status=$?
7548   grep -v '^ *+' conftest.er1 >conftest.err
7549   rm -f conftest.er1
7550   cat conftest.err >&5
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); } && {
7553          test -z "$ac_c_werror_flag" ||
7554          test ! -s conftest.err
7555        } && test -s conftest$ac_exeext &&
7556        $as_test_x conftest$ac_exeext; then
7557   lt_cv_ld_exported_symbols_list=yes
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562         lt_cv_ld_exported_symbols_list=no
7563 fi
7564
7565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7566       conftest$ac_exeext conftest.$ac_ext
7567    LDFLAGS="$save_LDFLAGS"
7568
7569 fi
7570 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7571 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7572     case $host_os in
7573     rhapsody* | darwin1.[0123])
7574       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7575     darwin1.*)
7576      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577     darwin*)
7578       # if running on 10.5 or later, the deployment target defaults
7579       # to the OS version, if on x86, and 10.4, the deployment
7580       # target defaults to 10.4. Don't you love it?
7581       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7582    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7583      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584    10.[012]*)
7585      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586    10.*)
7587      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7588       esac
7589     ;;
7590   esac
7591     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7592       _lt_dar_single_mod='$single_module'
7593     fi
7594     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7595       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7596     else
7597       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7598     fi
7599     if test "$DSYMUTIL" != ":"; then
7600       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7601     else
7602       _lt_dsymutil=
7603     fi
7604     ;;
7605   esac
7606
7607
7608 enable_dlopen=no
7609 enable_win32_dll=yes
7610
7611 # Check whether --enable-libtool-lock was given.
7612 if test "${enable_libtool_lock+set}" = set; then
7613   enableval=$enable_libtool_lock;
7614 fi
7615
7616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7617
7618
7619 # Check whether --with-pic was given.
7620 if test "${with_pic+set}" = set; then
7621   withval=$with_pic; pic_mode="$withval"
7622 else
7623   pic_mode=default
7624 fi
7625
7626 test -z "$pic_mode" && pic_mode=default
7627
7628 # Use C for the default configuration in the libtool script
7629 tagname=
7630 lt_save_CC="$CC"
7631 ac_ext=c
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636
7637
7638 # Source file extension for C test sources.
7639 ac_ext=c
7640
7641 # Object file extension for compiled C test sources.
7642 objext=o
7643 objext=$objext
7644
7645 # Code to be used in simple compile tests
7646 lt_simple_compile_test_code="int some_variable = 0;"
7647
7648 # Code to be used in simple link tests
7649 lt_simple_link_test_code='int main(){return(0);}'
7650
7651
7652 # If no C compiler was specified, use CC.
7653 LTCC=${LTCC-"$CC"}
7654
7655 # If no C compiler flags were specified, use CFLAGS.
7656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657
7658 # Allow CC to be a program name with arguments.
7659 compiler=$CC
7660
7661
7662 # save warnings/boilerplate of simple test code
7663 ac_outfile=conftest.$ac_objext
7664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7666 _lt_compiler_boilerplate=`cat conftest.err`
7667 $rm conftest*
7668
7669 ac_outfile=conftest.$ac_objext
7670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7672 _lt_linker_boilerplate=`cat conftest.err`
7673 $rm -r conftest*
7674
7675
7676
7677 lt_prog_compiler_no_builtin_flag=
7678
7679 if test "$GCC" = yes; then
7680   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7681
7682
7683 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   lt_cv_prog_compiler_rtti_exceptions=no
7689   ac_outfile=conftest.$ac_objext
7690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7691    lt_compiler_flag="-fno-rtti -fno-exceptions"
7692    # Insert the option either (1) after the last *FLAGS variable, or
7693    # (2) before a word containing "conftest.", or (3) at the end.
7694    # Note that $ac_compile itself does not contain backslashes and begins
7695    # with a dollar sign (not a hyphen), so the echo should work correctly.
7696    # The option is referenced via a variable to avoid confusing sed.
7697    lt_compile=`echo "$ac_compile" | $SED \
7698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700    -e 's:$: $lt_compiler_flag:'`
7701    (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
7702    (eval "$lt_compile" 2>conftest.err)
7703    ac_status=$?
7704    cat conftest.err >&5
7705    echo "$as_me:7705: \$? = $ac_status" >&5
7706    if (exit $ac_status) && test -s "$ac_outfile"; then
7707      # The compiler can only warn and ignore the option if not recognized
7708      # So say no if there are warnings other than the usual output.
7709      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7712        lt_cv_prog_compiler_rtti_exceptions=yes
7713      fi
7714    fi
7715    $rm conftest*
7716
7717 fi
7718 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7720
7721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7722     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7723 else
7724     :
7725 fi
7726
7727 fi
7728
7729 lt_prog_compiler_wl=
7730 lt_prog_compiler_pic=
7731 lt_prog_compiler_static=
7732
7733 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7735
7736   if test "$GCC" = yes; then
7737     lt_prog_compiler_wl='-Wl,'
7738     lt_prog_compiler_static='-static'
7739
7740     case $host_os in
7741       aix*)
7742       # All AIX code is PIC.
7743       if test "$host_cpu" = ia64; then
7744         # AIX 5 now supports IA64 processor
7745         lt_prog_compiler_static='-Bstatic'
7746       fi
7747       ;;
7748
7749     amigaos*)
7750       # FIXME: we need at least 68020 code to build shared libraries, but
7751       # adding the `-m68020' flag to GCC prevents building anything better,
7752       # like `-m68040'.
7753       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7754       ;;
7755
7756     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7757       # PIC is the default for these OSes.
7758       ;;
7759
7760     mingw* | cygwin* | pw32* | os2*)
7761       # This hack is so that the source file can tell whether it is being
7762       # built for inclusion in a dll (and should export symbols for example).
7763       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7764       # (--disable-auto-import) libraries
7765       lt_prog_compiler_pic='-DDLL_EXPORT'
7766       ;;
7767
7768     darwin* | rhapsody*)
7769       # PIC is the default on this platform
7770       # Common symbols not allowed in MH_DYLIB files
7771       lt_prog_compiler_pic='-fno-common'
7772       ;;
7773
7774     interix[3-9]*)
7775       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7776       # Instead, we relocate shared libraries at runtime.
7777       ;;
7778
7779     msdosdjgpp*)
7780       # Just because we use GCC doesn't mean we suddenly get shared libraries
7781       # on systems that don't support them.
7782       lt_prog_compiler_can_build_shared=no
7783       enable_shared=no
7784       ;;
7785
7786     sysv4*MP*)
7787       if test -d /usr/nec; then
7788         lt_prog_compiler_pic=-Kconform_pic
7789       fi
7790       ;;
7791
7792     hpux*)
7793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7794       # not for PA HP-UX.
7795       case $host_cpu in
7796       hppa*64*|ia64*)
7797         # +Z the default
7798         ;;
7799       *)
7800         lt_prog_compiler_pic='-fPIC'
7801         ;;
7802       esac
7803       ;;
7804
7805     *)
7806       lt_prog_compiler_pic='-fPIC'
7807       ;;
7808     esac
7809   else
7810     # PORTME Check for flag to pass linker flags through the system compiler.
7811     case $host_os in
7812     aix*)
7813       lt_prog_compiler_wl='-Wl,'
7814       if test "$host_cpu" = ia64; then
7815         # AIX 5 now supports IA64 processor
7816         lt_prog_compiler_static='-Bstatic'
7817       else
7818         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7819       fi
7820       ;;
7821       darwin*)
7822         # PIC is the default on this platform
7823         # Common symbols not allowed in MH_DYLIB files
7824        case $cc_basename in
7825          xlc*)
7826          lt_prog_compiler_pic='-qnocommon'
7827          lt_prog_compiler_wl='-Wl,'
7828          ;;
7829        esac
7830        ;;
7831
7832     mingw* | cygwin* | pw32* | os2*)
7833       # This hack is so that the source file can tell whether it is being
7834       # built for inclusion in a dll (and should export symbols for example).
7835       lt_prog_compiler_pic='-DDLL_EXPORT'
7836       ;;
7837
7838     hpux9* | hpux10* | hpux11*)
7839       lt_prog_compiler_wl='-Wl,'
7840       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7841       # not for PA HP-UX.
7842       case $host_cpu in
7843       hppa*64*|ia64*)
7844         # +Z the default
7845         ;;
7846       *)
7847         lt_prog_compiler_pic='+Z'
7848         ;;
7849       esac
7850       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7851       lt_prog_compiler_static='${wl}-a ${wl}archive'
7852       ;;
7853
7854     irix5* | irix6* | nonstopux*)
7855       lt_prog_compiler_wl='-Wl,'
7856       # PIC (with -KPIC) is the default.
7857       lt_prog_compiler_static='-non_shared'
7858       ;;
7859
7860     newsos6)
7861       lt_prog_compiler_pic='-KPIC'
7862       lt_prog_compiler_static='-Bstatic'
7863       ;;
7864
7865     linux* | k*bsd*-gnu)
7866       case $cc_basename in
7867       icc* | ecc*)
7868         lt_prog_compiler_wl='-Wl,'
7869         lt_prog_compiler_pic='-KPIC'
7870         lt_prog_compiler_static='-static'
7871         ;;
7872       pgcc* | pgf77* | pgf90* | pgf95*)
7873         # Portland Group compilers (*not* the Pentium gcc compiler,
7874         # which looks to be a dead project)
7875         lt_prog_compiler_wl='-Wl,'
7876         lt_prog_compiler_pic='-fpic'
7877         lt_prog_compiler_static='-Bstatic'
7878         ;;
7879       ccc*)
7880         lt_prog_compiler_wl='-Wl,'
7881         # All Alpha code is PIC.
7882         lt_prog_compiler_static='-non_shared'
7883         ;;
7884       *)
7885         case `$CC -V 2>&1 | sed 5q` in
7886         *Sun\ C*)
7887           # Sun C 5.9
7888           lt_prog_compiler_pic='-KPIC'
7889           lt_prog_compiler_static='-Bstatic'
7890           lt_prog_compiler_wl='-Wl,'
7891           ;;
7892         *Sun\ F*)
7893           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7894           lt_prog_compiler_pic='-KPIC'
7895           lt_prog_compiler_static='-Bstatic'
7896           lt_prog_compiler_wl=''
7897           ;;
7898         esac
7899         ;;
7900       esac
7901       ;;
7902
7903     osf3* | osf4* | osf5*)
7904       lt_prog_compiler_wl='-Wl,'
7905       # All OSF/1 code is PIC.
7906       lt_prog_compiler_static='-non_shared'
7907       ;;
7908
7909     rdos*)
7910       lt_prog_compiler_static='-non_shared'
7911       ;;
7912
7913     solaris*)
7914       lt_prog_compiler_pic='-KPIC'
7915       lt_prog_compiler_static='-Bstatic'
7916       case $cc_basename in
7917       f77* | f90* | f95*)
7918         lt_prog_compiler_wl='-Qoption ld ';;
7919       *)
7920         lt_prog_compiler_wl='-Wl,';;
7921       esac
7922       ;;
7923
7924     sunos4*)
7925       lt_prog_compiler_wl='-Qoption ld '
7926       lt_prog_compiler_pic='-PIC'
7927       lt_prog_compiler_static='-Bstatic'
7928       ;;
7929
7930     sysv4 | sysv4.2uw2* | sysv4.3*)
7931       lt_prog_compiler_wl='-Wl,'
7932       lt_prog_compiler_pic='-KPIC'
7933       lt_prog_compiler_static='-Bstatic'
7934       ;;
7935
7936     sysv4*MP*)
7937       if test -d /usr/nec ;then
7938         lt_prog_compiler_pic='-Kconform_pic'
7939         lt_prog_compiler_static='-Bstatic'
7940       fi
7941       ;;
7942
7943     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7944       lt_prog_compiler_wl='-Wl,'
7945       lt_prog_compiler_pic='-KPIC'
7946       lt_prog_compiler_static='-Bstatic'
7947       ;;
7948
7949     unicos*)
7950       lt_prog_compiler_wl='-Wl,'
7951       lt_prog_compiler_can_build_shared=no
7952       ;;
7953
7954     uts4*)
7955       lt_prog_compiler_pic='-pic'
7956       lt_prog_compiler_static='-Bstatic'
7957       ;;
7958
7959     *)
7960       lt_prog_compiler_can_build_shared=no
7961       ;;
7962     esac
7963   fi
7964
7965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7966 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7967
7968 #
7969 # Check to make sure the PIC flag actually works.
7970 #
7971 if test -n "$lt_prog_compiler_pic"; then
7972
7973 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7974 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7975 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   lt_cv_prog_compiler_pic_works=no
7979   ac_outfile=conftest.$ac_objext
7980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7982    # Insert the option either (1) after the last *FLAGS variable, or
7983    # (2) before a word containing "conftest.", or (3) at the end.
7984    # Note that $ac_compile itself does not contain backslashes and begins
7985    # with a dollar sign (not a hyphen), so the echo should work correctly.
7986    # The option is referenced via a variable to avoid confusing sed.
7987    lt_compile=`echo "$ac_compile" | $SED \
7988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990    -e 's:$: $lt_compiler_flag:'`
7991    (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7992    (eval "$lt_compile" 2>conftest.err)
7993    ac_status=$?
7994    cat conftest.err >&5
7995    echo "$as_me:7995: \$? = $ac_status" >&5
7996    if (exit $ac_status) && test -s "$ac_outfile"; then
7997      # The compiler can only warn and ignore the option if not recognized
7998      # So say no if there are warnings other than the usual output.
7999      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8000      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8002        lt_cv_prog_compiler_pic_works=yes
8003      fi
8004    fi
8005    $rm conftest*
8006
8007 fi
8008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8009 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8010
8011 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8012     case $lt_prog_compiler_pic in
8013      "" | " "*) ;;
8014      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8015      esac
8016 else
8017     lt_prog_compiler_pic=
8018      lt_prog_compiler_can_build_shared=no
8019 fi
8020
8021 fi
8022 case $host_os in
8023   # For platforms which do not support PIC, -DPIC is meaningless:
8024   *djgpp*)
8025     lt_prog_compiler_pic=
8026     ;;
8027   *)
8028     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8029     ;;
8030 esac
8031
8032 #
8033 # Check to make sure the static flag actually works.
8034 #
8035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8036 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8037 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8038 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   lt_cv_prog_compiler_static_works=no
8042    save_LDFLAGS="$LDFLAGS"
8043    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8044    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8045    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8046      # The linker can only warn and ignore the option if not recognized
8047      # So say no if there are warnings
8048      if test -s conftest.err; then
8049        # Append any errors to the config.log.
8050        cat conftest.err 1>&5
8051        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8052        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8053        if diff conftest.exp conftest.er2 >/dev/null; then
8054          lt_cv_prog_compiler_static_works=yes
8055        fi
8056      else
8057        lt_cv_prog_compiler_static_works=yes
8058      fi
8059    fi
8060    $rm -r conftest*
8061    LDFLAGS="$save_LDFLAGS"
8062
8063 fi
8064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8065 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8066
8067 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8068     :
8069 else
8070     lt_prog_compiler_static=
8071 fi
8072
8073
8074 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8076 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   lt_cv_prog_compiler_c_o=no
8080    $rm -r conftest 2>/dev/null
8081    mkdir conftest
8082    cd conftest
8083    mkdir out
8084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085
8086    lt_compiler_flag="-o out/conftest2.$ac_objext"
8087    # Insert the option either (1) after the last *FLAGS variable, or
8088    # (2) before a word containing "conftest.", or (3) at the end.
8089    # Note that $ac_compile itself does not contain backslashes and begins
8090    # with a dollar sign (not a hyphen), so the echo should work correctly.
8091    lt_compile=`echo "$ac_compile" | $SED \
8092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094    -e 's:$: $lt_compiler_flag:'`
8095    (eval echo "\"\$as_me:8095: $lt_compile\"" >&5)
8096    (eval "$lt_compile" 2>out/conftest.err)
8097    ac_status=$?
8098    cat out/conftest.err >&5
8099    echo "$as_me:8099: \$? = $ac_status" >&5
8100    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8101    then
8102      # The compiler can only warn and ignore the option if not recognized
8103      # So say no if there are warnings
8104      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8105      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8106      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8107        lt_cv_prog_compiler_c_o=yes
8108      fi
8109    fi
8110    chmod u+w . 2>&5
8111    $rm conftest*
8112    # SGI C++ compiler will create directory out/ii_files/ for
8113    # template instantiation
8114    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8115    $rm out/* && rmdir out
8116    cd ..
8117    rmdir conftest
8118    $rm conftest*
8119
8120 fi
8121 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8123
8124
8125 hard_links="nottested"
8126 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8127   # do not overwrite the value of need_locks provided by the user
8128   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8130   hard_links=yes
8131   $rm conftest*
8132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8133   touch conftest.a
8134   ln conftest.a conftest.b 2>&5 || hard_links=no
8135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8136   { echo "$as_me:$LINENO: result: $hard_links" >&5
8137 echo "${ECHO_T}$hard_links" >&6; }
8138   if test "$hard_links" = no; then
8139     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8141     need_locks=warn
8142   fi
8143 else
8144   need_locks=no
8145 fi
8146
8147 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8149
8150   runpath_var=
8151   allow_undefined_flag=
8152   enable_shared_with_static_runtimes=no
8153   archive_cmds=
8154   archive_expsym_cmds=
8155   old_archive_From_new_cmds=
8156   old_archive_from_expsyms_cmds=
8157   export_dynamic_flag_spec=
8158   whole_archive_flag_spec=
8159   thread_safe_flag_spec=
8160   hardcode_libdir_flag_spec=
8161   hardcode_libdir_flag_spec_ld=
8162   hardcode_libdir_separator=
8163   hardcode_direct=no
8164   hardcode_minus_L=no
8165   hardcode_shlibpath_var=unsupported
8166   link_all_deplibs=unknown
8167   hardcode_automatic=no
8168   module_cmds=
8169   module_expsym_cmds=
8170   always_export_symbols=no
8171   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8172   # include_expsyms should be a list of space-separated symbols to be *always*
8173   # included in the symbol list
8174   include_expsyms=
8175   # exclude_expsyms can be an extended regexp of symbols to exclude
8176   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8177   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8178   # as well as any symbol that contains `d'.
8179   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8180   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8181   # platforms (ab)use it in PIC code, but their linkers get confused if
8182   # the symbol is explicitly referenced.  Since portable code cannot
8183   # rely on this symbol name, it's probably fine to never include it in
8184   # preloaded symbol tables.
8185   # Exclude shared library initialization/finalization symbols.
8186   extract_expsyms_cmds=
8187   # Just being paranoid about ensuring that cc_basename is set.
8188   for cc_temp in $compiler""; do
8189   case $cc_temp in
8190     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8191     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8192     \-*) ;;
8193     *) break;;
8194   esac
8195 done
8196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8197
8198   case $host_os in
8199   cygwin* | mingw* | pw32*)
8200     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8201     # When not using gcc, we currently assume that we are using
8202     # Microsoft Visual C++.
8203     if test "$GCC" != yes; then
8204       with_gnu_ld=no
8205     fi
8206     ;;
8207   interix*)
8208     # we just hope/assume this is gcc and not c89 (= MSVC++)
8209     with_gnu_ld=yes
8210     ;;
8211   openbsd*)
8212     with_gnu_ld=no
8213     ;;
8214   esac
8215
8216   ld_shlibs=yes
8217   if test "$with_gnu_ld" = yes; then
8218     # If archive_cmds runs LD, not CC, wlarc should be empty
8219     wlarc='${wl}'
8220
8221     # Set some defaults for GNU ld with shared library support. These
8222     # are reset later if shared libraries are not supported. Putting them
8223     # here allows them to be overridden if necessary.
8224     runpath_var=LD_RUN_PATH
8225     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8226     export_dynamic_flag_spec='${wl}--export-dynamic'
8227     # ancient GNU ld didn't support --whole-archive et. al.
8228     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8229         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8230       else
8231         whole_archive_flag_spec=
8232     fi
8233     supports_anon_versioning=no
8234     case `$LD -v 2>/dev/null` in
8235       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8236       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8237       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8238       *\ 2.11.*) ;; # other 2.11 versions
8239       *) supports_anon_versioning=yes ;;
8240     esac
8241
8242     # See if GNU ld supports shared libraries.
8243     case $host_os in
8244     aix[3-9]*)
8245       # On AIX/PPC, the GNU linker is very broken
8246       if test "$host_cpu" != ia64; then
8247         ld_shlibs=no
8248         cat <<EOF 1>&2
8249
8250 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8251 *** to be unable to reliably create shared libraries on AIX.
8252 *** Therefore, libtool is disabling shared libraries support.  If you
8253 *** really care for shared libraries, you may want to modify your PATH
8254 *** so that a non-GNU linker is found, and then restart.
8255
8256 EOF
8257       fi
8258       ;;
8259
8260     amigaos*)
8261       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)'
8262       hardcode_libdir_flag_spec='-L$libdir'
8263       hardcode_minus_L=yes
8264
8265       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8266       # that the semantics of dynamic libraries on AmigaOS, at least up
8267       # to version 4, is to share data among multiple programs linked
8268       # with the same dynamic library.  Since this doesn't match the
8269       # behavior of shared libraries on other platforms, we can't use
8270       # them.
8271       ld_shlibs=no
8272       ;;
8273
8274     beos*)
8275       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276         allow_undefined_flag=unsupported
8277         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8278         # support --undefined.  This deserves some investigation.  FIXME
8279         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280       else
8281         ld_shlibs=no
8282       fi
8283       ;;
8284
8285     cygwin* | mingw* | pw32*)
8286       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8287       # as there is no search path for DLLs.
8288       hardcode_libdir_flag_spec='-L$libdir'
8289       allow_undefined_flag=unsupported
8290       always_export_symbols=no
8291       enable_shared_with_static_runtimes=yes
8292       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8293
8294       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8296         # If the export-symbols file already is a .def file (1st line
8297         # is EXPORTS), use it as is; otherwise, prepend...
8298         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8299           cp $export_symbols $output_objdir/$soname.def;
8300         else
8301           echo EXPORTS > $output_objdir/$soname.def;
8302           cat $export_symbols >> $output_objdir/$soname.def;
8303         fi~
8304         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8305       else
8306         ld_shlibs=no
8307       fi
8308       ;;
8309
8310     interix[3-9]*)
8311       hardcode_direct=no
8312       hardcode_shlibpath_var=no
8313       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8314       export_dynamic_flag_spec='${wl}-E'
8315       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8316       # Instead, shared libraries are loaded at an image base (0x10000000 by
8317       # default) and relocated if they conflict, which is a slow very memory
8318       # consuming and fragmenting process.  To avoid this, we pick a random,
8319       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8320       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8321       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8322       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'
8323       ;;
8324
8325     gnu* | linux* | k*bsd*-gnu)
8326       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8327         tmp_addflag=
8328         case $cc_basename,$host_cpu in
8329         pgcc*)                          # Portland Group C compiler
8330           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'
8331           tmp_addflag=' $pic_flag'
8332           ;;
8333         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8334           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'
8335           tmp_addflag=' $pic_flag -Mnomain' ;;
8336         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8337           tmp_addflag=' -i_dynamic' ;;
8338         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8339           tmp_addflag=' -i_dynamic -nofor_main' ;;
8340         ifc* | ifort*)                  # Intel Fortran compiler
8341           tmp_addflag=' -nofor_main' ;;
8342         esac
8343         case `$CC -V 2>&1 | sed 5q` in
8344         *Sun\ C*)                       # Sun C 5.9
8345           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8346           tmp_sharedflag='-G' ;;
8347         *Sun\ F*)                       # Sun Fortran 8.3
8348           tmp_sharedflag='-G' ;;
8349         *)
8350           tmp_sharedflag='-shared' ;;
8351         esac
8352         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353
8354         if test $supports_anon_versioning = yes; then
8355           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8356   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8357   $echo "local: *; };" >> $output_objdir/$libname.ver~
8358           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8359         fi
8360         link_all_deplibs=no
8361       else
8362         ld_shlibs=no
8363       fi
8364       ;;
8365
8366     netbsd* | netbsdelf*-gnu)
8367       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8368         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8369         wlarc=
8370       else
8371         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373       fi
8374       ;;
8375
8376     solaris*)
8377       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8378         ld_shlibs=no
8379         cat <<EOF 1>&2
8380
8381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8382 *** create shared libraries on Solaris systems.  Therefore, libtool
8383 *** is disabling shared libraries support.  We urge you to upgrade GNU
8384 *** binutils to release 2.9.1 or newer.  Another option is to modify
8385 *** your PATH or compiler configuration so that the native linker is
8386 *** used, and then restart.
8387
8388 EOF
8389       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392       else
8393         ld_shlibs=no
8394       fi
8395       ;;
8396
8397     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8398       case `$LD -v 2>&1` in
8399         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8400         ld_shlibs=no
8401         cat <<_LT_EOF 1>&2
8402
8403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8404 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8405 *** is disabling shared libraries support.  We urge you to upgrade GNU
8406 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8407 *** your PATH or compiler configuration so that the native linker is
8408 *** used, and then restart.
8409
8410 _LT_EOF
8411         ;;
8412         *)
8413           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8414             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8415             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8416             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8417           else
8418             ld_shlibs=no
8419           fi
8420         ;;
8421       esac
8422       ;;
8423
8424     sunos4*)
8425       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8426       wlarc=
8427       hardcode_direct=yes
8428       hardcode_shlibpath_var=no
8429       ;;
8430
8431     *)
8432       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8435       else
8436         ld_shlibs=no
8437       fi
8438       ;;
8439     esac
8440
8441     if test "$ld_shlibs" = no; then
8442       runpath_var=
8443       hardcode_libdir_flag_spec=
8444       export_dynamic_flag_spec=
8445       whole_archive_flag_spec=
8446     fi
8447   else
8448     # PORTME fill in a description of your system's linker (not GNU ld)
8449     case $host_os in
8450     aix3*)
8451       allow_undefined_flag=unsupported
8452       always_export_symbols=yes
8453       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'
8454       # Note: this linker hardcodes the directories in LIBPATH if there
8455       # are no directories specified by -L.
8456       hardcode_minus_L=yes
8457       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8458         # Neither direct hardcoding nor static linking is supported with a
8459         # broken collect2.
8460         hardcode_direct=unsupported
8461       fi
8462       ;;
8463
8464     aix[4-9]*)
8465       if test "$host_cpu" = ia64; then
8466         # On IA64, the linker does run time linking by default, so we don't
8467         # have to do anything special.
8468         aix_use_runtimelinking=no
8469         exp_sym_flag='-Bexport'
8470         no_entry_flag=""
8471       else
8472         # If we're using GNU nm, then we don't want the "-C" option.
8473         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8474         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8475           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'
8476         else
8477           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'
8478         fi
8479         aix_use_runtimelinking=no
8480
8481         # Test if we are trying to use run time linking or normal
8482         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8483         # need to do runtime linking.
8484         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8485           for ld_flag in $LDFLAGS; do
8486           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8487             aix_use_runtimelinking=yes
8488             break
8489           fi
8490           done
8491           ;;
8492         esac
8493
8494         exp_sym_flag='-bexport'
8495         no_entry_flag='-bnoentry'
8496       fi
8497
8498       # When large executables or shared objects are built, AIX ld can
8499       # have problems creating the table of contents.  If linking a library
8500       # or program results in "error TOC overflow" add -mminimal-toc to
8501       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8502       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8503
8504       archive_cmds=''
8505       hardcode_direct=yes
8506       hardcode_libdir_separator=':'
8507       link_all_deplibs=yes
8508
8509       if test "$GCC" = yes; then
8510         case $host_os in aix4.[012]|aix4.[012].*)
8511         # We only want to do this on AIX 4.2 and lower, the check
8512         # below for broken collect2 doesn't work under 4.3+
8513           collect2name=`${CC} -print-prog-name=collect2`
8514           if test -f "$collect2name" && \
8515            strings "$collect2name" | grep resolve_lib_name >/dev/null
8516           then
8517           # We have reworked collect2
8518           :
8519           else
8520           # We have old collect2
8521           hardcode_direct=unsupported
8522           # It fails to find uninstalled libraries when the uninstalled
8523           # path is not listed in the libpath.  Setting hardcode_minus_L
8524           # to unsupported forces relinking
8525           hardcode_minus_L=yes
8526           hardcode_libdir_flag_spec='-L$libdir'
8527           hardcode_libdir_separator=
8528           fi
8529           ;;
8530         esac
8531         shared_flag='-shared'
8532         if test "$aix_use_runtimelinking" = yes; then
8533           shared_flag="$shared_flag "'${wl}-G'
8534         fi
8535       else
8536         # not using gcc
8537         if test "$host_cpu" = ia64; then
8538         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8539         # chokes on -Wl,-G. The following line is correct:
8540           shared_flag='-G'
8541         else
8542           if test "$aix_use_runtimelinking" = yes; then
8543             shared_flag='${wl}-G'
8544           else
8545             shared_flag='${wl}-bM:SRE'
8546           fi
8547         fi
8548       fi
8549
8550       # It seems that -bexpall does not export symbols beginning with
8551       # underscore (_), so it is better to generate a list of symbols to export.
8552       always_export_symbols=yes
8553       if test "$aix_use_runtimelinking" = yes; then
8554         # Warning - without using the other runtime loading flags (-brtl),
8555         # -berok will link without error, but may produce a broken library.
8556         allow_undefined_flag='-berok'
8557        # Determine the default libpath from the value encoded in an empty executable.
8558        cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 int
8566 main ()
8567 {
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (ac_try="$ac_link"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_link") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } && {
8587          test -z "$ac_c_werror_flag" ||
8588          test ! -s conftest.err
8589        } && test -s conftest$ac_exeext &&
8590        $as_test_x conftest$ac_exeext; then
8591
8592 lt_aix_libpath_sed='
8593     /Import File Strings/,/^$/ {
8594         /^0/ {
8595             s/^0  *\(.*\)$/\1/
8596             p
8597         }
8598     }'
8599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600 # Check for a 64-bit object if we didn't find anything.
8601 if test -z "$aix_libpath"; then
8602   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8603 fi
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612       conftest$ac_exeext conftest.$ac_ext
8613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8614
8615        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616         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"
8617        else
8618         if test "$host_cpu" = ia64; then
8619           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8620           allow_undefined_flag="-z nodefs"
8621           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"
8622         else
8623          # Determine the default libpath from the value encoded in an empty executable.
8624          cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630
8631 int
8632 main ()
8633 {
8634
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (ac_try="$ac_link"
8641 case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_link") 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } && {
8653          test -z "$ac_c_werror_flag" ||
8654          test ! -s conftest.err
8655        } && test -s conftest$ac_exeext &&
8656        $as_test_x conftest$ac_exeext; then
8657
8658 lt_aix_libpath_sed='
8659     /Import File Strings/,/^$/ {
8660         /^0/ {
8661             s/^0  *\(.*\)$/\1/
8662             p
8663         }
8664     }'
8665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8666 # Check for a 64-bit object if we didn't find anything.
8667 if test -z "$aix_libpath"; then
8668   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8669 fi
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8678       conftest$ac_exeext conftest.$ac_ext
8679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8680
8681          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8682           # Warning - without using the other run time loading flags,
8683           # -berok will link without error, but may produce a broken library.
8684           no_undefined_flag=' ${wl}-bernotok'
8685           allow_undefined_flag=' ${wl}-berok'
8686           # Exported symbols can be pulled into shared objects from archives
8687           whole_archive_flag_spec='$convenience'
8688           archive_cmds_need_lc=yes
8689           # This is similar to how AIX traditionally builds its shared libraries.
8690           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'
8691         fi
8692       fi
8693       ;;
8694
8695     amigaos*)
8696       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)'
8697       hardcode_libdir_flag_spec='-L$libdir'
8698       hardcode_minus_L=yes
8699       # see comment about different semantics on the GNU ld section
8700       ld_shlibs=no
8701       ;;
8702
8703     bsdi[45]*)
8704       export_dynamic_flag_spec=-rdynamic
8705       ;;
8706
8707     cygwin* | mingw* | pw32*)
8708       # When not using gcc, we currently assume that we are using
8709       # Microsoft Visual C++.
8710       # hardcode_libdir_flag_spec is actually meaningless, as there is
8711       # no search path for DLLs.
8712       hardcode_libdir_flag_spec=' '
8713       allow_undefined_flag=unsupported
8714       # Tell ltmain to make .lib files, not .a files.
8715       libext=lib
8716       # Tell ltmain to make .dll files, not .so files.
8717       shrext_cmds=".dll"
8718       # FIXME: Setting linknames here is a bad hack.
8719       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8720       # The linker will automatically build a .lib file if we build a DLL.
8721       old_archive_From_new_cmds='true'
8722       # FIXME: Should let the user specify the lib program.
8723       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8724       fix_srcfile_path='`cygpath -w "$srcfile"`'
8725       enable_shared_with_static_runtimes=yes
8726       ;;
8727
8728     darwin* | rhapsody*)
8729       case $host_os in
8730         rhapsody* | darwin1.[012])
8731          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8732          ;;
8733        *) # Darwin 1.3 on
8734          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8735            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8736          else
8737            case ${MACOSX_DEPLOYMENT_TARGET} in
8738              10.[012])
8739                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8740                ;;
8741              10.*)
8742                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8743                ;;
8744            esac
8745          fi
8746          ;;
8747       esac
8748       archive_cmds_need_lc=no
8749       hardcode_direct=no
8750       hardcode_automatic=yes
8751       hardcode_shlibpath_var=unsupported
8752       whole_archive_flag_spec=''
8753       link_all_deplibs=yes
8754     if test "$GCC" = yes ; then
8755         output_verbose_link_cmd='echo'
8756         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8757         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8758         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8759         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8760     else
8761       case $cc_basename in
8762         xlc*)
8763          output_verbose_link_cmd='echo'
8764          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8765          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8766           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8767          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8768           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}'
8769           ;;
8770        *)
8771          ld_shlibs=no
8772           ;;
8773       esac
8774     fi
8775       ;;
8776
8777     dgux*)
8778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779       hardcode_libdir_flag_spec='-L$libdir'
8780       hardcode_shlibpath_var=no
8781       ;;
8782
8783     freebsd1*)
8784       ld_shlibs=no
8785       ;;
8786
8787     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8788     # support.  Future versions do this automatically, but an explicit c++rt0.o
8789     # does not break anything, and helps significantly (at the cost of a little
8790     # extra space).
8791     freebsd2.2*)
8792       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8793       hardcode_libdir_flag_spec='-R$libdir'
8794       hardcode_direct=yes
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8799     freebsd2*)
8800       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801       hardcode_direct=yes
8802       hardcode_minus_L=yes
8803       hardcode_shlibpath_var=no
8804       ;;
8805
8806     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8807     freebsd* | dragonfly*)
8808       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8809       hardcode_libdir_flag_spec='-R$libdir'
8810       hardcode_direct=yes
8811       hardcode_shlibpath_var=no
8812       ;;
8813
8814     hpux9*)
8815       if test "$GCC" = yes; then
8816         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'
8817       else
8818         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'
8819       fi
8820       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821       hardcode_libdir_separator=:
8822       hardcode_direct=yes
8823
8824       # hardcode_minus_L: Not really in the search PATH,
8825       # but as the default location of the library.
8826       hardcode_minus_L=yes
8827       export_dynamic_flag_spec='${wl}-E'
8828       ;;
8829
8830     hpux10*)
8831       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833       else
8834         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8835       fi
8836       if test "$with_gnu_ld" = no; then
8837         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838         hardcode_libdir_separator=:
8839
8840         hardcode_direct=yes
8841         export_dynamic_flag_spec='${wl}-E'
8842
8843         # hardcode_minus_L: Not really in the search PATH,
8844         # but as the default location of the library.
8845         hardcode_minus_L=yes
8846       fi
8847       ;;
8848
8849     hpux11*)
8850       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8851         case $host_cpu in
8852         hppa*64*)
8853           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854           ;;
8855         ia64*)
8856           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8857           ;;
8858         *)
8859           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8860           ;;
8861         esac
8862       else
8863         case $host_cpu in
8864         hppa*64*)
8865           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866           ;;
8867         ia64*)
8868           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8869           ;;
8870         *)
8871           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872           ;;
8873         esac
8874       fi
8875       if test "$with_gnu_ld" = no; then
8876         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8877         hardcode_libdir_separator=:
8878
8879         case $host_cpu in
8880         hppa*64*|ia64*)
8881           hardcode_libdir_flag_spec_ld='+b $libdir'
8882           hardcode_direct=no
8883           hardcode_shlibpath_var=no
8884           ;;
8885         *)
8886           hardcode_direct=yes
8887           export_dynamic_flag_spec='${wl}-E'
8888
8889           # hardcode_minus_L: Not really in the search PATH,
8890           # but as the default location of the library.
8891           hardcode_minus_L=yes
8892           ;;
8893         esac
8894       fi
8895       ;;
8896
8897     irix5* | irix6* | nonstopux*)
8898       if test "$GCC" = yes; then
8899         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'
8900       else
8901         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'
8902         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8903       fi
8904       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905       hardcode_libdir_separator=:
8906       link_all_deplibs=yes
8907       ;;
8908
8909     netbsd* | netbsdelf*-gnu)
8910       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8911         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8912       else
8913         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8914       fi
8915       hardcode_libdir_flag_spec='-R$libdir'
8916       hardcode_direct=yes
8917       hardcode_shlibpath_var=no
8918       ;;
8919
8920     newsos6)
8921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       hardcode_direct=yes
8923       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924       hardcode_libdir_separator=:
8925       hardcode_shlibpath_var=no
8926       ;;
8927
8928     openbsd*)
8929       if test -f /usr/libexec/ld.so; then
8930         hardcode_direct=yes
8931         hardcode_shlibpath_var=no
8932         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8933           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8934           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8935           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936           export_dynamic_flag_spec='${wl}-E'
8937         else
8938           case $host_os in
8939            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8940              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8941              hardcode_libdir_flag_spec='-R$libdir'
8942              ;;
8943            *)
8944              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946              ;;
8947           esac
8948         fi
8949       else
8950         ld_shlibs=no
8951       fi
8952       ;;
8953
8954     os2*)
8955       hardcode_libdir_flag_spec='-L$libdir'
8956       hardcode_minus_L=yes
8957       allow_undefined_flag=unsupported
8958       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'
8959       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8960       ;;
8961
8962     osf3*)
8963       if test "$GCC" = yes; then
8964         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8965         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'
8966       else
8967         allow_undefined_flag=' -expect_unresolved \*'
8968         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'
8969       fi
8970       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971       hardcode_libdir_separator=:
8972       ;;
8973
8974     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8975       if test "$GCC" = yes; then
8976         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977         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'
8978         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979       else
8980         allow_undefined_flag=' -expect_unresolved \*'
8981         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'
8982         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8983         $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'
8984
8985         # Both c and cxx compiler support -rpath directly
8986         hardcode_libdir_flag_spec='-rpath $libdir'
8987       fi
8988       hardcode_libdir_separator=:
8989       ;;
8990
8991     solaris*)
8992       no_undefined_flag=' -z text'
8993       if test "$GCC" = yes; then
8994         wlarc='${wl}'
8995         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8996         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8997           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8998       else
8999         wlarc=''
9000         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9002         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9003       fi
9004       hardcode_libdir_flag_spec='-R$libdir'
9005       hardcode_shlibpath_var=no
9006       case $host_os in
9007       solaris2.[0-5] | solaris2.[0-5].*) ;;
9008       *)
9009         # The compiler driver will combine and reorder linker options,
9010         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9011         # but is careful enough not to reorder.
9012         # Supported since Solaris 2.6 (maybe 2.5.1?)
9013         if test "$GCC" = yes; then
9014           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9015         else
9016           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9017         fi
9018         ;;
9019       esac
9020       link_all_deplibs=yes
9021       ;;
9022
9023     sunos4*)
9024       if test "x$host_vendor" = xsequent; then
9025         # Use $CC to link under sequent, because it throws in some extra .o
9026         # files that make .init and .fini sections work.
9027         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9028       else
9029         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9030       fi
9031       hardcode_libdir_flag_spec='-L$libdir'
9032       hardcode_direct=yes
9033       hardcode_minus_L=yes
9034       hardcode_shlibpath_var=no
9035       ;;
9036
9037     sysv4)
9038       case $host_vendor in
9039         sni)
9040           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041           hardcode_direct=yes # is this really true???
9042         ;;
9043         siemens)
9044           ## LD is ld it makes a PLAMLIB
9045           ## CC just makes a GrossModule.
9046           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9047           reload_cmds='$CC -r -o $output$reload_objs'
9048           hardcode_direct=no
9049         ;;
9050         motorola)
9051           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9053         ;;
9054       esac
9055       runpath_var='LD_RUN_PATH'
9056       hardcode_shlibpath_var=no
9057       ;;
9058
9059     sysv4.3*)
9060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061       hardcode_shlibpath_var=no
9062       export_dynamic_flag_spec='-Bexport'
9063       ;;
9064
9065     sysv4*MP*)
9066       if test -d /usr/nec; then
9067         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068         hardcode_shlibpath_var=no
9069         runpath_var=LD_RUN_PATH
9070         hardcode_runpath_var=yes
9071         ld_shlibs=yes
9072       fi
9073       ;;
9074
9075     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9076       no_undefined_flag='${wl}-z,text'
9077       archive_cmds_need_lc=no
9078       hardcode_shlibpath_var=no
9079       runpath_var='LD_RUN_PATH'
9080
9081       if test "$GCC" = yes; then
9082         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084       else
9085         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087       fi
9088       ;;
9089
9090     sysv5* | sco3.2v5* | sco5v6*)
9091       # Note: We can NOT use -z defs as we might desire, because we do not
9092       # link with -lc, and that would cause any symbols used from libc to
9093       # always be unresolved, which means just about no library would
9094       # ever link correctly.  If we're not using GNU ld we use -z text
9095       # though, which does catch some bad symbols but isn't as heavy-handed
9096       # as -z defs.
9097       no_undefined_flag='${wl}-z,text'
9098       allow_undefined_flag='${wl}-z,nodefs'
9099       archive_cmds_need_lc=no
9100       hardcode_shlibpath_var=no
9101       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9102       hardcode_libdir_separator=':'
9103       link_all_deplibs=yes
9104       export_dynamic_flag_spec='${wl}-Bexport'
9105       runpath_var='LD_RUN_PATH'
9106
9107       if test "$GCC" = yes; then
9108         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110       else
9111         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113       fi
9114       ;;
9115
9116     uts4*)
9117       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118       hardcode_libdir_flag_spec='-L$libdir'
9119       hardcode_shlibpath_var=no
9120       ;;
9121
9122     *)
9123       ld_shlibs=no
9124       ;;
9125     esac
9126   fi
9127
9128 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9129 echo "${ECHO_T}$ld_shlibs" >&6; }
9130 test "$ld_shlibs" = no && can_build_shared=no
9131
9132 #
9133 # Do we need to explicitly link libc?
9134 #
9135 case "x$archive_cmds_need_lc" in
9136 x|xyes)
9137   # Assume -lc should be added
9138   archive_cmds_need_lc=yes
9139
9140   if test "$enable_shared" = yes && test "$GCC" = yes; then
9141     case $archive_cmds in
9142     *'~'*)
9143       # FIXME: we may have to deal with multi-command sequences.
9144       ;;
9145     '$CC '*)
9146       # Test whether the compiler implicitly links with -lc since on some
9147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9148       # to ld, don't add -lc before -lgcc.
9149       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9151       $rm conftest*
9152       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153
9154       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155   (eval $ac_compile) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } 2>conftest.err; then
9159         soname=conftest
9160         lib=conftest
9161         libobjs=conftest.$ac_objext
9162         deplibs=
9163         wl=$lt_prog_compiler_wl
9164         pic_flag=$lt_prog_compiler_pic
9165         compiler_flags=-v
9166         linker_flags=-v
9167         verstring=
9168         output_objdir=.
9169         libname=conftest
9170         lt_save_allow_undefined_flag=$allow_undefined_flag
9171         allow_undefined_flag=
9172         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9173   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }
9177         then
9178           archive_cmds_need_lc=no
9179         else
9180           archive_cmds_need_lc=yes
9181         fi
9182         allow_undefined_flag=$lt_save_allow_undefined_flag
9183       else
9184         cat conftest.err 1>&5
9185       fi
9186       $rm conftest*
9187       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9188 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9189       ;;
9190     esac
9191   fi
9192   ;;
9193 esac
9194
9195 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9196 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9197 library_names_spec=
9198 libname_spec='lib$name'
9199 soname_spec=
9200 shrext_cmds=".so"
9201 postinstall_cmds=
9202 postuninstall_cmds=
9203 finish_cmds=
9204 finish_eval=
9205 shlibpath_var=
9206 shlibpath_overrides_runpath=unknown
9207 version_type=none
9208 dynamic_linker="$host_os ld.so"
9209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9210
9211 if test "$GCC" = yes; then
9212   case $host_os in
9213     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9214     *) lt_awk_arg="/^libraries:/" ;;
9215   esac
9216   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9217   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9218     # if the path contains ";" then we assume it to be the separator
9219     # otherwise default to the standard path separator (i.e. ":") - it is
9220     # assumed that no part of a normal pathname contains ";" but that should
9221     # okay in the real world where ";" in dirpaths is itself problematic.
9222     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9223   else
9224     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9225   fi
9226   # Ok, now we have the path, separated by spaces, we can step through it
9227   # and add multilib dir if necessary.
9228   lt_tmp_lt_search_path_spec=
9229   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9230   for lt_sys_path in $lt_search_path_spec; do
9231     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9232       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9233     else
9234       test -d "$lt_sys_path" && \
9235         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9236     fi
9237   done
9238   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9239 BEGIN {RS=" "; FS="/|\n";} {
9240   lt_foo="";
9241   lt_count=0;
9242   for (lt_i = NF; lt_i > 0; lt_i--) {
9243     if ($lt_i != "" && $lt_i != ".") {
9244       if ($lt_i == "..") {
9245         lt_count++;
9246       } else {
9247         if (lt_count == 0) {
9248           lt_foo="/" $lt_i lt_foo;
9249         } else {
9250           lt_count--;
9251         }
9252       }
9253     }
9254   }
9255   if (lt_foo != "") { lt_freq[lt_foo]++; }
9256   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9257 }'`
9258   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9259 else
9260   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9261 fi
9262 need_lib_prefix=unknown
9263 hardcode_into_libs=no
9264
9265 # when you set need_version to no, make sure it does not cause -set_version
9266 # flags to be left without arguments
9267 need_version=unknown
9268
9269 case $host_os in
9270 aix3*)
9271   version_type=linux
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9273   shlibpath_var=LIBPATH
9274
9275   # AIX 3 has no versioning support, so we append a major version to the name.
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   ;;
9278
9279 aix[4-9]*)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   hardcode_into_libs=yes
9284   if test "$host_cpu" = ia64; then
9285     # AIX 5 supports IA64
9286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9287     shlibpath_var=LD_LIBRARY_PATH
9288   else
9289     # With GCC up to 2.95.x, collect2 would create an import file
9290     # for dependence libraries.  The import file would start with
9291     # the line `#! .'.  This would cause the generated library to
9292     # depend on `.', always an invalid library.  This was fixed in
9293     # development snapshots of GCC prior to 3.0.
9294     case $host_os in
9295       aix4 | aix4.[01] | aix4.[01].*)
9296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9297            echo ' yes '
9298            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9299         :
9300       else
9301         can_build_shared=no
9302       fi
9303       ;;
9304     esac
9305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9306     # soname into executable. Probably we can add versioning support to
9307     # collect2, so additional links can be useful in future.
9308     if test "$aix_use_runtimelinking" = yes; then
9309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9310       # instead of lib<name>.a to let people know that these are not
9311       # typical AIX shared libraries.
9312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313     else
9314       # We preserve .a as extension for shared libraries through AIX4.2
9315       # and later when we are not doing run time linking.
9316       library_names_spec='${libname}${release}.a $libname.a'
9317       soname_spec='${libname}${release}${shared_ext}$major'
9318     fi
9319     shlibpath_var=LIBPATH
9320   fi
9321   ;;
9322
9323 amigaos*)
9324   library_names_spec='$libname.ixlibrary $libname.a'
9325   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9326   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'
9327   ;;
9328
9329 beos*)
9330   library_names_spec='${libname}${shared_ext}'
9331   dynamic_linker="$host_os ld.so"
9332   shlibpath_var=LIBRARY_PATH
9333   ;;
9334
9335 bsdi[45]*)
9336   version_type=linux
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9343   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9344   # the default ld.so.conf also contains /usr/contrib/lib and
9345   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9346   # libtool to hard-code these into programs
9347   ;;
9348
9349 cygwin* | mingw* | pw32*)
9350   version_type=windows
9351   shrext_cmds=".dll"
9352   need_version=no
9353   need_lib_prefix=no
9354
9355   case $GCC,$host_os in
9356   yes,cygwin* | yes,mingw* | yes,pw32*)
9357     library_names_spec='$libname.dll.a'
9358     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9359     postinstall_cmds='base_file=`basename \${file}`~
9360       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9361       dldir=$destdir/`dirname \$dlpath`~
9362       test -d \$dldir || mkdir -p \$dldir~
9363       $install_prog $dir/$dlname \$dldir/$dlname~
9364       chmod a+x \$dldir/$dlname'
9365     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9366       dlpath=$dir/\$dldll~
9367        $rm \$dlpath'
9368     shlibpath_overrides_runpath=yes
9369
9370     case $host_os in
9371     cygwin*)
9372       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9373       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9375       ;;
9376     mingw*)
9377       # MinGW DLLs use traditional 'lib' prefix
9378       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9380       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9381         # It is most probably a Windows format PATH printed by
9382         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9383         # path with ; separators, and with drive letters. We can handle the
9384         # drive letters (cygwin fileutils understands them), so leave them,
9385         # especially as we might pass files found there to a mingw objdump,
9386         # which wouldn't understand a cygwinified path. Ahh.
9387         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388       else
9389         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9390       fi
9391       ;;
9392     pw32*)
9393       # pw32 DLLs use 'pw' prefix rather than 'lib'
9394       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9395       ;;
9396     esac
9397     ;;
9398
9399   *)
9400     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9401     ;;
9402   esac
9403   dynamic_linker='Win32 ld.exe'
9404   # FIXME: first we should search . and the directory the executable is in
9405   shlibpath_var=PATH
9406   ;;
9407
9408 darwin* | rhapsody*)
9409   dynamic_linker="$host_os dyld"
9410   version_type=darwin
9411   need_lib_prefix=no
9412   need_version=no
9413   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9414   soname_spec='${libname}${release}${major}$shared_ext'
9415   shlibpath_overrides_runpath=yes
9416   shlibpath_var=DYLD_LIBRARY_PATH
9417   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9418
9419   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9420   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9421   ;;
9422
9423 dgux*)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   ;;
9431
9432 freebsd1*)
9433   dynamic_linker=no
9434   ;;
9435
9436 freebsd* | dragonfly*)
9437   # DragonFly does not have aout.  When/if they implement a new
9438   # versioning mechanism, adjust this.
9439   if test -x /usr/bin/objformat; then
9440     objformat=`/usr/bin/objformat`
9441   else
9442     case $host_os in
9443     freebsd[123]*) objformat=aout ;;
9444     *) objformat=elf ;;
9445     esac
9446   fi
9447   version_type=freebsd-$objformat
9448   case $version_type in
9449     freebsd-elf*)
9450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451       need_version=no
9452       need_lib_prefix=no
9453       ;;
9454     freebsd-*)
9455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456       need_version=yes
9457       ;;
9458   esac
9459   shlibpath_var=LD_LIBRARY_PATH
9460   case $host_os in
9461   freebsd2*)
9462     shlibpath_overrides_runpath=yes
9463     ;;
9464   freebsd3.[01]* | freebsdelf3.[01]*)
9465     shlibpath_overrides_runpath=yes
9466     hardcode_into_libs=yes
9467     ;;
9468   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470     shlibpath_overrides_runpath=no
9471     hardcode_into_libs=yes
9472     ;;
9473   *) # from 4.6 on, and DragonFly
9474     shlibpath_overrides_runpath=yes
9475     hardcode_into_libs=yes
9476     ;;
9477   esac
9478   ;;
9479
9480 gnu*)
9481   version_type=linux
9482   need_lib_prefix=no
9483   need_version=no
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   hardcode_into_libs=yes
9488   ;;
9489
9490 hpux9* | hpux10* | hpux11*)
9491   # Give a soname corresponding to the major version so that dld.sl refuses to
9492   # link against other versions.
9493   version_type=sunos
9494   need_lib_prefix=no
9495   need_version=no
9496   case $host_cpu in
9497   ia64*)
9498     shrext_cmds='.so'
9499     hardcode_into_libs=yes
9500     dynamic_linker="$host_os dld.so"
9501     shlibpath_var=LD_LIBRARY_PATH
9502     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504     soname_spec='${libname}${release}${shared_ext}$major'
9505     if test "X$HPUX_IA64_MODE" = X32; then
9506       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507     else
9508       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9509     fi
9510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511     ;;
9512    hppa*64*)
9513      shrext_cmds='.sl'
9514      hardcode_into_libs=yes
9515      dynamic_linker="$host_os dld.sl"
9516      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519      soname_spec='${libname}${release}${shared_ext}$major'
9520      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9522      ;;
9523    *)
9524     shrext_cmds='.sl'
9525     dynamic_linker="$host_os dld.sl"
9526     shlibpath_var=SHLIB_PATH
9527     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529     soname_spec='${libname}${release}${shared_ext}$major'
9530     ;;
9531   esac
9532   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533   postinstall_cmds='chmod 555 $lib'
9534   ;;
9535
9536 interix[3-9]*)
9537   version_type=linux
9538   need_lib_prefix=no
9539   need_version=no
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543   shlibpath_var=LD_LIBRARY_PATH
9544   shlibpath_overrides_runpath=no
9545   hardcode_into_libs=yes
9546   ;;
9547
9548 irix5* | irix6* | nonstopux*)
9549   case $host_os in
9550     nonstopux*) version_type=nonstopux ;;
9551     *)
9552         if test "$lt_cv_prog_gnu_ld" = yes; then
9553                 version_type=linux
9554         else
9555                 version_type=irix
9556         fi ;;
9557   esac
9558   need_lib_prefix=no
9559   need_version=no
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562   case $host_os in
9563   irix5* | nonstopux*)
9564     libsuff= shlibsuff=
9565     ;;
9566   *)
9567     case $LD in # libtool.m4 will add one of these switches to LD
9568     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569       libsuff= shlibsuff= libmagic=32-bit;;
9570     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571       libsuff=32 shlibsuff=N32 libmagic=N32;;
9572     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574     *) libsuff= shlibsuff= libmagic=never-match;;
9575     esac
9576     ;;
9577   esac
9578   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579   shlibpath_overrides_runpath=no
9580   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582   hardcode_into_libs=yes
9583   ;;
9584
9585 # No shared lib support for Linux oldld, aout, or coff.
9586 linux*oldld* | linux*aout* | linux*coff*)
9587   dynamic_linker=no
9588   ;;
9589
9590 # This must be Linux ELF.
9591 linux* | k*bsd*-gnu)
9592   version_type=linux
9593   need_lib_prefix=no
9594   need_version=no
9595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598   shlibpath_var=LD_LIBRARY_PATH
9599   shlibpath_overrides_runpath=no
9600   # This implies no fast_install, which is unacceptable.
9601   # Some rework will be needed to allow for fast_install
9602   # before this can be enabled.
9603   hardcode_into_libs=yes
9604
9605   # Append ld.so.conf contents to the search path
9606   if test -f /etc/ld.so.conf; then
9607     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9608     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9609   fi
9610
9611   # We used to test for /lib/ld.so.1 and disable shared libraries on
9612   # powerpc, because MkLinux only supported shared libraries with the
9613   # GNU dynamic linker.  Since this was broken with cross compilers,
9614   # most powerpc-linux boxes support dynamic linking these days and
9615   # people can always --disable-shared, the test was removed, and we
9616   # assume the GNU/Linux dynamic linker is in use.
9617   dynamic_linker='GNU/Linux ld.so'
9618   ;;
9619
9620 netbsdelf*-gnu)
9621   version_type=linux
9622   need_lib_prefix=no
9623   need_version=no
9624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625   soname_spec='${libname}${release}${shared_ext}$major'
9626   shlibpath_var=LD_LIBRARY_PATH
9627   shlibpath_overrides_runpath=no
9628   hardcode_into_libs=yes
9629   dynamic_linker='NetBSD ld.elf_so'
9630   ;;
9631
9632 netbsd*)
9633   version_type=sunos
9634   need_lib_prefix=no
9635   need_version=no
9636   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639     dynamic_linker='NetBSD (a.out) ld.so'
9640   else
9641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642     soname_spec='${libname}${release}${shared_ext}$major'
9643     dynamic_linker='NetBSD ld.elf_so'
9644   fi
9645   shlibpath_var=LD_LIBRARY_PATH
9646   shlibpath_overrides_runpath=yes
9647   hardcode_into_libs=yes
9648   ;;
9649
9650 newsos6)
9651   version_type=linux
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   shlibpath_overrides_runpath=yes
9655   ;;
9656
9657 nto-qnx*)
9658   version_type=linux
9659   need_lib_prefix=no
9660   need_version=no
9661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662   soname_spec='${libname}${release}${shared_ext}$major'
9663   shlibpath_var=LD_LIBRARY_PATH
9664   shlibpath_overrides_runpath=yes
9665   ;;
9666
9667 openbsd*)
9668   version_type=sunos
9669   sys_lib_dlsearch_path_spec="/usr/lib"
9670   need_lib_prefix=no
9671   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672   case $host_os in
9673     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674     *)                         need_version=no  ;;
9675   esac
9676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678   shlibpath_var=LD_LIBRARY_PATH
9679   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680     case $host_os in
9681       openbsd2.[89] | openbsd2.[89].*)
9682         shlibpath_overrides_runpath=no
9683         ;;
9684       *)
9685         shlibpath_overrides_runpath=yes
9686         ;;
9687       esac
9688   else
9689     shlibpath_overrides_runpath=yes
9690   fi
9691   ;;
9692
9693 os2*)
9694   libname_spec='$name'
9695   shrext_cmds=".dll"
9696   need_lib_prefix=no
9697   library_names_spec='$libname${shared_ext} $libname.a'
9698   dynamic_linker='OS/2 ld.exe'
9699   shlibpath_var=LIBPATH
9700   ;;
9701
9702 osf3* | osf4* | osf5*)
9703   version_type=osf
9704   need_lib_prefix=no
9705   need_version=no
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708   shlibpath_var=LD_LIBRARY_PATH
9709   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9711   ;;
9712
9713 rdos*)
9714   dynamic_linker=no
9715   ;;
9716
9717 solaris*)
9718   version_type=linux
9719   need_lib_prefix=no
9720   need_version=no
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722   soname_spec='${libname}${release}${shared_ext}$major'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   shlibpath_overrides_runpath=yes
9725   hardcode_into_libs=yes
9726   # ldd complains unless libraries are executable
9727   postinstall_cmds='chmod +x $lib'
9728   ;;
9729
9730 sunos4*)
9731   version_type=sunos
9732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9734   shlibpath_var=LD_LIBRARY_PATH
9735   shlibpath_overrides_runpath=yes
9736   if test "$with_gnu_ld" = yes; then
9737     need_lib_prefix=no
9738   fi
9739   need_version=yes
9740   ;;
9741
9742 sysv4 | sysv4.3*)
9743   version_type=linux
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   shlibpath_var=LD_LIBRARY_PATH
9747   case $host_vendor in
9748     sni)
9749       shlibpath_overrides_runpath=no
9750       need_lib_prefix=no
9751       export_dynamic_flag_spec='${wl}-Blargedynsym'
9752       runpath_var=LD_RUN_PATH
9753       ;;
9754     siemens)
9755       need_lib_prefix=no
9756       ;;
9757     motorola)
9758       need_lib_prefix=no
9759       need_version=no
9760       shlibpath_overrides_runpath=no
9761       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9762       ;;
9763   esac
9764   ;;
9765
9766 sysv4*MP*)
9767   if test -d /usr/nec ;then
9768     version_type=linux
9769     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770     soname_spec='$libname${shared_ext}.$major'
9771     shlibpath_var=LD_LIBRARY_PATH
9772   fi
9773   ;;
9774
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776   version_type=freebsd-elf
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   shlibpath_var=LD_LIBRARY_PATH
9782   hardcode_into_libs=yes
9783   if test "$with_gnu_ld" = yes; then
9784     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9785     shlibpath_overrides_runpath=no
9786   else
9787     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788     shlibpath_overrides_runpath=yes
9789     case $host_os in
9790       sco3.2v5*)
9791         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9792         ;;
9793     esac
9794   fi
9795   sys_lib_dlsearch_path_spec='/usr/lib'
9796   ;;
9797
9798 uts4*)
9799   version_type=linux
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   ;;
9804
9805 *)
9806   dynamic_linker=no
9807   ;;
9808 esac
9809 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810 echo "${ECHO_T}$dynamic_linker" >&6; }
9811 test "$dynamic_linker" = no && can_build_shared=no
9812
9813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9817 fi
9818
9819 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9820 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9824 fi
9825
9826 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9827
9828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9829 if test "$GCC" = yes; then
9830   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9831 fi
9832
9833 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9835 hardcode_action=
9836 if test -n "$hardcode_libdir_flag_spec" || \
9837    test -n "$runpath_var" || \
9838    test "X$hardcode_automatic" = "Xyes" ; then
9839
9840   # We can hardcode non-existant directories.
9841   if test "$hardcode_direct" != no &&
9842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9843      # have to relink, otherwise we might link with an installed library
9844      # when we should be linking with a yet-to-be-installed one
9845      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9846      test "$hardcode_minus_L" != no; then
9847     # Linking always hardcodes the temporary library directory.
9848     hardcode_action=relink
9849   else
9850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9851     hardcode_action=immediate
9852   fi
9853 else
9854   # We cannot hardcode anything, or else we can only hardcode existing
9855   # directories.
9856   hardcode_action=unsupported
9857 fi
9858 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9859 echo "${ECHO_T}$hardcode_action" >&6; }
9860
9861 if test "$hardcode_action" = relink; then
9862   # Fast installation is not supported
9863   enable_fast_install=no
9864 elif test "$shlibpath_overrides_runpath" = yes ||
9865      test "$enable_shared" = no; then
9866   # Fast installation is not necessary
9867   enable_fast_install=needless
9868 fi
9869
9870 striplib=
9871 old_striplib=
9872 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9875   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9876   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9877   { echo "$as_me:$LINENO: result: yes" >&5
9878 echo "${ECHO_T}yes" >&6; }
9879 else
9880 # FIXME - insert some real tests, host_os isn't really good enough
9881   case $host_os in
9882    darwin*)
9883        if test -n "$STRIP" ; then
9884          striplib="$STRIP -x"
9885          old_striplib="$STRIP -S"
9886          { echo "$as_me:$LINENO: result: yes" >&5
9887 echo "${ECHO_T}yes" >&6; }
9888        else
9889   { echo "$as_me:$LINENO: result: no" >&5
9890 echo "${ECHO_T}no" >&6; }
9891 fi
9892        ;;
9893    *)
9894   { echo "$as_me:$LINENO: result: no" >&5
9895 echo "${ECHO_T}no" >&6; }
9896     ;;
9897   esac
9898 fi
9899
9900 if test "x$enable_dlopen" != xyes; then
9901   enable_dlopen=unknown
9902   enable_dlopen_self=unknown
9903   enable_dlopen_self_static=unknown
9904 else
9905   lt_cv_dlopen=no
9906   lt_cv_dlopen_libs=
9907
9908   case $host_os in
9909   beos*)
9910     lt_cv_dlopen="load_add_on"
9911     lt_cv_dlopen_libs=
9912     lt_cv_dlopen_self=yes
9913     ;;
9914
9915   mingw* | pw32*)
9916     lt_cv_dlopen="LoadLibrary"
9917     lt_cv_dlopen_libs=
9918    ;;
9919
9920   cygwin*)
9921     lt_cv_dlopen="dlopen"
9922     lt_cv_dlopen_libs=
9923    ;;
9924
9925   darwin*)
9926   # if libdl is installed we need to link against it
9927     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9928 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9929 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   ac_check_lib_save_LIBS=$LIBS
9933 LIBS="-ldl  $LIBS"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940
9941 /* Override any GCC internal prototype to avoid an error.
9942    Use char because int might match the return type of a GCC
9943    builtin and then its argument prototype would still apply.  */
9944 #ifdef __cplusplus
9945 extern "C"
9946 #endif
9947 char dlopen ();
9948 int
9949 main ()
9950 {
9951 return dlopen ();
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9958 case "(($ac_try" in
9959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960   *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963   (eval "$ac_link") 2>conftest.er1
9964   ac_status=$?
9965   grep -v '^ *+' conftest.er1 >conftest.err
9966   rm -f conftest.er1
9967   cat conftest.err >&5
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } && {
9970          test -z "$ac_c_werror_flag" ||
9971          test ! -s conftest.err
9972        } && test -s conftest$ac_exeext &&
9973        $as_test_x conftest$ac_exeext; then
9974   ac_cv_lib_dl_dlopen=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979         ac_cv_lib_dl_dlopen=no
9980 fi
9981
9982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9983       conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9985 fi
9986 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9987 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9988 if test $ac_cv_lib_dl_dlopen = yes; then
9989   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9990 else
9991
9992     lt_cv_dlopen="dyld"
9993     lt_cv_dlopen_libs=
9994     lt_cv_dlopen_self=yes
9995
9996 fi
9997
9998    ;;
9999
10000   *)
10001     { echo "$as_me:$LINENO: checking for shl_load" >&5
10002 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10003 if test "${ac_cv_func_shl_load+set}" = set; then
10004   echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006   cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10014 #define shl_load innocuous_shl_load
10015
10016 /* System header to define __stub macros and hopefully few prototypes,
10017     which can conflict with char shl_load (); below.
10018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019     <limits.h> exists even on freestanding compilers.  */
10020
10021 #ifdef __STDC__
10022 # include <limits.h>
10023 #else
10024 # include <assert.h>
10025 #endif
10026
10027 #undef shl_load
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030    Use char because int might match the return type of a GCC
10031    builtin and then its argument prototype would still apply.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char shl_load ();
10036 /* The GNU C library defines this for functions which it implements
10037     to always fail with ENOSYS.  Some functions are actually named
10038     something starting with __ and the normal name is an alias.  */
10039 #if defined __stub_shl_load || defined __stub___shl_load
10040 choke me
10041 #endif
10042
10043 int
10044 main ()
10045 {
10046 return shl_load ();
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_link") 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } && {
10065          test -z "$ac_c_werror_flag" ||
10066          test ! -s conftest.err
10067        } && test -s conftest$ac_exeext &&
10068        $as_test_x conftest$ac_exeext; then
10069   ac_cv_func_shl_load=yes
10070 else
10071   echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10073
10074         ac_cv_func_shl_load=no
10075 fi
10076
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078       conftest$ac_exeext conftest.$ac_ext
10079 fi
10080 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10081 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10082 if test $ac_cv_func_shl_load = yes; then
10083   lt_cv_dlopen="shl_load"
10084 else
10085   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10086 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   ac_check_lib_save_LIBS=$LIBS
10091 LIBS="-ldld  $LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098
10099 /* Override any GCC internal prototype to avoid an error.
10100    Use char because int might match the return type of a GCC
10101    builtin and then its argument prototype would still apply.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char shl_load ();
10106 int
10107 main ()
10108 {
10109 return shl_load ();
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_link") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } && {
10128          test -z "$ac_c_werror_flag" ||
10129          test ! -s conftest.err
10130        } && test -s conftest$ac_exeext &&
10131        $as_test_x conftest$ac_exeext; then
10132   ac_cv_lib_dld_shl_load=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137         ac_cv_lib_dld_shl_load=no
10138 fi
10139
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141       conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10143 fi
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10146 if test $ac_cv_lib_dld_shl_load = yes; then
10147   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10148 else
10149   { echo "$as_me:$LINENO: checking for dlopen" >&5
10150 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10151 if test "${ac_cv_func_dlopen+set}" = set; then
10152   echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154   cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h.  */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h.  */
10160 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10162 #define dlopen innocuous_dlopen
10163
10164 /* System header to define __stub macros and hopefully few prototypes,
10165     which can conflict with char dlopen (); below.
10166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10167     <limits.h> exists even on freestanding compilers.  */
10168
10169 #ifdef __STDC__
10170 # include <limits.h>
10171 #else
10172 # include <assert.h>
10173 #endif
10174
10175 #undef dlopen
10176
10177 /* Override any GCC internal prototype to avoid an error.
10178    Use char because int might match the return type of a GCC
10179    builtin and then its argument prototype would still apply.  */
10180 #ifdef __cplusplus
10181 extern "C"
10182 #endif
10183 char dlopen ();
10184 /* The GNU C library defines this for functions which it implements
10185     to always fail with ENOSYS.  Some functions are actually named
10186     something starting with __ and the normal name is an alias.  */
10187 #if defined __stub_dlopen || defined __stub___dlopen
10188 choke me
10189 #endif
10190
10191 int
10192 main ()
10193 {
10194 return dlopen ();
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (ac_try="$ac_link"
10201 case "(($ac_try" in
10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203   *) ac_try_echo=$ac_try;;
10204 esac
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206   (eval "$ac_link") 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } && {
10213          test -z "$ac_c_werror_flag" ||
10214          test ! -s conftest.err
10215        } && test -s conftest$ac_exeext &&
10216        $as_test_x conftest$ac_exeext; then
10217   ac_cv_func_dlopen=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222         ac_cv_func_dlopen=no
10223 fi
10224
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226       conftest$ac_exeext conftest.$ac_ext
10227 fi
10228 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10229 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10230 if test $ac_cv_func_dlopen = yes; then
10231   lt_cv_dlopen="dlopen"
10232 else
10233   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10234 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-ldl  $LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char dlopen ();
10254 int
10255 main ()
10256 {
10257 return dlopen ();
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_link") 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } && {
10276          test -z "$ac_c_werror_flag" ||
10277          test ! -s conftest.err
10278        } && test -s conftest$ac_exeext &&
10279        $as_test_x conftest$ac_exeext; then
10280   ac_cv_lib_dl_dlopen=yes
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285         ac_cv_lib_dl_dlopen=no
10286 fi
10287
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289       conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10291 fi
10292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10294 if test $ac_cv_lib_dl_dlopen = yes; then
10295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10296 else
10297   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lsvld  $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310
10311 /* Override any GCC internal prototype to avoid an error.
10312    Use char because int might match the return type of a GCC
10313    builtin and then its argument prototype would still apply.  */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char dlopen ();
10318 int
10319 main ()
10320 {
10321 return dlopen ();
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330   *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333   (eval "$ac_link") 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } && {
10340          test -z "$ac_c_werror_flag" ||
10341          test ! -s conftest.err
10342        } && test -s conftest$ac_exeext &&
10343        $as_test_x conftest$ac_exeext; then
10344   ac_cv_lib_svld_dlopen=yes
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349         ac_cv_lib_svld_dlopen=no
10350 fi
10351
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353       conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10355 fi
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10358 if test $ac_cv_lib_svld_dlopen = yes; then
10359   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10360 else
10361   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-ldld  $LIBS"
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374
10375 /* Override any GCC internal prototype to avoid an error.
10376    Use char because int might match the return type of a GCC
10377    builtin and then its argument prototype would still apply.  */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char dld_link ();
10382 int
10383 main ()
10384 {
10385 return dld_link ();
10386   ;
10387   return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394   *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397   (eval "$ac_link") 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } && {
10404          test -z "$ac_c_werror_flag" ||
10405          test ! -s conftest.err
10406        } && test -s conftest$ac_exeext &&
10407        $as_test_x conftest$ac_exeext; then
10408   ac_cv_lib_dld_dld_link=yes
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413         ac_cv_lib_dld_dld_link=no
10414 fi
10415
10416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10417       conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10419 fi
10420 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10422 if test $ac_cv_lib_dld_dld_link = yes; then
10423   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10424 fi
10425
10426
10427 fi
10428
10429
10430 fi
10431
10432
10433 fi
10434
10435
10436 fi
10437
10438
10439 fi
10440
10441     ;;
10442   esac
10443
10444   if test "x$lt_cv_dlopen" != xno; then
10445     enable_dlopen=yes
10446   else
10447     enable_dlopen=no
10448   fi
10449
10450   case $lt_cv_dlopen in
10451   dlopen)
10452     save_CPPFLAGS="$CPPFLAGS"
10453     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10454
10455     save_LDFLAGS="$LDFLAGS"
10456     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10457
10458     save_LIBS="$LIBS"
10459     LIBS="$lt_cv_dlopen_libs $LIBS"
10460
10461     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10463 if test "${lt_cv_dlopen_self+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466           if test "$cross_compiling" = yes; then :
10467   lt_cv_dlopen_self=cross
10468 else
10469   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10470   lt_status=$lt_dlunknown
10471   cat > conftest.$ac_ext <<EOF
10472 #line 10472 "configure"
10473 #include "confdefs.h"
10474
10475 #if HAVE_DLFCN_H
10476 #include <dlfcn.h>
10477 #endif
10478
10479 #include <stdio.h>
10480
10481 #ifdef RTLD_GLOBAL
10482 #  define LT_DLGLOBAL           RTLD_GLOBAL
10483 #else
10484 #  ifdef DL_GLOBAL
10485 #    define LT_DLGLOBAL         DL_GLOBAL
10486 #  else
10487 #    define LT_DLGLOBAL         0
10488 #  endif
10489 #endif
10490
10491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10492    find out it does not work in some platform. */
10493 #ifndef LT_DLLAZY_OR_NOW
10494 #  ifdef RTLD_LAZY
10495 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10496 #  else
10497 #    ifdef DL_LAZY
10498 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10499 #    else
10500 #      ifdef RTLD_NOW
10501 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10502 #      else
10503 #        ifdef DL_NOW
10504 #          define LT_DLLAZY_OR_NOW      DL_NOW
10505 #        else
10506 #          define LT_DLLAZY_OR_NOW      0
10507 #        endif
10508 #      endif
10509 #    endif
10510 #  endif
10511 #endif
10512
10513 #ifdef __cplusplus
10514 extern "C" void exit (int);
10515 #endif
10516
10517 void fnord() { int i=42;}
10518 int main ()
10519 {
10520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10521   int status = $lt_dlunknown;
10522
10523   if (self)
10524     {
10525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10526       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10527       /* dlclose (self); */
10528     }
10529   else
10530     puts (dlerror ());
10531
10532     exit (status);
10533 }
10534 EOF
10535   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536   (eval $ac_link) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10540     (./conftest; exit; ) >&5 2>/dev/null
10541     lt_status=$?
10542     case x$lt_status in
10543       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10544       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10545       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10546     esac
10547   else :
10548     # compilation failed
10549     lt_cv_dlopen_self=no
10550   fi
10551 fi
10552 rm -fr conftest*
10553
10554
10555 fi
10556 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10557 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10558
10559     if test "x$lt_cv_dlopen_self" = xyes; then
10560       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10561       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10562 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10563 if test "${lt_cv_dlopen_self_static+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566           if test "$cross_compiling" = yes; then :
10567   lt_cv_dlopen_self_static=cross
10568 else
10569   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10570   lt_status=$lt_dlunknown
10571   cat > conftest.$ac_ext <<EOF
10572 #line 10572 "configure"
10573 #include "confdefs.h"
10574
10575 #if HAVE_DLFCN_H
10576 #include <dlfcn.h>
10577 #endif
10578
10579 #include <stdio.h>
10580
10581 #ifdef RTLD_GLOBAL
10582 #  define LT_DLGLOBAL           RTLD_GLOBAL
10583 #else
10584 #  ifdef DL_GLOBAL
10585 #    define LT_DLGLOBAL         DL_GLOBAL
10586 #  else
10587 #    define LT_DLGLOBAL         0
10588 #  endif
10589 #endif
10590
10591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10592    find out it does not work in some platform. */
10593 #ifndef LT_DLLAZY_OR_NOW
10594 #  ifdef RTLD_LAZY
10595 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10596 #  else
10597 #    ifdef DL_LAZY
10598 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10599 #    else
10600 #      ifdef RTLD_NOW
10601 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10602 #      else
10603 #        ifdef DL_NOW
10604 #          define LT_DLLAZY_OR_NOW      DL_NOW
10605 #        else
10606 #          define LT_DLLAZY_OR_NOW      0
10607 #        endif
10608 #      endif
10609 #    endif
10610 #  endif
10611 #endif
10612
10613 #ifdef __cplusplus
10614 extern "C" void exit (int);
10615 #endif
10616
10617 void fnord() { int i=42;}
10618 int main ()
10619 {
10620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10621   int status = $lt_dlunknown;
10622
10623   if (self)
10624     {
10625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10626       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10627       /* dlclose (self); */
10628     }
10629   else
10630     puts (dlerror ());
10631
10632     exit (status);
10633 }
10634 EOF
10635   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636   (eval $ac_link) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10640     (./conftest; exit; ) >&5 2>/dev/null
10641     lt_status=$?
10642     case x$lt_status in
10643       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10644       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10645       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10646     esac
10647   else :
10648     # compilation failed
10649     lt_cv_dlopen_self_static=no
10650   fi
10651 fi
10652 rm -fr conftest*
10653
10654
10655 fi
10656 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10657 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10658     fi
10659
10660     CPPFLAGS="$save_CPPFLAGS"
10661     LDFLAGS="$save_LDFLAGS"
10662     LIBS="$save_LIBS"
10663     ;;
10664   esac
10665
10666   case $lt_cv_dlopen_self in
10667   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10668   *) enable_dlopen_self=unknown ;;
10669   esac
10670
10671   case $lt_cv_dlopen_self_static in
10672   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10673   *) enable_dlopen_self_static=unknown ;;
10674   esac
10675 fi
10676
10677
10678 # Report which library types will actually be built
10679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10682 echo "${ECHO_T}$can_build_shared" >&6; }
10683
10684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10686 test "$can_build_shared" = "no" && enable_shared=no
10687
10688 # On AIX, shared libraries and static libraries use the same namespace, and
10689 # are all built from PIC.
10690 case $host_os in
10691 aix3*)
10692   test "$enable_shared" = yes && enable_static=no
10693   if test -n "$RANLIB"; then
10694     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10695     postinstall_cmds='$RANLIB $lib'
10696   fi
10697   ;;
10698
10699 aix[4-9]*)
10700   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10701     test "$enable_shared" = yes && enable_static=no
10702   fi
10703     ;;
10704 esac
10705 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10706 echo "${ECHO_T}$enable_shared" >&6; }
10707
10708 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10710 # Make sure either enable_shared or enable_static is yes.
10711 test "$enable_shared" = yes || enable_static=yes
10712 { echo "$as_me:$LINENO: result: $enable_static" >&5
10713 echo "${ECHO_T}$enable_static" >&6; }
10714
10715 # The else clause should only fire when bootstrapping the
10716 # libtool distribution, otherwise you forgot to ship ltmain.sh
10717 # with your package, and you will get complaints that there are
10718 # no rules to generate ltmain.sh.
10719 if test -f "$ltmain"; then
10720   # See if we are running on zsh, and set the options which allow our commands through
10721   # without removal of \ escapes.
10722   if test -n "${ZSH_VERSION+set}" ; then
10723     setopt NO_GLOB_SUBST
10724   fi
10725   # Now quote all the things that may contain metacharacters while being
10726   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10727   # variables and quote the copies for generation of the libtool script.
10728   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10729     SED SHELL STRIP \
10730     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10731     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10732     deplibs_check_method reload_flag reload_cmds need_locks \
10733     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10734     lt_cv_sys_global_symbol_to_c_name_address \
10735     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10736     old_postinstall_cmds old_postuninstall_cmds \
10737     compiler \
10738     CC \
10739     LD \
10740     lt_prog_compiler_wl \
10741     lt_prog_compiler_pic \
10742     lt_prog_compiler_static \
10743     lt_prog_compiler_no_builtin_flag \
10744     export_dynamic_flag_spec \
10745     thread_safe_flag_spec \
10746     whole_archive_flag_spec \
10747     enable_shared_with_static_runtimes \
10748     old_archive_cmds \
10749     old_archive_from_new_cmds \
10750     predep_objects \
10751     postdep_objects \
10752     predeps \
10753     postdeps \
10754     compiler_lib_search_path \
10755     compiler_lib_search_dirs \
10756     archive_cmds \
10757     archive_expsym_cmds \
10758     postinstall_cmds \
10759     postuninstall_cmds \
10760     old_archive_from_expsyms_cmds \
10761     allow_undefined_flag \
10762     no_undefined_flag \
10763     export_symbols_cmds \
10764     hardcode_libdir_flag_spec \
10765     hardcode_libdir_flag_spec_ld \
10766     hardcode_libdir_separator \
10767     hardcode_automatic \
10768     module_cmds \
10769     module_expsym_cmds \
10770     lt_cv_prog_compiler_c_o \
10771     fix_srcfile_path \
10772     exclude_expsyms \
10773     include_expsyms; do
10774
10775     case $var in
10776     old_archive_cmds | \
10777     old_archive_from_new_cmds | \
10778     archive_cmds | \
10779     archive_expsym_cmds | \
10780     module_cmds | \
10781     module_expsym_cmds | \
10782     old_archive_from_expsyms_cmds | \
10783     export_symbols_cmds | \
10784     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10785     postinstall_cmds | postuninstall_cmds | \
10786     old_postinstall_cmds | old_postuninstall_cmds | \
10787     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10788       # Double-quote double-evaled strings.
10789       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10790       ;;
10791     *)
10792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10793       ;;
10794     esac
10795   done
10796
10797   case $lt_echo in
10798   *'\$0 --fallback-echo"')
10799     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10800     ;;
10801   esac
10802
10803 cfgfile="${ofile}T"
10804   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10805   $rm -f "$cfgfile"
10806   { echo "$as_me:$LINENO: creating $ofile" >&5
10807 echo "$as_me: creating $ofile" >&6;}
10808
10809   cat <<__EOF__ >> "$cfgfile"
10810 #! $SHELL
10811
10812 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10813 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10814 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10815 #
10816 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10817 # Free Software Foundation, Inc.
10818 #
10819 # This file is part of GNU Libtool:
10820 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10821 #
10822 # This program is free software; you can redistribute it and/or modify
10823 # it under the terms of the GNU General Public License as published by
10824 # the Free Software Foundation; either version 2 of the License, or
10825 # (at your option) any later version.
10826 #
10827 # This program is distributed in the hope that it will be useful, but
10828 # WITHOUT ANY WARRANTY; without even the implied warranty of
10829 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10830 # General Public License for more details.
10831 #
10832 # You should have received a copy of the GNU General Public License
10833 # along with this program; if not, write to the Free Software
10834 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10835 #
10836 # As a special exception to the GNU General Public License, if you
10837 # distribute this file as part of a program that contains a
10838 # configuration script generated by Autoconf, you may include it under
10839 # the same distribution terms that you use for the rest of that program.
10840
10841 # A sed program that does not truncate output.
10842 SED=$lt_SED
10843
10844 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10845 Xsed="$SED -e 1s/^X//"
10846
10847 # The HP-UX ksh and POSIX shell print the target directory to stdout
10848 # if CDPATH is set.
10849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10850
10851 # The names of the tagged configurations supported by this script.
10852 available_tags=
10853
10854 # ### BEGIN LIBTOOL CONFIG
10855
10856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10857
10858 # Shell to use when invoking shell scripts.
10859 SHELL=$lt_SHELL
10860
10861 # Whether or not to build shared libraries.
10862 build_libtool_libs=$enable_shared
10863
10864 # Whether or not to build static libraries.
10865 build_old_libs=$enable_static
10866
10867 # Whether or not to add -lc for building shared libraries.
10868 build_libtool_need_lc=$archive_cmds_need_lc
10869
10870 # Whether or not to disallow shared libs when runtime libs are static
10871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10872
10873 # Whether or not to optimize for fast installation.
10874 fast_install=$enable_fast_install
10875
10876 # The host system.
10877 host_alias=$host_alias
10878 host=$host
10879 host_os=$host_os
10880
10881 # The build system.
10882 build_alias=$build_alias
10883 build=$build
10884 build_os=$build_os
10885
10886 # An echo program that does not interpret backslashes.
10887 echo=$lt_echo
10888
10889 # The archiver.
10890 AR=$lt_AR
10891 AR_FLAGS=$lt_AR_FLAGS
10892
10893 # A C compiler.
10894 LTCC=$lt_LTCC
10895
10896 # LTCC compiler flags.
10897 LTCFLAGS=$lt_LTCFLAGS
10898
10899 # A language-specific compiler.
10900 CC=$lt_compiler
10901
10902 # Is the compiler the GNU C compiler?
10903 with_gcc=$GCC
10904
10905 # An ERE matcher.
10906 EGREP=$lt_EGREP
10907
10908 # The linker used to build libraries.
10909 LD=$lt_LD
10910
10911 # Whether we need hard or soft links.
10912 LN_S=$lt_LN_S
10913
10914 # A BSD-compatible nm program.
10915 NM=$lt_NM
10916
10917 # A symbol stripping program
10918 STRIP=$lt_STRIP
10919
10920 # Used to examine libraries when file_magic_cmd begins "file"
10921 MAGIC_CMD=$MAGIC_CMD
10922
10923 # Used on cygwin: DLL creation program.
10924 DLLTOOL="$DLLTOOL"
10925
10926 # Used on cygwin: object dumper.
10927 OBJDUMP="$OBJDUMP"
10928
10929 # Used on cygwin: assembler.
10930 AS="$AS"
10931
10932 # The name of the directory that contains temporary libtool files.
10933 objdir=$objdir
10934
10935 # How to create reloadable object files.
10936 reload_flag=$lt_reload_flag
10937 reload_cmds=$lt_reload_cmds
10938
10939 # How to pass a linker flag through the compiler.
10940 wl=$lt_lt_prog_compiler_wl
10941
10942 # Object file suffix (normally "o").
10943 objext="$ac_objext"
10944
10945 # Old archive suffix (normally "a").
10946 libext="$libext"
10947
10948 # Shared library suffix (normally ".so").
10949 shrext_cmds='$shrext_cmds'
10950
10951 # Executable file suffix (normally "").
10952 exeext="$exeext"
10953
10954 # Additional compiler flags for building library objects.
10955 pic_flag=$lt_lt_prog_compiler_pic
10956 pic_mode=$pic_mode
10957
10958 # What is the maximum length of a command?
10959 max_cmd_len=$lt_cv_sys_max_cmd_len
10960
10961 # Does compiler simultaneously support -c and -o options?
10962 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10963
10964 # Must we lock files when doing compilation?
10965 need_locks=$lt_need_locks
10966
10967 # Do we need the lib prefix for modules?
10968 need_lib_prefix=$need_lib_prefix
10969
10970 # Do we need a version for libraries?
10971 need_version=$need_version
10972
10973 # Whether dlopen is supported.
10974 dlopen_support=$enable_dlopen
10975
10976 # Whether dlopen of programs is supported.
10977 dlopen_self=$enable_dlopen_self
10978
10979 # Whether dlopen of statically linked programs is supported.
10980 dlopen_self_static=$enable_dlopen_self_static
10981
10982 # Compiler flag to prevent dynamic linking.
10983 link_static_flag=$lt_lt_prog_compiler_static
10984
10985 # Compiler flag to turn off builtin functions.
10986 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10987
10988 # Compiler flag to allow reflexive dlopens.
10989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10990
10991 # Compiler flag to generate shared objects directly from archives.
10992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10993
10994 # Compiler flag to generate thread-safe objects.
10995 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10996
10997 # Library versioning type.
10998 version_type=$version_type
10999
11000 # Format of library name prefix.
11001 libname_spec=$lt_libname_spec
11002
11003 # List of archive names.  First name is the real one, the rest are links.
11004 # The last name is the one that the linker finds with -lNAME.
11005 library_names_spec=$lt_library_names_spec
11006
11007 # The coded name of the library, if different from the real name.
11008 soname_spec=$lt_soname_spec
11009
11010 # Commands used to build and install an old-style archive.
11011 RANLIB=$lt_RANLIB
11012 old_archive_cmds=$lt_old_archive_cmds
11013 old_postinstall_cmds=$lt_old_postinstall_cmds
11014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11015
11016 # Create an old-style archive from a shared archive.
11017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11018
11019 # Create a temporary old-style archive to link instead of a shared archive.
11020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11021
11022 # Commands used to build and install a shared archive.
11023 archive_cmds=$lt_archive_cmds
11024 archive_expsym_cmds=$lt_archive_expsym_cmds
11025 postinstall_cmds=$lt_postinstall_cmds
11026 postuninstall_cmds=$lt_postuninstall_cmds
11027
11028 # Commands used to build a loadable module (assumed same as above if empty)
11029 module_cmds=$lt_module_cmds
11030 module_expsym_cmds=$lt_module_expsym_cmds
11031
11032 # Commands to strip libraries.
11033 old_striplib=$lt_old_striplib
11034 striplib=$lt_striplib
11035
11036 # Dependencies to place before the objects being linked to create a
11037 # shared library.
11038 predep_objects=$lt_predep_objects
11039
11040 # Dependencies to place after the objects being linked to create a
11041 # shared library.
11042 postdep_objects=$lt_postdep_objects
11043
11044 # Dependencies to place before the objects being linked to create a
11045 # shared library.
11046 predeps=$lt_predeps
11047
11048 # Dependencies to place after the objects being linked to create a
11049 # shared library.
11050 postdeps=$lt_postdeps
11051
11052 # The directories searched by this compiler when creating a shared
11053 # library
11054 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11055
11056 # The library search path used internally by the compiler when linking
11057 # a shared library.
11058 compiler_lib_search_path=$lt_compiler_lib_search_path
11059
11060 # Method to check whether dependent libraries are shared objects.
11061 deplibs_check_method=$lt_deplibs_check_method
11062
11063 # Command to use when deplibs_check_method == file_magic.
11064 file_magic_cmd=$lt_file_magic_cmd
11065
11066 # Flag that allows shared libraries with undefined symbols to be built.
11067 allow_undefined_flag=$lt_allow_undefined_flag
11068
11069 # Flag that forces no undefined symbols.
11070 no_undefined_flag=$lt_no_undefined_flag
11071
11072 # Commands used to finish a libtool library installation in a directory.
11073 finish_cmds=$lt_finish_cmds
11074
11075 # Same as above, but a single script fragment to be evaled but not shown.
11076 finish_eval=$lt_finish_eval
11077
11078 # Take the output of nm and produce a listing of raw symbols and C names.
11079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11080
11081 # Transform the output of nm in a proper C declaration
11082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11083
11084 # Transform the output of nm in a C name address pair
11085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11086
11087 # This is the shared library runtime path variable.
11088 runpath_var=$runpath_var
11089
11090 # This is the shared library path variable.
11091 shlibpath_var=$shlibpath_var
11092
11093 # Is shlibpath searched before the hard-coded library search path?
11094 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11095
11096 # How to hardcode a shared library path into an executable.
11097 hardcode_action=$hardcode_action
11098
11099 # Whether we should hardcode library paths into libraries.
11100 hardcode_into_libs=$hardcode_into_libs
11101
11102 # Flag to hardcode \$libdir into a binary during linking.
11103 # This must work even if \$libdir does not exist.
11104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11105
11106 # If ld is used when linking, flag to hardcode \$libdir into
11107 # a binary during linking. This must work even if \$libdir does
11108 # not exist.
11109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11110
11111 # Whether we need a single -rpath flag with a separated argument.
11112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11113
11114 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11115 # resulting binary.
11116 hardcode_direct=$hardcode_direct
11117
11118 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11119 # resulting binary.
11120 hardcode_minus_L=$hardcode_minus_L
11121
11122 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11123 # the resulting binary.
11124 hardcode_shlibpath_var=$hardcode_shlibpath_var
11125
11126 # Set to yes if building a shared library automatically hardcodes DIR into the library
11127 # and all subsequent libraries and executables linked against it.
11128 hardcode_automatic=$hardcode_automatic
11129
11130 # Variables whose values should be saved in libtool wrapper scripts and
11131 # restored at relink time.
11132 variables_saved_for_relink="$variables_saved_for_relink"
11133
11134 # Whether libtool must link a program against all its dependency libraries.
11135 link_all_deplibs=$link_all_deplibs
11136
11137 # Compile-time system search path for libraries
11138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11139
11140 # Run-time system search path for libraries
11141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11142
11143 # Fix the shell variable \$srcfile for the compiler.
11144 fix_srcfile_path=$lt_fix_srcfile_path
11145
11146 # Set to yes if exported symbols are required.
11147 always_export_symbols=$always_export_symbols
11148
11149 # The commands to list exported symbols.
11150 export_symbols_cmds=$lt_export_symbols_cmds
11151
11152 # The commands to extract the exported symbol list from a shared archive.
11153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11154
11155 # Symbols that should not be listed in the preloaded symbols.
11156 exclude_expsyms=$lt_exclude_expsyms
11157
11158 # Symbols that must always be exported.
11159 include_expsyms=$lt_include_expsyms
11160
11161 # ### END LIBTOOL CONFIG
11162
11163 __EOF__
11164
11165
11166   case $host_os in
11167   aix3*)
11168     cat <<\EOF >> "$cfgfile"
11169
11170 # AIX sometimes has problems with the GCC collect2 program.  For some
11171 # reason, if we set the COLLECT_NAMES environment variable, the problems
11172 # vanish in a puff of smoke.
11173 if test "X${COLLECT_NAMES+set}" != Xset; then
11174   COLLECT_NAMES=
11175   export COLLECT_NAMES
11176 fi
11177 EOF
11178     ;;
11179   esac
11180
11181   # We use sed instead of cat because bash on DJGPP gets confused if
11182   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11183   # text mode, it properly converts lines to CR/LF.  This bash problem
11184   # is reportedly fixed, but why not run on old versions too?
11185   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11186
11187   mv -f "$cfgfile" "$ofile" || \
11188     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11189   chmod +x "$ofile"
11190
11191 else
11192   # If there is no Makefile yet, we rely on a make rule to execute
11193   # `config.status --recheck' to rerun these tests and create the
11194   # libtool script then.
11195   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11196   if test -f "$ltmain_in"; then
11197     test -f Makefile && make "$ltmain"
11198   fi
11199 fi
11200
11201
11202 ac_ext=c
11203 ac_cpp='$CPP $CPPFLAGS'
11204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11207
11208 CC="$lt_save_CC"
11209
11210
11211 # Check whether --with-tags was given.
11212 if test "${with_tags+set}" = set; then
11213   withval=$with_tags; tagnames="$withval"
11214 fi
11215
11216
11217 if test -f "$ltmain" && test -n "$tagnames"; then
11218   if test ! -f "${ofile}"; then
11219     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11220 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11221   fi
11222
11223   if test -z "$LTCC"; then
11224     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11225     if test -z "$LTCC"; then
11226       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11227 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11228     else
11229       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11230 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11231     fi
11232   fi
11233   if test -z "$LTCFLAGS"; then
11234     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11235   fi
11236
11237   # Extract list of available tagged configurations in $ofile.
11238   # Note that this assumes the entire list is on one line.
11239   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11240
11241   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11242   for tagname in $tagnames; do
11243     IFS="$lt_save_ifs"
11244     # Check whether tagname contains only valid characters
11245     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11246     "") ;;
11247     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11248 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11249    { (exit 1); exit 1; }; }
11250         ;;
11251     esac
11252
11253     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11254     then
11255       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11256 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11257    { (exit 1); exit 1; }; }
11258     fi
11259
11260     # Update the list of available tags.
11261     if test -n "$tagname"; then
11262       echo appending configuration tag \"$tagname\" to $ofile
11263
11264       case $tagname in
11265       CXX)
11266         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11267             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11268             (test "X$CXX" != "Xg++"))) ; then
11269           ac_ext=cpp
11270 ac_cpp='$CXXCPP $CPPFLAGS'
11271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11274
11275
11276
11277
11278 archive_cmds_need_lc_CXX=no
11279 allow_undefined_flag_CXX=
11280 always_export_symbols_CXX=no
11281 archive_expsym_cmds_CXX=
11282 export_dynamic_flag_spec_CXX=
11283 hardcode_direct_CXX=no
11284 hardcode_libdir_flag_spec_CXX=
11285 hardcode_libdir_flag_spec_ld_CXX=
11286 hardcode_libdir_separator_CXX=
11287 hardcode_minus_L_CXX=no
11288 hardcode_shlibpath_var_CXX=unsupported
11289 hardcode_automatic_CXX=no
11290 module_cmds_CXX=
11291 module_expsym_cmds_CXX=
11292 link_all_deplibs_CXX=unknown
11293 old_archive_cmds_CXX=$old_archive_cmds
11294 no_undefined_flag_CXX=
11295 whole_archive_flag_spec_CXX=
11296 enable_shared_with_static_runtimes_CXX=no
11297
11298 # Dependencies to place before and after the object being linked:
11299 predep_objects_CXX=
11300 postdep_objects_CXX=
11301 predeps_CXX=
11302 postdeps_CXX=
11303 compiler_lib_search_path_CXX=
11304 compiler_lib_search_dirs_CXX=
11305
11306 # Source file extension for C++ test sources.
11307 ac_ext=cpp
11308
11309 # Object file extension for compiled C++ test sources.
11310 objext=o
11311 objext_CXX=$objext
11312
11313 # Code to be used in simple compile tests
11314 lt_simple_compile_test_code="int some_variable = 0;"
11315
11316 # Code to be used in simple link tests
11317 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11318
11319 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11320
11321 # If no C compiler was specified, use CC.
11322 LTCC=${LTCC-"$CC"}
11323
11324 # If no C compiler flags were specified, use CFLAGS.
11325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11326
11327 # Allow CC to be a program name with arguments.
11328 compiler=$CC
11329
11330
11331 # save warnings/boilerplate of simple test code
11332 ac_outfile=conftest.$ac_objext
11333 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11334 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11335 _lt_compiler_boilerplate=`cat conftest.err`
11336 $rm conftest*
11337
11338 ac_outfile=conftest.$ac_objext
11339 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11340 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11341 _lt_linker_boilerplate=`cat conftest.err`
11342 $rm -r conftest*
11343
11344
11345 # Allow CC to be a program name with arguments.
11346 lt_save_CC=$CC
11347 lt_save_LD=$LD
11348 lt_save_GCC=$GCC
11349 GCC=$GXX
11350 lt_save_with_gnu_ld=$with_gnu_ld
11351 lt_save_path_LD=$lt_cv_path_LD
11352 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11353   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11354 else
11355   $as_unset lt_cv_prog_gnu_ld
11356 fi
11357 if test -n "${lt_cv_path_LDCXX+set}"; then
11358   lt_cv_path_LD=$lt_cv_path_LDCXX
11359 else
11360   $as_unset lt_cv_path_LD
11361 fi
11362 test -z "${LDCXX+set}" || LD=$LDCXX
11363 CC=${CXX-"c++"}
11364 compiler=$CC
11365 compiler_CXX=$CC
11366 for cc_temp in $compiler""; do
11367   case $cc_temp in
11368     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11369     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11370     \-*) ;;
11371     *) break;;
11372   esac
11373 done
11374 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11375
11376
11377 # We don't want -fno-exception wen compiling C++ code, so set the
11378 # no_builtin_flag separately
11379 if test "$GXX" = yes; then
11380   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11381 else
11382   lt_prog_compiler_no_builtin_flag_CXX=
11383 fi
11384
11385 if test "$GXX" = yes; then
11386   # Set up default GNU C++ configuration
11387
11388
11389 # Check whether --with-gnu-ld was given.
11390 if test "${with_gnu_ld+set}" = set; then
11391   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11392 else
11393   with_gnu_ld=no
11394 fi
11395
11396 ac_prog=ld
11397 if test "$GCC" = yes; then
11398   # Check if gcc -print-prog-name=ld gives a path.
11399   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11400 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11401   case $host in
11402   *-*-mingw*)
11403     # gcc leaves a trailing carriage return which upsets mingw
11404     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11405   *)
11406     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11407   esac
11408   case $ac_prog in
11409     # Accept absolute paths.
11410     [\\/]* | ?:[\\/]*)
11411       re_direlt='/[^/][^/]*/\.\./'
11412       # Canonicalize the pathname of ld
11413       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11414       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11415         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11416       done
11417       test -z "$LD" && LD="$ac_prog"
11418       ;;
11419   "")
11420     # If it fails, then pretend we aren't using GCC.
11421     ac_prog=ld
11422     ;;
11423   *)
11424     # If it is relative, then search for the first ld in PATH.
11425     with_gnu_ld=unknown
11426     ;;
11427   esac
11428 elif test "$with_gnu_ld" = yes; then
11429   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11430 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11431 else
11432   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11433 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11434 fi
11435 if test "${lt_cv_path_LD+set}" = set; then
11436   echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438   if test -z "$LD"; then
11439   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11440   for ac_dir in $PATH; do
11441     IFS="$lt_save_ifs"
11442     test -z "$ac_dir" && ac_dir=.
11443     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11444       lt_cv_path_LD="$ac_dir/$ac_prog"
11445       # Check to see if the program is GNU ld.  I'd rather use --version,
11446       # but apparently some variants of GNU ld only accept -v.
11447       # Break only if it was the GNU/non-GNU ld that we prefer.
11448       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11449       *GNU* | *'with BFD'*)
11450         test "$with_gnu_ld" != no && break
11451         ;;
11452       *)
11453         test "$with_gnu_ld" != yes && break
11454         ;;
11455       esac
11456     fi
11457   done
11458   IFS="$lt_save_ifs"
11459 else
11460   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11461 fi
11462 fi
11463
11464 LD="$lt_cv_path_LD"
11465 if test -n "$LD"; then
11466   { echo "$as_me:$LINENO: result: $LD" >&5
11467 echo "${ECHO_T}$LD" >&6; }
11468 else
11469   { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11471 fi
11472 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11473 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11474    { (exit 1); exit 1; }; }
11475 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11476 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11477 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11478   echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11481 case `$LD -v 2>&1 </dev/null` in
11482 *GNU* | *'with BFD'*)
11483   lt_cv_prog_gnu_ld=yes
11484   ;;
11485 *)
11486   lt_cv_prog_gnu_ld=no
11487   ;;
11488 esac
11489 fi
11490 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11491 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11492 with_gnu_ld=$lt_cv_prog_gnu_ld
11493
11494
11495
11496   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11497   # archiving commands below assume that GNU ld is being used.
11498   if test "$with_gnu_ld" = yes; then
11499     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500     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'
11501
11502     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11503     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11504
11505     # If archive_cmds runs LD, not CC, wlarc should be empty
11506     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11507     #     investigate it a little bit more. (MM)
11508     wlarc='${wl}'
11509
11510     # ancient GNU ld didn't support --whole-archive et. al.
11511     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11512         grep 'no-whole-archive' > /dev/null; then
11513       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11514     else
11515       whole_archive_flag_spec_CXX=
11516     fi
11517   else
11518     with_gnu_ld=no
11519     wlarc=
11520
11521     # A generic and very simple default shared library creation
11522     # command for GNU C++ for the case where it uses the native
11523     # linker, instead of GNU ld.  If possible, this setting should
11524     # overridden to take advantage of the native linker features on
11525     # the platform it is being used on.
11526     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11527   fi
11528
11529   # Commands to make compiler produce verbose output that lists
11530   # what "hidden" libraries, object files and flags are used when
11531   # linking a shared library.
11532   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11533
11534 else
11535   GXX=no
11536   with_gnu_ld=no
11537   wlarc=
11538 fi
11539
11540 # PORTME: fill in a description of your system's C++ link characteristics
11541 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11542 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11543 ld_shlibs_CXX=yes
11544 case $host_os in
11545   aix3*)
11546     # FIXME: insert proper C++ library support
11547     ld_shlibs_CXX=no
11548     ;;
11549   aix[4-9]*)
11550     if test "$host_cpu" = ia64; then
11551       # On IA64, the linker does run time linking by default, so we don't
11552       # have to do anything special.
11553       aix_use_runtimelinking=no
11554       exp_sym_flag='-Bexport'
11555       no_entry_flag=""
11556     else
11557       aix_use_runtimelinking=no
11558
11559       # Test if we are trying to use run time linking or normal
11560       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11561       # need to do runtime linking.
11562       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11563         for ld_flag in $LDFLAGS; do
11564           case $ld_flag in
11565           *-brtl*)
11566             aix_use_runtimelinking=yes
11567             break
11568             ;;
11569           esac
11570         done
11571         ;;
11572       esac
11573
11574       exp_sym_flag='-bexport'
11575       no_entry_flag='-bnoentry'
11576     fi
11577
11578     # When large executables or shared objects are built, AIX ld can
11579     # have problems creating the table of contents.  If linking a library
11580     # or program results in "error TOC overflow" add -mminimal-toc to
11581     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11582     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11583
11584     archive_cmds_CXX=''
11585     hardcode_direct_CXX=yes
11586     hardcode_libdir_separator_CXX=':'
11587     link_all_deplibs_CXX=yes
11588
11589     if test "$GXX" = yes; then
11590       case $host_os in aix4.[012]|aix4.[012].*)
11591       # We only want to do this on AIX 4.2 and lower, the check
11592       # below for broken collect2 doesn't work under 4.3+
11593         collect2name=`${CC} -print-prog-name=collect2`
11594         if test -f "$collect2name" && \
11595            strings "$collect2name" | grep resolve_lib_name >/dev/null
11596         then
11597           # We have reworked collect2
11598           :
11599         else
11600           # We have old collect2
11601           hardcode_direct_CXX=unsupported
11602           # It fails to find uninstalled libraries when the uninstalled
11603           # path is not listed in the libpath.  Setting hardcode_minus_L
11604           # to unsupported forces relinking
11605           hardcode_minus_L_CXX=yes
11606           hardcode_libdir_flag_spec_CXX='-L$libdir'
11607           hardcode_libdir_separator_CXX=
11608         fi
11609         ;;
11610       esac
11611       shared_flag='-shared'
11612       if test "$aix_use_runtimelinking" = yes; then
11613         shared_flag="$shared_flag "'${wl}-G'
11614       fi
11615     else
11616       # not using gcc
11617       if test "$host_cpu" = ia64; then
11618         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11619         # chokes on -Wl,-G. The following line is correct:
11620         shared_flag='-G'
11621       else
11622         if test "$aix_use_runtimelinking" = yes; then
11623           shared_flag='${wl}-G'
11624         else
11625           shared_flag='${wl}-bM:SRE'
11626         fi
11627       fi
11628     fi
11629
11630     # It seems that -bexpall does not export symbols beginning with
11631     # underscore (_), so it is better to generate a list of symbols to export.
11632     always_export_symbols_CXX=yes
11633     if test "$aix_use_runtimelinking" = yes; then
11634       # Warning - without using the other runtime loading flags (-brtl),
11635       # -berok will link without error, but may produce a broken library.
11636       allow_undefined_flag_CXX='-berok'
11637       # Determine the default libpath from the value encoded in an empty executable.
11638       cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644
11645 int
11646 main ()
11647 {
11648
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && {
11667          test -z "$ac_cxx_werror_flag" ||
11668          test ! -s conftest.err
11669        } && test -s conftest$ac_exeext &&
11670        $as_test_x conftest$ac_exeext; then
11671
11672 lt_aix_libpath_sed='
11673     /Import File Strings/,/^$/ {
11674         /^0/ {
11675             s/^0  *\(.*\)$/\1/
11676             p
11677         }
11678     }'
11679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680 # Check for a 64-bit object if we didn't find anything.
11681 if test -z "$aix_libpath"; then
11682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683 fi
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688
11689 fi
11690
11691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11692       conftest$ac_exeext conftest.$ac_ext
11693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11694
11695       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11696
11697       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"
11698      else
11699       if test "$host_cpu" = ia64; then
11700         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11701         allow_undefined_flag_CXX="-z nodefs"
11702         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"
11703       else
11704         # Determine the default libpath from the value encoded in an empty executable.
11705         cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h.  */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h.  */
11711
11712 int
11713 main ()
11714 {
11715
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (ac_try="$ac_link"
11722 case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_link") 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } && {
11734          test -z "$ac_cxx_werror_flag" ||
11735          test ! -s conftest.err
11736        } && test -s conftest$ac_exeext &&
11737        $as_test_x conftest$ac_exeext; then
11738
11739 lt_aix_libpath_sed='
11740     /Import File Strings/,/^$/ {
11741         /^0/ {
11742             s/^0  *\(.*\)$/\1/
11743             p
11744         }
11745     }'
11746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 # Check for a 64-bit object if we didn't find anything.
11748 if test -z "$aix_libpath"; then
11749   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11750 fi
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759       conftest$ac_exeext conftest.$ac_ext
11760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11761
11762         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11763         # Warning - without using the other run time loading flags,
11764         # -berok will link without error, but may produce a broken library.
11765         no_undefined_flag_CXX=' ${wl}-bernotok'
11766         allow_undefined_flag_CXX=' ${wl}-berok'
11767         # Exported symbols can be pulled into shared objects from archives
11768         whole_archive_flag_spec_CXX='$convenience'
11769         archive_cmds_need_lc_CXX=yes
11770         # This is similar to how AIX traditionally builds its shared libraries.
11771         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'
11772       fi
11773     fi
11774     ;;
11775
11776   beos*)
11777     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11778       allow_undefined_flag_CXX=unsupported
11779       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11780       # support --undefined.  This deserves some investigation.  FIXME
11781       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11782     else
11783       ld_shlibs_CXX=no
11784     fi
11785     ;;
11786
11787   chorus*)
11788     case $cc_basename in
11789       *)
11790         # FIXME: insert proper C++ library support
11791         ld_shlibs_CXX=no
11792         ;;
11793     esac
11794     ;;
11795
11796   cygwin* | mingw* | pw32*)
11797     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11798     # as there is no search path for DLLs.
11799     hardcode_libdir_flag_spec_CXX='-L$libdir'
11800     allow_undefined_flag_CXX=unsupported
11801     always_export_symbols_CXX=no
11802     enable_shared_with_static_runtimes_CXX=yes
11803
11804     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11805       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'
11806       # If the export-symbols file already is a .def file (1st line
11807       # is EXPORTS), use it as is; otherwise, prepend...
11808       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11809         cp $export_symbols $output_objdir/$soname.def;
11810       else
11811         echo EXPORTS > $output_objdir/$soname.def;
11812         cat $export_symbols >> $output_objdir/$soname.def;
11813       fi~
11814       $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'
11815     else
11816       ld_shlibs_CXX=no
11817     fi
11818   ;;
11819       darwin* | rhapsody*)
11820       archive_cmds_need_lc_CXX=no
11821       hardcode_direct_CXX=no
11822       hardcode_automatic_CXX=yes
11823       hardcode_shlibpath_var_CXX=unsupported
11824       whole_archive_flag_spec_CXX=''
11825       link_all_deplibs_CXX=yes
11826       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11827       if test "$GXX" = yes ; then
11828       output_verbose_link_cmd='echo'
11829       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11830       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11831       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11832       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11833       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11834         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${_lt_dsymutil}"
11835         archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11836       fi
11837       else
11838       case $cc_basename in
11839         xlc*)
11840          output_verbose_link_cmd='echo'
11841           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11842           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11843           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11844           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11845           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}'
11846           ;;
11847        *)
11848          ld_shlibs_CXX=no
11849           ;;
11850       esac
11851       fi
11852         ;;
11853
11854   dgux*)
11855     case $cc_basename in
11856       ec++*)
11857         # FIXME: insert proper C++ library support
11858         ld_shlibs_CXX=no
11859         ;;
11860       ghcx*)
11861         # Green Hills C++ Compiler
11862         # FIXME: insert proper C++ library support
11863         ld_shlibs_CXX=no
11864         ;;
11865       *)
11866         # FIXME: insert proper C++ library support
11867         ld_shlibs_CXX=no
11868         ;;
11869     esac
11870     ;;
11871   freebsd[12]*)
11872     # C++ shared libraries reported to be fairly broken before switch to ELF
11873     ld_shlibs_CXX=no
11874     ;;
11875   freebsd-elf*)
11876     archive_cmds_need_lc_CXX=no
11877     ;;
11878   freebsd* | dragonfly*)
11879     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11880     # conventions
11881     ld_shlibs_CXX=yes
11882     ;;
11883   gnu*)
11884     ;;
11885   hpux9*)
11886     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11887     hardcode_libdir_separator_CXX=:
11888     export_dynamic_flag_spec_CXX='${wl}-E'
11889     hardcode_direct_CXX=yes
11890     hardcode_minus_L_CXX=yes # Not in the search PATH,
11891                                 # but as the default
11892                                 # location of the library.
11893
11894     case $cc_basename in
11895     CC*)
11896       # FIXME: insert proper C++ library support
11897       ld_shlibs_CXX=no
11898       ;;
11899     aCC*)
11900       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'
11901       # Commands to make compiler produce verbose output that lists
11902       # what "hidden" libraries, object files and flags are used when
11903       # linking a shared library.
11904       #
11905       # There doesn't appear to be a way to prevent this compiler from
11906       # explicitly linking system object files so we need to strip them
11907       # from the output so that they don't get included in the library
11908       # dependencies.
11909       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'
11910       ;;
11911     *)
11912       if test "$GXX" = yes; then
11913         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'
11914       else
11915         # FIXME: insert proper C++ library support
11916         ld_shlibs_CXX=no
11917       fi
11918       ;;
11919     esac
11920     ;;
11921   hpux10*|hpux11*)
11922     if test $with_gnu_ld = no; then
11923       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11924       hardcode_libdir_separator_CXX=:
11925
11926       case $host_cpu in
11927       hppa*64*|ia64*) ;;
11928       *)
11929         export_dynamic_flag_spec_CXX='${wl}-E'
11930         ;;
11931       esac
11932     fi
11933     case $host_cpu in
11934     hppa*64*|ia64*)
11935       hardcode_direct_CXX=no
11936       hardcode_shlibpath_var_CXX=no
11937       ;;
11938     *)
11939       hardcode_direct_CXX=yes
11940       hardcode_minus_L_CXX=yes # Not in the search PATH,
11941                                               # but as the default
11942                                               # location of the library.
11943       ;;
11944     esac
11945
11946     case $cc_basename in
11947       CC*)
11948         # FIXME: insert proper C++ library support
11949         ld_shlibs_CXX=no
11950         ;;
11951       aCC*)
11952         case $host_cpu in
11953         hppa*64*)
11954           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955           ;;
11956         ia64*)
11957           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958           ;;
11959         *)
11960           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961           ;;
11962         esac
11963         # Commands to make compiler produce verbose output that lists
11964         # what "hidden" libraries, object files and flags are used when
11965         # linking a shared library.
11966         #
11967         # There doesn't appear to be a way to prevent this compiler from
11968         # explicitly linking system object files so we need to strip them
11969         # from the output so that they don't get included in the library
11970         # dependencies.
11971         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'
11972         ;;
11973       *)
11974         if test "$GXX" = yes; then
11975           if test $with_gnu_ld = no; then
11976             case $host_cpu in
11977             hppa*64*)
11978               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11979               ;;
11980             ia64*)
11981               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11982               ;;
11983             *)
11984               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'
11985               ;;
11986             esac
11987           fi
11988         else
11989           # FIXME: insert proper C++ library support
11990           ld_shlibs_CXX=no
11991         fi
11992         ;;
11993     esac
11994     ;;
11995   interix[3-9]*)
11996     hardcode_direct_CXX=no
11997     hardcode_shlibpath_var_CXX=no
11998     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11999     export_dynamic_flag_spec_CXX='${wl}-E'
12000     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12001     # Instead, shared libraries are loaded at an image base (0x10000000 by
12002     # default) and relocated if they conflict, which is a slow very memory
12003     # consuming and fragmenting process.  To avoid this, we pick a random,
12004     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12005     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12006     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'
12007     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'
12008     ;;
12009   irix5* | irix6*)
12010     case $cc_basename in
12011       CC*)
12012         # SGI C++
12013         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'
12014
12015         # Archives containing C++ object files must be created using
12016         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12017         # necessary to make sure instantiated templates are included
12018         # in the archive.
12019         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12020         ;;
12021       *)
12022         if test "$GXX" = yes; then
12023           if test "$with_gnu_ld" = no; then
12024             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'
12025           else
12026             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'
12027           fi
12028         fi
12029         link_all_deplibs_CXX=yes
12030         ;;
12031     esac
12032     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12033     hardcode_libdir_separator_CXX=:
12034     ;;
12035   linux* | k*bsd*-gnu)
12036     case $cc_basename in
12037       KCC*)
12038         # Kuck and Associates, Inc. (KAI) C++ Compiler
12039
12040         # KCC will only create a shared library if the output file
12041         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042         # to its proper name (with version) after linking.
12043         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'
12044         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'
12045         # Commands to make compiler produce verbose output that lists
12046         # what "hidden" libraries, object files and flags are used when
12047         # linking a shared library.
12048         #
12049         # There doesn't appear to be a way to prevent this compiler from
12050         # explicitly linking system object files so we need to strip them
12051         # from the output so that they don't get included in the library
12052         # dependencies.
12053         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'
12054
12055         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12056         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057
12058         # Archives containing C++ object files must be created using
12059         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12061         ;;
12062       icpc*)
12063         # Intel C++
12064         with_gnu_ld=yes
12065         # version 8.0 and above of icpc choke on multiply defined symbols
12066         # if we add $predep_objects and $postdep_objects, however 7.1 and
12067         # earlier do not add the objects themselves.
12068         case `$CC -V 2>&1` in
12069         *"Version 7."*)
12070           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071           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'
12072           ;;
12073         *)  # Version 8.0 or newer
12074           tmp_idyn=
12075           case $host_cpu in
12076             ia64*) tmp_idyn=' -i_dynamic';;
12077           esac
12078           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079           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'
12080           ;;
12081         esac
12082         archive_cmds_need_lc_CXX=no
12083         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12084         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12086         ;;
12087       pgCC* | pgcpp*)
12088         # Portland Group C++ compiler
12089         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12090         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'
12091
12092         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12093         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12094         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'
12095         ;;
12096       cxx*)
12097         # Compaq C++
12098         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12099         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'
12100
12101         runpath_var=LD_RUN_PATH
12102         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12103         hardcode_libdir_separator_CXX=:
12104
12105         # Commands to make compiler produce verbose output that lists
12106         # what "hidden" libraries, object files and flags are used when
12107         # linking a shared library.
12108         #
12109         # There doesn't appear to be a way to prevent this compiler from
12110         # explicitly linking system object files so we need to strip them
12111         # from the output so that they don't get included in the library
12112         # dependencies.
12113         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'
12114         ;;
12115       *)
12116         case `$CC -V 2>&1 | sed 5q` in
12117         *Sun\ C*)
12118           # Sun C++ 5.9
12119           no_undefined_flag_CXX=' -zdefs'
12120           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12121           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12122           hardcode_libdir_flag_spec_CXX='-R$libdir'
12123           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12124
12125           # Not sure whether something based on
12126           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12127           # would be better.
12128           output_verbose_link_cmd='echo'
12129
12130           # Archives containing C++ object files must be created using
12131           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12132           # necessary to make sure instantiated templates are included
12133           # in the archive.
12134           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12135           ;;
12136         esac
12137         ;;
12138     esac
12139     ;;
12140   lynxos*)
12141     # FIXME: insert proper C++ library support
12142     ld_shlibs_CXX=no
12143     ;;
12144   m88k*)
12145     # FIXME: insert proper C++ library support
12146     ld_shlibs_CXX=no
12147     ;;
12148   mvs*)
12149     case $cc_basename in
12150       cxx*)
12151         # FIXME: insert proper C++ library support
12152         ld_shlibs_CXX=no
12153         ;;
12154       *)
12155         # FIXME: insert proper C++ library support
12156         ld_shlibs_CXX=no
12157         ;;
12158     esac
12159     ;;
12160   netbsd* | netbsdelf*-gnu)
12161     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12162       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12163       wlarc=
12164       hardcode_libdir_flag_spec_CXX='-R$libdir'
12165       hardcode_direct_CXX=yes
12166       hardcode_shlibpath_var_CXX=no
12167     fi
12168     # Workaround some broken pre-1.5 toolchains
12169     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12170     ;;
12171   openbsd2*)
12172     # C++ shared libraries are fairly broken
12173     ld_shlibs_CXX=no
12174     ;;
12175   openbsd*)
12176     if test -f /usr/libexec/ld.so; then
12177       hardcode_direct_CXX=yes
12178       hardcode_shlibpath_var_CXX=no
12179       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12180       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12182         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12183         export_dynamic_flag_spec_CXX='${wl}-E'
12184         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12185       fi
12186       output_verbose_link_cmd='echo'
12187     else
12188       ld_shlibs_CXX=no
12189     fi
12190     ;;
12191   osf3*)
12192     case $cc_basename in
12193       KCC*)
12194         # Kuck and Associates, Inc. (KAI) C++ Compiler
12195
12196         # KCC will only create a shared library if the output file
12197         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12198         # to its proper name (with version) after linking.
12199         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'
12200
12201         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12202         hardcode_libdir_separator_CXX=:
12203
12204         # Archives containing C++ object files must be created using
12205         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12206         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12207
12208         ;;
12209       RCC*)
12210         # Rational C++ 2.4.1
12211         # FIXME: insert proper C++ library support
12212         ld_shlibs_CXX=no
12213         ;;
12214       cxx*)
12215         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12216         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'
12217
12218         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219         hardcode_libdir_separator_CXX=:
12220
12221         # Commands to make compiler produce verbose output that lists
12222         # what "hidden" libraries, object files and flags are used when
12223         # linking a shared library.
12224         #
12225         # There doesn't appear to be a way to prevent this compiler from
12226         # explicitly linking system object files so we need to strip them
12227         # from the output so that they don't get included in the library
12228         # dependencies.
12229         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'
12230         ;;
12231       *)
12232         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12233           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12234           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'
12235
12236           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12237           hardcode_libdir_separator_CXX=:
12238
12239           # Commands to make compiler produce verbose output that lists
12240           # what "hidden" libraries, object files and flags are used when
12241           # linking a shared library.
12242           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12243
12244         else
12245           # FIXME: insert proper C++ library support
12246           ld_shlibs_CXX=no
12247         fi
12248         ;;
12249     esac
12250     ;;
12251   osf4* | osf5*)
12252     case $cc_basename in
12253       KCC*)
12254         # Kuck and Associates, Inc. (KAI) C++ Compiler
12255
12256         # KCC will only create a shared library if the output file
12257         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12258         # to its proper name (with version) after linking.
12259         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'
12260
12261         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262         hardcode_libdir_separator_CXX=:
12263
12264         # Archives containing C++ object files must be created using
12265         # the KAI C++ compiler.
12266         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12267         ;;
12268       RCC*)
12269         # Rational C++ 2.4.1
12270         # FIXME: insert proper C++ library support
12271         ld_shlibs_CXX=no
12272         ;;
12273       cxx*)
12274         allow_undefined_flag_CXX=' -expect_unresolved \*'
12275         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'
12276         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12277           echo "-hidden">> $lib.exp~
12278           $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~
12279           $rm $lib.exp'
12280
12281         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12282         hardcode_libdir_separator_CXX=:
12283
12284         # Commands to make compiler produce verbose output that lists
12285         # what "hidden" libraries, object files and flags are used when
12286         # linking a shared library.
12287         #
12288         # There doesn't appear to be a way to prevent this compiler from
12289         # explicitly linking system object files so we need to strip them
12290         # from the output so that they don't get included in the library
12291         # dependencies.
12292         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'
12293         ;;
12294       *)
12295         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12296           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12297          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'
12298
12299           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12300           hardcode_libdir_separator_CXX=:
12301
12302           # Commands to make compiler produce verbose output that lists
12303           # what "hidden" libraries, object files and flags are used when
12304           # linking a shared library.
12305           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12306
12307         else
12308           # FIXME: insert proper C++ library support
12309           ld_shlibs_CXX=no
12310         fi
12311         ;;
12312     esac
12313     ;;
12314   psos*)
12315     # FIXME: insert proper C++ library support
12316     ld_shlibs_CXX=no
12317     ;;
12318   sunos4*)
12319     case $cc_basename in
12320       CC*)
12321         # Sun C++ 4.x
12322         # FIXME: insert proper C++ library support
12323         ld_shlibs_CXX=no
12324         ;;
12325       lcc*)
12326         # Lucid
12327         # FIXME: insert proper C++ library support
12328         ld_shlibs_CXX=no
12329         ;;
12330       *)
12331         # FIXME: insert proper C++ library support
12332         ld_shlibs_CXX=no
12333         ;;
12334     esac
12335     ;;
12336   solaris*)
12337     case $cc_basename in
12338       CC*)
12339         # Sun C++ 4.2, 5.x and Centerline C++
12340         archive_cmds_need_lc_CXX=yes
12341         no_undefined_flag_CXX=' -zdefs'
12342         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12344         $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'
12345
12346         hardcode_libdir_flag_spec_CXX='-R$libdir'
12347         hardcode_shlibpath_var_CXX=no
12348         case $host_os in
12349           solaris2.[0-5] | solaris2.[0-5].*) ;;
12350           *)
12351             # The compiler driver will combine and reorder linker options,
12352             # but understands `-z linker_flag'.
12353             # Supported since Solaris 2.6 (maybe 2.5.1?)
12354             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12355             ;;
12356         esac
12357         link_all_deplibs_CXX=yes
12358
12359         output_verbose_link_cmd='echo'
12360
12361         # Archives containing C++ object files must be created using
12362         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12363         # necessary to make sure instantiated templates are included
12364         # in the archive.
12365         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12366         ;;
12367       gcx*)
12368         # Green Hills C++ Compiler
12369         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12370
12371         # The C++ compiler must be used to create the archive.
12372         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12373         ;;
12374       *)
12375         # GNU C++ compiler with Solaris linker
12376         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12377           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12378           if $CC --version | grep -v '^2\.7' > /dev/null; then
12379             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12380             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12381                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12382
12383             # Commands to make compiler produce verbose output that lists
12384             # what "hidden" libraries, object files and flags are used when
12385             # linking a shared library.
12386             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12387           else
12388             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12389             # platform.
12390             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12391             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12392                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12393
12394             # Commands to make compiler produce verbose output that lists
12395             # what "hidden" libraries, object files and flags are used when
12396             # linking a shared library.
12397             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12398           fi
12399
12400           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12401           case $host_os in
12402           solaris2.[0-5] | solaris2.[0-5].*) ;;
12403           *)
12404             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12405             ;;
12406           esac
12407         fi
12408         ;;
12409     esac
12410     ;;
12411   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12412     no_undefined_flag_CXX='${wl}-z,text'
12413     archive_cmds_need_lc_CXX=no
12414     hardcode_shlibpath_var_CXX=no
12415     runpath_var='LD_RUN_PATH'
12416
12417     case $cc_basename in
12418       CC*)
12419         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421         ;;
12422       *)
12423         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425         ;;
12426     esac
12427     ;;
12428   sysv5* | sco3.2v5* | sco5v6*)
12429     # Note: We can NOT use -z defs as we might desire, because we do not
12430     # link with -lc, and that would cause any symbols used from libc to
12431     # always be unresolved, which means just about no library would
12432     # ever link correctly.  If we're not using GNU ld we use -z text
12433     # though, which does catch some bad symbols but isn't as heavy-handed
12434     # as -z defs.
12435     # For security reasons, it is highly recommended that you always
12436     # use absolute paths for naming shared libraries, and exclude the
12437     # DT_RUNPATH tag from executables and libraries.  But doing so
12438     # requires that you compile everything twice, which is a pain.
12439     # So that behaviour is only enabled if SCOABSPATH is set to a
12440     # non-empty value in the environment.  Most likely only useful for
12441     # creating official distributions of packages.
12442     # This is a hack until libtool officially supports absolute path
12443     # names for shared libraries.
12444     no_undefined_flag_CXX='${wl}-z,text'
12445     allow_undefined_flag_CXX='${wl}-z,nodefs'
12446     archive_cmds_need_lc_CXX=no
12447     hardcode_shlibpath_var_CXX=no
12448     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12449     hardcode_libdir_separator_CXX=':'
12450     link_all_deplibs_CXX=yes
12451     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12452     runpath_var='LD_RUN_PATH'
12453
12454     case $cc_basename in
12455       CC*)
12456         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12457         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458         ;;
12459       *)
12460         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12461         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462         ;;
12463     esac
12464     ;;
12465   tandem*)
12466     case $cc_basename in
12467       NCC*)
12468         # NonStop-UX NCC 3.20
12469         # FIXME: insert proper C++ library support
12470         ld_shlibs_CXX=no
12471         ;;
12472       *)
12473         # FIXME: insert proper C++ library support
12474         ld_shlibs_CXX=no
12475         ;;
12476     esac
12477     ;;
12478   vxworks*)
12479     # FIXME: insert proper C++ library support
12480     ld_shlibs_CXX=no
12481     ;;
12482   *)
12483     # FIXME: insert proper C++ library support
12484     ld_shlibs_CXX=no
12485     ;;
12486 esac
12487 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12489 test "$ld_shlibs_CXX" = no && can_build_shared=no
12490
12491 GCC_CXX="$GXX"
12492 LD_CXX="$LD"
12493
12494 cat > conftest.$ac_ext <<EOF
12495 class Foo
12496 {
12497 public:
12498   Foo (void) { a = 0; }
12499 private:
12500   int a;
12501 };
12502 EOF
12503
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; then
12509   # Parse the compiler output and extract the necessary
12510   # objects, libraries and library flags.
12511
12512   # Sentinel used to keep track of whether or not we are before
12513   # the conftest object file.
12514   pre_test_object_deps_done=no
12515
12516   # The `*' in the case matches for architectures that use `case' in
12517   # $output_verbose_cmd can trigger glob expansion during the loop
12518   # eval without this substitution.
12519   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12520
12521   for p in `eval $output_verbose_link_cmd`; do
12522     case $p in
12523
12524     -L* | -R* | -l*)
12525        # Some compilers place space between "-{L,R}" and the path.
12526        # Remove the space.
12527        if test $p = "-L" \
12528           || test $p = "-R"; then
12529          prev=$p
12530          continue
12531        else
12532          prev=
12533        fi
12534
12535        if test "$pre_test_object_deps_done" = no; then
12536          case $p in
12537          -L* | -R*)
12538            # Internal compiler library paths should come after those
12539            # provided the user.  The postdeps already come after the
12540            # user supplied libs so there is no need to process them.
12541            if test -z "$compiler_lib_search_path_CXX"; then
12542              compiler_lib_search_path_CXX="${prev}${p}"
12543            else
12544              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12545            fi
12546            ;;
12547          # The "-l" case would never come before the object being
12548          # linked, so don't bother handling this case.
12549          esac
12550        else
12551          if test -z "$postdeps_CXX"; then
12552            postdeps_CXX="${prev}${p}"
12553          else
12554            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12555          fi
12556        fi
12557        ;;
12558
12559     *.$objext)
12560        # This assumes that the test object file only shows up
12561        # once in the compiler output.
12562        if test "$p" = "conftest.$objext"; then
12563          pre_test_object_deps_done=yes
12564          continue
12565        fi
12566
12567        if test "$pre_test_object_deps_done" = no; then
12568          if test -z "$predep_objects_CXX"; then
12569            predep_objects_CXX="$p"
12570          else
12571            predep_objects_CXX="$predep_objects_CXX $p"
12572          fi
12573        else
12574          if test -z "$postdep_objects_CXX"; then
12575            postdep_objects_CXX="$p"
12576          else
12577            postdep_objects_CXX="$postdep_objects_CXX $p"
12578          fi
12579        fi
12580        ;;
12581
12582     *) ;; # Ignore the rest.
12583
12584     esac
12585   done
12586
12587   # Clean up.
12588   rm -f a.out a.exe
12589 else
12590   echo "libtool.m4: error: problem compiling CXX test program"
12591 fi
12592
12593 $rm -f confest.$objext
12594
12595 compiler_lib_search_dirs_CXX=
12596 if test -n "$compiler_lib_search_path_CXX"; then
12597   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12598 fi
12599
12600 # PORTME: override above test on systems where it is broken
12601 case $host_os in
12602 interix[3-9]*)
12603   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12604   # hack all around it, let's just trust "g++" to DTRT.
12605   predep_objects_CXX=
12606   postdep_objects_CXX=
12607   postdeps_CXX=
12608   ;;
12609
12610 linux*)
12611   case `$CC -V 2>&1 | sed 5q` in
12612   *Sun\ C*)
12613     # Sun C++ 5.9
12614     #
12615     # The more standards-conforming stlport4 library is
12616     # incompatible with the Cstd library. Avoid specifying
12617     # it if it's in CXXFLAGS. Ignore libCrun as
12618     # -library=stlport4 depends on it.
12619     case " $CXX $CXXFLAGS " in
12620     *" -library=stlport4 "*)
12621       solaris_use_stlport4=yes
12622       ;;
12623     esac
12624     if test "$solaris_use_stlport4" != yes; then
12625       postdeps_CXX='-library=Cstd -library=Crun'
12626     fi
12627     ;;
12628   esac
12629   ;;
12630
12631 solaris*)
12632   case $cc_basename in
12633   CC*)
12634     # The more standards-conforming stlport4 library is
12635     # incompatible with the Cstd library. Avoid specifying
12636     # it if it's in CXXFLAGS. Ignore libCrun as
12637     # -library=stlport4 depends on it.
12638     case " $CXX $CXXFLAGS " in
12639     *" -library=stlport4 "*)
12640       solaris_use_stlport4=yes
12641       ;;
12642     esac
12643
12644     # Adding this requires a known-good setup of shared libraries for
12645     # Sun compiler versions before 5.6, else PIC objects from an old
12646     # archive will be linked into the output, leading to subtle bugs.
12647     if test "$solaris_use_stlport4" != yes; then
12648       postdeps_CXX='-library=Cstd -library=Crun'
12649     fi
12650     ;;
12651   esac
12652   ;;
12653 esac
12654
12655 case " $postdeps_CXX " in
12656 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12657 esac
12658
12659 lt_prog_compiler_wl_CXX=
12660 lt_prog_compiler_pic_CXX=
12661 lt_prog_compiler_static_CXX=
12662
12663 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12664 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12665
12666   # C++ specific cases for pic, static, wl, etc.
12667   if test "$GXX" = yes; then
12668     lt_prog_compiler_wl_CXX='-Wl,'
12669     lt_prog_compiler_static_CXX='-static'
12670
12671     case $host_os in
12672     aix*)
12673       # All AIX code is PIC.
12674       if test "$host_cpu" = ia64; then
12675         # AIX 5 now supports IA64 processor
12676         lt_prog_compiler_static_CXX='-Bstatic'
12677       fi
12678       ;;
12679     amigaos*)
12680       # FIXME: we need at least 68020 code to build shared libraries, but
12681       # adding the `-m68020' flag to GCC prevents building anything better,
12682       # like `-m68040'.
12683       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12684       ;;
12685     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12686       # PIC is the default for these OSes.
12687       ;;
12688     mingw* | cygwin* | os2* | pw32*)
12689       # This hack is so that the source file can tell whether it is being
12690       # built for inclusion in a dll (and should export symbols for example).
12691       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12692       # (--disable-auto-import) libraries
12693       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12694       ;;
12695     darwin* | rhapsody*)
12696       # PIC is the default on this platform
12697       # Common symbols not allowed in MH_DYLIB files
12698       lt_prog_compiler_pic_CXX='-fno-common'
12699       ;;
12700     *djgpp*)
12701       # DJGPP does not support shared libraries at all
12702       lt_prog_compiler_pic_CXX=
12703       ;;
12704     interix[3-9]*)
12705       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12706       # Instead, we relocate shared libraries at runtime.
12707       ;;
12708     sysv4*MP*)
12709       if test -d /usr/nec; then
12710         lt_prog_compiler_pic_CXX=-Kconform_pic
12711       fi
12712       ;;
12713     hpux*)
12714       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12715       # not for PA HP-UX.
12716       case $host_cpu in
12717       hppa*64*|ia64*)
12718         ;;
12719       *)
12720         lt_prog_compiler_pic_CXX='-fPIC'
12721         ;;
12722       esac
12723       ;;
12724     *)
12725       lt_prog_compiler_pic_CXX='-fPIC'
12726       ;;
12727     esac
12728   else
12729     case $host_os in
12730       aix[4-9]*)
12731         # All AIX code is PIC.
12732         if test "$host_cpu" = ia64; then
12733           # AIX 5 now supports IA64 processor
12734           lt_prog_compiler_static_CXX='-Bstatic'
12735         else
12736           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12737         fi
12738         ;;
12739       chorus*)
12740         case $cc_basename in
12741         cxch68*)
12742           # Green Hills C++ Compiler
12743           # _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"
12744           ;;
12745         esac
12746         ;;
12747        darwin*)
12748          # PIC is the default on this platform
12749          # Common symbols not allowed in MH_DYLIB files
12750          case $cc_basename in
12751            xlc*)
12752            lt_prog_compiler_pic_CXX='-qnocommon'
12753            lt_prog_compiler_wl_CXX='-Wl,'
12754            ;;
12755          esac
12756        ;;
12757       dgux*)
12758         case $cc_basename in
12759           ec++*)
12760             lt_prog_compiler_pic_CXX='-KPIC'
12761             ;;
12762           ghcx*)
12763             # Green Hills C++ Compiler
12764             lt_prog_compiler_pic_CXX='-pic'
12765             ;;
12766           *)
12767             ;;
12768         esac
12769         ;;
12770       freebsd* | dragonfly*)
12771         # FreeBSD uses GNU C++
12772         ;;
12773       hpux9* | hpux10* | hpux11*)
12774         case $cc_basename in
12775           CC*)
12776             lt_prog_compiler_wl_CXX='-Wl,'
12777             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12778             if test "$host_cpu" != ia64; then
12779               lt_prog_compiler_pic_CXX='+Z'
12780             fi
12781             ;;
12782           aCC*)
12783             lt_prog_compiler_wl_CXX='-Wl,'
12784             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12785             case $host_cpu in
12786             hppa*64*|ia64*)
12787               # +Z the default
12788               ;;
12789             *)
12790               lt_prog_compiler_pic_CXX='+Z'
12791               ;;
12792             esac
12793             ;;
12794           *)
12795             ;;
12796         esac
12797         ;;
12798       interix*)
12799         # This is c89, which is MS Visual C++ (no shared libs)
12800         # Anyone wants to do a port?
12801         ;;
12802       irix5* | irix6* | nonstopux*)
12803         case $cc_basename in
12804           CC*)
12805             lt_prog_compiler_wl_CXX='-Wl,'
12806             lt_prog_compiler_static_CXX='-non_shared'
12807             # CC pic flag -KPIC is the default.
12808             ;;
12809           *)
12810             ;;
12811         esac
12812         ;;
12813       linux* | k*bsd*-gnu)
12814         case $cc_basename in
12815           KCC*)
12816             # KAI C++ Compiler
12817             lt_prog_compiler_wl_CXX='--backend -Wl,'
12818             lt_prog_compiler_pic_CXX='-fPIC'
12819             ;;
12820           icpc* | ecpc*)
12821             # Intel C++
12822             lt_prog_compiler_wl_CXX='-Wl,'
12823             lt_prog_compiler_pic_CXX='-KPIC'
12824             lt_prog_compiler_static_CXX='-static'
12825             ;;
12826           pgCC* | pgcpp*)
12827             # Portland Group C++ compiler.
12828             lt_prog_compiler_wl_CXX='-Wl,'
12829             lt_prog_compiler_pic_CXX='-fpic'
12830             lt_prog_compiler_static_CXX='-Bstatic'
12831             ;;
12832           cxx*)
12833             # Compaq C++
12834             # Make sure the PIC flag is empty.  It appears that all Alpha
12835             # Linux and Compaq Tru64 Unix objects are PIC.
12836             lt_prog_compiler_pic_CXX=
12837             lt_prog_compiler_static_CXX='-non_shared'
12838             ;;
12839           *)
12840             case `$CC -V 2>&1 | sed 5q` in
12841             *Sun\ C*)
12842               # Sun C++ 5.9
12843               lt_prog_compiler_pic_CXX='-KPIC'
12844               lt_prog_compiler_static_CXX='-Bstatic'
12845               lt_prog_compiler_wl_CXX='-Qoption ld '
12846               ;;
12847             esac
12848             ;;
12849         esac
12850         ;;
12851       lynxos*)
12852         ;;
12853       m88k*)
12854         ;;
12855       mvs*)
12856         case $cc_basename in
12857           cxx*)
12858             lt_prog_compiler_pic_CXX='-W c,exportall'
12859             ;;
12860           *)
12861             ;;
12862         esac
12863         ;;
12864       netbsd* | netbsdelf*-gnu)
12865         ;;
12866       osf3* | osf4* | osf5*)
12867         case $cc_basename in
12868           KCC*)
12869             lt_prog_compiler_wl_CXX='--backend -Wl,'
12870             ;;
12871           RCC*)
12872             # Rational C++ 2.4.1
12873             lt_prog_compiler_pic_CXX='-pic'
12874             ;;
12875           cxx*)
12876             # Digital/Compaq C++
12877             lt_prog_compiler_wl_CXX='-Wl,'
12878             # Make sure the PIC flag is empty.  It appears that all Alpha
12879             # Linux and Compaq Tru64 Unix objects are PIC.
12880             lt_prog_compiler_pic_CXX=
12881             lt_prog_compiler_static_CXX='-non_shared'
12882             ;;
12883           *)
12884             ;;
12885         esac
12886         ;;
12887       psos*)
12888         ;;
12889       solaris*)
12890         case $cc_basename in
12891           CC*)
12892             # Sun C++ 4.2, 5.x and Centerline C++
12893             lt_prog_compiler_pic_CXX='-KPIC'
12894             lt_prog_compiler_static_CXX='-Bstatic'
12895             lt_prog_compiler_wl_CXX='-Qoption ld '
12896             ;;
12897           gcx*)
12898             # Green Hills C++ Compiler
12899             lt_prog_compiler_pic_CXX='-PIC'
12900             ;;
12901           *)
12902             ;;
12903         esac
12904         ;;
12905       sunos4*)
12906         case $cc_basename in
12907           CC*)
12908             # Sun C++ 4.x
12909             lt_prog_compiler_pic_CXX='-pic'
12910             lt_prog_compiler_static_CXX='-Bstatic'
12911             ;;
12912           lcc*)
12913             # Lucid
12914             lt_prog_compiler_pic_CXX='-pic'
12915             ;;
12916           *)
12917             ;;
12918         esac
12919         ;;
12920       tandem*)
12921         case $cc_basename in
12922           NCC*)
12923             # NonStop-UX NCC 3.20
12924             lt_prog_compiler_pic_CXX='-KPIC'
12925             ;;
12926           *)
12927             ;;
12928         esac
12929         ;;
12930       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12931         case $cc_basename in
12932           CC*)
12933             lt_prog_compiler_wl_CXX='-Wl,'
12934             lt_prog_compiler_pic_CXX='-KPIC'
12935             lt_prog_compiler_static_CXX='-Bstatic'
12936             ;;
12937         esac
12938         ;;
12939       vxworks*)
12940         ;;
12941       *)
12942         lt_prog_compiler_can_build_shared_CXX=no
12943         ;;
12944     esac
12945   fi
12946
12947 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12948 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12949
12950 #
12951 # Check to make sure the PIC flag actually works.
12952 #
12953 if test -n "$lt_prog_compiler_pic_CXX"; then
12954
12955 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12956 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12957 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960   lt_cv_prog_compiler_pic_works_CXX=no
12961   ac_outfile=conftest.$ac_objext
12962    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12963    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12964    # Insert the option either (1) after the last *FLAGS variable, or
12965    # (2) before a word containing "conftest.", or (3) at the end.
12966    # Note that $ac_compile itself does not contain backslashes and begins
12967    # with a dollar sign (not a hyphen), so the echo should work correctly.
12968    # The option is referenced via a variable to avoid confusing sed.
12969    lt_compile=`echo "$ac_compile" | $SED \
12970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12972    -e 's:$: $lt_compiler_flag:'`
12973    (eval echo "\"\$as_me:12973: $lt_compile\"" >&5)
12974    (eval "$lt_compile" 2>conftest.err)
12975    ac_status=$?
12976    cat conftest.err >&5
12977    echo "$as_me:12977: \$? = $ac_status" >&5
12978    if (exit $ac_status) && test -s "$ac_outfile"; then
12979      # The compiler can only warn and ignore the option if not recognized
12980      # So say no if there are warnings other than the usual output.
12981      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12982      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12983      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12984        lt_cv_prog_compiler_pic_works_CXX=yes
12985      fi
12986    fi
12987    $rm conftest*
12988
12989 fi
12990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12991 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12992
12993 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12994     case $lt_prog_compiler_pic_CXX in
12995      "" | " "*) ;;
12996      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12997      esac
12998 else
12999     lt_prog_compiler_pic_CXX=
13000      lt_prog_compiler_can_build_shared_CXX=no
13001 fi
13002
13003 fi
13004 case $host_os in
13005   # For platforms which do not support PIC, -DPIC is meaningless:
13006   *djgpp*)
13007     lt_prog_compiler_pic_CXX=
13008     ;;
13009   *)
13010     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13011     ;;
13012 esac
13013
13014 #
13015 # Check to make sure the static flag actually works.
13016 #
13017 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13018 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13019 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13020 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   lt_cv_prog_compiler_static_works_CXX=no
13024    save_LDFLAGS="$LDFLAGS"
13025    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13026    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13027    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13028      # The linker can only warn and ignore the option if not recognized
13029      # So say no if there are warnings
13030      if test -s conftest.err; then
13031        # Append any errors to the config.log.
13032        cat conftest.err 1>&5
13033        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13034        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13035        if diff conftest.exp conftest.er2 >/dev/null; then
13036          lt_cv_prog_compiler_static_works_CXX=yes
13037        fi
13038      else
13039        lt_cv_prog_compiler_static_works_CXX=yes
13040      fi
13041    fi
13042    $rm -r conftest*
13043    LDFLAGS="$save_LDFLAGS"
13044
13045 fi
13046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13047 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13048
13049 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13050     :
13051 else
13052     lt_prog_compiler_static_CXX=
13053 fi
13054
13055
13056 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13058 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13059   echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061   lt_cv_prog_compiler_c_o_CXX=no
13062    $rm -r conftest 2>/dev/null
13063    mkdir conftest
13064    cd conftest
13065    mkdir out
13066    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13067
13068    lt_compiler_flag="-o out/conftest2.$ac_objext"
13069    # Insert the option either (1) after the last *FLAGS variable, or
13070    # (2) before a word containing "conftest.", or (3) at the end.
13071    # Note that $ac_compile itself does not contain backslashes and begins
13072    # with a dollar sign (not a hyphen), so the echo should work correctly.
13073    lt_compile=`echo "$ac_compile" | $SED \
13074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13076    -e 's:$: $lt_compiler_flag:'`
13077    (eval echo "\"\$as_me:13077: $lt_compile\"" >&5)
13078    (eval "$lt_compile" 2>out/conftest.err)
13079    ac_status=$?
13080    cat out/conftest.err >&5
13081    echo "$as_me:13081: \$? = $ac_status" >&5
13082    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13083    then
13084      # The compiler can only warn and ignore the option if not recognized
13085      # So say no if there are warnings
13086      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13087      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13088      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13089        lt_cv_prog_compiler_c_o_CXX=yes
13090      fi
13091    fi
13092    chmod u+w . 2>&5
13093    $rm conftest*
13094    # SGI C++ compiler will create directory out/ii_files/ for
13095    # template instantiation
13096    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13097    $rm out/* && rmdir out
13098    cd ..
13099    rmdir conftest
13100    $rm conftest*
13101
13102 fi
13103 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13105
13106
13107 hard_links="nottested"
13108 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13109   # do not overwrite the value of need_locks provided by the user
13110   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13112   hard_links=yes
13113   $rm conftest*
13114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13115   touch conftest.a
13116   ln conftest.a conftest.b 2>&5 || hard_links=no
13117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118   { echo "$as_me:$LINENO: result: $hard_links" >&5
13119 echo "${ECHO_T}$hard_links" >&6; }
13120   if test "$hard_links" = no; then
13121     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13123     need_locks=warn
13124   fi
13125 else
13126   need_locks=no
13127 fi
13128
13129 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13131
13132   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13133   case $host_os in
13134   aix[4-9]*)
13135     # If we're using GNU nm, then we don't want the "-C" option.
13136     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13137     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13138       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'
13139     else
13140       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'
13141     fi
13142     ;;
13143   pw32*)
13144     export_symbols_cmds_CXX="$ltdll_cmds"
13145   ;;
13146   cygwin* | mingw*)
13147     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'
13148   ;;
13149   linux* | k*bsd*-gnu)
13150     link_all_deplibs_CXX=no
13151   ;;
13152   *)
13153     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13154   ;;
13155   esac
13156   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13157
13158 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13159 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13160 test "$ld_shlibs_CXX" = no && can_build_shared=no
13161
13162 #
13163 # Do we need to explicitly link libc?
13164 #
13165 case "x$archive_cmds_need_lc_CXX" in
13166 x|xyes)
13167   # Assume -lc should be added
13168   archive_cmds_need_lc_CXX=yes
13169
13170   if test "$enable_shared" = yes && test "$GCC" = yes; then
13171     case $archive_cmds_CXX in
13172     *'~'*)
13173       # FIXME: we may have to deal with multi-command sequences.
13174       ;;
13175     '$CC '*)
13176       # Test whether the compiler implicitly links with -lc since on some
13177       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13178       # to ld, don't add -lc before -lgcc.
13179       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13181       $rm conftest*
13182       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13183
13184       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185   (eval $ac_compile) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } 2>conftest.err; then
13189         soname=conftest
13190         lib=conftest
13191         libobjs=conftest.$ac_objext
13192         deplibs=
13193         wl=$lt_prog_compiler_wl_CXX
13194         pic_flag=$lt_prog_compiler_pic_CXX
13195         compiler_flags=-v
13196         linker_flags=-v
13197         verstring=
13198         output_objdir=.
13199         libname=conftest
13200         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13201         allow_undefined_flag_CXX=
13202         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13203   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }
13207         then
13208           archive_cmds_need_lc_CXX=no
13209         else
13210           archive_cmds_need_lc_CXX=yes
13211         fi
13212         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13213       else
13214         cat conftest.err 1>&5
13215       fi
13216       $rm conftest*
13217       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13218 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13219       ;;
13220     esac
13221   fi
13222   ;;
13223 esac
13224
13225 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13226 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13227 library_names_spec=
13228 libname_spec='lib$name'
13229 soname_spec=
13230 shrext_cmds=".so"
13231 postinstall_cmds=
13232 postuninstall_cmds=
13233 finish_cmds=
13234 finish_eval=
13235 shlibpath_var=
13236 shlibpath_overrides_runpath=unknown
13237 version_type=none
13238 dynamic_linker="$host_os ld.so"
13239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13240
13241 need_lib_prefix=unknown
13242 hardcode_into_libs=no
13243
13244 # when you set need_version to no, make sure it does not cause -set_version
13245 # flags to be left without arguments
13246 need_version=unknown
13247
13248 case $host_os in
13249 aix3*)
13250   version_type=linux
13251   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13252   shlibpath_var=LIBPATH
13253
13254   # AIX 3 has no versioning support, so we append a major version to the name.
13255   soname_spec='${libname}${release}${shared_ext}$major'
13256   ;;
13257
13258 aix[4-9]*)
13259   version_type=linux
13260   need_lib_prefix=no
13261   need_version=no
13262   hardcode_into_libs=yes
13263   if test "$host_cpu" = ia64; then
13264     # AIX 5 supports IA64
13265     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13266     shlibpath_var=LD_LIBRARY_PATH
13267   else
13268     # With GCC up to 2.95.x, collect2 would create an import file
13269     # for dependence libraries.  The import file would start with
13270     # the line `#! .'.  This would cause the generated library to
13271     # depend on `.', always an invalid library.  This was fixed in
13272     # development snapshots of GCC prior to 3.0.
13273     case $host_os in
13274       aix4 | aix4.[01] | aix4.[01].*)
13275       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13276            echo ' yes '
13277            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13278         :
13279       else
13280         can_build_shared=no
13281       fi
13282       ;;
13283     esac
13284     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13285     # soname into executable. Probably we can add versioning support to
13286     # collect2, so additional links can be useful in future.
13287     if test "$aix_use_runtimelinking" = yes; then
13288       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13289       # instead of lib<name>.a to let people know that these are not
13290       # typical AIX shared libraries.
13291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292     else
13293       # We preserve .a as extension for shared libraries through AIX4.2
13294       # and later when we are not doing run time linking.
13295       library_names_spec='${libname}${release}.a $libname.a'
13296       soname_spec='${libname}${release}${shared_ext}$major'
13297     fi
13298     shlibpath_var=LIBPATH
13299   fi
13300   ;;
13301
13302 amigaos*)
13303   library_names_spec='$libname.ixlibrary $libname.a'
13304   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13305   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'
13306   ;;
13307
13308 beos*)
13309   library_names_spec='${libname}${shared_ext}'
13310   dynamic_linker="$host_os ld.so"
13311   shlibpath_var=LIBRARY_PATH
13312   ;;
13313
13314 bsdi[45]*)
13315   version_type=linux
13316   need_version=no
13317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318   soname_spec='${libname}${release}${shared_ext}$major'
13319   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13320   shlibpath_var=LD_LIBRARY_PATH
13321   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13322   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13323   # the default ld.so.conf also contains /usr/contrib/lib and
13324   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13325   # libtool to hard-code these into programs
13326   ;;
13327
13328 cygwin* | mingw* | pw32*)
13329   version_type=windows
13330   shrext_cmds=".dll"
13331   need_version=no
13332   need_lib_prefix=no
13333
13334   case $GCC,$host_os in
13335   yes,cygwin* | yes,mingw* | yes,pw32*)
13336     library_names_spec='$libname.dll.a'
13337     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13338     postinstall_cmds='base_file=`basename \${file}`~
13339       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13340       dldir=$destdir/`dirname \$dlpath`~
13341       test -d \$dldir || mkdir -p \$dldir~
13342       $install_prog $dir/$dlname \$dldir/$dlname~
13343       chmod a+x \$dldir/$dlname'
13344     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13345       dlpath=$dir/\$dldll~
13346        $rm \$dlpath'
13347     shlibpath_overrides_runpath=yes
13348
13349     case $host_os in
13350     cygwin*)
13351       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13352       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13353       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13354       ;;
13355     mingw*)
13356       # MinGW DLLs use traditional 'lib' prefix
13357       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13358       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13359       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13360         # It is most probably a Windows format PATH printed by
13361         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13362         # path with ; separators, and with drive letters. We can handle the
13363         # drive letters (cygwin fileutils understands them), so leave them,
13364         # especially as we might pass files found there to a mingw objdump,
13365         # which wouldn't understand a cygwinified path. Ahh.
13366         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13367       else
13368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13369       fi
13370       ;;
13371     pw32*)
13372       # pw32 DLLs use 'pw' prefix rather than 'lib'
13373       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13374       ;;
13375     esac
13376     ;;
13377
13378   *)
13379     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13380     ;;
13381   esac
13382   dynamic_linker='Win32 ld.exe'
13383   # FIXME: first we should search . and the directory the executable is in
13384   shlibpath_var=PATH
13385   ;;
13386
13387 darwin* | rhapsody*)
13388   dynamic_linker="$host_os dyld"
13389   version_type=darwin
13390   need_lib_prefix=no
13391   need_version=no
13392   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13393   soname_spec='${libname}${release}${major}$shared_ext'
13394   shlibpath_overrides_runpath=yes
13395   shlibpath_var=DYLD_LIBRARY_PATH
13396   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13397
13398   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13399   ;;
13400
13401 dgux*)
13402   version_type=linux
13403   need_lib_prefix=no
13404   need_version=no
13405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13406   soname_spec='${libname}${release}${shared_ext}$major'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   ;;
13409
13410 freebsd1*)
13411   dynamic_linker=no
13412   ;;
13413
13414 freebsd* | dragonfly*)
13415   # DragonFly does not have aout.  When/if they implement a new
13416   # versioning mechanism, adjust this.
13417   if test -x /usr/bin/objformat; then
13418     objformat=`/usr/bin/objformat`
13419   else
13420     case $host_os in
13421     freebsd[123]*) objformat=aout ;;
13422     *) objformat=elf ;;
13423     esac
13424   fi
13425   version_type=freebsd-$objformat
13426   case $version_type in
13427     freebsd-elf*)
13428       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13429       need_version=no
13430       need_lib_prefix=no
13431       ;;
13432     freebsd-*)
13433       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13434       need_version=yes
13435       ;;
13436   esac
13437   shlibpath_var=LD_LIBRARY_PATH
13438   case $host_os in
13439   freebsd2*)
13440     shlibpath_overrides_runpath=yes
13441     ;;
13442   freebsd3.[01]* | freebsdelf3.[01]*)
13443     shlibpath_overrides_runpath=yes
13444     hardcode_into_libs=yes
13445     ;;
13446   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13447   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13448     shlibpath_overrides_runpath=no
13449     hardcode_into_libs=yes
13450     ;;
13451   *) # from 4.6 on, and DragonFly
13452     shlibpath_overrides_runpath=yes
13453     hardcode_into_libs=yes
13454     ;;
13455   esac
13456   ;;
13457
13458 gnu*)
13459   version_type=linux
13460   need_lib_prefix=no
13461   need_version=no
13462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13463   soname_spec='${libname}${release}${shared_ext}$major'
13464   shlibpath_var=LD_LIBRARY_PATH
13465   hardcode_into_libs=yes
13466   ;;
13467
13468 hpux9* | hpux10* | hpux11*)
13469   # Give a soname corresponding to the major version so that dld.sl refuses to
13470   # link against other versions.
13471   version_type=sunos
13472   need_lib_prefix=no
13473   need_version=no
13474   case $host_cpu in
13475   ia64*)
13476     shrext_cmds='.so'
13477     hardcode_into_libs=yes
13478     dynamic_linker="$host_os dld.so"
13479     shlibpath_var=LD_LIBRARY_PATH
13480     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482     soname_spec='${libname}${release}${shared_ext}$major'
13483     if test "X$HPUX_IA64_MODE" = X32; then
13484       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13485     else
13486       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13487     fi
13488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13489     ;;
13490    hppa*64*)
13491      shrext_cmds='.sl'
13492      hardcode_into_libs=yes
13493      dynamic_linker="$host_os dld.sl"
13494      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13495      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13496      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497      soname_spec='${libname}${release}${shared_ext}$major'
13498      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13499      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13500      ;;
13501    *)
13502     shrext_cmds='.sl'
13503     dynamic_linker="$host_os dld.sl"
13504     shlibpath_var=SHLIB_PATH
13505     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507     soname_spec='${libname}${release}${shared_ext}$major'
13508     ;;
13509   esac
13510   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13511   postinstall_cmds='chmod 555 $lib'
13512   ;;
13513
13514 interix[3-9]*)
13515   version_type=linux
13516   need_lib_prefix=no
13517   need_version=no
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13519   soname_spec='${libname}${release}${shared_ext}$major'
13520   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13521   shlibpath_var=LD_LIBRARY_PATH
13522   shlibpath_overrides_runpath=no
13523   hardcode_into_libs=yes
13524   ;;
13525
13526 irix5* | irix6* | nonstopux*)
13527   case $host_os in
13528     nonstopux*) version_type=nonstopux ;;
13529     *)
13530         if test "$lt_cv_prog_gnu_ld" = yes; then
13531                 version_type=linux
13532         else
13533                 version_type=irix
13534         fi ;;
13535   esac
13536   need_lib_prefix=no
13537   need_version=no
13538   soname_spec='${libname}${release}${shared_ext}$major'
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13540   case $host_os in
13541   irix5* | nonstopux*)
13542     libsuff= shlibsuff=
13543     ;;
13544   *)
13545     case $LD in # libtool.m4 will add one of these switches to LD
13546     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13547       libsuff= shlibsuff= libmagic=32-bit;;
13548     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13549       libsuff=32 shlibsuff=N32 libmagic=N32;;
13550     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13551       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13552     *) libsuff= shlibsuff= libmagic=never-match;;
13553     esac
13554     ;;
13555   esac
13556   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13557   shlibpath_overrides_runpath=no
13558   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13559   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13560   hardcode_into_libs=yes
13561   ;;
13562
13563 # No shared lib support for Linux oldld, aout, or coff.
13564 linux*oldld* | linux*aout* | linux*coff*)
13565   dynamic_linker=no
13566   ;;
13567
13568 # This must be Linux ELF.
13569 linux* | k*bsd*-gnu)
13570   version_type=linux
13571   need_lib_prefix=no
13572   need_version=no
13573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574   soname_spec='${libname}${release}${shared_ext}$major'
13575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13576   shlibpath_var=LD_LIBRARY_PATH
13577   shlibpath_overrides_runpath=no
13578   # This implies no fast_install, which is unacceptable.
13579   # Some rework will be needed to allow for fast_install
13580   # before this can be enabled.
13581   hardcode_into_libs=yes
13582
13583   # Append ld.so.conf contents to the search path
13584   if test -f /etc/ld.so.conf; then
13585     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13586     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13587   fi
13588
13589   # We used to test for /lib/ld.so.1 and disable shared libraries on
13590   # powerpc, because MkLinux only supported shared libraries with the
13591   # GNU dynamic linker.  Since this was broken with cross compilers,
13592   # most powerpc-linux boxes support dynamic linking these days and
13593   # people can always --disable-shared, the test was removed, and we
13594   # assume the GNU/Linux dynamic linker is in use.
13595   dynamic_linker='GNU/Linux ld.so'
13596   ;;
13597
13598 netbsdelf*-gnu)
13599   version_type=linux
13600   need_lib_prefix=no
13601   need_version=no
13602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13603   soname_spec='${libname}${release}${shared_ext}$major'
13604   shlibpath_var=LD_LIBRARY_PATH
13605   shlibpath_overrides_runpath=no
13606   hardcode_into_libs=yes
13607   dynamic_linker='NetBSD ld.elf_so'
13608   ;;
13609
13610 netbsd*)
13611   version_type=sunos
13612   need_lib_prefix=no
13613   need_version=no
13614   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13617     dynamic_linker='NetBSD (a.out) ld.so'
13618   else
13619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13620     soname_spec='${libname}${release}${shared_ext}$major'
13621     dynamic_linker='NetBSD ld.elf_so'
13622   fi
13623   shlibpath_var=LD_LIBRARY_PATH
13624   shlibpath_overrides_runpath=yes
13625   hardcode_into_libs=yes
13626   ;;
13627
13628 newsos6)
13629   version_type=linux
13630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   shlibpath_overrides_runpath=yes
13633   ;;
13634
13635 nto-qnx*)
13636   version_type=linux
13637   need_lib_prefix=no
13638   need_version=no
13639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640   soname_spec='${libname}${release}${shared_ext}$major'
13641   shlibpath_var=LD_LIBRARY_PATH
13642   shlibpath_overrides_runpath=yes
13643   ;;
13644
13645 openbsd*)
13646   version_type=sunos
13647   sys_lib_dlsearch_path_spec="/usr/lib"
13648   need_lib_prefix=no
13649   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13650   case $host_os in
13651     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13652     *)                         need_version=no  ;;
13653   esac
13654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13656   shlibpath_var=LD_LIBRARY_PATH
13657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13658     case $host_os in
13659       openbsd2.[89] | openbsd2.[89].*)
13660         shlibpath_overrides_runpath=no
13661         ;;
13662       *)
13663         shlibpath_overrides_runpath=yes
13664         ;;
13665       esac
13666   else
13667     shlibpath_overrides_runpath=yes
13668   fi
13669   ;;
13670
13671 os2*)
13672   libname_spec='$name'
13673   shrext_cmds=".dll"
13674   need_lib_prefix=no
13675   library_names_spec='$libname${shared_ext} $libname.a'
13676   dynamic_linker='OS/2 ld.exe'
13677   shlibpath_var=LIBPATH
13678   ;;
13679
13680 osf3* | osf4* | osf5*)
13681   version_type=osf
13682   need_lib_prefix=no
13683   need_version=no
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13689   ;;
13690
13691 rdos*)
13692   dynamic_linker=no
13693   ;;
13694
13695 solaris*)
13696   version_type=linux
13697   need_lib_prefix=no
13698   need_version=no
13699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700   soname_spec='${libname}${release}${shared_ext}$major'
13701   shlibpath_var=LD_LIBRARY_PATH
13702   shlibpath_overrides_runpath=yes
13703   hardcode_into_libs=yes
13704   # ldd complains unless libraries are executable
13705   postinstall_cmds='chmod +x $lib'
13706   ;;
13707
13708 sunos4*)
13709   version_type=sunos
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13711   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13712   shlibpath_var=LD_LIBRARY_PATH
13713   shlibpath_overrides_runpath=yes
13714   if test "$with_gnu_ld" = yes; then
13715     need_lib_prefix=no
13716   fi
13717   need_version=yes
13718   ;;
13719
13720 sysv4 | sysv4.3*)
13721   version_type=linux
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723   soname_spec='${libname}${release}${shared_ext}$major'
13724   shlibpath_var=LD_LIBRARY_PATH
13725   case $host_vendor in
13726     sni)
13727       shlibpath_overrides_runpath=no
13728       need_lib_prefix=no
13729       export_dynamic_flag_spec='${wl}-Blargedynsym'
13730       runpath_var=LD_RUN_PATH
13731       ;;
13732     siemens)
13733       need_lib_prefix=no
13734       ;;
13735     motorola)
13736       need_lib_prefix=no
13737       need_version=no
13738       shlibpath_overrides_runpath=no
13739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13740       ;;
13741   esac
13742   ;;
13743
13744 sysv4*MP*)
13745   if test -d /usr/nec ;then
13746     version_type=linux
13747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13748     soname_spec='$libname${shared_ext}.$major'
13749     shlibpath_var=LD_LIBRARY_PATH
13750   fi
13751   ;;
13752
13753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13754   version_type=freebsd-elf
13755   need_lib_prefix=no
13756   need_version=no
13757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13758   soname_spec='${libname}${release}${shared_ext}$major'
13759   shlibpath_var=LD_LIBRARY_PATH
13760   hardcode_into_libs=yes
13761   if test "$with_gnu_ld" = yes; then
13762     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13763     shlibpath_overrides_runpath=no
13764   else
13765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13766     shlibpath_overrides_runpath=yes
13767     case $host_os in
13768       sco3.2v5*)
13769         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13770         ;;
13771     esac
13772   fi
13773   sys_lib_dlsearch_path_spec='/usr/lib'
13774   ;;
13775
13776 uts4*)
13777   version_type=linux
13778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779   soname_spec='${libname}${release}${shared_ext}$major'
13780   shlibpath_var=LD_LIBRARY_PATH
13781   ;;
13782
13783 *)
13784   dynamic_linker=no
13785   ;;
13786 esac
13787 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13788 echo "${ECHO_T}$dynamic_linker" >&6; }
13789 test "$dynamic_linker" = no && can_build_shared=no
13790
13791 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13795 fi
13796
13797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13798 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13802 fi
13803
13804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13805
13806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13807 if test "$GCC" = yes; then
13808   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13809 fi
13810
13811 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13813 hardcode_action_CXX=
13814 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13815    test -n "$runpath_var_CXX" || \
13816    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13817
13818   # We can hardcode non-existant directories.
13819   if test "$hardcode_direct_CXX" != no &&
13820      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13821      # have to relink, otherwise we might link with an installed library
13822      # when we should be linking with a yet-to-be-installed one
13823      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13824      test "$hardcode_minus_L_CXX" != no; then
13825     # Linking always hardcodes the temporary library directory.
13826     hardcode_action_CXX=relink
13827   else
13828     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13829     hardcode_action_CXX=immediate
13830   fi
13831 else
13832   # We cannot hardcode anything, or else we can only hardcode existing
13833   # directories.
13834   hardcode_action_CXX=unsupported
13835 fi
13836 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13837 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13838
13839 if test "$hardcode_action_CXX" = relink; then
13840   # Fast installation is not supported
13841   enable_fast_install=no
13842 elif test "$shlibpath_overrides_runpath" = yes ||
13843      test "$enable_shared" = no; then
13844   # Fast installation is not necessary
13845   enable_fast_install=needless
13846 fi
13847
13848
13849 # The else clause should only fire when bootstrapping the
13850 # libtool distribution, otherwise you forgot to ship ltmain.sh
13851 # with your package, and you will get complaints that there are
13852 # no rules to generate ltmain.sh.
13853 if test -f "$ltmain"; then
13854   # See if we are running on zsh, and set the options which allow our commands through
13855   # without removal of \ escapes.
13856   if test -n "${ZSH_VERSION+set}" ; then
13857     setopt NO_GLOB_SUBST
13858   fi
13859   # Now quote all the things that may contain metacharacters while being
13860   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13861   # variables and quote the copies for generation of the libtool script.
13862   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13863     SED SHELL STRIP \
13864     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13865     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13866     deplibs_check_method reload_flag reload_cmds need_locks \
13867     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13868     lt_cv_sys_global_symbol_to_c_name_address \
13869     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13870     old_postinstall_cmds old_postuninstall_cmds \
13871     compiler_CXX \
13872     CC_CXX \
13873     LD_CXX \
13874     lt_prog_compiler_wl_CXX \
13875     lt_prog_compiler_pic_CXX \
13876     lt_prog_compiler_static_CXX \
13877     lt_prog_compiler_no_builtin_flag_CXX \
13878     export_dynamic_flag_spec_CXX \
13879     thread_safe_flag_spec_CXX \
13880     whole_archive_flag_spec_CXX \
13881     enable_shared_with_static_runtimes_CXX \
13882     old_archive_cmds_CXX \
13883     old_archive_from_new_cmds_CXX \
13884     predep_objects_CXX \
13885     postdep_objects_CXX \
13886     predeps_CXX \
13887     postdeps_CXX \
13888     compiler_lib_search_path_CXX \
13889     compiler_lib_search_dirs_CXX \
13890     archive_cmds_CXX \
13891     archive_expsym_cmds_CXX \
13892     postinstall_cmds_CXX \
13893     postuninstall_cmds_CXX \
13894     old_archive_from_expsyms_cmds_CXX \
13895     allow_undefined_flag_CXX \
13896     no_undefined_flag_CXX \
13897     export_symbols_cmds_CXX \
13898     hardcode_libdir_flag_spec_CXX \
13899     hardcode_libdir_flag_spec_ld_CXX \
13900     hardcode_libdir_separator_CXX \
13901     hardcode_automatic_CXX \
13902     module_cmds_CXX \
13903     module_expsym_cmds_CXX \
13904     lt_cv_prog_compiler_c_o_CXX \
13905     fix_srcfile_path_CXX \
13906     exclude_expsyms_CXX \
13907     include_expsyms_CXX; do
13908
13909     case $var in
13910     old_archive_cmds_CXX | \
13911     old_archive_from_new_cmds_CXX | \
13912     archive_cmds_CXX | \
13913     archive_expsym_cmds_CXX | \
13914     module_cmds_CXX | \
13915     module_expsym_cmds_CXX | \
13916     old_archive_from_expsyms_cmds_CXX | \
13917     export_symbols_cmds_CXX | \
13918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13919     postinstall_cmds | postuninstall_cmds | \
13920     old_postinstall_cmds | old_postuninstall_cmds | \
13921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13922       # Double-quote double-evaled strings.
13923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13924       ;;
13925     *)
13926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13927       ;;
13928     esac
13929   done
13930
13931   case $lt_echo in
13932   *'\$0 --fallback-echo"')
13933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13934     ;;
13935   esac
13936
13937 cfgfile="$ofile"
13938
13939   cat <<__EOF__ >> "$cfgfile"
13940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13941
13942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13943
13944 # Shell to use when invoking shell scripts.
13945 SHELL=$lt_SHELL
13946
13947 # Whether or not to build shared libraries.
13948 build_libtool_libs=$enable_shared
13949
13950 # Whether or not to build static libraries.
13951 build_old_libs=$enable_static
13952
13953 # Whether or not to add -lc for building shared libraries.
13954 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13955
13956 # Whether or not to disallow shared libs when runtime libs are static
13957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13958
13959 # Whether or not to optimize for fast installation.
13960 fast_install=$enable_fast_install
13961
13962 # The host system.
13963 host_alias=$host_alias
13964 host=$host
13965 host_os=$host_os
13966
13967 # The build system.
13968 build_alias=$build_alias
13969 build=$build
13970 build_os=$build_os
13971
13972 # An echo program that does not interpret backslashes.
13973 echo=$lt_echo
13974
13975 # The archiver.
13976 AR=$lt_AR
13977 AR_FLAGS=$lt_AR_FLAGS
13978
13979 # A C compiler.
13980 LTCC=$lt_LTCC
13981
13982 # LTCC compiler flags.
13983 LTCFLAGS=$lt_LTCFLAGS
13984
13985 # A language-specific compiler.
13986 CC=$lt_compiler_CXX
13987
13988 # Is the compiler the GNU C compiler?
13989 with_gcc=$GCC_CXX
13990
13991 # An ERE matcher.
13992 EGREP=$lt_EGREP
13993
13994 # The linker used to build libraries.
13995 LD=$lt_LD_CXX
13996
13997 # Whether we need hard or soft links.
13998 LN_S=$lt_LN_S
13999
14000 # A BSD-compatible nm program.
14001 NM=$lt_NM
14002
14003 # A symbol stripping program
14004 STRIP=$lt_STRIP
14005
14006 # Used to examine libraries when file_magic_cmd begins "file"
14007 MAGIC_CMD=$MAGIC_CMD
14008
14009 # Used on cygwin: DLL creation program.
14010 DLLTOOL="$DLLTOOL"
14011
14012 # Used on cygwin: object dumper.
14013 OBJDUMP="$OBJDUMP"
14014
14015 # Used on cygwin: assembler.
14016 AS="$AS"
14017
14018 # The name of the directory that contains temporary libtool files.
14019 objdir=$objdir
14020
14021 # How to create reloadable object files.
14022 reload_flag=$lt_reload_flag
14023 reload_cmds=$lt_reload_cmds
14024
14025 # How to pass a linker flag through the compiler.
14026 wl=$lt_lt_prog_compiler_wl_CXX
14027
14028 # Object file suffix (normally "o").
14029 objext="$ac_objext"
14030
14031 # Old archive suffix (normally "a").
14032 libext="$libext"
14033
14034 # Shared library suffix (normally ".so").
14035 shrext_cmds='$shrext_cmds'
14036
14037 # Executable file suffix (normally "").
14038 exeext="$exeext"
14039
14040 # Additional compiler flags for building library objects.
14041 pic_flag=$lt_lt_prog_compiler_pic_CXX
14042 pic_mode=$pic_mode
14043
14044 # What is the maximum length of a command?
14045 max_cmd_len=$lt_cv_sys_max_cmd_len
14046
14047 # Does compiler simultaneously support -c and -o options?
14048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14049
14050 # Must we lock files when doing compilation?
14051 need_locks=$lt_need_locks
14052
14053 # Do we need the lib prefix for modules?
14054 need_lib_prefix=$need_lib_prefix
14055
14056 # Do we need a version for libraries?
14057 need_version=$need_version
14058
14059 # Whether dlopen is supported.
14060 dlopen_support=$enable_dlopen
14061
14062 # Whether dlopen of programs is supported.
14063 dlopen_self=$enable_dlopen_self
14064
14065 # Whether dlopen of statically linked programs is supported.
14066 dlopen_self_static=$enable_dlopen_self_static
14067
14068 # Compiler flag to prevent dynamic linking.
14069 link_static_flag=$lt_lt_prog_compiler_static_CXX
14070
14071 # Compiler flag to turn off builtin functions.
14072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14073
14074 # Compiler flag to allow reflexive dlopens.
14075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14076
14077 # Compiler flag to generate shared objects directly from archives.
14078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14079
14080 # Compiler flag to generate thread-safe objects.
14081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14082
14083 # Library versioning type.
14084 version_type=$version_type
14085
14086 # Format of library name prefix.
14087 libname_spec=$lt_libname_spec
14088
14089 # List of archive names.  First name is the real one, the rest are links.
14090 # The last name is the one that the linker finds with -lNAME.
14091 library_names_spec=$lt_library_names_spec
14092
14093 # The coded name of the library, if different from the real name.
14094 soname_spec=$lt_soname_spec
14095
14096 # Commands used to build and install an old-style archive.
14097 RANLIB=$lt_RANLIB
14098 old_archive_cmds=$lt_old_archive_cmds_CXX
14099 old_postinstall_cmds=$lt_old_postinstall_cmds
14100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14101
14102 # Create an old-style archive from a shared archive.
14103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14104
14105 # Create a temporary old-style archive to link instead of a shared archive.
14106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14107
14108 # Commands used to build and install a shared archive.
14109 archive_cmds=$lt_archive_cmds_CXX
14110 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14111 postinstall_cmds=$lt_postinstall_cmds
14112 postuninstall_cmds=$lt_postuninstall_cmds
14113
14114 # Commands used to build a loadable module (assumed same as above if empty)
14115 module_cmds=$lt_module_cmds_CXX
14116 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14117
14118 # Commands to strip libraries.
14119 old_striplib=$lt_old_striplib
14120 striplib=$lt_striplib
14121
14122 # Dependencies to place before the objects being linked to create a
14123 # shared library.
14124 predep_objects=$lt_predep_objects_CXX
14125
14126 # Dependencies to place after the objects being linked to create a
14127 # shared library.
14128 postdep_objects=$lt_postdep_objects_CXX
14129
14130 # Dependencies to place before the objects being linked to create a
14131 # shared library.
14132 predeps=$lt_predeps_CXX
14133
14134 # Dependencies to place after the objects being linked to create a
14135 # shared library.
14136 postdeps=$lt_postdeps_CXX
14137
14138 # The directories searched by this compiler when creating a shared
14139 # library
14140 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14141
14142 # The library search path used internally by the compiler when linking
14143 # a shared library.
14144 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14145
14146 # Method to check whether dependent libraries are shared objects.
14147 deplibs_check_method=$lt_deplibs_check_method
14148
14149 # Command to use when deplibs_check_method == file_magic.
14150 file_magic_cmd=$lt_file_magic_cmd
14151
14152 # Flag that allows shared libraries with undefined symbols to be built.
14153 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14154
14155 # Flag that forces no undefined symbols.
14156 no_undefined_flag=$lt_no_undefined_flag_CXX
14157
14158 # Commands used to finish a libtool library installation in a directory.
14159 finish_cmds=$lt_finish_cmds
14160
14161 # Same as above, but a single script fragment to be evaled but not shown.
14162 finish_eval=$lt_finish_eval
14163
14164 # Take the output of nm and produce a listing of raw symbols and C names.
14165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14166
14167 # Transform the output of nm in a proper C declaration
14168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14169
14170 # Transform the output of nm in a C name address pair
14171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14172
14173 # This is the shared library runtime path variable.
14174 runpath_var=$runpath_var
14175
14176 # This is the shared library path variable.
14177 shlibpath_var=$shlibpath_var
14178
14179 # Is shlibpath searched before the hard-coded library search path?
14180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14181
14182 # How to hardcode a shared library path into an executable.
14183 hardcode_action=$hardcode_action_CXX
14184
14185 # Whether we should hardcode library paths into libraries.
14186 hardcode_into_libs=$hardcode_into_libs
14187
14188 # Flag to hardcode \$libdir into a binary during linking.
14189 # This must work even if \$libdir does not exist.
14190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14191
14192 # If ld is used when linking, flag to hardcode \$libdir into
14193 # a binary during linking. This must work even if \$libdir does
14194 # not exist.
14195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14196
14197 # Whether we need a single -rpath flag with a separated argument.
14198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14199
14200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14201 # resulting binary.
14202 hardcode_direct=$hardcode_direct_CXX
14203
14204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14205 # resulting binary.
14206 hardcode_minus_L=$hardcode_minus_L_CXX
14207
14208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14209 # the resulting binary.
14210 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14211
14212 # Set to yes if building a shared library automatically hardcodes DIR into the library
14213 # and all subsequent libraries and executables linked against it.
14214 hardcode_automatic=$hardcode_automatic_CXX
14215
14216 # Variables whose values should be saved in libtool wrapper scripts and
14217 # restored at relink time.
14218 variables_saved_for_relink="$variables_saved_for_relink"
14219
14220 # Whether libtool must link a program against all its dependency libraries.
14221 link_all_deplibs=$link_all_deplibs_CXX
14222
14223 # Compile-time system search path for libraries
14224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14225
14226 # Run-time system search path for libraries
14227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14228
14229 # Fix the shell variable \$srcfile for the compiler.
14230 fix_srcfile_path=$lt_fix_srcfile_path
14231
14232 # Set to yes if exported symbols are required.
14233 always_export_symbols=$always_export_symbols_CXX
14234
14235 # The commands to list exported symbols.
14236 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14237
14238 # The commands to extract the exported symbol list from a shared archive.
14239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14240
14241 # Symbols that should not be listed in the preloaded symbols.
14242 exclude_expsyms=$lt_exclude_expsyms_CXX
14243
14244 # Symbols that must always be exported.
14245 include_expsyms=$lt_include_expsyms_CXX
14246
14247 # ### END LIBTOOL TAG CONFIG: $tagname
14248
14249 __EOF__
14250
14251
14252 else
14253   # If there is no Makefile yet, we rely on a make rule to execute
14254   # `config.status --recheck' to rerun these tests and create the
14255   # libtool script then.
14256   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14257   if test -f "$ltmain_in"; then
14258     test -f Makefile && make "$ltmain"
14259   fi
14260 fi
14261
14262
14263 ac_ext=c
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268
14269 CC=$lt_save_CC
14270 LDCXX=$LD
14271 LD=$lt_save_LD
14272 GCC=$lt_save_GCC
14273 with_gnu_ldcxx=$with_gnu_ld
14274 with_gnu_ld=$lt_save_with_gnu_ld
14275 lt_cv_path_LDCXX=$lt_cv_path_LD
14276 lt_cv_path_LD=$lt_save_path_LD
14277 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14278 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14279
14280         else
14281           tagname=""
14282         fi
14283         ;;
14284
14285       F77)
14286         if test -n "$F77" && test "X$F77" != "Xno"; then
14287
14288 ac_ext=f
14289 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14290 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14292
14293
14294 archive_cmds_need_lc_F77=no
14295 allow_undefined_flag_F77=
14296 always_export_symbols_F77=no
14297 archive_expsym_cmds_F77=
14298 export_dynamic_flag_spec_F77=
14299 hardcode_direct_F77=no
14300 hardcode_libdir_flag_spec_F77=
14301 hardcode_libdir_flag_spec_ld_F77=
14302 hardcode_libdir_separator_F77=
14303 hardcode_minus_L_F77=no
14304 hardcode_automatic_F77=no
14305 module_cmds_F77=
14306 module_expsym_cmds_F77=
14307 link_all_deplibs_F77=unknown
14308 old_archive_cmds_F77=$old_archive_cmds
14309 no_undefined_flag_F77=
14310 whole_archive_flag_spec_F77=
14311 enable_shared_with_static_runtimes_F77=no
14312
14313 # Source file extension for f77 test sources.
14314 ac_ext=f
14315
14316 # Object file extension for compiled f77 test sources.
14317 objext=o
14318 objext_F77=$objext
14319
14320 # Code to be used in simple compile tests
14321 lt_simple_compile_test_code="\
14322       subroutine t
14323       return
14324       end
14325 "
14326
14327 # Code to be used in simple link tests
14328 lt_simple_link_test_code="\
14329       program t
14330       end
14331 "
14332
14333 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14334
14335 # If no C compiler was specified, use CC.
14336 LTCC=${LTCC-"$CC"}
14337
14338 # If no C compiler flags were specified, use CFLAGS.
14339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14340
14341 # Allow CC to be a program name with arguments.
14342 compiler=$CC
14343
14344
14345 # save warnings/boilerplate of simple test code
14346 ac_outfile=conftest.$ac_objext
14347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14349 _lt_compiler_boilerplate=`cat conftest.err`
14350 $rm conftest*
14351
14352 ac_outfile=conftest.$ac_objext
14353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14355 _lt_linker_boilerplate=`cat conftest.err`
14356 $rm -r conftest*
14357
14358
14359 # Allow CC to be a program name with arguments.
14360 lt_save_CC="$CC"
14361 CC=${F77-"f77"}
14362 compiler=$CC
14363 compiler_F77=$CC
14364 for cc_temp in $compiler""; do
14365   case $cc_temp in
14366     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14367     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14368     \-*) ;;
14369     *) break;;
14370   esac
14371 done
14372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14373
14374
14375 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14376 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14377 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14378 echo "${ECHO_T}$can_build_shared" >&6; }
14379
14380 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14381 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14382 test "$can_build_shared" = "no" && enable_shared=no
14383
14384 # On AIX, shared libraries and static libraries use the same namespace, and
14385 # are all built from PIC.
14386 case $host_os in
14387 aix3*)
14388   test "$enable_shared" = yes && enable_static=no
14389   if test -n "$RANLIB"; then
14390     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14391     postinstall_cmds='$RANLIB $lib'
14392   fi
14393   ;;
14394 aix[4-9]*)
14395   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14396     test "$enable_shared" = yes && enable_static=no
14397   fi
14398   ;;
14399 esac
14400 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14401 echo "${ECHO_T}$enable_shared" >&6; }
14402
14403 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14404 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14405 # Make sure either enable_shared or enable_static is yes.
14406 test "$enable_shared" = yes || enable_static=yes
14407 { echo "$as_me:$LINENO: result: $enable_static" >&5
14408 echo "${ECHO_T}$enable_static" >&6; }
14409
14410 GCC_F77="$G77"
14411 LD_F77="$LD"
14412
14413 lt_prog_compiler_wl_F77=
14414 lt_prog_compiler_pic_F77=
14415 lt_prog_compiler_static_F77=
14416
14417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14419
14420   if test "$GCC" = yes; then
14421     lt_prog_compiler_wl_F77='-Wl,'
14422     lt_prog_compiler_static_F77='-static'
14423
14424     case $host_os in
14425       aix*)
14426       # All AIX code is PIC.
14427       if test "$host_cpu" = ia64; then
14428         # AIX 5 now supports IA64 processor
14429         lt_prog_compiler_static_F77='-Bstatic'
14430       fi
14431       ;;
14432
14433     amigaos*)
14434       # FIXME: we need at least 68020 code to build shared libraries, but
14435       # adding the `-m68020' flag to GCC prevents building anything better,
14436       # like `-m68040'.
14437       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14438       ;;
14439
14440     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14441       # PIC is the default for these OSes.
14442       ;;
14443
14444     mingw* | cygwin* | pw32* | os2*)
14445       # This hack is so that the source file can tell whether it is being
14446       # built for inclusion in a dll (and should export symbols for example).
14447       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14448       # (--disable-auto-import) libraries
14449       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14450       ;;
14451
14452     darwin* | rhapsody*)
14453       # PIC is the default on this platform
14454       # Common symbols not allowed in MH_DYLIB files
14455       lt_prog_compiler_pic_F77='-fno-common'
14456       ;;
14457
14458     interix[3-9]*)
14459       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14460       # Instead, we relocate shared libraries at runtime.
14461       ;;
14462
14463     msdosdjgpp*)
14464       # Just because we use GCC doesn't mean we suddenly get shared libraries
14465       # on systems that don't support them.
14466       lt_prog_compiler_can_build_shared_F77=no
14467       enable_shared=no
14468       ;;
14469
14470     sysv4*MP*)
14471       if test -d /usr/nec; then
14472         lt_prog_compiler_pic_F77=-Kconform_pic
14473       fi
14474       ;;
14475
14476     hpux*)
14477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14478       # not for PA HP-UX.
14479       case $host_cpu in
14480       hppa*64*|ia64*)
14481         # +Z the default
14482         ;;
14483       *)
14484         lt_prog_compiler_pic_F77='-fPIC'
14485         ;;
14486       esac
14487       ;;
14488
14489     *)
14490       lt_prog_compiler_pic_F77='-fPIC'
14491       ;;
14492     esac
14493   else
14494     # PORTME Check for flag to pass linker flags through the system compiler.
14495     case $host_os in
14496     aix*)
14497       lt_prog_compiler_wl_F77='-Wl,'
14498       if test "$host_cpu" = ia64; then
14499         # AIX 5 now supports IA64 processor
14500         lt_prog_compiler_static_F77='-Bstatic'
14501       else
14502         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14503       fi
14504       ;;
14505       darwin*)
14506         # PIC is the default on this platform
14507         # Common symbols not allowed in MH_DYLIB files
14508        case $cc_basename in
14509          xlc*)
14510          lt_prog_compiler_pic_F77='-qnocommon'
14511          lt_prog_compiler_wl_F77='-Wl,'
14512          ;;
14513        esac
14514        ;;
14515
14516     mingw* | cygwin* | pw32* | os2*)
14517       # This hack is so that the source file can tell whether it is being
14518       # built for inclusion in a dll (and should export symbols for example).
14519       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14520       ;;
14521
14522     hpux9* | hpux10* | hpux11*)
14523       lt_prog_compiler_wl_F77='-Wl,'
14524       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14525       # not for PA HP-UX.
14526       case $host_cpu in
14527       hppa*64*|ia64*)
14528         # +Z the default
14529         ;;
14530       *)
14531         lt_prog_compiler_pic_F77='+Z'
14532         ;;
14533       esac
14534       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14535       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14536       ;;
14537
14538     irix5* | irix6* | nonstopux*)
14539       lt_prog_compiler_wl_F77='-Wl,'
14540       # PIC (with -KPIC) is the default.
14541       lt_prog_compiler_static_F77='-non_shared'
14542       ;;
14543
14544     newsos6)
14545       lt_prog_compiler_pic_F77='-KPIC'
14546       lt_prog_compiler_static_F77='-Bstatic'
14547       ;;
14548
14549     linux* | k*bsd*-gnu)
14550       case $cc_basename in
14551       icc* | ecc*)
14552         lt_prog_compiler_wl_F77='-Wl,'
14553         lt_prog_compiler_pic_F77='-KPIC'
14554         lt_prog_compiler_static_F77='-static'
14555         ;;
14556       pgcc* | pgf77* | pgf90* | pgf95*)
14557         # Portland Group compilers (*not* the Pentium gcc compiler,
14558         # which looks to be a dead project)
14559         lt_prog_compiler_wl_F77='-Wl,'
14560         lt_prog_compiler_pic_F77='-fpic'
14561         lt_prog_compiler_static_F77='-Bstatic'
14562         ;;
14563       ccc*)
14564         lt_prog_compiler_wl_F77='-Wl,'
14565         # All Alpha code is PIC.
14566         lt_prog_compiler_static_F77='-non_shared'
14567         ;;
14568       *)
14569         case `$CC -V 2>&1 | sed 5q` in
14570         *Sun\ C*)
14571           # Sun C 5.9
14572           lt_prog_compiler_pic_F77='-KPIC'
14573           lt_prog_compiler_static_F77='-Bstatic'
14574           lt_prog_compiler_wl_F77='-Wl,'
14575           ;;
14576         *Sun\ F*)
14577           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14578           lt_prog_compiler_pic_F77='-KPIC'
14579           lt_prog_compiler_static_F77='-Bstatic'
14580           lt_prog_compiler_wl_F77=''
14581           ;;
14582         esac
14583         ;;
14584       esac
14585       ;;
14586
14587     osf3* | osf4* | osf5*)
14588       lt_prog_compiler_wl_F77='-Wl,'
14589       # All OSF/1 code is PIC.
14590       lt_prog_compiler_static_F77='-non_shared'
14591       ;;
14592
14593     rdos*)
14594       lt_prog_compiler_static_F77='-non_shared'
14595       ;;
14596
14597     solaris*)
14598       lt_prog_compiler_pic_F77='-KPIC'
14599       lt_prog_compiler_static_F77='-Bstatic'
14600       case $cc_basename in
14601       f77* | f90* | f95*)
14602         lt_prog_compiler_wl_F77='-Qoption ld ';;
14603       *)
14604         lt_prog_compiler_wl_F77='-Wl,';;
14605       esac
14606       ;;
14607
14608     sunos4*)
14609       lt_prog_compiler_wl_F77='-Qoption ld '
14610       lt_prog_compiler_pic_F77='-PIC'
14611       lt_prog_compiler_static_F77='-Bstatic'
14612       ;;
14613
14614     sysv4 | sysv4.2uw2* | sysv4.3*)
14615       lt_prog_compiler_wl_F77='-Wl,'
14616       lt_prog_compiler_pic_F77='-KPIC'
14617       lt_prog_compiler_static_F77='-Bstatic'
14618       ;;
14619
14620     sysv4*MP*)
14621       if test -d /usr/nec ;then
14622         lt_prog_compiler_pic_F77='-Kconform_pic'
14623         lt_prog_compiler_static_F77='-Bstatic'
14624       fi
14625       ;;
14626
14627     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14628       lt_prog_compiler_wl_F77='-Wl,'
14629       lt_prog_compiler_pic_F77='-KPIC'
14630       lt_prog_compiler_static_F77='-Bstatic'
14631       ;;
14632
14633     unicos*)
14634       lt_prog_compiler_wl_F77='-Wl,'
14635       lt_prog_compiler_can_build_shared_F77=no
14636       ;;
14637
14638     uts4*)
14639       lt_prog_compiler_pic_F77='-pic'
14640       lt_prog_compiler_static_F77='-Bstatic'
14641       ;;
14642
14643     *)
14644       lt_prog_compiler_can_build_shared_F77=no
14645       ;;
14646     esac
14647   fi
14648
14649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14650 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14651
14652 #
14653 # Check to make sure the PIC flag actually works.
14654 #
14655 if test -n "$lt_prog_compiler_pic_F77"; then
14656
14657 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14658 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14659 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14660   echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662   lt_cv_prog_compiler_pic_works_F77=no
14663   ac_outfile=conftest.$ac_objext
14664    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14665    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14666    # Insert the option either (1) after the last *FLAGS variable, or
14667    # (2) before a word containing "conftest.", or (3) at the end.
14668    # Note that $ac_compile itself does not contain backslashes and begins
14669    # with a dollar sign (not a hyphen), so the echo should work correctly.
14670    # The option is referenced via a variable to avoid confusing sed.
14671    lt_compile=`echo "$ac_compile" | $SED \
14672    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14673    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674    -e 's:$: $lt_compiler_flag:'`
14675    (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676    (eval "$lt_compile" 2>conftest.err)
14677    ac_status=$?
14678    cat conftest.err >&5
14679    echo "$as_me:14679: \$? = $ac_status" >&5
14680    if (exit $ac_status) && test -s "$ac_outfile"; then
14681      # The compiler can only warn and ignore the option if not recognized
14682      # So say no if there are warnings other than the usual output.
14683      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14684      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14685      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14686        lt_cv_prog_compiler_pic_works_F77=yes
14687      fi
14688    fi
14689    $rm conftest*
14690
14691 fi
14692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14693 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14694
14695 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14696     case $lt_prog_compiler_pic_F77 in
14697      "" | " "*) ;;
14698      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14699      esac
14700 else
14701     lt_prog_compiler_pic_F77=
14702      lt_prog_compiler_can_build_shared_F77=no
14703 fi
14704
14705 fi
14706 case $host_os in
14707   # For platforms which do not support PIC, -DPIC is meaningless:
14708   *djgpp*)
14709     lt_prog_compiler_pic_F77=
14710     ;;
14711   *)
14712     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14713     ;;
14714 esac
14715
14716 #
14717 # Check to make sure the static flag actually works.
14718 #
14719 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14720 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14721 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14722 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14723   echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725   lt_cv_prog_compiler_static_works_F77=no
14726    save_LDFLAGS="$LDFLAGS"
14727    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14728    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14729    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14730      # The linker can only warn and ignore the option if not recognized
14731      # So say no if there are warnings
14732      if test -s conftest.err; then
14733        # Append any errors to the config.log.
14734        cat conftest.err 1>&5
14735        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14736        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737        if diff conftest.exp conftest.er2 >/dev/null; then
14738          lt_cv_prog_compiler_static_works_F77=yes
14739        fi
14740      else
14741        lt_cv_prog_compiler_static_works_F77=yes
14742      fi
14743    fi
14744    $rm -r conftest*
14745    LDFLAGS="$save_LDFLAGS"
14746
14747 fi
14748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14749 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14750
14751 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14752     :
14753 else
14754     lt_prog_compiler_static_F77=
14755 fi
14756
14757
14758 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14760 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   lt_cv_prog_compiler_c_o_F77=no
14764    $rm -r conftest 2>/dev/null
14765    mkdir conftest
14766    cd conftest
14767    mkdir out
14768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14769
14770    lt_compiler_flag="-o out/conftest2.$ac_objext"
14771    # Insert the option either (1) after the last *FLAGS variable, or
14772    # (2) before a word containing "conftest.", or (3) at the end.
14773    # Note that $ac_compile itself does not contain backslashes and begins
14774    # with a dollar sign (not a hyphen), so the echo should work correctly.
14775    lt_compile=`echo "$ac_compile" | $SED \
14776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778    -e 's:$: $lt_compiler_flag:'`
14779    (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
14780    (eval "$lt_compile" 2>out/conftest.err)
14781    ac_status=$?
14782    cat out/conftest.err >&5
14783    echo "$as_me:14783: \$? = $ac_status" >&5
14784    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14785    then
14786      # The compiler can only warn and ignore the option if not recognized
14787      # So say no if there are warnings
14788      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14789      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791        lt_cv_prog_compiler_c_o_F77=yes
14792      fi
14793    fi
14794    chmod u+w . 2>&5
14795    $rm conftest*
14796    # SGI C++ compiler will create directory out/ii_files/ for
14797    # template instantiation
14798    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14799    $rm out/* && rmdir out
14800    cd ..
14801    rmdir conftest
14802    $rm conftest*
14803
14804 fi
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14807
14808
14809 hard_links="nottested"
14810 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14811   # do not overwrite the value of need_locks provided by the user
14812   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14814   hard_links=yes
14815   $rm conftest*
14816   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14817   touch conftest.a
14818   ln conftest.a conftest.b 2>&5 || hard_links=no
14819   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820   { echo "$as_me:$LINENO: result: $hard_links" >&5
14821 echo "${ECHO_T}$hard_links" >&6; }
14822   if test "$hard_links" = no; then
14823     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14825     need_locks=warn
14826   fi
14827 else
14828   need_locks=no
14829 fi
14830
14831 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14832 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14833
14834   runpath_var=
14835   allow_undefined_flag_F77=
14836   enable_shared_with_static_runtimes_F77=no
14837   archive_cmds_F77=
14838   archive_expsym_cmds_F77=
14839   old_archive_From_new_cmds_F77=
14840   old_archive_from_expsyms_cmds_F77=
14841   export_dynamic_flag_spec_F77=
14842   whole_archive_flag_spec_F77=
14843   thread_safe_flag_spec_F77=
14844   hardcode_libdir_flag_spec_F77=
14845   hardcode_libdir_flag_spec_ld_F77=
14846   hardcode_libdir_separator_F77=
14847   hardcode_direct_F77=no
14848   hardcode_minus_L_F77=no
14849   hardcode_shlibpath_var_F77=unsupported
14850   link_all_deplibs_F77=unknown
14851   hardcode_automatic_F77=no
14852   module_cmds_F77=
14853   module_expsym_cmds_F77=
14854   always_export_symbols_F77=no
14855   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14856   # include_expsyms should be a list of space-separated symbols to be *always*
14857   # included in the symbol list
14858   include_expsyms_F77=
14859   # exclude_expsyms can be an extended regexp of symbols to exclude
14860   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14861   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14862   # as well as any symbol that contains `d'.
14863   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14864   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14865   # platforms (ab)use it in PIC code, but their linkers get confused if
14866   # the symbol is explicitly referenced.  Since portable code cannot
14867   # rely on this symbol name, it's probably fine to never include it in
14868   # preloaded symbol tables.
14869   # Exclude shared library initialization/finalization symbols.
14870   extract_expsyms_cmds=
14871   # Just being paranoid about ensuring that cc_basename is set.
14872   for cc_temp in $compiler""; do
14873   case $cc_temp in
14874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14876     \-*) ;;
14877     *) break;;
14878   esac
14879 done
14880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14881
14882   case $host_os in
14883   cygwin* | mingw* | pw32*)
14884     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885     # When not using gcc, we currently assume that we are using
14886     # Microsoft Visual C++.
14887     if test "$GCC" != yes; then
14888       with_gnu_ld=no
14889     fi
14890     ;;
14891   interix*)
14892     # we just hope/assume this is gcc and not c89 (= MSVC++)
14893     with_gnu_ld=yes
14894     ;;
14895   openbsd*)
14896     with_gnu_ld=no
14897     ;;
14898   esac
14899
14900   ld_shlibs_F77=yes
14901   if test "$with_gnu_ld" = yes; then
14902     # If archive_cmds runs LD, not CC, wlarc should be empty
14903     wlarc='${wl}'
14904
14905     # Set some defaults for GNU ld with shared library support. These
14906     # are reset later if shared libraries are not supported. Putting them
14907     # here allows them to be overridden if necessary.
14908     runpath_var=LD_RUN_PATH
14909     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14910     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14911     # ancient GNU ld didn't support --whole-archive et. al.
14912     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14913         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14914       else
14915         whole_archive_flag_spec_F77=
14916     fi
14917     supports_anon_versioning=no
14918     case `$LD -v 2>/dev/null` in
14919       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14920       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14921       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14922       *\ 2.11.*) ;; # other 2.11 versions
14923       *) supports_anon_versioning=yes ;;
14924     esac
14925
14926     # See if GNU ld supports shared libraries.
14927     case $host_os in
14928     aix[3-9]*)
14929       # On AIX/PPC, the GNU linker is very broken
14930       if test "$host_cpu" != ia64; then
14931         ld_shlibs_F77=no
14932         cat <<EOF 1>&2
14933
14934 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14935 *** to be unable to reliably create shared libraries on AIX.
14936 *** Therefore, libtool is disabling shared libraries support.  If you
14937 *** really care for shared libraries, you may want to modify your PATH
14938 *** so that a non-GNU linker is found, and then restart.
14939
14940 EOF
14941       fi
14942       ;;
14943
14944     amigaos*)
14945       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)'
14946       hardcode_libdir_flag_spec_F77='-L$libdir'
14947       hardcode_minus_L_F77=yes
14948
14949       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14950       # that the semantics of dynamic libraries on AmigaOS, at least up
14951       # to version 4, is to share data among multiple programs linked
14952       # with the same dynamic library.  Since this doesn't match the
14953       # behavior of shared libraries on other platforms, we can't use
14954       # them.
14955       ld_shlibs_F77=no
14956       ;;
14957
14958     beos*)
14959       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960         allow_undefined_flag_F77=unsupported
14961         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14962         # support --undefined.  This deserves some investigation.  FIXME
14963         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964       else
14965         ld_shlibs_F77=no
14966       fi
14967       ;;
14968
14969     cygwin* | mingw* | pw32*)
14970       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14971       # as there is no search path for DLLs.
14972       hardcode_libdir_flag_spec_F77='-L$libdir'
14973       allow_undefined_flag_F77=unsupported
14974       always_export_symbols_F77=no
14975       enable_shared_with_static_runtimes_F77=yes
14976       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14977
14978       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14979         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980         # If the export-symbols file already is a .def file (1st line
14981         # is EXPORTS), use it as is; otherwise, prepend...
14982         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983           cp $export_symbols $output_objdir/$soname.def;
14984         else
14985           echo EXPORTS > $output_objdir/$soname.def;
14986           cat $export_symbols >> $output_objdir/$soname.def;
14987         fi~
14988         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14989       else
14990         ld_shlibs_F77=no
14991       fi
14992       ;;
14993
14994     interix[3-9]*)
14995       hardcode_direct_F77=no
14996       hardcode_shlibpath_var_F77=no
14997       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14998       export_dynamic_flag_spec_F77='${wl}-E'
14999       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15000       # Instead, shared libraries are loaded at an image base (0x10000000 by
15001       # default) and relocated if they conflict, which is a slow very memory
15002       # consuming and fragmenting process.  To avoid this, we pick a random,
15003       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15004       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15005       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'
15006       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'
15007       ;;
15008
15009     gnu* | linux* | k*bsd*-gnu)
15010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011         tmp_addflag=
15012         case $cc_basename,$host_cpu in
15013         pgcc*)                          # Portland Group C compiler
15014           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'
15015           tmp_addflag=' $pic_flag'
15016           ;;
15017         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15018           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'
15019           tmp_addflag=' $pic_flag -Mnomain' ;;
15020         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15021           tmp_addflag=' -i_dynamic' ;;
15022         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15023           tmp_addflag=' -i_dynamic -nofor_main' ;;
15024         ifc* | ifort*)                  # Intel Fortran compiler
15025           tmp_addflag=' -nofor_main' ;;
15026         esac
15027         case `$CC -V 2>&1 | sed 5q` in
15028         *Sun\ C*)                       # Sun C 5.9
15029           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15030           tmp_sharedflag='-G' ;;
15031         *Sun\ F*)                       # Sun Fortran 8.3
15032           tmp_sharedflag='-G' ;;
15033         *)
15034           tmp_sharedflag='-shared' ;;
15035         esac
15036         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037
15038         if test $supports_anon_versioning = yes; then
15039           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15040   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15041   $echo "local: *; };" >> $output_objdir/$libname.ver~
15042           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15043         fi
15044         link_all_deplibs_F77=no
15045       else
15046         ld_shlibs_F77=no
15047       fi
15048       ;;
15049
15050     netbsd* | netbsdelf*-gnu)
15051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15053         wlarc=
15054       else
15055         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15057       fi
15058       ;;
15059
15060     solaris*)
15061       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15062         ld_shlibs_F77=no
15063         cat <<EOF 1>&2
15064
15065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15066 *** create shared libraries on Solaris systems.  Therefore, libtool
15067 *** is disabling shared libraries support.  We urge you to upgrade GNU
15068 *** binutils to release 2.9.1 or newer.  Another option is to modify
15069 *** your PATH or compiler configuration so that the native linker is
15070 *** used, and then restart.
15071
15072 EOF
15073       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15075         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15076       else
15077         ld_shlibs_F77=no
15078       fi
15079       ;;
15080
15081     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15082       case `$LD -v 2>&1` in
15083         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15084         ld_shlibs_F77=no
15085         cat <<_LT_EOF 1>&2
15086
15087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15088 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15089 *** is disabling shared libraries support.  We urge you to upgrade GNU
15090 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15091 *** your PATH or compiler configuration so that the native linker is
15092 *** used, and then restart.
15093
15094 _LT_EOF
15095         ;;
15096         *)
15097           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15099             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15100             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15101           else
15102             ld_shlibs_F77=no
15103           fi
15104         ;;
15105       esac
15106       ;;
15107
15108     sunos4*)
15109       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15110       wlarc=
15111       hardcode_direct_F77=yes
15112       hardcode_shlibpath_var_F77=no
15113       ;;
15114
15115     *)
15116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15117         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15119       else
15120         ld_shlibs_F77=no
15121       fi
15122       ;;
15123     esac
15124
15125     if test "$ld_shlibs_F77" = no; then
15126       runpath_var=
15127       hardcode_libdir_flag_spec_F77=
15128       export_dynamic_flag_spec_F77=
15129       whole_archive_flag_spec_F77=
15130     fi
15131   else
15132     # PORTME fill in a description of your system's linker (not GNU ld)
15133     case $host_os in
15134     aix3*)
15135       allow_undefined_flag_F77=unsupported
15136       always_export_symbols_F77=yes
15137       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'
15138       # Note: this linker hardcodes the directories in LIBPATH if there
15139       # are no directories specified by -L.
15140       hardcode_minus_L_F77=yes
15141       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15142         # Neither direct hardcoding nor static linking is supported with a
15143         # broken collect2.
15144         hardcode_direct_F77=unsupported
15145       fi
15146       ;;
15147
15148     aix[4-9]*)
15149       if test "$host_cpu" = ia64; then
15150         # On IA64, the linker does run time linking by default, so we don't
15151         # have to do anything special.
15152         aix_use_runtimelinking=no
15153         exp_sym_flag='-Bexport'
15154         no_entry_flag=""
15155       else
15156         # If we're using GNU nm, then we don't want the "-C" option.
15157         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15158         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15159           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'
15160         else
15161           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'
15162         fi
15163         aix_use_runtimelinking=no
15164
15165         # Test if we are trying to use run time linking or normal
15166         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15167         # need to do runtime linking.
15168         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15169           for ld_flag in $LDFLAGS; do
15170           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15171             aix_use_runtimelinking=yes
15172             break
15173           fi
15174           done
15175           ;;
15176         esac
15177
15178         exp_sym_flag='-bexport'
15179         no_entry_flag='-bnoentry'
15180       fi
15181
15182       # When large executables or shared objects are built, AIX ld can
15183       # have problems creating the table of contents.  If linking a library
15184       # or program results in "error TOC overflow" add -mminimal-toc to
15185       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15186       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15187
15188       archive_cmds_F77=''
15189       hardcode_direct_F77=yes
15190       hardcode_libdir_separator_F77=':'
15191       link_all_deplibs_F77=yes
15192
15193       if test "$GCC" = yes; then
15194         case $host_os in aix4.[012]|aix4.[012].*)
15195         # We only want to do this on AIX 4.2 and lower, the check
15196         # below for broken collect2 doesn't work under 4.3+
15197           collect2name=`${CC} -print-prog-name=collect2`
15198           if test -f "$collect2name" && \
15199            strings "$collect2name" | grep resolve_lib_name >/dev/null
15200           then
15201           # We have reworked collect2
15202           :
15203           else
15204           # We have old collect2
15205           hardcode_direct_F77=unsupported
15206           # It fails to find uninstalled libraries when the uninstalled
15207           # path is not listed in the libpath.  Setting hardcode_minus_L
15208           # to unsupported forces relinking
15209           hardcode_minus_L_F77=yes
15210           hardcode_libdir_flag_spec_F77='-L$libdir'
15211           hardcode_libdir_separator_F77=
15212           fi
15213           ;;
15214         esac
15215         shared_flag='-shared'
15216         if test "$aix_use_runtimelinking" = yes; then
15217           shared_flag="$shared_flag "'${wl}-G'
15218         fi
15219       else
15220         # not using gcc
15221         if test "$host_cpu" = ia64; then
15222         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15223         # chokes on -Wl,-G. The following line is correct:
15224           shared_flag='-G'
15225         else
15226           if test "$aix_use_runtimelinking" = yes; then
15227             shared_flag='${wl}-G'
15228           else
15229             shared_flag='${wl}-bM:SRE'
15230           fi
15231         fi
15232       fi
15233
15234       # It seems that -bexpall does not export symbols beginning with
15235       # underscore (_), so it is better to generate a list of symbols to export.
15236       always_export_symbols_F77=yes
15237       if test "$aix_use_runtimelinking" = yes; then
15238         # Warning - without using the other runtime loading flags (-brtl),
15239         # -berok will link without error, but may produce a broken library.
15240         allow_undefined_flag_F77='-berok'
15241        # Determine the default libpath from the value encoded in an empty executable.
15242        cat >conftest.$ac_ext <<_ACEOF
15243       program main
15244
15245       end
15246 _ACEOF
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_link") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } && {
15261          test -z "$ac_f77_werror_flag" ||
15262          test ! -s conftest.err
15263        } && test -s conftest$ac_exeext &&
15264        $as_test_x conftest$ac_exeext; then
15265
15266 lt_aix_libpath_sed='
15267     /Import File Strings/,/^$/ {
15268         /^0/ {
15269             s/^0  *\(.*\)$/\1/
15270             p
15271         }
15272     }'
15273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274 # Check for a 64-bit object if we didn't find anything.
15275 if test -z "$aix_libpath"; then
15276   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15277 fi
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282
15283 fi
15284
15285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15286       conftest$ac_exeext conftest.$ac_ext
15287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15288
15289        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15290         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"
15291        else
15292         if test "$host_cpu" = ia64; then
15293           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15294           allow_undefined_flag_F77="-z nodefs"
15295           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"
15296         else
15297          # Determine the default libpath from the value encoded in an empty executable.
15298          cat >conftest.$ac_ext <<_ACEOF
15299       program main
15300
15301       end
15302 _ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (ac_try="$ac_link"
15305 case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_link") 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } && {
15317          test -z "$ac_f77_werror_flag" ||
15318          test ! -s conftest.err
15319        } && test -s conftest$ac_exeext &&
15320        $as_test_x conftest$ac_exeext; then
15321
15322 lt_aix_libpath_sed='
15323     /Import File Strings/,/^$/ {
15324         /^0/ {
15325             s/^0  *\(.*\)$/\1/
15326             p
15327         }
15328     }'
15329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15330 # Check for a 64-bit object if we didn't find anything.
15331 if test -z "$aix_libpath"; then
15332   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15333 fi
15334 else
15335   echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338
15339 fi
15340
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342       conftest$ac_exeext conftest.$ac_ext
15343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15344
15345          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15346           # Warning - without using the other run time loading flags,
15347           # -berok will link without error, but may produce a broken library.
15348           no_undefined_flag_F77=' ${wl}-bernotok'
15349           allow_undefined_flag_F77=' ${wl}-berok'
15350           # Exported symbols can be pulled into shared objects from archives
15351           whole_archive_flag_spec_F77='$convenience'
15352           archive_cmds_need_lc_F77=yes
15353           # This is similar to how AIX traditionally builds its shared libraries.
15354           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'
15355         fi
15356       fi
15357       ;;
15358
15359     amigaos*)
15360       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)'
15361       hardcode_libdir_flag_spec_F77='-L$libdir'
15362       hardcode_minus_L_F77=yes
15363       # see comment about different semantics on the GNU ld section
15364       ld_shlibs_F77=no
15365       ;;
15366
15367     bsdi[45]*)
15368       export_dynamic_flag_spec_F77=-rdynamic
15369       ;;
15370
15371     cygwin* | mingw* | pw32*)
15372       # When not using gcc, we currently assume that we are using
15373       # Microsoft Visual C++.
15374       # hardcode_libdir_flag_spec is actually meaningless, as there is
15375       # no search path for DLLs.
15376       hardcode_libdir_flag_spec_F77=' '
15377       allow_undefined_flag_F77=unsupported
15378       # Tell ltmain to make .lib files, not .a files.
15379       libext=lib
15380       # Tell ltmain to make .dll files, not .so files.
15381       shrext_cmds=".dll"
15382       # FIXME: Setting linknames here is a bad hack.
15383       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15384       # The linker will automatically build a .lib file if we build a DLL.
15385       old_archive_From_new_cmds_F77='true'
15386       # FIXME: Should let the user specify the lib program.
15387       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15388       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15389       enable_shared_with_static_runtimes_F77=yes
15390       ;;
15391
15392     darwin* | rhapsody*)
15393       case $host_os in
15394         rhapsody* | darwin1.[012])
15395          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15396          ;;
15397        *) # Darwin 1.3 on
15398          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15399            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15400          else
15401            case ${MACOSX_DEPLOYMENT_TARGET} in
15402              10.[012])
15403                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15404                ;;
15405              10.*)
15406                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15407                ;;
15408            esac
15409          fi
15410          ;;
15411       esac
15412       archive_cmds_need_lc_F77=no
15413       hardcode_direct_F77=no
15414       hardcode_automatic_F77=yes
15415       hardcode_shlibpath_var_F77=unsupported
15416       whole_archive_flag_spec_F77=''
15417       link_all_deplibs_F77=yes
15418     if test "$GCC" = yes ; then
15419         output_verbose_link_cmd='echo'
15420         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15421         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15422         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15423         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15424     else
15425       case $cc_basename in
15426         xlc*)
15427          output_verbose_link_cmd='echo'
15428          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15429          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15430           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15431          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15432           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}'
15433           ;;
15434        *)
15435          ld_shlibs_F77=no
15436           ;;
15437       esac
15438     fi
15439       ;;
15440
15441     dgux*)
15442       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443       hardcode_libdir_flag_spec_F77='-L$libdir'
15444       hardcode_shlibpath_var_F77=no
15445       ;;
15446
15447     freebsd1*)
15448       ld_shlibs_F77=no
15449       ;;
15450
15451     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15452     # support.  Future versions do this automatically, but an explicit c++rt0.o
15453     # does not break anything, and helps significantly (at the cost of a little
15454     # extra space).
15455     freebsd2.2*)
15456       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15457       hardcode_libdir_flag_spec_F77='-R$libdir'
15458       hardcode_direct_F77=yes
15459       hardcode_shlibpath_var_F77=no
15460       ;;
15461
15462     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15463     freebsd2*)
15464       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15465       hardcode_direct_F77=yes
15466       hardcode_minus_L_F77=yes
15467       hardcode_shlibpath_var_F77=no
15468       ;;
15469
15470     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15471     freebsd* | dragonfly*)
15472       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15473       hardcode_libdir_flag_spec_F77='-R$libdir'
15474       hardcode_direct_F77=yes
15475       hardcode_shlibpath_var_F77=no
15476       ;;
15477
15478     hpux9*)
15479       if test "$GCC" = yes; then
15480         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'
15481       else
15482         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'
15483       fi
15484       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15485       hardcode_libdir_separator_F77=:
15486       hardcode_direct_F77=yes
15487
15488       # hardcode_minus_L: Not really in the search PATH,
15489       # but as the default location of the library.
15490       hardcode_minus_L_F77=yes
15491       export_dynamic_flag_spec_F77='${wl}-E'
15492       ;;
15493
15494     hpux10*)
15495       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15496         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15497       else
15498         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15499       fi
15500       if test "$with_gnu_ld" = no; then
15501         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15502         hardcode_libdir_separator_F77=:
15503
15504         hardcode_direct_F77=yes
15505         export_dynamic_flag_spec_F77='${wl}-E'
15506
15507         # hardcode_minus_L: Not really in the search PATH,
15508         # but as the default location of the library.
15509         hardcode_minus_L_F77=yes
15510       fi
15511       ;;
15512
15513     hpux11*)
15514       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15515         case $host_cpu in
15516         hppa*64*)
15517           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15518           ;;
15519         ia64*)
15520           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15521           ;;
15522         *)
15523           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15524           ;;
15525         esac
15526       else
15527         case $host_cpu in
15528         hppa*64*)
15529           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530           ;;
15531         ia64*)
15532           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15533           ;;
15534         *)
15535           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15536           ;;
15537         esac
15538       fi
15539       if test "$with_gnu_ld" = no; then
15540         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15541         hardcode_libdir_separator_F77=:
15542
15543         case $host_cpu in
15544         hppa*64*|ia64*)
15545           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15546           hardcode_direct_F77=no
15547           hardcode_shlibpath_var_F77=no
15548           ;;
15549         *)
15550           hardcode_direct_F77=yes
15551           export_dynamic_flag_spec_F77='${wl}-E'
15552
15553           # hardcode_minus_L: Not really in the search PATH,
15554           # but as the default location of the library.
15555           hardcode_minus_L_F77=yes
15556           ;;
15557         esac
15558       fi
15559       ;;
15560
15561     irix5* | irix6* | nonstopux*)
15562       if test "$GCC" = yes; then
15563         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'
15564       else
15565         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'
15566         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15567       fi
15568       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15569       hardcode_libdir_separator_F77=:
15570       link_all_deplibs_F77=yes
15571       ;;
15572
15573     netbsd* | netbsdelf*-gnu)
15574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15575         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15576       else
15577         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15578       fi
15579       hardcode_libdir_flag_spec_F77='-R$libdir'
15580       hardcode_direct_F77=yes
15581       hardcode_shlibpath_var_F77=no
15582       ;;
15583
15584     newsos6)
15585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586       hardcode_direct_F77=yes
15587       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15588       hardcode_libdir_separator_F77=:
15589       hardcode_shlibpath_var_F77=no
15590       ;;
15591
15592     openbsd*)
15593       if test -f /usr/libexec/ld.so; then
15594         hardcode_direct_F77=yes
15595         hardcode_shlibpath_var_F77=no
15596         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15597           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15598           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15599           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15600           export_dynamic_flag_spec_F77='${wl}-E'
15601         else
15602           case $host_os in
15603            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15604              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15605              hardcode_libdir_flag_spec_F77='-R$libdir'
15606              ;;
15607            *)
15608              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15609              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15610              ;;
15611           esac
15612         fi
15613       else
15614         ld_shlibs_F77=no
15615       fi
15616       ;;
15617
15618     os2*)
15619       hardcode_libdir_flag_spec_F77='-L$libdir'
15620       hardcode_minus_L_F77=yes
15621       allow_undefined_flag_F77=unsupported
15622       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'
15623       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15624       ;;
15625
15626     osf3*)
15627       if test "$GCC" = yes; then
15628         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15629         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'
15630       else
15631         allow_undefined_flag_F77=' -expect_unresolved \*'
15632         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'
15633       fi
15634       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15635       hardcode_libdir_separator_F77=:
15636       ;;
15637
15638     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15639       if test "$GCC" = yes; then
15640         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15641         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'
15642         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15643       else
15644         allow_undefined_flag_F77=' -expect_unresolved \*'
15645         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'
15646         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~
15647         $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'
15648
15649         # Both c and cxx compiler support -rpath directly
15650         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15651       fi
15652       hardcode_libdir_separator_F77=:
15653       ;;
15654
15655     solaris*)
15656       no_undefined_flag_F77=' -z text'
15657       if test "$GCC" = yes; then
15658         wlarc='${wl}'
15659         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15661           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15662       else
15663         wlarc=''
15664         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15666         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15667       fi
15668       hardcode_libdir_flag_spec_F77='-R$libdir'
15669       hardcode_shlibpath_var_F77=no
15670       case $host_os in
15671       solaris2.[0-5] | solaris2.[0-5].*) ;;
15672       *)
15673         # The compiler driver will combine and reorder linker options,
15674         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15675         # but is careful enough not to reorder.
15676         # Supported since Solaris 2.6 (maybe 2.5.1?)
15677         if test "$GCC" = yes; then
15678           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15679         else
15680           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15681         fi
15682         ;;
15683       esac
15684       link_all_deplibs_F77=yes
15685       ;;
15686
15687     sunos4*)
15688       if test "x$host_vendor" = xsequent; then
15689         # Use $CC to link under sequent, because it throws in some extra .o
15690         # files that make .init and .fini sections work.
15691         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15692       else
15693         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15694       fi
15695       hardcode_libdir_flag_spec_F77='-L$libdir'
15696       hardcode_direct_F77=yes
15697       hardcode_minus_L_F77=yes
15698       hardcode_shlibpath_var_F77=no
15699       ;;
15700
15701     sysv4)
15702       case $host_vendor in
15703         sni)
15704           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705           hardcode_direct_F77=yes # is this really true???
15706         ;;
15707         siemens)
15708           ## LD is ld it makes a PLAMLIB
15709           ## CC just makes a GrossModule.
15710           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15711           reload_cmds_F77='$CC -r -o $output$reload_objs'
15712           hardcode_direct_F77=no
15713         ;;
15714         motorola)
15715           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15717         ;;
15718       esac
15719       runpath_var='LD_RUN_PATH'
15720       hardcode_shlibpath_var_F77=no
15721       ;;
15722
15723     sysv4.3*)
15724       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725       hardcode_shlibpath_var_F77=no
15726       export_dynamic_flag_spec_F77='-Bexport'
15727       ;;
15728
15729     sysv4*MP*)
15730       if test -d /usr/nec; then
15731         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732         hardcode_shlibpath_var_F77=no
15733         runpath_var=LD_RUN_PATH
15734         hardcode_runpath_var=yes
15735         ld_shlibs_F77=yes
15736       fi
15737       ;;
15738
15739     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15740       no_undefined_flag_F77='${wl}-z,text'
15741       archive_cmds_need_lc_F77=no
15742       hardcode_shlibpath_var_F77=no
15743       runpath_var='LD_RUN_PATH'
15744
15745       if test "$GCC" = yes; then
15746         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748       else
15749         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751       fi
15752       ;;
15753
15754     sysv5* | sco3.2v5* | sco5v6*)
15755       # Note: We can NOT use -z defs as we might desire, because we do not
15756       # link with -lc, and that would cause any symbols used from libc to
15757       # always be unresolved, which means just about no library would
15758       # ever link correctly.  If we're not using GNU ld we use -z text
15759       # though, which does catch some bad symbols but isn't as heavy-handed
15760       # as -z defs.
15761       no_undefined_flag_F77='${wl}-z,text'
15762       allow_undefined_flag_F77='${wl}-z,nodefs'
15763       archive_cmds_need_lc_F77=no
15764       hardcode_shlibpath_var_F77=no
15765       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15766       hardcode_libdir_separator_F77=':'
15767       link_all_deplibs_F77=yes
15768       export_dynamic_flag_spec_F77='${wl}-Bexport'
15769       runpath_var='LD_RUN_PATH'
15770
15771       if test "$GCC" = yes; then
15772         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774       else
15775         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777       fi
15778       ;;
15779
15780     uts4*)
15781       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782       hardcode_libdir_flag_spec_F77='-L$libdir'
15783       hardcode_shlibpath_var_F77=no
15784       ;;
15785
15786     *)
15787       ld_shlibs_F77=no
15788       ;;
15789     esac
15790   fi
15791
15792 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15793 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15794 test "$ld_shlibs_F77" = no && can_build_shared=no
15795
15796 #
15797 # Do we need to explicitly link libc?
15798 #
15799 case "x$archive_cmds_need_lc_F77" in
15800 x|xyes)
15801   # Assume -lc should be added
15802   archive_cmds_need_lc_F77=yes
15803
15804   if test "$enable_shared" = yes && test "$GCC" = yes; then
15805     case $archive_cmds_F77 in
15806     *'~'*)
15807       # FIXME: we may have to deal with multi-command sequences.
15808       ;;
15809     '$CC '*)
15810       # Test whether the compiler implicitly links with -lc since on some
15811       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15812       # to ld, don't add -lc before -lgcc.
15813       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15814 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15815       $rm conftest*
15816       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15817
15818       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15819   (eval $ac_compile) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); } 2>conftest.err; then
15823         soname=conftest
15824         lib=conftest
15825         libobjs=conftest.$ac_objext
15826         deplibs=
15827         wl=$lt_prog_compiler_wl_F77
15828         pic_flag=$lt_prog_compiler_pic_F77
15829         compiler_flags=-v
15830         linker_flags=-v
15831         verstring=
15832         output_objdir=.
15833         libname=conftest
15834         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15835         allow_undefined_flag_F77=
15836         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15837   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }
15841         then
15842           archive_cmds_need_lc_F77=no
15843         else
15844           archive_cmds_need_lc_F77=yes
15845         fi
15846         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15847       else
15848         cat conftest.err 1>&5
15849       fi
15850       $rm conftest*
15851       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15852 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15853       ;;
15854     esac
15855   fi
15856   ;;
15857 esac
15858
15859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15861 library_names_spec=
15862 libname_spec='lib$name'
15863 soname_spec=
15864 shrext_cmds=".so"
15865 postinstall_cmds=
15866 postuninstall_cmds=
15867 finish_cmds=
15868 finish_eval=
15869 shlibpath_var=
15870 shlibpath_overrides_runpath=unknown
15871 version_type=none
15872 dynamic_linker="$host_os ld.so"
15873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15874
15875 need_lib_prefix=unknown
15876 hardcode_into_libs=no
15877
15878 # when you set need_version to no, make sure it does not cause -set_version
15879 # flags to be left without arguments
15880 need_version=unknown
15881
15882 case $host_os in
15883 aix3*)
15884   version_type=linux
15885   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15886   shlibpath_var=LIBPATH
15887
15888   # AIX 3 has no versioning support, so we append a major version to the name.
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   ;;
15891
15892 aix[4-9]*)
15893   version_type=linux
15894   need_lib_prefix=no
15895   need_version=no
15896   hardcode_into_libs=yes
15897   if test "$host_cpu" = ia64; then
15898     # AIX 5 supports IA64
15899     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15900     shlibpath_var=LD_LIBRARY_PATH
15901   else
15902     # With GCC up to 2.95.x, collect2 would create an import file
15903     # for dependence libraries.  The import file would start with
15904     # the line `#! .'.  This would cause the generated library to
15905     # depend on `.', always an invalid library.  This was fixed in
15906     # development snapshots of GCC prior to 3.0.
15907     case $host_os in
15908       aix4 | aix4.[01] | aix4.[01].*)
15909       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15910            echo ' yes '
15911            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15912         :
15913       else
15914         can_build_shared=no
15915       fi
15916       ;;
15917     esac
15918     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15919     # soname into executable. Probably we can add versioning support to
15920     # collect2, so additional links can be useful in future.
15921     if test "$aix_use_runtimelinking" = yes; then
15922       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15923       # instead of lib<name>.a to let people know that these are not
15924       # typical AIX shared libraries.
15925       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926     else
15927       # We preserve .a as extension for shared libraries through AIX4.2
15928       # and later when we are not doing run time linking.
15929       library_names_spec='${libname}${release}.a $libname.a'
15930       soname_spec='${libname}${release}${shared_ext}$major'
15931     fi
15932     shlibpath_var=LIBPATH
15933   fi
15934   ;;
15935
15936 amigaos*)
15937   library_names_spec='$libname.ixlibrary $libname.a'
15938   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15939   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'
15940   ;;
15941
15942 beos*)
15943   library_names_spec='${libname}${shared_ext}'
15944   dynamic_linker="$host_os ld.so"
15945   shlibpath_var=LIBRARY_PATH
15946   ;;
15947
15948 bsdi[45]*)
15949   version_type=linux
15950   need_version=no
15951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952   soname_spec='${libname}${release}${shared_ext}$major'
15953   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15956   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15957   # the default ld.so.conf also contains /usr/contrib/lib and
15958   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15959   # libtool to hard-code these into programs
15960   ;;
15961
15962 cygwin* | mingw* | pw32*)
15963   version_type=windows
15964   shrext_cmds=".dll"
15965   need_version=no
15966   need_lib_prefix=no
15967
15968   case $GCC,$host_os in
15969   yes,cygwin* | yes,mingw* | yes,pw32*)
15970     library_names_spec='$libname.dll.a'
15971     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15972     postinstall_cmds='base_file=`basename \${file}`~
15973       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15974       dldir=$destdir/`dirname \$dlpath`~
15975       test -d \$dldir || mkdir -p \$dldir~
15976       $install_prog $dir/$dlname \$dldir/$dlname~
15977       chmod a+x \$dldir/$dlname'
15978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15979       dlpath=$dir/\$dldll~
15980        $rm \$dlpath'
15981     shlibpath_overrides_runpath=yes
15982
15983     case $host_os in
15984     cygwin*)
15985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15988       ;;
15989     mingw*)
15990       # MinGW DLLs use traditional 'lib' prefix
15991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15992       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15993       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15994         # It is most probably a Windows format PATH printed by
15995         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15996         # path with ; separators, and with drive letters. We can handle the
15997         # drive letters (cygwin fileutils understands them), so leave them,
15998         # especially as we might pass files found there to a mingw objdump,
15999         # which wouldn't understand a cygwinified path. Ahh.
16000         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16001       else
16002         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16003       fi
16004       ;;
16005     pw32*)
16006       # pw32 DLLs use 'pw' prefix rather than 'lib'
16007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16008       ;;
16009     esac
16010     ;;
16011
16012   *)
16013     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16014     ;;
16015   esac
16016   dynamic_linker='Win32 ld.exe'
16017   # FIXME: first we should search . and the directory the executable is in
16018   shlibpath_var=PATH
16019   ;;
16020
16021 darwin* | rhapsody*)
16022   dynamic_linker="$host_os dyld"
16023   version_type=darwin
16024   need_lib_prefix=no
16025   need_version=no
16026   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16027   soname_spec='${libname}${release}${major}$shared_ext'
16028   shlibpath_overrides_runpath=yes
16029   shlibpath_var=DYLD_LIBRARY_PATH
16030   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16031
16032   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16033   ;;
16034
16035 dgux*)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   ;;
16043
16044 freebsd1*)
16045   dynamic_linker=no
16046   ;;
16047
16048 freebsd* | dragonfly*)
16049   # DragonFly does not have aout.  When/if they implement a new
16050   # versioning mechanism, adjust this.
16051   if test -x /usr/bin/objformat; then
16052     objformat=`/usr/bin/objformat`
16053   else
16054     case $host_os in
16055     freebsd[123]*) objformat=aout ;;
16056     *) objformat=elf ;;
16057     esac
16058   fi
16059   version_type=freebsd-$objformat
16060   case $version_type in
16061     freebsd-elf*)
16062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16063       need_version=no
16064       need_lib_prefix=no
16065       ;;
16066     freebsd-*)
16067       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16068       need_version=yes
16069       ;;
16070   esac
16071   shlibpath_var=LD_LIBRARY_PATH
16072   case $host_os in
16073   freebsd2*)
16074     shlibpath_overrides_runpath=yes
16075     ;;
16076   freebsd3.[01]* | freebsdelf3.[01]*)
16077     shlibpath_overrides_runpath=yes
16078     hardcode_into_libs=yes
16079     ;;
16080   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16081   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16082     shlibpath_overrides_runpath=no
16083     hardcode_into_libs=yes
16084     ;;
16085   *) # from 4.6 on, and DragonFly
16086     shlibpath_overrides_runpath=yes
16087     hardcode_into_libs=yes
16088     ;;
16089   esac
16090   ;;
16091
16092 gnu*)
16093   version_type=linux
16094   need_lib_prefix=no
16095   need_version=no
16096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16097   soname_spec='${libname}${release}${shared_ext}$major'
16098   shlibpath_var=LD_LIBRARY_PATH
16099   hardcode_into_libs=yes
16100   ;;
16101
16102 hpux9* | hpux10* | hpux11*)
16103   # Give a soname corresponding to the major version so that dld.sl refuses to
16104   # link against other versions.
16105   version_type=sunos
16106   need_lib_prefix=no
16107   need_version=no
16108   case $host_cpu in
16109   ia64*)
16110     shrext_cmds='.so'
16111     hardcode_into_libs=yes
16112     dynamic_linker="$host_os dld.so"
16113     shlibpath_var=LD_LIBRARY_PATH
16114     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116     soname_spec='${libname}${release}${shared_ext}$major'
16117     if test "X$HPUX_IA64_MODE" = X32; then
16118       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16119     else
16120       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16121     fi
16122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16123     ;;
16124    hppa*64*)
16125      shrext_cmds='.sl'
16126      hardcode_into_libs=yes
16127      dynamic_linker="$host_os dld.sl"
16128      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16129      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16130      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131      soname_spec='${libname}${release}${shared_ext}$major'
16132      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16133      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16134      ;;
16135    *)
16136     shrext_cmds='.sl'
16137     dynamic_linker="$host_os dld.sl"
16138     shlibpath_var=SHLIB_PATH
16139     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141     soname_spec='${libname}${release}${shared_ext}$major'
16142     ;;
16143   esac
16144   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16145   postinstall_cmds='chmod 555 $lib'
16146   ;;
16147
16148 interix[3-9]*)
16149   version_type=linux
16150   need_lib_prefix=no
16151   need_version=no
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16153   soname_spec='${libname}${release}${shared_ext}$major'
16154   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16155   shlibpath_var=LD_LIBRARY_PATH
16156   shlibpath_overrides_runpath=no
16157   hardcode_into_libs=yes
16158   ;;
16159
16160 irix5* | irix6* | nonstopux*)
16161   case $host_os in
16162     nonstopux*) version_type=nonstopux ;;
16163     *)
16164         if test "$lt_cv_prog_gnu_ld" = yes; then
16165                 version_type=linux
16166         else
16167                 version_type=irix
16168         fi ;;
16169   esac
16170   need_lib_prefix=no
16171   need_version=no
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16174   case $host_os in
16175   irix5* | nonstopux*)
16176     libsuff= shlibsuff=
16177     ;;
16178   *)
16179     case $LD in # libtool.m4 will add one of these switches to LD
16180     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16181       libsuff= shlibsuff= libmagic=32-bit;;
16182     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16183       libsuff=32 shlibsuff=N32 libmagic=N32;;
16184     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16185       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16186     *) libsuff= shlibsuff= libmagic=never-match;;
16187     esac
16188     ;;
16189   esac
16190   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16191   shlibpath_overrides_runpath=no
16192   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16193   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16194   hardcode_into_libs=yes
16195   ;;
16196
16197 # No shared lib support for Linux oldld, aout, or coff.
16198 linux*oldld* | linux*aout* | linux*coff*)
16199   dynamic_linker=no
16200   ;;
16201
16202 # This must be Linux ELF.
16203 linux* | k*bsd*-gnu)
16204   version_type=linux
16205   need_lib_prefix=no
16206   need_version=no
16207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208   soname_spec='${libname}${release}${shared_ext}$major'
16209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16210   shlibpath_var=LD_LIBRARY_PATH
16211   shlibpath_overrides_runpath=no
16212   # This implies no fast_install, which is unacceptable.
16213   # Some rework will be needed to allow for fast_install
16214   # before this can be enabled.
16215   hardcode_into_libs=yes
16216
16217   # Append ld.so.conf contents to the search path
16218   if test -f /etc/ld.so.conf; then
16219     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16220     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16221   fi
16222
16223   # We used to test for /lib/ld.so.1 and disable shared libraries on
16224   # powerpc, because MkLinux only supported shared libraries with the
16225   # GNU dynamic linker.  Since this was broken with cross compilers,
16226   # most powerpc-linux boxes support dynamic linking these days and
16227   # people can always --disable-shared, the test was removed, and we
16228   # assume the GNU/Linux dynamic linker is in use.
16229   dynamic_linker='GNU/Linux ld.so'
16230   ;;
16231
16232 netbsdelf*-gnu)
16233   version_type=linux
16234   need_lib_prefix=no
16235   need_version=no
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   shlibpath_overrides_runpath=no
16240   hardcode_into_libs=yes
16241   dynamic_linker='NetBSD ld.elf_so'
16242   ;;
16243
16244 netbsd*)
16245   version_type=sunos
16246   need_lib_prefix=no
16247   need_version=no
16248   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251     dynamic_linker='NetBSD (a.out) ld.so'
16252   else
16253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16254     soname_spec='${libname}${release}${shared_ext}$major'
16255     dynamic_linker='NetBSD ld.elf_so'
16256   fi
16257   shlibpath_var=LD_LIBRARY_PATH
16258   shlibpath_overrides_runpath=yes
16259   hardcode_into_libs=yes
16260   ;;
16261
16262 newsos6)
16263   version_type=linux
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265   shlibpath_var=LD_LIBRARY_PATH
16266   shlibpath_overrides_runpath=yes
16267   ;;
16268
16269 nto-qnx*)
16270   version_type=linux
16271   need_lib_prefix=no
16272   need_version=no
16273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274   soname_spec='${libname}${release}${shared_ext}$major'
16275   shlibpath_var=LD_LIBRARY_PATH
16276   shlibpath_overrides_runpath=yes
16277   ;;
16278
16279 openbsd*)
16280   version_type=sunos
16281   sys_lib_dlsearch_path_spec="/usr/lib"
16282   need_lib_prefix=no
16283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16284   case $host_os in
16285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16286     *)                         need_version=no  ;;
16287   esac
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16292     case $host_os in
16293       openbsd2.[89] | openbsd2.[89].*)
16294         shlibpath_overrides_runpath=no
16295         ;;
16296       *)
16297         shlibpath_overrides_runpath=yes
16298         ;;
16299       esac
16300   else
16301     shlibpath_overrides_runpath=yes
16302   fi
16303   ;;
16304
16305 os2*)
16306   libname_spec='$name'
16307   shrext_cmds=".dll"
16308   need_lib_prefix=no
16309   library_names_spec='$libname${shared_ext} $libname.a'
16310   dynamic_linker='OS/2 ld.exe'
16311   shlibpath_var=LIBPATH
16312   ;;
16313
16314 osf3* | osf4* | osf5*)
16315   version_type=osf
16316   need_lib_prefix=no
16317   need_version=no
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320   shlibpath_var=LD_LIBRARY_PATH
16321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16323   ;;
16324
16325 rdos*)
16326   dynamic_linker=no
16327   ;;
16328
16329 solaris*)
16330   version_type=linux
16331   need_lib_prefix=no
16332   need_version=no
16333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334   soname_spec='${libname}${release}${shared_ext}$major'
16335   shlibpath_var=LD_LIBRARY_PATH
16336   shlibpath_overrides_runpath=yes
16337   hardcode_into_libs=yes
16338   # ldd complains unless libraries are executable
16339   postinstall_cmds='chmod +x $lib'
16340   ;;
16341
16342 sunos4*)
16343   version_type=sunos
16344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16346   shlibpath_var=LD_LIBRARY_PATH
16347   shlibpath_overrides_runpath=yes
16348   if test "$with_gnu_ld" = yes; then
16349     need_lib_prefix=no
16350   fi
16351   need_version=yes
16352   ;;
16353
16354 sysv4 | sysv4.3*)
16355   version_type=linux
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   case $host_vendor in
16360     sni)
16361       shlibpath_overrides_runpath=no
16362       need_lib_prefix=no
16363       export_dynamic_flag_spec='${wl}-Blargedynsym'
16364       runpath_var=LD_RUN_PATH
16365       ;;
16366     siemens)
16367       need_lib_prefix=no
16368       ;;
16369     motorola)
16370       need_lib_prefix=no
16371       need_version=no
16372       shlibpath_overrides_runpath=no
16373       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16374       ;;
16375   esac
16376   ;;
16377
16378 sysv4*MP*)
16379   if test -d /usr/nec ;then
16380     version_type=linux
16381     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16382     soname_spec='$libname${shared_ext}.$major'
16383     shlibpath_var=LD_LIBRARY_PATH
16384   fi
16385   ;;
16386
16387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16388   version_type=freebsd-elf
16389   need_lib_prefix=no
16390   need_version=no
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16392   soname_spec='${libname}${release}${shared_ext}$major'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   hardcode_into_libs=yes
16395   if test "$with_gnu_ld" = yes; then
16396     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16397     shlibpath_overrides_runpath=no
16398   else
16399     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16400     shlibpath_overrides_runpath=yes
16401     case $host_os in
16402       sco3.2v5*)
16403         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16404         ;;
16405     esac
16406   fi
16407   sys_lib_dlsearch_path_spec='/usr/lib'
16408   ;;
16409
16410 uts4*)
16411   version_type=linux
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   ;;
16416
16417 *)
16418   dynamic_linker=no
16419   ;;
16420 esac
16421 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16422 echo "${ECHO_T}$dynamic_linker" >&6; }
16423 test "$dynamic_linker" = no && can_build_shared=no
16424
16425 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16429 fi
16430
16431 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16436 fi
16437
16438 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16439
16440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16441 if test "$GCC" = yes; then
16442   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16443 fi
16444
16445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16447 hardcode_action_F77=
16448 if test -n "$hardcode_libdir_flag_spec_F77" || \
16449    test -n "$runpath_var_F77" || \
16450    test "X$hardcode_automatic_F77" = "Xyes" ; then
16451
16452   # We can hardcode non-existant directories.
16453   if test "$hardcode_direct_F77" != no &&
16454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16455      # have to relink, otherwise we might link with an installed library
16456      # when we should be linking with a yet-to-be-installed one
16457      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16458      test "$hardcode_minus_L_F77" != no; then
16459     # Linking always hardcodes the temporary library directory.
16460     hardcode_action_F77=relink
16461   else
16462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16463     hardcode_action_F77=immediate
16464   fi
16465 else
16466   # We cannot hardcode anything, or else we can only hardcode existing
16467   # directories.
16468   hardcode_action_F77=unsupported
16469 fi
16470 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16471 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16472
16473 if test "$hardcode_action_F77" = relink; then
16474   # Fast installation is not supported
16475   enable_fast_install=no
16476 elif test "$shlibpath_overrides_runpath" = yes ||
16477      test "$enable_shared" = no; then
16478   # Fast installation is not necessary
16479   enable_fast_install=needless
16480 fi
16481
16482
16483 # The else clause should only fire when bootstrapping the
16484 # libtool distribution, otherwise you forgot to ship ltmain.sh
16485 # with your package, and you will get complaints that there are
16486 # no rules to generate ltmain.sh.
16487 if test -f "$ltmain"; then
16488   # See if we are running on zsh, and set the options which allow our commands through
16489   # without removal of \ escapes.
16490   if test -n "${ZSH_VERSION+set}" ; then
16491     setopt NO_GLOB_SUBST
16492   fi
16493   # Now quote all the things that may contain metacharacters while being
16494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16495   # variables and quote the copies for generation of the libtool script.
16496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16497     SED SHELL STRIP \
16498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16500     deplibs_check_method reload_flag reload_cmds need_locks \
16501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16502     lt_cv_sys_global_symbol_to_c_name_address \
16503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16504     old_postinstall_cmds old_postuninstall_cmds \
16505     compiler_F77 \
16506     CC_F77 \
16507     LD_F77 \
16508     lt_prog_compiler_wl_F77 \
16509     lt_prog_compiler_pic_F77 \
16510     lt_prog_compiler_static_F77 \
16511     lt_prog_compiler_no_builtin_flag_F77 \
16512     export_dynamic_flag_spec_F77 \
16513     thread_safe_flag_spec_F77 \
16514     whole_archive_flag_spec_F77 \
16515     enable_shared_with_static_runtimes_F77 \
16516     old_archive_cmds_F77 \
16517     old_archive_from_new_cmds_F77 \
16518     predep_objects_F77 \
16519     postdep_objects_F77 \
16520     predeps_F77 \
16521     postdeps_F77 \
16522     compiler_lib_search_path_F77 \
16523     compiler_lib_search_dirs_F77 \
16524     archive_cmds_F77 \
16525     archive_expsym_cmds_F77 \
16526     postinstall_cmds_F77 \
16527     postuninstall_cmds_F77 \
16528     old_archive_from_expsyms_cmds_F77 \
16529     allow_undefined_flag_F77 \
16530     no_undefined_flag_F77 \
16531     export_symbols_cmds_F77 \
16532     hardcode_libdir_flag_spec_F77 \
16533     hardcode_libdir_flag_spec_ld_F77 \
16534     hardcode_libdir_separator_F77 \
16535     hardcode_automatic_F77 \
16536     module_cmds_F77 \
16537     module_expsym_cmds_F77 \
16538     lt_cv_prog_compiler_c_o_F77 \
16539     fix_srcfile_path_F77 \
16540     exclude_expsyms_F77 \
16541     include_expsyms_F77; do
16542
16543     case $var in
16544     old_archive_cmds_F77 | \
16545     old_archive_from_new_cmds_F77 | \
16546     archive_cmds_F77 | \
16547     archive_expsym_cmds_F77 | \
16548     module_cmds_F77 | \
16549     module_expsym_cmds_F77 | \
16550     old_archive_from_expsyms_cmds_F77 | \
16551     export_symbols_cmds_F77 | \
16552     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16553     postinstall_cmds | postuninstall_cmds | \
16554     old_postinstall_cmds | old_postuninstall_cmds | \
16555     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16556       # Double-quote double-evaled strings.
16557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16558       ;;
16559     *)
16560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16561       ;;
16562     esac
16563   done
16564
16565   case $lt_echo in
16566   *'\$0 --fallback-echo"')
16567     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16568     ;;
16569   esac
16570
16571 cfgfile="$ofile"
16572
16573   cat <<__EOF__ >> "$cfgfile"
16574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16575
16576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16577
16578 # Shell to use when invoking shell scripts.
16579 SHELL=$lt_SHELL
16580
16581 # Whether or not to build shared libraries.
16582 build_libtool_libs=$enable_shared
16583
16584 # Whether or not to build static libraries.
16585 build_old_libs=$enable_static
16586
16587 # Whether or not to add -lc for building shared libraries.
16588 build_libtool_need_lc=$archive_cmds_need_lc_F77
16589
16590 # Whether or not to disallow shared libs when runtime libs are static
16591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16592
16593 # Whether or not to optimize for fast installation.
16594 fast_install=$enable_fast_install
16595
16596 # The host system.
16597 host_alias=$host_alias
16598 host=$host
16599 host_os=$host_os
16600
16601 # The build system.
16602 build_alias=$build_alias
16603 build=$build
16604 build_os=$build_os
16605
16606 # An echo program that does not interpret backslashes.
16607 echo=$lt_echo
16608
16609 # The archiver.
16610 AR=$lt_AR
16611 AR_FLAGS=$lt_AR_FLAGS
16612
16613 # A C compiler.
16614 LTCC=$lt_LTCC
16615
16616 # LTCC compiler flags.
16617 LTCFLAGS=$lt_LTCFLAGS
16618
16619 # A language-specific compiler.
16620 CC=$lt_compiler_F77
16621
16622 # Is the compiler the GNU C compiler?
16623 with_gcc=$GCC_F77
16624
16625 # An ERE matcher.
16626 EGREP=$lt_EGREP
16627
16628 # The linker used to build libraries.
16629 LD=$lt_LD_F77
16630
16631 # Whether we need hard or soft links.
16632 LN_S=$lt_LN_S
16633
16634 # A BSD-compatible nm program.
16635 NM=$lt_NM
16636
16637 # A symbol stripping program
16638 STRIP=$lt_STRIP
16639
16640 # Used to examine libraries when file_magic_cmd begins "file"
16641 MAGIC_CMD=$MAGIC_CMD
16642
16643 # Used on cygwin: DLL creation program.
16644 DLLTOOL="$DLLTOOL"
16645
16646 # Used on cygwin: object dumper.
16647 OBJDUMP="$OBJDUMP"
16648
16649 # Used on cygwin: assembler.
16650 AS="$AS"
16651
16652 # The name of the directory that contains temporary libtool files.
16653 objdir=$objdir
16654
16655 # How to create reloadable object files.
16656 reload_flag=$lt_reload_flag
16657 reload_cmds=$lt_reload_cmds
16658
16659 # How to pass a linker flag through the compiler.
16660 wl=$lt_lt_prog_compiler_wl_F77
16661
16662 # Object file suffix (normally "o").
16663 objext="$ac_objext"
16664
16665 # Old archive suffix (normally "a").
16666 libext="$libext"
16667
16668 # Shared library suffix (normally ".so").
16669 shrext_cmds='$shrext_cmds'
16670
16671 # Executable file suffix (normally "").
16672 exeext="$exeext"
16673
16674 # Additional compiler flags for building library objects.
16675 pic_flag=$lt_lt_prog_compiler_pic_F77
16676 pic_mode=$pic_mode
16677
16678 # What is the maximum length of a command?
16679 max_cmd_len=$lt_cv_sys_max_cmd_len
16680
16681 # Does compiler simultaneously support -c and -o options?
16682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16683
16684 # Must we lock files when doing compilation?
16685 need_locks=$lt_need_locks
16686
16687 # Do we need the lib prefix for modules?
16688 need_lib_prefix=$need_lib_prefix
16689
16690 # Do we need a version for libraries?
16691 need_version=$need_version
16692
16693 # Whether dlopen is supported.
16694 dlopen_support=$enable_dlopen
16695
16696 # Whether dlopen of programs is supported.
16697 dlopen_self=$enable_dlopen_self
16698
16699 # Whether dlopen of statically linked programs is supported.
16700 dlopen_self_static=$enable_dlopen_self_static
16701
16702 # Compiler flag to prevent dynamic linking.
16703 link_static_flag=$lt_lt_prog_compiler_static_F77
16704
16705 # Compiler flag to turn off builtin functions.
16706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16707
16708 # Compiler flag to allow reflexive dlopens.
16709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16710
16711 # Compiler flag to generate shared objects directly from archives.
16712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16713
16714 # Compiler flag to generate thread-safe objects.
16715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16716
16717 # Library versioning type.
16718 version_type=$version_type
16719
16720 # Format of library name prefix.
16721 libname_spec=$lt_libname_spec
16722
16723 # List of archive names.  First name is the real one, the rest are links.
16724 # The last name is the one that the linker finds with -lNAME.
16725 library_names_spec=$lt_library_names_spec
16726
16727 # The coded name of the library, if different from the real name.
16728 soname_spec=$lt_soname_spec
16729
16730 # Commands used to build and install an old-style archive.
16731 RANLIB=$lt_RANLIB
16732 old_archive_cmds=$lt_old_archive_cmds_F77
16733 old_postinstall_cmds=$lt_old_postinstall_cmds
16734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16735
16736 # Create an old-style archive from a shared archive.
16737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16738
16739 # Create a temporary old-style archive to link instead of a shared archive.
16740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16741
16742 # Commands used to build and install a shared archive.
16743 archive_cmds=$lt_archive_cmds_F77
16744 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16745 postinstall_cmds=$lt_postinstall_cmds
16746 postuninstall_cmds=$lt_postuninstall_cmds
16747
16748 # Commands used to build a loadable module (assumed same as above if empty)
16749 module_cmds=$lt_module_cmds_F77
16750 module_expsym_cmds=$lt_module_expsym_cmds_F77
16751
16752 # Commands to strip libraries.
16753 old_striplib=$lt_old_striplib
16754 striplib=$lt_striplib
16755
16756 # Dependencies to place before the objects being linked to create a
16757 # shared library.
16758 predep_objects=$lt_predep_objects_F77
16759
16760 # Dependencies to place after the objects being linked to create a
16761 # shared library.
16762 postdep_objects=$lt_postdep_objects_F77
16763
16764 # Dependencies to place before the objects being linked to create a
16765 # shared library.
16766 predeps=$lt_predeps_F77
16767
16768 # Dependencies to place after the objects being linked to create a
16769 # shared library.
16770 postdeps=$lt_postdeps_F77
16771
16772 # The directories searched by this compiler when creating a shared
16773 # library
16774 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16775
16776 # The library search path used internally by the compiler when linking
16777 # a shared library.
16778 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16779
16780 # Method to check whether dependent libraries are shared objects.
16781 deplibs_check_method=$lt_deplibs_check_method
16782
16783 # Command to use when deplibs_check_method == file_magic.
16784 file_magic_cmd=$lt_file_magic_cmd
16785
16786 # Flag that allows shared libraries with undefined symbols to be built.
16787 allow_undefined_flag=$lt_allow_undefined_flag_F77
16788
16789 # Flag that forces no undefined symbols.
16790 no_undefined_flag=$lt_no_undefined_flag_F77
16791
16792 # Commands used to finish a libtool library installation in a directory.
16793 finish_cmds=$lt_finish_cmds
16794
16795 # Same as above, but a single script fragment to be evaled but not shown.
16796 finish_eval=$lt_finish_eval
16797
16798 # Take the output of nm and produce a listing of raw symbols and C names.
16799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16800
16801 # Transform the output of nm in a proper C declaration
16802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16803
16804 # Transform the output of nm in a C name address pair
16805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16806
16807 # This is the shared library runtime path variable.
16808 runpath_var=$runpath_var
16809
16810 # This is the shared library path variable.
16811 shlibpath_var=$shlibpath_var
16812
16813 # Is shlibpath searched before the hard-coded library search path?
16814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16815
16816 # How to hardcode a shared library path into an executable.
16817 hardcode_action=$hardcode_action_F77
16818
16819 # Whether we should hardcode library paths into libraries.
16820 hardcode_into_libs=$hardcode_into_libs
16821
16822 # Flag to hardcode \$libdir into a binary during linking.
16823 # This must work even if \$libdir does not exist.
16824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16825
16826 # If ld is used when linking, flag to hardcode \$libdir into
16827 # a binary during linking. This must work even if \$libdir does
16828 # not exist.
16829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16830
16831 # Whether we need a single -rpath flag with a separated argument.
16832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16833
16834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16835 # resulting binary.
16836 hardcode_direct=$hardcode_direct_F77
16837
16838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16839 # resulting binary.
16840 hardcode_minus_L=$hardcode_minus_L_F77
16841
16842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16843 # the resulting binary.
16844 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16845
16846 # Set to yes if building a shared library automatically hardcodes DIR into the library
16847 # and all subsequent libraries and executables linked against it.
16848 hardcode_automatic=$hardcode_automatic_F77
16849
16850 # Variables whose values should be saved in libtool wrapper scripts and
16851 # restored at relink time.
16852 variables_saved_for_relink="$variables_saved_for_relink"
16853
16854 # Whether libtool must link a program against all its dependency libraries.
16855 link_all_deplibs=$link_all_deplibs_F77
16856
16857 # Compile-time system search path for libraries
16858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16859
16860 # Run-time system search path for libraries
16861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16862
16863 # Fix the shell variable \$srcfile for the compiler.
16864 fix_srcfile_path=$lt_fix_srcfile_path
16865
16866 # Set to yes if exported symbols are required.
16867 always_export_symbols=$always_export_symbols_F77
16868
16869 # The commands to list exported symbols.
16870 export_symbols_cmds=$lt_export_symbols_cmds_F77
16871
16872 # The commands to extract the exported symbol list from a shared archive.
16873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16874
16875 # Symbols that should not be listed in the preloaded symbols.
16876 exclude_expsyms=$lt_exclude_expsyms_F77
16877
16878 # Symbols that must always be exported.
16879 include_expsyms=$lt_include_expsyms_F77
16880
16881 # ### END LIBTOOL TAG CONFIG: $tagname
16882
16883 __EOF__
16884
16885
16886 else
16887   # If there is no Makefile yet, we rely on a make rule to execute
16888   # `config.status --recheck' to rerun these tests and create the
16889   # libtool script then.
16890   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16891   if test -f "$ltmain_in"; then
16892     test -f Makefile && make "$ltmain"
16893   fi
16894 fi
16895
16896
16897 ac_ext=c
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16902
16903 CC="$lt_save_CC"
16904
16905         else
16906           tagname=""
16907         fi
16908         ;;
16909
16910       GCJ)
16911         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16912
16913
16914 # Source file extension for Java test sources.
16915 ac_ext=java
16916
16917 # Object file extension for compiled Java test sources.
16918 objext=o
16919 objext_GCJ=$objext
16920
16921 # Code to be used in simple compile tests
16922 lt_simple_compile_test_code="class foo {}"
16923
16924 # Code to be used in simple link tests
16925 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16926
16927 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16928
16929 # If no C compiler was specified, use CC.
16930 LTCC=${LTCC-"$CC"}
16931
16932 # If no C compiler flags were specified, use CFLAGS.
16933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16934
16935 # Allow CC to be a program name with arguments.
16936 compiler=$CC
16937
16938
16939 # save warnings/boilerplate of simple test code
16940 ac_outfile=conftest.$ac_objext
16941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16943 _lt_compiler_boilerplate=`cat conftest.err`
16944 $rm conftest*
16945
16946 ac_outfile=conftest.$ac_objext
16947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16949 _lt_linker_boilerplate=`cat conftest.err`
16950 $rm -r conftest*
16951
16952
16953 # Allow CC to be a program name with arguments.
16954 lt_save_CC="$CC"
16955 CC=${GCJ-"gcj"}
16956 compiler=$CC
16957 compiler_GCJ=$CC
16958 for cc_temp in $compiler""; do
16959   case $cc_temp in
16960     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16961     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16962     \-*) ;;
16963     *) break;;
16964   esac
16965 done
16966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16967
16968
16969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16970 archive_cmds_need_lc_GCJ=no
16971
16972 old_archive_cmds_GCJ=$old_archive_cmds
16973
16974
16975 lt_prog_compiler_no_builtin_flag_GCJ=
16976
16977 if test "$GCC" = yes; then
16978   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16979
16980
16981 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   lt_cv_prog_compiler_rtti_exceptions=no
16987   ac_outfile=conftest.$ac_objext
16988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16989    lt_compiler_flag="-fno-rtti -fno-exceptions"
16990    # Insert the option either (1) after the last *FLAGS variable, or
16991    # (2) before a word containing "conftest.", or (3) at the end.
16992    # Note that $ac_compile itself does not contain backslashes and begins
16993    # with a dollar sign (not a hyphen), so the echo should work correctly.
16994    # The option is referenced via a variable to avoid confusing sed.
16995    lt_compile=`echo "$ac_compile" | $SED \
16996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16998    -e 's:$: $lt_compiler_flag:'`
16999    (eval echo "\"\$as_me:16999: $lt_compile\"" >&5)
17000    (eval "$lt_compile" 2>conftest.err)
17001    ac_status=$?
17002    cat conftest.err >&5
17003    echo "$as_me:17003: \$? = $ac_status" >&5
17004    if (exit $ac_status) && test -s "$ac_outfile"; then
17005      # The compiler can only warn and ignore the option if not recognized
17006      # So say no if there are warnings other than the usual output.
17007      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17010        lt_cv_prog_compiler_rtti_exceptions=yes
17011      fi
17012    fi
17013    $rm conftest*
17014
17015 fi
17016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17018
17019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17020     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17021 else
17022     :
17023 fi
17024
17025 fi
17026
17027 lt_prog_compiler_wl_GCJ=
17028 lt_prog_compiler_pic_GCJ=
17029 lt_prog_compiler_static_GCJ=
17030
17031 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17033
17034   if test "$GCC" = yes; then
17035     lt_prog_compiler_wl_GCJ='-Wl,'
17036     lt_prog_compiler_static_GCJ='-static'
17037
17038     case $host_os in
17039       aix*)
17040       # All AIX code is PIC.
17041       if test "$host_cpu" = ia64; then
17042         # AIX 5 now supports IA64 processor
17043         lt_prog_compiler_static_GCJ='-Bstatic'
17044       fi
17045       ;;
17046
17047     amigaos*)
17048       # FIXME: we need at least 68020 code to build shared libraries, but
17049       # adding the `-m68020' flag to GCC prevents building anything better,
17050       # like `-m68040'.
17051       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17052       ;;
17053
17054     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17055       # PIC is the default for these OSes.
17056       ;;
17057
17058     mingw* | cygwin* | pw32* | os2*)
17059       # This hack is so that the source file can tell whether it is being
17060       # built for inclusion in a dll (and should export symbols for example).
17061       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17062       # (--disable-auto-import) libraries
17063
17064       ;;
17065
17066     darwin* | rhapsody*)
17067       # PIC is the default on this platform
17068       # Common symbols not allowed in MH_DYLIB files
17069       lt_prog_compiler_pic_GCJ='-fno-common'
17070       ;;
17071
17072     interix[3-9]*)
17073       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17074       # Instead, we relocate shared libraries at runtime.
17075       ;;
17076
17077     msdosdjgpp*)
17078       # Just because we use GCC doesn't mean we suddenly get shared libraries
17079       # on systems that don't support them.
17080       lt_prog_compiler_can_build_shared_GCJ=no
17081       enable_shared=no
17082       ;;
17083
17084     sysv4*MP*)
17085       if test -d /usr/nec; then
17086         lt_prog_compiler_pic_GCJ=-Kconform_pic
17087       fi
17088       ;;
17089
17090     hpux*)
17091       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17092       # not for PA HP-UX.
17093       case $host_cpu in
17094       hppa*64*|ia64*)
17095         # +Z the default
17096         ;;
17097       *)
17098         lt_prog_compiler_pic_GCJ='-fPIC'
17099         ;;
17100       esac
17101       ;;
17102
17103     *)
17104       lt_prog_compiler_pic_GCJ='-fPIC'
17105       ;;
17106     esac
17107   else
17108     # PORTME Check for flag to pass linker flags through the system compiler.
17109     case $host_os in
17110     aix*)
17111       lt_prog_compiler_wl_GCJ='-Wl,'
17112       if test "$host_cpu" = ia64; then
17113         # AIX 5 now supports IA64 processor
17114         lt_prog_compiler_static_GCJ='-Bstatic'
17115       else
17116         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17117       fi
17118       ;;
17119       darwin*)
17120         # PIC is the default on this platform
17121         # Common symbols not allowed in MH_DYLIB files
17122        case $cc_basename in
17123          xlc*)
17124          lt_prog_compiler_pic_GCJ='-qnocommon'
17125          lt_prog_compiler_wl_GCJ='-Wl,'
17126          ;;
17127        esac
17128        ;;
17129
17130     mingw* | cygwin* | pw32* | os2*)
17131       # This hack is so that the source file can tell whether it is being
17132       # built for inclusion in a dll (and should export symbols for example).
17133
17134       ;;
17135
17136     hpux9* | hpux10* | hpux11*)
17137       lt_prog_compiler_wl_GCJ='-Wl,'
17138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17139       # not for PA HP-UX.
17140       case $host_cpu in
17141       hppa*64*|ia64*)
17142         # +Z the default
17143         ;;
17144       *)
17145         lt_prog_compiler_pic_GCJ='+Z'
17146         ;;
17147       esac
17148       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17149       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17150       ;;
17151
17152     irix5* | irix6* | nonstopux*)
17153       lt_prog_compiler_wl_GCJ='-Wl,'
17154       # PIC (with -KPIC) is the default.
17155       lt_prog_compiler_static_GCJ='-non_shared'
17156       ;;
17157
17158     newsos6)
17159       lt_prog_compiler_pic_GCJ='-KPIC'
17160       lt_prog_compiler_static_GCJ='-Bstatic'
17161       ;;
17162
17163     linux* | k*bsd*-gnu)
17164       case $cc_basename in
17165       icc* | ecc*)
17166         lt_prog_compiler_wl_GCJ='-Wl,'
17167         lt_prog_compiler_pic_GCJ='-KPIC'
17168         lt_prog_compiler_static_GCJ='-static'
17169         ;;
17170       pgcc* | pgf77* | pgf90* | pgf95*)
17171         # Portland Group compilers (*not* the Pentium gcc compiler,
17172         # which looks to be a dead project)
17173         lt_prog_compiler_wl_GCJ='-Wl,'
17174         lt_prog_compiler_pic_GCJ='-fpic'
17175         lt_prog_compiler_static_GCJ='-Bstatic'
17176         ;;
17177       ccc*)
17178         lt_prog_compiler_wl_GCJ='-Wl,'
17179         # All Alpha code is PIC.
17180         lt_prog_compiler_static_GCJ='-non_shared'
17181         ;;
17182       *)
17183         case `$CC -V 2>&1 | sed 5q` in
17184         *Sun\ C*)
17185           # Sun C 5.9
17186           lt_prog_compiler_pic_GCJ='-KPIC'
17187           lt_prog_compiler_static_GCJ='-Bstatic'
17188           lt_prog_compiler_wl_GCJ='-Wl,'
17189           ;;
17190         *Sun\ F*)
17191           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17192           lt_prog_compiler_pic_GCJ='-KPIC'
17193           lt_prog_compiler_static_GCJ='-Bstatic'
17194           lt_prog_compiler_wl_GCJ=''
17195           ;;
17196         esac
17197         ;;
17198       esac
17199       ;;
17200
17201     osf3* | osf4* | osf5*)
17202       lt_prog_compiler_wl_GCJ='-Wl,'
17203       # All OSF/1 code is PIC.
17204       lt_prog_compiler_static_GCJ='-non_shared'
17205       ;;
17206
17207     rdos*)
17208       lt_prog_compiler_static_GCJ='-non_shared'
17209       ;;
17210
17211     solaris*)
17212       lt_prog_compiler_pic_GCJ='-KPIC'
17213       lt_prog_compiler_static_GCJ='-Bstatic'
17214       case $cc_basename in
17215       f77* | f90* | f95*)
17216         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17217       *)
17218         lt_prog_compiler_wl_GCJ='-Wl,';;
17219       esac
17220       ;;
17221
17222     sunos4*)
17223       lt_prog_compiler_wl_GCJ='-Qoption ld '
17224       lt_prog_compiler_pic_GCJ='-PIC'
17225       lt_prog_compiler_static_GCJ='-Bstatic'
17226       ;;
17227
17228     sysv4 | sysv4.2uw2* | sysv4.3*)
17229       lt_prog_compiler_wl_GCJ='-Wl,'
17230       lt_prog_compiler_pic_GCJ='-KPIC'
17231       lt_prog_compiler_static_GCJ='-Bstatic'
17232       ;;
17233
17234     sysv4*MP*)
17235       if test -d /usr/nec ;then
17236         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17237         lt_prog_compiler_static_GCJ='-Bstatic'
17238       fi
17239       ;;
17240
17241     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17242       lt_prog_compiler_wl_GCJ='-Wl,'
17243       lt_prog_compiler_pic_GCJ='-KPIC'
17244       lt_prog_compiler_static_GCJ='-Bstatic'
17245       ;;
17246
17247     unicos*)
17248       lt_prog_compiler_wl_GCJ='-Wl,'
17249       lt_prog_compiler_can_build_shared_GCJ=no
17250       ;;
17251
17252     uts4*)
17253       lt_prog_compiler_pic_GCJ='-pic'
17254       lt_prog_compiler_static_GCJ='-Bstatic'
17255       ;;
17256
17257     *)
17258       lt_prog_compiler_can_build_shared_GCJ=no
17259       ;;
17260     esac
17261   fi
17262
17263 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17264 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17265
17266 #
17267 # Check to make sure the PIC flag actually works.
17268 #
17269 if test -n "$lt_prog_compiler_pic_GCJ"; then
17270
17271 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17273 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   lt_cv_prog_compiler_pic_works_GCJ=no
17277   ac_outfile=conftest.$ac_objext
17278    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17279    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17280    # Insert the option either (1) after the last *FLAGS variable, or
17281    # (2) before a word containing "conftest.", or (3) at the end.
17282    # Note that $ac_compile itself does not contain backslashes and begins
17283    # with a dollar sign (not a hyphen), so the echo should work correctly.
17284    # The option is referenced via a variable to avoid confusing sed.
17285    lt_compile=`echo "$ac_compile" | $SED \
17286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17288    -e 's:$: $lt_compiler_flag:'`
17289    (eval echo "\"\$as_me:17289: $lt_compile\"" >&5)
17290    (eval "$lt_compile" 2>conftest.err)
17291    ac_status=$?
17292    cat conftest.err >&5
17293    echo "$as_me:17293: \$? = $ac_status" >&5
17294    if (exit $ac_status) && test -s "$ac_outfile"; then
17295      # The compiler can only warn and ignore the option if not recognized
17296      # So say no if there are warnings other than the usual output.
17297      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17300        lt_cv_prog_compiler_pic_works_GCJ=yes
17301      fi
17302    fi
17303    $rm conftest*
17304
17305 fi
17306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17307 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17308
17309 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17310     case $lt_prog_compiler_pic_GCJ in
17311      "" | " "*) ;;
17312      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17313      esac
17314 else
17315     lt_prog_compiler_pic_GCJ=
17316      lt_prog_compiler_can_build_shared_GCJ=no
17317 fi
17318
17319 fi
17320 case $host_os in
17321   # For platforms which do not support PIC, -DPIC is meaningless:
17322   *djgpp*)
17323     lt_prog_compiler_pic_GCJ=
17324     ;;
17325   *)
17326     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17327     ;;
17328 esac
17329
17330 #
17331 # Check to make sure the static flag actually works.
17332 #
17333 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17334 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17335 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17336 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   lt_cv_prog_compiler_static_works_GCJ=no
17340    save_LDFLAGS="$LDFLAGS"
17341    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17342    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17343    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17344      # The linker can only warn and ignore the option if not recognized
17345      # So say no if there are warnings
17346      if test -s conftest.err; then
17347        # Append any errors to the config.log.
17348        cat conftest.err 1>&5
17349        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17350        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17351        if diff conftest.exp conftest.er2 >/dev/null; then
17352          lt_cv_prog_compiler_static_works_GCJ=yes
17353        fi
17354      else
17355        lt_cv_prog_compiler_static_works_GCJ=yes
17356      fi
17357    fi
17358    $rm -r conftest*
17359    LDFLAGS="$save_LDFLAGS"
17360
17361 fi
17362 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17363 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17364
17365 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17366     :
17367 else
17368     lt_prog_compiler_static_GCJ=
17369 fi
17370
17371
17372 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17374 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377   lt_cv_prog_compiler_c_o_GCJ=no
17378    $rm -r conftest 2>/dev/null
17379    mkdir conftest
17380    cd conftest
17381    mkdir out
17382    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17383
17384    lt_compiler_flag="-o out/conftest2.$ac_objext"
17385    # Insert the option either (1) after the last *FLAGS variable, or
17386    # (2) before a word containing "conftest.", or (3) at the end.
17387    # Note that $ac_compile itself does not contain backslashes and begins
17388    # with a dollar sign (not a hyphen), so the echo should work correctly.
17389    lt_compile=`echo "$ac_compile" | $SED \
17390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17392    -e 's:$: $lt_compiler_flag:'`
17393    (eval echo "\"\$as_me:17393: $lt_compile\"" >&5)
17394    (eval "$lt_compile" 2>out/conftest.err)
17395    ac_status=$?
17396    cat out/conftest.err >&5
17397    echo "$as_me:17397: \$? = $ac_status" >&5
17398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17399    then
17400      # The compiler can only warn and ignore the option if not recognized
17401      # So say no if there are warnings
17402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17405        lt_cv_prog_compiler_c_o_GCJ=yes
17406      fi
17407    fi
17408    chmod u+w . 2>&5
17409    $rm conftest*
17410    # SGI C++ compiler will create directory out/ii_files/ for
17411    # template instantiation
17412    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17413    $rm out/* && rmdir out
17414    cd ..
17415    rmdir conftest
17416    $rm conftest*
17417
17418 fi
17419 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17421
17422
17423 hard_links="nottested"
17424 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17425   # do not overwrite the value of need_locks provided by the user
17426   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17427 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17428   hard_links=yes
17429   $rm conftest*
17430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17431   touch conftest.a
17432   ln conftest.a conftest.b 2>&5 || hard_links=no
17433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17434   { echo "$as_me:$LINENO: result: $hard_links" >&5
17435 echo "${ECHO_T}$hard_links" >&6; }
17436   if test "$hard_links" = no; then
17437     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17438 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17439     need_locks=warn
17440   fi
17441 else
17442   need_locks=no
17443 fi
17444
17445 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17446 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17447
17448   runpath_var=
17449   allow_undefined_flag_GCJ=
17450   enable_shared_with_static_runtimes_GCJ=no
17451   archive_cmds_GCJ=
17452   archive_expsym_cmds_GCJ=
17453   old_archive_From_new_cmds_GCJ=
17454   old_archive_from_expsyms_cmds_GCJ=
17455   export_dynamic_flag_spec_GCJ=
17456   whole_archive_flag_spec_GCJ=
17457   thread_safe_flag_spec_GCJ=
17458   hardcode_libdir_flag_spec_GCJ=
17459   hardcode_libdir_flag_spec_ld_GCJ=
17460   hardcode_libdir_separator_GCJ=
17461   hardcode_direct_GCJ=no
17462   hardcode_minus_L_GCJ=no
17463   hardcode_shlibpath_var_GCJ=unsupported
17464   link_all_deplibs_GCJ=unknown
17465   hardcode_automatic_GCJ=no
17466   module_cmds_GCJ=
17467   module_expsym_cmds_GCJ=
17468   always_export_symbols_GCJ=no
17469   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17470   # include_expsyms should be a list of space-separated symbols to be *always*
17471   # included in the symbol list
17472   include_expsyms_GCJ=
17473   # exclude_expsyms can be an extended regexp of symbols to exclude
17474   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17475   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17476   # as well as any symbol that contains `d'.
17477   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17478   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17479   # platforms (ab)use it in PIC code, but their linkers get confused if
17480   # the symbol is explicitly referenced.  Since portable code cannot
17481   # rely on this symbol name, it's probably fine to never include it in
17482   # preloaded symbol tables.
17483   # Exclude shared library initialization/finalization symbols.
17484   extract_expsyms_cmds=
17485   # Just being paranoid about ensuring that cc_basename is set.
17486   for cc_temp in $compiler""; do
17487   case $cc_temp in
17488     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17489     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17490     \-*) ;;
17491     *) break;;
17492   esac
17493 done
17494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17495
17496   case $host_os in
17497   cygwin* | mingw* | pw32*)
17498     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17499     # When not using gcc, we currently assume that we are using
17500     # Microsoft Visual C++.
17501     if test "$GCC" != yes; then
17502       with_gnu_ld=no
17503     fi
17504     ;;
17505   interix*)
17506     # we just hope/assume this is gcc and not c89 (= MSVC++)
17507     with_gnu_ld=yes
17508     ;;
17509   openbsd*)
17510     with_gnu_ld=no
17511     ;;
17512   esac
17513
17514   ld_shlibs_GCJ=yes
17515   if test "$with_gnu_ld" = yes; then
17516     # If archive_cmds runs LD, not CC, wlarc should be empty
17517     wlarc='${wl}'
17518
17519     # Set some defaults for GNU ld with shared library support. These
17520     # are reset later if shared libraries are not supported. Putting them
17521     # here allows them to be overridden if necessary.
17522     runpath_var=LD_RUN_PATH
17523     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17524     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17525     # ancient GNU ld didn't support --whole-archive et. al.
17526     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17527         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17528       else
17529         whole_archive_flag_spec_GCJ=
17530     fi
17531     supports_anon_versioning=no
17532     case `$LD -v 2>/dev/null` in
17533       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17534       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17535       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17536       *\ 2.11.*) ;; # other 2.11 versions
17537       *) supports_anon_versioning=yes ;;
17538     esac
17539
17540     # See if GNU ld supports shared libraries.
17541     case $host_os in
17542     aix[3-9]*)
17543       # On AIX/PPC, the GNU linker is very broken
17544       if test "$host_cpu" != ia64; then
17545         ld_shlibs_GCJ=no
17546         cat <<EOF 1>&2
17547
17548 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17549 *** to be unable to reliably create shared libraries on AIX.
17550 *** Therefore, libtool is disabling shared libraries support.  If you
17551 *** really care for shared libraries, you may want to modify your PATH
17552 *** so that a non-GNU linker is found, and then restart.
17553
17554 EOF
17555       fi
17556       ;;
17557
17558     amigaos*)
17559       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)'
17560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561       hardcode_minus_L_GCJ=yes
17562
17563       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17564       # that the semantics of dynamic libraries on AmigaOS, at least up
17565       # to version 4, is to share data among multiple programs linked
17566       # with the same dynamic library.  Since this doesn't match the
17567       # behavior of shared libraries on other platforms, we can't use
17568       # them.
17569       ld_shlibs_GCJ=no
17570       ;;
17571
17572     beos*)
17573       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574         allow_undefined_flag_GCJ=unsupported
17575         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17576         # support --undefined.  This deserves some investigation.  FIXME
17577         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17578       else
17579         ld_shlibs_GCJ=no
17580       fi
17581       ;;
17582
17583     cygwin* | mingw* | pw32*)
17584       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17585       # as there is no search path for DLLs.
17586       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587       allow_undefined_flag_GCJ=unsupported
17588       always_export_symbols_GCJ=no
17589       enable_shared_with_static_runtimes_GCJ=yes
17590       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17591
17592       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17593         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17594         # If the export-symbols file already is a .def file (1st line
17595         # is EXPORTS), use it as is; otherwise, prepend...
17596         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17597           cp $export_symbols $output_objdir/$soname.def;
17598         else
17599           echo EXPORTS > $output_objdir/$soname.def;
17600           cat $export_symbols >> $output_objdir/$soname.def;
17601         fi~
17602         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17603       else
17604         ld_shlibs_GCJ=no
17605       fi
17606       ;;
17607
17608     interix[3-9]*)
17609       hardcode_direct_GCJ=no
17610       hardcode_shlibpath_var_GCJ=no
17611       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612       export_dynamic_flag_spec_GCJ='${wl}-E'
17613       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17614       # Instead, shared libraries are loaded at an image base (0x10000000 by
17615       # default) and relocated if they conflict, which is a slow very memory
17616       # consuming and fragmenting process.  To avoid this, we pick a random,
17617       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17618       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17619       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'
17620       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'
17621       ;;
17622
17623     gnu* | linux* | k*bsd*-gnu)
17624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17625         tmp_addflag=
17626         case $cc_basename,$host_cpu in
17627         pgcc*)                          # Portland Group C compiler
17628           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'
17629           tmp_addflag=' $pic_flag'
17630           ;;
17631         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17632           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'
17633           tmp_addflag=' $pic_flag -Mnomain' ;;
17634         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17635           tmp_addflag=' -i_dynamic' ;;
17636         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17637           tmp_addflag=' -i_dynamic -nofor_main' ;;
17638         ifc* | ifort*)                  # Intel Fortran compiler
17639           tmp_addflag=' -nofor_main' ;;
17640         esac
17641         case `$CC -V 2>&1 | sed 5q` in
17642         *Sun\ C*)                       # Sun C 5.9
17643           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17644           tmp_sharedflag='-G' ;;
17645         *Sun\ F*)                       # Sun Fortran 8.3
17646           tmp_sharedflag='-G' ;;
17647         *)
17648           tmp_sharedflag='-shared' ;;
17649         esac
17650         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17651
17652         if test $supports_anon_versioning = yes; then
17653           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17654   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17655   $echo "local: *; };" >> $output_objdir/$libname.ver~
17656           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17657         fi
17658         link_all_deplibs_GCJ=no
17659       else
17660         ld_shlibs_GCJ=no
17661       fi
17662       ;;
17663
17664     netbsd* | netbsdelf*-gnu)
17665       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17666         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17667         wlarc=
17668       else
17669         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17670         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17671       fi
17672       ;;
17673
17674     solaris*)
17675       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17676         ld_shlibs_GCJ=no
17677         cat <<EOF 1>&2
17678
17679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17680 *** create shared libraries on Solaris systems.  Therefore, libtool
17681 *** is disabling shared libraries support.  We urge you to upgrade GNU
17682 *** binutils to release 2.9.1 or newer.  Another option is to modify
17683 *** your PATH or compiler configuration so that the native linker is
17684 *** used, and then restart.
17685
17686 EOF
17687       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17689         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17690       else
17691         ld_shlibs_GCJ=no
17692       fi
17693       ;;
17694
17695     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17696       case `$LD -v 2>&1` in
17697         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17698         ld_shlibs_GCJ=no
17699         cat <<_LT_EOF 1>&2
17700
17701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17702 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17703 *** is disabling shared libraries support.  We urge you to upgrade GNU
17704 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17705 *** your PATH or compiler configuration so that the native linker is
17706 *** used, and then restart.
17707
17708 _LT_EOF
17709         ;;
17710         *)
17711           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17712             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17713             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17714             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17715           else
17716             ld_shlibs_GCJ=no
17717           fi
17718         ;;
17719       esac
17720       ;;
17721
17722     sunos4*)
17723       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17724       wlarc=
17725       hardcode_direct_GCJ=yes
17726       hardcode_shlibpath_var_GCJ=no
17727       ;;
17728
17729     *)
17730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17731         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17733       else
17734         ld_shlibs_GCJ=no
17735       fi
17736       ;;
17737     esac
17738
17739     if test "$ld_shlibs_GCJ" = no; then
17740       runpath_var=
17741       hardcode_libdir_flag_spec_GCJ=
17742       export_dynamic_flag_spec_GCJ=
17743       whole_archive_flag_spec_GCJ=
17744     fi
17745   else
17746     # PORTME fill in a description of your system's linker (not GNU ld)
17747     case $host_os in
17748     aix3*)
17749       allow_undefined_flag_GCJ=unsupported
17750       always_export_symbols_GCJ=yes
17751       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'
17752       # Note: this linker hardcodes the directories in LIBPATH if there
17753       # are no directories specified by -L.
17754       hardcode_minus_L_GCJ=yes
17755       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17756         # Neither direct hardcoding nor static linking is supported with a
17757         # broken collect2.
17758         hardcode_direct_GCJ=unsupported
17759       fi
17760       ;;
17761
17762     aix[4-9]*)
17763       if test "$host_cpu" = ia64; then
17764         # On IA64, the linker does run time linking by default, so we don't
17765         # have to do anything special.
17766         aix_use_runtimelinking=no
17767         exp_sym_flag='-Bexport'
17768         no_entry_flag=""
17769       else
17770         # If we're using GNU nm, then we don't want the "-C" option.
17771         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17772         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17773           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'
17774         else
17775           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'
17776         fi
17777         aix_use_runtimelinking=no
17778
17779         # Test if we are trying to use run time linking or normal
17780         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17781         # need to do runtime linking.
17782         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17783           for ld_flag in $LDFLAGS; do
17784           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17785             aix_use_runtimelinking=yes
17786             break
17787           fi
17788           done
17789           ;;
17790         esac
17791
17792         exp_sym_flag='-bexport'
17793         no_entry_flag='-bnoentry'
17794       fi
17795
17796       # When large executables or shared objects are built, AIX ld can
17797       # have problems creating the table of contents.  If linking a library
17798       # or program results in "error TOC overflow" add -mminimal-toc to
17799       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17800       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17801
17802       archive_cmds_GCJ=''
17803       hardcode_direct_GCJ=yes
17804       hardcode_libdir_separator_GCJ=':'
17805       link_all_deplibs_GCJ=yes
17806
17807       if test "$GCC" = yes; then
17808         case $host_os in aix4.[012]|aix4.[012].*)
17809         # We only want to do this on AIX 4.2 and lower, the check
17810         # below for broken collect2 doesn't work under 4.3+
17811           collect2name=`${CC} -print-prog-name=collect2`
17812           if test -f "$collect2name" && \
17813            strings "$collect2name" | grep resolve_lib_name >/dev/null
17814           then
17815           # We have reworked collect2
17816           :
17817           else
17818           # We have old collect2
17819           hardcode_direct_GCJ=unsupported
17820           # It fails to find uninstalled libraries when the uninstalled
17821           # path is not listed in the libpath.  Setting hardcode_minus_L
17822           # to unsupported forces relinking
17823           hardcode_minus_L_GCJ=yes
17824           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17825           hardcode_libdir_separator_GCJ=
17826           fi
17827           ;;
17828         esac
17829         shared_flag='-shared'
17830         if test "$aix_use_runtimelinking" = yes; then
17831           shared_flag="$shared_flag "'${wl}-G'
17832         fi
17833       else
17834         # not using gcc
17835         if test "$host_cpu" = ia64; then
17836         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17837         # chokes on -Wl,-G. The following line is correct:
17838           shared_flag='-G'
17839         else
17840           if test "$aix_use_runtimelinking" = yes; then
17841             shared_flag='${wl}-G'
17842           else
17843             shared_flag='${wl}-bM:SRE'
17844           fi
17845         fi
17846       fi
17847
17848       # It seems that -bexpall does not export symbols beginning with
17849       # underscore (_), so it is better to generate a list of symbols to export.
17850       always_export_symbols_GCJ=yes
17851       if test "$aix_use_runtimelinking" = yes; then
17852         # Warning - without using the other runtime loading flags (-brtl),
17853         # -berok will link without error, but may produce a broken library.
17854         allow_undefined_flag_GCJ='-berok'
17855        # Determine the default libpath from the value encoded in an empty executable.
17856        cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h.  */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h.  */
17862
17863 int
17864 main ()
17865 {
17866
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_link") 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } && {
17885          test -z "$ac_c_werror_flag" ||
17886          test ! -s conftest.err
17887        } && test -s conftest$ac_exeext &&
17888        $as_test_x conftest$ac_exeext; then
17889
17890 lt_aix_libpath_sed='
17891     /Import File Strings/,/^$/ {
17892         /^0/ {
17893             s/^0  *\(.*\)$/\1/
17894             p
17895         }
17896     }'
17897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17898 # Check for a 64-bit object if we didn't find anything.
17899 if test -z "$aix_libpath"; then
17900   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17901 fi
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906
17907 fi
17908
17909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17910       conftest$ac_exeext conftest.$ac_ext
17911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17912
17913        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17914         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"
17915        else
17916         if test "$host_cpu" = ia64; then
17917           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17918           allow_undefined_flag_GCJ="-z nodefs"
17919           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"
17920         else
17921          # Determine the default libpath from the value encoded in an empty executable.
17922          cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928
17929 int
17930 main ()
17931 {
17932
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_link") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } && {
17951          test -z "$ac_c_werror_flag" ||
17952          test ! -s conftest.err
17953        } && test -s conftest$ac_exeext &&
17954        $as_test_x conftest$ac_exeext; then
17955
17956 lt_aix_libpath_sed='
17957     /Import File Strings/,/^$/ {
17958         /^0/ {
17959             s/^0  *\(.*\)$/\1/
17960             p
17961         }
17962     }'
17963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17964 # Check for a 64-bit object if we didn't find anything.
17965 if test -z "$aix_libpath"; then
17966   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17967 fi
17968 else
17969   echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972
17973 fi
17974
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976       conftest$ac_exeext conftest.$ac_ext
17977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17978
17979          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17980           # Warning - without using the other run time loading flags,
17981           # -berok will link without error, but may produce a broken library.
17982           no_undefined_flag_GCJ=' ${wl}-bernotok'
17983           allow_undefined_flag_GCJ=' ${wl}-berok'
17984           # Exported symbols can be pulled into shared objects from archives
17985           whole_archive_flag_spec_GCJ='$convenience'
17986           archive_cmds_need_lc_GCJ=yes
17987           # This is similar to how AIX traditionally builds its shared libraries.
17988           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'
17989         fi
17990       fi
17991       ;;
17992
17993     amigaos*)
17994       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)'
17995       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996       hardcode_minus_L_GCJ=yes
17997       # see comment about different semantics on the GNU ld section
17998       ld_shlibs_GCJ=no
17999       ;;
18000
18001     bsdi[45]*)
18002       export_dynamic_flag_spec_GCJ=-rdynamic
18003       ;;
18004
18005     cygwin* | mingw* | pw32*)
18006       # When not using gcc, we currently assume that we are using
18007       # Microsoft Visual C++.
18008       # hardcode_libdir_flag_spec is actually meaningless, as there is
18009       # no search path for DLLs.
18010       hardcode_libdir_flag_spec_GCJ=' '
18011       allow_undefined_flag_GCJ=unsupported
18012       # Tell ltmain to make .lib files, not .a files.
18013       libext=lib
18014       # Tell ltmain to make .dll files, not .so files.
18015       shrext_cmds=".dll"
18016       # FIXME: Setting linknames here is a bad hack.
18017       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18018       # The linker will automatically build a .lib file if we build a DLL.
18019       old_archive_From_new_cmds_GCJ='true'
18020       # FIXME: Should let the user specify the lib program.
18021       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18022       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18023       enable_shared_with_static_runtimes_GCJ=yes
18024       ;;
18025
18026     darwin* | rhapsody*)
18027       case $host_os in
18028         rhapsody* | darwin1.[012])
18029          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18030          ;;
18031        *) # Darwin 1.3 on
18032          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18033            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18034          else
18035            case ${MACOSX_DEPLOYMENT_TARGET} in
18036              10.[012])
18037                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18038                ;;
18039              10.*)
18040                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18041                ;;
18042            esac
18043          fi
18044          ;;
18045       esac
18046       archive_cmds_need_lc_GCJ=no
18047       hardcode_direct_GCJ=no
18048       hardcode_automatic_GCJ=yes
18049       hardcode_shlibpath_var_GCJ=unsupported
18050       whole_archive_flag_spec_GCJ=''
18051       link_all_deplibs_GCJ=yes
18052     if test "$GCC" = yes ; then
18053         output_verbose_link_cmd='echo'
18054         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18055         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18056         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18057         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18058     else
18059       case $cc_basename in
18060         xlc*)
18061          output_verbose_link_cmd='echo'
18062          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18063          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18064           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18065          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18066           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}'
18067           ;;
18068        *)
18069          ld_shlibs_GCJ=no
18070           ;;
18071       esac
18072     fi
18073       ;;
18074
18075     dgux*)
18076       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078       hardcode_shlibpath_var_GCJ=no
18079       ;;
18080
18081     freebsd1*)
18082       ld_shlibs_GCJ=no
18083       ;;
18084
18085     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18086     # support.  Future versions do this automatically, but an explicit c++rt0.o
18087     # does not break anything, and helps significantly (at the cost of a little
18088     # extra space).
18089     freebsd2.2*)
18090       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18092       hardcode_direct_GCJ=yes
18093       hardcode_shlibpath_var_GCJ=no
18094       ;;
18095
18096     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18097     freebsd2*)
18098       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18099       hardcode_direct_GCJ=yes
18100       hardcode_minus_L_GCJ=yes
18101       hardcode_shlibpath_var_GCJ=no
18102       ;;
18103
18104     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18105     freebsd* | dragonfly*)
18106       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18107       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18108       hardcode_direct_GCJ=yes
18109       hardcode_shlibpath_var_GCJ=no
18110       ;;
18111
18112     hpux9*)
18113       if test "$GCC" = yes; then
18114         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'
18115       else
18116         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'
18117       fi
18118       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18119       hardcode_libdir_separator_GCJ=:
18120       hardcode_direct_GCJ=yes
18121
18122       # hardcode_minus_L: Not really in the search PATH,
18123       # but as the default location of the library.
18124       hardcode_minus_L_GCJ=yes
18125       export_dynamic_flag_spec_GCJ='${wl}-E'
18126       ;;
18127
18128     hpux10*)
18129       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18130         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18131       else
18132         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18133       fi
18134       if test "$with_gnu_ld" = no; then
18135         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18136         hardcode_libdir_separator_GCJ=:
18137
18138         hardcode_direct_GCJ=yes
18139         export_dynamic_flag_spec_GCJ='${wl}-E'
18140
18141         # hardcode_minus_L: Not really in the search PATH,
18142         # but as the default location of the library.
18143         hardcode_minus_L_GCJ=yes
18144       fi
18145       ;;
18146
18147     hpux11*)
18148       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18149         case $host_cpu in
18150         hppa*64*)
18151           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18152           ;;
18153         ia64*)
18154           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18155           ;;
18156         *)
18157           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18158           ;;
18159         esac
18160       else
18161         case $host_cpu in
18162         hppa*64*)
18163           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18164           ;;
18165         ia64*)
18166           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18167           ;;
18168         *)
18169           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18170           ;;
18171         esac
18172       fi
18173       if test "$with_gnu_ld" = no; then
18174         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18175         hardcode_libdir_separator_GCJ=:
18176
18177         case $host_cpu in
18178         hppa*64*|ia64*)
18179           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18180           hardcode_direct_GCJ=no
18181           hardcode_shlibpath_var_GCJ=no
18182           ;;
18183         *)
18184           hardcode_direct_GCJ=yes
18185           export_dynamic_flag_spec_GCJ='${wl}-E'
18186
18187           # hardcode_minus_L: Not really in the search PATH,
18188           # but as the default location of the library.
18189           hardcode_minus_L_GCJ=yes
18190           ;;
18191         esac
18192       fi
18193       ;;
18194
18195     irix5* | irix6* | nonstopux*)
18196       if test "$GCC" = yes; then
18197         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'
18198       else
18199         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'
18200         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18201       fi
18202       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18203       hardcode_libdir_separator_GCJ=:
18204       link_all_deplibs_GCJ=yes
18205       ;;
18206
18207     netbsd* | netbsdelf*-gnu)
18208       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18209         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18210       else
18211         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18212       fi
18213       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18214       hardcode_direct_GCJ=yes
18215       hardcode_shlibpath_var_GCJ=no
18216       ;;
18217
18218     newsos6)
18219       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220       hardcode_direct_GCJ=yes
18221       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18222       hardcode_libdir_separator_GCJ=:
18223       hardcode_shlibpath_var_GCJ=no
18224       ;;
18225
18226     openbsd*)
18227       if test -f /usr/libexec/ld.so; then
18228         hardcode_direct_GCJ=yes
18229         hardcode_shlibpath_var_GCJ=no
18230         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18231           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18232           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18233           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18234           export_dynamic_flag_spec_GCJ='${wl}-E'
18235         else
18236           case $host_os in
18237            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18238              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18239              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18240              ;;
18241            *)
18242              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18243              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18244              ;;
18245           esac
18246         fi
18247       else
18248         ld_shlibs_GCJ=no
18249       fi
18250       ;;
18251
18252     os2*)
18253       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18254       hardcode_minus_L_GCJ=yes
18255       allow_undefined_flag_GCJ=unsupported
18256       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'
18257       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18258       ;;
18259
18260     osf3*)
18261       if test "$GCC" = yes; then
18262         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18263         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'
18264       else
18265         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18266         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'
18267       fi
18268       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18269       hardcode_libdir_separator_GCJ=:
18270       ;;
18271
18272     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18273       if test "$GCC" = yes; then
18274         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18275         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'
18276         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18277       else
18278         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18279         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'
18280         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~
18281         $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'
18282
18283         # Both c and cxx compiler support -rpath directly
18284         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18285       fi
18286       hardcode_libdir_separator_GCJ=:
18287       ;;
18288
18289     solaris*)
18290       no_undefined_flag_GCJ=' -z text'
18291       if test "$GCC" = yes; then
18292         wlarc='${wl}'
18293         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18294         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18295           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18296       else
18297         wlarc=''
18298         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18299         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18300         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18301       fi
18302       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18303       hardcode_shlibpath_var_GCJ=no
18304       case $host_os in
18305       solaris2.[0-5] | solaris2.[0-5].*) ;;
18306       *)
18307         # The compiler driver will combine and reorder linker options,
18308         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18309         # but is careful enough not to reorder.
18310         # Supported since Solaris 2.6 (maybe 2.5.1?)
18311         if test "$GCC" = yes; then
18312           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18313         else
18314           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18315         fi
18316         ;;
18317       esac
18318       link_all_deplibs_GCJ=yes
18319       ;;
18320
18321     sunos4*)
18322       if test "x$host_vendor" = xsequent; then
18323         # Use $CC to link under sequent, because it throws in some extra .o
18324         # files that make .init and .fini sections work.
18325         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18326       else
18327         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18328       fi
18329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18330       hardcode_direct_GCJ=yes
18331       hardcode_minus_L_GCJ=yes
18332       hardcode_shlibpath_var_GCJ=no
18333       ;;
18334
18335     sysv4)
18336       case $host_vendor in
18337         sni)
18338           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339           hardcode_direct_GCJ=yes # is this really true???
18340         ;;
18341         siemens)
18342           ## LD is ld it makes a PLAMLIB
18343           ## CC just makes a GrossModule.
18344           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18345           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18346           hardcode_direct_GCJ=no
18347         ;;
18348         motorola)
18349           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18350           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18351         ;;
18352       esac
18353       runpath_var='LD_RUN_PATH'
18354       hardcode_shlibpath_var_GCJ=no
18355       ;;
18356
18357     sysv4.3*)
18358       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18359       hardcode_shlibpath_var_GCJ=no
18360       export_dynamic_flag_spec_GCJ='-Bexport'
18361       ;;
18362
18363     sysv4*MP*)
18364       if test -d /usr/nec; then
18365         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18366         hardcode_shlibpath_var_GCJ=no
18367         runpath_var=LD_RUN_PATH
18368         hardcode_runpath_var=yes
18369         ld_shlibs_GCJ=yes
18370       fi
18371       ;;
18372
18373     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18374       no_undefined_flag_GCJ='${wl}-z,text'
18375       archive_cmds_need_lc_GCJ=no
18376       hardcode_shlibpath_var_GCJ=no
18377       runpath_var='LD_RUN_PATH'
18378
18379       if test "$GCC" = yes; then
18380         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18381         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18382       else
18383         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18384         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18385       fi
18386       ;;
18387
18388     sysv5* | sco3.2v5* | sco5v6*)
18389       # Note: We can NOT use -z defs as we might desire, because we do not
18390       # link with -lc, and that would cause any symbols used from libc to
18391       # always be unresolved, which means just about no library would
18392       # ever link correctly.  If we're not using GNU ld we use -z text
18393       # though, which does catch some bad symbols but isn't as heavy-handed
18394       # as -z defs.
18395       no_undefined_flag_GCJ='${wl}-z,text'
18396       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18397       archive_cmds_need_lc_GCJ=no
18398       hardcode_shlibpath_var_GCJ=no
18399       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18400       hardcode_libdir_separator_GCJ=':'
18401       link_all_deplibs_GCJ=yes
18402       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18403       runpath_var='LD_RUN_PATH'
18404
18405       if test "$GCC" = yes; then
18406         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18408       else
18409         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18411       fi
18412       ;;
18413
18414     uts4*)
18415       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18417       hardcode_shlibpath_var_GCJ=no
18418       ;;
18419
18420     *)
18421       ld_shlibs_GCJ=no
18422       ;;
18423     esac
18424   fi
18425
18426 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18427 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18428 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18429
18430 #
18431 # Do we need to explicitly link libc?
18432 #
18433 case "x$archive_cmds_need_lc_GCJ" in
18434 x|xyes)
18435   # Assume -lc should be added
18436   archive_cmds_need_lc_GCJ=yes
18437
18438   if test "$enable_shared" = yes && test "$GCC" = yes; then
18439     case $archive_cmds_GCJ in
18440     *'~'*)
18441       # FIXME: we may have to deal with multi-command sequences.
18442       ;;
18443     '$CC '*)
18444       # Test whether the compiler implicitly links with -lc since on some
18445       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18446       # to ld, don't add -lc before -lgcc.
18447       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18448 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18449       $rm conftest*
18450       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18451
18452       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453   (eval $ac_compile) 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } 2>conftest.err; then
18457         soname=conftest
18458         lib=conftest
18459         libobjs=conftest.$ac_objext
18460         deplibs=
18461         wl=$lt_prog_compiler_wl_GCJ
18462         pic_flag=$lt_prog_compiler_pic_GCJ
18463         compiler_flags=-v
18464         linker_flags=-v
18465         verstring=
18466         output_objdir=.
18467         libname=conftest
18468         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18469         allow_undefined_flag_GCJ=
18470         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18471   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }
18475         then
18476           archive_cmds_need_lc_GCJ=no
18477         else
18478           archive_cmds_need_lc_GCJ=yes
18479         fi
18480         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18481       else
18482         cat conftest.err 1>&5
18483       fi
18484       $rm conftest*
18485       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18486 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18487       ;;
18488     esac
18489   fi
18490   ;;
18491 esac
18492
18493 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18494 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18495 library_names_spec=
18496 libname_spec='lib$name'
18497 soname_spec=
18498 shrext_cmds=".so"
18499 postinstall_cmds=
18500 postuninstall_cmds=
18501 finish_cmds=
18502 finish_eval=
18503 shlibpath_var=
18504 shlibpath_overrides_runpath=unknown
18505 version_type=none
18506 dynamic_linker="$host_os ld.so"
18507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18508
18509 need_lib_prefix=unknown
18510 hardcode_into_libs=no
18511
18512 # when you set need_version to no, make sure it does not cause -set_version
18513 # flags to be left without arguments
18514 need_version=unknown
18515
18516 case $host_os in
18517 aix3*)
18518   version_type=linux
18519   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18520   shlibpath_var=LIBPATH
18521
18522   # AIX 3 has no versioning support, so we append a major version to the name.
18523   soname_spec='${libname}${release}${shared_ext}$major'
18524   ;;
18525
18526 aix[4-9]*)
18527   version_type=linux
18528   need_lib_prefix=no
18529   need_version=no
18530   hardcode_into_libs=yes
18531   if test "$host_cpu" = ia64; then
18532     # AIX 5 supports IA64
18533     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18534     shlibpath_var=LD_LIBRARY_PATH
18535   else
18536     # With GCC up to 2.95.x, collect2 would create an import file
18537     # for dependence libraries.  The import file would start with
18538     # the line `#! .'.  This would cause the generated library to
18539     # depend on `.', always an invalid library.  This was fixed in
18540     # development snapshots of GCC prior to 3.0.
18541     case $host_os in
18542       aix4 | aix4.[01] | aix4.[01].*)
18543       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18544            echo ' yes '
18545            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18546         :
18547       else
18548         can_build_shared=no
18549       fi
18550       ;;
18551     esac
18552     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18553     # soname into executable. Probably we can add versioning support to
18554     # collect2, so additional links can be useful in future.
18555     if test "$aix_use_runtimelinking" = yes; then
18556       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18557       # instead of lib<name>.a to let people know that these are not
18558       # typical AIX shared libraries.
18559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560     else
18561       # We preserve .a as extension for shared libraries through AIX4.2
18562       # and later when we are not doing run time linking.
18563       library_names_spec='${libname}${release}.a $libname.a'
18564       soname_spec='${libname}${release}${shared_ext}$major'
18565     fi
18566     shlibpath_var=LIBPATH
18567   fi
18568   ;;
18569
18570 amigaos*)
18571   library_names_spec='$libname.ixlibrary $libname.a'
18572   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18573   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'
18574   ;;
18575
18576 beos*)
18577   library_names_spec='${libname}${shared_ext}'
18578   dynamic_linker="$host_os ld.so"
18579   shlibpath_var=LIBRARY_PATH
18580   ;;
18581
18582 bsdi[45]*)
18583   version_type=linux
18584   need_version=no
18585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586   soname_spec='${libname}${release}${shared_ext}$major'
18587   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18588   shlibpath_var=LD_LIBRARY_PATH
18589   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18590   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18591   # the default ld.so.conf also contains /usr/contrib/lib and
18592   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18593   # libtool to hard-code these into programs
18594   ;;
18595
18596 cygwin* | mingw* | pw32*)
18597   version_type=windows
18598   shrext_cmds=".dll"
18599   need_version=no
18600   need_lib_prefix=no
18601
18602   case $GCC,$host_os in
18603   yes,cygwin* | yes,mingw* | yes,pw32*)
18604     library_names_spec='$libname.dll.a'
18605     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18606     postinstall_cmds='base_file=`basename \${file}`~
18607       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18608       dldir=$destdir/`dirname \$dlpath`~
18609       test -d \$dldir || mkdir -p \$dldir~
18610       $install_prog $dir/$dlname \$dldir/$dlname~
18611       chmod a+x \$dldir/$dlname'
18612     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18613       dlpath=$dir/\$dldll~
18614        $rm \$dlpath'
18615     shlibpath_overrides_runpath=yes
18616
18617     case $host_os in
18618     cygwin*)
18619       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18620       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18622       ;;
18623     mingw*)
18624       # MinGW DLLs use traditional 'lib' prefix
18625       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18626       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18627       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18628         # It is most probably a Windows format PATH printed by
18629         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18630         # path with ; separators, and with drive letters. We can handle the
18631         # drive letters (cygwin fileutils understands them), so leave them,
18632         # especially as we might pass files found there to a mingw objdump,
18633         # which wouldn't understand a cygwinified path. Ahh.
18634         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18635       else
18636         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18637       fi
18638       ;;
18639     pw32*)
18640       # pw32 DLLs use 'pw' prefix rather than 'lib'
18641       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18642       ;;
18643     esac
18644     ;;
18645
18646   *)
18647     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18648     ;;
18649   esac
18650   dynamic_linker='Win32 ld.exe'
18651   # FIXME: first we should search . and the directory the executable is in
18652   shlibpath_var=PATH
18653   ;;
18654
18655 darwin* | rhapsody*)
18656   dynamic_linker="$host_os dyld"
18657   version_type=darwin
18658   need_lib_prefix=no
18659   need_version=no
18660   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18661   soname_spec='${libname}${release}${major}$shared_ext'
18662   shlibpath_overrides_runpath=yes
18663   shlibpath_var=DYLD_LIBRARY_PATH
18664   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18665
18666   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18667   ;;
18668
18669 dgux*)
18670   version_type=linux
18671   need_lib_prefix=no
18672   need_version=no
18673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18674   soname_spec='${libname}${release}${shared_ext}$major'
18675   shlibpath_var=LD_LIBRARY_PATH
18676   ;;
18677
18678 freebsd1*)
18679   dynamic_linker=no
18680   ;;
18681
18682 freebsd* | dragonfly*)
18683   # DragonFly does not have aout.  When/if they implement a new
18684   # versioning mechanism, adjust this.
18685   if test -x /usr/bin/objformat; then
18686     objformat=`/usr/bin/objformat`
18687   else
18688     case $host_os in
18689     freebsd[123]*) objformat=aout ;;
18690     *) objformat=elf ;;
18691     esac
18692   fi
18693   version_type=freebsd-$objformat
18694   case $version_type in
18695     freebsd-elf*)
18696       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18697       need_version=no
18698       need_lib_prefix=no
18699       ;;
18700     freebsd-*)
18701       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18702       need_version=yes
18703       ;;
18704   esac
18705   shlibpath_var=LD_LIBRARY_PATH
18706   case $host_os in
18707   freebsd2*)
18708     shlibpath_overrides_runpath=yes
18709     ;;
18710   freebsd3.[01]* | freebsdelf3.[01]*)
18711     shlibpath_overrides_runpath=yes
18712     hardcode_into_libs=yes
18713     ;;
18714   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18715   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18716     shlibpath_overrides_runpath=no
18717     hardcode_into_libs=yes
18718     ;;
18719   *) # from 4.6 on, and DragonFly
18720     shlibpath_overrides_runpath=yes
18721     hardcode_into_libs=yes
18722     ;;
18723   esac
18724   ;;
18725
18726 gnu*)
18727   version_type=linux
18728   need_lib_prefix=no
18729   need_version=no
18730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18731   soname_spec='${libname}${release}${shared_ext}$major'
18732   shlibpath_var=LD_LIBRARY_PATH
18733   hardcode_into_libs=yes
18734   ;;
18735
18736 hpux9* | hpux10* | hpux11*)
18737   # Give a soname corresponding to the major version so that dld.sl refuses to
18738   # link against other versions.
18739   version_type=sunos
18740   need_lib_prefix=no
18741   need_version=no
18742   case $host_cpu in
18743   ia64*)
18744     shrext_cmds='.so'
18745     hardcode_into_libs=yes
18746     dynamic_linker="$host_os dld.so"
18747     shlibpath_var=LD_LIBRARY_PATH
18748     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750     soname_spec='${libname}${release}${shared_ext}$major'
18751     if test "X$HPUX_IA64_MODE" = X32; then
18752       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18753     else
18754       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18755     fi
18756     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18757     ;;
18758    hppa*64*)
18759      shrext_cmds='.sl'
18760      hardcode_into_libs=yes
18761      dynamic_linker="$host_os dld.sl"
18762      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18763      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18764      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765      soname_spec='${libname}${release}${shared_ext}$major'
18766      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18767      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18768      ;;
18769    *)
18770     shrext_cmds='.sl'
18771     dynamic_linker="$host_os dld.sl"
18772     shlibpath_var=SHLIB_PATH
18773     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775     soname_spec='${libname}${release}${shared_ext}$major'
18776     ;;
18777   esac
18778   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18779   postinstall_cmds='chmod 555 $lib'
18780   ;;
18781
18782 interix[3-9]*)
18783   version_type=linux
18784   need_lib_prefix=no
18785   need_version=no
18786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18787   soname_spec='${libname}${release}${shared_ext}$major'
18788   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18789   shlibpath_var=LD_LIBRARY_PATH
18790   shlibpath_overrides_runpath=no
18791   hardcode_into_libs=yes
18792   ;;
18793
18794 irix5* | irix6* | nonstopux*)
18795   case $host_os in
18796     nonstopux*) version_type=nonstopux ;;
18797     *)
18798         if test "$lt_cv_prog_gnu_ld" = yes; then
18799                 version_type=linux
18800         else
18801                 version_type=irix
18802         fi ;;
18803   esac
18804   need_lib_prefix=no
18805   need_version=no
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18808   case $host_os in
18809   irix5* | nonstopux*)
18810     libsuff= shlibsuff=
18811     ;;
18812   *)
18813     case $LD in # libtool.m4 will add one of these switches to LD
18814     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18815       libsuff= shlibsuff= libmagic=32-bit;;
18816     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18817       libsuff=32 shlibsuff=N32 libmagic=N32;;
18818     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18819       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18820     *) libsuff= shlibsuff= libmagic=never-match;;
18821     esac
18822     ;;
18823   esac
18824   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18825   shlibpath_overrides_runpath=no
18826   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18827   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18828   hardcode_into_libs=yes
18829   ;;
18830
18831 # No shared lib support for Linux oldld, aout, or coff.
18832 linux*oldld* | linux*aout* | linux*coff*)
18833   dynamic_linker=no
18834   ;;
18835
18836 # This must be Linux ELF.
18837 linux* | k*bsd*-gnu)
18838   version_type=linux
18839   need_lib_prefix=no
18840   need_version=no
18841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18842   soname_spec='${libname}${release}${shared_ext}$major'
18843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18844   shlibpath_var=LD_LIBRARY_PATH
18845   shlibpath_overrides_runpath=no
18846   # This implies no fast_install, which is unacceptable.
18847   # Some rework will be needed to allow for fast_install
18848   # before this can be enabled.
18849   hardcode_into_libs=yes
18850
18851   # Append ld.so.conf contents to the search path
18852   if test -f /etc/ld.so.conf; then
18853     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18854     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18855   fi
18856
18857   # We used to test for /lib/ld.so.1 and disable shared libraries on
18858   # powerpc, because MkLinux only supported shared libraries with the
18859   # GNU dynamic linker.  Since this was broken with cross compilers,
18860   # most powerpc-linux boxes support dynamic linking these days and
18861   # people can always --disable-shared, the test was removed, and we
18862   # assume the GNU/Linux dynamic linker is in use.
18863   dynamic_linker='GNU/Linux ld.so'
18864   ;;
18865
18866 netbsdelf*-gnu)
18867   version_type=linux
18868   need_lib_prefix=no
18869   need_version=no
18870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18871   soname_spec='${libname}${release}${shared_ext}$major'
18872   shlibpath_var=LD_LIBRARY_PATH
18873   shlibpath_overrides_runpath=no
18874   hardcode_into_libs=yes
18875   dynamic_linker='NetBSD ld.elf_so'
18876   ;;
18877
18878 netbsd*)
18879   version_type=sunos
18880   need_lib_prefix=no
18881   need_version=no
18882   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18884     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18885     dynamic_linker='NetBSD (a.out) ld.so'
18886   else
18887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18888     soname_spec='${libname}${release}${shared_ext}$major'
18889     dynamic_linker='NetBSD ld.elf_so'
18890   fi
18891   shlibpath_var=LD_LIBRARY_PATH
18892   shlibpath_overrides_runpath=yes
18893   hardcode_into_libs=yes
18894   ;;
18895
18896 newsos6)
18897   version_type=linux
18898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899   shlibpath_var=LD_LIBRARY_PATH
18900   shlibpath_overrides_runpath=yes
18901   ;;
18902
18903 nto-qnx*)
18904   version_type=linux
18905   need_lib_prefix=no
18906   need_version=no
18907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908   soname_spec='${libname}${release}${shared_ext}$major'
18909   shlibpath_var=LD_LIBRARY_PATH
18910   shlibpath_overrides_runpath=yes
18911   ;;
18912
18913 openbsd*)
18914   version_type=sunos
18915   sys_lib_dlsearch_path_spec="/usr/lib"
18916   need_lib_prefix=no
18917   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18918   case $host_os in
18919     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18920     *)                         need_version=no  ;;
18921   esac
18922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18924   shlibpath_var=LD_LIBRARY_PATH
18925   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18926     case $host_os in
18927       openbsd2.[89] | openbsd2.[89].*)
18928         shlibpath_overrides_runpath=no
18929         ;;
18930       *)
18931         shlibpath_overrides_runpath=yes
18932         ;;
18933       esac
18934   else
18935     shlibpath_overrides_runpath=yes
18936   fi
18937   ;;
18938
18939 os2*)
18940   libname_spec='$name'
18941   shrext_cmds=".dll"
18942   need_lib_prefix=no
18943   library_names_spec='$libname${shared_ext} $libname.a'
18944   dynamic_linker='OS/2 ld.exe'
18945   shlibpath_var=LIBPATH
18946   ;;
18947
18948 osf3* | osf4* | osf5*)
18949   version_type=osf
18950   need_lib_prefix=no
18951   need_version=no
18952   soname_spec='${libname}${release}${shared_ext}$major'
18953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954   shlibpath_var=LD_LIBRARY_PATH
18955   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18956   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18957   ;;
18958
18959 rdos*)
18960   dynamic_linker=no
18961   ;;
18962
18963 solaris*)
18964   version_type=linux
18965   need_lib_prefix=no
18966   need_version=no
18967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968   soname_spec='${libname}${release}${shared_ext}$major'
18969   shlibpath_var=LD_LIBRARY_PATH
18970   shlibpath_overrides_runpath=yes
18971   hardcode_into_libs=yes
18972   # ldd complains unless libraries are executable
18973   postinstall_cmds='chmod +x $lib'
18974   ;;
18975
18976 sunos4*)
18977   version_type=sunos
18978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18979   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18980   shlibpath_var=LD_LIBRARY_PATH
18981   shlibpath_overrides_runpath=yes
18982   if test "$with_gnu_ld" = yes; then
18983     need_lib_prefix=no
18984   fi
18985   need_version=yes
18986   ;;
18987
18988 sysv4 | sysv4.3*)
18989   version_type=linux
18990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991   soname_spec='${libname}${release}${shared_ext}$major'
18992   shlibpath_var=LD_LIBRARY_PATH
18993   case $host_vendor in
18994     sni)
18995       shlibpath_overrides_runpath=no
18996       need_lib_prefix=no
18997       export_dynamic_flag_spec='${wl}-Blargedynsym'
18998       runpath_var=LD_RUN_PATH
18999       ;;
19000     siemens)
19001       need_lib_prefix=no
19002       ;;
19003     motorola)
19004       need_lib_prefix=no
19005       need_version=no
19006       shlibpath_overrides_runpath=no
19007       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19008       ;;
19009   esac
19010   ;;
19011
19012 sysv4*MP*)
19013   if test -d /usr/nec ;then
19014     version_type=linux
19015     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19016     soname_spec='$libname${shared_ext}.$major'
19017     shlibpath_var=LD_LIBRARY_PATH
19018   fi
19019   ;;
19020
19021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19022   version_type=freebsd-elf
19023   need_lib_prefix=no
19024   need_version=no
19025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19026   soname_spec='${libname}${release}${shared_ext}$major'
19027   shlibpath_var=LD_LIBRARY_PATH
19028   hardcode_into_libs=yes
19029   if test "$with_gnu_ld" = yes; then
19030     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19031     shlibpath_overrides_runpath=no
19032   else
19033     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19034     shlibpath_overrides_runpath=yes
19035     case $host_os in
19036       sco3.2v5*)
19037         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19038         ;;
19039     esac
19040   fi
19041   sys_lib_dlsearch_path_spec='/usr/lib'
19042   ;;
19043
19044 uts4*)
19045   version_type=linux
19046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047   soname_spec='${libname}${release}${shared_ext}$major'
19048   shlibpath_var=LD_LIBRARY_PATH
19049   ;;
19050
19051 *)
19052   dynamic_linker=no
19053   ;;
19054 esac
19055 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19056 echo "${ECHO_T}$dynamic_linker" >&6; }
19057 test "$dynamic_linker" = no && can_build_shared=no
19058
19059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19063 fi
19064
19065 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19070 fi
19071
19072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19073
19074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19075 if test "$GCC" = yes; then
19076   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19077 fi
19078
19079 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19081 hardcode_action_GCJ=
19082 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19083    test -n "$runpath_var_GCJ" || \
19084    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19085
19086   # We can hardcode non-existant directories.
19087   if test "$hardcode_direct_GCJ" != no &&
19088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19089      # have to relink, otherwise we might link with an installed library
19090      # when we should be linking with a yet-to-be-installed one
19091      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19092      test "$hardcode_minus_L_GCJ" != no; then
19093     # Linking always hardcodes the temporary library directory.
19094     hardcode_action_GCJ=relink
19095   else
19096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19097     hardcode_action_GCJ=immediate
19098   fi
19099 else
19100   # We cannot hardcode anything, or else we can only hardcode existing
19101   # directories.
19102   hardcode_action_GCJ=unsupported
19103 fi
19104 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19105 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19106
19107 if test "$hardcode_action_GCJ" = relink; then
19108   # Fast installation is not supported
19109   enable_fast_install=no
19110 elif test "$shlibpath_overrides_runpath" = yes ||
19111      test "$enable_shared" = no; then
19112   # Fast installation is not necessary
19113   enable_fast_install=needless
19114 fi
19115
19116
19117 # The else clause should only fire when bootstrapping the
19118 # libtool distribution, otherwise you forgot to ship ltmain.sh
19119 # with your package, and you will get complaints that there are
19120 # no rules to generate ltmain.sh.
19121 if test -f "$ltmain"; then
19122   # See if we are running on zsh, and set the options which allow our commands through
19123   # without removal of \ escapes.
19124   if test -n "${ZSH_VERSION+set}" ; then
19125     setopt NO_GLOB_SUBST
19126   fi
19127   # Now quote all the things that may contain metacharacters while being
19128   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19129   # variables and quote the copies for generation of the libtool script.
19130   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19131     SED SHELL STRIP \
19132     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19133     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19134     deplibs_check_method reload_flag reload_cmds need_locks \
19135     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19136     lt_cv_sys_global_symbol_to_c_name_address \
19137     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19138     old_postinstall_cmds old_postuninstall_cmds \
19139     compiler_GCJ \
19140     CC_GCJ \
19141     LD_GCJ \
19142     lt_prog_compiler_wl_GCJ \
19143     lt_prog_compiler_pic_GCJ \
19144     lt_prog_compiler_static_GCJ \
19145     lt_prog_compiler_no_builtin_flag_GCJ \
19146     export_dynamic_flag_spec_GCJ \
19147     thread_safe_flag_spec_GCJ \
19148     whole_archive_flag_spec_GCJ \
19149     enable_shared_with_static_runtimes_GCJ \
19150     old_archive_cmds_GCJ \
19151     old_archive_from_new_cmds_GCJ \
19152     predep_objects_GCJ \
19153     postdep_objects_GCJ \
19154     predeps_GCJ \
19155     postdeps_GCJ \
19156     compiler_lib_search_path_GCJ \
19157     compiler_lib_search_dirs_GCJ \
19158     archive_cmds_GCJ \
19159     archive_expsym_cmds_GCJ \
19160     postinstall_cmds_GCJ \
19161     postuninstall_cmds_GCJ \
19162     old_archive_from_expsyms_cmds_GCJ \
19163     allow_undefined_flag_GCJ \
19164     no_undefined_flag_GCJ \
19165     export_symbols_cmds_GCJ \
19166     hardcode_libdir_flag_spec_GCJ \
19167     hardcode_libdir_flag_spec_ld_GCJ \
19168     hardcode_libdir_separator_GCJ \
19169     hardcode_automatic_GCJ \
19170     module_cmds_GCJ \
19171     module_expsym_cmds_GCJ \
19172     lt_cv_prog_compiler_c_o_GCJ \
19173     fix_srcfile_path_GCJ \
19174     exclude_expsyms_GCJ \
19175     include_expsyms_GCJ; do
19176
19177     case $var in
19178     old_archive_cmds_GCJ | \
19179     old_archive_from_new_cmds_GCJ | \
19180     archive_cmds_GCJ | \
19181     archive_expsym_cmds_GCJ | \
19182     module_cmds_GCJ | \
19183     module_expsym_cmds_GCJ | \
19184     old_archive_from_expsyms_cmds_GCJ | \
19185     export_symbols_cmds_GCJ | \
19186     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19187     postinstall_cmds | postuninstall_cmds | \
19188     old_postinstall_cmds | old_postuninstall_cmds | \
19189     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19190       # Double-quote double-evaled strings.
19191       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19192       ;;
19193     *)
19194       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19195       ;;
19196     esac
19197   done
19198
19199   case $lt_echo in
19200   *'\$0 --fallback-echo"')
19201     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19202     ;;
19203   esac
19204
19205 cfgfile="$ofile"
19206
19207   cat <<__EOF__ >> "$cfgfile"
19208 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19209
19210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19211
19212 # Shell to use when invoking shell scripts.
19213 SHELL=$lt_SHELL
19214
19215 # Whether or not to build shared libraries.
19216 build_libtool_libs=$enable_shared
19217
19218 # Whether or not to build static libraries.
19219 build_old_libs=$enable_static
19220
19221 # Whether or not to add -lc for building shared libraries.
19222 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19223
19224 # Whether or not to disallow shared libs when runtime libs are static
19225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19226
19227 # Whether or not to optimize for fast installation.
19228 fast_install=$enable_fast_install
19229
19230 # The host system.
19231 host_alias=$host_alias
19232 host=$host
19233 host_os=$host_os
19234
19235 # The build system.
19236 build_alias=$build_alias
19237 build=$build
19238 build_os=$build_os
19239
19240 # An echo program that does not interpret backslashes.
19241 echo=$lt_echo
19242
19243 # The archiver.
19244 AR=$lt_AR
19245 AR_FLAGS=$lt_AR_FLAGS
19246
19247 # A C compiler.
19248 LTCC=$lt_LTCC
19249
19250 # LTCC compiler flags.
19251 LTCFLAGS=$lt_LTCFLAGS
19252
19253 # A language-specific compiler.
19254 CC=$lt_compiler_GCJ
19255
19256 # Is the compiler the GNU C compiler?
19257 with_gcc=$GCC_GCJ
19258
19259 # An ERE matcher.
19260 EGREP=$lt_EGREP
19261
19262 # The linker used to build libraries.
19263 LD=$lt_LD_GCJ
19264
19265 # Whether we need hard or soft links.
19266 LN_S=$lt_LN_S
19267
19268 # A BSD-compatible nm program.
19269 NM=$lt_NM
19270
19271 # A symbol stripping program
19272 STRIP=$lt_STRIP
19273
19274 # Used to examine libraries when file_magic_cmd begins "file"
19275 MAGIC_CMD=$MAGIC_CMD
19276
19277 # Used on cygwin: DLL creation program.
19278 DLLTOOL="$DLLTOOL"
19279
19280 # Used on cygwin: object dumper.
19281 OBJDUMP="$OBJDUMP"
19282
19283 # Used on cygwin: assembler.
19284 AS="$AS"
19285
19286 # The name of the directory that contains temporary libtool files.
19287 objdir=$objdir
19288
19289 # How to create reloadable object files.
19290 reload_flag=$lt_reload_flag
19291 reload_cmds=$lt_reload_cmds
19292
19293 # How to pass a linker flag through the compiler.
19294 wl=$lt_lt_prog_compiler_wl_GCJ
19295
19296 # Object file suffix (normally "o").
19297 objext="$ac_objext"
19298
19299 # Old archive suffix (normally "a").
19300 libext="$libext"
19301
19302 # Shared library suffix (normally ".so").
19303 shrext_cmds='$shrext_cmds'
19304
19305 # Executable file suffix (normally "").
19306 exeext="$exeext"
19307
19308 # Additional compiler flags for building library objects.
19309 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19310 pic_mode=$pic_mode
19311
19312 # What is the maximum length of a command?
19313 max_cmd_len=$lt_cv_sys_max_cmd_len
19314
19315 # Does compiler simultaneously support -c and -o options?
19316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19317
19318 # Must we lock files when doing compilation?
19319 need_locks=$lt_need_locks
19320
19321 # Do we need the lib prefix for modules?
19322 need_lib_prefix=$need_lib_prefix
19323
19324 # Do we need a version for libraries?
19325 need_version=$need_version
19326
19327 # Whether dlopen is supported.
19328 dlopen_support=$enable_dlopen
19329
19330 # Whether dlopen of programs is supported.
19331 dlopen_self=$enable_dlopen_self
19332
19333 # Whether dlopen of statically linked programs is supported.
19334 dlopen_self_static=$enable_dlopen_self_static
19335
19336 # Compiler flag to prevent dynamic linking.
19337 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19338
19339 # Compiler flag to turn off builtin functions.
19340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19341
19342 # Compiler flag to allow reflexive dlopens.
19343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19344
19345 # Compiler flag to generate shared objects directly from archives.
19346 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19347
19348 # Compiler flag to generate thread-safe objects.
19349 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19350
19351 # Library versioning type.
19352 version_type=$version_type
19353
19354 # Format of library name prefix.
19355 libname_spec=$lt_libname_spec
19356
19357 # List of archive names.  First name is the real one, the rest are links.
19358 # The last name is the one that the linker finds with -lNAME.
19359 library_names_spec=$lt_library_names_spec
19360
19361 # The coded name of the library, if different from the real name.
19362 soname_spec=$lt_soname_spec
19363
19364 # Commands used to build and install an old-style archive.
19365 RANLIB=$lt_RANLIB
19366 old_archive_cmds=$lt_old_archive_cmds_GCJ
19367 old_postinstall_cmds=$lt_old_postinstall_cmds
19368 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19369
19370 # Create an old-style archive from a shared archive.
19371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19372
19373 # Create a temporary old-style archive to link instead of a shared archive.
19374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19375
19376 # Commands used to build and install a shared archive.
19377 archive_cmds=$lt_archive_cmds_GCJ
19378 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19379 postinstall_cmds=$lt_postinstall_cmds
19380 postuninstall_cmds=$lt_postuninstall_cmds
19381
19382 # Commands used to build a loadable module (assumed same as above if empty)
19383 module_cmds=$lt_module_cmds_GCJ
19384 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19385
19386 # Commands to strip libraries.
19387 old_striplib=$lt_old_striplib
19388 striplib=$lt_striplib
19389
19390 # Dependencies to place before the objects being linked to create a
19391 # shared library.
19392 predep_objects=$lt_predep_objects_GCJ
19393
19394 # Dependencies to place after the objects being linked to create a
19395 # shared library.
19396 postdep_objects=$lt_postdep_objects_GCJ
19397
19398 # Dependencies to place before the objects being linked to create a
19399 # shared library.
19400 predeps=$lt_predeps_GCJ
19401
19402 # Dependencies to place after the objects being linked to create a
19403 # shared library.
19404 postdeps=$lt_postdeps_GCJ
19405
19406 # The directories searched by this compiler when creating a shared
19407 # library
19408 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19409
19410 # The library search path used internally by the compiler when linking
19411 # a shared library.
19412 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19413
19414 # Method to check whether dependent libraries are shared objects.
19415 deplibs_check_method=$lt_deplibs_check_method
19416
19417 # Command to use when deplibs_check_method == file_magic.
19418 file_magic_cmd=$lt_file_magic_cmd
19419
19420 # Flag that allows shared libraries with undefined symbols to be built.
19421 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19422
19423 # Flag that forces no undefined symbols.
19424 no_undefined_flag=$lt_no_undefined_flag_GCJ
19425
19426 # Commands used to finish a libtool library installation in a directory.
19427 finish_cmds=$lt_finish_cmds
19428
19429 # Same as above, but a single script fragment to be evaled but not shown.
19430 finish_eval=$lt_finish_eval
19431
19432 # Take the output of nm and produce a listing of raw symbols and C names.
19433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19434
19435 # Transform the output of nm in a proper C declaration
19436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19437
19438 # Transform the output of nm in a C name address pair
19439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19440
19441 # This is the shared library runtime path variable.
19442 runpath_var=$runpath_var
19443
19444 # This is the shared library path variable.
19445 shlibpath_var=$shlibpath_var
19446
19447 # Is shlibpath searched before the hard-coded library search path?
19448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19449
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action_GCJ
19452
19453 # Whether we should hardcode library paths into libraries.
19454 hardcode_into_libs=$hardcode_into_libs
19455
19456 # Flag to hardcode \$libdir into a binary during linking.
19457 # This must work even if \$libdir does not exist.
19458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19459
19460 # If ld is used when linking, flag to hardcode \$libdir into
19461 # a binary during linking. This must work even if \$libdir does
19462 # not exist.
19463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19464
19465 # Whether we need a single -rpath flag with a separated argument.
19466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19467
19468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_direct=$hardcode_direct_GCJ
19471
19472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19473 # resulting binary.
19474 hardcode_minus_L=$hardcode_minus_L_GCJ
19475
19476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19477 # the resulting binary.
19478 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19479
19480 # Set to yes if building a shared library automatically hardcodes DIR into the library
19481 # and all subsequent libraries and executables linked against it.
19482 hardcode_automatic=$hardcode_automatic_GCJ
19483
19484 # Variables whose values should be saved in libtool wrapper scripts and
19485 # restored at relink time.
19486 variables_saved_for_relink="$variables_saved_for_relink"
19487
19488 # Whether libtool must link a program against all its dependency libraries.
19489 link_all_deplibs=$link_all_deplibs_GCJ
19490
19491 # Compile-time system search path for libraries
19492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19493
19494 # Run-time system search path for libraries
19495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19496
19497 # Fix the shell variable \$srcfile for the compiler.
19498 fix_srcfile_path=$lt_fix_srcfile_path
19499
19500 # Set to yes if exported symbols are required.
19501 always_export_symbols=$always_export_symbols_GCJ
19502
19503 # The commands to list exported symbols.
19504 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19505
19506 # The commands to extract the exported symbol list from a shared archive.
19507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19508
19509 # Symbols that should not be listed in the preloaded symbols.
19510 exclude_expsyms=$lt_exclude_expsyms_GCJ
19511
19512 # Symbols that must always be exported.
19513 include_expsyms=$lt_include_expsyms_GCJ
19514
19515 # ### END LIBTOOL TAG CONFIG: $tagname
19516
19517 __EOF__
19518
19519
19520 else
19521   # If there is no Makefile yet, we rely on a make rule to execute
19522   # `config.status --recheck' to rerun these tests and create the
19523   # libtool script then.
19524   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19525   if test -f "$ltmain_in"; then
19526     test -f Makefile && make "$ltmain"
19527   fi
19528 fi
19529
19530
19531 ac_ext=c
19532 ac_cpp='$CPP $CPPFLAGS'
19533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536
19537 CC="$lt_save_CC"
19538
19539         else
19540           tagname=""
19541         fi
19542         ;;
19543
19544       RC)
19545
19546
19547 # Source file extension for RC test sources.
19548 ac_ext=rc
19549
19550 # Object file extension for compiled RC test sources.
19551 objext=o
19552 objext_RC=$objext
19553
19554 # Code to be used in simple compile tests
19555 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19556
19557 # Code to be used in simple link tests
19558 lt_simple_link_test_code="$lt_simple_compile_test_code"
19559
19560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19561
19562 # If no C compiler was specified, use CC.
19563 LTCC=${LTCC-"$CC"}
19564
19565 # If no C compiler flags were specified, use CFLAGS.
19566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19567
19568 # Allow CC to be a program name with arguments.
19569 compiler=$CC
19570
19571
19572 # save warnings/boilerplate of simple test code
19573 ac_outfile=conftest.$ac_objext
19574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19576 _lt_compiler_boilerplate=`cat conftest.err`
19577 $rm conftest*
19578
19579 ac_outfile=conftest.$ac_objext
19580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19582 _lt_linker_boilerplate=`cat conftest.err`
19583 $rm -r conftest*
19584
19585
19586 # Allow CC to be a program name with arguments.
19587 lt_save_CC="$CC"
19588 CC=${RC-"windres"}
19589 compiler=$CC
19590 compiler_RC=$CC
19591 for cc_temp in $compiler""; do
19592   case $cc_temp in
19593     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19594     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19595     \-*) ;;
19596     *) break;;
19597   esac
19598 done
19599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19600
19601 lt_cv_prog_compiler_c_o_RC=yes
19602
19603 # The else clause should only fire when bootstrapping the
19604 # libtool distribution, otherwise you forgot to ship ltmain.sh
19605 # with your package, and you will get complaints that there are
19606 # no rules to generate ltmain.sh.
19607 if test -f "$ltmain"; then
19608   # See if we are running on zsh, and set the options which allow our commands through
19609   # without removal of \ escapes.
19610   if test -n "${ZSH_VERSION+set}" ; then
19611     setopt NO_GLOB_SUBST
19612   fi
19613   # Now quote all the things that may contain metacharacters while being
19614   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19615   # variables and quote the copies for generation of the libtool script.
19616   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19617     SED SHELL STRIP \
19618     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19619     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19620     deplibs_check_method reload_flag reload_cmds need_locks \
19621     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19622     lt_cv_sys_global_symbol_to_c_name_address \
19623     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19624     old_postinstall_cmds old_postuninstall_cmds \
19625     compiler_RC \
19626     CC_RC \
19627     LD_RC \
19628     lt_prog_compiler_wl_RC \
19629     lt_prog_compiler_pic_RC \
19630     lt_prog_compiler_static_RC \
19631     lt_prog_compiler_no_builtin_flag_RC \
19632     export_dynamic_flag_spec_RC \
19633     thread_safe_flag_spec_RC \
19634     whole_archive_flag_spec_RC \
19635     enable_shared_with_static_runtimes_RC \
19636     old_archive_cmds_RC \
19637     old_archive_from_new_cmds_RC \
19638     predep_objects_RC \
19639     postdep_objects_RC \
19640     predeps_RC \
19641     postdeps_RC \
19642     compiler_lib_search_path_RC \
19643     compiler_lib_search_dirs_RC \
19644     archive_cmds_RC \
19645     archive_expsym_cmds_RC \
19646     postinstall_cmds_RC \
19647     postuninstall_cmds_RC \
19648     old_archive_from_expsyms_cmds_RC \
19649     allow_undefined_flag_RC \
19650     no_undefined_flag_RC \
19651     export_symbols_cmds_RC \
19652     hardcode_libdir_flag_spec_RC \
19653     hardcode_libdir_flag_spec_ld_RC \
19654     hardcode_libdir_separator_RC \
19655     hardcode_automatic_RC \
19656     module_cmds_RC \
19657     module_expsym_cmds_RC \
19658     lt_cv_prog_compiler_c_o_RC \
19659     fix_srcfile_path_RC \
19660     exclude_expsyms_RC \
19661     include_expsyms_RC; do
19662
19663     case $var in
19664     old_archive_cmds_RC | \
19665     old_archive_from_new_cmds_RC | \
19666     archive_cmds_RC | \
19667     archive_expsym_cmds_RC | \
19668     module_cmds_RC | \
19669     module_expsym_cmds_RC | \
19670     old_archive_from_expsyms_cmds_RC | \
19671     export_symbols_cmds_RC | \
19672     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19673     postinstall_cmds | postuninstall_cmds | \
19674     old_postinstall_cmds | old_postuninstall_cmds | \
19675     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19676       # Double-quote double-evaled strings.
19677       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19678       ;;
19679     *)
19680       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19681       ;;
19682     esac
19683   done
19684
19685   case $lt_echo in
19686   *'\$0 --fallback-echo"')
19687     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19688     ;;
19689   esac
19690
19691 cfgfile="$ofile"
19692
19693   cat <<__EOF__ >> "$cfgfile"
19694 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19695
19696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19697
19698 # Shell to use when invoking shell scripts.
19699 SHELL=$lt_SHELL
19700
19701 # Whether or not to build shared libraries.
19702 build_libtool_libs=$enable_shared
19703
19704 # Whether or not to build static libraries.
19705 build_old_libs=$enable_static
19706
19707 # Whether or not to add -lc for building shared libraries.
19708 build_libtool_need_lc=$archive_cmds_need_lc_RC
19709
19710 # Whether or not to disallow shared libs when runtime libs are static
19711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19712
19713 # Whether or not to optimize for fast installation.
19714 fast_install=$enable_fast_install
19715
19716 # The host system.
19717 host_alias=$host_alias
19718 host=$host
19719 host_os=$host_os
19720
19721 # The build system.
19722 build_alias=$build_alias
19723 build=$build
19724 build_os=$build_os
19725
19726 # An echo program that does not interpret backslashes.
19727 echo=$lt_echo
19728
19729 # The archiver.
19730 AR=$lt_AR
19731 AR_FLAGS=$lt_AR_FLAGS
19732
19733 # A C compiler.
19734 LTCC=$lt_LTCC
19735
19736 # LTCC compiler flags.
19737 LTCFLAGS=$lt_LTCFLAGS
19738
19739 # A language-specific compiler.
19740 CC=$lt_compiler_RC
19741
19742 # Is the compiler the GNU C compiler?
19743 with_gcc=$GCC_RC
19744
19745 # An ERE matcher.
19746 EGREP=$lt_EGREP
19747
19748 # The linker used to build libraries.
19749 LD=$lt_LD_RC
19750
19751 # Whether we need hard or soft links.
19752 LN_S=$lt_LN_S
19753
19754 # A BSD-compatible nm program.
19755 NM=$lt_NM
19756
19757 # A symbol stripping program
19758 STRIP=$lt_STRIP
19759
19760 # Used to examine libraries when file_magic_cmd begins "file"
19761 MAGIC_CMD=$MAGIC_CMD
19762
19763 # Used on cygwin: DLL creation program.
19764 DLLTOOL="$DLLTOOL"
19765
19766 # Used on cygwin: object dumper.
19767 OBJDUMP="$OBJDUMP"
19768
19769 # Used on cygwin: assembler.
19770 AS="$AS"
19771
19772 # The name of the directory that contains temporary libtool files.
19773 objdir=$objdir
19774
19775 # How to create reloadable object files.
19776 reload_flag=$lt_reload_flag
19777 reload_cmds=$lt_reload_cmds
19778
19779 # How to pass a linker flag through the compiler.
19780 wl=$lt_lt_prog_compiler_wl_RC
19781
19782 # Object file suffix (normally "o").
19783 objext="$ac_objext"
19784
19785 # Old archive suffix (normally "a").
19786 libext="$libext"
19787
19788 # Shared library suffix (normally ".so").
19789 shrext_cmds='$shrext_cmds'
19790
19791 # Executable file suffix (normally "").
19792 exeext="$exeext"
19793
19794 # Additional compiler flags for building library objects.
19795 pic_flag=$lt_lt_prog_compiler_pic_RC
19796 pic_mode=$pic_mode
19797
19798 # What is the maximum length of a command?
19799 max_cmd_len=$lt_cv_sys_max_cmd_len
19800
19801 # Does compiler simultaneously support -c and -o options?
19802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19803
19804 # Must we lock files when doing compilation?
19805 need_locks=$lt_need_locks
19806
19807 # Do we need the lib prefix for modules?
19808 need_lib_prefix=$need_lib_prefix
19809
19810 # Do we need a version for libraries?
19811 need_version=$need_version
19812
19813 # Whether dlopen is supported.
19814 dlopen_support=$enable_dlopen
19815
19816 # Whether dlopen of programs is supported.
19817 dlopen_self=$enable_dlopen_self
19818
19819 # Whether dlopen of statically linked programs is supported.
19820 dlopen_self_static=$enable_dlopen_self_static
19821
19822 # Compiler flag to prevent dynamic linking.
19823 link_static_flag=$lt_lt_prog_compiler_static_RC
19824
19825 # Compiler flag to turn off builtin functions.
19826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19827
19828 # Compiler flag to allow reflexive dlopens.
19829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19830
19831 # Compiler flag to generate shared objects directly from archives.
19832 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19833
19834 # Compiler flag to generate thread-safe objects.
19835 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19836
19837 # Library versioning type.
19838 version_type=$version_type
19839
19840 # Format of library name prefix.
19841 libname_spec=$lt_libname_spec
19842
19843 # List of archive names.  First name is the real one, the rest are links.
19844 # The last name is the one that the linker finds with -lNAME.
19845 library_names_spec=$lt_library_names_spec
19846
19847 # The coded name of the library, if different from the real name.
19848 soname_spec=$lt_soname_spec
19849
19850 # Commands used to build and install an old-style archive.
19851 RANLIB=$lt_RANLIB
19852 old_archive_cmds=$lt_old_archive_cmds_RC
19853 old_postinstall_cmds=$lt_old_postinstall_cmds
19854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19855
19856 # Create an old-style archive from a shared archive.
19857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19858
19859 # Create a temporary old-style archive to link instead of a shared archive.
19860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19861
19862 # Commands used to build and install a shared archive.
19863 archive_cmds=$lt_archive_cmds_RC
19864 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19865 postinstall_cmds=$lt_postinstall_cmds
19866 postuninstall_cmds=$lt_postuninstall_cmds
19867
19868 # Commands used to build a loadable module (assumed same as above if empty)
19869 module_cmds=$lt_module_cmds_RC
19870 module_expsym_cmds=$lt_module_expsym_cmds_RC
19871
19872 # Commands to strip libraries.
19873 old_striplib=$lt_old_striplib
19874 striplib=$lt_striplib
19875
19876 # Dependencies to place before the objects being linked to create a
19877 # shared library.
19878 predep_objects=$lt_predep_objects_RC
19879
19880 # Dependencies to place after the objects being linked to create a
19881 # shared library.
19882 postdep_objects=$lt_postdep_objects_RC
19883
19884 # Dependencies to place before the objects being linked to create a
19885 # shared library.
19886 predeps=$lt_predeps_RC
19887
19888 # Dependencies to place after the objects being linked to create a
19889 # shared library.
19890 postdeps=$lt_postdeps_RC
19891
19892 # The directories searched by this compiler when creating a shared
19893 # library
19894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19895
19896 # The library search path used internally by the compiler when linking
19897 # a shared library.
19898 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19899
19900 # Method to check whether dependent libraries are shared objects.
19901 deplibs_check_method=$lt_deplibs_check_method
19902
19903 # Command to use when deplibs_check_method == file_magic.
19904 file_magic_cmd=$lt_file_magic_cmd
19905
19906 # Flag that allows shared libraries with undefined symbols to be built.
19907 allow_undefined_flag=$lt_allow_undefined_flag_RC
19908
19909 # Flag that forces no undefined symbols.
19910 no_undefined_flag=$lt_no_undefined_flag_RC
19911
19912 # Commands used to finish a libtool library installation in a directory.
19913 finish_cmds=$lt_finish_cmds
19914
19915 # Same as above, but a single script fragment to be evaled but not shown.
19916 finish_eval=$lt_finish_eval
19917
19918 # Take the output of nm and produce a listing of raw symbols and C names.
19919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19920
19921 # Transform the output of nm in a proper C declaration
19922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19923
19924 # Transform the output of nm in a C name address pair
19925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19926
19927 # This is the shared library runtime path variable.
19928 runpath_var=$runpath_var
19929
19930 # This is the shared library path variable.
19931 shlibpath_var=$shlibpath_var
19932
19933 # Is shlibpath searched before the hard-coded library search path?
19934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19935
19936 # How to hardcode a shared library path into an executable.
19937 hardcode_action=$hardcode_action_RC
19938
19939 # Whether we should hardcode library paths into libraries.
19940 hardcode_into_libs=$hardcode_into_libs
19941
19942 # Flag to hardcode \$libdir into a binary during linking.
19943 # This must work even if \$libdir does not exist.
19944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19945
19946 # If ld is used when linking, flag to hardcode \$libdir into
19947 # a binary during linking. This must work even if \$libdir does
19948 # not exist.
19949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19950
19951 # Whether we need a single -rpath flag with a separated argument.
19952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19953
19954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_direct=$hardcode_direct_RC
19957
19958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19959 # resulting binary.
19960 hardcode_minus_L=$hardcode_minus_L_RC
19961
19962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19963 # the resulting binary.
19964 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19965
19966 # Set to yes if building a shared library automatically hardcodes DIR into the library
19967 # and all subsequent libraries and executables linked against it.
19968 hardcode_automatic=$hardcode_automatic_RC
19969
19970 # Variables whose values should be saved in libtool wrapper scripts and
19971 # restored at relink time.
19972 variables_saved_for_relink="$variables_saved_for_relink"
19973
19974 # Whether libtool must link a program against all its dependency libraries.
19975 link_all_deplibs=$link_all_deplibs_RC
19976
19977 # Compile-time system search path for libraries
19978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19979
19980 # Run-time system search path for libraries
19981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19982
19983 # Fix the shell variable \$srcfile for the compiler.
19984 fix_srcfile_path=$lt_fix_srcfile_path
19985
19986 # Set to yes if exported symbols are required.
19987 always_export_symbols=$always_export_symbols_RC
19988
19989 # The commands to list exported symbols.
19990 export_symbols_cmds=$lt_export_symbols_cmds_RC
19991
19992 # The commands to extract the exported symbol list from a shared archive.
19993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19994
19995 # Symbols that should not be listed in the preloaded symbols.
19996 exclude_expsyms=$lt_exclude_expsyms_RC
19997
19998 # Symbols that must always be exported.
19999 include_expsyms=$lt_include_expsyms_RC
20000
20001 # ### END LIBTOOL TAG CONFIG: $tagname
20002
20003 __EOF__
20004
20005
20006 else
20007   # If there is no Makefile yet, we rely on a make rule to execute
20008   # `config.status --recheck' to rerun these tests and create the
20009   # libtool script then.
20010   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20011   if test -f "$ltmain_in"; then
20012     test -f Makefile && make "$ltmain"
20013   fi
20014 fi
20015
20016
20017 ac_ext=c
20018 ac_cpp='$CPP $CPPFLAGS'
20019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20022
20023 CC="$lt_save_CC"
20024
20025         ;;
20026
20027       *)
20028         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20030    { (exit 1); exit 1; }; }
20031         ;;
20032       esac
20033
20034       # Append the new tag name to the list of available tags.
20035       if test -n "$tagname" ; then
20036       available_tags="$available_tags $tagname"
20037     fi
20038     fi
20039   done
20040   IFS="$lt_save_ifs"
20041
20042   # Now substitute the updated list of available tags.
20043   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20044     mv "${ofile}T" "$ofile"
20045     chmod +x "$ofile"
20046   else
20047     rm -f "${ofile}T"
20048     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20050    { (exit 1); exit 1; }; }
20051   fi
20052 fi
20053
20054
20055
20056 # This can be used to rebuild libtool when needed
20057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20058
20059 # Always use our own libtool.
20060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20061
20062 # Prevent multiple expansion
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087 ###############
20088 ## SVN version check
20089 ##
20090 if test -e .svn ; then
20091   VERSION="$VERSION-r`svnversion`"
20092   PACKAGE_VERSION="$PACKAGE_VERSION-r`svnversion`"
20093   PACKAGE_STRING="PACKAGE_STRING r`svnversion`"
20094 fi
20095
20096 ###############
20097 ## System checks
20098 ##
20099
20100   { echo "$as_me:$LINENO: result: " >&5
20101 echo "${ECHO_T}" >&6; }
20102   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
20103 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
20104
20105 ac_ext=c
20106 ac_cpp='$CPP $CPPFLAGS'
20107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20110 if test -n "$ac_tool_prefix"; then
20111   for ac_prog in xlC gcc cc
20112   do
20113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20117 if test "${ac_cv_prog_CC+set}" = set; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120   if test -n "$CC"; then
20121   ac_cv_prog_CC="$CC" # Let the user override the test.
20122 else
20123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124 for as_dir in $PATH
20125 do
20126   IFS=$as_save_IFS
20127   test -z "$as_dir" && as_dir=.
20128   for ac_exec_ext in '' $ac_executable_extensions; do
20129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20130     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20132     break 2
20133   fi
20134 done
20135 done
20136 IFS=$as_save_IFS
20137
20138 fi
20139 fi
20140 CC=$ac_cv_prog_CC
20141 if test -n "$CC"; then
20142   { echo "$as_me:$LINENO: result: $CC" >&5
20143 echo "${ECHO_T}$CC" >&6; }
20144 else
20145   { echo "$as_me:$LINENO: result: no" >&5
20146 echo "${ECHO_T}no" >&6; }
20147 fi
20148
20149
20150     test -n "$CC" && break
20151   done
20152 fi
20153 if test -z "$CC"; then
20154   ac_ct_CC=$CC
20155   for ac_prog in xlC gcc cc
20156 do
20157   # Extract the first word of "$ac_prog", so it can be a program name with args.
20158 set dummy $ac_prog; ac_word=$2
20159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20162   echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164   if test -n "$ac_ct_CC"; then
20165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20166 else
20167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20168 for as_dir in $PATH
20169 do
20170   IFS=$as_save_IFS
20171   test -z "$as_dir" && as_dir=.
20172   for ac_exec_ext in '' $ac_executable_extensions; do
20173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20174     ac_cv_prog_ac_ct_CC="$ac_prog"
20175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20176     break 2
20177   fi
20178 done
20179 done
20180 IFS=$as_save_IFS
20181
20182 fi
20183 fi
20184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20185 if test -n "$ac_ct_CC"; then
20186   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20187 echo "${ECHO_T}$ac_ct_CC" >&6; }
20188 else
20189   { echo "$as_me:$LINENO: result: no" >&5
20190 echo "${ECHO_T}no" >&6; }
20191 fi
20192
20193
20194   test -n "$ac_ct_CC" && break
20195 done
20196
20197   if test "x$ac_ct_CC" = x; then
20198     CC=""
20199   else
20200     case $cross_compiling:$ac_tool_warned in
20201 yes:)
20202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20203 whose name does not start with the host triplet.  If you think this
20204 configuration is useful to you, please write to autoconf@gnu.org." >&5
20205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20206 whose name does not start with the host triplet.  If you think this
20207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20208 ac_tool_warned=yes ;;
20209 esac
20210     CC=$ac_ct_CC
20211   fi
20212 fi
20213
20214
20215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20216 See \`config.log' for more details." >&5
20217 echo "$as_me: error: no acceptable C compiler found in \$PATH
20218 See \`config.log' for more details." >&2;}
20219    { (exit 1); exit 1; }; }
20220
20221 # Provide some information about the compiler.
20222 echo "$as_me:$LINENO: checking for C compiler version" >&5
20223 ac_compiler=`set X $ac_compile; echo $2`
20224 { (ac_try="$ac_compiler --version >&5"
20225 case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_compiler --version >&5") 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }
20234 { (ac_try="$ac_compiler -v >&5"
20235 case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_compiler -v >&5") 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }
20244 { (ac_try="$ac_compiler -V >&5"
20245 case "(($ac_try" in
20246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247   *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250   (eval "$ac_compiler -V >&5") 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }
20254
20255 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20258   echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260   cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h.  */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h.  */
20266
20267 int
20268 main ()
20269 {
20270 #ifndef __GNUC__
20271        choke me
20272 #endif
20273
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_compile") 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && {
20292          test -z "$ac_c_werror_flag" ||
20293          test ! -s conftest.err
20294        } && test -s conftest.$ac_objext; then
20295   ac_compiler_gnu=yes
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         ac_compiler_gnu=no
20301 fi
20302
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20305
20306 fi
20307 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20308 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20309 GCC=`test $ac_compiler_gnu = yes && echo yes`
20310 ac_test_CFLAGS=${CFLAGS+set}
20311 ac_save_CFLAGS=$CFLAGS
20312 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20314 if test "${ac_cv_prog_cc_g+set}" = set; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317   ac_save_c_werror_flag=$ac_c_werror_flag
20318    ac_c_werror_flag=yes
20319    ac_cv_prog_cc_g=no
20320    CFLAGS="-g"
20321    cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h.  */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h.  */
20327
20328 int
20329 main ()
20330 {
20331
20332   ;
20333   return 0;
20334 }
20335 _ACEOF
20336 rm -f conftest.$ac_objext
20337 if { (ac_try="$ac_compile"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343   (eval "$ac_compile") 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } && {
20350          test -z "$ac_c_werror_flag" ||
20351          test ! -s conftest.err
20352        } && test -s conftest.$ac_objext; then
20353   ac_cv_prog_cc_g=yes
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358         CFLAGS=""
20359       cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h.  */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h.  */
20365
20366 int
20367 main ()
20368 {
20369
20370   ;
20371   return 0;
20372 }
20373 _ACEOF
20374 rm -f conftest.$ac_objext
20375 if { (ac_try="$ac_compile"
20376 case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_compile") 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } && {
20388          test -z "$ac_c_werror_flag" ||
20389          test ! -s conftest.err
20390        } && test -s conftest.$ac_objext; then
20391   :
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396         ac_c_werror_flag=$ac_save_c_werror_flag
20397          CFLAGS="-g"
20398          cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404
20405 int
20406 main ()
20407 {
20408
20409   ;
20410   return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_compile") 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } && {
20427          test -z "$ac_c_werror_flag" ||
20428          test ! -s conftest.err
20429        } && test -s conftest.$ac_objext; then
20430   ac_cv_prog_cc_g=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 fi
20440
20441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 fi
20443
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445    ac_c_werror_flag=$ac_save_c_werror_flag
20446 fi
20447 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20449 if test "$ac_test_CFLAGS" = set; then
20450   CFLAGS=$ac_save_CFLAGS
20451 elif test $ac_cv_prog_cc_g = yes; then
20452   if test "$GCC" = yes; then
20453     CFLAGS="-g -O2"
20454   else
20455     CFLAGS="-g"
20456   fi
20457 else
20458   if test "$GCC" = yes; then
20459     CFLAGS="-O2"
20460   else
20461     CFLAGS=
20462   fi
20463 fi
20464 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20465 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20466 if test "${ac_cv_prog_cc_c89+set}" = set; then
20467   echo $ECHO_N "(cached) $ECHO_C" >&6
20468 else
20469   ac_cv_prog_cc_c89=no
20470 ac_save_CC=$CC
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h.  */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h.  */
20477 #include <stdarg.h>
20478 #include <stdio.h>
20479 #include <sys/types.h>
20480 #include <sys/stat.h>
20481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20482 struct buf { int x; };
20483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20484 static char *e (p, i)
20485      char **p;
20486      int i;
20487 {
20488   return p[i];
20489 }
20490 static char *f (char * (*g) (char **, int), char **p, ...)
20491 {
20492   char *s;
20493   va_list v;
20494   va_start (v,p);
20495   s = g (p, va_arg (v,int));
20496   va_end (v);
20497   return s;
20498 }
20499
20500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20501    function prototypes and stuff, but not '\xHH' hex character constants.
20502    These don't provoke an error unfortunately, instead are silently treated
20503    as 'x'.  The following induces an error, until -std is added to get
20504    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20505    array size at least.  It's necessary to write '\x00'==0 to get something
20506    that's true only with -std.  */
20507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20508
20509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20510    inside strings and character constants.  */
20511 #define FOO(x) 'x'
20512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20513
20514 int test (int i, double x);
20515 struct s1 {int (*f) (int a);};
20516 struct s2 {int (*f) (double a);};
20517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20518 int argc;
20519 char **argv;
20520 int
20521 main ()
20522 {
20523 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20524   ;
20525   return 0;
20526 }
20527 _ACEOF
20528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20529         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20530 do
20531   CC="$ac_save_CC $ac_arg"
20532   rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_compile") 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } && {
20546          test -z "$ac_c_werror_flag" ||
20547          test ! -s conftest.err
20548        } && test -s conftest.$ac_objext; then
20549   ac_cv_prog_cc_c89=$ac_arg
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554
20555 fi
20556
20557 rm -f core conftest.err conftest.$ac_objext
20558   test "x$ac_cv_prog_cc_c89" != "xno" && break
20559 done
20560 rm -f conftest.$ac_ext
20561 CC=$ac_save_CC
20562
20563 fi
20564 # AC_CACHE_VAL
20565 case "x$ac_cv_prog_cc_c89" in
20566   x)
20567     { echo "$as_me:$LINENO: result: none needed" >&5
20568 echo "${ECHO_T}none needed" >&6; } ;;
20569   xno)
20570     { echo "$as_me:$LINENO: result: unsupported" >&5
20571 echo "${ECHO_T}unsupported" >&6; } ;;
20572   *)
20573     CC="$CC $ac_cv_prog_cc_c89"
20574     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20575 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20576 esac
20577
20578
20579 ac_ext=c
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20584
20585 depcc="$CC"   am_compiler_list=
20586
20587 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20588 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20589 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20593   # We make a subdir and do the tests there.  Otherwise we can end up
20594   # making bogus files that we don't know about and never remove.  For
20595   # instance it was reported that on HP-UX the gcc test will end up
20596   # making a dummy file named `D' -- because `-MD' means `put the output
20597   # in D'.
20598   mkdir conftest.dir
20599   # Copy depcomp to subdir because otherwise we won't find it if we're
20600   # using a relative directory.
20601   cp "$am_depcomp" conftest.dir
20602   cd conftest.dir
20603   # We will build objects and dependencies in a subdirectory because
20604   # it helps to detect inapplicable dependency modes.  For instance
20605   # both Tru64's cc and ICC support -MD to output dependencies as a
20606   # side effect of compilation, but ICC will put the dependencies in
20607   # the current directory while Tru64 will put them in the object
20608   # directory.
20609   mkdir sub
20610
20611   am_cv_CC_dependencies_compiler_type=none
20612   if test "$am_compiler_list" = ""; then
20613      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20614   fi
20615   for depmode in $am_compiler_list; do
20616     # Setup a source with many dependencies, because some compilers
20617     # like to wrap large dependency lists on column 80 (with \), and
20618     # we should not choose a depcomp mode which is confused by this.
20619     #
20620     # We need to recreate these files for each test, as the compiler may
20621     # overwrite some of them when testing with obscure command lines.
20622     # This happens at least with the AIX C compiler.
20623     : > sub/conftest.c
20624     for i in 1 2 3 4 5 6; do
20625       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20626       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20627       # Solaris 8's {/usr,}/bin/sh.
20628       touch sub/conftst$i.h
20629     done
20630     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20631
20632     case $depmode in
20633     nosideeffect)
20634       # after this tag, mechanisms are not by side-effect, so they'll
20635       # only be used when explicitly requested
20636       if test "x$enable_dependency_tracking" = xyes; then
20637         continue
20638       else
20639         break
20640       fi
20641       ;;
20642     none) break ;;
20643     esac
20644     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20645     # mode.  It turns out that the SunPro C++ compiler does not properly
20646     # handle `-M -o', and we need to detect this.
20647     if depmode=$depmode \
20648        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20649        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20650        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20651          >/dev/null 2>conftest.err &&
20652        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20653        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20654        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20655        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20656       # icc doesn't choke on unknown options, it will just issue warnings
20657       # or remarks (even with -Werror).  So we grep stderr for any message
20658       # that says an option was ignored or not supported.
20659       # When given -MP, icc 7.0 and 7.1 complain thusly:
20660       #   icc: Command line warning: ignoring option '-M'; no argument required
20661       # The diagnosis changed in icc 8.0:
20662       #   icc: Command line remark: option '-MP' not supported
20663       if (grep 'ignoring option' conftest.err ||
20664           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20665         am_cv_CC_dependencies_compiler_type=$depmode
20666         break
20667       fi
20668     fi
20669   done
20670
20671   cd ..
20672   rm -rf conftest.dir
20673 else
20674   am_cv_CC_dependencies_compiler_type=none
20675 fi
20676
20677 fi
20678 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20679 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20680 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20681
20682  if
20683   test "x$enable_dependency_tracking" != xno \
20684   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20685   am__fastdepCC_TRUE=
20686   am__fastdepCC_FALSE='#'
20687 else
20688   am__fastdepCC_TRUE='#'
20689   am__fastdepCC_FALSE=
20690 fi
20691
20692
20693 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20694 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20695 # Just in case
20696 sleep 1
20697 echo timestamp > conftest.file
20698 # Do `set' in a subshell so we don't clobber the current shell's
20699 # arguments.  Must try -L first in case configure is actually a
20700 # symlink; some systems play weird games with the mod time of symlinks
20701 # (eg FreeBSD returns the mod time of the symlink's containing
20702 # directory).
20703 if (
20704    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20705    if test "$*" = "X"; then
20706       # -L didn't work.
20707       set X `ls -t $srcdir/configure conftest.file`
20708    fi
20709    rm -f conftest.file
20710    if test "$*" != "X $srcdir/configure conftest.file" \
20711       && test "$*" != "X conftest.file $srcdir/configure"; then
20712
20713       # If neither matched, then we have a broken ls.  This can happen
20714       # if, for instance, CONFIG_SHELL is bash and it inherits a
20715       # broken ls alias from the environment.  This has actually
20716       # happened.  Such a system could not be considered "sane".
20717       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20718 alias in your environment" >&5
20719 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20720 alias in your environment" >&2;}
20721    { (exit 1); exit 1; }; }
20722    fi
20723
20724    test "$2" = conftest.file
20725    )
20726 then
20727    # Ok.
20728    :
20729 else
20730    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20731 Check your system clock" >&5
20732 echo "$as_me: error: newly created file is older than distributed files!
20733 Check your system clock" >&2;}
20734    { (exit 1); exit 1; }; }
20735 fi
20736 { echo "$as_me:$LINENO: result: yes" >&5
20737 echo "${ECHO_T}yes" >&6; }
20738 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20739 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20740 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20741 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20742   echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744   cat >conftest.make <<\_ACEOF
20745 SHELL = /bin/sh
20746 all:
20747         @echo '@@@%%%=$(MAKE)=@@@%%%'
20748 _ACEOF
20749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20750 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20751   *@@@%%%=?*=@@@%%%*)
20752     eval ac_cv_prog_make_${ac_make}_set=yes;;
20753   *)
20754     eval ac_cv_prog_make_${ac_make}_set=no;;
20755 esac
20756 rm -f conftest.make
20757 fi
20758 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20759   { echo "$as_me:$LINENO: result: yes" >&5
20760 echo "${ECHO_T}yes" >&6; }
20761   SET_MAKE=
20762 else
20763   { echo "$as_me:$LINENO: result: no" >&5
20764 echo "${ECHO_T}no" >&6; }
20765   SET_MAKE="MAKE=${MAKE-make}"
20766 fi
20767
20768
20769 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20770 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20771 if test "$cross_compiling" = yes; then
20772   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20773 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20774 else
20775   cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781 #include <stdio.h>
20782 int
20783 main ()
20784 {
20785 printf("%s",NULL);
20786   ;
20787   return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest$ac_exeext
20791 if { (ac_try="$ac_link"
20792 case "(($ac_try" in
20793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794   *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797   (eval "$ac_link") 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20801   { (case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810
20811 cat >>confdefs.h <<\_ACEOF
20812 #define PRINTF_NULL_WORKING 1
20813 _ACEOF
20814
20815               { echo "$as_me:$LINENO: result: yes" >&5
20816 echo "${ECHO_T}yes" >&6; }
20817 else
20818   echo "$as_me: program exited with status $ac_status" >&5
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 ( exit $ac_status )
20823 { echo "$as_me:$LINENO: result: no" >&5
20824 echo "${ECHO_T}no" >&6; }
20825 fi
20826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20827 fi
20828
20829
20830
20831
20832     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20833 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20834     if test "${ac_cv_va_copy+set}" = set; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837
20838     ac_cv_va_copy=""
20839
20840
20841
20842     if test ".$ac_cv_va_copy" = .; then
20843         if test "$cross_compiling" = yes; then
20844   ac_cv_va_copy="C99"
20845 else
20846   cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852
20853 #include <stdlib.h>
20854 #include <stdarg.h>
20855 #include <string.h>
20856 #define DO_VA_COPY(d, s) va_copy((d), (s))
20857 void test(char *str, ...)
20858 {
20859     va_list ap, ap2;
20860     int i;
20861     va_start(ap, str);
20862     DO_VA_COPY(ap2, ap);
20863     for (i = 1; i <= 9; i++) {
20864         int k = (int)va_arg(ap, int);
20865         if (k != i)
20866             abort();
20867     }
20868     DO_VA_COPY(ap, ap2);
20869     for (i = 1; i <= 9; i++) {
20870         int k = (int)va_arg(ap, int);
20871         if (k != i)
20872             abort();
20873     }
20874     va_end(ap);
20875 }
20876 int main(int argc, char *argv[])
20877 {
20878     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20879     exit(0);
20880 }
20881
20882 _ACEOF
20883 rm -f conftest$ac_exeext
20884 if { (ac_try="$ac_link"
20885 case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_link") 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20894   { (case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_try") 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   ac_cv_va_copy="C99"
20904 else
20905   echo "$as_me: program exited with status $ac_status" >&5
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 fi
20910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20911 fi
20912
20913
20914             fi
20915
20916
20917
20918
20919     if test ".$ac_cv_va_copy" = .; then
20920         if test "$cross_compiling" = yes; then
20921   ac_cv_va_copy="GCM"
20922 else
20923   cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929
20930 #include <stdlib.h>
20931 #include <stdarg.h>
20932 #include <string.h>
20933 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20934 void test(char *str, ...)
20935 {
20936     va_list ap, ap2;
20937     int i;
20938     va_start(ap, str);
20939     DO_VA_COPY(ap2, ap);
20940     for (i = 1; i <= 9; i++) {
20941         int k = (int)va_arg(ap, int);
20942         if (k != i)
20943             abort();
20944     }
20945     DO_VA_COPY(ap, ap2);
20946     for (i = 1; i <= 9; i++) {
20947         int k = (int)va_arg(ap, int);
20948         if (k != i)
20949             abort();
20950     }
20951     va_end(ap);
20952 }
20953 int main(int argc, char *argv[])
20954 {
20955     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20956     exit(0);
20957 }
20958
20959 _ACEOF
20960 rm -f conftest$ac_exeext
20961 if { (ac_try="$ac_link"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_link") 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_cv_va_copy="GCM"
20981 else
20982   echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 fi
20987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20988 fi
20989
20990
20991             fi
20992
20993
20994
20995
20996     if test ".$ac_cv_va_copy" = .; then
20997         if test "$cross_compiling" = yes; then
20998   ac_cv_va_copy="GCH"
20999 else
21000   cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006
21007 #include <stdlib.h>
21008 #include <stdarg.h>
21009 #include <string.h>
21010 #define DO_VA_COPY(d, s) __va_copy((d), (s))
21011 void test(char *str, ...)
21012 {
21013     va_list ap, ap2;
21014     int i;
21015     va_start(ap, str);
21016     DO_VA_COPY(ap2, ap);
21017     for (i = 1; i <= 9; i++) {
21018         int k = (int)va_arg(ap, int);
21019         if (k != i)
21020             abort();
21021     }
21022     DO_VA_COPY(ap, ap2);
21023     for (i = 1; i <= 9; i++) {
21024         int k = (int)va_arg(ap, int);
21025         if (k != i)
21026             abort();
21027     }
21028     va_end(ap);
21029 }
21030 int main(int argc, char *argv[])
21031 {
21032     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21033     exit(0);
21034 }
21035
21036 _ACEOF
21037 rm -f conftest$ac_exeext
21038 if { (ac_try="$ac_link"
21039 case "(($ac_try" in
21040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041   *) ac_try_echo=$ac_try;;
21042 esac
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044   (eval "$ac_link") 2>&5
21045   ac_status=$?
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21048   { (case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_try") 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   ac_cv_va_copy="GCH"
21058 else
21059   echo "$as_me: program exited with status $ac_status" >&5
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 fi
21064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21065 fi
21066
21067
21068             fi
21069
21070
21071
21072
21073     if test ".$ac_cv_va_copy" = .; then
21074         if test "$cross_compiling" = yes; then
21075   ac_cv_va_copy="GCB"
21076 else
21077   cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h.  */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h.  */
21083
21084 #include <stdlib.h>
21085 #include <stdarg.h>
21086 #include <string.h>
21087 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
21088 void test(char *str, ...)
21089 {
21090     va_list ap, ap2;
21091     int i;
21092     va_start(ap, str);
21093     DO_VA_COPY(ap2, ap);
21094     for (i = 1; i <= 9; i++) {
21095         int k = (int)va_arg(ap, int);
21096         if (k != i)
21097             abort();
21098     }
21099     DO_VA_COPY(ap, ap2);
21100     for (i = 1; i <= 9; i++) {
21101         int k = (int)va_arg(ap, int);
21102         if (k != i)
21103             abort();
21104     }
21105     va_end(ap);
21106 }
21107 int main(int argc, char *argv[])
21108 {
21109     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21110     exit(0);
21111 }
21112
21113 _ACEOF
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_link") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125   { (case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130   (eval "$ac_try") 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); }; }; then
21134   ac_cv_va_copy="GCB"
21135 else
21136   echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 fi
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 fi
21143
21144
21145             fi
21146
21147
21148
21149
21150     if test ".$ac_cv_va_copy" = .; then
21151         if test "$cross_compiling" = yes; then
21152   ac_cv_va_copy="ASS"
21153 else
21154   cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h.  */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h.  */
21160
21161 #include <stdlib.h>
21162 #include <stdarg.h>
21163 #include <string.h>
21164 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
21165 void test(char *str, ...)
21166 {
21167     va_list ap, ap2;
21168     int i;
21169     va_start(ap, str);
21170     DO_VA_COPY(ap2, ap);
21171     for (i = 1; i <= 9; i++) {
21172         int k = (int)va_arg(ap, int);
21173         if (k != i)
21174             abort();
21175     }
21176     DO_VA_COPY(ap, ap2);
21177     for (i = 1; i <= 9; i++) {
21178         int k = (int)va_arg(ap, int);
21179         if (k != i)
21180             abort();
21181     }
21182     va_end(ap);
21183 }
21184 int main(int argc, char *argv[])
21185 {
21186     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21187     exit(0);
21188 }
21189
21190 _ACEOF
21191 rm -f conftest$ac_exeext
21192 if { (ac_try="$ac_link"
21193 case "(($ac_try" in
21194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195   *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198   (eval "$ac_link") 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21202   { (case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207   (eval "$ac_try") 2>&5
21208   ac_status=$?
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); }; }; then
21211   ac_cv_va_copy="ASS"
21212 else
21213   echo "$as_me: program exited with status $ac_status" >&5
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 fi
21218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21219 fi
21220
21221
21222             fi
21223
21224
21225
21226
21227     if test ".$ac_cv_va_copy" = .; then
21228         if test "$cross_compiling" = yes; then
21229   ac_cv_va_copy="ASP"
21230 else
21231   cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h.  */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h.  */
21237
21238 #include <stdlib.h>
21239 #include <stdarg.h>
21240 #include <string.h>
21241 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
21242 void test(char *str, ...)
21243 {
21244     va_list ap, ap2;
21245     int i;
21246     va_start(ap, str);
21247     DO_VA_COPY(ap2, ap);
21248     for (i = 1; i <= 9; i++) {
21249         int k = (int)va_arg(ap, int);
21250         if (k != i)
21251             abort();
21252     }
21253     DO_VA_COPY(ap, ap2);
21254     for (i = 1; i <= 9; i++) {
21255         int k = (int)va_arg(ap, int);
21256         if (k != i)
21257             abort();
21258     }
21259     va_end(ap);
21260 }
21261 int main(int argc, char *argv[])
21262 {
21263     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21264     exit(0);
21265 }
21266
21267 _ACEOF
21268 rm -f conftest$ac_exeext
21269 if { (ac_try="$ac_link"
21270 case "(($ac_try" in
21271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272   *) ac_try_echo=$ac_try;;
21273 esac
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275   (eval "$ac_link") 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21279   { (case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_try") 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; }; then
21288   ac_cv_va_copy="ASP"
21289 else
21290   echo "$as_me: program exited with status $ac_status" >&5
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 fi
21295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21296 fi
21297
21298
21299             fi
21300
21301
21302
21303
21304     if test ".$ac_cv_va_copy" = .; then
21305         if test "$cross_compiling" = yes; then
21306   ac_cv_va_copy="CPS"
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314
21315 #include <stdlib.h>
21316 #include <stdarg.h>
21317 #include <string.h>
21318 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
21319 void test(char *str, ...)
21320 {
21321     va_list ap, ap2;
21322     int i;
21323     va_start(ap, str);
21324     DO_VA_COPY(ap2, ap);
21325     for (i = 1; i <= 9; i++) {
21326         int k = (int)va_arg(ap, int);
21327         if (k != i)
21328             abort();
21329     }
21330     DO_VA_COPY(ap, ap2);
21331     for (i = 1; i <= 9; i++) {
21332         int k = (int)va_arg(ap, int);
21333         if (k != i)
21334             abort();
21335     }
21336     va_end(ap);
21337 }
21338 int main(int argc, char *argv[])
21339 {
21340     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21341     exit(0);
21342 }
21343
21344 _ACEOF
21345 rm -f conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349   *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352   (eval "$ac_link") 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21356   { (case "(($ac_try" in
21357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358   *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361   (eval "$ac_try") 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); }; }; then
21365   ac_cv_va_copy="CPS"
21366 else
21367   echo "$as_me: program exited with status $ac_status" >&5
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371 fi
21372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21373 fi
21374
21375
21376             fi
21377
21378
21379
21380
21381     if test ".$ac_cv_va_copy" = .; then
21382         if test "$cross_compiling" = yes; then
21383   ac_cv_va_copy="CPP"
21384 else
21385   cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391
21392 #include <stdlib.h>
21393 #include <stdarg.h>
21394 #include <string.h>
21395 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21396 void test(char *str, ...)
21397 {
21398     va_list ap, ap2;
21399     int i;
21400     va_start(ap, str);
21401     DO_VA_COPY(ap2, ap);
21402     for (i = 1; i <= 9; i++) {
21403         int k = (int)va_arg(ap, int);
21404         if (k != i)
21405             abort();
21406     }
21407     DO_VA_COPY(ap, ap2);
21408     for (i = 1; i <= 9; i++) {
21409         int k = (int)va_arg(ap, int);
21410         if (k != i)
21411             abort();
21412     }
21413     va_end(ap);
21414 }
21415 int main(int argc, char *argv[])
21416 {
21417     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21418     exit(0);
21419 }
21420
21421 _ACEOF
21422 rm -f conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429   (eval "$ac_link") 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21433   { (case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_try") 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   ac_cv_va_copy="CPP"
21443 else
21444   echo "$as_me: program exited with status $ac_status" >&5
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448 fi
21449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21450 fi
21451
21452
21453             fi
21454
21455     if test ".$ac_cv_va_copy" = .; then
21456         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21457 echo "$as_me: error: no working implementation found" >&2;}
21458    { (exit 1); exit 1; }; }
21459     fi
21460
21461 fi
21462
21463     if test ".$ac_cv_va_copy" = ".C99"; then
21464
21465 cat >>confdefs.h <<\_ACEOF
21466 #define HAVE_VA_COPY 1
21467 _ACEOF
21468
21469   fi
21470
21471 cat >>confdefs.h <<_ACEOF
21472 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21473 _ACEOF
21474
21475
21476
21477     if test ".$ac_cv_va_copy" = ".C99"; then
21478       { echo "$as_me:$LINENO: result: yes" >&5
21479 echo "${ECHO_T}yes" >&6; }
21480   else
21481       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21482 echo "${ECHO_T}no (using fallback implementation)" >&6; }
21483   fi
21484
21485
21486 # Checks for header files.
21487 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21488 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21489 if test "${ac_cv_header_stdc+set}" = set; then
21490   echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492   cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h.  */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h.  */
21498 #include <stdlib.h>
21499 #include <stdarg.h>
21500 #include <string.h>
21501 #include <float.h>
21502
21503 int
21504 main ()
21505 {
21506
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_compile") 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } && {
21525          test -z "$ac_c_werror_flag" ||
21526          test ! -s conftest.err
21527        } && test -s conftest.$ac_objext; then
21528   ac_cv_header_stdc=yes
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533         ac_cv_header_stdc=no
21534 fi
21535
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537
21538 if test $ac_cv_header_stdc = yes; then
21539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21540   cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h.  */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h.  */
21546 #include <string.h>
21547
21548 _ACEOF
21549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21550   $EGREP "memchr" >/dev/null 2>&1; then
21551   :
21552 else
21553   ac_cv_header_stdc=no
21554 fi
21555 rm -f conftest*
21556
21557 fi
21558
21559 if test $ac_cv_header_stdc = yes; then
21560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21561   cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h.  */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h.  */
21567 #include <stdlib.h>
21568
21569 _ACEOF
21570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21571   $EGREP "free" >/dev/null 2>&1; then
21572   :
21573 else
21574   ac_cv_header_stdc=no
21575 fi
21576 rm -f conftest*
21577
21578 fi
21579
21580 if test $ac_cv_header_stdc = yes; then
21581   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21582   if test "$cross_compiling" = yes; then
21583   :
21584 else
21585   cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 #include <ctype.h>
21592 #include <stdlib.h>
21593 #if ((' ' & 0x0FF) == 0x020)
21594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21596 #else
21597 # define ISLOWER(c) \
21598                    (('a' <= (c) && (c) <= 'i') \
21599                      || ('j' <= (c) && (c) <= 'r') \
21600                      || ('s' <= (c) && (c) <= 'z'))
21601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21602 #endif
21603
21604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21605 int
21606 main ()
21607 {
21608   int i;
21609   for (i = 0; i < 256; i++)
21610     if (XOR (islower (i), ISLOWER (i))
21611         || toupper (i) != TOUPPER (i))
21612       return 2;
21613   return 0;
21614 }
21615 _ACEOF
21616 rm -f conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620   *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623   (eval "$ac_link") 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21627   { (case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_try") 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; }; then
21636   :
21637 else
21638   echo "$as_me: program exited with status $ac_status" >&5
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642 ( exit $ac_status )
21643 ac_cv_header_stdc=no
21644 fi
21645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21646 fi
21647
21648
21649 fi
21650 fi
21651 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21652 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21653 if test $ac_cv_header_stdc = yes; then
21654
21655 cat >>confdefs.h <<\_ACEOF
21656 #define STDC_HEADERS 1
21657 _ACEOF
21658
21659 fi
21660
21661 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21662 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21663 if test "${ac_cv_header_time+set}" = set; then
21664   echo $ECHO_N "(cached) $ECHO_C" >&6
21665 else
21666   cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h.  */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h.  */
21672 #include <sys/types.h>
21673 #include <sys/time.h>
21674 #include <time.h>
21675
21676 int
21677 main ()
21678 {
21679 if ((struct tm *) 0)
21680 return 0;
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692   (eval "$ac_compile") 2>conftest.er1
21693   ac_status=$?
21694   grep -v '^ *+' conftest.er1 >conftest.err
21695   rm -f conftest.er1
21696   cat conftest.err >&5
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } && {
21699          test -z "$ac_c_werror_flag" ||
21700          test ! -s conftest.err
21701        } && test -s conftest.$ac_objext; then
21702   ac_cv_header_time=yes
21703 else
21704   echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707         ac_cv_header_time=no
21708 fi
21709
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 fi
21712 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21713 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21714 if test $ac_cv_header_time = yes; then
21715
21716 cat >>confdefs.h <<\_ACEOF
21717 #define TIME_WITH_SYS_TIME 1
21718 _ACEOF
21719
21720 fi
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732 for ac_header in sys/socket.h \
21733                   sys/stat.h \
21734                   windows.h winsock.h winsock2.h \
21735                   sys/time.h \
21736                   errno.h unistd.h \
21737                   execinfo.h\
21738                   signal.h
21739 do
21740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 fi
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748                { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21750 else
21751   # Is the header compilable?
21752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 $ac_includes_default
21761 #include <$ac_header>
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770   (eval "$ac_compile") 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && {
21777          test -z "$ac_c_werror_flag" ||
21778          test ! -s conftest.err
21779        } && test -s conftest.$ac_objext; then
21780   ac_header_compiler=yes
21781 else
21782   echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785         ac_header_compiler=no
21786 fi
21787
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790 echo "${ECHO_T}$ac_header_compiler" >&6; }
21791
21792 # Is the header present?
21793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21795 cat >conftest.$ac_ext <<_ACEOF
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801 #include <$ac_header>
21802 _ACEOF
21803 if { (ac_try="$ac_cpp conftest.$ac_ext"
21804 case "(($ac_try" in
21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } >/dev/null && {
21816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21817          test ! -s conftest.err
21818        }; then
21819   ac_header_preproc=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824   ac_header_preproc=no
21825 fi
21826
21827 rm -f conftest.err conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829 echo "${ECHO_T}$ac_header_preproc" >&6; }
21830
21831 # So?  What about this header?
21832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21833   yes:no: )
21834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21838     ac_header_preproc=yes
21839     ;;
21840   no:yes:* )
21841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21853     ( cat <<\_ASBOX
21854 ## -------------------------------------------------- ##
21855 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21856 ## -------------------------------------------------- ##
21857 _ASBOX
21858      ) | sed "s/^/$as_me: WARNING:     /" >&2
21859     ;;
21860 esac
21861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864   echo $ECHO_N "(cached) $ECHO_C" >&6
21865 else
21866   eval "$as_ac_Header=\$ac_header_preproc"
21867 fi
21868 ac_res=`eval echo '${'$as_ac_Header'}'`
21869                { echo "$as_me:$LINENO: result: $ac_res" >&5
21870 echo "${ECHO_T}$ac_res" >&6; }
21871
21872 fi
21873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21874   cat >>confdefs.h <<_ACEOF
21875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21876 _ACEOF
21877
21878 fi
21879
21880 done
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890 for ac_func in gettimeofday usleep \
21891                 getdtablesize \
21892                 sysconf\
21893                 readv\
21894                 popen\
21895                 signal\
21896                 getline
21897 do
21898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21902   echo $ECHO_N "(cached) $ECHO_C" >&6
21903 else
21904   cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21912 #define $ac_func innocuous_$ac_func
21913
21914 /* System header to define __stub macros and hopefully few prototypes,
21915     which can conflict with char $ac_func (); below.
21916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21917     <limits.h> exists even on freestanding compilers.  */
21918
21919 #ifdef __STDC__
21920 # include <limits.h>
21921 #else
21922 # include <assert.h>
21923 #endif
21924
21925 #undef $ac_func
21926
21927 /* Override any GCC internal prototype to avoid an error.
21928    Use char because int might match the return type of a GCC
21929    builtin and then its argument prototype would still apply.  */
21930 #ifdef __cplusplus
21931 extern "C"
21932 #endif
21933 char $ac_func ();
21934 /* The GNU C library defines this for functions which it implements
21935     to always fail with ENOSYS.  Some functions are actually named
21936     something starting with __ and the normal name is an alias.  */
21937 #if defined __stub_$ac_func || defined __stub___$ac_func
21938 choke me
21939 #endif
21940
21941 int
21942 main ()
21943 {
21944 return $ac_func ();
21945   ;
21946   return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953   *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956   (eval "$ac_link") 2>conftest.er1
21957   ac_status=$?
21958   grep -v '^ *+' conftest.er1 >conftest.err
21959   rm -f conftest.er1
21960   cat conftest.err >&5
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } && {
21963          test -z "$ac_c_werror_flag" ||
21964          test ! -s conftest.err
21965        } && test -s conftest$ac_exeext &&
21966        $as_test_x conftest$ac_exeext; then
21967   eval "$as_ac_var=yes"
21968 else
21969   echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21971
21972         eval "$as_ac_var=no"
21973 fi
21974
21975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21976       conftest$ac_exeext conftest.$ac_ext
21977 fi
21978 ac_res=`eval echo '${'$as_ac_var'}'`
21979                { echo "$as_me:$LINENO: result: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21981 if test `eval echo '${'$as_ac_var'}'` = yes; then
21982   cat >>confdefs.h <<_ACEOF
21983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21984 _ACEOF
21985
21986 fi
21987 done
21988
21989
21990 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21991
21992
21993 for ac_func in snprintf vsnprintf
21994 do
21995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22009 #define $ac_func innocuous_$ac_func
22010
22011 /* System header to define __stub macros and hopefully few prototypes,
22012     which can conflict with char $ac_func (); below.
22013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22014     <limits.h> exists even on freestanding compilers.  */
22015
22016 #ifdef __STDC__
22017 # include <limits.h>
22018 #else
22019 # include <assert.h>
22020 #endif
22021
22022 #undef $ac_func
22023
22024 /* Override any GCC internal prototype to avoid an error.
22025    Use char because int might match the return type of a GCC
22026    builtin and then its argument prototype would still apply.  */
22027 #ifdef __cplusplus
22028 extern "C"
22029 #endif
22030 char $ac_func ();
22031 /* The GNU C library defines this for functions which it implements
22032     to always fail with ENOSYS.  Some functions are actually named
22033     something starting with __ and the normal name is an alias.  */
22034 #if defined __stub_$ac_func || defined __stub___$ac_func
22035 choke me
22036 #endif
22037
22038 int
22039 main ()
22040 {
22041 return $ac_func ();
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_link") 2>conftest.er1
22054   ac_status=$?
22055   grep -v '^ *+' conftest.er1 >conftest.err
22056   rm -f conftest.er1
22057   cat conftest.err >&5
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } && {
22060          test -z "$ac_c_werror_flag" ||
22061          test ! -s conftest.err
22062        } && test -s conftest$ac_exeext &&
22063        $as_test_x conftest$ac_exeext; then
22064   eval "$as_ac_var=yes"
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069         eval "$as_ac_var=no"
22070 fi
22071
22072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22073       conftest$ac_exeext conftest.$ac_ext
22074 fi
22075 ac_res=`eval echo '${'$as_ac_var'}'`
22076                { echo "$as_me:$LINENO: result: $ac_res" >&5
22077 echo "${ECHO_T}$ac_res" >&6; }
22078 if test `eval echo '${'$as_ac_var'}'` = yes; then
22079   cat >>confdefs.h <<_ACEOF
22080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22081 _ACEOF
22082
22083 fi
22084 done
22085
22086 { echo "$as_me:$LINENO: checking for working snprintf" >&5
22087 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
22088 if test "${ac_cv_have_working_snprintf+set}" = set; then
22089   echo $ECHO_N "(cached) $ECHO_C" >&6
22090 else
22091   if test "$cross_compiling" = yes; then
22092   ac_cv_have_working_snprintf=cross
22093 else
22094   cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h.  */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h.  */
22100 #include <stdio.h>
22101
22102 int main(void)
22103 {
22104     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22105     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22106     int i;
22107     i = snprintf (bufs, 2, "%s", "111");
22108     if (strcmp (bufs, "1")) exit (1);
22109     if (i != 3) exit (1);
22110     i = snprintf (bufd, 2, "%d", 111);
22111     if (strcmp (bufd, "1")) exit (1);
22112     if (i != 3) exit (1);
22113     exit(0);
22114 }
22115 _ACEOF
22116 rm -f conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_link") 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22127   { (case "(($ac_try" in
22128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129   *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132   (eval "$ac_try") 2>&5
22133   ac_status=$?
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); }; }; then
22136   ac_cv_have_working_snprintf=yes
22137 else
22138   echo "$as_me: program exited with status $ac_status" >&5
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142 ( exit $ac_status )
22143 ac_cv_have_working_snprintf=no
22144 fi
22145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22146 fi
22147
22148
22149 fi
22150
22151 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
22152 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
22153 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
22154 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
22155 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
22156   echo $ECHO_N "(cached) $ECHO_C" >&6
22157 else
22158   if test "$cross_compiling" = yes; then
22159   ac_cv_have_working_vsnprintf=cross
22160 else
22161   cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 #include <stdio.h>
22168 #include <stdarg.h>
22169
22170 int my_vsnprintf (char *buf, const char *tmpl, ...)
22171 {
22172     int i;
22173     va_list args;
22174     va_start (args, tmpl);
22175     i = vsnprintf (buf, 2, tmpl, args);
22176     va_end (args);
22177     return i;
22178 }
22179
22180 int main(void)
22181 {
22182     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22183     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22184     int i;
22185     i = my_vsnprintf (bufs, "%s", "111");
22186     if (strcmp (bufs, "1")) exit (1);
22187     if (i != 3) exit (1);
22188     i = my_vsnprintf (bufd, "%d", 111);
22189     if (strcmp (bufd, "1")) exit (1);
22190     if (i != 3) exit (1);
22191     exit(0);
22192 }
22193 _ACEOF
22194 rm -f conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201   (eval "$ac_link") 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22205   { (case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_try") 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }; }; then
22214   ac_cv_have_working_vsnprintf=yes
22215 else
22216   echo "$as_me: program exited with status $ac_status" >&5
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220 ( exit $ac_status )
22221 ac_cv_have_working_vsnprintf=no
22222 fi
22223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22224 fi
22225
22226
22227 fi
22228
22229 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
22230 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
22231 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
22232   case " $LIBOBJS " in
22233   *" snprintf.$ac_objext "* ) ;;
22234   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22235  ;;
22236 esac
22237
22238   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
22239 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
22240
22241 cat >>confdefs.h <<\_ACEOF
22242 #define PREFER_PORTABLE_SNPRINTF 1
22243 _ACEOF
22244
22245 fi
22246 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
22247 { echo "$as_me:$LINENO: checking for asprintf" >&5
22248 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
22249 if test "${ac_cv_func_asprintf+set}" = set; then
22250   echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252   cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h.  */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h.  */
22258 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
22259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22260 #define asprintf innocuous_asprintf
22261
22262 /* System header to define __stub macros and hopefully few prototypes,
22263     which can conflict with char asprintf (); below.
22264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265     <limits.h> exists even on freestanding compilers.  */
22266
22267 #ifdef __STDC__
22268 # include <limits.h>
22269 #else
22270 # include <assert.h>
22271 #endif
22272
22273 #undef asprintf
22274
22275 /* Override any GCC internal prototype to avoid an error.
22276    Use char because int might match the return type of a GCC
22277    builtin and then its argument prototype would still apply.  */
22278 #ifdef __cplusplus
22279 extern "C"
22280 #endif
22281 char asprintf ();
22282 /* The GNU C library defines this for functions which it implements
22283     to always fail with ENOSYS.  Some functions are actually named
22284     something starting with __ and the normal name is an alias.  */
22285 #if defined __stub_asprintf || defined __stub___asprintf
22286 choke me
22287 #endif
22288
22289 int
22290 main ()
22291 {
22292 return asprintf ();
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_link") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } && {
22311          test -z "$ac_c_werror_flag" ||
22312          test ! -s conftest.err
22313        } && test -s conftest$ac_exeext &&
22314        $as_test_x conftest$ac_exeext; then
22315   ac_cv_func_asprintf=yes
22316 else
22317   echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320         ac_cv_func_asprintf=no
22321 fi
22322
22323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324       conftest$ac_exeext conftest.$ac_ext
22325 fi
22326 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
22327 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
22328 if test $ac_cv_func_asprintf = yes; then
22329   :
22330 else
22331
22332 cat >>confdefs.h <<\_ACEOF
22333 #define NEED_ASPRINTF 1
22334 _ACEOF
22335
22336 fi
22337
22338 { echo "$as_me:$LINENO: checking for vasprintf" >&5
22339 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
22340 if test "${ac_cv_func_vasprintf+set}" = set; then
22341   echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343   cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h.  */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h.  */
22349 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
22350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22351 #define vasprintf innocuous_vasprintf
22352
22353 /* System header to define __stub macros and hopefully few prototypes,
22354     which can conflict with char vasprintf (); below.
22355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22356     <limits.h> exists even on freestanding compilers.  */
22357
22358 #ifdef __STDC__
22359 # include <limits.h>
22360 #else
22361 # include <assert.h>
22362 #endif
22363
22364 #undef vasprintf
22365
22366 /* Override any GCC internal prototype to avoid an error.
22367    Use char because int might match the return type of a GCC
22368    builtin and then its argument prototype would still apply.  */
22369 #ifdef __cplusplus
22370 extern "C"
22371 #endif
22372 char vasprintf ();
22373 /* The GNU C library defines this for functions which it implements
22374     to always fail with ENOSYS.  Some functions are actually named
22375     something starting with __ and the normal name is an alias.  */
22376 #if defined __stub_vasprintf || defined __stub___vasprintf
22377 choke me
22378 #endif
22379
22380 int
22381 main ()
22382 {
22383 return vasprintf ();
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392   *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395   (eval "$ac_link") 2>conftest.er1
22396   ac_status=$?
22397   grep -v '^ *+' conftest.er1 >conftest.err
22398   rm -f conftest.er1
22399   cat conftest.err >&5
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } && {
22402          test -z "$ac_c_werror_flag" ||
22403          test ! -s conftest.err
22404        } && test -s conftest$ac_exeext &&
22405        $as_test_x conftest$ac_exeext; then
22406   ac_cv_func_vasprintf=yes
22407 else
22408   echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411         ac_cv_func_vasprintf=no
22412 fi
22413
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415       conftest$ac_exeext conftest.$ac_ext
22416 fi
22417 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
22418 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
22419 if test $ac_cv_func_vasprintf = yes; then
22420   :
22421 else
22422
22423 cat >>confdefs.h <<\_ACEOF
22424 #define NEED_VASPRINTF 1
22425 _ACEOF
22426
22427 fi
22428
22429
22430 # Checks for typedefs, structures, and compiler characteristics.
22431 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22432 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22433 if test "${ac_cv_c_const+set}" = set; then
22434   echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436   cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442
22443 int
22444 main ()
22445 {
22446 /* FIXME: Include the comments suggested by Paul. */
22447 #ifndef __cplusplus
22448   /* Ultrix mips cc rejects this.  */
22449   typedef int charset[2];
22450   const charset cs;
22451   /* SunOS 4.1.1 cc rejects this.  */
22452   char const *const *pcpcc;
22453   char **ppc;
22454   /* NEC SVR4.0.2 mips cc rejects this.  */
22455   struct point {int x, y;};
22456   static struct point const zero = {0,0};
22457   /* AIX XL C 1.02.0.0 rejects this.
22458      It does not let you subtract one const X* pointer from another in
22459      an arm of an if-expression whose if-part is not a constant
22460      expression */
22461   const char *g = "string";
22462   pcpcc = &g + (g ? g-g : 0);
22463   /* HPUX 7.0 cc rejects these. */
22464   ++pcpcc;
22465   ppc = (char**) pcpcc;
22466   pcpcc = (char const *const *) ppc;
22467   { /* SCO 3.2v4 cc rejects this.  */
22468     char *t;
22469     char const *s = 0 ? (char *) 0 : (char const *) 0;
22470
22471     *t++ = 0;
22472     if (s) return 0;
22473   }
22474   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22475     int x[] = {25, 17};
22476     const int *foo = &x[0];
22477     ++foo;
22478   }
22479   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22480     typedef const int *iptr;
22481     iptr p = 0;
22482     ++p;
22483   }
22484   { /* AIX XL C 1.02.0.0 rejects this saying
22485        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22486     struct s { int j; const int *ap[3]; };
22487     struct s *b; b->j = 5;
22488   }
22489   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22490     const int foo = 10;
22491     if (!foo) return 0;
22492   }
22493   return !cs[0] && !zero.x;
22494 #endif
22495
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504   *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507   (eval "$ac_compile") 2>conftest.er1
22508   ac_status=$?
22509   grep -v '^ *+' conftest.er1 >conftest.err
22510   rm -f conftest.er1
22511   cat conftest.err >&5
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); } && {
22514          test -z "$ac_c_werror_flag" ||
22515          test ! -s conftest.err
22516        } && test -s conftest.$ac_objext; then
22517   ac_cv_c_const=yes
22518 else
22519   echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22521
22522         ac_cv_c_const=no
22523 fi
22524
22525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526 fi
22527 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22528 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22529 if test $ac_cv_c_const = no; then
22530
22531 cat >>confdefs.h <<\_ACEOF
22532 #define const
22533 _ACEOF
22534
22535 fi
22536
22537 { echo "$as_me:$LINENO: checking for inline" >&5
22538 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22539 if test "${ac_cv_c_inline+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   ac_cv_c_inline=no
22543 for ac_kw in inline __inline__ __inline; do
22544   cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h.  */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h.  */
22550 #ifndef __cplusplus
22551 typedef int foo_t;
22552 static $ac_kw foo_t static_foo () {return 0; }
22553 $ac_kw foo_t foo () {return 0; }
22554 #endif
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_c_inline=$ac_kw
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   test "$ac_cv_c_inline" != no && break
22584 done
22585
22586 fi
22587 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22588 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22589
22590
22591 case $ac_cv_c_inline in
22592   inline | yes) ;;
22593   *)
22594     case $ac_cv_c_inline in
22595       no) ac_val=;;
22596       *) ac_val=$ac_cv_c_inline;;
22597     esac
22598     cat >>confdefs.h <<_ACEOF
22599 #ifndef __cplusplus
22600 #define inline $ac_val
22601 #endif
22602 _ACEOF
22603     ;;
22604 esac
22605
22606 { echo "$as_me:$LINENO: checking for size_t" >&5
22607 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22608 if test "${ac_cv_type_size_t+set}" = set; then
22609   echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611   cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h.  */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h.  */
22617 $ac_includes_default
22618 typedef size_t ac__type_new_;
22619 int
22620 main ()
22621 {
22622 if ((ac__type_new_ *) 0)
22623   return 0;
22624 if (sizeof (ac__type_new_))
22625   return 0;
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 rm -f conftest.$ac_objext
22631 if { (ac_try="$ac_compile"
22632 case "(($ac_try" in
22633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634   *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637   (eval "$ac_compile") 2>conftest.er1
22638   ac_status=$?
22639   grep -v '^ *+' conftest.er1 >conftest.err
22640   rm -f conftest.er1
22641   cat conftest.err >&5
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); } && {
22644          test -z "$ac_c_werror_flag" ||
22645          test ! -s conftest.err
22646        } && test -s conftest.$ac_objext; then
22647   ac_cv_type_size_t=yes
22648 else
22649   echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22651
22652         ac_cv_type_size_t=no
22653 fi
22654
22655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656 fi
22657 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22658 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22659 if test $ac_cv_type_size_t = yes; then
22660   :
22661 else
22662
22663 cat >>confdefs.h <<_ACEOF
22664 #define size_t unsigned int
22665 _ACEOF
22666
22667 fi
22668
22669
22670 ###################################
22671 ## SimGrid and GRAS specific checks
22672 ##
22673
22674
22675   { echo "$as_me:$LINENO: result: " >&5
22676 echo "${ECHO_T}" >&6; }
22677   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22678 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22679
22680 # Check architecture signature begin
22681
22682 # Check for the architecture
22683 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22684 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22685 if test "${ac_cv_c_bigendian+set}" = set; then
22686   echo $ECHO_N "(cached) $ECHO_C" >&6
22687 else
22688   # See if sys/param.h defines the BYTE_ORDER macro.
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695 #include <sys/types.h>
22696 #include <sys/param.h>
22697
22698 int
22699 main ()
22700 {
22701 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22702         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22703  bogus endian macros
22704 #endif
22705
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714   *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717   (eval "$ac_compile") 2>conftest.er1
22718   ac_status=$?
22719   grep -v '^ *+' conftest.er1 >conftest.err
22720   rm -f conftest.er1
22721   cat conftest.err >&5
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); } && {
22724          test -z "$ac_c_werror_flag" ||
22725          test ! -s conftest.err
22726        } && test -s conftest.$ac_objext; then
22727   # It does; now see whether it defined to BIG_ENDIAN or not.
22728 cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734 #include <sys/types.h>
22735 #include <sys/param.h>
22736
22737 int
22738 main ()
22739 {
22740 #if BYTE_ORDER != BIG_ENDIAN
22741  not big endian
22742 #endif
22743
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752   *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755   (eval "$ac_compile") 2>conftest.er1
22756   ac_status=$?
22757   grep -v '^ *+' conftest.er1 >conftest.err
22758   rm -f conftest.er1
22759   cat conftest.err >&5
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); } && {
22762          test -z "$ac_c_werror_flag" ||
22763          test ! -s conftest.err
22764        } && test -s conftest.$ac_objext; then
22765   ac_cv_c_bigendian=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770         ac_cv_c_bigendian=no
22771 fi
22772
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 else
22775   echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778         # It does not; compile a test program.
22779 if test "$cross_compiling" = yes; then
22780   # try to guess the endianness by grepping values into an object file
22781   ac_cv_c_bigendian=unknown
22782   cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22789 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22790 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22791 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22792 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22793 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22794 int
22795 main ()
22796 {
22797  _ascii (); _ebcdic ();
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806   *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809   (eval "$ac_compile") 2>conftest.er1
22810   ac_status=$?
22811   grep -v '^ *+' conftest.er1 >conftest.err
22812   rm -f conftest.er1
22813   cat conftest.err >&5
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); } && {
22816          test -z "$ac_c_werror_flag" ||
22817          test ! -s conftest.err
22818        } && test -s conftest.$ac_objext; then
22819   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22820   ac_cv_c_bigendian=yes
22821 fi
22822 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22823   if test "$ac_cv_c_bigendian" = unknown; then
22824     ac_cv_c_bigendian=no
22825   else
22826     # finding both strings is unlikely to happen, but who knows?
22827     ac_cv_c_bigendian=unknown
22828   fi
22829 fi
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 else
22839   cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h.  */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h.  */
22845 $ac_includes_default
22846 int
22847 main ()
22848 {
22849
22850   /* Are we little or big endian?  From Harbison&Steele.  */
22851   union
22852   {
22853     long int l;
22854     char c[sizeof (long int)];
22855   } u;
22856   u.l = 1;
22857   return u.c[sizeof (long int) - 1] == 1;
22858
22859   ;
22860   return 0;
22861 }
22862 _ACEOF
22863 rm -f conftest$ac_exeext
22864 if { (ac_try="$ac_link"
22865 case "(($ac_try" in
22866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867   *) ac_try_echo=$ac_try;;
22868 esac
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870   (eval "$ac_link") 2>&5
22871   ac_status=$?
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22874   { (case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_try") 2>&5
22880   ac_status=$?
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); }; }; then
22883   ac_cv_c_bigendian=no
22884 else
22885   echo "$as_me: program exited with status $ac_status" >&5
22886 echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22888
22889 ( exit $ac_status )
22890 ac_cv_c_bigendian=yes
22891 fi
22892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22893 fi
22894
22895
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 fi
22900 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22901 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22902 case $ac_cv_c_bigendian in
22903   yes)
22904     endian=1 ;;
22905   no)
22906     endian=0 ;;
22907   *)
22908     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22909 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22910    { (exit 1); exit 1; }; } ;;
22911 esac
22912
22913
22914 cat >>confdefs.h <<_ACEOF
22915 #define GRAS_BIGENDIAN $endian
22916 _ACEOF
22917
22918
22919 { echo "$as_me:$LINENO: checking size of char" >&5
22920 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22921     if test "${ac_cv_sizeof_char+set}" = set; then
22922   echo $ECHO_N "(cached) $ECHO_C" >&6
22923 else
22924   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22925    cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 #include "confdefs.h"
22932    #include <sys/types.h>
22933
22934
22935 int
22936 main ()
22937 {
22938 switch (0) case 0: case (sizeof (char) == $ac_size):;
22939   ;
22940   return 0;
22941 }
22942 _ACEOF
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947   *) ac_try_echo=$ac_try;;
22948 esac
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950   (eval "$ac_compile") 2>conftest.er1
22951   ac_status=$?
22952   grep -v '^ *+' conftest.er1 >conftest.err
22953   rm -f conftest.er1
22954   cat conftest.err >&5
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); } && {
22957          test -z "$ac_c_werror_flag" ||
22958          test ! -s conftest.err
22959        } && test -s conftest.$ac_objext; then
22960   ac_cv_sizeof_char=$ac_size
22961 else
22962   echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22964
22965
22966 fi
22967
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969    if test x$ac_cv_sizeof_char != x ; then break; fi
22970   done
22971
22972 fi
22973
22974
22975 unspecif=$ac_cv_sizeof_char
22976 if test x$unspecif = x ; then
22977   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22978 echo "$as_me: error: cannot determine a size for char" >&2;}
22979    { (exit 1); exit 1; }; }
22980 fi
22981
22982     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22983   echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22985   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22986    cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include "confdefs.h"
22993    #include <sys/types.h>
22994
22995
22996 int
22997 main ()
22998 {
22999 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
23000   ;
23001   return 0;
23002 }
23003 _ACEOF
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008   *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011   (eval "$ac_compile") 2>conftest.er1
23012   ac_status=$?
23013   grep -v '^ *+' conftest.er1 >conftest.err
23014   rm -f conftest.er1
23015   cat conftest.err >&5
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); } && {
23018          test -z "$ac_c_werror_flag" ||
23019          test ! -s conftest.err
23020        } && test -s conftest.$ac_objext; then
23021   ac_cv_sizeof_signed_char=$ac_size
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026
23027 fi
23028
23029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
23031   done
23032
23033 fi
23034
23035
23036 signed=$ac_cv_sizeof_signed_char
23037 if test x$signed = x ; then
23038   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
23039 echo "$as_me: error: cannot determine a size for signed char" >&2;}
23040    { (exit 1); exit 1; }; }
23041 fi
23042 if test x$unspecif != x$signed ; then
23043   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
23044 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
23045    { (exit 1); exit 1; }; }
23046 fi
23047
23048     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23049   echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23052    cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h.  */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h.  */
23058 #include "confdefs.h"
23059    #include <sys/types.h>
23060
23061
23062 int
23063 main ()
23064 {
23065 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
23066   ;
23067   return 0;
23068 }
23069 _ACEOF
23070 rm -f conftest.$ac_objext
23071 if { (ac_try="$ac_compile"
23072 case "(($ac_try" in
23073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074   *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077   (eval "$ac_compile") 2>conftest.er1
23078   ac_status=$?
23079   grep -v '^ *+' conftest.er1 >conftest.err
23080   rm -f conftest.er1
23081   cat conftest.err >&5
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); } && {
23084          test -z "$ac_c_werror_flag" ||
23085          test ! -s conftest.err
23086        } && test -s conftest.$ac_objext; then
23087   ac_cv_sizeof_unsigned_char=$ac_size
23088 else
23089   echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23091
23092
23093 fi
23094
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
23097   done
23098
23099 fi
23100
23101
23102 unsigned=$ac_cv_sizeof_unsigned_char
23103 if test x$unsigned = x ; then
23104   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
23105 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
23106    { (exit 1); exit 1; }; }
23107 fi
23108 if test x$unsigned != x$signed ; then
23109   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
23110 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
23111    { (exit 1); exit 1; }; }
23112 fi
23113
23114 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23115 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23116                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
23117 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
23118
23119  if test "${ac_cv_struct_boundary_char+set}" = set; then
23120   echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23123    cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include "confdefs.h"
23130      #include <sys/types.h>
23131      struct s { char c; char i; };
23132
23133 int
23134 main ()
23135 {
23136 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
23137   ;
23138   return 0;
23139 }
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145   *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148   (eval "$ac_compile") 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && {
23155          test -z "$ac_c_werror_flag" ||
23156          test ! -s conftest.err
23157        } && test -s conftest.$ac_objext; then
23158   ac_cv_struct_boundary_char=$ac_size
23159 else
23160   echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23162
23163
23164 fi
23165
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167    if test x$ac_cv_struct_boundary_char != x ; then break; fi
23168   done
23169
23170 fi
23171
23172  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
23173 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
23174  if test x$ac_cv_struct_boundary_char = x ; then
23175    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
23176 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
23177    { (exit 1); exit 1; }; }
23178  fi
23179
23180 { echo "$as_me:$LINENO: checking size of short int" >&5
23181 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23182     if test "${ac_cv_sizeof_short_int+set}" = set; then
23183   echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23186    cat >conftest.$ac_ext <<_ACEOF
23187 /* confdefs.h.  */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h.  */
23192 #include "confdefs.h"
23193    #include <sys/types.h>
23194
23195
23196 int
23197 main ()
23198 {
23199 switch (0) case 0: case (sizeof (short int) == $ac_size):;
23200   ;
23201   return 0;
23202 }
23203 _ACEOF
23204 rm -f conftest.$ac_objext
23205 if { (ac_try="$ac_compile"
23206 case "(($ac_try" in
23207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208   *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211   (eval "$ac_compile") 2>conftest.er1
23212   ac_status=$?
23213   grep -v '^ *+' conftest.er1 >conftest.err
23214   rm -f conftest.er1
23215   cat conftest.err >&5
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); } && {
23218          test -z "$ac_c_werror_flag" ||
23219          test ! -s conftest.err
23220        } && test -s conftest.$ac_objext; then
23221   ac_cv_sizeof_short_int=$ac_size
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226
23227 fi
23228
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230    if test x$ac_cv_sizeof_short_int != x ; then break; fi
23231   done
23232
23233 fi
23234
23235
23236 unspecif=$ac_cv_sizeof_short_int
23237 if test x$unspecif = x ; then
23238   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
23239 echo "$as_me: error: cannot determine a size for short int" >&2;}
23240    { (exit 1); exit 1; }; }
23241 fi
23242
23243     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
23244   echo $ECHO_N "(cached) $ECHO_C" >&6
23245 else
23246   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23247    cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h.  */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h.  */
23253 #include "confdefs.h"
23254    #include <sys/types.h>
23255
23256
23257 int
23258 main ()
23259 {
23260 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext
23266 if { (ac_try="$ac_compile"
23267 case "(($ac_try" in
23268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269   *) ac_try_echo=$ac_try;;
23270 esac
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272   (eval "$ac_compile") 2>conftest.er1
23273   ac_status=$?
23274   grep -v '^ *+' conftest.er1 >conftest.err
23275   rm -f conftest.er1
23276   cat conftest.err >&5
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); } && {
23279          test -z "$ac_c_werror_flag" ||
23280          test ! -s conftest.err
23281        } && test -s conftest.$ac_objext; then
23282   ac_cv_sizeof_signed_short_int=$ac_size
23283 else
23284   echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23286
23287
23288 fi
23289
23290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23291    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
23292   done
23293
23294 fi
23295
23296
23297 signed=$ac_cv_sizeof_signed_short_int
23298 if test x$signed = x ; then
23299   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
23300 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
23301    { (exit 1); exit 1; }; }
23302 fi
23303 if test x$unspecif != x$signed ; then
23304   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
23305 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
23306    { (exit 1); exit 1; }; }
23307 fi
23308
23309     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
23310   echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23313    cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319 #include "confdefs.h"
23320    #include <sys/types.h>
23321
23322
23323 int
23324 main ()
23325 {
23326 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
23327   ;
23328   return 0;
23329 }
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335   *) ac_try_echo=$ac_try;;
23336 esac
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338   (eval "$ac_compile") 2>conftest.er1
23339   ac_status=$?
23340   grep -v '^ *+' conftest.er1 >conftest.err
23341   rm -f conftest.er1
23342   cat conftest.err >&5
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); } && {
23345          test -z "$ac_c_werror_flag" ||
23346          test ! -s conftest.err
23347        } && test -s conftest.$ac_objext; then
23348   ac_cv_sizeof_unsigned_short_int=$ac_size
23349 else
23350   echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353
23354 fi
23355
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
23358   done
23359
23360 fi
23361
23362
23363 unsigned=$ac_cv_sizeof_unsigned_short_int
23364 if test x$unsigned = x ; then
23365   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
23366 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
23367    { (exit 1); exit 1; }; }
23368 fi
23369 if test x$unsigned != x$signed ; then
23370   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
23371 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
23372    { (exit 1); exit 1; }; }
23373 fi
23374
23375 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
23376 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
23377              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
23378 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
23379
23380  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23384    cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h.  */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h.  */
23390 #include "confdefs.h"
23391      #include <sys/types.h>
23392      struct s { char c; short int i; };
23393
23394 int
23395 main ()
23396 {
23397 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406   *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409   (eval "$ac_compile") 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } && {
23416          test -z "$ac_c_werror_flag" ||
23417          test ! -s conftest.err
23418        } && test -s conftest.$ac_objext; then
23419   ac_cv_struct_boundary_short_int=$ac_size
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
23429   done
23430
23431 fi
23432
23433  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
23434 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
23435  if test x$ac_cv_struct_boundary_short_int = x ; then
23436    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
23437 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
23438    { (exit 1); exit 1; }; }
23439  fi
23440
23441 { echo "$as_me:$LINENO: checking size of int" >&5
23442 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23443     if test "${ac_cv_sizeof_int+set}" = set; then
23444   echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23447    cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h.  */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h.  */
23453 #include "confdefs.h"
23454    #include <sys/types.h>
23455
23456
23457 int
23458 main ()
23459 {
23460 switch (0) case 0: case (sizeof (int) == $ac_size):;
23461   ;
23462   return 0;
23463 }
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469   *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472   (eval "$ac_compile") 2>conftest.er1
23473   ac_status=$?
23474   grep -v '^ *+' conftest.er1 >conftest.err
23475   rm -f conftest.er1
23476   cat conftest.err >&5
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); } && {
23479          test -z "$ac_c_werror_flag" ||
23480          test ! -s conftest.err
23481        } && test -s conftest.$ac_objext; then
23482   ac_cv_sizeof_int=$ac_size
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491    if test x$ac_cv_sizeof_int != x ; then break; fi
23492   done
23493
23494 fi
23495
23496
23497 unspecif=$ac_cv_sizeof_int
23498 if test x$unspecif = x ; then
23499   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
23500 echo "$as_me: error: cannot determine a size for int" >&2;}
23501    { (exit 1); exit 1; }; }
23502 fi
23503
23504     if test "${ac_cv_sizeof_signed_int+set}" = set; then
23505   echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23508    cat >conftest.$ac_ext <<_ACEOF
23509 /* confdefs.h.  */
23510 _ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h.  */
23514 #include "confdefs.h"
23515    #include <sys/types.h>
23516
23517
23518 int
23519 main ()
23520 {
23521 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530   *) ac_try_echo=$ac_try;;
23531 esac
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533   (eval "$ac_compile") 2>conftest.er1
23534   ac_status=$?
23535   grep -v '^ *+' conftest.er1 >conftest.err
23536   rm -f conftest.er1
23537   cat conftest.err >&5
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); } && {
23540          test -z "$ac_c_werror_flag" ||
23541          test ! -s conftest.err
23542        } && test -s conftest.$ac_objext; then
23543   ac_cv_sizeof_signed_int=$ac_size
23544 else
23545   echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23547
23548
23549 fi
23550
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
23553   done
23554
23555 fi
23556
23557
23558 signed=$ac_cv_sizeof_signed_int
23559 if test x$signed = x ; then
23560   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
23561 echo "$as_me: error: cannot determine a size for signed int" >&2;}
23562    { (exit 1); exit 1; }; }
23563 fi
23564 if test x$unspecif != x$signed ; then
23565   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
23566 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
23567    { (exit 1); exit 1; }; }
23568 fi
23569
23570     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23571   echo $ECHO_N "(cached) $ECHO_C" >&6
23572 else
23573   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23574    cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 #include "confdefs.h"
23581    #include <sys/types.h>
23582
23583
23584 int
23585 main ()
23586 {
23587 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 rm -f conftest.$ac_objext
23593 if { (ac_try="$ac_compile"
23594 case "(($ac_try" in
23595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596   *) ac_try_echo=$ac_try;;
23597 esac
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599   (eval "$ac_compile") 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } && {
23606          test -z "$ac_c_werror_flag" ||
23607          test ! -s conftest.err
23608        } && test -s conftest.$ac_objext; then
23609   ac_cv_sizeof_unsigned_int=$ac_size
23610 else
23611   echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614
23615 fi
23616
23617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23618    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23619   done
23620
23621 fi
23622
23623
23624 unsigned=$ac_cv_sizeof_unsigned_int
23625 if test x$unsigned = x ; then
23626   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23627 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23628    { (exit 1); exit 1; }; }
23629 fi
23630 if test x$unsigned != x$signed ; then
23631   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23632 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23633    { (exit 1); exit 1; }; }
23634 fi
23635
23636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23637 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23638                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23639 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23640
23641  if test "${ac_cv_struct_boundary_int+set}" = set; then
23642   echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23645    cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651 #include "confdefs.h"
23652      #include <sys/types.h>
23653      struct s { char c; int i; };
23654
23655 int
23656 main ()
23657 {
23658 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667   *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670   (eval "$ac_compile") 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && {
23677          test -z "$ac_c_werror_flag" ||
23678          test ! -s conftest.err
23679        } && test -s conftest.$ac_objext; then
23680   ac_cv_struct_boundary_int=$ac_size
23681 else
23682   echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685
23686 fi
23687
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23690   done
23691
23692 fi
23693
23694  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23695 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23696  if test x$ac_cv_struct_boundary_int = x ; then
23697    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23698 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23699    { (exit 1); exit 1; }; }
23700  fi
23701
23702 { echo "$as_me:$LINENO: checking size of long int" >&5
23703 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23704     if test "${ac_cv_sizeof_long_int+set}" = set; then
23705   echo $ECHO_N "(cached) $ECHO_C" >&6
23706 else
23707   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23708    cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 #include "confdefs.h"
23715    #include <sys/types.h>
23716
23717
23718 int
23719 main ()
23720 {
23721 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733   (eval "$ac_compile") 2>conftest.er1
23734   ac_status=$?
23735   grep -v '^ *+' conftest.er1 >conftest.err
23736   rm -f conftest.er1
23737   cat conftest.err >&5
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); } && {
23740          test -z "$ac_c_werror_flag" ||
23741          test ! -s conftest.err
23742        } && test -s conftest.$ac_objext; then
23743   ac_cv_sizeof_long_int=$ac_size
23744 else
23745   echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23747
23748
23749 fi
23750
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23753   done
23754
23755 fi
23756
23757
23758 unspecif=$ac_cv_sizeof_long_int
23759 if test x$unspecif = x ; then
23760   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23761 echo "$as_me: error: cannot determine a size for long int" >&2;}
23762    { (exit 1); exit 1; }; }
23763 fi
23764
23765     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23766   echo $ECHO_N "(cached) $ECHO_C" >&6
23767 else
23768   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23769    cat >conftest.$ac_ext <<_ACEOF
23770 /* confdefs.h.  */
23771 _ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h.  */
23775 #include "confdefs.h"
23776    #include <sys/types.h>
23777
23778
23779 int
23780 main ()
23781 {
23782 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23783   ;
23784   return 0;
23785 }
23786 _ACEOF
23787 rm -f conftest.$ac_objext
23788 if { (ac_try="$ac_compile"
23789 case "(($ac_try" in
23790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791   *) ac_try_echo=$ac_try;;
23792 esac
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794   (eval "$ac_compile") 2>conftest.er1
23795   ac_status=$?
23796   grep -v '^ *+' conftest.er1 >conftest.err
23797   rm -f conftest.er1
23798   cat conftest.err >&5
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); } && {
23801          test -z "$ac_c_werror_flag" ||
23802          test ! -s conftest.err
23803        } && test -s conftest.$ac_objext; then
23804   ac_cv_sizeof_signed_long_int=$ac_size
23805 else
23806   echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23808
23809
23810 fi
23811
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23814   done
23815
23816 fi
23817
23818
23819 signed=$ac_cv_sizeof_signed_long_int
23820 if test x$signed = x ; then
23821   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23822 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23823    { (exit 1); exit 1; }; }
23824 fi
23825 if test x$unspecif != x$signed ; then
23826   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23827 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23828    { (exit 1); exit 1; }; }
23829 fi
23830
23831     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23835    cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841 #include "confdefs.h"
23842    #include <sys/types.h>
23843
23844
23845 int
23846 main ()
23847 {
23848 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23849   ;
23850   return 0;
23851 }
23852 _ACEOF
23853 rm -f conftest.$ac_objext
23854 if { (ac_try="$ac_compile"
23855 case "(($ac_try" in
23856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857   *) ac_try_echo=$ac_try;;
23858 esac
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860   (eval "$ac_compile") 2>conftest.er1
23861   ac_status=$?
23862   grep -v '^ *+' conftest.er1 >conftest.err
23863   rm -f conftest.er1
23864   cat conftest.err >&5
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); } && {
23867          test -z "$ac_c_werror_flag" ||
23868          test ! -s conftest.err
23869        } && test -s conftest.$ac_objext; then
23870   ac_cv_sizeof_unsigned_long_int=$ac_size
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23879    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23880   done
23881
23882 fi
23883
23884
23885 unsigned=$ac_cv_sizeof_unsigned_long_int
23886 if test x$unsigned = x ; then
23887   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23888 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23889    { (exit 1); exit 1; }; }
23890 fi
23891 if test x$unsigned != x$signed ; then
23892   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23893 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23894    { (exit 1); exit 1; }; }
23895 fi
23896
23897 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23898 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23899               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23900 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23901
23902  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23906    cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h.  */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h.  */
23912 #include "confdefs.h"
23913      #include <sys/types.h>
23914      struct s { char c; long int i; };
23915
23916 int
23917 main ()
23918 {
23919 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23920   ;
23921   return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928   *) ac_try_echo=$ac_try;;
23929 esac
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931   (eval "$ac_compile") 2>conftest.er1
23932   ac_status=$?
23933   grep -v '^ *+' conftest.er1 >conftest.err
23934   rm -f conftest.er1
23935   cat conftest.err >&5
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); } && {
23938          test -z "$ac_c_werror_flag" ||
23939          test ! -s conftest.err
23940        } && test -s conftest.$ac_objext; then
23941   ac_cv_struct_boundary_long_int=$ac_size
23942 else
23943   echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946
23947 fi
23948
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23951   done
23952
23953 fi
23954
23955  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23956 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23957  if test x$ac_cv_struct_boundary_long_int = x ; then
23958    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23959 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23960    { (exit 1); exit 1; }; }
23961  fi
23962
23963 { echo "$as_me:$LINENO: checking size of long long int" >&5
23964 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23965     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23966   echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23968   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23969    cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975 #include "confdefs.h"
23976    #include <sys/types.h>
23977
23978
23979 int
23980 main ()
23981 {
23982 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23983   ;
23984   return 0;
23985 }
23986 _ACEOF
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991   *) ac_try_echo=$ac_try;;
23992 esac
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994   (eval "$ac_compile") 2>conftest.er1
23995   ac_status=$?
23996   grep -v '^ *+' conftest.er1 >conftest.err
23997   rm -f conftest.er1
23998   cat conftest.err >&5
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); } && {
24001          test -z "$ac_c_werror_flag" ||
24002          test ! -s conftest.err
24003        } && test -s conftest.$ac_objext; then
24004   ac_cv_sizeof_long_long_int=$ac_size
24005 else
24006   echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24008
24009
24010 fi
24011
24012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
24014   done
24015
24016 fi
24017
24018
24019 unspecif=$ac_cv_sizeof_long_long_int
24020 if test x$unspecif = x ; then
24021   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
24022 echo "$as_me: error: cannot determine a size for long long int" >&2;}
24023    { (exit 1); exit 1; }; }
24024 fi
24025
24026     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
24027   echo $ECHO_N "(cached) $ECHO_C" >&6
24028 else
24029   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24030    cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 #include "confdefs.h"
24037    #include <sys/types.h>
24038
24039
24040 int
24041 main ()
24042 {
24043 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
24044   ;
24045   return 0;
24046 }
24047 _ACEOF
24048 rm -f conftest.$ac_objext
24049 if { (ac_try="$ac_compile"
24050 case "(($ac_try" in
24051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24052   *) ac_try_echo=$ac_try;;
24053 esac
24054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24055   (eval "$ac_compile") 2>conftest.er1
24056   ac_status=$?
24057   grep -v '^ *+' conftest.er1 >conftest.err
24058   rm -f conftest.er1
24059   cat conftest.err >&5
24060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061   (exit $ac_status); } && {
24062          test -z "$ac_c_werror_flag" ||
24063          test ! -s conftest.err
24064        } && test -s conftest.$ac_objext; then
24065   ac_cv_sizeof_signed_long_long_int=$ac_size
24066 else
24067   echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070
24071 fi
24072
24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
24075   done
24076
24077 fi
24078
24079
24080 signed=$ac_cv_sizeof_signed_long_long_int
24081 if test x$signed = x ; then
24082   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
24083 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
24084    { (exit 1); exit 1; }; }
24085 fi
24086 if test x$unspecif != x$signed ; then
24087   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
24088 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
24089    { (exit 1); exit 1; }; }
24090 fi
24091
24092     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
24093   echo $ECHO_N "(cached) $ECHO_C" >&6
24094 else
24095   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24096    cat >conftest.$ac_ext <<_ACEOF
24097 /* confdefs.h.  */
24098 _ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h.  */
24102 #include "confdefs.h"
24103    #include <sys/types.h>
24104
24105
24106 int
24107 main ()
24108 {
24109 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 rm -f conftest.$ac_objext
24115 if { (ac_try="$ac_compile"
24116 case "(($ac_try" in
24117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118   *) ac_try_echo=$ac_try;;
24119 esac
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121   (eval "$ac_compile") 2>conftest.er1
24122   ac_status=$?
24123   grep -v '^ *+' conftest.er1 >conftest.err
24124   rm -f conftest.er1
24125   cat conftest.err >&5
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); } && {
24128          test -z "$ac_c_werror_flag" ||
24129          test ! -s conftest.err
24130        } && test -s conftest.$ac_objext; then
24131   ac_cv_sizeof_unsigned_long_long_int=$ac_size
24132 else
24133   echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24135
24136
24137 fi
24138
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
24141   done
24142
24143 fi
24144
24145
24146 unsigned=$ac_cv_sizeof_unsigned_long_long_int
24147 if test x$unsigned = x ; then
24148   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
24149 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
24150    { (exit 1); exit 1; }; }
24151 fi
24152 if test x$unsigned != x$signed ; then
24153   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
24154 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
24155    { (exit 1); exit 1; }; }
24156 fi
24157
24158 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
24159 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
24160          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
24161 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
24162
24163  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
24164   echo $ECHO_N "(cached) $ECHO_C" >&6
24165 else
24166   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24167    cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h.  */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h.  */
24173 #include "confdefs.h"
24174      #include <sys/types.h>
24175      struct s { char c; long long int i; };
24176
24177 int
24178 main ()
24179 {
24180 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
24181   ;
24182   return 0;
24183 }
24184 _ACEOF
24185 rm -f conftest.$ac_objext
24186 if { (ac_try="$ac_compile"
24187 case "(($ac_try" in
24188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189   *) ac_try_echo=$ac_try;;
24190 esac
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192   (eval "$ac_compile") 2>conftest.er1
24193   ac_status=$?
24194   grep -v '^ *+' conftest.er1 >conftest.err
24195   rm -f conftest.er1
24196   cat conftest.err >&5
24197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198   (exit $ac_status); } && {
24199          test -z "$ac_c_werror_flag" ||
24200          test ! -s conftest.err
24201        } && test -s conftest.$ac_objext; then
24202   ac_cv_struct_boundary_long_long_int=$ac_size
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207
24208 fi
24209
24210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
24212   done
24213
24214 fi
24215
24216  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
24217 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
24218  if test x$ac_cv_struct_boundary_long_long_int = x ; then
24219    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
24220 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
24221    { (exit 1); exit 1; }; }
24222  fi
24223
24224
24225     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
24226 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
24227
24228  if test "${ac_cv_struct_boundary_float+set}" = set; then
24229   echo $ECHO_N "(cached) $ECHO_C" >&6
24230 else
24231   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24232    cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h.  */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h.  */
24238 #include "confdefs.h"
24239      #include <sys/types.h>
24240      struct s { char c; float i; };
24241
24242 int
24243 main ()
24244 {
24245 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_compile") 2>conftest.er1
24258   ac_status=$?
24259   grep -v '^ *+' conftest.er1 >conftest.err
24260   rm -f conftest.er1
24261   cat conftest.err >&5
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && {
24264          test -z "$ac_c_werror_flag" ||
24265          test ! -s conftest.err
24266        } && test -s conftest.$ac_objext; then
24267   ac_cv_struct_boundary_float=$ac_size
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272
24273 fi
24274
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276    if test x$ac_cv_struct_boundary_float != x ; then break; fi
24277   done
24278
24279 fi
24280
24281  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
24282 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
24283  if test x$ac_cv_struct_boundary_float = x ; then
24284    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
24285 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
24286    { (exit 1); exit 1; }; }
24287  fi
24288                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
24289 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
24290
24291  if test "${ac_cv_struct_boundary_double+set}" = set; then
24292   echo $ECHO_N "(cached) $ECHO_C" >&6
24293 else
24294   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24295    cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h.  */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h.  */
24301 #include "confdefs.h"
24302      #include <sys/types.h>
24303      struct s { char c; double i; };
24304
24305 int
24306 main ()
24307 {
24308 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 rm -f conftest.$ac_objext
24314 if { (ac_try="$ac_compile"
24315 case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_compile") 2>conftest.er1
24321   ac_status=$?
24322   grep -v '^ *+' conftest.er1 >conftest.err
24323   rm -f conftest.er1
24324   cat conftest.err >&5
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); } && {
24327          test -z "$ac_c_werror_flag" ||
24328          test ! -s conftest.err
24329        } && test -s conftest.$ac_objext; then
24330   ac_cv_struct_boundary_double=$ac_size
24331 else
24332   echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24334
24335
24336 fi
24337
24338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339    if test x$ac_cv_struct_boundary_double != x ; then break; fi
24340   done
24341
24342 fi
24343
24344  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
24345 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
24346  if test x$ac_cv_struct_boundary_double = x ; then
24347    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
24348 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
24349    { (exit 1); exit 1; }; }
24350  fi
24351
24352
24353 { echo "$as_me:$LINENO: checking size of void *" >&5
24354 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
24355     if test "${ac_cv_sizeof_void_p+set}" = set; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24359    cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 #include "confdefs.h"
24366    #include <sys/types.h>
24367
24368
24369 int
24370 main ()
24371 {
24372 switch (0) case 0: case (sizeof (void *) == $ac_size):;
24373   ;
24374   return 0;
24375 }
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381   *) ac_try_echo=$ac_try;;
24382 esac
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384   (eval "$ac_compile") 2>conftest.er1
24385   ac_status=$?
24386   grep -v '^ *+' conftest.er1 >conftest.err
24387   rm -f conftest.er1
24388   cat conftest.err >&5
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); } && {
24391          test -z "$ac_c_werror_flag" ||
24392          test ! -s conftest.err
24393        } && test -s conftest.$ac_objext; then
24394   ac_cv_sizeof_void_p=$ac_size
24395 else
24396   echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399
24400 fi
24401
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403    if test x$ac_cv_sizeof_void_p != x ; then break; fi
24404   done
24405
24406 fi
24407
24408
24409 if test x$ac_cv_sizeof_void_p = x ; then
24410   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
24411 echo "$as_me: error: cannot determine a size for void *" >&2;}
24412    { (exit 1); exit 1; }; }
24413 fi
24414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24415 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
24416                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
24417 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
24418
24419  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
24420   echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24422   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24423    cat >conftest.$ac_ext <<_ACEOF
24424 /* confdefs.h.  */
24425 _ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h.  */
24429 #include "confdefs.h"
24430      #include <sys/types.h>
24431      struct s { char c; void * i; };
24432
24433 int
24434 main ()
24435 {
24436 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445   *) ac_try_echo=$ac_try;;
24446 esac
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448   (eval "$ac_compile") 2>conftest.er1
24449   ac_status=$?
24450   grep -v '^ *+' conftest.er1 >conftest.err
24451   rm -f conftest.er1
24452   cat conftest.err >&5
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } && {
24455          test -z "$ac_c_werror_flag" ||
24456          test ! -s conftest.err
24457        } && test -s conftest.$ac_objext; then
24458   ac_cv_struct_boundary_void_p=$ac_size
24459 else
24460   echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24462
24463
24464 fi
24465
24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
24468   done
24469
24470 fi
24471
24472  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
24473 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
24474  if test x$ac_cv_struct_boundary_void_p = x ; then
24475    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
24476 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
24477    { (exit 1); exit 1; }; }
24478  fi
24479
24480 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
24481 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
24482     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
24483   echo $ECHO_N "(cached) $ECHO_C" >&6
24484 else
24485   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24486    cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h.  */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h.  */
24492 #include "confdefs.h"
24493    #include <sys/types.h>
24494
24495
24496 int
24497 main ()
24498 {
24499 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511   (eval "$ac_compile") 2>conftest.er1
24512   ac_status=$?
24513   grep -v '^ *+' conftest.er1 >conftest.err
24514   rm -f conftest.er1
24515   cat conftest.err >&5
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); } && {
24518          test -z "$ac_c_werror_flag" ||
24519          test ! -s conftest.err
24520        } && test -s conftest.$ac_objext; then
24521   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
24522 else
24523   echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526
24527 fi
24528
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
24531   done
24532
24533 fi
24534
24535
24536 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
24537   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
24538 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
24539    { (exit 1); exit 1; }; }
24540 fi
24541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
24542 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
24543
24544
24545
24546 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
24547 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
24548 if test x$endian = x1 ; then
24549   trace_endian=B
24550 else
24551   trace_endian=l
24552 fi
24553 gras_arch=unknown
24554 trace="$trace_endian"
24555
24556 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
24557
24558 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
24559 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
24560 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
24561 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
24562
24563 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
24564 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
24565
24566 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
24567
24568 # sizeof float/double are not tested since IEEE 754 is assumed.
24569 # Check README.IEEE for rational.
24570
24571 # The numbers after the _ in the arch name are the maximal packing boundary.
24572 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
24573 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
24574 case $trace in
24575   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;;
24576   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;;
24577   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;;
24578   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;;
24579
24580   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;;
24581
24582   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;;
24583   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;;
24584   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;;
24585   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;;
24586
24587   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;;
24588   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;;
24589 esac
24590 if test x$gras_arch = xunknown ; then
24591   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24592 echo "${ECHO_T}damnit ($trace)" >&6; }
24593   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24594 Please report this architecture trace ($trace) and what it corresponds to." >&5
24595 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24596 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24597    { (exit 1); exit 1; }; }
24598 fi
24599 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24600
24601 cat >>confdefs.h <<_ACEOF
24602 #define GRAS_THISARCH $gras_arch
24603 _ACEOF
24604
24605 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24606 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24607
24608  if test "$gras_size" = 32; then
24609   GRAS_ARCH_32_BITS_TRUE=
24610   GRAS_ARCH_32_BITS_FALSE='#'
24611 else
24612   GRAS_ARCH_32_BITS_TRUE='#'
24613   GRAS_ARCH_32_BITS_FALSE=
24614 fi
24615
24616
24617 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24618 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24619 ac_cv_sizeof_max=0
24620 for s in $ac_cv_sizeof_char \
24621          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24622          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24623          4 8; do
24624
24625   if test $ac_cv_sizeof_max -lt $s ; then
24626     ac_cv_sizeof_max=$s
24627   fi
24628 done
24629 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24630 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24631
24632 cat >>confdefs.h <<_ACEOF
24633 #define SIZEOF_MAX $ac_cv_sizeof_max
24634 _ACEOF
24635
24636
24637
24638 # Check architecture signature end
24639   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24640 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24641    cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647 #include "confdefs.h"
24648         #include <sys/types.h>
24649         #include <stddef.h> /* offsetof() */
24650         struct s {char c; double d;};
24651
24652 int
24653 main ()
24654 {
24655 switch (0)
24656         case 0:
24657         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24658
24659   ;
24660   return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_compile") 2>conftest.er1
24671   ac_status=$?
24672   grep -v '^ *+' conftest.er1 >conftest.err
24673   rm -f conftest.er1
24674   cat conftest.err >&5
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); } && {
24677          test -z "$ac_c_werror_flag" ||
24678          test ! -s conftest.err
24679        } && test -s conftest.$ac_objext; then
24680   gras_struct_packed=yes
24681 else
24682   echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24684
24685         gras_struct_packed=no
24686 fi
24687
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689
24690    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24691 echo "${ECHO_T}$gras_struct_packed" >&6; }
24692    if test x$gras_struct_packed = "xyes" ; then
24693      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24694 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24695    { (exit 1); exit 1; }; }
24696    fi
24697
24698    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24699 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24700    cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 #include "confdefs.h"
24707         #include <sys/types.h>
24708         #include <stddef.h> /* offsetof() */
24709         struct s {double d; int i; char c;};
24710
24711 int
24712 main ()
24713 {
24714 switch (0)
24715         case 0:
24716         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24717
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_compile") 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } && {
24736          test -z "$ac_c_werror_flag" ||
24737          test ! -s conftest.err
24738        } && test -s conftest.$ac_objext; then
24739   gras_struct_compact=yes
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744         gras_struct_compact=no
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748
24749    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24750 echo "${ECHO_T}$gras_struct_compact" >&6; }
24751
24752    if test x$gras_struct_compact != xyes ; then
24753      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24754 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24755    { (exit 1); exit 1; }; }
24756    fi
24757
24758 cat >>confdefs.h <<_ACEOF
24759 #define GRAS_STRUCT_COMPACT 1
24760 _ACEOF
24761
24762    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24763 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24764
24765    cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771 #include "confdefs.h"
24772       #include <sys/types.h>
24773         #include <stddef.h> /* offsetof() */
24774         struct s { double d; int i; char c[6]; };
24775
24776 int
24777 main ()
24778 {
24779 switch (0)
24780       case 0:
24781       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24782
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
24789 case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_compile") 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && {
24801          test -z "$ac_c_werror_flag" ||
24802          test ! -s conftest.err
24803        } && test -s conftest.$ac_objext; then
24804   gras_array_straddle_struct=yes
24805 else
24806   echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809         gras_array_straddle_struct=no
24810 fi
24811
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813
24814    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24815 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24816
24817    if test x$gras_array_straddle_struct = xyes ; then
24818
24819 cat >>confdefs.h <<_ACEOF
24820 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24821 _ACEOF
24822
24823    else
24824      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24825 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24826    { (exit 1); exit 1; }; }
24827    fi
24828
24829
24830
24831
24832
24833   { echo "$as_me:$LINENO: result: " >&5
24834 echo "${ECHO_T}" >&6; }
24835   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24836 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24837
24838
24839
24840
24841 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24842 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24843 if test "${ac_cv_check_mcsc+set}" = set; then
24844   echo $ECHO_N "(cached) $ECHO_C" >&6
24845 else
24846
24847 if test "$cross_compiling" = yes; then
24848   ac_cv_check_mcsc=no
24849
24850 else
24851   cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857
24858
24859 #include <stdio.h>
24860 #include <stdlib.h>
24861 #include <ucontext.h>
24862
24863 ucontext_t uc_child;
24864 ucontext_t uc_main;
24865
24866 void child(void)
24867 {
24868     if (swapcontext(&uc_child, &uc_main) != 0)
24869         exit(2);
24870 }
24871
24872 int main(int argc, char *argv[])
24873 {
24874     FILE *fp;
24875     void *stack;
24876
24877     /* the default is that it fails */
24878     if ((fp = fopen("conftestval", "w")) == NULL)
24879         exit(3);
24880     fprintf(fp, "no\n");
24881     fclose(fp);
24882
24883     /* configure a child user-space context */
24884     if ((stack = malloc(64*1024)) == NULL)
24885         exit(4);
24886     if (getcontext(&uc_child) != 0)
24887         exit(5);
24888     uc_child.uc_link = NULL;
24889     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24890     uc_child.uc_stack.ss_size = 32*1024;
24891     uc_child.uc_stack.ss_flags = 0;
24892     makecontext(&uc_child, child, 0);
24893
24894     /* switch into the user context */
24895     if (swapcontext(&uc_main, &uc_child) != 0)
24896         exit(6);
24897
24898     /* Fine, child came home */
24899     if ((fp = fopen("conftestval", "w")) == NULL)
24900         exit(7);
24901     fprintf(fp, "yes\n");
24902     fclose(fp);
24903
24904     /* die successfully */
24905     exit(0);
24906 }
24907
24908 _ACEOF
24909 rm -f conftest$ac_exeext
24910 if { (ac_try="$ac_link"
24911 case "(($ac_try" in
24912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913   *) ac_try_echo=$ac_try;;
24914 esac
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916   (eval "$ac_link") 2>&5
24917   ac_status=$?
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24920   { (case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_try") 2>&5
24926   ac_status=$?
24927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928   (exit $ac_status); }; }; then
24929   ac_cv_check_mcsc=`cat conftestval`
24930 else
24931   echo "$as_me: program exited with status $ac_status" >&5
24932 echo "$as_me: failed program was:" >&5
24933 sed 's/^/| /' conftest.$ac_ext >&5
24934
24935 ( exit $ac_status )
24936 ac_cv_check_mcsc=no
24937 fi
24938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24939 fi
24940
24941
24942 fi
24943 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24944 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24945 if test ".$ac_cv_check_mcsc" = .yes; then
24946     mcsc=yes
24947 else
24948     mcsc=no
24949 fi
24950
24951
24952
24953 for ac_header in pthread.h
24954 do
24955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960   echo $ECHO_N "(cached) $ECHO_C" >&6
24961 fi
24962 ac_res=`eval echo '${'$as_ac_Header'}'`
24963                { echo "$as_me:$LINENO: result: $ac_res" >&5
24964 echo "${ECHO_T}$ac_res" >&6; }
24965 else
24966   # Is the header compilable?
24967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24969 cat >conftest.$ac_ext <<_ACEOF
24970 /* confdefs.h.  */
24971 _ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h.  */
24975 $ac_includes_default
24976 #include <$ac_header>
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982   *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985   (eval "$ac_compile") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest.$ac_objext; then
24995   ac_header_compiler=yes
24996 else
24997   echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000         ac_header_compiler=no
25001 fi
25002
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25005 echo "${ECHO_T}$ac_header_compiler" >&6; }
25006
25007 # Is the header present?
25008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h.  */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h.  */
25016 #include <$ac_header>
25017 _ACEOF
25018 if { (ac_try="$ac_cpp conftest.$ac_ext"
25019 case "(($ac_try" in
25020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021   *) ac_try_echo=$ac_try;;
25022 esac
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25025   ac_status=$?
25026   grep -v '^ *+' conftest.er1 >conftest.err
25027   rm -f conftest.er1
25028   cat conftest.err >&5
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); } >/dev/null && {
25031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25032          test ! -s conftest.err
25033        }; then
25034   ac_header_preproc=yes
25035 else
25036   echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25038
25039   ac_header_preproc=no
25040 fi
25041
25042 rm -f conftest.err conftest.$ac_ext
25043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25044 echo "${ECHO_T}$ac_header_preproc" >&6; }
25045
25046 # So?  What about this header?
25047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25048   yes:no: )
25049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25053     ac_header_preproc=yes
25054     ;;
25055   no:yes:* )
25056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25068     ( cat <<\_ASBOX
25069 ## -------------------------------------------------- ##
25070 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25071 ## -------------------------------------------------- ##
25072 _ASBOX
25073      ) | sed "s/^/$as_me: WARNING:     /" >&2
25074     ;;
25075 esac
25076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25079   echo $ECHO_N "(cached) $ECHO_C" >&6
25080 else
25081   eval "$as_ac_Header=\$ac_header_preproc"
25082 fi
25083 ac_res=`eval echo '${'$as_ac_Header'}'`
25084                { echo "$as_me:$LINENO: result: $ac_res" >&5
25085 echo "${ECHO_T}$ac_res" >&6; }
25086
25087 fi
25088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25089   cat >>confdefs.h <<_ACEOF
25090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25091 _ACEOF
25092
25093 fi
25094
25095 done
25096
25097 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
25098 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
25099 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
25100   echo $ECHO_N "(cached) $ECHO_C" >&6
25101 else
25102   ac_check_lib_save_LIBS=$LIBS
25103 LIBS="-lpthread  $LIBS"
25104 cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h.  */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h.  */
25110
25111 /* Override any GCC internal prototype to avoid an error.
25112    Use char because int might match the return type of a GCC
25113    builtin and then its argument prototype would still apply.  */
25114 #ifdef __cplusplus
25115 extern "C"
25116 #endif
25117 char pthread_create ();
25118 int
25119 main ()
25120 {
25121 return pthread_create ();
25122   ;
25123   return 0;
25124 }
25125 _ACEOF
25126 rm -f conftest.$ac_objext conftest$ac_exeext
25127 if { (ac_try="$ac_link"
25128 case "(($ac_try" in
25129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25130   *) ac_try_echo=$ac_try;;
25131 esac
25132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25133   (eval "$ac_link") 2>conftest.er1
25134   ac_status=$?
25135   grep -v '^ *+' conftest.er1 >conftest.err
25136   rm -f conftest.er1
25137   cat conftest.err >&5
25138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139   (exit $ac_status); } && {
25140          test -z "$ac_c_werror_flag" ||
25141          test ! -s conftest.err
25142        } && test -s conftest$ac_exeext &&
25143        $as_test_x conftest$ac_exeext; then
25144   ac_cv_lib_pthread_pthread_create=yes
25145 else
25146   echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149         ac_cv_lib_pthread_pthread_create=no
25150 fi
25151
25152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25153       conftest$ac_exeext conftest.$ac_ext
25154 LIBS=$ac_check_lib_save_LIBS
25155 fi
25156 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
25157 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
25158 if test $ac_cv_lib_pthread_pthread_create = yes; then
25159   pthread=yes
25160 else
25161   pthread=no
25162 fi
25163
25164
25165 if test x$pthread = xyes ; then
25166   { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
25167 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
25168 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
25169   echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171   ac_check_lib_save_LIBS=$LIBS
25172 LIBS="-lpthread  $LIBS"
25173 cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179
25180 /* Override any GCC internal prototype to avoid an error.
25181    Use char because int might match the return type of a GCC
25182    builtin and then its argument prototype would still apply.  */
25183 #ifdef __cplusplus
25184 extern "C"
25185 #endif
25186 char sem_init ();
25187 int
25188 main ()
25189 {
25190 return sem_init ();
25191   ;
25192   return 0;
25193 }
25194 _ACEOF
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (ac_try="$ac_link"
25197 case "(($ac_try" in
25198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199   *) ac_try_echo=$ac_try;;
25200 esac
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202   (eval "$ac_link") 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } && {
25209          test -z "$ac_c_werror_flag" ||
25210          test ! -s conftest.err
25211        } && test -s conftest$ac_exeext &&
25212        $as_test_x conftest$ac_exeext; then
25213   ac_cv_lib_pthread_sem_init=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218         ac_cv_lib_pthread_sem_init=no
25219 fi
25220
25221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25222       conftest$ac_exeext conftest.$ac_ext
25223 LIBS=$ac_check_lib_save_LIBS
25224 fi
25225 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
25226 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
25227 if test $ac_cv_lib_pthread_sem_init = yes; then
25228   HAVE_SEM_INIT=yes
25229 else
25230   HAVE_SEM_INIT=no
25231 fi
25232
25233   if test ${HAVE_SEM_INIT} = yes ; then
25234      { echo "$as_me:$LINENO: checking if sem_init is compilable" >&5
25235 echo $ECHO_N "checking if sem_init is compilable... $ECHO_C" >&6; }
25236      cat >conftest.$ac_ext <<_ACEOF
25237 /* confdefs.h.  */
25238 _ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h.  */
25242 #include <semaphore.h>
25243 int
25244 main ()
25245 {
25246 sem_t s; sem_init(&s);
25247   ;
25248   return 0;
25249 }
25250 _ACEOF
25251 rm -f conftest.$ac_objext
25252 if { (ac_try="$ac_compile"
25253 case "(($ac_try" in
25254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255   *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258   (eval "$ac_compile") 2>conftest.er1
25259   ac_status=$?
25260   grep -v '^ *+' conftest.er1 >conftest.err
25261   rm -f conftest.er1
25262   cat conftest.err >&5
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); } && {
25265          test -z "$ac_c_werror_flag" ||
25266          test ! -s conftest.err
25267        } && test -s conftest.$ac_objext; then
25268   HAVE_SEM_INIT=yes
25269 else
25270   echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273         HAVE_SEM_INIT=no
25274 fi
25275
25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277      if test ${HAVE_SEM_INIT} = yes ; then
25278
25279 cat >>confdefs.h <<\_ACEOF
25280 #define HAVE_SEM_INIT 1
25281 _ACEOF
25282
25283         { echo "$as_me:$LINENO: result: yes" >&5
25284 echo "${ECHO_T}yes" >&6; }
25285      else
25286         { echo "$as_me:$LINENO: result: no" >&5
25287 echo "${ECHO_T}no" >&6; }
25288      fi
25289   fi
25290   { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
25291 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
25292 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
25293   echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295   ac_check_lib_save_LIBS=$LIBS
25296 LIBS="-lpthread  $LIBS"
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303
25304 /* Override any GCC internal prototype to avoid an error.
25305    Use char because int might match the return type of a GCC
25306    builtin and then its argument prototype would still apply.  */
25307 #ifdef __cplusplus
25308 extern "C"
25309 #endif
25310 char sem_timedwait ();
25311 int
25312 main ()
25313 {
25314 return sem_timedwait ();
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 rm -f conftest.$ac_objext conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323   *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326   (eval "$ac_link") 2>conftest.er1
25327   ac_status=$?
25328   grep -v '^ *+' conftest.er1 >conftest.err
25329   rm -f conftest.er1
25330   cat conftest.err >&5
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } && {
25333          test -z "$ac_c_werror_flag" ||
25334          test ! -s conftest.err
25335        } && test -s conftest$ac_exeext &&
25336        $as_test_x conftest$ac_exeext; then
25337   ac_cv_lib_pthread_sem_timedwait=yes
25338 else
25339   echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25341
25342         ac_cv_lib_pthread_sem_timedwait=no
25343 fi
25344
25345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25346       conftest$ac_exeext conftest.$ac_ext
25347 LIBS=$ac_check_lib_save_LIBS
25348 fi
25349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
25350 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
25351 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
25352   HAVE_SEM_TIMEDWAIT=yes
25353 else
25354   HAVE_SEM_TIMEDWAIT=no
25355 fi
25356
25357   if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25358      { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
25359 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
25360      cat >conftest.$ac_ext <<_ACEOF
25361 /* confdefs.h.  */
25362 _ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h.  */
25366 #include <semaphore.h>
25367 int
25368 main ()
25369 {
25370 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
25371   ;
25372   return 0;
25373 }
25374 _ACEOF
25375 rm -f conftest.$ac_objext
25376 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25383   ac_status=$?
25384   grep -v '^ *+' conftest.er1 >conftest.err
25385   rm -f conftest.er1
25386   cat conftest.err >&5
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); } && {
25389          test -z "$ac_c_werror_flag" ||
25390          test ! -s conftest.err
25391        } && test -s conftest.$ac_objext; then
25392   HAVE_SEM_TIMEDWAIT=yes
25393 else
25394   echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25396
25397         HAVE_SEM_TIMEDWAIT=no
25398 fi
25399
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401      if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25402
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_SEM_TIMEDWAIT 1
25405 _ACEOF
25406
25407         { echo "$as_me:$LINENO: result: yes" >&5
25408 echo "${ECHO_T}yes" >&6; }
25409      else
25410         { echo "$as_me:$LINENO: result: no" >&5
25411 echo "${ECHO_T}no" >&6; }
25412      fi
25413   fi
25414
25415   { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
25416 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6; }
25417 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
25418   echo $ECHO_N "(cached) $ECHO_C" >&6
25419 else
25420   ac_check_lib_save_LIBS=$LIBS
25421 LIBS="-lpthread  $LIBS"
25422 cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h.  */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h.  */
25428
25429 /* Override any GCC internal prototype to avoid an error.
25430    Use char because int might match the return type of a GCC
25431    builtin and then its argument prototype would still apply.  */
25432 #ifdef __cplusplus
25433 extern "C"
25434 #endif
25435 char pthread_mutex_timedlock ();
25436 int
25437 main ()
25438 {
25439 return pthread_mutex_timedlock ();
25440   ;
25441   return 0;
25442 }
25443 _ACEOF
25444 rm -f conftest.$ac_objext conftest$ac_exeext
25445 if { (ac_try="$ac_link"
25446 case "(($ac_try" in
25447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448   *) ac_try_echo=$ac_try;;
25449 esac
25450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25451   (eval "$ac_link") 2>conftest.er1
25452   ac_status=$?
25453   grep -v '^ *+' conftest.er1 >conftest.err
25454   rm -f conftest.er1
25455   cat conftest.err >&5
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); } && {
25458          test -z "$ac_c_werror_flag" ||
25459          test ! -s conftest.err
25460        } && test -s conftest$ac_exeext &&
25461        $as_test_x conftest$ac_exeext; then
25462   ac_cv_lib_pthread_pthread_mutex_timedlock=yes
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467         ac_cv_lib_pthread_pthread_mutex_timedlock=no
25468 fi
25469
25470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25471       conftest$ac_exeext conftest.$ac_ext
25472 LIBS=$ac_check_lib_save_LIBS
25473 fi
25474 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
25475 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6; }
25476 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
25477   HAVE_MUTEX_TIMEDLOCK=yes
25478 else
25479   HAVE_MUTEX_TIMEDLOCK=no
25480 fi
25481
25482   if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25483      { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is compilable" >&5
25484 echo $ECHO_N "checking if pthread_mutex_timedlock is compilable... $ECHO_C" >&6; }
25485      cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h.  */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h.  */
25491 #include <pthread.h>
25492 int
25493 main ()
25494 {
25495 pthread_mutex_t s; const struct timespec t; sem_timedlock(&s, &t);
25496   ;
25497   return 0;
25498 }
25499 _ACEOF
25500 rm -f conftest.$ac_objext
25501 if { (ac_try="$ac_compile"
25502 case "(($ac_try" in
25503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504   *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507   (eval "$ac_compile") 2>conftest.er1
25508   ac_status=$?
25509   grep -v '^ *+' conftest.er1 >conftest.err
25510   rm -f conftest.er1
25511   cat conftest.err >&5
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); } && {
25514          test -z "$ac_c_werror_flag" ||
25515          test ! -s conftest.err
25516        } && test -s conftest.$ac_objext; then
25517   HAVE_MUTEX_TIMEDLOCK=yes
25518 else
25519   echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25521
25522         HAVE_MUTEX_TIMEDLOCK=no
25523 fi
25524
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526      if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25527
25528 cat >>confdefs.h <<\_ACEOF
25529 #define HAVE_MUTEX_TIMEDLOCK 1
25530 _ACEOF
25531
25532         { echo "$as_me:$LINENO: result: yes" >&5
25533 echo "${ECHO_T}yes" >&6; }
25534      else
25535         { echo "$as_me:$LINENO: result: no" >&5
25536 echo "${ECHO_T}no" >&6; }
25537      fi
25538   fi
25539 fi
25540
25541
25542 if test ".$mcsc" = .yes; then
25543    # ucontext found
25544    mcsc=yes
25545 elif test ".$pthread" = .yes; then
25546    # ucontext not found, but pthread found
25547    pthread=yes
25548 else
25549     ac_header=windows.h
25550     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25551     if test `eval echo '${'$as_ac_Header'}'` = yes; then
25552       windows_context=yes
25553     else
25554       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
25555 echo "$as_me: error: no appropriate backend found" >&2;}
25556    { (exit 1); exit 1; }; }
25557     fi
25558 fi
25559  if test x$windows_context = xyes; then
25560   IS_WINDOWS_TRUE=
25561   IS_WINDOWS_FALSE='#'
25562 else
25563   IS_WINDOWS_TRUE='#'
25564   IS_WINDOWS_FALSE=
25565 fi
25566
25567
25568
25569
25570 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
25571 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
25572
25573
25574 # Check whether --with-pthread was given.
25575 if test "${with_pthread+set}" = set; then
25576   withval=$with_pthread; with_context=pthread
25577 fi
25578
25579
25580 # Check whether --with-pthread was given.
25581 if test "${with_pthread+set}" = set; then
25582   withval=$with_pthread; with_context=pthread
25583 fi
25584
25585
25586
25587 # Check whether --with-context was given.
25588 if test "${with_context+set}" = set; then
25589   withval=$with_context;
25590 else
25591   with_context=auto
25592 fi
25593
25594
25595 if test "x$with_context$mcsc" = "xucontextno" ; then
25596   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
25597 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
25598    { (exit 77); exit 77; }; }
25599 fi
25600
25601 case $with_context in
25602  ucontext) ;;
25603  pthread) ;;
25604  pthreads) ;;
25605  windows) ;;
25606  auto) with_context=ucontext;;
25607  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
25608 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
25609    { (exit 1); exit 1; }; } ;;
25610 esac
25611
25612 if test "x$with_context" = "xucontext" ; then
25613   if test ".$mcsc" = .yes; then
25614     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
25615 echo "${ECHO_T}found working ucontext. Great!" >&6; }
25616
25617 cat >>confdefs.h <<\_ACEOF
25618 #define CONTEXT_UCONTEXT 1
25619 _ACEOF
25620
25621   else
25622     if test ".$windows_context" = .yes ; then
25623       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
25624 echo "${ECHO_T}use windows context portability layer." >&6; }
25625       with_context=windows
25626     else
25627       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
25628 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
25629       with_context=pthread
25630     fi
25631   fi
25632 fi
25633
25634 if test "x$with_context" = "xpthread"; then
25635   if test x$pthread != xyes ; then # reuse previous checks
25636     { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25637 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25638    { (exit 1); exit 1; }; }
25639   fi
25640
25641 cat >>confdefs.h <<\_ACEOF
25642 #define CONTEXT_THREADS 1
25643 _ACEOF
25644
25645   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25646 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25647 fi
25648  if test "x$with_context" != xucontext; then
25649   CONTEXT_THREADS_TRUE=
25650   CONTEXT_THREADS_FALSE='#'
25651 else
25652   CONTEXT_THREADS_TRUE='#'
25653   CONTEXT_THREADS_FALSE=
25654 fi
25655
25656
25657
25658 if test "x$with_context" = "xucontext" ; then
25659   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25660 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25661 if test "${ac_cv_check_stackgrowth+set}" = set; then
25662   echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664
25665 cross_compiling=no
25666 if test "$cross_compiling" = yes; then
25667   ac_cv_check_stackgrowth=down
25668
25669 else
25670   cat >conftest.$ac_ext <<_ACEOF
25671 /* confdefs.h.  */
25672 _ACEOF
25673 cat confdefs.h >>conftest.$ac_ext
25674 cat >>conftest.$ac_ext <<_ACEOF
25675 /* end confdefs.h.  */
25676
25677 #include <stdio.h>
25678 #include <stdlib.h>
25679 static int iterate = 10;
25680 static int growsdown(int *x)
25681 {
25682     auto int y;
25683     y = (x > &y);
25684     if (--iterate > 0)
25685         y = growsdown(&y);
25686     if (y != (x > &y))
25687         exit(1);
25688     return y;
25689 }
25690 int main(int argc, char *argv[])
25691 {
25692     FILE *f;
25693     auto int x;
25694     if ((f = fopen("conftestval", "w")) == NULL)
25695         exit(1);
25696     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25697     fclose(f);
25698     exit(0);
25699 }
25700
25701
25702 _ACEOF
25703 rm -f conftest$ac_exeext
25704 if { (ac_try="$ac_link"
25705 case "(($ac_try" in
25706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707   *) ac_try_echo=$ac_try;;
25708 esac
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710   (eval "$ac_link") 2>&5
25711   ac_status=$?
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25714   { (case "(($ac_try" in
25715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716   *) ac_try_echo=$ac_try;;
25717 esac
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719   (eval "$ac_try") 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; }; then
25723   ac_cv_check_stackgrowth=`cat conftestval`
25724 else
25725   echo "$as_me: program exited with status $ac_status" >&5
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 ( exit $ac_status )
25730 ac_cv_check_stackgrowth=down
25731 fi
25732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25733 fi
25734
25735
25736 fi
25737 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25738 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25739 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25740     val="-1"
25741 else
25742     val="+1"
25743 fi
25744
25745 cat >>confdefs.h <<_ACEOF
25746 #define PTH_STACKGROWTH $val
25747 _ACEOF
25748
25749
25750   if test ".$ac_cv_check_stackgrowth" = ".down"; then
25751       PTH_STACK_GROWTH="down"
25752   else
25753       PTH_STACK_GROWTH="up"
25754   fi
25755
25756
25757
25758
25759
25760
25761 for ac_func in makecontext
25762 do
25763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25767   echo $ECHO_N "(cached) $ECHO_C" >&6
25768 else
25769   cat >conftest.$ac_ext <<_ACEOF
25770 /* confdefs.h.  */
25771 _ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h.  */
25775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25777 #define $ac_func innocuous_$ac_func
25778
25779 /* System header to define __stub macros and hopefully few prototypes,
25780     which can conflict with char $ac_func (); below.
25781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25782     <limits.h> exists even on freestanding compilers.  */
25783
25784 #ifdef __STDC__
25785 # include <limits.h>
25786 #else
25787 # include <assert.h>
25788 #endif
25789
25790 #undef $ac_func
25791
25792 /* Override any GCC internal prototype to avoid an error.
25793    Use char because int might match the return type of a GCC
25794    builtin and then its argument prototype would still apply.  */
25795 #ifdef __cplusplus
25796 extern "C"
25797 #endif
25798 char $ac_func ();
25799 /* The GNU C library defines this for functions which it implements
25800     to always fail with ENOSYS.  Some functions are actually named
25801     something starting with __ and the normal name is an alias.  */
25802 #if defined __stub_$ac_func || defined __stub___$ac_func
25803 choke me
25804 #endif
25805
25806 int
25807 main ()
25808 {
25809 return $ac_func ();
25810   ;
25811   return 0;
25812 }
25813 _ACEOF
25814 rm -f conftest.$ac_objext conftest$ac_exeext
25815 if { (ac_try="$ac_link"
25816 case "(($ac_try" in
25817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25818   *) ac_try_echo=$ac_try;;
25819 esac
25820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25821   (eval "$ac_link") 2>conftest.er1
25822   ac_status=$?
25823   grep -v '^ *+' conftest.er1 >conftest.err
25824   rm -f conftest.er1
25825   cat conftest.err >&5
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); } && {
25828          test -z "$ac_c_werror_flag" ||
25829          test ! -s conftest.err
25830        } && test -s conftest$ac_exeext &&
25831        $as_test_x conftest$ac_exeext; then
25832   eval "$as_ac_var=yes"
25833 else
25834   echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25836
25837         eval "$as_ac_var=no"
25838 fi
25839
25840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25841       conftest$ac_exeext conftest.$ac_ext
25842 fi
25843 ac_res=`eval echo '${'$as_ac_var'}'`
25844                { echo "$as_me:$LINENO: result: $ac_res" >&5
25845 echo "${ECHO_T}$ac_res" >&6; }
25846 if test `eval echo '${'$as_ac_var'}'` = yes; then
25847   cat >>confdefs.h <<_ACEOF
25848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25849 _ACEOF
25850
25851 fi
25852 done
25853
25854
25855 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25856 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25857 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25858   echo $ECHO_N "(cached) $ECHO_C" >&6
25859 else
25860
25861 if test ".$ac_cv_func_makecontext" = .no; then
25862         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25863 else
25864         OCFLAGS="$CFLAGS"
25865     CFLAGS="$CFLAGS -DTEST_makecontext"
25866     cross_compiling=no
25867         if test "$cross_compiling" = yes; then
25868
25869 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25870
25871 else
25872   cat >conftest.$ac_ext <<_ACEOF
25873 /* confdefs.h.  */
25874 _ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h.  */
25878
25879 #include <stdio.h>
25880 #include <stdlib.h>
25881 #include <string.h>
25882 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25883 #include <sys/types.h>
25884 #include <signal.h>
25885 #include <unistd.h>
25886 #endif
25887 #if defined(TEST_makecontext)
25888 #include <ucontext.h>
25889 #endif
25890 union alltypes {
25891     long   l;
25892     double d;
25893     void  *vp;
25894     void (*fp)(void);
25895     char  *cp;
25896 };
25897 static volatile char *handler_addr = (char *)0xDEAD;
25898 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25899 static volatile int handler_done = 0;
25900 void handler(int sig)
25901 {
25902     char garbage[1024];
25903     int i;
25904     auto int dummy;
25905     for (i = 0; i < 1024; i++)
25906         garbage[i] = 'X';
25907     handler_addr = (char *)&dummy;
25908     handler_done = 1;
25909     return;
25910 }
25911 #endif
25912 #if defined(TEST_makecontext)
25913 static ucontext_t uc_handler;
25914 static ucontext_t uc_main;
25915 void handler(void)
25916 {
25917     char garbage[1024];
25918     int i;
25919     auto int dummy;
25920     for (i = 0; i < 1024; i++)
25921         garbage[i] = 'X';
25922     handler_addr = (char *)&dummy;
25923     swapcontext(&uc_handler, &uc_main);
25924     return;
25925 }
25926 #endif
25927 int main(int argc, char *argv[])
25928 {
25929     FILE *f;
25930     char *skaddr;
25931     char *skbuf;
25932     int sksize;
25933     char result[1024];
25934     int i;
25935     sksize = 32768;
25936     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25937     if (skbuf == NULL)
25938         exit(1);
25939     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25940         skbuf[i] = 'A';
25941     skaddr = skbuf+sizeof(union alltypes);
25942 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25943     {
25944         struct sigaction sa;
25945 #if defined(TEST_sigstack)
25946         struct sigstack ss;
25947 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25948         stack_t ss;
25949 #else
25950         struct sigaltstack ss;
25951 #endif
25952 #if defined(TEST_sigstack)
25953         ss.ss_sp      = (void *)(skaddr + sksize);
25954         ss.ss_onstack = 0;
25955         if (sigstack(&ss, NULL) < 0)
25956             exit(1);
25957 #elif defined(TEST_sigaltstack)
25958         ss.ss_sp    = (void *)(skaddr + sksize);
25959         ss.ss_size  = sksize;
25960         ss.ss_flags = 0;
25961         if (sigaltstack(&ss, NULL) < 0)
25962             exit(1);
25963 #endif
25964         memset((void *)&sa, 0, sizeof(struct sigaction));
25965         sa.sa_handler = handler;
25966         sa.sa_flags = SA_ONSTACK;
25967         sigemptyset(&sa.sa_mask);
25968         sigaction(SIGUSR1, &sa, NULL);
25969         kill(getpid(), SIGUSR1);
25970         while (!handler_done)
25971             /*nop*/;
25972     }
25973 #endif
25974 #if defined(TEST_makecontext)
25975     {
25976         if (getcontext(&uc_handler) != 0)
25977             exit(1);
25978         uc_handler.uc_link = NULL;
25979         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25980         uc_handler.uc_stack.ss_size  = sksize;
25981         uc_handler.uc_stack.ss_flags = 0;
25982         makecontext(&uc_handler, handler, 0);
25983         swapcontext(&uc_main, &uc_handler);
25984     }
25985 #endif
25986     if (handler_addr == (char *)0xDEAD)
25987         exit(1);
25988     if (handler_addr < skaddr+sksize) {
25989         /* stack was placed into lower area */
25990         if (*(skaddr+sksize) != 'A')
25991              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25992                      sizeof(union alltypes), sizeof(union alltypes));
25993         else
25994              strcpy(result, "(skaddr)+(sksize),(sksize)");
25995     }
25996     else {
25997         /* stack was placed into higher area */
25998         if (*(skaddr+sksize*2) != 'A')
25999             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
26000         else
26001             strcpy(result, "(skaddr),(sksize)");
26002     }
26003     if ((f = fopen("conftestval", "w")) == NULL)
26004         exit(1);
26005     fprintf(f, "%s\n", result);
26006     fclose(f);
26007     exit(0);
26008 }
26009
26010 _ACEOF
26011 rm -f conftest$ac_exeext
26012 if { (ac_try="$ac_link"
26013 case "(($ac_try" in
26014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015   *) ac_try_echo=$ac_try;;
26016 esac
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018   (eval "$ac_link") 2>&5
26019   ac_status=$?
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26022   { (case "(($ac_try" in
26023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024   *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027   (eval "$ac_try") 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; }; then
26031
26032 ac_cv_stacksetup_makecontext=`cat conftestval`
26033 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
26034
26035 else
26036   echo "$as_me: program exited with status $ac_status" >&5
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040 ( exit $ac_status )
26041
26042 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
26043
26044 fi
26045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26046 fi
26047
26048
26049 CFLAGS="$OCFLAGS"
26050
26051 fi
26052 fi
26053 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
26054 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
26055 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
26056 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
26057 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
26058 { echo "$as_me:$LINENO: result: $type" >&5
26059 echo "${ECHO_T}$type" >&6; }
26060 if test ".$verbose" = .yes; then
26061     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
26062 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
26063 fi
26064
26065 if test ".$verbose" = .yes; then
26066     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
26067 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
26068 fi
26069
26070
26071 fi
26072
26073 #########################################
26074 ## Check for libraries extra-dependencies
26075 ##
26076
26077
26078   { echo "$as_me:$LINENO: result: " >&5
26079 echo "${ECHO_T}" >&6; }
26080   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
26081 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
26082
26083
26084 SIMGRID_DEP=""
26085 SMPI_DEP=""
26086 GRAS_DEP=""
26087
26088 if test xpthread=xyes ; then
26089   # if the pthreads are usable
26090   if test "x$with_context" = "xpthread" ; then
26091     # if we use them to implement the xbt_context
26092     SIMGRID_DEP="-lpthread"
26093   fi
26094   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
26095   if test "x$with_context" != "xwindows" ; then
26096     GRAS_DEP="-lpthread"
26097   fi
26098 fi
26099
26100 #########################################
26101 ## Build optional modules (gtnets)
26102 ##
26103 gtnets=no
26104
26105 # Check whether --with-gtnets was given.
26106 if test "${with_gtnets+set}" = set; then
26107   withval=$with_gtnets; gtnets_path="$withval"
26108 else
26109   gtnets_path="no"
26110 fi
26111
26112 if test "x$gtnets_path" = "xno" ; then
26113   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
26114 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
26115 else
26116   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
26117 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
26118   { echo "$as_me:$LINENO: checking for gtnets" >&5
26119 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
26120   ac_ext=cpp
26121 ac_cpp='$CXXCPP $CPPFLAGS'
26122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26125
26126   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
26127   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
26128   LDFLAGS_SAV=$LDFLAGS
26129   CPPFLAGS_SAV=$CPPFLAGS
26130   CPPFLAGS+=$GTNETS_CPPFLAGS
26131   LDFLAGS+=$GTNETS_LDFLAGS
26132   cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h.  */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h.  */
26138  #include <simulator.h>
26139
26140 int
26141 main ()
26142 {
26143 Simulator s; s.RunUntilNextCompletion();
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 rm -f conftest.$ac_objext conftest$ac_exeext
26149 if { (ac_try="$ac_link"
26150 case "(($ac_try" in
26151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152   *) ac_try_echo=$ac_try;;
26153 esac
26154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155   (eval "$ac_link") 2>conftest.er1
26156   ac_status=$?
26157   grep -v '^ *+' conftest.er1 >conftest.err
26158   rm -f conftest.er1
26159   cat conftest.err >&5
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); } && {
26162          test -z "$ac_cxx_werror_flag" ||
26163          test ! -s conftest.err
26164        } && test -s conftest$ac_exeext &&
26165        $as_test_x conftest$ac_exeext; then
26166   gtnets=yes
26167 else
26168   echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171         gtnets=no
26172 fi
26173
26174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26175       conftest$ac_exeext conftest.$ac_ext
26176   CPPFLAGS=$CPPFLAGS_SAV
26177   LDFLAGS=$LDFLAGS_SAV
26178   ac_ext=c
26179 ac_cpp='$CPP $CPPFLAGS'
26180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26183
26184
26185   if test "x$gtnets" = xyes ; then
26186     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
26187     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
26188     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
26189 echo "${ECHO_T}Found working gtnets library." >&6; }
26190
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_GTNETS 1
26193 _ACEOF
26194
26195   else
26196     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
26197 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
26198   fi
26199 fi
26200  if test "x$gtnets" != xno; then
26201   HAVE_GTNETS_TRUE=
26202   HAVE_GTNETS_FALSE='#'
26203 else
26204   HAVE_GTNETS_TRUE='#'
26205   HAVE_GTNETS_FALSE=
26206 fi
26207
26208
26209 #########################################
26210 ## Build optional modules (csdp)
26211 ##
26212 csdp=no
26213
26214 # Check whether --with-csdp was given.
26215 if test "${with_csdp+set}" = set; then
26216   withval=$with_csdp; csdp_path="$withval"
26217 else
26218   csdp_path="no"
26219 fi
26220
26221 if test "x$csdp_path" = "xno" ; then
26222   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
26223 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
26224 else
26225   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
26226 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
26227   { echo "$as_me:$LINENO: checking for csdp" >&5
26228 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
26229   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
26230   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
26231
26232   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
26233 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
26234 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
26235   echo $ECHO_N "(cached) $ECHO_C" >&6
26236 else
26237   ac_check_lib_save_LIBS=$LIBS
26238 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245
26246 /* Override any GCC internal prototype to avoid an error.
26247    Use char because int might match the return type of a GCC
26248    builtin and then its argument prototype would still apply.  */
26249 #ifdef __cplusplus
26250 extern "C"
26251 #endif
26252 char easy_sdp ();
26253 int
26254 main ()
26255 {
26256 return easy_sdp ();
26257   ;
26258   return 0;
26259 }
26260 _ACEOF
26261 rm -f conftest.$ac_objext conftest$ac_exeext
26262 if { (ac_try="$ac_link"
26263 case "(($ac_try" in
26264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265   *) ac_try_echo=$ac_try;;
26266 esac
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268   (eval "$ac_link") 2>conftest.er1
26269   ac_status=$?
26270   grep -v '^ *+' conftest.er1 >conftest.err
26271   rm -f conftest.er1
26272   cat conftest.err >&5
26273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274   (exit $ac_status); } && {
26275          test -z "$ac_c_werror_flag" ||
26276          test ! -s conftest.err
26277        } && test -s conftest$ac_exeext &&
26278        $as_test_x conftest$ac_exeext; then
26279   ac_cv_lib_sdp_easy_sdp=yes
26280 else
26281   echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26283
26284         ac_cv_lib_sdp_easy_sdp=no
26285 fi
26286
26287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26288       conftest$ac_exeext conftest.$ac_ext
26289 LIBS=$ac_check_lib_save_LIBS
26290 fi
26291 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
26292 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
26293 if test $ac_cv_lib_sdp_easy_sdp = yes; then
26294   csdp_lib=yes
26295 else
26296   csdp_lib=no
26297 fi
26298
26299
26300   CPPFLAGS_SAV=$CPPFLAGS
26301   CPPFLAGS+=$CSDP_CPPFLAGS
26302   if test "${ac_cv_header_declarations_h+set}" = set; then
26303   { echo "$as_me:$LINENO: checking for declarations.h" >&5
26304 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26305 if test "${ac_cv_header_declarations_h+set}" = set; then
26306   echo $ECHO_N "(cached) $ECHO_C" >&6
26307 fi
26308 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26309 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26310 else
26311   # Is the header compilable?
26312 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
26313 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
26314 cat >conftest.$ac_ext <<_ACEOF
26315 /* confdefs.h.  */
26316 _ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h.  */
26320 $ac_includes_default
26321 #include <declarations.h>
26322 _ACEOF
26323 rm -f conftest.$ac_objext
26324 if { (ac_try="$ac_compile"
26325 case "(($ac_try" in
26326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327   *) ac_try_echo=$ac_try;;
26328 esac
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330   (eval "$ac_compile") 2>conftest.er1
26331   ac_status=$?
26332   grep -v '^ *+' conftest.er1 >conftest.err
26333   rm -f conftest.er1
26334   cat conftest.err >&5
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); } && {
26337          test -z "$ac_c_werror_flag" ||
26338          test ! -s conftest.err
26339        } && test -s conftest.$ac_objext; then
26340   ac_header_compiler=yes
26341 else
26342   echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26344
26345         ac_header_compiler=no
26346 fi
26347
26348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26350 echo "${ECHO_T}$ac_header_compiler" >&6; }
26351
26352 # Is the header present?
26353 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
26354 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
26355 cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h.  */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h.  */
26361 #include <declarations.h>
26362 _ACEOF
26363 if { (ac_try="$ac_cpp conftest.$ac_ext"
26364 case "(($ac_try" in
26365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366   *) ac_try_echo=$ac_try;;
26367 esac
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26370   ac_status=$?
26371   grep -v '^ *+' conftest.er1 >conftest.err
26372   rm -f conftest.er1
26373   cat conftest.err >&5
26374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375   (exit $ac_status); } >/dev/null && {
26376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26377          test ! -s conftest.err
26378        }; then
26379   ac_header_preproc=yes
26380 else
26381   echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26383
26384   ac_header_preproc=no
26385 fi
26386
26387 rm -f conftest.err conftest.$ac_ext
26388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26389 echo "${ECHO_T}$ac_header_preproc" >&6; }
26390
26391 # So?  What about this header?
26392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26393   yes:no: )
26394     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
26395 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26396     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
26397 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
26398     ac_header_preproc=yes
26399     ;;
26400   no:yes:* )
26401     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
26402 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
26403     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
26404 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
26405     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
26406 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
26407     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
26408 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26409     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
26410 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
26411     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
26412 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
26413     ( cat <<\_ASBOX
26414 ## -------------------------------------------------- ##
26415 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26416 ## -------------------------------------------------- ##
26417 _ASBOX
26418      ) | sed "s/^/$as_me: WARNING:     /" >&2
26419     ;;
26420 esac
26421 { echo "$as_me:$LINENO: checking for declarations.h" >&5
26422 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26423 if test "${ac_cv_header_declarations_h+set}" = set; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   ac_cv_header_declarations_h=$ac_header_preproc
26427 fi
26428 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26429 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26430
26431 fi
26432 if test $ac_cv_header_declarations_h = yes; then
26433   csdp_header=yes
26434 else
26435   csdp_header=no
26436 fi
26437
26438
26439   CPPFLAGS=$CPPFLAGS_SAV
26440
26441
26442
26443   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
26444      csdp=yes;
26445   else
26446      csdp=no;
26447   fi
26448   if test "x$csdp" = xyes; then
26449     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
26450     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
26451     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
26452 echo "${ECHO_T}Found working sdp library." >&6; }
26453
26454 cat >>confdefs.h <<\_ACEOF
26455 #define HAVE_SDP 1
26456 _ACEOF
26457
26458   else
26459     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
26460 echo "${ECHO_T}Could not find any working sdp library." >&6; }
26461   fi;
26462 fi
26463  if test x$csdp != xno; then
26464   HAVE_SDP_TRUE=
26465   HAVE_SDP_FALSE='#'
26466 else
26467   HAVE_SDP_TRUE='#'
26468   HAVE_SDP_FALSE=
26469 fi
26470
26471
26472
26473
26474
26475 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26476 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26477 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26478   echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480   ac_check_lib_save_LIBS=$LIBS
26481 LIBS="-lnsl  $LIBS"
26482 cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488
26489 /* Override any GCC internal prototype to avoid an error.
26490    Use char because int might match the return type of a GCC
26491    builtin and then its argument prototype would still apply.  */
26492 #ifdef __cplusplus
26493 extern "C"
26494 #endif
26495 char gethostbyname ();
26496 int
26497 main ()
26498 {
26499 return gethostbyname ();
26500   ;
26501   return 0;
26502 }
26503 _ACEOF
26504 rm -f conftest.$ac_objext conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508   *) ac_try_echo=$ac_try;;
26509 esac
26510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26511   (eval "$ac_link") 2>conftest.er1
26512   ac_status=$?
26513   grep -v '^ *+' conftest.er1 >conftest.err
26514   rm -f conftest.er1
26515   cat conftest.err >&5
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); } && {
26518          test -z "$ac_c_werror_flag" ||
26519          test ! -s conftest.err
26520        } && test -s conftest$ac_exeext &&
26521        $as_test_x conftest$ac_exeext; then
26522   ac_cv_lib_nsl_gethostbyname=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         ac_cv_lib_nsl_gethostbyname=no
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26531       conftest$ac_exeext conftest.$ac_ext
26532 LIBS=$ac_check_lib_save_LIBS
26533 fi
26534 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26535 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26536 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26537   GRAS_DEP="$GRAS_DEP -lnsl"
26538 fi
26539
26540 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26541 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26542 if test "${ac_cv_lib_socket_connect+set}" = set; then
26543   echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545   ac_check_lib_save_LIBS=$LIBS
26546 LIBS="-lsocket  $LIBS"
26547 cat >conftest.$ac_ext <<_ACEOF
26548 /* confdefs.h.  */
26549 _ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h.  */
26553
26554 /* Override any GCC internal prototype to avoid an error.
26555    Use char because int might match the return type of a GCC
26556    builtin and then its argument prototype would still apply.  */
26557 #ifdef __cplusplus
26558 extern "C"
26559 #endif
26560 char connect ();
26561 int
26562 main ()
26563 {
26564 return connect ();
26565   ;
26566   return 0;
26567 }
26568 _ACEOF
26569 rm -f conftest.$ac_objext conftest$ac_exeext
26570 if { (ac_try="$ac_link"
26571 case "(($ac_try" in
26572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573   *) ac_try_echo=$ac_try;;
26574 esac
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576   (eval "$ac_link") 2>conftest.er1
26577   ac_status=$?
26578   grep -v '^ *+' conftest.er1 >conftest.err
26579   rm -f conftest.er1
26580   cat conftest.err >&5
26581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582   (exit $ac_status); } && {
26583          test -z "$ac_c_werror_flag" ||
26584          test ! -s conftest.err
26585        } && test -s conftest$ac_exeext &&
26586        $as_test_x conftest$ac_exeext; then
26587   ac_cv_lib_socket_connect=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592         ac_cv_lib_socket_connect=no
26593 fi
26594
26595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26596       conftest$ac_exeext conftest.$ac_ext
26597 LIBS=$ac_check_lib_save_LIBS
26598 fi
26599 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26600 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26601 if test $ac_cv_lib_socket_connect = yes; then
26602   GRAS_DEP="$GRAS_DEP -lsocket"
26603 fi
26604
26605
26606 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
26607 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
26608 case $host_os in
26609   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
26610             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
26611             cat >>confdefs.h <<\_ACEOF
26612 #define CONTEXT_THREADS 1
26613 _ACEOF
26614 ;;
26615 esac
26616
26617
26618
26619 if test "x$GRAS_DEP" = x; then
26620    { echo "$as_me:$LINENO: result: none" >&5
26621 echo "${ECHO_T}none" >&6; }
26622 else
26623    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
26624 echo "${ECHO_T}$GRAS_DEP" >&6; }
26625 fi
26626
26627
26628 ##############################################
26629 ## Enhance maintainer mode and SUBST variables
26630 ## (must be placed after any compilation tests since our overprotective flags
26631 ##  let some tests fail)
26632
26633 # Check whether we are doing a regular build or a GRAMINE (minimal) one
26634 # Next line is modified by sed when building gramine source tree
26635 gramine_mode=no
26636 if test x$gramine_mode = xyes
26637 then
26638   USE_MAINTAINER_MODE=no
26639 fi
26640  if test x$gramine_mode != xno; then
26641   GRAMINE_MODE_TRUE=
26642   GRAMINE_MODE_FALSE='#'
26643 else
26644   GRAMINE_MODE_TRUE='#'
26645   GRAMINE_MODE_FALSE=
26646 fi
26647
26648
26649
26650 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26651 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26652     # Check whether --enable-maintainer-mode was given.
26653 if test "${enable_maintainer_mode+set}" = set; then
26654   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26655 else
26656   USE_MAINTAINER_MODE=no
26657 fi
26658
26659   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26660 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26661    if test $USE_MAINTAINER_MODE = yes; then
26662   MAINTAINER_MODE_TRUE=
26663   MAINTAINER_MODE_FALSE='#'
26664 else
26665   MAINTAINER_MODE_TRUE='#'
26666   MAINTAINER_MODE_FALSE=
26667 fi
26668
26669   MAINT=$MAINTAINER_MODE_TRUE
26670
26671
26672 if test x$USE_MAINTAINER_MODE = xyes
26673 then
26674    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26675    enable_compile_warnings=yes
26676 fi
26677
26678   # Check whether --enable-compile-warnings was given.
26679 if test "${enable_compile_warnings+set}" = set; then
26680   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26681 else
26682   enable_compile_warnings=no
26683 fi
26684
26685
26686   # Check whether --enable-compile-optimizations was given.
26687 if test "${enable_compile_optimizations+set}" = set; then
26688   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26689 else
26690   enable_compile_optimizations=auto
26691 fi
26692
26693
26694     # AC PROG CC tests whether -g is accepted.
26695     # Cool, but it also tries to set -O2 and -g.
26696     # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
26697     case $CC in
26698       *gcc)
26699       if test "$CFLAGS" = "-g -O2" ; then
26700         CFLAGS="-g3"
26701       fi
26702       if test "$CXXFLAGS" = "-g -O2" ; then
26703         CXXFLAGS="-g3"
26704       fi
26705       if test "$GCJFLAGS" = "-g -O2" ; then
26706         CXXFLAGS="-g3"
26707       fi;;
26708     esac
26709
26710   if test "x$enable_compile_warnings" = "xyes" ; then
26711     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26712 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26713     warnCFLAGS=
26714     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26715       case " $CFLAGS " in
26716       *-Wall*) ;;
26717       *) warnCFLAGS="-Wall -Wunused" ;;
26718       esac
26719
26720       ## -W is not all that useful.  And it cannot be controlled
26721       ## with individual -Wno-xxx flags, unlike -Wall
26722
26723       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26724       ## -Wshadow chokes on try{ try{} } constructs
26725       if test "x$enable_compile_warnings" = "xyes"; then
26726         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
26727         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26728         -Wno-unused-function  -Wno-strict-aliasing  \
26729         -Werror \
26730         | sed 's/ +/ /g'`
26731         # -Wno-unused-variable  -Wno-unused-label
26732       fi
26733     fi
26734     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26735 echo "${ECHO_T}$warnCFLAGS" >&6; }
26736     # placed before since gcc remembers the last one on conflict
26737     CFLAGS="$warnCFLAGS $CFLAGS"
26738   fi
26739
26740   if test "x$enable_compile_optimizations" = "xyes" ||
26741      test "x$enable_compile_optimizations" = "xauto" ; then
26742     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26743 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26744     optCFLAGS=
26745     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26746         case " $CFLAGS " in
26747         *-O*) ;;
26748         *) optCFLAGS="$optCFLAGS -O3" ;;
26749         esac
26750         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26751
26752         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26753         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26754         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26755           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26756           # but the check would be too complicated to get 3.4.
26757           # Instead, rule out any 3.x compiler.
26758
26759           # Note that the flag didn't exist before gcc 3.0
26760           optCFLAGS="$optCFLAGS -fno-loop-optimize"
26761         fi
26762             fi
26763     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26764 echo "${ECHO_T}$optCFLAGS" >&6; }
26765     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26766     if test "x$cflags_set" != "xyes" ; then
26767       CFLAGS="$optCFLAGS $CFLAGS"
26768     fi
26769   fi
26770
26771   if test x$lt_cv_prog_gnu_ld = xyes ; then
26772     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26773   else
26774     LD_DYNAMIC_FLAGS=
26775   fi
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789 ##############################################
26790 ## Specific mode for build daemons.
26791 ## (they compile the SVN without having the autotools installed)
26792 # Check whether --enable-botbuild was given.
26793 if test "${enable_botbuild+set}" = set; then
26794   enableval=$enable_botbuild; botbuild=$enableval
26795 else
26796   botbuild=no
26797 fi
26798
26799  if test x$botbuild != xno; then
26800   BOTBUILD_MODE_TRUE=
26801   BOTBUILD_MODE_FALSE='#'
26802 else
26803   BOTBUILD_MODE_TRUE='#'
26804   BOTBUILD_MODE_FALSE=
26805 fi
26806
26807
26808 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26809   echo "ERROR: "
26810   echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26811   echo "ERROR: For this, just call configure this way:"
26812   echo "ERROR:"
26813   echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26814   echo "ERROR:"
26815   exit 1
26816 fi
26817
26818
26819
26820   { echo "$as_me:$LINENO: result: " >&5
26821 echo "${ECHO_T}" >&6; }
26822   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26823 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26824
26825 # Java cruft
26826 # Check whether --enable-java was given.
26827 if test "${enable_java+set}" = set; then
26828   enableval=$enable_java; disable_java=$enableval
26829 else
26830   disable_java=yes
26831 fi
26832
26833 if test "x$disable_java" != "xyes" ; then
26834    use_java="disabled by user"
26835 else
26836   # Extract the first word of "javac", so it can be a program name with args.
26837 set dummy javac; ac_word=$2
26838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26840 if test "${ac_cv_path_JAVAC+set}" = set; then
26841   echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843   case $JAVAC in
26844   [\\/]* | ?:[\\/]*)
26845   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26846   ;;
26847   *)
26848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26849 for as_dir in $PATH
26850 do
26851   IFS=$as_save_IFS
26852   test -z "$as_dir" && as_dir=.
26853   for ac_exec_ext in '' $ac_executable_extensions; do
26854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26855     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26857     break 2
26858   fi
26859 done
26860 done
26861 IFS=$as_save_IFS
26862
26863   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26864   ;;
26865 esac
26866 fi
26867 JAVAC=$ac_cv_path_JAVAC
26868 if test -n "$JAVAC"; then
26869   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26870 echo "${ECHO_T}$JAVAC" >&6; }
26871 else
26872   { echo "$as_me:$LINENO: result: no" >&5
26873 echo "${ECHO_T}no" >&6; }
26874 fi
26875
26876
26877   # Extract the first word of "java ", so it can be a program name with args.
26878 set dummy java ; ac_word=$2
26879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26881 if test "${ac_cv_path_JAVA+set}" = set; then
26882   echo $ECHO_N "(cached) $ECHO_C" >&6
26883 else
26884   case $JAVA in
26885   [\\/]* | ?:[\\/]*)
26886   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26887   ;;
26888   *)
26889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890 for as_dir in $PATH
26891 do
26892   IFS=$as_save_IFS
26893   test -z "$as_dir" && as_dir=.
26894   for ac_exec_ext in '' $ac_executable_extensions; do
26895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26896     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26898     break 2
26899   fi
26900 done
26901 done
26902 IFS=$as_save_IFS
26903
26904   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26905   ;;
26906 esac
26907 fi
26908 JAVA=$ac_cv_path_JAVA
26909 if test -n "$JAVA"; then
26910   { echo "$as_me:$LINENO: result: $JAVA" >&5
26911 echo "${ECHO_T}$JAVA" >&6; }
26912 else
26913   { echo "$as_me:$LINENO: result: no" >&5
26914 echo "${ECHO_T}no" >&6; }
26915 fi
26916
26917
26918   # Extract the first word of "jar  ", so it can be a program name with args.
26919 set dummy jar  ; ac_word=$2
26920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26922 if test "${ac_cv_path_JAR+set}" = set; then
26923   echo $ECHO_N "(cached) $ECHO_C" >&6
26924 else
26925   case $JAR in
26926   [\\/]* | ?:[\\/]*)
26927   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26928   ;;
26929   *)
26930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26931 for as_dir in $PATH
26932 do
26933   IFS=$as_save_IFS
26934   test -z "$as_dir" && as_dir=.
26935   for ac_exec_ext in '' $ac_executable_extensions; do
26936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26937     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26939     break 2
26940   fi
26941 done
26942 done
26943 IFS=$as_save_IFS
26944
26945   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26946   ;;
26947 esac
26948 fi
26949 JAR=$ac_cv_path_JAR
26950 if test -n "$JAR"; then
26951   { echo "$as_me:$LINENO: result: $JAR" >&5
26952 echo "${ECHO_T}$JAR" >&6; }
26953 else
26954   { echo "$as_me:$LINENO: result: no" >&5
26955 echo "${ECHO_T}no" >&6; }
26956 fi
26957
26958
26959
26960 for ac_header in jni.h
26961 do
26962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26964   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26967   echo $ECHO_N "(cached) $ECHO_C" >&6
26968 fi
26969 ac_res=`eval echo '${'$as_ac_Header'}'`
26970                { echo "$as_me:$LINENO: result: $ac_res" >&5
26971 echo "${ECHO_T}$ac_res" >&6; }
26972 else
26973   # Is the header compilable?
26974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26976 cat >conftest.$ac_ext <<_ACEOF
26977 /* confdefs.h.  */
26978 _ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h.  */
26982 $ac_includes_default
26983 #include <$ac_header>
26984 _ACEOF
26985 rm -f conftest.$ac_objext
26986 if { (ac_try="$ac_compile"
26987 case "(($ac_try" in
26988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989   *) ac_try_echo=$ac_try;;
26990 esac
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992   (eval "$ac_compile") 2>conftest.er1
26993   ac_status=$?
26994   grep -v '^ *+' conftest.er1 >conftest.err
26995   rm -f conftest.er1
26996   cat conftest.err >&5
26997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998   (exit $ac_status); } && {
26999          test -z "$ac_c_werror_flag" ||
27000          test ! -s conftest.err
27001        } && test -s conftest.$ac_objext; then
27002   ac_header_compiler=yes
27003 else
27004   echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.$ac_ext >&5
27006
27007         ac_header_compiler=no
27008 fi
27009
27010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27012 echo "${ECHO_T}$ac_header_compiler" >&6; }
27013
27014 # Is the header present?
27015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023 #include <$ac_header>
27024 _ACEOF
27025 if { (ac_try="$ac_cpp conftest.$ac_ext"
27026 case "(($ac_try" in
27027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028   *) ac_try_echo=$ac_try;;
27029 esac
27030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27032   ac_status=$?
27033   grep -v '^ *+' conftest.er1 >conftest.err
27034   rm -f conftest.er1
27035   cat conftest.err >&5
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); } >/dev/null && {
27038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27039          test ! -s conftest.err
27040        }; then
27041   ac_header_preproc=yes
27042 else
27043   echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046   ac_header_preproc=no
27047 fi
27048
27049 rm -f conftest.err conftest.$ac_ext
27050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27051 echo "${ECHO_T}$ac_header_preproc" >&6; }
27052
27053 # So?  What about this header?
27054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27055   yes:no: )
27056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27060     ac_header_preproc=yes
27061     ;;
27062   no:yes:* )
27063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27075     ( cat <<\_ASBOX
27076 ## -------------------------------------------------- ##
27077 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
27078 ## -------------------------------------------------- ##
27079 _ASBOX
27080      ) | sed "s/^/$as_me: WARNING:     /" >&2
27081     ;;
27082 esac
27083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088   eval "$as_ac_Header=\$ac_header_preproc"
27089 fi
27090 ac_res=`eval echo '${'$as_ac_Header'}'`
27091                { echo "$as_me:$LINENO: result: $ac_res" >&5
27092 echo "${ECHO_T}$ac_res" >&6; }
27093
27094 fi
27095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27096   cat >>confdefs.h <<_ACEOF
27097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27098 _ACEOF
27099
27100 fi
27101
27102 done
27103
27104   if test -n "$JAVAC"   \
27105      && test -n "$JAVA" \
27106      && test -n "$JAR"  \
27107      && test "x$ac_cv_header_jni_h" = "xyes" ; then
27108
27109      use_java="yes"
27110
27111 cat >>confdefs.h <<\_ACEOF
27112 #define HAVE_JAVA 1
27113 _ACEOF
27114
27115   else
27116      use_java="no"
27117   fi
27118 fi
27119 { echo "$as_me:$LINENO: result: decide whether to compile java bindings... $use_java" >&5
27120 echo "${ECHO_T}decide whether to compile java bindings... $use_java" >&6; }
27121  if test "x$use_java" = "xyes"; then
27122   HAVE_JAVA_TRUE=
27123   HAVE_JAVA_FALSE='#'
27124 else
27125   HAVE_JAVA_TRUE='#'
27126   HAVE_JAVA_FALSE=
27127 fi
27128
27129
27130
27131 #####################
27132 ## Check for programs
27133 ##
27134
27135
27136   { echo "$as_me:$LINENO: result: " >&5
27137 echo "${ECHO_T}" >&6; }
27138   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
27139 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
27140
27141 # Extract the first word of "bash", so it can be a program name with args.
27142 set dummy bash; ac_word=$2
27143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27145 if test "${ac_cv_prog_BASH+set}" = set; then
27146   echo $ECHO_N "(cached) $ECHO_C" >&6
27147 else
27148   if test -n "$BASH"; then
27149   ac_cv_prog_BASH="$BASH" # Let the user override the test.
27150 else
27151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27152 for as_dir in $PATH
27153 do
27154   IFS=$as_save_IFS
27155   test -z "$as_dir" && as_dir=.
27156   for ac_exec_ext in '' $ac_executable_extensions; do
27157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27158     ac_cv_prog_BASH="`which bash`"
27159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27160     break 2
27161   fi
27162 done
27163 done
27164 IFS=$as_save_IFS
27165
27166   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
27167 fi
27168 fi
27169 BASH=$ac_cv_prog_BASH
27170 if test -n "$BASH"; then
27171   { echo "$as_me:$LINENO: result: $BASH" >&5
27172 echo "${ECHO_T}$BASH" >&6; }
27173 else
27174   { echo "$as_me:$LINENO: result: no" >&5
27175 echo "${ECHO_T}no" >&6; }
27176 fi
27177
27178
27179 WARNING="This file is generated, do not edit"
27180
27181
27182
27183 # Can we rebuild the parsers?
27184 # We really want flex and refuse other lex. So, the parser is portable and
27185 # does not induce extra lib dependency
27186 for ac_prog in flex lex
27187 do
27188   # Extract the first word of "$ac_prog", so it can be a program name with args.
27189 set dummy $ac_prog; ac_word=$2
27190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27192 if test "${ac_cv_prog_LEX+set}" = set; then
27193   echo $ECHO_N "(cached) $ECHO_C" >&6
27194 else
27195   if test -n "$LEX"; then
27196   ac_cv_prog_LEX="$LEX" # Let the user override the test.
27197 else
27198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27199 for as_dir in $PATH
27200 do
27201   IFS=$as_save_IFS
27202   test -z "$as_dir" && as_dir=.
27203   for ac_exec_ext in '' $ac_executable_extensions; do
27204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27205     ac_cv_prog_LEX="$ac_prog"
27206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27207     break 2
27208   fi
27209 done
27210 done
27211 IFS=$as_save_IFS
27212
27213 fi
27214 fi
27215 LEX=$ac_cv_prog_LEX
27216 if test -n "$LEX"; then
27217   { echo "$as_me:$LINENO: result: $LEX" >&5
27218 echo "${ECHO_T}$LEX" >&6; }
27219 else
27220   { echo "$as_me:$LINENO: result: no" >&5
27221 echo "${ECHO_T}no" >&6; }
27222 fi
27223
27224
27225   test -n "$LEX" && break
27226 done
27227 test -n "$LEX" || LEX=":"
27228
27229 if test "x$LEX" != "x:"; then
27230   cat >conftest.l <<_ACEOF
27231 %%
27232 a { ECHO; }
27233 b { REJECT; }
27234 c { yymore (); }
27235 d { yyless (1); }
27236 e { yyless (input () != 0); }
27237 f { unput (yytext[0]); }
27238 . { BEGIN INITIAL; }
27239 %%
27240 #ifdef YYTEXT_POINTER
27241 extern char *yytext;
27242 #endif
27243 int
27244 main (void)
27245 {
27246   return ! yylex () + ! yywrap ();
27247 }
27248 _ACEOF
27249 { (ac_try="$LEX conftest.l"
27250 case "(($ac_try" in
27251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252   *) ac_try_echo=$ac_try;;
27253 esac
27254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27255   (eval "$LEX conftest.l") 2>&5
27256   ac_status=$?
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); }
27259 { echo "$as_me:$LINENO: checking lex output file root" >&5
27260 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
27261 if test "${ac_cv_prog_lex_root+set}" = set; then
27262   echo $ECHO_N "(cached) $ECHO_C" >&6
27263 else
27264
27265 if test -f lex.yy.c; then
27266   ac_cv_prog_lex_root=lex.yy
27267 elif test -f lexyy.c; then
27268   ac_cv_prog_lex_root=lexyy
27269 else
27270   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
27271 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
27272    { (exit 1); exit 1; }; }
27273 fi
27274 fi
27275 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
27276 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
27277 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27278
27279 if test -z "${LEXLIB+set}"; then
27280   { echo "$as_me:$LINENO: checking lex library" >&5
27281 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
27282 if test "${ac_cv_lib_lex+set}" = set; then
27283   echo $ECHO_N "(cached) $ECHO_C" >&6
27284 else
27285
27286     ac_save_LIBS=$LIBS
27287     ac_cv_lib_lex='none needed'
27288     for ac_lib in '' -lfl -ll; do
27289       LIBS="$ac_lib $ac_save_LIBS"
27290       cat >conftest.$ac_ext <<_ACEOF
27291 `cat $LEX_OUTPUT_ROOT.c`
27292 _ACEOF
27293 rm -f conftest.$ac_objext conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_link") 2>conftest.er1
27301   ac_status=$?
27302   grep -v '^ *+' conftest.er1 >conftest.err
27303   rm -f conftest.er1
27304   cat conftest.err >&5
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); } && {
27307          test -z "$ac_c_werror_flag" ||
27308          test ! -s conftest.err
27309        } && test -s conftest$ac_exeext &&
27310        $as_test_x conftest$ac_exeext; then
27311   ac_cv_lib_lex=$ac_lib
27312 else
27313   echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27315
27316
27317 fi
27318
27319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27320       conftest$ac_exeext conftest.$ac_ext
27321       test "$ac_cv_lib_lex" != 'none needed' && break
27322     done
27323     LIBS=$ac_save_LIBS
27324
27325 fi
27326 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
27327 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
27328   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27329 fi
27330
27331
27332 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
27333 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
27334 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
27335   echo $ECHO_N "(cached) $ECHO_C" >&6
27336 else
27337   # POSIX says lex can declare yytext either as a pointer or an array; the
27338 # default is implementation-dependent.  Figure out which it is, since
27339 # not all implementations provide the %pointer and %array declarations.
27340 ac_cv_prog_lex_yytext_pointer=no
27341 ac_save_LIBS=$LIBS
27342 LIBS="$LEXLIB $ac_save_LIBS"
27343 cat >conftest.$ac_ext <<_ACEOF
27344 #define YYTEXT_POINTER 1
27345 `cat $LEX_OUTPUT_ROOT.c`
27346 _ACEOF
27347 rm -f conftest.$ac_objext conftest$ac_exeext
27348 if { (ac_try="$ac_link"
27349 case "(($ac_try" in
27350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351   *) ac_try_echo=$ac_try;;
27352 esac
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354   (eval "$ac_link") 2>conftest.er1
27355   ac_status=$?
27356   grep -v '^ *+' conftest.er1 >conftest.err
27357   rm -f conftest.er1
27358   cat conftest.err >&5
27359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360   (exit $ac_status); } && {
27361          test -z "$ac_c_werror_flag" ||
27362          test ! -s conftest.err
27363        } && test -s conftest$ac_exeext &&
27364        $as_test_x conftest$ac_exeext; then
27365   ac_cv_prog_lex_yytext_pointer=yes
27366 else
27367   echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370
27371 fi
27372
27373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27374       conftest$ac_exeext conftest.$ac_ext
27375 LIBS=$ac_save_LIBS
27376
27377 fi
27378 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
27379 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
27380 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27381
27382 cat >>confdefs.h <<\_ACEOF
27383 #define YYTEXT_POINTER 1
27384 _ACEOF
27385
27386 fi
27387 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27388
27389 fi
27390
27391   if test "$LEX" != flex; then
27392     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
27393 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
27394     LEX=${am_missing_run}flex
27395     LEXLIB=''
27396
27397   else
27398     if test "x2.5.30" != "x" ; then
27399                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
27400
27401       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
27402       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
27403       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
27404
27405       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
27406       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
27407       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
27408
27409       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
27410          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
27411          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
27412       then
27413         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
27414 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
27415         LEX=${am_missing_run}flex
27416         LEXLIB=''
27417
27418       else
27419         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
27420 echo "$as_me: Flex found. Parsers will get updated" >&6;}
27421       fi
27422     fi
27423   fi
27424
27425
27426 # Can we rebuild the xml-lexers from the XML specification?
27427 # if not, simply touch the flex source files (which are distributed in
27428 #  tarballs even if generated by flexml) and hope for the best.
27429 # Extract the first word of "flexml", so it can be a program name with args.
27430 set dummy flexml; ac_word=$2
27431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27433 if test "${ac_cv_prog_FLEXML+set}" = set; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 else
27436   if test -n "$FLEXML"; then
27437   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
27438 else
27439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27440 for as_dir in $PATH
27441 do
27442   IFS=$as_save_IFS
27443   test -z "$as_dir" && as_dir=.
27444   for ac_exec_ext in '' $ac_executable_extensions; do
27445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27446     ac_cv_prog_FLEXML="`which flexml`"
27447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27448     break 2
27449   fi
27450 done
27451 done
27452 IFS=$as_save_IFS
27453
27454   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
27455 fi
27456 fi
27457 FLEXML=$ac_cv_prog_FLEXML
27458 if test -n "$FLEXML"; then
27459   { echo "$as_me:$LINENO: result: $FLEXML" >&5
27460 echo "${ECHO_T}$FLEXML" >&6; }
27461 else
27462   { echo "$as_me:$LINENO: result: no" >&5
27463 echo "${ECHO_T}no" >&6; }
27464 fi
27465
27466
27467  if test x$FLEXML != xNOTFOUND; then
27468   HAVE_FLEXML_TRUE=
27469   HAVE_FLEXML_FALSE='#'
27470 else
27471   HAVE_FLEXML_TRUE='#'
27472   HAVE_FLEXML_FALSE=
27473 fi
27474
27475
27476 if test x$USE_MAINTAINER_MODE = xyes
27477 then
27478    # Check for doxygen when in maintainer mode since dist* targets fail
27479    # without it
27480    # Extract the first word of "doxygen", so it can be a program name with args.
27481 set dummy doxygen; ac_word=$2
27482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27484 if test "${ac_cv_path_DOXYGEN+set}" = set; then
27485   echo $ECHO_N "(cached) $ECHO_C" >&6
27486 else
27487   case $DOXYGEN in
27488   [\\/]* | ?:[\\/]*)
27489   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
27490   ;;
27491   *)
27492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27493 for as_dir in $PATH
27494 do
27495   IFS=$as_save_IFS
27496   test -z "$as_dir" && as_dir=.
27497   for ac_exec_ext in '' $ac_executable_extensions; do
27498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27499     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
27500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27501     break 2
27502   fi
27503 done
27504 done
27505 IFS=$as_save_IFS
27506
27507   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
27508   ;;
27509 esac
27510 fi
27511 DOXYGEN=$ac_cv_path_DOXYGEN
27512 if test -n "$DOXYGEN"; then
27513   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
27514 echo "${ECHO_T}$DOXYGEN" >&6; }
27515 else
27516   { echo "$as_me:$LINENO: result: no" >&5
27517 echo "${ECHO_T}no" >&6; }
27518 fi
27519
27520
27521    if test x$DOXYGEN = x ; then
27522      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
27523 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
27524    { (exit 1); exit 1; }; }
27525    fi
27526 fi
27527
27528 # Can we extract really usable backtraces? (also need the popen function)
27529 # Extract the first word of "addr2line", so it can be a program name with args.
27530 set dummy addr2line; ac_word=$2
27531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27533 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
27534   echo $ECHO_N "(cached) $ECHO_C" >&6
27535 else
27536   case $ADDR2LINE in
27537   [\\/]* | ?:[\\/]*)
27538   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
27539   ;;
27540   *)
27541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27542 for as_dir in $PATH
27543 do
27544   IFS=$as_save_IFS
27545   test -z "$as_dir" && as_dir=.
27546   for ac_exec_ext in '' $ac_executable_extensions; do
27547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27548     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
27549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27550     break 2
27551   fi
27552 done
27553 done
27554 IFS=$as_save_IFS
27555
27556   ;;
27557 esac
27558 fi
27559 ADDR2LINE=$ac_cv_path_ADDR2LINE
27560 if test -n "$ADDR2LINE"; then
27561   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
27562 echo "${ECHO_T}$ADDR2LINE" >&6; }
27563 else
27564   { echo "$as_me:$LINENO: result: no" >&5
27565 echo "${ECHO_T}no" >&6; }
27566 fi
27567
27568
27569 if test x$ADDR2LINE != x ; then
27570
27571 cat >>confdefs.h <<_ACEOF
27572 #define ADDR2LINE "$ADDR2LINE"
27573 _ACEOF
27574
27575 fi
27576
27577
27578
27579 cat >>confdefs.h <<_ACEOF
27580 #define AC_CONFIGURE_ARGS "$ac_configure_args"
27581 _ACEOF
27582
27583 # Can we make status line about the compilation result?
27584 build_id="$PACKAGE ver=$VERSION args=\"$ac_configure_args\""
27585
27586
27587 ###################
27588 ## Makes the output
27589 ##
27590
27591
27592 #
27593 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
27594 #  src/amok/Makefile
27595
27596
27597   { echo "$as_me:$LINENO: result: " >&5
27598 echo "${ECHO_T}" >&6; }
27599   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27600 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27601
27602
27603 # Core of the libraries
27604
27605 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/context_sysv_config.h"
27606
27607
27608 # Tools being embeeded in gramine (stub generator)
27609 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27610
27611
27612
27613 # GRAMINE_CUT_BEGIN
27614
27615 # Tools NOT being embeeded in gramine
27616 ac_config_files="$ac_config_files tools/graspe-slave"
27617
27618
27619 # Testsuite
27620
27621 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
27622
27623
27624 # Teshsuite (testsuite using tesh)
27625 ac_config_files="$ac_config_files teshsuite/Makefile"
27626
27627
27628 # Documentation
27629 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27630
27631
27632 # Examples
27633
27634 #      examples/gras/p2p/Makefile
27635 #      examples/gras/p2p/chord/Makefile
27636 #      examples/gras/p2p/can/Makefile
27637
27638 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"
27639
27640
27641 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/properties/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile"
27642
27643
27644 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
27645
27646
27647 # GRAMINE_CUT_END
27648
27649 cat >confcache <<\_ACEOF
27650 # This file is a shell script that caches the results of configure
27651 # tests run on this system so they can be shared between configure
27652 # scripts and configure runs, see configure's option --config-cache.
27653 # It is not useful on other systems.  If it contains results you don't
27654 # want to keep, you may remove or edit it.
27655 #
27656 # config.status only pays attention to the cache file if you give it
27657 # the --recheck option to rerun configure.
27658 #
27659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27661 # following values.
27662
27663 _ACEOF
27664
27665 # The following way of writing the cache mishandles newlines in values,
27666 # but we know of no workaround that is simple, portable, and efficient.
27667 # So, we kill variables containing newlines.
27668 # Ultrix sh set writes to stderr and can't be redirected directly,
27669 # and sets the high bit in the cache file unless we assign to the vars.
27670 (
27671   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27672     eval ac_val=\$$ac_var
27673     case $ac_val in #(
27674     *${as_nl}*)
27675       case $ac_var in #(
27676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27678       esac
27679       case $ac_var in #(
27680       _ | IFS | as_nl) ;; #(
27681       *) $as_unset $ac_var ;;
27682       esac ;;
27683     esac
27684   done
27685
27686   (set) 2>&1 |
27687     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27688     *${as_nl}ac_space=\ *)
27689       # `set' does not quote correctly, so add quotes (double-quote
27690       # substitution turns \\\\ into \\, and sed turns \\ into \).
27691       sed -n \
27692         "s/'/'\\\\''/g;
27693           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27694       ;; #(
27695     *)
27696       # `set' quotes correctly as required by POSIX, so do not add quotes.
27697       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27698       ;;
27699     esac |
27700     sort
27701 ) |
27702   sed '
27703      /^ac_cv_env_/b end
27704      t clear
27705      :clear
27706      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27707      t end
27708      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27709      :end' >>confcache
27710 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27711   if test -w "$cache_file"; then
27712     test "x$cache_file" != "x/dev/null" &&
27713       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27714 echo "$as_me: updating cache $cache_file" >&6;}
27715     cat confcache >$cache_file
27716   else
27717     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27718 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27719   fi
27720 fi
27721 rm -f confcache
27722
27723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27724 # Let make expand exec_prefix.
27725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27726
27727 DEFS=-DHAVE_CONFIG_H
27728
27729 ac_libobjs=
27730 ac_ltlibobjs=
27731 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27732   # 1. Remove the extension, and $U if already installed.
27733   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27734   ac_i=`echo "$ac_i" | sed "$ac_script"`
27735   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27736   #    will be set to the directory where LIBOBJS objects are built.
27737   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27738   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27739 done
27740 LIBOBJS=$ac_libobjs
27741
27742 LTLIBOBJS=$ac_ltlibobjs
27743
27744
27745 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27746   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27747 Usually this means the macro was only invoked conditionally." >&5
27748 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27749 Usually this means the macro was only invoked conditionally." >&2;}
27750    { (exit 1); exit 1; }; }
27751 fi
27752 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27753   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27754 Usually this means the macro was only invoked conditionally." >&5
27755 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27756 Usually this means the macro was only invoked conditionally." >&2;}
27757    { (exit 1); exit 1; }; }
27758 fi
27759 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27760   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27761 Usually this means the macro was only invoked conditionally." >&5
27762 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27763 Usually this means the macro was only invoked conditionally." >&2;}
27764    { (exit 1); exit 1; }; }
27765 fi
27766 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27767   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27768 Usually this means the macro was only invoked conditionally." >&5
27769 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27770 Usually this means the macro was only invoked conditionally." >&2;}
27771    { (exit 1); exit 1; }; }
27772 fi
27773 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27774   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27775 Usually this means the macro was only invoked conditionally." >&5
27776 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27777 Usually this means the macro was only invoked conditionally." >&2;}
27778    { (exit 1); exit 1; }; }
27779 fi
27780 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27781   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27782 Usually this means the macro was only invoked conditionally." >&5
27783 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27784 Usually this means the macro was only invoked conditionally." >&2;}
27785    { (exit 1); exit 1; }; }
27786 fi
27787 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27788   { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27789 Usually this means the macro was only invoked conditionally." >&5
27790 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27791 Usually this means the macro was only invoked conditionally." >&2;}
27792    { (exit 1); exit 1; }; }
27793 fi
27794 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27795   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27796 Usually this means the macro was only invoked conditionally." >&5
27797 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27798 Usually this means the macro was only invoked conditionally." >&2;}
27799    { (exit 1); exit 1; }; }
27800 fi
27801 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27802   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27803 Usually this means the macro was only invoked conditionally." >&5
27804 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27805 Usually this means the macro was only invoked conditionally." >&2;}
27806    { (exit 1); exit 1; }; }
27807 fi
27808 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27809   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27810 Usually this means the macro was only invoked conditionally." >&5
27811 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27812 Usually this means the macro was only invoked conditionally." >&2;}
27813    { (exit 1); exit 1; }; }
27814 fi
27815 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27816   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27817 Usually this means the macro was only invoked conditionally." >&5
27818 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27819 Usually this means the macro was only invoked conditionally." >&2;}
27820    { (exit 1); exit 1; }; }
27821 fi
27822 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27823   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27824 Usually this means the macro was only invoked conditionally." >&5
27825 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27826 Usually this means the macro was only invoked conditionally." >&2;}
27827    { (exit 1); exit 1; }; }
27828 fi
27829 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27830   { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27831 Usually this means the macro was only invoked conditionally." >&5
27832 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27833 Usually this means the macro was only invoked conditionally." >&2;}
27834    { (exit 1); exit 1; }; }
27835 fi
27836 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27837   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27838 Usually this means the macro was only invoked conditionally." >&5
27839 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27840 Usually this means the macro was only invoked conditionally." >&2;}
27841    { (exit 1); exit 1; }; }
27842 fi
27843 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27844   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27845 Usually this means the macro was only invoked conditionally." >&5
27846 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27847 Usually this means the macro was only invoked conditionally." >&2;}
27848    { (exit 1); exit 1; }; }
27849 fi
27850
27851 : ${CONFIG_STATUS=./config.status}
27852 ac_clean_files_save=$ac_clean_files
27853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27854 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27855 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27856 cat >$CONFIG_STATUS <<_ACEOF
27857 #! $SHELL
27858 # Generated by $as_me.
27859 # Run this file to recreate the current configuration.
27860 # Compiler output produced by configure, useful for debugging
27861 # configure, is in config.log if it exists.
27862
27863 debug=false
27864 ac_cs_recheck=false
27865 ac_cs_silent=false
27866 SHELL=\${CONFIG_SHELL-$SHELL}
27867 _ACEOF
27868
27869 cat >>$CONFIG_STATUS <<\_ACEOF
27870 ## --------------------- ##
27871 ## M4sh Initialization.  ##
27872 ## --------------------- ##
27873
27874 # Be more Bourne compatible
27875 DUALCASE=1; export DUALCASE # for MKS sh
27876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27877   emulate sh
27878   NULLCMD=:
27879   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27880   # is contrary to our usage.  Disable this feature.
27881   alias -g '${1+"$@"}'='"$@"'
27882   setopt NO_GLOB_SUBST
27883 else
27884   case `(set -o) 2>/dev/null` in
27885   *posix*) set -o posix ;;
27886 esac
27887
27888 fi
27889
27890
27891
27892
27893 # PATH needs CR
27894 # Avoid depending upon Character Ranges.
27895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27898 as_cr_digits='0123456789'
27899 as_cr_alnum=$as_cr_Letters$as_cr_digits
27900
27901 # The user is always right.
27902 if test "${PATH_SEPARATOR+set}" != set; then
27903   echo "#! /bin/sh" >conf$$.sh
27904   echo  "exit 0"   >>conf$$.sh
27905   chmod +x conf$$.sh
27906   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27907     PATH_SEPARATOR=';'
27908   else
27909     PATH_SEPARATOR=:
27910   fi
27911   rm -f conf$$.sh
27912 fi
27913
27914 # Support unset when possible.
27915 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27916   as_unset=unset
27917 else
27918   as_unset=false
27919 fi
27920
27921
27922 # IFS
27923 # We need space, tab and new line, in precisely that order.  Quoting is
27924 # there to prevent editors from complaining about space-tab.
27925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27926 # splitting by setting IFS to empty value.)
27927 as_nl='
27928 '
27929 IFS=" ""        $as_nl"
27930
27931 # Find who we are.  Look in the path if we contain no directory separator.
27932 case $0 in
27933   *[\\/]* ) as_myself=$0 ;;
27934   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27935 for as_dir in $PATH
27936 do
27937   IFS=$as_save_IFS
27938   test -z "$as_dir" && as_dir=.
27939   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27940 done
27941 IFS=$as_save_IFS
27942
27943      ;;
27944 esac
27945 # We did not find ourselves, most probably we were run as `sh COMMAND'
27946 # in which case we are not to be found in the path.
27947 if test "x$as_myself" = x; then
27948   as_myself=$0
27949 fi
27950 if test ! -f "$as_myself"; then
27951   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27952   { (exit 1); exit 1; }
27953 fi
27954
27955 # Work around bugs in pre-3.0 UWIN ksh.
27956 for as_var in ENV MAIL MAILPATH
27957 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27958 done
27959 PS1='$ '
27960 PS2='> '
27961 PS4='+ '
27962
27963 # NLS nuisances.
27964 for as_var in \
27965   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27966   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27967   LC_TELEPHONE LC_TIME
27968 do
27969   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27970     eval $as_var=C; export $as_var
27971   else
27972     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27973   fi
27974 done
27975
27976 # Required to use basename.
27977 if expr a : '\(a\)' >/dev/null 2>&1 &&
27978    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27979   as_expr=expr
27980 else
27981   as_expr=false
27982 fi
27983
27984 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27985   as_basename=basename
27986 else
27987   as_basename=false
27988 fi
27989
27990
27991 # Name of the executable.
27992 as_me=`$as_basename -- "$0" ||
27993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27994          X"$0" : 'X\(//\)$' \| \
27995          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27996 echo X/"$0" |
27997     sed '/^.*\/\([^/][^/]*\)\/*$/{
27998             s//\1/
27999             q
28000           }
28001           /^X\/\(\/\/\)$/{
28002             s//\1/
28003             q
28004           }
28005           /^X\/\(\/\).*/{
28006             s//\1/
28007             q
28008           }
28009           s/.*/./; q'`
28010
28011 # CDPATH.
28012 $as_unset CDPATH
28013
28014
28015
28016   as_lineno_1=$LINENO
28017   as_lineno_2=$LINENO
28018   test "x$as_lineno_1" != "x$as_lineno_2" &&
28019   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28020
28021   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28022   # uniformly replaced by the line number.  The first 'sed' inserts a
28023   # line-number line after each line using $LINENO; the second 'sed'
28024   # does the real work.  The second script uses 'N' to pair each
28025   # line-number line with the line containing $LINENO, and appends
28026   # trailing '-' during substitution so that $LINENO is not a special
28027   # case at line end.
28028   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28029   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28030   # E. McMahon (1931-1989) for sed's syntax.  :-)
28031   sed -n '
28032     p
28033     /[$]LINENO/=
28034   ' <$as_myself |
28035     sed '
28036       s/[$]LINENO.*/&-/
28037       t lineno
28038       b
28039       :lineno
28040       N
28041       :loop
28042       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28043       t loop
28044       s/-\n.*//
28045     ' >$as_me.lineno &&
28046   chmod +x "$as_me.lineno" ||
28047     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28048    { (exit 1); exit 1; }; }
28049
28050   # Don't try to exec as it changes $[0], causing all sort of problems
28051   # (the dirname of $[0] is not the place where we might find the
28052   # original and so on.  Autoconf is especially sensitive to this).
28053   . "./$as_me.lineno"
28054   # Exit status is that of the last command.
28055   exit
28056 }
28057
28058
28059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28060   as_dirname=dirname
28061 else
28062   as_dirname=false
28063 fi
28064
28065 ECHO_C= ECHO_N= ECHO_T=
28066 case `echo -n x` in
28067 -n*)
28068   case `echo 'x\c'` in
28069   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28070   *)   ECHO_C='\c';;
28071   esac;;
28072 *)
28073   ECHO_N='-n';;
28074 esac
28075
28076 if expr a : '\(a\)' >/dev/null 2>&1 &&
28077    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28078   as_expr=expr
28079 else
28080   as_expr=false
28081 fi
28082
28083 rm -f conf$$ conf$$.exe conf$$.file
28084 if test -d conf$$.dir; then
28085   rm -f conf$$.dir/conf$$.file
28086 else
28087   rm -f conf$$.dir
28088   mkdir conf$$.dir
28089 fi
28090 echo >conf$$.file
28091 if ln -s conf$$.file conf$$ 2>/dev/null; then
28092   as_ln_s='ln -s'
28093   # ... but there are two gotchas:
28094   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28095   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28096   # In both cases, we have to default to `cp -p'.
28097   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28098     as_ln_s='cp -p'
28099 elif ln conf$$.file conf$$ 2>/dev/null; then
28100   as_ln_s=ln
28101 else
28102   as_ln_s='cp -p'
28103 fi
28104 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28105 rmdir conf$$.dir 2>/dev/null
28106
28107 if mkdir -p . 2>/dev/null; then
28108   as_mkdir_p=:
28109 else
28110   test -d ./-p && rmdir ./-p
28111   as_mkdir_p=false
28112 fi
28113
28114 if test -x / >/dev/null 2>&1; then
28115   as_test_x='test -x'
28116 else
28117   if ls -dL / >/dev/null 2>&1; then
28118     as_ls_L_option=L
28119   else
28120     as_ls_L_option=
28121   fi
28122   as_test_x='
28123     eval sh -c '\''
28124       if test -d "$1"; then
28125         test -d "$1/.";
28126       else
28127         case $1 in
28128         -*)set "./$1";;
28129         esac;
28130         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28131         ???[sx]*):;;*)false;;esac;fi
28132     '\'' sh
28133   '
28134 fi
28135 as_executable_p=$as_test_x
28136
28137 # Sed expression to map a string onto a valid CPP name.
28138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28139
28140 # Sed expression to map a string onto a valid variable name.
28141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28142
28143
28144 exec 6>&1
28145
28146 # Save the log message, to keep $[0] and so on meaningful, and to
28147 # report actual input values of CONFIG_FILES etc. instead of their
28148 # values after options handling.
28149 ac_log="
28150 This file was extended by simgrid $as_me 3.3-svn, which was
28151 generated by GNU Autoconf 2.61.  Invocation command line was
28152
28153   CONFIG_FILES    = $CONFIG_FILES
28154   CONFIG_HEADERS  = $CONFIG_HEADERS
28155   CONFIG_LINKS    = $CONFIG_LINKS
28156   CONFIG_COMMANDS = $CONFIG_COMMANDS
28157   $ $0 $@
28158
28159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28160 "
28161
28162 _ACEOF
28163
28164 cat >>$CONFIG_STATUS <<_ACEOF
28165 # Files that config.status was made for.
28166 config_files="$ac_config_files"
28167 config_headers="$ac_config_headers"
28168 config_commands="$ac_config_commands"
28169
28170 _ACEOF
28171
28172 cat >>$CONFIG_STATUS <<\_ACEOF
28173 ac_cs_usage="\
28174 \`$as_me' instantiates files from templates according to the
28175 current configuration.
28176
28177 Usage: $0 [OPTIONS] [FILE]...
28178
28179   -h, --help       print this help, then exit
28180   -V, --version    print version number and configuration settings, then exit
28181   -q, --quiet      do not print progress messages
28182   -d, --debug      don't remove temporary files
28183       --recheck    update $as_me by reconfiguring in the same conditions
28184   --file=FILE[:TEMPLATE]
28185                    instantiate the configuration file FILE
28186   --header=FILE[:TEMPLATE]
28187                    instantiate the configuration header FILE
28188
28189 Configuration files:
28190 $config_files
28191
28192 Configuration headers:
28193 $config_headers
28194
28195 Configuration commands:
28196 $config_commands
28197
28198 Report bugs to <bug-autoconf@gnu.org>."
28199
28200 _ACEOF
28201 cat >>$CONFIG_STATUS <<_ACEOF
28202 ac_cs_version="\\
28203 simgrid config.status 3.3-svn
28204 configured by $0, generated by GNU Autoconf 2.61,
28205   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28206
28207 Copyright (C) 2006 Free Software Foundation, Inc.
28208 This config.status script is free software; the Free Software Foundation
28209 gives unlimited permission to copy, distribute and modify it."
28210
28211 ac_pwd='$ac_pwd'
28212 srcdir='$srcdir'
28213 INSTALL='$INSTALL'
28214 MKDIR_P='$MKDIR_P'
28215 _ACEOF
28216
28217 cat >>$CONFIG_STATUS <<\_ACEOF
28218 # If no file are specified by the user, then we need to provide default
28219 # value.  By we need to know if files were specified by the user.
28220 ac_need_defaults=:
28221 while test $# != 0
28222 do
28223   case $1 in
28224   --*=*)
28225     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28226     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28227     ac_shift=:
28228     ;;
28229   *)
28230     ac_option=$1
28231     ac_optarg=$2
28232     ac_shift=shift
28233     ;;
28234   esac
28235
28236   case $ac_option in
28237   # Handling of the options.
28238   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28239     ac_cs_recheck=: ;;
28240   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28241     echo "$ac_cs_version"; exit ;;
28242   --debug | --debu | --deb | --de | --d | -d )
28243     debug=: ;;
28244   --file | --fil | --fi | --f )
28245     $ac_shift
28246     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28247     ac_need_defaults=false;;
28248   --header | --heade | --head | --hea )
28249     $ac_shift
28250     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28251     ac_need_defaults=false;;
28252   --he | --h)
28253     # Conflict between --help and --header
28254     { echo "$as_me: error: ambiguous option: $1
28255 Try \`$0 --help' for more information." >&2
28256    { (exit 1); exit 1; }; };;
28257   --help | --hel | -h )
28258     echo "$ac_cs_usage"; exit ;;
28259   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28260   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28261     ac_cs_silent=: ;;
28262
28263   # This is an error.
28264   -*) { echo "$as_me: error: unrecognized option: $1
28265 Try \`$0 --help' for more information." >&2
28266    { (exit 1); exit 1; }; } ;;
28267
28268   *) ac_config_targets="$ac_config_targets $1"
28269      ac_need_defaults=false ;;
28270
28271   esac
28272   shift
28273 done
28274
28275 ac_configure_extra_args=
28276
28277 if $ac_cs_silent; then
28278   exec 6>/dev/null
28279   ac_configure_extra_args="$ac_configure_extra_args --silent"
28280 fi
28281
28282 _ACEOF
28283 cat >>$CONFIG_STATUS <<_ACEOF
28284 if \$ac_cs_recheck; then
28285   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28286   CONFIG_SHELL=$SHELL
28287   export CONFIG_SHELL
28288   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28289 fi
28290
28291 _ACEOF
28292 cat >>$CONFIG_STATUS <<\_ACEOF
28293 exec 5>>config.log
28294 {
28295   echo
28296   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28297 ## Running $as_me. ##
28298 _ASBOX
28299   echo "$ac_log"
28300 } >&5
28301
28302 _ACEOF
28303 cat >>$CONFIG_STATUS <<_ACEOF
28304 #
28305 # INIT-COMMANDS
28306 #
28307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28308
28309 _ACEOF
28310
28311 cat >>$CONFIG_STATUS <<\_ACEOF
28312
28313 # Handling of arguments.
28314 for ac_config_target in $ac_config_targets
28315 do
28316   case $ac_config_target in
28317     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
28318     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28319     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28320     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28321     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28322     "src/context_sysv_config.h") CONFIG_FILES="$CONFIG_FILES src/context_sysv_config.h" ;;
28323     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28324     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
28325     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
28326     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
28327     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28328     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
28329     "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
28330     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28331     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
28332     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
28333     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
28334     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
28335     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
28336     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
28337     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28338     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
28339     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
28340     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
28341     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
28342     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
28343     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
28344     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
28345     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
28346     "examples/gras/properties/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/properties/Makefile" ;;
28347     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
28348     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
28349     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
28350     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
28351     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
28352     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
28353     "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
28354     "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
28355
28356   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28357 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28358    { (exit 1); exit 1; }; };;
28359   esac
28360 done
28361
28362
28363 # If the user did not use the arguments to specify the items to instantiate,
28364 # then the envvar interface is used.  Set only those that are not.
28365 # We use the long form for the default assignment because of an extremely
28366 # bizarre bug on SunOS 4.1.3.
28367 if $ac_need_defaults; then
28368   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28369   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28370   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28371 fi
28372
28373 # Have a temporary directory for convenience.  Make it in the build tree
28374 # simply because there is no reason against having it here, and in addition,
28375 # creating and moving files from /tmp can sometimes cause problems.
28376 # Hook for its removal unless debugging.
28377 # Note that there is a small window in which the directory will not be cleaned:
28378 # after its creation but before its name has been assigned to `$tmp'.
28379 $debug ||
28380 {
28381   tmp=
28382   trap 'exit_status=$?
28383   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28384 ' 0
28385   trap '{ (exit 1); exit 1; }' 1 2 13 15
28386 }
28387 # Create a (secure) tmp directory for tmp files.
28388
28389 {
28390   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28391   test -n "$tmp" && test -d "$tmp"
28392 }  ||
28393 {
28394   tmp=./conf$$-$RANDOM
28395   (umask 077 && mkdir "$tmp")
28396 } ||
28397 {
28398    echo "$me: cannot create a temporary directory in ." >&2
28399    { (exit 1); exit 1; }
28400 }
28401
28402 #
28403 # Set up the sed scripts for CONFIG_FILES section.
28404 #
28405
28406 # No need to generate the scripts if there are no CONFIG_FILES.
28407 # This happens for instance when ./config.status config.h
28408 if test -n "$CONFIG_FILES"; then
28409
28410 _ACEOF
28411
28412
28413
28414 ac_delim='%!_!# '
28415 for ac_last_try in false false false false false :; do
28416   cat >conf$$subs.sed <<_ACEOF
28417 SHELL!$SHELL$ac_delim
28418 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28419 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28420 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28421 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28422 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28423 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28424 exec_prefix!$exec_prefix$ac_delim
28425 prefix!$prefix$ac_delim
28426 program_transform_name!$program_transform_name$ac_delim
28427 bindir!$bindir$ac_delim
28428 sbindir!$sbindir$ac_delim
28429 libexecdir!$libexecdir$ac_delim
28430 datarootdir!$datarootdir$ac_delim
28431 datadir!$datadir$ac_delim
28432 sysconfdir!$sysconfdir$ac_delim
28433 sharedstatedir!$sharedstatedir$ac_delim
28434 localstatedir!$localstatedir$ac_delim
28435 includedir!$includedir$ac_delim
28436 oldincludedir!$oldincludedir$ac_delim
28437 docdir!$docdir$ac_delim
28438 infodir!$infodir$ac_delim
28439 htmldir!$htmldir$ac_delim
28440 dvidir!$dvidir$ac_delim
28441 pdfdir!$pdfdir$ac_delim
28442 psdir!$psdir$ac_delim
28443 libdir!$libdir$ac_delim
28444 localedir!$localedir$ac_delim
28445 mandir!$mandir$ac_delim
28446 DEFS!$DEFS$ac_delim
28447 ECHO_C!$ECHO_C$ac_delim
28448 ECHO_N!$ECHO_N$ac_delim
28449 ECHO_T!$ECHO_T$ac_delim
28450 LIBS!$LIBS$ac_delim
28451 build_alias!$build_alias$ac_delim
28452 host_alias!$host_alias$ac_delim
28453 target_alias!$target_alias$ac_delim
28454 build!$build$ac_delim
28455 build_cpu!$build_cpu$ac_delim
28456 build_vendor!$build_vendor$ac_delim
28457 build_os!$build_os$ac_delim
28458 host!$host$ac_delim
28459 host_cpu!$host_cpu$ac_delim
28460 host_vendor!$host_vendor$ac_delim
28461 host_os!$host_os$ac_delim
28462 target!$target$ac_delim
28463 target_cpu!$target_cpu$ac_delim
28464 target_vendor!$target_vendor$ac_delim
28465 target_os!$target_os$ac_delim
28466 GCJ!$GCJ$ac_delim
28467 GCJFLAGS!$GCJFLAGS$ac_delim
28468 am__leading_dot!$am__leading_dot$ac_delim
28469 DEPDIR!$DEPDIR$ac_delim
28470 am__include!$am__include$ac_delim
28471 am__quote!$am__quote$ac_delim
28472 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28473 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28474 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28475 GCJDEPMODE!$GCJDEPMODE$ac_delim
28476 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
28477 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
28478 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28479 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28480 INSTALL_DATA!$INSTALL_DATA$ac_delim
28481 am__isrc!$am__isrc$ac_delim
28482 CYGPATH_W!$CYGPATH_W$ac_delim
28483 PACKAGE!$PACKAGE$ac_delim
28484 VERSION!$VERSION$ac_delim
28485 ACLOCAL!$ACLOCAL$ac_delim
28486 AUTOCONF!$AUTOCONF$ac_delim
28487 AUTOMAKE!$AUTOMAKE$ac_delim
28488 AUTOHEADER!$AUTOHEADER$ac_delim
28489 MAKEINFO!$MAKEINFO$ac_delim
28490 install_sh!$install_sh$ac_delim
28491 STRIP!$STRIP$ac_delim
28492 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28493 mkdir_p!$mkdir_p$ac_delim
28494 AWK!$AWK$ac_delim
28495 SET_MAKE!$SET_MAKE$ac_delim
28496 AMTAR!$AMTAR$ac_delim
28497 am__tar!$am__tar$ac_delim
28498 am__untar!$am__untar$ac_delim
28499 CC!$CC$ac_delim
28500 CFLAGS!$CFLAGS$ac_delim
28501 LDFLAGS!$LDFLAGS$ac_delim
28502 CPPFLAGS!$CPPFLAGS$ac_delim
28503 ac_ct_CC!$ac_ct_CC$ac_delim
28504 EXEEXT!$EXEEXT$ac_delim
28505 OBJEXT!$OBJEXT$ac_delim
28506 CCDEPMODE!$CCDEPMODE$ac_delim
28507 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28508 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28509 SED!$SED$ac_delim
28510 GREP!$GREP$ac_delim
28511 EGREP!$EGREP$ac_delim
28512 LN_S!$LN_S$ac_delim
28513 ECHO!$ECHO$ac_delim
28514 _ACEOF
28515
28516   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28517     break
28518   elif $ac_last_try; then
28519     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28520 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28521    { (exit 1); exit 1; }; }
28522   else
28523     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28524   fi
28525 done
28526
28527 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28528 if test -n "$ac_eof"; then
28529   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28530   ac_eof=`expr $ac_eof + 1`
28531 fi
28532
28533 cat >>$CONFIG_STATUS <<_ACEOF
28534 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28536 _ACEOF
28537 sed '
28538 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28539 s/^/s,@/; s/!/@,|#_!!_#|/
28540 :n
28541 t n
28542 s/'"$ac_delim"'$/,g/; t
28543 s/$/\\/; p
28544 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28545 ' >>$CONFIG_STATUS <conf$$subs.sed
28546 rm -f conf$$subs.sed
28547 cat >>$CONFIG_STATUS <<_ACEOF
28548 CEOF$ac_eof
28549 _ACEOF
28550
28551
28552 ac_delim='%!_!# '
28553 for ac_last_try in false false false false false :; do
28554   cat >conf$$subs.sed <<_ACEOF
28555 AR!$AR$ac_delim
28556 RANLIB!$RANLIB$ac_delim
28557 DSYMUTIL!$DSYMUTIL$ac_delim
28558 NMEDIT!$NMEDIT$ac_delim
28559 DLLTOOL!$DLLTOOL$ac_delim
28560 AS!$AS$ac_delim
28561 OBJDUMP!$OBJDUMP$ac_delim
28562 CPP!$CPP$ac_delim
28563 CXX!$CXX$ac_delim
28564 CXXFLAGS!$CXXFLAGS$ac_delim
28565 ac_ct_CXX!$ac_ct_CXX$ac_delim
28566 CXXDEPMODE!$CXXDEPMODE$ac_delim
28567 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28568 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28569 CXXCPP!$CXXCPP$ac_delim
28570 LIBTOOL!$LIBTOOL$ac_delim
28571 LIBOBJS!$LIBOBJS$ac_delim
28572 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
28573 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
28574 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
28575 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
28576 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
28577 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
28578 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
28579 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
28580 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
28581 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
28582 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
28583 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
28584 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
28585 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
28586 SMPI_DEP!$SMPI_DEP$ac_delim
28587 GRAS_DEP!$GRAS_DEP$ac_delim
28588 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
28589 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
28590 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28591 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28592 MAINT!$MAINT$ac_delim
28593 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
28594 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
28595 abs_builddir!$abs_builddir$ac_delim
28596 abs_srcdir!$abs_srcdir$ac_delim
28597 abs_top_builddir!$abs_top_builddir$ac_delim
28598 abs_top_srcdir!$abs_top_srcdir$ac_delim
28599 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
28600 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
28601 JAVAC!$JAVAC$ac_delim
28602 JAVA!$JAVA$ac_delim
28603 JAR!$JAR$ac_delim
28604 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28605 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28606 BASH!$BASH$ac_delim
28607 WARNING!$WARNING$ac_delim
28608 LEX!$LEX$ac_delim
28609 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28610 LEXLIB!$LEXLIB$ac_delim
28611 FLEXML!$FLEXML$ac_delim
28612 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28613 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28614 DOXYGEN!$DOXYGEN$ac_delim
28615 ADDR2LINE!$ADDR2LINE$ac_delim
28616 ac_configure_args!$ac_configure_args$ac_delim
28617 build_id!$build_id$ac_delim
28618 LTLIBOBJS!$LTLIBOBJS$ac_delim
28619 _ACEOF
28620
28621   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
28622     break
28623   elif $ac_last_try; then
28624     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28626    { (exit 1); exit 1; }; }
28627   else
28628     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28629   fi
28630 done
28631
28632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28633 if test -n "$ac_eof"; then
28634   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28635   ac_eof=`expr $ac_eof + 1`
28636 fi
28637
28638 cat >>$CONFIG_STATUS <<_ACEOF
28639 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28641 _ACEOF
28642 sed '
28643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28644 s/^/s,@/; s/!/@,|#_!!_#|/
28645 :n
28646 t n
28647 s/'"$ac_delim"'$/,g/; t
28648 s/$/\\/; p
28649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28650 ' >>$CONFIG_STATUS <conf$$subs.sed
28651 rm -f conf$$subs.sed
28652 cat >>$CONFIG_STATUS <<_ACEOF
28653 :end
28654 s/|#_!!_#|//g
28655 CEOF$ac_eof
28656 _ACEOF
28657
28658
28659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28661 # trailing colons and then remove the whole line if VPATH becomes empty
28662 # (actually we leave an empty line to preserve line numbers).
28663 if test "x$srcdir" = x.; then
28664   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28665 s/:*\$(srcdir):*/:/
28666 s/:*\${srcdir}:*/:/
28667 s/:*@srcdir@:*/:/
28668 s/^\([^=]*=[     ]*\):*/\1/
28669 s/:*$//
28670 s/^[^=]*=[       ]*$//
28671 }'
28672 fi
28673
28674 cat >>$CONFIG_STATUS <<\_ACEOF
28675 fi # test -n "$CONFIG_FILES"
28676
28677
28678 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28679 do
28680   case $ac_tag in
28681   :[FHLC]) ac_mode=$ac_tag; continue;;
28682   esac
28683   case $ac_mode$ac_tag in
28684   :[FHL]*:*);;
28685   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28686 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28687    { (exit 1); exit 1; }; };;
28688   :[FH]-) ac_tag=-:-;;
28689   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28690   esac
28691   ac_save_IFS=$IFS
28692   IFS=:
28693   set x $ac_tag
28694   IFS=$ac_save_IFS
28695   shift
28696   ac_file=$1
28697   shift
28698
28699   case $ac_mode in
28700   :L) ac_source=$1;;
28701   :[FH])
28702     ac_file_inputs=
28703     for ac_f
28704     do
28705       case $ac_f in
28706       -) ac_f="$tmp/stdin";;
28707       *) # Look for the file first in the build tree, then in the source tree
28708          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28709          # because $ac_f cannot contain `:'.
28710          test -f "$ac_f" ||
28711            case $ac_f in
28712            [\\/$]*) false;;
28713            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28714            esac ||
28715            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28716 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28717    { (exit 1); exit 1; }; };;
28718       esac
28719       ac_file_inputs="$ac_file_inputs $ac_f"
28720     done
28721
28722     # Let's still pretend it is `configure' which instantiates (i.e., don't
28723     # use $as_me), people would be surprised to read:
28724     #    /* config.h.  Generated by config.status.  */
28725     configure_input="Generated from "`IFS=:
28726           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28727     if test x"$ac_file" != x-; then
28728       configure_input="$ac_file.  $configure_input"
28729       { echo "$as_me:$LINENO: creating $ac_file" >&5
28730 echo "$as_me: creating $ac_file" >&6;}
28731     fi
28732
28733     case $ac_tag in
28734     *:-:* | *:-) cat >"$tmp/stdin";;
28735     esac
28736     ;;
28737   esac
28738
28739   ac_dir=`$as_dirname -- "$ac_file" ||
28740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28741          X"$ac_file" : 'X\(//\)[^/]' \| \
28742          X"$ac_file" : 'X\(//\)$' \| \
28743          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28744 echo X"$ac_file" |
28745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28746             s//\1/
28747             q
28748           }
28749           /^X\(\/\/\)[^/].*/{
28750             s//\1/
28751             q
28752           }
28753           /^X\(\/\/\)$/{
28754             s//\1/
28755             q
28756           }
28757           /^X\(\/\).*/{
28758             s//\1/
28759             q
28760           }
28761           s/.*/./; q'`
28762   { as_dir="$ac_dir"
28763   case $as_dir in #(
28764   -*) as_dir=./$as_dir;;
28765   esac
28766   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28767     as_dirs=
28768     while :; do
28769       case $as_dir in #(
28770       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28771       *) as_qdir=$as_dir;;
28772       esac
28773       as_dirs="'$as_qdir' $as_dirs"
28774       as_dir=`$as_dirname -- "$as_dir" ||
28775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28776          X"$as_dir" : 'X\(//\)[^/]' \| \
28777          X"$as_dir" : 'X\(//\)$' \| \
28778          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28779 echo X"$as_dir" |
28780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28781             s//\1/
28782             q
28783           }
28784           /^X\(\/\/\)[^/].*/{
28785             s//\1/
28786             q
28787           }
28788           /^X\(\/\/\)$/{
28789             s//\1/
28790             q
28791           }
28792           /^X\(\/\).*/{
28793             s//\1/
28794             q
28795           }
28796           s/.*/./; q'`
28797       test -d "$as_dir" && break
28798     done
28799     test -z "$as_dirs" || eval "mkdir $as_dirs"
28800   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28802    { (exit 1); exit 1; }; }; }
28803   ac_builddir=.
28804
28805 case "$ac_dir" in
28806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28807 *)
28808   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28809   # A ".." for each directory in $ac_dir_suffix.
28810   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28811   case $ac_top_builddir_sub in
28812   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28813   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28814   esac ;;
28815 esac
28816 ac_abs_top_builddir=$ac_pwd
28817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28818 # for backward compatibility:
28819 ac_top_builddir=$ac_top_build_prefix
28820
28821 case $srcdir in
28822   .)  # We are building in place.
28823     ac_srcdir=.
28824     ac_top_srcdir=$ac_top_builddir_sub
28825     ac_abs_top_srcdir=$ac_pwd ;;
28826   [\\/]* | ?:[\\/]* )  # Absolute name.
28827     ac_srcdir=$srcdir$ac_dir_suffix;
28828     ac_top_srcdir=$srcdir
28829     ac_abs_top_srcdir=$srcdir ;;
28830   *) # Relative name.
28831     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28832     ac_top_srcdir=$ac_top_build_prefix$srcdir
28833     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28834 esac
28835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28836
28837
28838   case $ac_mode in
28839   :F)
28840   #
28841   # CONFIG_FILE
28842   #
28843
28844   case $INSTALL in
28845   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28846   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28847   esac
28848   ac_MKDIR_P=$MKDIR_P
28849   case $MKDIR_P in
28850   [\\/$]* | ?:[\\/]* ) ;;
28851   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28852   esac
28853 _ACEOF
28854
28855 cat >>$CONFIG_STATUS <<\_ACEOF
28856 # If the template does not know about datarootdir, expand it.
28857 # FIXME: This hack should be removed a few years after 2.60.
28858 ac_datarootdir_hack=; ac_datarootdir_seen=
28859
28860 case `sed -n '/datarootdir/ {
28861   p
28862   q
28863 }
28864 /@datadir@/p
28865 /@docdir@/p
28866 /@infodir@/p
28867 /@localedir@/p
28868 /@mandir@/p
28869 ' $ac_file_inputs` in
28870 *datarootdir*) ac_datarootdir_seen=yes;;
28871 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28872   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28873 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28874 _ACEOF
28875 cat >>$CONFIG_STATUS <<_ACEOF
28876   ac_datarootdir_hack='
28877   s&@datadir@&$datadir&g
28878   s&@docdir@&$docdir&g
28879   s&@infodir@&$infodir&g
28880   s&@localedir@&$localedir&g
28881   s&@mandir@&$mandir&g
28882     s&\\\${datarootdir}&$datarootdir&g' ;;
28883 esac
28884 _ACEOF
28885
28886 # Neutralize VPATH when `$srcdir' = `.'.
28887 # Shell code in configure.ac might set extrasub.
28888 # FIXME: do we really want to maintain this feature?
28889 cat >>$CONFIG_STATUS <<_ACEOF
28890   sed "$ac_vpsub
28891 $extrasub
28892 _ACEOF
28893 cat >>$CONFIG_STATUS <<\_ACEOF
28894 :t
28895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28896 s&@configure_input@&$configure_input&;t t
28897 s&@top_builddir@&$ac_top_builddir_sub&;t t
28898 s&@srcdir@&$ac_srcdir&;t t
28899 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28900 s&@top_srcdir@&$ac_top_srcdir&;t t
28901 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28902 s&@builddir@&$ac_builddir&;t t
28903 s&@abs_builddir@&$ac_abs_builddir&;t t
28904 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28905 s&@INSTALL@&$ac_INSTALL&;t t
28906 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28907 $ac_datarootdir_hack
28908 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28909
28910 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28911   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28912   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28913   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28914 which seems to be undefined.  Please make sure it is defined." >&5
28915 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28916 which seems to be undefined.  Please make sure it is defined." >&2;}
28917
28918   rm -f "$tmp/stdin"
28919   case $ac_file in
28920   -) cat "$tmp/out"; rm -f "$tmp/out";;
28921   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28922   esac
28923  ;;
28924   :H)
28925   #
28926   # CONFIG_HEADER
28927   #
28928 _ACEOF
28929
28930 # Transform confdefs.h into a sed script `conftest.defines', that
28931 # substitutes the proper values into config.h.in to produce config.h.
28932 rm -f conftest.defines conftest.tail
28933 # First, append a space to every undef/define line, to ease matching.
28934 echo 's/$/ /' >conftest.defines
28935 # Then, protect against being on the right side of a sed subst, or in
28936 # an unquoted here document, in config.status.  If some macros were
28937 # called several times there might be several #defines for the same
28938 # symbol, which is useless.  But do not sort them, since the last
28939 # AC_DEFINE must be honored.
28940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28941 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28942 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28943 # PARAMS is the parameter list in the macro definition--in most cases, it's
28944 # just an empty string.
28945 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28946 ac_dB='\\)[      (].*,\\1define\\2'
28947 ac_dC=' '
28948 ac_dD=' ,'
28949
28950 uniq confdefs.h |
28951   sed -n '
28952         t rset
28953         :rset
28954         s/^[     ]*#[    ]*define[       ][      ]*//
28955         t ok
28956         d
28957         :ok
28958         s/[\\&,]/\\&/g
28959         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28960         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28961   ' >>conftest.defines
28962
28963 # Remove the space that was appended to ease matching.
28964 # Then replace #undef with comments.  This is necessary, for
28965 # example, in the case of _POSIX_SOURCE, which is predefined and required
28966 # on some systems where configure will not decide to define it.
28967 # (The regexp can be short, since the line contains either #define or #undef.)
28968 echo 's/ $//
28969 s,^[     #]*u.*,/* & */,' >>conftest.defines
28970
28971 # Break up conftest.defines:
28972 ac_max_sed_lines=50
28973
28974 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28975 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28976 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28977 # et cetera.
28978 ac_in='$ac_file_inputs'
28979 ac_out='"$tmp/out1"'
28980 ac_nxt='"$tmp/out2"'
28981
28982 while :
28983 do
28984   # Write a here document:
28985     cat >>$CONFIG_STATUS <<_ACEOF
28986     # First, check the format of the line:
28987     cat >"\$tmp/defines.sed" <<\\CEOF
28988 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28989 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28990 b
28991 :def
28992 _ACEOF
28993   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28994   echo 'CEOF
28995     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28996   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28997   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28998   grep . conftest.tail >/dev/null || break
28999   rm -f conftest.defines
29000   mv conftest.tail conftest.defines
29001 done
29002 rm -f conftest.defines conftest.tail
29003
29004 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29005 cat >>$CONFIG_STATUS <<\_ACEOF
29006   if test x"$ac_file" != x-; then
29007     echo "/* $configure_input  */" >"$tmp/config.h"
29008     cat "$ac_result" >>"$tmp/config.h"
29009     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29010       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29011 echo "$as_me: $ac_file is unchanged" >&6;}
29012     else
29013       rm -f $ac_file
29014       mv "$tmp/config.h" $ac_file
29015     fi
29016   else
29017     echo "/* $configure_input  */"
29018     cat "$ac_result"
29019   fi
29020   rm -f "$tmp/out12"
29021 # Compute $ac_file's index in $config_headers.
29022 _am_arg=$ac_file
29023 _am_stamp_count=1
29024 for _am_header in $config_headers :; do
29025   case $_am_header in
29026     $_am_arg | $_am_arg:* )
29027       break ;;
29028     * )
29029       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29030   esac
29031 done
29032 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29033 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29034          X"$_am_arg" : 'X\(//\)[^/]' \| \
29035          X"$_am_arg" : 'X\(//\)$' \| \
29036          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29037 echo X"$_am_arg" |
29038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29039             s//\1/
29040             q
29041           }
29042           /^X\(\/\/\)[^/].*/{
29043             s//\1/
29044             q
29045           }
29046           /^X\(\/\/\)$/{
29047             s//\1/
29048             q
29049           }
29050           /^X\(\/\).*/{
29051             s//\1/
29052             q
29053           }
29054           s/.*/./; q'`/stamp-h$_am_stamp_count
29055  ;;
29056
29057   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29058 echo "$as_me: executing $ac_file commands" >&6;}
29059  ;;
29060   esac
29061
29062
29063   case $ac_file$ac_mode in
29064     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29065   # Strip MF so we end up with the name of the file.
29066   mf=`echo "$mf" | sed -e 's/:.*$//'`
29067   # Check whether this is an Automake generated Makefile or not.
29068   # We used to match only the files named `Makefile.in', but
29069   # some people rename them; so instead we look at the file content.
29070   # Grep'ing the first line is not enough: some people post-process
29071   # each Makefile.in and add a new line on top of each file to say so.
29072   # Grep'ing the whole file is not good either: AIX grep has a line
29073   # limit of 2048, but all sed's we know have understand at least 4000.
29074   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29075     dirpart=`$as_dirname -- "$mf" ||
29076 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29077          X"$mf" : 'X\(//\)[^/]' \| \
29078          X"$mf" : 'X\(//\)$' \| \
29079          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29080 echo X"$mf" |
29081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29082             s//\1/
29083             q
29084           }
29085           /^X\(\/\/\)[^/].*/{
29086             s//\1/
29087             q
29088           }
29089           /^X\(\/\/\)$/{
29090             s//\1/
29091             q
29092           }
29093           /^X\(\/\).*/{
29094             s//\1/
29095             q
29096           }
29097           s/.*/./; q'`
29098   else
29099     continue
29100   fi
29101   # Extract the definition of DEPDIR, am__include, and am__quote
29102   # from the Makefile without running `make'.
29103   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29104   test -z "$DEPDIR" && continue
29105   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29106   test -z "am__include" && continue
29107   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29108   # When using ansi2knr, U may be empty or an underscore; expand it
29109   U=`sed -n 's/^U = //p' < "$mf"`
29110   # Find all dependency output files, they are included files with
29111   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29112   # simplest approach to changing $(DEPDIR) to its actual value in the
29113   # expansion.
29114   for file in `sed -n "
29115     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29116        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29117     # Make sure the directory exists.
29118     test -f "$dirpart/$file" && continue
29119     fdir=`$as_dirname -- "$file" ||
29120 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29121          X"$file" : 'X\(//\)[^/]' \| \
29122          X"$file" : 'X\(//\)$' \| \
29123          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29124 echo X"$file" |
29125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29126             s//\1/
29127             q
29128           }
29129           /^X\(\/\/\)[^/].*/{
29130             s//\1/
29131             q
29132           }
29133           /^X\(\/\/\)$/{
29134             s//\1/
29135             q
29136           }
29137           /^X\(\/\).*/{
29138             s//\1/
29139             q
29140           }
29141           s/.*/./; q'`
29142     { as_dir=$dirpart/$fdir
29143   case $as_dir in #(
29144   -*) as_dir=./$as_dir;;
29145   esac
29146   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29147     as_dirs=
29148     while :; do
29149       case $as_dir in #(
29150       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29151       *) as_qdir=$as_dir;;
29152       esac
29153       as_dirs="'$as_qdir' $as_dirs"
29154       as_dir=`$as_dirname -- "$as_dir" ||
29155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29156          X"$as_dir" : 'X\(//\)[^/]' \| \
29157          X"$as_dir" : 'X\(//\)$' \| \
29158          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29159 echo X"$as_dir" |
29160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29161             s//\1/
29162             q
29163           }
29164           /^X\(\/\/\)[^/].*/{
29165             s//\1/
29166             q
29167           }
29168           /^X\(\/\/\)$/{
29169             s//\1/
29170             q
29171           }
29172           /^X\(\/\).*/{
29173             s//\1/
29174             q
29175           }
29176           s/.*/./; q'`
29177       test -d "$as_dir" && break
29178     done
29179     test -z "$as_dirs" || eval "mkdir $as_dirs"
29180   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29181 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29182    { (exit 1); exit 1; }; }; }
29183     # echo "creating $dirpart/$file"
29184     echo '# dummy' > "$dirpart/$file"
29185   done
29186 done
29187  ;;
29188     "tools/graspe-slave":F)
29189     for file in                                                 \
29190      tools/graspe-slave           tools/graspe-master           \
29191     ; do                                                        \
29192       test -e $file && chmod +x $file;                          \
29193     done
29194  ;;
29195     "testsuite/Makefile":F)
29196     for file in                                                 \
29197      testsuite/run_tests                                        \
29198     ; do                                                        \
29199       test -e $file && chmod +x $file;                          \
29200     done
29201  ;;
29202     "testsuite/run_tests":F)
29203     for file in                                                 \
29204      testsuite/run_tests                                        \
29205     ; do                                                        \
29206       test -e $file && chmod +x $file;                          \
29207     done
29208  ;;
29209
29210   esac
29211 done # for ac_tag
29212
29213
29214 { (exit 0); exit 0; }
29215 _ACEOF
29216 chmod +x $CONFIG_STATUS
29217 ac_clean_files=$ac_clean_files_save
29218
29219
29220 # configure is writing to config.log, and then calls config.status.
29221 # config.status does its own redirection, appending to config.log.
29222 # Unfortunately, on DOS this fails, as config.log is still kept open
29223 # by configure, so config.status won't be able to write to it; its
29224 # output is simply discarded.  So we exec the FD to /dev/null,
29225 # effectively closing config.log, so it can be properly (re)opened and
29226 # appended to by config.status.  When coming back to configure, we
29227 # need to make the FD available again.
29228 if test "$no_create" != yes; then
29229   ac_cs_success=:
29230   ac_config_status_args=
29231   test "$silent" = yes &&
29232     ac_config_status_args="$ac_config_status_args --quiet"
29233   exec 5>/dev/null
29234   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29235   exec 5>>config.log
29236   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29237   # would make configure fail if this is the last instruction.
29238   $ac_cs_success || { (exit 1); exit 1; }
29239 fi
29240
29241
29242 echo "
29243
29244 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
29245
29246         Compiler:        ${CC} (version: ${GCC_VERSION})
29247
29248         CFlags:          ${CFLAGS}
29249         CPPFlags:        ${CPPFLAGS}
29250         LDFlags:         ${LDFLAGS}
29251
29252         Context backend: ${with_context}
29253         Compile Java:    ${use_java}
29254
29255         Maintainer mode: ${USE_MAINTAINER_MODE}
29256
29257 "
29258 if test x$botbuild = xyes ; then
29259   echo "        This is a bot build. Do not specify --enable-botbuild if you are not a bot."
29260   echo
29261 fi
29262
29263 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
29264   echo "WARNING: "
29265   echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
29266   echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
29267   echo "WARNING:"
29268   echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
29269   echo "WARNING:"
29270 fi
29271
29272 echo $build_id > stamp.configure
29273
29274 exit 0;